pika-shared 1.4.1 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -148,6 +148,15 @@ interface ChatSession<T extends RecordOrUndef = undefined> {
148
148
  shareRevokedDate?: string;
149
149
  /** If set to 'mock', this session is used for integration testing purposes. */
150
150
  testType?: 'mock';
151
+ /**
152
+ * The source of the converse request. Defaults to 'user'. The composite key chat_app_sk looks like this:
153
+ *
154
+ * ${chatAppId}#${source}#${updateDate}
155
+ *
156
+ * The source in the composite key here will only ever be either `user` or `component`. If this attribute's value is missing or is `user` or `component-as-user`,
157
+ * then the composite key will be set to `user` so when we query on behalf of the user, we will get all sessions for that user.
158
+ */
159
+ source: ConverseSource;
151
160
  }
152
161
  /**
153
162
  * Convenience type for updating a session with the last analyzed message id and insights s3 url.
@@ -660,15 +669,19 @@ interface AgentInstructionChatAppOverridableFeature {
660
669
  completeExampleInstructionLine?: string;
661
670
  jsonOnlyImperativeInstructionEnabled: boolean;
662
671
  jsonOnlyImperativeInstructionLine?: string;
672
+ includeTypescriptBackedOutputFormattingRequirements: boolean;
673
+ typescriptBackedOutputFormattingRequirements?: string;
663
674
  }
664
675
  interface InstructionAssistanceConfig {
665
676
  outputFormattingRequirements: string;
666
677
  tagInstructions?: string;
667
678
  completeExampleInstructionLine: string;
668
679
  jsonOnlyImperativeInstructionLine: string;
680
+ typescriptBackedOutputFormattingRequirements: string;
669
681
  }
670
682
  interface TagsChatAppOverridableFeature {
671
683
  tagsEnabled: TagDefinitionLite[];
684
+ tagsDisabled: TagDefinitionLite[];
672
685
  }
673
686
  type ChatAppOverridableFeaturesForConverseFn = Omit<ChatAppOverridableFeatures, 'chatDisclaimerNotice' | 'traces' | 'logout' | 'suggestions' | 'promptInputFieldLabel' | 'uiCustomization' | 'fileUpload'>;
674
687
  /**
@@ -772,17 +785,65 @@ interface ConverseRequest extends BaseRequestData {
772
785
  * If provided, this will be used to determine the invocation mode of the converse request.
773
786
  *
774
787
  * If 'chat-app', then the converse request is a chat app request.
788
+ *
775
789
  * If 'direct-agent-invoke', then the converse request is a direct agent invoke request and is not
776
790
  * in the context of a chat app. Since we are adding mode after the fact, if mode is provided
777
791
  * and it doesn't match what we expect, we will throw an error (chat-app requires that chatAppId is provided
778
792
  * and direct-agent-invoke requires that chatAppId is not provided).
779
793
  *
794
+ * If 'chat-app-component', then the converse request is coming from a chat app component and is not
795
+ * being initiated by the end user. This is used to allow the component to invoke the agent directly
796
+ * without the need for the end user to initiate the request. These do not show up as user-created sessions
797
+ * when we query for the users's sessions in this chat app.
798
+ *
799
+ * They are associated with the user and the chat app and the component in question. When this mode is used,
800
+ * the caller must provide the chatAppId and the agentId and the complete "tag" that represents the component doing the calling.
801
+ * Tag definitions have both a scope and a tag. Further, the `componentAgentInstructionName` must also provide so we
802
+ * know which set of instructions from the tag definition to use.
803
+ *
780
804
  * If invocationMode is not provided, uses the presence or absence of chatAppId to determine the mode (if chatAppId
781
805
  * is provided, then it's a chat app request, otherwise it's a direct agent invoke request).
782
806
  */
783
807
  invocationMode?: ConverseInvocationMode;
808
+ /**
809
+ * When invocationMode is 'chat-app-component', then this is the requiredconfiguration for the chat app component invocation.
810
+ */
811
+ chatAppComponentConfig?: ChatAppComponentConfig;
812
+ /**
813
+ * The source of the converse request. Defaults to 'user'. The composite key chat_app_sk looks like this:
814
+ *
815
+ * ${chatAppId}#${source}#${updateDate}
816
+ *
817
+ * The source in the composite key here will only ever be either `user` or `component`. If this attribute's value is missing or is `user` or `component-as-user`,
818
+ * then the composite key will be set to `user` so when we query on behalf of the user, we will get all sessions for that user.
819
+ *
820
+ * If 'user', then the converse request is coming from the user.
821
+ * If 'component-as-user', then the converse request is coming from a component acting as a user and thus sessions should show up in the user's sessions list.
822
+ * If 'component', then the converse request is coming from a component.
823
+ */
824
+ source: ConverseSource;
784
825
  }
785
- declare const ConverseInvocationModes: readonly ["chat-app", "direct-agent-invoke"];
826
+ declare const ConverseSource: readonly ["user", "component-as-user", "component"];
827
+ type ConverseSource = (typeof ConverseSource)[number];
828
+ /**
829
+ * This is the configuration for a chat app component invocation to the converse lambda function.
830
+ */
831
+ interface ChatAppComponentConfig {
832
+ /**
833
+ * The name of the set of instructions to use for the component invocation.
834
+ * This is the key in the `componentAgentInstructionsMd` record in the tag definition as in
835
+ *
836
+ * `tagDef.componentAgentInstructionsMd[componentAgentInstructionName]`
837
+ */
838
+ componentAgentInstructionName: string;
839
+ /**
840
+ * The tag definition that represents the component doing the calling. We use this to look up the
841
+ * right tag definition so we can get the correct instructions. Note that you will get an exception
842
+ * if the tag definition isn't associated with this chat app or isn't marked as `chat-app-global`.
843
+ */
844
+ componentTagDefinition: TagDefinitionLite;
845
+ }
846
+ declare const ConverseInvocationModes: readonly ["chat-app", "direct-agent-invoke", "chat-app-component"];
786
847
  type ConverseInvocationMode = (typeof ConverseInvocationModes)[number];
787
848
  interface ChatTitleUpdateRequest extends BaseRequestData {
788
849
  /** If provided, this will be used as the title for the session */
@@ -871,6 +932,49 @@ interface SetChatUserPrefsResponse {
871
932
  prefs?: UserPrefs;
872
933
  error?: string;
873
934
  }
935
+ /**
936
+ * Arbitrary key-value storage for web component state.
937
+ * Scoped to user + component (scope.tag).
938
+ * Max 400KB per component.
939
+ */
940
+ type UserWidgetData = Record<string, unknown>;
941
+ interface GetUserWidgetDataRequest {
942
+ scope: string;
943
+ tag: string;
944
+ }
945
+ interface GetUserWidgetDataResponse {
946
+ success: boolean;
947
+ userId: string;
948
+ scope: string;
949
+ tag: string;
950
+ data?: UserWidgetData;
951
+ error?: string;
952
+ }
953
+ interface SetUserWidgetDataRequest {
954
+ scope: string;
955
+ tag: string;
956
+ data: UserWidgetData;
957
+ partial?: boolean;
958
+ }
959
+ interface SetUserWidgetDataResponse {
960
+ success: boolean;
961
+ userId: string;
962
+ scope: string;
963
+ tag: string;
964
+ data: UserWidgetData;
965
+ error?: string;
966
+ }
967
+ interface DeleteUserWidgetDataRequest {
968
+ scope: string;
969
+ tag: string;
970
+ }
971
+ interface DeleteUserWidgetDataResponse {
972
+ success: boolean;
973
+ userId: string;
974
+ scope: string;
975
+ tag: string;
976
+ error?: string;
977
+ }
874
978
  interface ChatUserAddOrUpdateResponse {
875
979
  success: boolean;
876
980
  user: ChatUser<RecordOrUndef>;
@@ -1124,7 +1228,11 @@ type AgentDefinitionForCreate = Omit<AgentDefinition, 'version' | 'createdAt' |
1124
1228
  *
1125
1229
  * If you use this you must provide an agentId so we can match up what's there already with what is being provided.
1126
1230
  * If you provide tools then you must provide a toolId for each tool so we can match up what's there already with what is being provided.
1127
- * You may either provide agent.toolIds or tools but not both.
1231
+ *
1232
+ * Three patterns are supported:
1233
+ * 1. tools only: Define new tools (create/update)
1234
+ * 2. agent.toolIds only: Reference existing tools by ID
1235
+ * 3. Both tools AND agent.toolIds: Mixed approach - define new tools while referencing existing ones
1128
1236
  */
1129
1237
  interface AgentDataRequest {
1130
1238
  /**
@@ -2077,6 +2185,14 @@ interface AgentInstructionAssistanceFeature {
2077
2185
  enabled: boolean;
2078
2186
  line?: string;
2079
2187
  };
2188
+ /**
2189
+ * This is only used for component invocation instructions. If true, a line will be added to the component invocation
2190
+ * instructions that instructs the agent to only respond with valid JSON conforming to the TypeScript interface defined in the <output_schema> block.
2191
+ */
2192
+ includeTypescriptBackedOutputFormattingRequirements?: {
2193
+ enabled: boolean;
2194
+ line?: string;
2195
+ };
2080
2196
  }
2081
2197
  type SegmentType = 'text' | 'tag';
2082
2198
  /**
@@ -2988,10 +3104,9 @@ interface TagsSiteFeature {
2988
3104
  */
2989
3105
  tagsEnabled?: TagDefinitionLite[];
2990
3106
  /**
2991
- * The tag definitions that are prohibited by default. If not provided, then no tag definitions are prohibited.
2992
- * Chat apps may not override this list.
3107
+ * Global tags are enabled by default. Turn them off here if you don't want them.
2993
3108
  */
2994
- tagsProhibited?: TagDefinitionLite[];
3109
+ tagsDisabled?: TagDefinitionLite[];
2995
3110
  }
2996
3111
  /**
2997
3112
  * Configure whether the session insights feature is enabled. When turned on, Pika will
@@ -3031,10 +3146,17 @@ interface SessionInsightsOpenSearchConfig {
3031
3146
  interface TagsFeatureForChatApp extends Feature {
3032
3147
  featureId: 'tags';
3033
3148
  /**
3034
- * The tag definitions that are enabled by default. If not provided, then no tag definitions are enabled.
3035
- * Each chat app can override this list by providing its own list of tagsEnabled in its chat app config.
3149
+ * The tag definitions that are explicitly enabled for this chat app.
3150
+ * These are chat-app specific tags (usageMode='chat-app') that must be explicitly enabled.
3151
+ * Global tags (usageMode='global') are automatically included unless listed in tagsDisabled.
3036
3152
  */
3037
3153
  tagsEnabled?: TagDefinitionLite[];
3154
+ /**
3155
+ * Global tag definitions that should be disabled for this chat app.
3156
+ * Only applies to global tags (usageMode='global').
3157
+ * Use this to exclude specific global tags that you don't want available.
3158
+ */
3159
+ tagsDisabled?: TagDefinitionLite[];
3038
3160
  }
