Member Junction
    Preparing search index...

    Reusable editor for MJBrandKitEntity.GenerationPolicyObject.

    Edits AllowGeneratedImages, AllowGeneratedVideo, AllowSyntheticPeople (defaulting to false and displaying the §3.4 synthetic-people disclosure warning when enabled), AvoidSubjects chip list, StylePrompt, and MaxGenerationCostPerRun. Saves via BrandKit.Save() and surfaces BrandKit.LatestResult errors if Save() returns false.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    AllowGeneratedImages: boolean = DEFAULT_BRAND_GENERATION_POLICY.AllowGeneratedImages
    AllowGeneratedVideo: boolean = DEFAULT_BRAND_GENERATION_POLICY.AllowGeneratedVideo
    AllowSyntheticPeople: boolean = DEFAULT_BRAND_GENERATION_POLICY.AllowSyntheticPeople
    AvoidSubjects: string[] = []
    MaxGenerationCostPerRun: number | null = null
    NewSubjectInput: string = ''
    PolicyChanged: EventEmitter<MJBrandKitEntity_IBrandGenerationPolicy> = ...
    PolicySaved: EventEmitter<MJBrandKitEntity_IBrandGenerationPolicy> = ...
    Provider: IMetadataProvider | null

    If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.

    Readonly: boolean = false
    SaveError: string | null = null
    SaveSuccess: boolean = false
    Saving: boolean = false
    ShowSaveButton: boolean = true
    StylePrompt: string = ...
    SyntheticPeopleWarning: "A generated person may never be presented as a member, customer, employee or speaker." = SYNTHETIC_PEOPLE_POLICY_WARNING
    "ɵdir": unknown
    "ɵfac": ɵɵFactoryDeclaration<BaseAngularComponent, never>

    Accessors

    • get ProviderToUse(): IMetadataProvider

      Returns either the default Metadata provider or the one specified in the Provider property, if it was specified

      Returns IMetadataProvider

    • get RunQueryToUse(): IRunQueryProvider

      Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified

      Returns IRunQueryProvider

    • get RunViewToUse(): IRunViewProvider

      Returns either the default RunView provider or the one specified in the Provider property, if it was specified

      Returns IRunViewProvider

    Methods