pika-shared 1.4.0 → 1.4.2

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.
Files changed (57) hide show
  1. package/dist/index.js.map +1 -1
  2. package/dist/index.mjs.map +1 -1
  3. package/dist/types/chatbot/bedrock-lambda-error.js.map +1 -1
  4. package/dist/types/chatbot/bedrock-lambda-error.mjs.map +1 -1
  5. package/dist/types/chatbot/chatbot-types.d.mts +421 -24
  6. package/dist/types/chatbot/chatbot-types.d.ts +421 -24
  7. package/dist/types/chatbot/chatbot-types.js +9 -1
  8. package/dist/types/chatbot/chatbot-types.js.map +1 -1
  9. package/dist/types/chatbot/chatbot-types.mjs +6 -2
  10. package/dist/types/chatbot/chatbot-types.mjs.map +1 -1
  11. package/dist/types/chatbot/webcomp-types.d.mts +326 -0
  12. package/dist/types/chatbot/webcomp-types.d.ts +326 -0
  13. package/dist/types/chatbot/webcomp-types.js +4 -0
  14. package/dist/types/chatbot/webcomp-types.js.map +1 -0
  15. package/dist/types/chatbot/webcomp-types.mjs +3 -0
  16. package/dist/types/chatbot/webcomp-types.mjs.map +1 -0
  17. package/dist/util/api-gateway-utils.js.map +1 -1
  18. package/dist/util/api-gateway-utils.mjs.map +1 -1
  19. package/dist/util/bad-request-error.js.map +1 -1
  20. package/dist/util/bad-request-error.mjs.map +1 -1
  21. package/dist/util/bedrock.js.map +1 -1
  22. package/dist/util/bedrock.mjs.map +1 -1
  23. package/dist/util/chatbot-shared-utils.js.map +1 -1
  24. package/dist/util/chatbot-shared-utils.mjs.map +1 -1
  25. package/dist/util/forbidden-error.js.map +1 -1
  26. package/dist/util/forbidden-error.mjs.map +1 -1
  27. package/dist/util/http-status-error.js.map +1 -1
  28. package/dist/util/http-status-error.mjs.map +1 -1
  29. package/dist/util/icon-utils.d.mts +12 -0
  30. package/dist/util/icon-utils.d.ts +12 -0
  31. package/dist/util/icon-utils.js +26 -0
  32. package/dist/util/icon-utils.js.map +1 -0
  33. package/dist/util/icon-utils.mjs +24 -0
  34. package/dist/util/icon-utils.mjs.map +1 -0
  35. package/dist/util/instruction-assistance-utils.d.mts +28 -1
  36. package/dist/util/instruction-assistance-utils.d.ts +28 -1
  37. package/dist/util/instruction-assistance-utils.js +56 -8
  38. package/dist/util/instruction-assistance-utils.js.map +1 -1
  39. package/dist/util/instruction-assistance-utils.mjs +55 -9
  40. package/dist/util/instruction-assistance-utils.mjs.map +1 -1
  41. package/dist/util/jwt.js.map +1 -1
  42. package/dist/util/jwt.mjs.map +1 -1
  43. package/dist/util/server-client-utils.js.map +1 -1
  44. package/dist/util/server-client-utils.mjs.map +1 -1
  45. package/dist/util/server-utils.js +6 -2
  46. package/dist/util/server-utils.js.map +1 -1
  47. package/dist/util/server-utils.mjs +6 -2
  48. package/dist/util/server-utils.mjs.map +1 -1
  49. package/dist/util/unauthorized-error.js.map +1 -1
  50. package/dist/util/unauthorized-error.mjs.map +1 -1
  51. package/dist/util/wc-utils.d.mts +22 -0
  52. package/dist/util/wc-utils.d.ts +22 -0
  53. package/dist/util/wc-utils.js +26 -0
  54. package/dist/util/wc-utils.js.map +1 -0
  55. package/dist/util/wc-utils.mjs +24 -0
  56. package/dist/util/wc-utils.mjs.map +1 -0
  57. package/package.json +1 -1
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAUO,IAAM,WAAc,GAAA;AAAA,EACvB,IAAM,EAAA,aAAA;AAAA,EACN,WAAa,EAAA;AACjB","file":"index.js","sourcesContent":["/**\n * pika-shared package\n *\n * This package contains shared types, utilities, and other code used across the Pika project.\n *\n * You can import specific modules using direct paths:\n * import { ChatUser } from 'pika-shared/types/chatbot/chatbot';\n * import { apiGatewayFunctionDecorator } from 'pika-shared/util/api-gateway-utils';\n */\n\nexport const packageInfo = {\n name: 'pika-shared',\n description: 'Shared utilities and types for Pika project'\n};\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAUO,IAAM,WAAA,GAAc;AAAA,EACvB,IAAA,EAAM,aAAA;AAAA,EACN,WAAA,EAAa;AACjB","file":"index.js","sourcesContent":["/**\n * pika-shared package\n *\n * This package contains shared types, utilities, and other code used across the Pika project.\n *\n * You can import specific modules using direct paths:\n * import { ChatUser } from 'pika-shared/types/chatbot/chatbot';\n * import { apiGatewayFunctionDecorator } from 'pika-shared/util/api-gateway-utils';\n */\n\nexport const packageInfo = {\n name: 'pika-shared',\n description: 'Shared utilities and types for Pika project'\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAUO,IAAM,WAAc,GAAA;AAAA,EACvB,IAAM,EAAA,aAAA;AAAA,EACN,WAAa,EAAA;AACjB","file":"index.mjs","sourcesContent":["/**\n * pika-shared package\n *\n * This package contains shared types, utilities, and other code used across the Pika project.\n *\n * You can import specific modules using direct paths:\n * import { ChatUser } from 'pika-shared/types/chatbot/chatbot';\n * import { apiGatewayFunctionDecorator } from 'pika-shared/util/api-gateway-utils';\n */\n\nexport const packageInfo = {\n name: 'pika-shared',\n description: 'Shared utilities and types for Pika project'\n};\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAUO,IAAM,WAAA,GAAc;AAAA,EACvB,IAAA,EAAM,aAAA;AAAA,EACN,WAAA,EAAa;AACjB","file":"index.mjs","sourcesContent":["/**\n * pika-shared package\n *\n * This package contains shared types, utilities, and other code used across the Pika project.\n *\n * You can import specific modules using direct paths:\n * import { ChatUser } from 'pika-shared/types/chatbot/chatbot';\n * import { apiGatewayFunctionDecorator } from 'pika-shared/util/api-gateway-utils';\n */\n\nexport const packageInfo = {\n name: 'pika-shared',\n description: 'Shared utilities and types for Pika project'\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/types/chatbot/bedrock-lambda-error.ts"],"names":[],"mappings":";;;AAOa,IAAA,kBAAA,GAAN,cAAiC,KAAM,CAAA;AAAA,EAC1C,YAAY,OAAiB,EAAA;AACzB,IAAA,KAAA,CAAM,OAAO,CAAA;AAAA;AAErB","file":"bedrock-lambda-error.js","sourcesContent":["/**\n * This error is used to allow us to distinguish between errors that are\n * expected to be returned to the user and errors that are unexpected.\n *\n * These errors are caught in the Bedrock Lambda and converted into a\n * BedrockLambdaResponse object using the message as the body.\n */\nexport class BedrockLambdaError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../src/types/chatbot/bedrock-lambda-error.ts"],"names":[],"mappings":";;;AAOO,IAAM,kBAAA,GAAN,cAAiC,KAAA,CAAM;AAAA,EAC1C,YAAY,OAAA,EAAiB;AACzB,IAAA,KAAA,CAAM,OAAO,CAAA;AAAA,EACjB;AACJ","file":"bedrock-lambda-error.js","sourcesContent":["/**\n * This error is used to allow us to distinguish between errors that are\n * expected to be returned to the user and errors that are unexpected.\n *\n * These errors are caught in the Bedrock Lambda and converted into a\n * BedrockLambdaResponse object using the message as the body.\n */\nexport class BedrockLambdaError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/types/chatbot/bedrock-lambda-error.ts"],"names":[],"mappings":";AAOa,IAAA,kBAAA,GAAN,cAAiC,KAAM,CAAA;AAAA,EAC1C,YAAY,OAAiB,EAAA;AACzB,IAAA,KAAA,CAAM,OAAO,CAAA;AAAA;AAErB","file":"bedrock-lambda-error.mjs","sourcesContent":["/**\n * This error is used to allow us to distinguish between errors that are\n * expected to be returned to the user and errors that are unexpected.\n *\n * These errors are caught in the Bedrock Lambda and converted into a\n * BedrockLambdaResponse object using the message as the body.\n */\nexport class BedrockLambdaError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../src/types/chatbot/bedrock-lambda-error.ts"],"names":[],"mappings":";AAOO,IAAM,kBAAA,GAAN,cAAiC,KAAA,CAAM;AAAA,EAC1C,YAAY,OAAA,EAAiB;AACzB,IAAA,KAAA,CAAM,OAAO,CAAA;AAAA,EACjB;AACJ","file":"bedrock-lambda-error.mjs","sourcesContent":["/**\n * This error is used to allow us to distinguish between errors that are\n * expected to be returned to the user and errors that are unexpected.\n *\n * These errors are caught in the Bedrock Lambda and converted into a\n * BedrockLambdaResponse object using the message as the body.\n */\nexport class BedrockLambdaError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n"]}
@@ -454,6 +454,20 @@ type UserRole = PikaUserRole | (string & {
454
454
  __pika?: never;
455
455
  });
456
456
  type RecordOrUndef = Record<string, string | undefined> | undefined;
457
+ interface UserCognitoIdentity {
458
+ cognitoIdentityId: string;
459
+ cognitoAccessToken: string;
460
+ }
461
+ interface UserAwsCredentials {
462
+ accessKeyId: string;
463
+ secretKey: string;
464
+ sessionToken: string;
465
+ expiration: string;
466
+ }
467
+ interface UserAwsCredentialsResponse {
468
+ success: boolean;
469
+ awsCredentials: UserAwsCredentials;
470
+ }
457
471
  /**
458
472
  * Represents a user in the chat system with their associated features and preferences.
459
473
  * This is saved in the chat user database.
@@ -646,12 +660,15 @@ interface AgentInstructionChatAppOverridableFeature {
646
660
  completeExampleInstructionLine?: string;
647
661
  jsonOnlyImperativeInstructionEnabled: boolean;
648
662
  jsonOnlyImperativeInstructionLine?: string;
663
+ includeTypescriptBackedOutputFormattingRequirements: boolean;
664
+ typescriptBackedOutputFormattingRequirements?: string;
649
665
  }
650
666
  interface InstructionAssistanceConfig {
651
667
  outputFormattingRequirements: string;
652
668
  tagInstructions?: string;
653
669
  completeExampleInstructionLine: string;
654
670
  jsonOnlyImperativeInstructionLine: string;
671
+ typescriptBackedOutputFormattingRequirements: string;
655
672
  }
656
673
  interface TagsChatAppOverridableFeature {
657
674
  tagsEnabled: TagDefinitionLite[];
@@ -758,17 +775,50 @@ interface ConverseRequest extends BaseRequestData {
758
775
  * If provided, this will be used to determine the invocation mode of the converse request.
759
776
  *
760
777
  * If 'chat-app', then the converse request is a chat app request.
778
+ *
761
779
  * If 'direct-agent-invoke', then the converse request is a direct agent invoke request and is not
762
780
  * in the context of a chat app. Since we are adding mode after the fact, if mode is provided
763
781
  * and it doesn't match what we expect, we will throw an error (chat-app requires that chatAppId is provided
764
782
  * and direct-agent-invoke requires that chatAppId is not provided).
765
783
  *
784
+ * If 'chat-app-component', then the converse request is coming from a chat app component and is not
785
+ * being initiated by the end user. This is used to allow the component to invoke the agent directly
786
+ * without the need for the end user to initiate the request. These do not show up as user-created sessions
787
+ * when we query for the users's sessions in this chat app.
788
+ *
789
+ * They are associated with the user and the chat app and the component in question. When this mode is used,
790
+ * the caller must provide the chatAppId and the agentId and the complete "tag" that represents the component doing the calling.
791
+ * Tag definitions have both a scope and a tag. Further, the `componentAgentInstructionName` must also provide so we
792
+ * know which set of instructions from the tag definition to use.
793
+ *
766
794
  * If invocationMode is not provided, uses the presence or absence of chatAppId to determine the mode (if chatAppId
767
795
  * is provided, then it's a chat app request, otherwise it's a direct agent invoke request).
768
796
  */
769
797
  invocationMode?: ConverseInvocationMode;
798
+ /**
799
+ * When invocationMode is 'chat-app-component', then this is the requiredconfiguration for the chat app component invocation.
800
+ */
801
+ chatAppComponentConfig?: ChatAppComponentConfig;
802
+ }
803
+ /**
804
+ * This is the configuration for a chat app component invocation to the converse lambda function.
805
+ */
806
+ interface ChatAppComponentConfig {
807
+ /**
808
+ * The name of the set of instructions to use for the component invocation.
809
+ * This is the key in the `componentAgentInstructionsMd` record in the tag definition as in
810
+ *
811
+ * `tagDef.componentAgentInstructionsMd[componentAgentInstructionName]`
812
+ */
813
+ componentAgentInstructionName: string;
814
+ /**
815
+ * The tag definition that represents the component doing the calling. We use this to look up the
816
+ * right tag definition so we can get the correct instructions. Note that you will get an exception
817
+ * if the tag definition isn't associated with this chat app or isn't marked as `chat-app-global`.
818
+ */
819
+ componentTagDefinition: TagDefinitionLite;
770
820
  }
771
- declare const ConverseInvocationModes: readonly ["chat-app", "direct-agent-invoke"];
821
+ declare const ConverseInvocationModes: readonly ["chat-app", "direct-agent-invoke", "chat-app-component"];
772
822
  type ConverseInvocationMode = (typeof ConverseInvocationModes)[number];
773
823
  interface ChatTitleUpdateRequest extends BaseRequestData {
774
824
  /** If provided, this will be used as the title for the session */
@@ -857,6 +907,49 @@ interface SetChatUserPrefsResponse {
857
907
  prefs?: UserPrefs;
858
908
  error?: string;
859
909
  }
910
+ /**
911
+ * Arbitrary key-value storage for web component state.
912
+ * Scoped to user + component (scope.tag).
913
+ * Max 400KB per component.
914
+ */
915
+ type UserWidgetData = Record<string, unknown>;
916
+ interface GetUserWidgetDataRequest {
917
+ scope: string;
918
+ tag: string;
919
+ }
920
+ interface GetUserWidgetDataResponse {
921
+ success: boolean;
922
+ userId: string;
923
+ scope: string;
924
+ tag: string;
925
+ data?: UserWidgetData;
926
+ error?: string;
927
+ }
928
+ interface SetUserWidgetDataRequest {
929
+ scope: string;
930
+ tag: string;
931
+ data: UserWidgetData;
932
+ partial?: boolean;
933
+ }
934
+ interface SetUserWidgetDataResponse {
935
+ success: boolean;
936
+ userId: string;
937
+ scope: string;
938
+ tag: string;
939
+ data: UserWidgetData;
940
+ error?: string;
941
+ }
942
+ interface DeleteUserWidgetDataRequest {
943
+ scope: string;
944
+ tag: string;
945
+ }
946
+ interface DeleteUserWidgetDataResponse {
947
+ success: boolean;
948
+ userId: string;
949
+ scope: string;
950
+ tag: string;
951
+ error?: string;
952
+ }
860
953
  interface ChatUserAddOrUpdateResponse {
861
954
  success: boolean;
862
955
  user: ChatUser<RecordOrUndef>;
@@ -2063,6 +2156,14 @@ interface AgentInstructionAssistanceFeature {
2063
2156
  enabled: boolean;
2064
2157
  line?: string;
2065
2158
  };
2159
+ /**
2160
+ * This is only used for component invocation instructions. If true, a line will be added to the component invocation
2161
+ * instructions that instructs the agent to only respond with valid JSON conforming to the TypeScript interface defined in the <output_schema> block.
2162
+ */
2163
+ includeTypescriptBackedOutputFormattingRequirements?: {
2164
+ enabled: boolean;
2165
+ line?: string;
2166
+ };
2066
2167
  }
2067
2168
  type SegmentType = 'text' | 'tag';
2068
2169
  /**
@@ -3250,6 +3351,31 @@ interface NameValueDescTriple<T> {
3250
3351
  interface ComponentTagDefinition<T extends TagDefinitionWidget> {
3251
3352
  definition: TagDefinition<T>;
3252
3353
  }
3354
+ declare const TAG_DEFINITION_STATUSES: readonly ["enabled", "disabled", "retired"];
3355
+ type TagDefinitionStatus = (typeof TAG_DEFINITION_STATUSES)[number];
3356
+ interface SpotlightContextConfig {
3357
+ enabled: boolean;
3358
+ isDefault?: boolean;
3359
+ displayOrder?: number;
3360
+ }
3361
+ interface InlineContextConfig {
3362
+ enabled: boolean;
3363
+ }
3364
+ interface DialogContextConfig {
3365
+ enabled: boolean;
3366
+ size?: 'small' | 'medium' | 'large' | 'fullscreen';
3367
+ }
3368
+ interface CanvasContextConfig {
3369
+ enabled: boolean;
3370
+ }
3371
+ declare const WIDGET_RENDERING_CONTEXT_TYPES: readonly ["spotlight", "inline", "dialog", "canvas"];
3372
+ type WidgetRenderingContextType = (typeof WIDGET_RENDERING_CONTEXT_TYPES)[number];
3373
+ interface WidgetRenderingContexts {
3374
+ spotlight?: SpotlightContextConfig;
3375
+ inline?: InlineContextConfig;
3376
+ dialog?: DialogContextConfig;
3377
+ canvas?: CanvasContextConfig;
3378
+ }
3253
3379
  interface TagDefinition<T extends TagDefinitionWidget> {
3254
3380
  /**
3255
3381
  * 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
@@ -3317,8 +3443,31 @@ interface TagDefinition<T extends TagDefinitionWidget> {
3317
3443
  dontCacheThis?: boolean;
3318
3444
  /** You must be explicit about whether this tag is a widget or not and if so what kind. */
3319
3445
  widget: T;
3320
- /** If true, the tag will be disabled and not available to the LLM or tools. */
3321
- disabled?: boolean;
3446
+ /**
3447
+ * The chat app ID this tag is associated with.
3448
+ * Use the special value 'chat-app-global' for tags available to all chat apps.
3449
+ * REQUIRED: Every tag must be associated with either a specific chat app or be global.
3450
+ */
3451
+ chatAppId: string;
3452
+ /**
3453
+ * The status of this tag definition.
3454
+ * - 'enabled': Tag is active and available for use
3455
+ * - 'disabled': Tag is temporarily disabled
3456
+ * - 'retired': Tag is permanently retired/deprecated
3457
+ *
3458
+ * REQUIRED: Must be explicitly set. If not provided, defaults to 'enabled'.
3459
+ * This is critical for the GSI to properly index all records.
3460
+ */
3461
+ status: TagDefinitionStatus;
3462
+ /**
3463
+ * Rendering contexts this widget supports. Required. Must have at least one context.
3464
+ */
3465
+ renderingContexts: WidgetRenderingContexts;
3466
+ /**
3467
+ * Indicates this is a mock/demo tag definition for development/testing purposes.
3468
+ * Mock tags may be filtered out in production environments.
3469
+ */
3470
+ isMock?: boolean;
3322
3471
  /**
3323
3472
  * If `canBeGeneratedByLlm` is true, you must provide instructions for the LLM to generate the tag since chat app/agent builders can choose
3324
3473
  * to have the instructions injected into the agent instructions prompt for a given tag.
@@ -3346,6 +3495,64 @@ interface TagDefinition<T extends TagDefinitionWidget> {
3346
3495
  * The XML wrapper ensures that your formatting doesn't interfere with the overall instruction structure.
3347
3496
  */
3348
3497
  llmInstructionsMd?: string;
3498
+ /**
3499
+ * If the code that backs your tag definition, whether compile in or a separate web component, has need to
3500
+ * directly invoke the agent to get assistance from an LLM, then you can create named sets of instructions
3501
+ * so when the component makes the request for help from the agent, the agent will know which set of instructions
3502
+ * to use. For example, let's say you have a Spotlight component defined as a tag definition that needs to
3503
+ * on startup get a list of cities and then make a request to the agent to get the weather for the list of cities.
3504
+ * The default agent instructions for the agent probably woudn't return the weather information in a structured
3505
+ * manner. So, you'd want to create a new set of instructions for the agent to use, with the same set of tools,
3506
+ * that the component code would cause to be used by asking for a direct agent invocation initiated from the
3507
+ * code in the browser and that references the name of the instructions to use that will retrieve the
3508
+ * weather as structured json let's say and that includes the list of cities you want the weather for.
3509
+ *
3510
+ * That way, the server side converse lambda function that responds to direct agent invocation requests will know
3511
+ * which set of instructions to use. It's not a good idea to allow the client to define the entire set of instructions.
3512
+ *
3513
+ * It's too risky. So, here's an example of a good set of instructions that you could use. Note that the input value
3514
+ * sent from the browser webcomponent in this case would just be a list of locations that we would append to the bottom
3515
+ * of the following. Also note that the {{typescript-backed-output-formatting-requirements}} placeholder is used to
3516
+ * inject the typescript backed output formatting requirements which are stored in S3.
3517
+ *
3518
+ * ```markdown
3519
+ * You are **WeatherDataLookupAgent**, a highly skilled assistant used to turn a list of locations into weather data.
3520
+ * Below you will find the list of locations you need to look up the weather for using the associated tools provided.
3521
+ *
3522
+ * <output_schema>
3523
+ * interface WeatherData {
3524
+ * // ISO 8601 date string of when this data was generated
3525
+ * date: string;
3526
+ *
3527
+ * // the weather data itself
3528
+ * locations: LocationWeatherInfo[];
3529
+ * }
3530
+ *
3531
+ * interface LocationWeatherInfo {
3532
+ * // The name of the location in a human readable format
3533
+ * locationName: string;
3534
+ *
3535
+ * // longitude for the location. Optional just in case you can't get it.
3536
+ * lon?: string;
3537
+ *
3538
+ * // latitude for the location. Optional just in case you can't get it.
3539
+ * lat?: string;
3540
+ *
3541
+ * // The temperature in celsius
3542
+ * tempC: string;
3543
+ *
3544
+ * // The temperature in fahrenheit
3545
+ * tempF: string;
3546
+ * }
3547
+ * </output_schema>
3548
+ *
3549
+ * {{typescript-backed-output-formatting-requirements}}
3550
+ * ```
3551
+ *
3552
+ * The key in the record is referred to as the "componentAgentInstructionName" and the value is the markdown string of the instructions.
3553
+ *
3554
+ */
3555
+ componentAgentInstructionsMd?: Record<string, string>;
3349
3556
  /** The user id of the user who created the tag definition */
3350
3557
  createdBy: string;
3351
3558
  /** The user id of the user who last updated the tag definition */
@@ -3359,7 +3566,38 @@ interface TagDefinitionLite {
3359
3566
  tag: string;
3360
3567
  scope: string;
3361
3568
  }
3362
- type TagDefinitionForCreateOrUpdate<T extends TagDefinitionWidget = TagDefinitionWidget> = Omit<TagDefinition<T>, 'createdBy' | 'lastUpdatedBy' | 'createDate' | 'lastUpdate'>;
3569
+ /**
3570
+ * Web component definition for create/update operations.
3571
+ * The s3Bucket field is omitted because it's filled in by the backend.
3572
+ */
3573
+ interface TagDefinitionWebComponentForCreateOrUpdate extends Omit<TagDefinitionWebComponent, 's3'> {
3574
+ s3?: {
3575
+ /** Must follow pattern: wc/${scope}/fileName.js.gz */
3576
+ s3Key: string;
3577
+ };
3578
+ }
3579
+ /**
3580
+ * Widget definition for web components in create/update operations.
3581
+ * Uses TagDefinitionWebComponentForCreateOrUpdate which omits the backend-managed s3Bucket field.
3582
+ */
3583
+ interface TagDefinitionWidgetWebComponentForCreateOrUpdate extends TagDefinitionWidgetBase {
3584
+ type: 'web-component';
3585
+ webComponent: TagDefinitionWebComponentForCreateOrUpdate;
3586
+ }
3587
+ /**
3588
+ * Union type for all widget types in create/update operations.
3589
+ * Uses the specialized web component type that omits backend-managed fields.
3590
+ */
3591
+ type TagDefinitionWidgetForCreateOrUpdate = TagDefinitionWidgetPassThrough | TagDefinitionWidgetPikaCompiledIn | TagDefinitionWidgetCustomCompiledIn | TagDefinitionWidgetWebComponentForCreateOrUpdate;
3592
+ /**
3593
+ * Tag definition for create/update operations.
3594
+ * Omits backend-managed fields and uses TagDefinitionWidgetForCreateOrUpdate which excludes
3595
+ * backend-managed fields from nested structures (like s3Bucket in web components).
3596
+ */
3597
+ type TagDefinitionForCreateOrUpdate<T extends TagDefinitionWidgetForCreateOrUpdate = TagDefinitionWidgetForCreateOrUpdate> = Omit<TagDefinition<TagDefinitionWidget>, 'createdBy' | 'lastUpdatedBy' | 'createDate' | 'lastUpdate' | 'widget'> & {
3598
+ widget: T;
3599
+ };
3600
+ declare const TAG_DEFINITION_WIDGET_TYPES: readonly ["pass-through", "pika-compiled-in", "custom-compiled-in", "web-component"];
3363
3601
  /**
3364
3602
  * 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`.
3365
3603
  *
@@ -3370,7 +3608,7 @@ type TagDefinitionForCreateOrUpdate<T extends TagDefinitionWidget = TagDefinitio
3370
3608
  *
3371
3609
  * 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.
3372
3610
  */
3373
- type TagDefinitionWidgetType = 'pass-through' | 'pika-compiled-in' | 'custom-compiled-in' | 'web-component';
3611
+ type TagDefinitionWidgetType = (typeof TAG_DEFINITION_WIDGET_TYPES)[number];
3374
3612
  interface TagDefinitionWidgetPikaCompiledIn extends TagDefinitionWidgetBase {
3375
3613
  type: 'pika-compiled-in';
3376
3614
  }
@@ -3391,15 +3629,52 @@ interface TagDefinitionWidgetBase {
3391
3629
  type: TagDefinitionWidgetType;
3392
3630
  }
3393
3631
  type TagDefinitionWidget = TagDefinitionWidgetPassThrough | TagDefinitionWidgetPikaCompiledIn | TagDefinitionWidgetCustomCompiledIn | TagDefinitionWidgetWebComponent;
3394
- type TagWebComponentEncoding = 'gzip+base64';
3632
+ type TagWebComponentEncoding = 'gzip';
3395
3633
  interface TagDefinitionWebComponent {
3396
- type: 'web-component';
3397
- s3Bucket: string;
3398
- s3Key: string;
3634
+ /**
3635
+ * Direct URL to the web component JavaScript file.
3636
+ * Use this if the component is hosted externally (CDN, separate server, etc.)
3637
+ *
3638
+ * Either `url` OR `s3` must be provided, but not both.
3639
+ */
3640
+ url?: string;
3641
+ /**
3642
+ * S3 location of the web component JavaScript file in the Pika S3 bucket.
3643
+ * If provided, the system will serve it via /api/webcomponent/:scope/:tag
3644
+ *
3645
+ * Either `url` OR `s3` must be provided, but not both.
3646
+ */
3647
+ s3?: {
3648
+ /** Must be the Pika system S3 bucket (retrieved from SSM parameter) */
3649
+ s3Bucket: string;
3650
+ /** Must follow pattern: wc/${scope}/fileName.js.gz */
3651
+ s3Key: string;
3652
+ };
3653
+ /**
3654
+ * The actual custom element name that the JavaScript file defines.
3655
+ * This is the name used in customElements.define() in the JavaScript file.
3656
+ *
3657
+ * If not provided, defaults to `${scope}.${tag}` (e.g., "pika.mock-spotlight-1").
3658
+ *
3659
+ * Use this when:
3660
+ * - The JavaScript file defines a custom element with a different name than the tag
3661
+ * - Multiple tag definitions share the same JavaScript file that defines one custom element
3662
+ * - A JavaScript bundle file defines multiple custom elements
3663
+ *
3664
+ * Examples:
3665
+ * - "hello-world" for a file that calls customElements.define("hello-world", ...)
3666
+ * - "my-widget" for a file that calls customElements.define("my-widget", ...)
3667
+ */
3668
+ customElementName?: string;
3399
3669
  encoding: TagWebComponentEncoding;
3400
3670
  mediaType: 'application/javascript';
3401
3671
  encodedSizeBytes: number;
3402
- /** Hash of EXACT S3 object bytes (post-encoding) */
3672
+ /**
3673
+ * Hash of the GZIPPED file bytes as stored in S3 (NOT the decompressed JavaScript).
3674
+ * This hash is used for integrity validation when serving the file from S3.
3675
+ * When uploading to S3: hash = SHA256(gzippedBytes).toBase64()
3676
+ * When serving: compare stored hash to SHA256(gzippedBytesFromS3).toBase64()
3677
+ */
3403
3678
  encodedSha256Base64: string;
3404
3679
  }
3405
3680
  interface TagDefinitionCreateOrUpdateRequest {
@@ -3416,26 +3691,30 @@ interface TagDefinitionCreateOrUpdateResponse {
3416
3691
  tagDefinition: TagDefinition<TagDefinitionWidget>;
3417
3692
  }
3418
3693
  /**
3419
- * You don't have to provide anything in this request if you don't want to. If you don't pass in tagsDesire...
3694
+ * Search for tag definitions with two primary modes:
3420
3695
  *
3421
- * If this is being used in the context of admin API then
3422
- * 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.
3696
+ * MODE 1 - Get all tags for a chat app (including global):
3697
+ * - Pass chatAppId
3698
+ * - System automatically queries BOTH the specified chatAppId AND 'chat-app-global'
3699
+ * - Uses GSI (chatAppId-status-index) for efficient retrieval
3700
+ * - Returns all enabled tags for the chat app + all global tags
3423
3701
  *
3702
+ * MODE 2 - Get specific tags by scope/tag:
3703
+ * - Pass tagsDesired array
3704
+ * - Returns only the requested tags (if they exist and user has access)
3705
+ * - Uses primary key lookup (scope + tag)
3424
3706
  *
3425
- * 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
3426
- * 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
3427
- * context of a chat app user, then you will get all tag defs not disabled even if you pass in tagsDesired.
3428
- *
3429
- * Instructions can be big so unless you ask for them, we will not return them.
3707
+ * If used in admin context, returns all tag definitions (including disabled/retired).
3708
+ * If used in chat app context, filters to only 'enabled' status.
3430
3709
  */
3431
3710
  interface TagDefinitionSearchRequest {
3711
+ /** Specific tags to retrieve (MODE 2) */
3432
3712
  tagsDesired?: TagDefinitionLite[];
3433
- /** If not true, instructions will not be returned to save space. */
3713
+ /** Chat app ID to filter tags for (MODE 1) - system automatically includes global tags */
3714
+ chatAppId?: string;
3715
+ /** If not true, instructions will not be returned to save space */
3434
3716
  includeInstructions?: boolean;
3435
- /**
3436
- * If you pass in a pagination token, we will return the next page of tag defs. Be sure to include your original
3437
- * request (tagsDesired, includeInstructions) if they were present in the original request.
3438
- */
3717
+ /** Pagination token for continued queries */
3439
3718
  paginationToken?: Record<string, any> | undefined;
3440
3719
  }
3441
3720
  interface TagDefinitionSearchResponse {
@@ -3578,5 +3857,123 @@ interface RecordShareVisitResponse {
3578
3857
  success: boolean;
3579
3858
  error?: string;
3580
3859
  }
3860
+ interface ShowToastOptions {
3861
+ type: 'success' | 'error' | 'warning' | 'info';
3862
+ duration?: number | 'infinite';
3863
+ }
3864
+ type ShowToastFn = (message: string, options: ShowToastOptions) => void;
3865
+ declare const ShareSessionStateList: readonly ["disable-share-feature", "shared-by-me", "shared-by-someone-else", "not-shared"];
3866
+ type ShareSessionState = (typeof ShareSessionStateList)[number];
3867
+ /**
3868
+ * Options for invokeAgentAsComponent() method
3869
+ */
3870
+ interface InvokeAgentAsComponentOptions {
3871
+ /**
3872
+ * Callback for streaming traces from the agent
3873
+ */
3874
+ onTrace?: (trace: any) => void;
3875
+ /**
3876
+ * Callback for progress updates (partial JSON text as it streams)
3877
+ */
3878
+ onProgress?: (partialText: string) => void;
3879
+ /**
3880
+ * Callback for agent thinking/rationale
3881
+ */
3882
+ onThinking?: (rationale: string) => void;
3883
+ /**
3884
+ * Callback for tool invocations
3885
+ */
3886
+ onToolCall?: (toolCall: {
3887
+ name: string;
3888
+ params: any;
3889
+ }) => void;
3890
+ /**
3891
+ * Whether to include full traces in callbacks (default: false)
3892
+ */
3893
+ includeTraces?: boolean;
3894
+ /**
3895
+ * Request timeout in milliseconds (default: 60000)
3896
+ */
3897
+ timeout?: number;
3898
+ }
3899
+ /**
3900
+ * Action button that appears in the widget's chrome (title bar, toolbar, etc.)
3901
+ *
3902
+ * @example
3903
+ * ```js
3904
+ * const action: WidgetAction = {
3905
+ * id: 'refresh',
3906
+ * title: 'Refresh data',
3907
+ * iconSvg: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">...</svg>',
3908
+ * callback: async () => { await fetchData(); }
3909
+ * };
3910
+ * ```
3911
+ */
3912
+ interface WidgetAction {
3913
+ /** Unique identifier for this action */
3914
+ id: string;
3915
+ /** Tooltip/label for the action (also button text in dialog context) */
3916
+ title: string;
3917
+ /** SVG markup string for the icon (e.g., from extractIconSvg() helper) */
3918
+ iconSvg: string;
3919
+ /** Whether action is currently disabled */
3920
+ disabled?: boolean;
3921
+ /** If true, renders as default/prominent button (used in dialog context) */
3922
+ primary?: boolean;
3923
+ /** Handler when clicked */
3924
+ callback: () => void | Promise<void>;
3925
+ }
3926
+ /**
3927
+ * Metadata that widgets register with the parent app
3928
+ *
3929
+ * @example
3930
+ * ```js
3931
+ * const metadata: WidgetMetadata = {
3932
+ * title: 'My Widget',
3933
+ * iconSvg: '<svg>...</svg>',
3934
+ * iconColor: '#001F3F',
3935
+ * actions: [
3936
+ * { id: 'refresh', title: 'Refresh', iconSvg: '<svg>...</svg>', callback: () => refresh() }
3937
+ * ]
3938
+ * };
3939
+ * ```
3940
+ */
3941
+ interface WidgetMetadata {
3942
+ /** Widget title shown in chrome */
3943
+ title: string;
3944
+ /** Optional icon SVG markup for the widget title */
3945
+ iconSvg?: string;
3946
+ /** Optional color for the widget icon (hex, rgb, or CSS color name) */
3947
+ iconColor?: string;
3948
+ /** Optional action buttons */
3949
+ actions?: WidgetAction[];
3950
+ /** Optional loading status */
3951
+ loadingStatus?: {
3952
+ loading: boolean;
3953
+ loadingMsg?: string;
3954
+ };
3955
+ }
3956
+ /**
3957
+ * Internal state tracked for each widget instance
3958
+ */
3959
+ interface WidgetMetadataState extends WidgetMetadata {
3960
+ /** Unique instance ID for this widget */
3961
+ instanceId: string;
3962
+ /** Widget scope (e.g., 'weather', 'pika') */
3963
+ scope: string;
3964
+ /** Widget tag (e.g., 'favorite-cities') */
3965
+ tag: string;
3966
+ /** Rendering context (spotlight, canvas, dialog, inline) */
3967
+ renderingContext: WidgetRenderingContextType;
3968
+ }
3969
+ interface IUserWidgetDataStoreState {
3970
+ readonly initialized: boolean;
3971
+ readonly data: UserWidgetData | undefined;
3972
+ readonly showToast: ShowToastFn;
3973
+ refreshDataFromServer(): Promise<void>;
3974
+ getValue<T>(key: string): Promise<T | undefined>;
3975
+ setValue(key: string, value: unknown): Promise<void>;
3976
+ deleteValue(key: string): Promise<void>;
3977
+ }
3581
3978
 
3582
- 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 SharedSessionVisitHistory, type SharedSessionVisitHistoryDynamoDb, 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 UserChatAppRule, 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 };
3979
+ 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 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, 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 StopViewingContentForUserRequest, type StopViewingContentForUserResponse, type StreamingStatus, type SuggestionsFeature, type SuggestionsFeatureForChatApp, TAG_DEFINITION_STATUSES, 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 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 WidgetMetadata, type WidgetMetadataState, type WidgetRenderingContextType, type WidgetRenderingContexts };