3039
3161
  interface SessionInsightsFeatureForChatApp extends Feature {
3040
3162
  featureId: 'sessionInsights';
@@ -3264,6 +3386,63 @@ interface NameValueDescTriple<T> {
3264
3386
  interface ComponentTagDefinition<T extends TagDefinitionWidget> {
3265
3387
  definition: TagDefinition<T>;
3266
3388
  }
3389
+ declare const TAG_DEFINITION_STATUSES: readonly ["enabled", "disabled", "retired"];
3390
+ type TagDefinitionStatus = (typeof TAG_DEFINITION_STATUSES)[number];
3391
+ interface SpotlightContextConfig {
3392
+ enabled: boolean;
3393
+ isDefault?: boolean;
3394
+ displayOrder?: number;
3395
+ }
3396
+ interface InlineContextConfig {
3397
+ enabled: boolean;
3398
+ }
3399
+ interface DialogContextConfig {
3400
+ enabled: boolean;
3401
+ size?: 'small' | 'medium' | 'large' | 'fullscreen';
3402
+ }
3403
+ interface CanvasContextConfig {
3404
+ enabled: boolean;
3405
+ }
3406
+ /**
3407
+ * Tag definition for widgets that have static context enabled.
3408
+ * Static widgets can run initialization code (like registering title bar actions)
3409
+ * when the chat app loads. They can also have other rendering contexts for visual UI.
3410
+ */
3411
+ type StaticWidgetTagDefinition = TagDefinition<TagDefinitionWidgetWebComponent> & {
3412
+ renderingContexts: {
3413
+ static: StaticContextConfig;
3414
+ spotlight?: SpotlightContextConfig;
3415
+ inline?: InlineContextConfig;
3416
+ dialog?: DialogContextConfig;
3417
+ canvas?: CanvasContextConfig;
3418
+ };
3419
+ };
3420
+ /**
3421
+ * The static context is used to render a static component that doesn't render visually but is used to run code that needs to be run once.
3422
+ * For example, you might want to run a code snippet that puts an icon in the title bar of the chat app.
3423
+ */
3424
+ interface StaticContextConfig {
3425
+ enabled: boolean;
3426
+ /**
3427
+ * If provided, the static context container will be removed from the DOM after this many milliseconds.
3428
+ * If not provided, the container stays in the DOM (hidden) indefinitely.
3429
+ *
3430
+ * Use this when the static component only needs to run initialization code and doesn't need to
3431
+ * persist in the DOM afterwards.
3432
+ *
3433
+ * Example: 1000 (remove after 1 second)
3434
+ */
3435
+ shutDownAfterMs?: number;
3436
+ }
3437
+ declare const WIDGET_RENDERING_CONTEXT_TYPES: readonly ["spotlight", "inline", "dialog", "canvas", "static"];
3438
+ type WidgetRenderingContextType = (typeof WIDGET_RENDERING_CONTEXT_TYPES)[number];
3439
+ interface WidgetRenderingContexts {
3440
+ spotlight?: SpotlightContextConfig;
3441
+ inline?: InlineContextConfig;
3442
+ dialog?: DialogContextConfig;
3443
+ canvas?: CanvasContextConfig;
3444
+ static?: StaticContextConfig;
3445
+ }
3267
3446
  interface TagDefinition<T extends TagDefinitionWidget> {
3268
3447
  /**
3269
3448
  * The tag type this definition is for. If the tag is one of the built-in pika tags, then you are overriding the built-in pika tag instructions
@@ -3331,8 +3510,34 @@ interface TagDefinition<T extends TagDefinitionWidget> {
3331
3510
  dontCacheThis?: boolean;
3332
3511
  /** You must be explicit about whether this tag is a widget or not and if so what kind. */
3333
3512
  widget: T;
3334
- /** If true, the tag will be disabled and not available to the LLM or tools. */
3335
- disabled?: boolean;
3513
+ /**
3514
+ * Determines how this tag can be used across chat apps.
3515
+ * - 'global': Tag is available to all chat apps by default (unless explicitly disabled)
3516
+ * - 'chat-app': Tag must be explicitly enabled in a chat app's configuration to be available
3517
+ *
3518
+ * REQUIRED: Must be explicitly set.
3519
+ * Built-in Pika tags (scope='pika') are typically 'global', while custom tags are typically 'chat-app'.
3520
+ */
3521
+ usageMode: TagDefinitionUsageMode;
3522
+ /**
3523
+ * The status of this tag definition.
3524
+ * - 'enabled': Tag is active and available for use
3525
+ * - 'disabled': Tag is temporarily disabled
3526
+ * - 'retired': Tag is permanently retired/deprecated
3527
+ *
3528
+ * REQUIRED: Must be explicitly set. If not provided, defaults to 'enabled'.
3529
+ * This is critical for the GSI to properly index all records.
3530
+ */
3531
+ status: TagDefinitionStatus;
3532
+ /**
3533
+ * Rendering contexts this widget supports. Required. Must have at least one context.
3534
+ */
3535
+ renderingContexts: WidgetRenderingContexts;
3536
+ /**
3537
+ * Indicates this is a mock/demo tag definition for development/testing purposes.
3538
+ * Mock tags may be filtered out in production environments.
3539
+ */
3540
+ isMock?: boolean;
3336
3541
  /**
3337
3542
  * If `canBeGeneratedByLlm` is true, you must provide instructions for the LLM to generate the tag since chat app/agent builders can choose
3338
3543
  * to have the instructions injected into the agent instructions prompt for a given tag.
@@ -3360,6 +3565,64 @@ interface TagDefinition<T extends TagDefinitionWidget> {
3360
3565
  * The XML wrapper ensures that your formatting doesn't interfere with the overall instruction structure.
3361
3566
  */
3362
3567
  llmInstructionsMd?: string;
3568
+ /**
3569
+ * If the code that backs your tag definition, whether compile in or a separate web component, has need to
3570
+ * directly invoke the agent to get assistance from an LLM, then you can create named sets of instructions
3571
+ * so when the component makes the request for help from the agent, the agent will know which set of instructions
3572
+ * to use. For example, let's say you have a Spotlight component defined as a tag definition that needs to
3573
+ * on startup get a list of cities and then make a request to the agent to get the weather for the list of cities.
3574
+ * The default agent instructions for the agent probably woudn't return the weather information in a structured
3575
+ * manner. So, you'd want to create a new set of instructions for the agent to use, with the same set of tools,
3576
+ * that the component code would cause to be used by asking for a direct agent invocation initiated from the
3577
+ * code in the browser and that references the name of the instructions to use that will retrieve the
3578
+ * weather as structured json let's say and that includes the list of cities you want the weather for.
3579
+ *
3580
+ * That way, the server side converse lambda function that responds to direct agent invocation requests will know
3581
+ * which set of instructions to use. It's not a good idea to allow the client to define the entire set of instructions.
3582
+ *
3583
+ * It's too risky. So, here's an example of a good set of instructions that you could use. Note that the input value
3584
+ * sent from the browser webcomponent in this case would just be a list of locations that we would append to the bottom
3585
+ * of the following. Also note that the {{typescript-backed-output-formatting-requirements}} placeholder is used to
3586
+ * inject the typescript backed output formatting requirements which are stored in S3.
3587
+ *
3588
+ * ```markdown
3589
+ * You are **WeatherDataLookupAgent**, a highly skilled assistant used to turn a list of locations into weather data.
3590
+ * Below you will find the list of locations you need to look up the weather for using the associated tools provided.
3591
+ *
3592
+ * <output_schema>
3593
+ * interface WeatherData {
3594
+ * // ISO 8601 date string of when this data was generated
3595
+ * date: string;
3596
+ *
3597
+ * // the weather data itself
3598
+ * locations: LocationWeatherInfo[];
3599
+ * }
3600
+ *
3601
+ * interface LocationWeatherInfo {
3602
+ * // The name of the location in a human readable format
3603
+ * locationName: string;
3604
+ *
3605
+ * // longitude for the location. Optional just in case you can't get it.
3606
+ * lon?: string;
3607
+ *
3608
+ * // latitude for the location. Optional just in case you can't get it.
3609
+ * lat?: string;
3610
+ *
3611
+ * // The temperature in celsius
3612
+ * tempC: string;
3613
+ *
3614
+ * // The temperature in fahrenheit
3615
+ * tempF: string;
3616
+ * }
3617
+ * </output_schema>
3618
+ *
3619
+ * {{typescript-backed-output-formatting-requirements}}
3620
+ * ```
3621
+ *
3622
+ * The key in the record is referred to as the "componentAgentInstructionName" and the value is the markdown string of the instructions.
3623
+ *
3624
+ */
3625
+ componentAgentInstructionsMd?: Record<string, string>;
3363
3626
  /** The user id of the user who created the tag definition */
3364
3627
  createdBy: string;
3365
3628
  /** The user id of the user who last updated the tag definition */
@@ -3373,7 +3636,43 @@ interface TagDefinitionLite {
3373
3636
  tag: string;
3374
3637
  scope: string;
3375
3638
  }
3376
- type TagDefinitionForCreateOrUpdate<T extends TagDefinitionWidget = TagDefinitionWidget> = Omit<TagDefinition<T>, 'createdBy' | 'lastUpdatedBy' | 'createDate' | 'lastUpdate'>;
3639
+ /**
3640
+ * Web component definition for create/update operations.
3641
+ * The s3Bucket field is omitted because it's filled in by the backend.
3642
+ */
3643
+ interface TagDefinitionWebComponentForCreateOrUpdate extends Omit<TagDefinitionWebComponent, 's3'> {
3644
+ s3?: {
3645
+ /** Must follow pattern: wc/${scope}/fileName.js.gz */
3646
+ s3Key: string;
3647
+ };
3648
+ }
3649
+ /**
3650
+ * Widget definition for web components in create/update operations.
3651
+ * Uses TagDefinitionWebComponentForCreateOrUpdate which omits the backend-managed s3Bucket field.
3652
+ */
3653
+ interface TagDefinitionWidgetWebComponentForCreateOrUpdate extends TagDefinitionWidgetBase {
3654
+ type: 'web-component';
3655
+ webComponent: TagDefinitionWebComponentForCreateOrUpdate;
3656
+ }
3657
+ /**
3658
+ * Union type for all widget types in create/update operations.
3659
+ * Uses the specialized web component type that omits backend-managed fields.
3660
+ */
3661
+ type TagDefinitionWidgetForCreateOrUpdate = TagDefinitionWidgetPassThrough | TagDefinitionWidgetPikaCompiledIn | TagDefinitionWidgetCustomCompiledIn | TagDefinitionWidgetWebComponentForCreateOrUpdate;
3662
+ /**
3663
+ * Tag definition for create/update operations.
3664
+ * Omits backend-managed fields and uses TagDefinitionWidgetForCreateOrUpdate which excludes
3665
+ * backend-managed fields from nested structures (like s3Bucket in web components).
3666
+ *
3667
+ * The usageMode field is optional and defaults to 'chat-app' if not provided.
3668
+ */
3669
+ type TagDefinitionForCreateOrUpdate<T extends TagDefinitionWidgetForCreateOrUpdate = TagDefinitionWidgetForCreateOrUpdate> = Omit<TagDefinition<TagDefinitionWidget>, 'createdBy' | 'lastUpdatedBy' | 'createDate' | 'lastUpdate' | 'widget' | 'usageMode'> & {
3670
+ widget: T;
3671
+ usageMode?: TagDefinitionUsageMode;
3672
+ };
3673
+ declare const TAG_DEFINITION_USAGE_MODES: readonly ["global", "chat-app"];
3674
+ type TagDefinitionUsageMode = (typeof TAG_DEFINITION_USAGE_MODES)[number];
3675
+ declare const TAG_DEFINITION_WIDGET_TYPES: readonly ["pass-through", "pika-compiled-in", "custom-compiled-in", "web-component"];
3377
3676
  /**
3378
3677
  * Pika compiled-in components are those defined as part of the compiled svelte front end code in `apps/pika-chat/src/lib/client/features/chat/message-segments/default-components/index.ts`.
3379
3678
  *
@@ -3384,7 +3683,7 @@ type TagDefinitionForCreateOrUpdate<T extends TagDefinitionWidget = TagDefinitio
3384
3683
  *
3385
3684
  * Pass through means we will simply pass this through and not process the tag in any way. This is useful for tags that are not meant to be rendered in the front end.
3386
3685
  */
3387
- type TagDefinitionWidgetType = 'pass-through' | 'pika-compiled-in' | 'custom-compiled-in' | 'web-component';
3686
+ type TagDefinitionWidgetType = (typeof TAG_DEFINITION_WIDGET_TYPES)[number];
3388
3687
  interface TagDefinitionWidgetPikaCompiledIn extends TagDefinitionWidgetBase {
3389
3688
  type: 'pika-compiled-in';
3390
3689
  }
@@ -3405,15 +3704,150 @@ interface TagDefinitionWidgetBase {
3405
3704
  type: TagDefinitionWidgetType;
3406
3705
  }
3407
3706
  type TagDefinitionWidget = TagDefinitionWidgetPassThrough | TagDefinitionWidgetPikaCompiledIn | TagDefinitionWidgetCustomCompiledIn | TagDefinitionWidgetWebComponent;
3408
- type TagWebComponentEncoding = 'gzip+base64';
3707
+ type TagWebComponentEncoding = 'gzip';
3708
+ /**
3709
+ * Preset dialog size options for web component widgets.
3710
+ * - 'fullscreen': 95vw x 90vh (default)
3711
+ * - 'large': 85vw x 80vh
3712
+ * - 'medium': 70vw x 70vh
3713
+ * - 'small': 50vw x 50vh
3714
+ */
3715
+ type WidgetDialogSizePreset = 'fullscreen' | 'large' | 'medium' | 'small';
3716
+ /**
3717
+ * Custom dimensions for dialog sizing.
3718
+ * Values must be viewport-relative units (vh, vw, vmin, vmax) or percentages.
3719
+ * Pixel values are not supported to ensure responsive behavior.
3720
+ *
3721
+ * Examples:
3722
+ * - { width: "80vw", height: "70vh" }
3723
+ * - { width: "90%", height: "85%" }
3724
+ */
3725
+ interface WidgetDialogSizeCustom {
3726
+ /**
3727
+ * Dialog width as viewport-relative unit or percentage.
3728
+ * Examples: "80vw", "90%", "85vw"
3729
+ */
3730
+ width?: string;
3731
+ /**
3732
+ * Dialog height as viewport-relative unit or percentage.
3733
+ * Examples: "70vh", "80%", "60vh"
3734
+ */
3735
+ height?: string;
3736
+ }
3737
+ /**
3738
+ * Sizing configuration for dialog rendering context.
3739
+ * Can be either a preset size or custom dimensions.
3740
+ */
3741
+ type WidgetDialogSizing = WidgetDialogSizePreset | WidgetDialogSizeCustom;
3742
+ /**
3743
+ * Sizing configuration for inline rendering context.
3744
+ * Inline widgets appear within the chat message flow.
3745
+ */
3746
+ interface WidgetInlineSizing {
3747
+ /**
3748
+ * Widget height for inline rendering.
3749
+ * Supports any valid CSS height value, or "auto" to grow to content height.
3750
+ * Defaults to "400px" if not specified.
3751
+ *
3752
+ * Special values:
3753
+ * - "auto": Widget grows to fit its content height (no fixed height constraint)
3754
+ *
3755
+ * Fixed height examples: "400px", "50vh", "500px", "30rem"
3756
+ */
3757
+ height?: string;
3758
+ /**
3759
+ * Widget width for inline rendering.
3760
+ * Reserved for future use. Currently, inline widgets always fill available width.
3761
+ *
3762
+ * Examples: "100%", "80vw", "600px"
3763
+ */
3764
+ width?: string;
3765
+ }
3766
+ /**
3767
+ * Sizing configuration for web component widgets across different rendering contexts.
3768
+ * Allows widget authors to control how their widget is sized in different visual contexts.
3769
+ */
3770
+ interface WidgetSizing {
3771
+ /**
3772
+ * Sizing for dialog (modal) rendering context.
3773
+ * When a widget is opened in a dialog, this controls its dimensions.
3774
+ *
3775
+ * Defaults to 'fullscreen' (95vw x 90vh) if not specified.
3776
+ */
3777
+ dialog?: WidgetDialogSizing;
3778
+ /**
3779
+ * Sizing for inline rendering context.
3780
+ * When a widget is rendered inline within a chat message.
3781
+ *
3782
+ * Defaults to { height: "400px" } if not specified.
3783
+ */
3784
+ inline?: WidgetInlineSizing;
3785
+ }
3409
3786
  interface TagDefinitionWebComponent {
3410
- type: 'web-component';
3411
- s3Bucket: string;
3412
- s3Key: string;
3787
+ /**
3788
+ * Direct URL to the web component JavaScript file.
3789
+ * Use this if the component is hosted externally (CDN, separate server, etc.)
3790
+ *
3791
+ * Either `url` OR `s3` must be provided, but not both.
3792
+ */
3793
+ url?: string;
3794
+ /**
3795
+ * S3 location of the web component JavaScript file in the Pika S3 bucket.
3796
+ * If provided, the system will serve it via /api/webcomponent/:scope/:tag
3797
+ *
3798
+ * Either `url` OR `s3` must be provided, but not both.
3799
+ */
3800
+ s3?: {
3801
+ /** Must be the Pika system S3 bucket (retrieved from SSM parameter) */
3802
+ s3Bucket: string;
3803
+ /** Must follow pattern: wc/${scope}/fileName.js.gz */
3804
+ s3Key: string;
3805
+ };
3806
+ /**
3807
+ * The actual custom element name that the JavaScript file defines.
3808
+ * This is the name used in customElements.define() in the JavaScript file.
3809
+ *
3810
+ * If not provided, defaults to `${scope}.${tag}` (e.g., "pika.mock-spotlight-1").
3811
+ *
3812
+ * Use this when:
3813
+ * - The JavaScript file defines a custom element with a different name than the tag
3814
+ * - Multiple tag definitions share the same JavaScript file that defines one custom element
3815
+ * - A JavaScript bundle file defines multiple custom elements
3816
+ *
3817
+ * Examples:
3818
+ * - "hello-world" for a file that calls customElements.define("hello-world", ...)
3819
+ * - "my-widget" for a file that calls customElements.define("my-widget", ...)
3820
+ */
3821
+ customElementName?: string;
3822
+ /**
3823
+ * Optional sizing configuration for this widget across different rendering contexts.
3824
+ *
3825
+ * If not provided, defaults are:
3826
+ * - dialog: 'fullscreen' (95vw x 90vh)
3827
+ * - inline: { height: "400px" }
3828
+ *
3829
+ * Examples:
3830
+ * ```typescript
3831
+ * // Preset dialog size
3832
+ * sizing: { dialog: 'medium', inline: { height: '300px' } }
3833
+ *
3834
+ * // Custom dialog size
3835
+ * sizing: { dialog: { width: '80vw', height: '60vh' } }
3836
+ *
3837
+ * // Only specify inline height
3838
+ * sizing: { inline: { height: '500px' } }
3839
+ * ```
3840
+ */
3841
+ sizing?: WidgetSizing;
3413
3842
  encoding: TagWebComponentEncoding;
3414
3843
  mediaType: 'application/javascript';
3415
3844
  encodedSizeBytes: number;
3416
- /** Hash of EXACT S3 object bytes (post-encoding) */
3845
+ /**
3846
+ * Hash of the GZIPPED file bytes as stored in S3 (NOT the decompressed JavaScript).
3847
+ * This hash is used for integrity validation when serving the file from S3.
3848
+ * When uploading to S3: hash = SHA256(gzippedBytes).toBase64()
3849
+ * When serving: compare stored hash to SHA256(gzippedBytesFromS3).toBase64()
3850
+ */
3417
3851
  encodedSha256Base64: string;
3418
3852
  }
3419
3853
  interface TagDefinitionCreateOrUpdateRequest {
@@ -3430,26 +3864,31 @@ interface TagDefinitionCreateOrUpdateResponse {
3430
3864
  tagDefinition: TagDefinition<TagDefinitionWidget>;
3431
3865
  }
3432
3866
  /**
3433
- * You don't have to provide anything in this request if you don't want to. If you don't pass in tagsDesire...
3867
+ * Search for tag definitions with two primary modes:
3434
3868
  *
3435
- * If this is being used in the context of admin API then
3436
- * you will get all tag definitions. If this is being used in the context of a chat app user, then you will get all tag defs not disabled.
3869
+ * MODE 1 - Get specific tags (optionally including globals):
3870
+ * - Pass tagsDesired array for specific tags to retrieve
3871
+ * - Set includeGlobal=true to also include all global tags
3872
+ * - Uses primary key lookup (scope + tag) for specified tags
3873
+ * - Uses GSI (scope-status-index) for global tags if includeGlobal=true
3874
+ * - Returns requested tags + global tags (if includeGlobal=true)
3437
3875
  *
3876
+ * MODE 2 - Get all tags:
3877
+ * - Don't pass tagsDesired or includeGlobal
3878
+ * - Scans entire table with pagination
3879
+ * - Returns all tag definitions
3438
3880
  *
3439
- * If you do pass in tagsDesired, then our dynamodb query will scan the table for all rows (should be performant since there won't be more than a
3440
- * few hundred tag defs at absolute most) and then will filter them to only those that match the tagsDesired. Note if this is being called in the
3441
- * context of a chat app user, then you will get all tag defs not disabled even if you pass in tagsDesired.
3442
- *
3443
- * Instructions can be big so unless you ask for them, we will not return them.
3881
+ * If used in admin context, returns all tag definitions (including disabled/retired).
3882
+ * If used in chat app context, filters to only 'enabled' status.
3444
3883
  */
3445
3884
  interface TagDefinitionSearchRequest {
3885
+ /** Specific tags to retrieve by scope+tag */
3446
3886
  tagsDesired?: TagDefinitionLite[];
3447
- /** If not true, instructions will not be returned to save space. */
3887
+ /** If true, also includes all global tags (usageMode='global') in addition to tagsDesired */
3888
+ includeGlobal?: boolean;
3889
+ /** If not true, instructions will not be returned to save space */
3448
3890
  includeInstructions?: boolean;
3449
- /**
3450
- * If you pass in a pagination token, we will return the next page of tag defs. Be sure to include your original
3451
- * request (tagsDesired, includeInstructions) if they were present in the original request.
3452
- */
3891
+ /** Pagination token for continued queries */
3453
3892
  paginationToken?: Record<string, any> | undefined;
3454
3893
  }
3455
3894
  interface TagDefinitionSearchResponse {
@@ -3599,5 +4038,198 @@ interface ShowToastOptions {
3599
4038
  type ShowToastFn = (message: string, options: ShowToastOptions) => void;
3600
4039
  declare const ShareSessionStateList: readonly ["disable-share-feature", "shared-by-me", "shared-by-someone-else", "not-shared"];
3601
4040
  type ShareSessionState = (typeof ShareSessionStateList)[number];
4041
+ /**
4042
+ * Options for invokeAgentAsComponent() method
4043
+ */
4044
+ interface InvokeAgentAsComponentOptions {
4045
+ /**
4046
+ * Callback for streaming traces from the agent
4047
+ */
4048
+ onTrace?: (trace: any) => void;
4049
+ /**
4050
+ * Callback for progress updates (partial JSON text as it streams)
4051
+ */
4052
+ onProgress?: (partialText: string) => void;
4053
+ /**
4054
+ * Callback for agent thinking/rationale
4055
+ */
4056
+ onThinking?: (rationale: string) => void;
4057
+ /**
4058
+ * Callback for tool invocations
4059
+ */
4060
+ onToolCall?: (toolCall: {
4061
+ name: string;
4062
+ params: any;
4063
+ }) => void;
4064
+ /**
4065
+ * Whether to include full traces in callbacks (default: false)
4066
+ */
4067
+ includeTraces?: boolean;
4068
+ /**
4069
+ * Request timeout in milliseconds (default: 60000)
4070
+ */
4071
+ timeout?: number;
4072
+ /**
4073
+ * The source of the converse request. Defaults to 'user'. The composite key chat_app_sk looks like this:
4074
+ *
4075
+ * ${chatAppId}#${source}#${updateDate}
4076
+ *
4077
+ * The source in the composite key here will only ever be either `user` or `component`. If this attribute's value is missing or is `user` or `component-as-user`,
4078
+ * then the composite key will be set to `user` so when we query on behalf of the user, we will get all sessions for that user.
4079
+ */
4080
+ source: ConverseSource;
4081
+ }
4082
+ /**
4083
+ * Action button that appears in the widget's chrome (title bar, toolbar, etc.)
4084
+ *
4085
+ * @example
4086
+ * ```js
4087
+ * const action: WidgetAction = {
4088
+ * id: 'refresh',
4089
+ * title: 'Refresh data',
4090
+ * iconSvg: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">...</svg>',
4091
+ * callback: async () => { await fetchData(); }
4092
+ * };
4093
+ * ```
4094
+ */
4095
+ interface WidgetAction {
4096
+ /** Unique identifier for this action */
4097
+ id: string;
4098
+ /** Tooltip/label for the action (also button text in dialog context) */
4099
+ title: string;
4100
+ /** SVG markup string for the icon (e.g., from extractIconSvg() helper) */
4101
+ iconSvg: string;
4102
+ /** Whether action is currently disabled */
4103
+ disabled?: boolean;
4104
+ /** If true, renders as default/prominent button (used in dialog context) */
4105
+ primary?: boolean;
4106
+ /** Handler when clicked */
4107
+ callback: () => void | Promise<void>;
4108
+ }
4109
+ /**
4110
+ * A single action button that will appear at the top of the chat app in the title bar or
4111
+ * that will appear in a button menu that pops up when the user clicks the title bar action button.
4112
+ *
4113
+ * @example
4114
+ * ```js
4115
+ * const action: ChatAppAction = {
4116
+ * id: 'refresh',
4117
+ * title: 'Refresh',
4118
+ * iconSvg: '<svg>...</svg>',
4119
+ * callback: () => refresh()
4120
+ * };
4121
+ * ```
4122
+ */
4123
+ interface ChatAppAction {
4124
+ /** Unique identifier for this action */
4125
+ id: string;
4126
+ /** Discriminator for the type */
4127
+ type: 'action';
4128
+ /** Tooltip or menu item description for the action */
4129
+ title: string;
4130
+ /** SVG markup string for the icon (e.g., from extractIconSvg() helper) */
4131
+ iconSvg: string;
4132
+ /** Whether action is currently disabled */
4133
+ disabled?: boolean;
4134
+ /** Handler when clicked */
4135
+ callback: () => void | Promise<void>;
4136
+ }
4137
+ /**
4138
+ * The only reason to use this is to get a title for the action group.
4139
+ */
4140
+ interface ChatAppActionGroup {
4141
+ /** Discriminator for the type */
4142
+ type: 'group';
4143
+ /** Title of the action group. The whole point of an action group is to get a title above the group. */
4144
+ title: string;
4145
+ /** Actions to display in the group */
4146
+ actions: (ChatAppAction | 'separator')[];
4147
+ }
4148
+ /**
4149
+ * The elements that can be displayed in a ChatAppActionMenu.
4150
+ */
4151
+ type ChatAppActionMenuElements = ChatAppActionGroup | ChatAppAction | 'separator';
4152
+ /**
4153
+ * Widgets can register a single icon button or icon button with a menu that will appear at the top of the chat app in the title bar.
4154
+ */
4155
+ interface ChatAppActionMenu {
4156
+ /** Unique identifier for this action */
4157
+ id: string;
4158
+ /** Tooltip/label for the action (also button text in dialog context) */
4159
+ title: string;
4160
+ /** SVG markup string for the icon (e.g., from extractIconSvg() helper) */
4161
+ iconSvg: string;
4162
+ /** Whether the action menu is currently disabled */
4163
+ disabled?: boolean;
4164
+ /**
4165
+ * Actions to display in the menu
4166
+ * Here are some common examples:
4167
+ * - [
4168
+ * { type: 'action', id: 'refresh', title: 'Refresh', iconSvg: '<svg>...</svg>', callback: () => refresh() },
4169
+ * 'separator',
4170
+ * { id: 'settings', title: 'Settings', iconSvg: '<svg>...</svg>', callback: () => showSettings() }
4171
+ * ]
4172
+ * - [
4173
+ * { type: 'group', title: 'Settings', actions: [
4174
+ * { type: 'action', id: 'refresh', title: 'Refresh', iconSvg: '<svg>...</svg>', callback: () => refresh() },
4175
+ * 'separator',
4176
+ * { type: 'action', id: 'settings', title: 'Settings', iconSvg: '<svg>...</svg>', callback: () => showSettings() }
4177
+ * ] }
4178
+ * ]
4179
+ */
4180
+ actions: ChatAppActionMenuElements[];
4181
+ }
4182
+ /**
4183
+ * Metadata that widgets register with the parent app
4184
+ *
4185
+ * @example
4186
+ * ```js
4187
+ * const metadata: WidgetMetadata = {
4188
+ * title: 'My Widget',
4189
+ * iconSvg: '<svg>...</svg>',
4190
+ * iconColor: '#001F3F',
4191
+ * actions: [
4192
+ * { id: 'refresh', title: 'Refresh', iconSvg: '<svg>...</svg>', callback: () => refresh() }
4193
+ * ]
4194
+ * };
4195
+ * ```
4196
+ */
4197
+ interface WidgetMetadata {
4198
+ /** Widget title shown in chrome */
4199
+ title: string;
4200
+ /** Optional icon SVG markup for the widget title */
4201
+ iconSvg?: string;
4202
+ /** Optional color for the widget icon (hex, rgb, or CSS color name) */
4203
+ iconColor?: string;
4204
+ /** Optional action buttons */
4205
+ actions?: WidgetAction[];
4206
+ /** Optional loading status */
4207
+ loadingStatus?: {
4208
+ loading: boolean;
4209
+ loadingMsg?: string;
4210
+ };
4211
+ }
4212
+ /**
4213
+ * Internal state tracked for each widget instance
4214
+ */
4215
+ interface WidgetMetadataState extends WidgetMetadata {
4216
+ /** Unique instance ID for this widget */
4217
+ instanceId: string;
4218
+ /** Widget scope (e.g., 'weather', 'pika') */
4219
+ scope: string;
4220
+ /** Widget tag (e.g., 'favorite-cities') */
4221
+ tag: string;
4222
+ /** Rendering context (spotlight, canvas, dialog, inline) */
4223
+ renderingContext: WidgetRenderingContextType;
4224
+ }
4225
+ interface IUserWidgetDataStoreState {
4226
+ readonly initialized: boolean;
4227
+ readonly data: UserWidgetData | undefined;
4228
+ readonly showToast: ShowToastFn;
4229
+ refreshDataFromServer(): Promise<void>;
4230
+ getValue<T>(key: string): Promise<T | undefined>;
4231
+ setValue(key: string, value: unknown): Promise<void>;
4232
+ deleteValue(key: string): Promise<void>;
4233
+ }
3602
4234
 
3603
- export { type AccessRule, type AccessRules, Accurate, AccurateWithStatedAssumptions, AccurateWithUnstatedAssumptions, type AddChatSessionFeedbackAdminRequest, type AddChatSessionFeedbackRequest, type AddChatSessionFeedbackResponse, type AgentAndTools, type AgentDataRequest, type AgentDataResponse, type AgentDefinition, type AgentDefinitionForCreate, type AgentDefinitionForIdempotentCreateOrUpdate, type AgentDefinitionForUpdate, type AgentFramework, type AgentInstructionAssistanceFeature, type AgentInstructionAssistanceFeatureForChatApp, type AgentInstructionChatAppOverridableFeature, type ApplyRulesAs, type AssistantMessageContent, type AssistantRationaleContent, type Attachment, type AuthenticateResult, type AuthenticatedUser, type BaseRequestData, type BaseStackConfig, type ChatApp, type ChatAppDataRequest, type ChatAppDataResponse, type ChatAppFeature, type ChatAppForCreate, type ChatAppForIdempotentCreateOrUpdate, type ChatAppForUpdate, type ChatAppLite, type ChatAppMode, type ChatAppOverridableFeatures, type ChatAppOverridableFeaturesForConverseFn, type ChatAppOverride, type ChatAppOverrideDdb, type ChatAppOverrideForCreateOrUpdate, type ChatDisclaimerNoticeFeature, type ChatDisclaimerNoticeFeatureForChatApp, type ChatMessage, type ChatMessageFile, type ChatMessageFileBase, ChatMessageFileLocationType, type ChatMessageFileS3, ChatMessageFileUseCase, type ChatMessageForCreate, type ChatMessageForRendering, type ChatMessageResponse, type ChatMessageUsage, type ChatMessagesResponse, type ChatSession, type ChatSessionFeedback, type ChatSessionFeedbackForCreate, type ChatSessionFeedbackForUpdate, type ChatSessionForCreate, type ChatSessionLiteForUpdate, type ChatSessionResponse, type ChatSessionsResponse, type ChatTitleUpdateRequest, type ChatUser, type ChatUserAddOrUpdateResponse, type ChatUserFeature, type ChatUserFeatureBase, type ChatUserLite, type ChatUserResponse, type ChatUserSearchResponse, type ClearConverseLambdaCacheRequest, type ClearConverseLambdaCacheResponse, type ClearConverseLambdaCacheType, ClearConverseLambdaCacheTypes, type ClearSvelteKitCacheType, ClearSvelteKitCacheTypes, type ClearSvelteKitCachesRequest, type ClearSvelteKitCachesResponse, type ClearUserOverrideDataRequest, type ClearUserOverrideDataResponse, type CompanyType, type ComponentTagDefinition, ContentAdminCommand, type ContentAdminCommandRequestBase, type ContentAdminCommandResponseBase, type ContentAdminData, type ContentAdminRequest, type ContentAdminResponse, type ContentAdminSiteFeature, type ConverseInvocationMode, ConverseInvocationModes, type ConverseRequest, type ConverseRequestWithCommand, type CreateAgentRequest, type CreateChatAppRequest, type CreateOrUpdateChatAppOverrideRequest, type CreateOrUpdateChatAppOverrideResponse, type CreateOrUpdateMockAgentRequest, type CreateOrUpdateMockAgentResponse, type CreateOrUpdateMockChatAppRequest, type CreateOrUpdateMockChatAppResponse, type CreateOrUpdateMockSessionRequest, type CreateOrUpdateMockSessionResponse, type CreateOrUpdateMockToolRequest, type CreateOrUpdateMockToolResponse, type CreateOrUpdateMockUserRequest, type CreateOrUpdateMockUserResponse, type CreateOrUpdateTagDefinitionAdminRequest, type CreateSharedSessionRequest, type CreateSharedSessionResponse, type CreateToolRequest, type CustomDataUiRepresentation, DEFAULT_EVENT_EXPIRY_DURATION, DEFAULT_MAX_K_MATCHES_PER_STRATEGY, DEFAULT_MAX_MEMORY_RECORDS_PER_PROMPT, DEFAULT_MEMORY_STRATEGIES, type DeleteAllMockAgentsRequest, type DeleteAllMockAgentsResponse, type DeleteAllMockChatAppsRequest, type DeleteAllMockChatAppsResponse, type DeleteAllMockDataRequest, type DeleteAllMockDataResponse, type DeleteAllMockPinnedSessionsRequest, type DeleteAllMockPinnedSessionsResponse, type DeleteAllMockSessionsRequest, type DeleteAllMockSessionsResponse, type DeleteAllMockSharedSessionVisitsRequest, type DeleteAllMockSharedSessionVisitsResponse, type DeleteAllMockToolsRequest, type DeleteAllMockToolsResponse, type DeleteAllMockUsersRequest, type DeleteAllMockUsersResponse, type DeleteChatAppOverrideRequest, type DeleteChatAppOverrideResponse, type DeleteMockAgentRequest, type DeleteMockAgentResponse, type DeleteMockChatAppRequest, type DeleteMockChatAppResponse, type DeleteMockDataRequest, type DeleteMockDataResponse, type DeleteMockSessionRequest, type DeleteMockSessionResponse, type DeleteMockToolRequest, type DeleteMockToolResponse, type DeleteMockUserRequest, type DeleteMockUserResponse, type DeleteTagDefinitionAdminRequest, EndToEndFeatureIdList, type EndToEndFeatureIdType, type EntityFeatureForChatApp, type EntitySiteFeature, type ExecutionType, FEATURE_NAMES, FEEDBACK_INTERNAL_COMMENT_STATUS, FEEDBACK_INTERNAL_COMMENT_STATUS_VALUES, FEEDBACK_INTERNAL_COMMENT_TYPE, FEEDBACK_INTERNAL_COMMENT_TYPE_VALUES, type Feature, type FeatureError, FeatureIdList, type FeatureIdType, type FeatureType, FeatureTypeArr, type FeedbackInternalComment, type FeedbackInternalCommentStatus, type FeedbackInternalCommentType, type FileUploadFeature, type FileUploadFeatureForChatApp, type GetAgentRequest, type GetAgentResponse, type GetAllAgentsAdminRequest, type GetAllAgentsAdminResponse, type GetAllChatAppsAdminRequest, type GetAllChatAppsAdminResponse, type GetAllMemoryRecordsAdminRequest, type GetAllMemoryRecordsAdminResponse, type GetAllMockAgentsRequest, type GetAllMockAgentsResponse, type GetAllMockChatAppsRequest, type GetAllMockChatAppsResponse, type GetAllMockDataRequest, type GetAllMockDataResponse, type GetAllMockPinnedSessionsRequest, type GetAllMockPinnedSessionsResponse, type GetAllMockSessionsRequest, type GetAllMockSessionsResponse, type GetAllMockSharedSessionVisitsRequest, type GetAllMockSharedSessionVisitsResponse, type GetAllMockToolsRequest, type GetAllMockToolsResponse, type GetAllMockUsersRequest, type GetAllMockUsersResponse, type GetAllToolsAdminRequest, type GetAllToolsAdminResponse, type GetChatAppsByRulesRequest, type GetChatAppsByRulesResponse, type GetChatMessagesAsAdminRequest, type GetChatMessagesAsAdminResponse, type GetChatSessionFeedbackResponse, type GetChatUserPrefsResponse, type GetInitialDataRequest, type GetInitialDataResponse, type GetInitialDialogDataRequest, type GetInitialDialogDataResponse, type GetInstructionAssistanceConfigFromSsmRequest, type GetInstructionAssistanceConfigFromSsmResponse, type GetInstructionsAddedForUserMemoryAdminRequest, type GetInstructionsAddedForUserMemoryAdminResponse, type GetInstructionsAddedForUserMemoryRequest, type GetInstructionsAddedForUserMemoryResponse, type GetMockSessionByUserIdAndSessionIdRequest, type GetMockSessionByUserIdAndSessionIdResponse, type GetPinnedSessionsRequest, type GetPinnedSessionsResponse, type GetRecentSharedRequest, type GetRecentSharedResponse, type GetValuesForAutoCompleteRequest, type GetValuesForAutoCompleteResponse, type GetValuesForContentAdminAutoCompleteRequest, type GetValuesForContentAdminAutoCompleteResponse, type GetValuesForEntityAutoCompleteRequest, type GetValuesForEntityAutoCompleteResponse, type GetValuesForUserAutoCompleteRequest, type GetValuesForUserAutoCompleteResponse, type GetViewingContentForUserResponse, type HistoryFeature, type HomePageLinksToChatAppsSiteFeature, type HomePageSiteFeature, INSIGHT_STATUS_NEEDS_INSIGHTS_ANALYSIS, Inaccurate, type InlineToolDefinition, type InsightStatusNeedsInsightsAnalysis, type InsightsSearchParams, type InstructionAssistanceConfig, type InstructionAugmentationFeature, type InstructionAugmentationFeatureForChatApp, type InstructionAugmentationScopeType, type InstructionAugmentationScopeTypeDisplayName, InstructionAugmentationScopeTypeDisplayNames, InstructionAugmentationScopeTypes, type InstructionAugmentationType, type InstructionAugmentationTypeDisplayName, InstructionAugmentationTypeDisplayNames, InstructionAugmentationTypes, type InstructionFeature, type InvocationScopes, type KnowledgeBase, type LambdaToolDefinition, type LifecycleStatus, type LogoutFeature, type LogoutFeatureForChatApp, type McpToolDefinition, type MemoryContent, type MemoryQueryOptions, type MessageSegment, type MessageSegmentBase, MessageSource, type NameValueDescTriple, type NameValuePair, type OAuth, type PagedRecordsResult, type PikaConfig, type PikaStack, type PikaUserRole, PikaUserRoles, type PinSessionRequest, type PinSessionResponse, type PinnedObjAndChatSession, type PinnedSession, type PinnedSessionDynamoDb, type PromptInputFieldLabelFeature, type PromptInputFieldLabelFeatureForChatApp, type RecordOrUndef, type RecordShareVisitRequest, type RecordShareVisitResponse, type RefreshChatAppRequest, type RefreshChatAppResponse, type RetrievedMemoryContent, type RetrievedMemoryRecordSummary, type RetryableVerifyResponseClassification, RetryableVerifyResponseClassifications, type RevokeSharedSessionRequest, type RevokeSharedSessionResponse, type RolloutPolicy, SCORE_SEARCH_OPERATORS, SCORE_SEARCH_OPERATORS_VALUES, SESSION_FEEDBACK_SEVERITY, SESSION_FEEDBACK_SEVERITY_VALUES, SESSION_FEEDBACK_STATUS, SESSION_FEEDBACK_STATUS_VALUES, SESSION_FEEDBACK_TYPE, SESSION_FEEDBACK_TYPE_VALUES, SESSION_INSIGHT_GOAL_COMPLETION_STATUS, SESSION_INSIGHT_GOAL_COMPLETION_STATUS_VALUES, SESSION_INSIGHT_METRICS_AI_CONFIDENCE_LEVEL, SESSION_INSIGHT_METRICS_AI_CONFIDENCE_LEVEL_VALUES, SESSION_INSIGHT_METRICS_COMPLEXITY_LEVEL, SESSION_INSIGHT_METRICS_COMPLEXITY_LEVEL_VALUES, SESSION_INSIGHT_METRICS_SESSION_DURATION_ESTIMATE, SESSION_INSIGHT_METRICS_SESSION_DURATION_ESTIMATE_VALUES, SESSION_INSIGHT_METRICS_USER_EFFORT_REQUIRED, SESSION_INSIGHT_METRICS_USER_EFFORT_REQUIRED_VALUES, SESSION_INSIGHT_SATISFACTION_LEVEL, SESSION_INSIGHT_SATISFACTION_LEVEL_VALUES, SESSION_INSIGHT_USER_SENTIMENT, SESSION_INSIGHT_USER_SENTIMENT_VALUES, SESSION_SEARCH_DATE_PRESETS, SESSION_SEARCH_DATE_PRESETS_SHORT_VALUES, SESSION_SEARCH_DATE_PRESETS_VALUES, SESSION_SEARCH_DATE_TYPES, SESSION_SEARCH_DATE_TYPES_VALUES, SESSION_SEARCH_SORT_FIELDS, SESSION_SEARCH_SORT_FIELDS_VALUES, type SaveUserOverrideDataRequest, type SaveUserOverrideDataResponse, type ScoreSearchOperator, type ScoreSearchParams, type SearchAllMemoryRecordsRequest, type SearchAllMemoryRecordsResponse, type SearchAllMyMemoryRecordsRequest, type SearchAllMyMemoryRecordsResponse, type SearchSemanticDirectivesAdminRequest, type SearchSemanticDirectivesRequest, type SearchSemanticDirectivesResponse, type SearchTagDefinitionsAdminRequest, type SearchToolsRequest, type SegmentType, type SemanticDirective, type SemanticDirectiveCreateOrUpdateAdminRequest, type SemanticDirectiveCreateOrUpdateRequest, type SemanticDirectiveCreateOrUpdateResponse, type SemanticDirectiveDataRequest, type SemanticDirectiveDeleteAdminRequest, type SemanticDirectiveDeleteRequest, type SemanticDirectiveDeleteResponse, type SemanticDirectiveForCreateOrUpdate, type SemanticDirectiveScope, type SessionAttributes, type SessionAttributesWithoutToken, type SessionData, type SessionDataWithChatUserCustomDataSpreadIn, type SessionFeedbackSeverity, type SessionFeedbackStatus, type SessionFeedbackType, type SessionInsightGoalCompletionStatus, type SessionInsightMetricsAiConfidenceLevel, type SessionInsightMetricsComplexityLevel, type SessionInsightMetricsSessionDurationEstimate, type SessionInsightMetricsUserEffortRequired, type SessionInsightSatisfactionLevel, type SessionInsightScoring, type SessionInsightUsage, type SessionInsightUserSentiment, type SessionInsights, type SessionInsightsFeature, type SessionInsightsFeatureForChatApp, type SessionInsightsOpenSearchConfig, type SessionSearchAdminRequest, type SessionSearchDateFilter, type SessionSearchDatePreset, type SessionSearchDateType, type SessionSearchRequest, type SessionSearchResponse, type SessionSearchSortField, type SetChatUserPrefsRequest, type SetChatUserPrefsResponse, type ShareSessionState, ShareSessionStateList, type SharedSessionVisitHistory, type SharedSessionVisitHistoryDynamoDb, type ShowToastFn, type ShowToastOptions, type SimpleAuthenticatedUser, type SimpleOption, SiteAdminCommand, type SiteAdminCommandRequestBase, type SiteAdminCommandResponseBase, type SiteAdminFeature, type SiteAdminRequest, type SiteAdminResponse, type SiteFeatures, type StopViewingContentForUserRequest, type StopViewingContentForUserResponse, type StreamingStatus, type SuggestionsFeature, type SuggestionsFeatureForChatApp, type TagDefInJsonFile, type TagDefinition, type TagDefinitionCreateOrUpdateRequest, type TagDefinitionCreateOrUpdateResponse, type TagDefinitionDeleteRequest, type TagDefinitionDeleteResponse, type TagDefinitionForCreateOrUpdate, type TagDefinitionLite, type TagDefinitionSearchRequest, type TagDefinitionSearchResponse, type TagDefinitionWebComponent, type TagDefinitionWidget, type TagDefinitionWidgetBase, type TagDefinitionWidgetCustomCompiledIn, type TagDefinitionWidgetPassThrough, type TagDefinitionWidgetPikaCompiledIn, type TagDefinitionWidgetType, type TagDefinitionWidgetWebComponent, type TagDefinitionsJsonFile, type TagMessageSegment, type TagWebComponentEncoding, type TagsChatAppOverridableFeature, type TagsFeatureForChatApp, type TagsSiteFeature, type TextMessageSegment, type ToolDefinition, type ToolDefinitionBase, type ToolDefinitionForCreate, type ToolDefinitionForIdempotentCreateOrUpdate, type ToolDefinitionForUpdate, type ToolIdToLambdaArnMap, type ToolInvocationContent, type ToolLifecycle, type TracesFeature, type TracesFeatureForChatApp, type TypedContentWithRole, UPDATEABLE_FEEDBACK_FIELDS, type UiCustomizationFeature, type UiCustomizationFeatureForChatApp, Unclassified, type UnpinSessionRequest, type UnpinSessionResponse, type UnrevokeSharedSessionRequest, type UnrevokeSharedSessionResponse, type UpdateAgentRequest, type UpdateChatAppRequest, type UpdateChatSessionFeedbackAdminRequest, type UpdateChatSessionFeedbackRequest, type UpdateChatSessionFeedbackResponse, type UpdateToolRequest, type UpdateableAgentDefinitionFields, type UpdateableChatAppFields, type UpdateableChatAppOverrideFields, type UpdateableFeedbackFields, type UpdateableToolDefinitionFields, type UserAwsCredentials, type UserAwsCredentialsResponse, type UserChatAppRule, type UserCognitoIdentity, type UserDataOverrideFeatureForChatApp, type UserDataOverrideSettings, type UserDataOverridesSiteFeature, type UserMemoryFeature, type UserMemoryFeatureForChatApp, type UserMemoryFeatureWithMemoryInfo, UserMemoryStrategies, type UserMemoryStrategy, type UserMessageContent, type UserOverrideData, UserOverrideDataCommand, type UserOverrideDataCommandRequest, type UserOverrideDataCommandRequestBase, type UserOverrideDataCommandResponse, type UserOverrideDataCommandResponseBase, type UserPrefs, type UserRole, type UserType, UserTypes, type ValidateShareAccessRequest, type ValidateShareAccessResponse, type VerifyResponseClassification, type VerifyResponseClassificationDescription, VerifyResponseClassificationDescriptions, VerifyResponseClassifications, type VerifyResponseFeature, type VerifyResponseFeatureForChatApp, type VerifyResponseRetryableClassificationDescription, VerifyResponseRetryableClassificationDescriptions, type ViewContentForUserRequest, type ViewContentForUserResponse, type VitePreviewConfig, type ViteServerConfig };
4235
+ export { type AccessRule, type AccessRules, Accurate, AccurateWithStatedAssumptions, AccurateWithUnstatedAssumptions, type AddChatSessionFeedbackAdminRequest, type AddChatSessionFeedbackRequest, type AddChatSessionFeedbackResponse, type AgentAndTools, type AgentDataRequest, type AgentDataResponse, type AgentDefinition, type AgentDefinitionForCreate, type AgentDefinitionForIdempotentCreateOrUpdate, type AgentDefinitionForUpdate, type AgentFramework, type AgentInstructionAssistanceFeature, type AgentInstructionAssistanceFeatureForChatApp, type AgentInstructionChatAppOverridableFeature, type ApplyRulesAs, type AssistantMessageContent, type AssistantRationaleContent, type Attachment, type AuthenticateResult, type AuthenticatedUser, type BaseRequestData, type BaseStackConfig, type CanvasContextConfig, type ChatApp, type ChatAppAction, type ChatAppActionGroup, type ChatAppActionMenu, type ChatAppActionMenuElements, type ChatAppComponentConfig, type ChatAppDataRequest, type ChatAppDataResponse, type ChatAppFeature, type ChatAppForCreate, type ChatAppForIdempotentCreateOrUpdate, type ChatAppForUpdate, type ChatAppLite, type ChatAppMode, type ChatAppOverridableFeatures, type ChatAppOverridableFeaturesForConverseFn, type ChatAppOverride, type ChatAppOverrideDdb, type ChatAppOverrideForCreateOrUpdate, type ChatDisclaimerNoticeFeature, type ChatDisclaimerNoticeFeatureForChatApp, type ChatMessage, type ChatMessageFile, type ChatMessageFileBase, ChatMessageFileLocationType, type ChatMessageFileS3, ChatMessageFileUseCase, type ChatMessageForCreate, type ChatMessageForRendering, type ChatMessageResponse, type ChatMessageUsage, type ChatMessagesResponse, type ChatSession, type ChatSessionFeedback, type ChatSessionFeedbackForCreate, type ChatSessionFeedbackForUpdate, type ChatSessionForCreate, type ChatSessionLiteForUpdate, type ChatSessionResponse, type ChatSessionsResponse, type ChatTitleUpdateRequest, type ChatUser, type ChatUserAddOrUpdateResponse, type ChatUserFeature, type ChatUserFeatureBase, type ChatUserLite, type ChatUserResponse, type ChatUserSearchResponse, type ClearConverseLambdaCacheRequest, type ClearConverseLambdaCacheResponse, type ClearConverseLambdaCacheType, ClearConverseLambdaCacheTypes, type ClearSvelteKitCacheType, ClearSvelteKitCacheTypes, type ClearSvelteKitCachesRequest, type ClearSvelteKitCachesResponse, type ClearUserOverrideDataRequest, type ClearUserOverrideDataResponse, type CompanyType, type ComponentTagDefinition, ContentAdminCommand, type ContentAdminCommandRequestBase, type ContentAdminCommandResponseBase, type ContentAdminData, type ContentAdminRequest, type ContentAdminResponse, type ContentAdminSiteFeature, type ConverseInvocationMode, ConverseInvocationModes, type ConverseRequest, type ConverseRequestWithCommand, ConverseSource, type CreateAgentRequest, type CreateChatAppRequest, type CreateOrUpdateChatAppOverrideRequest, type CreateOrUpdateChatAppOverrideResponse, type CreateOrUpdateMockAgentRequest, type CreateOrUpdateMockAgentResponse, type CreateOrUpdateMockChatAppRequest, type CreateOrUpdateMockChatAppResponse, type CreateOrUpdateMockSessionRequest, type CreateOrUpdateMockSessionResponse, type CreateOrUpdateMockToolRequest, type CreateOrUpdateMockToolResponse, type CreateOrUpdateMockUserRequest, type CreateOrUpdateMockUserResponse, type CreateOrUpdateTagDefinitionAdminRequest, type CreateSharedSessionRequest, type CreateSharedSessionResponse, type CreateToolRequest, type CustomDataUiRepresentation, DEFAULT_EVENT_EXPIRY_DURATION, DEFAULT_MAX_K_MATCHES_PER_STRATEGY, DEFAULT_MAX_MEMORY_RECORDS_PER_PROMPT, DEFAULT_MEMORY_STRATEGIES, type DeleteAllMockAgentsRequest, type DeleteAllMockAgentsResponse, type DeleteAllMockChatAppsRequest, type DeleteAllMockChatAppsResponse, type DeleteAllMockDataRequest, type DeleteAllMockDataResponse, type DeleteAllMockPinnedSessionsRequest, type DeleteAllMockPinnedSessionsResponse, type DeleteAllMockSessionsRequest, type DeleteAllMockSessionsResponse, type DeleteAllMockSharedSessionVisitsRequest, type DeleteAllMockSharedSessionVisitsResponse, type DeleteAllMockToolsRequest, type DeleteAllMockToolsResponse, type DeleteAllMockUsersRequest, type DeleteAllMockUsersResponse, type DeleteChatAppOverrideRequest, type DeleteChatAppOverrideResponse, type DeleteMockAgentRequest, type DeleteMockAgentResponse, type DeleteMockChatAppRequest, type DeleteMockChatAppResponse, type DeleteMockDataRequest, type DeleteMockDataResponse, type DeleteMockSessionRequest, type DeleteMockSessionResponse, type DeleteMockToolRequest, type DeleteMockToolResponse, type DeleteMockUserRequest, type DeleteMockUserResponse, type DeleteTagDefinitionAdminRequest, type DeleteUserWidgetDataRequest, type DeleteUserWidgetDataResponse, type DialogContextConfig, EndToEndFeatureIdList, type EndToEndFeatureIdType, type EntityFeatureForChatApp, type EntitySiteFeature, type ExecutionType, FEATURE_NAMES, FEEDBACK_INTERNAL_COMMENT_STATUS, FEEDBACK_INTERNAL_COMMENT_STATUS_VALUES, FEEDBACK_INTERNAL_COMMENT_TYPE, FEEDBACK_INTERNAL_COMMENT_TYPE_VALUES, type Feature, type FeatureError, FeatureIdList, type FeatureIdType, type FeatureType, FeatureTypeArr, type FeedbackInternalComment, type FeedbackInternalCommentStatus, type FeedbackInternalCommentType, type FileUploadFeature, type FileUploadFeatureForChatApp, type GetAgentRequest, type GetAgentResponse, type GetAllAgentsAdminRequest, type GetAllAgentsAdminResponse, type GetAllChatAppsAdminRequest, type GetAllChatAppsAdminResponse, type GetAllMemoryRecordsAdminRequest, type GetAllMemoryRecordsAdminResponse, type GetAllMockAgentsRequest, type GetAllMockAgentsResponse, type GetAllMockChatAppsRequest, type GetAllMockChatAppsResponse, type GetAllMockDataRequest, type GetAllMockDataResponse, type GetAllMockPinnedSessionsRequest, type GetAllMockPinnedSessionsResponse, type GetAllMockSessionsRequest, type GetAllMockSessionsResponse, type GetAllMockSharedSessionVisitsRequest, type GetAllMockSharedSessionVisitsResponse, type GetAllMockToolsRequest, type GetAllMockToolsResponse, type GetAllMockUsersRequest, type GetAllMockUsersResponse, type GetAllToolsAdminRequest, type GetAllToolsAdminResponse, type GetChatAppsByRulesRequest, type GetChatAppsByRulesResponse, type GetChatMessagesAsAdminRequest, type GetChatMessagesAsAdminResponse, type GetChatSessionFeedbackResponse, type GetChatUserPrefsResponse, type GetInitialDataRequest, type GetInitialDataResponse, type GetInitialDialogDataRequest, type GetInitialDialogDataResponse, type GetInstructionAssistanceConfigFromSsmRequest, type GetInstructionAssistanceConfigFromSsmResponse, type GetInstructionsAddedForUserMemoryAdminRequest, type GetInstructionsAddedForUserMemoryAdminResponse, type GetInstructionsAddedForUserMemoryRequest, type GetInstructionsAddedForUserMemoryResponse, type GetMockSessionByUserIdAndSessionIdRequest, type GetMockSessionByUserIdAndSessionIdResponse, type GetPinnedSessionsRequest, type GetPinnedSessionsResponse, type GetRecentSharedRequest, type GetRecentSharedResponse, type GetUserWidgetDataRequest, type GetUserWidgetDataResponse, type GetValuesForAutoCompleteRequest, type GetValuesForAutoCompleteResponse, type GetValuesForContentAdminAutoCompleteRequest, type GetValuesForContentAdminAutoCompleteResponse, type GetValuesForEntityAutoCompleteRequest, type GetValuesForEntityAutoCompleteResponse, type GetValuesForUserAutoCompleteRequest, type GetValuesForUserAutoCompleteResponse, type GetViewingContentForUserResponse, type HistoryFeature, type HomePageLinksToChatAppsSiteFeature, type HomePageSiteFeature, INSIGHT_STATUS_NEEDS_INSIGHTS_ANALYSIS, type IUserWidgetDataStoreState, Inaccurate, type InlineContextConfig, type InlineToolDefinition, type InsightStatusNeedsInsightsAnalysis, type InsightsSearchParams, type InstructionAssistanceConfig, type InstructionAugmentationFeature, type InstructionAugmentationFeatureForChatApp, type InstructionAugmentationScopeType, type InstructionAugmentationScopeTypeDisplayName, InstructionAugmentationScopeTypeDisplayNames, InstructionAugmentationScopeTypes, type InstructionAugmentationType, type InstructionAugmentationTypeDisplayName, InstructionAugmentationTypeDisplayNames, InstructionAugmentationTypes, type InstructionFeature, type InvocationScopes, type InvokeAgentAsComponentOptions, type KnowledgeBase, type LambdaToolDefinition, type LifecycleStatus, type LogoutFeature, type LogoutFeatureForChatApp, type McpToolDefinition, type MemoryContent, type MemoryQueryOptions, type MessageSegment, type MessageSegmentBase, MessageSource, type NameValueDescTriple, type NameValuePair, type OAuth, type PagedRecordsResult, type PikaConfig, type PikaStack, type PikaUserRole, PikaUserRoles, type PinSessionRequest, type PinSessionResponse, type PinnedObjAndChatSession, type PinnedSession, type PinnedSessionDynamoDb, type PromptInputFieldLabelFeature, type PromptInputFieldLabelFeatureForChatApp, type RecordOrUndef, type RecordShareVisitRequest, type RecordShareVisitResponse, type RefreshChatAppRequest, type RefreshChatAppResponse, type RetrievedMemoryContent, type RetrievedMemoryRecordSummary, type RetryableVerifyResponseClassification, RetryableVerifyResponseClassifications, type RevokeSharedSessionRequest, type RevokeSharedSessionResponse, type RolloutPolicy, SCORE_SEARCH_OPERATORS, SCORE_SEARCH_OPERATORS_VALUES, SESSION_FEEDBACK_SEVERITY, SESSION_FEEDBACK_SEVERITY_VALUES, SESSION_FEEDBACK_STATUS, SESSION_FEEDBACK_STATUS_VALUES, SESSION_FEEDBACK_TYPE, SESSION_FEEDBACK_TYPE_VALUES, SESSION_INSIGHT_GOAL_COMPLETION_STATUS, SESSION_INSIGHT_GOAL_COMPLETION_STATUS_VALUES, SESSION_INSIGHT_METRICS_AI_CONFIDENCE_LEVEL, SESSION_INSIGHT_METRICS_AI_CONFIDENCE_LEVEL_VALUES, SESSION_INSIGHT_METRICS_COMPLEXITY_LEVEL, SESSION_INSIGHT_METRICS_COMPLEXITY_LEVEL_VALUES, SESSION_INSIGHT_METRICS_SESSION_DURATION_ESTIMATE, SESSION_INSIGHT_METRICS_SESSION_DURATION_ESTIMATE_VALUES, SESSION_INSIGHT_METRICS_USER_EFFORT_REQUIRED, SESSION_INSIGHT_METRICS_USER_EFFORT_REQUIRED_VALUES, SESSION_INSIGHT_SATISFACTION_LEVEL, SESSION_INSIGHT_SATISFACTION_LEVEL_VALUES, SESSION_INSIGHT_USER_SENTIMENT, SESSION_INSIGHT_USER_SENTIMENT_VALUES, SESSION_SEARCH_DATE_PRESETS, SESSION_SEARCH_DATE_PRESETS_SHORT_VALUES, SESSION_SEARCH_DATE_PRESETS_VALUES, SESSION_SEARCH_DATE_TYPES, SESSION_SEARCH_DATE_TYPES_VALUES, SESSION_SEARCH_SORT_FIELDS, SESSION_SEARCH_SORT_FIELDS_VALUES, type SaveUserOverrideDataRequest, type SaveUserOverrideDataResponse, type ScoreSearchOperator, type ScoreSearchParams, type SearchAllMemoryRecordsRequest, type SearchAllMemoryRecordsResponse, type SearchAllMyMemoryRecordsRequest, type SearchAllMyMemoryRecordsResponse, type SearchSemanticDirectivesAdminRequest, type SearchSemanticDirectivesRequest, type SearchSemanticDirectivesResponse, type SearchTagDefinitionsAdminRequest, type SearchToolsRequest, type SegmentType, type SemanticDirective, type SemanticDirectiveCreateOrUpdateAdminRequest, type SemanticDirectiveCreateOrUpdateRequest, type SemanticDirectiveCreateOrUpdateResponse, type SemanticDirectiveDataRequest, type SemanticDirectiveDeleteAdminRequest, type SemanticDirectiveDeleteRequest, type SemanticDirectiveDeleteResponse, type SemanticDirectiveForCreateOrUpdate, type SemanticDirectiveScope, type SessionAttributes, type SessionAttributesWithoutToken, type SessionData, type SessionDataWithChatUserCustomDataSpreadIn, type SessionFeedbackSeverity, type SessionFeedbackStatus, type SessionFeedbackType, type SessionInsightGoalCompletionStatus, type SessionInsightMetricsAiConfidenceLevel, type SessionInsightMetricsComplexityLevel, type SessionInsightMetricsSessionDurationEstimate, type SessionInsightMetricsUserEffortRequired, type SessionInsightSatisfactionLevel, type SessionInsightScoring, type SessionInsightUsage, type SessionInsightUserSentiment, type SessionInsights, type SessionInsightsFeature, type SessionInsightsFeatureForChatApp, type SessionInsightsOpenSearchConfig, type SessionSearchAdminRequest, type SessionSearchDateFilter, type SessionSearchDatePreset, type SessionSearchDateType, type SessionSearchRequest, type SessionSearchResponse, type SessionSearchSortField, type SetChatUserPrefsRequest, type SetChatUserPrefsResponse, type SetUserWidgetDataRequest, type SetUserWidgetDataResponse, type ShareSessionState, ShareSessionStateList, type SharedSessionVisitHistory, type SharedSessionVisitHistoryDynamoDb, type ShowToastFn, type ShowToastOptions, type SimpleAuthenticatedUser, type SimpleOption, SiteAdminCommand, type SiteAdminCommandRequestBase, type SiteAdminCommandResponseBase, type SiteAdminFeature, type SiteAdminRequest, type SiteAdminResponse, type SiteFeatures, type SpotlightContextConfig, type StaticContextConfig, type StaticWidgetTagDefinition, type StopViewingContentForUserRequest, type StopViewingContentForUserResponse, type StreamingStatus, type SuggestionsFeature, type SuggestionsFeatureForChatApp, TAG_DEFINITION_STATUSES, TAG_DEFINITION_USAGE_MODES, TAG_DEFINITION_WIDGET_TYPES, type TagDefInJsonFile, type TagDefinition, type TagDefinitionCreateOrUpdateRequest, type TagDefinitionCreateOrUpdateResponse, type TagDefinitionDeleteRequest, type TagDefinitionDeleteResponse, type TagDefinitionForCreateOrUpdate, type TagDefinitionLite, type TagDefinitionSearchRequest, type TagDefinitionSearchResponse, type TagDefinitionStatus, type TagDefinitionUsageMode, type TagDefinitionWebComponent, type TagDefinitionWebComponentForCreateOrUpdate, type TagDefinitionWidget, type TagDefinitionWidgetBase, type TagDefinitionWidgetCustomCompiledIn, type TagDefinitionWidgetForCreateOrUpdate, type TagDefinitionWidgetPassThrough, type TagDefinitionWidgetPikaCompiledIn, type TagDefinitionWidgetType, type TagDefinitionWidgetWebComponent, type TagDefinitionWidgetWebComponentForCreateOrUpdate, type TagDefinitionsJsonFile, type TagMessageSegment, type TagWebComponentEncoding, type TagsChatAppOverridableFeature, type TagsFeatureForChatApp, type TagsSiteFeature, type TextMessageSegment, type ToolDefinition, type ToolDefinitionBase, type ToolDefinitionForCreate, type ToolDefinitionForIdempotentCreateOrUpdate, type ToolDefinitionForUpdate, type ToolIdToLambdaArnMap, type ToolInvocationContent, type ToolLifecycle, type TracesFeature, type TracesFeatureForChatApp, type TypedContentWithRole, UPDATEABLE_FEEDBACK_FIELDS, type UiCustomizationFeature, type UiCustomizationFeatureForChatApp, Unclassified, type UnpinSessionRequest, type UnpinSessionResponse, type UnrevokeSharedSessionRequest, type UnrevokeSharedSessionResponse, type UpdateAgentRequest, type UpdateChatAppRequest, type UpdateChatSessionFeedbackAdminRequest, type UpdateChatSessionFeedbackRequest, type UpdateChatSessionFeedbackResponse, type UpdateToolRequest, type UpdateableAgentDefinitionFields, type UpdateableChatAppFields, type UpdateableChatAppOverrideFields, type UpdateableFeedbackFields, type UpdateableToolDefinitionFields, type UserAwsCredentials, type UserAwsCredentialsResponse, type UserChatAppRule, type UserCognitoIdentity, type UserDataOverrideFeatureForChatApp, type UserDataOverrideSettings, type UserDataOverridesSiteFeature, type UserMemoryFeature, type UserMemoryFeatureForChatApp, type UserMemoryFeatureWithMemoryInfo, UserMemoryStrategies, type UserMemoryStrategy, type UserMessageContent, type UserOverrideData, UserOverrideDataCommand, type UserOverrideDataCommandRequest, type UserOverrideDataCommandRequestBase, type UserOverrideDataCommandResponse, type UserOverrideDataCommandResponseBase, type UserPrefs, type UserRole, type UserType, UserTypes, type UserWidgetData, type ValidateShareAccessRequest, type ValidateShareAccessResponse, type VerifyResponseClassification, type VerifyResponseClassificationDescription, VerifyResponseClassificationDescriptions, VerifyResponseClassifications, type VerifyResponseFeature, type VerifyResponseFeatureForChatApp, type VerifyResponseRetryableClassificationDescription, VerifyResponseRetryableClassificationDescriptions, type ViewContentForUserRequest, type ViewContentForUserResponse, type VitePreviewConfig, type ViteServerConfig, WIDGET_RENDERING_CONTEXT_TYPES, type WidgetAction, type WidgetDialogSizeCustom, type WidgetDialogSizePreset, type WidgetDialogSizing, type WidgetInlineSizing, type WidgetMetadata, type WidgetMetadataState, type WidgetRenderingContextType, type WidgetRenderingContexts, type WidgetSizing };