pika-shared 1.4.1 → 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.
- package/dist/types/chatbot/chatbot-types.d.mts +400 -24
- package/dist/types/chatbot/chatbot-types.d.ts +400 -24
- package/dist/types/chatbot/chatbot-types.js +7 -1
- package/dist/types/chatbot/chatbot-types.js.map +1 -1
- package/dist/types/chatbot/chatbot-types.mjs +5 -2
- package/dist/types/chatbot/chatbot-types.mjs.map +1 -1
- package/dist/types/chatbot/webcomp-types.d.mts +223 -4
- package/dist/types/chatbot/webcomp-types.d.ts +223 -4
- package/dist/util/icon-utils.d.mts +12 -0
- package/dist/util/icon-utils.d.ts +12 -0
- package/dist/util/icon-utils.js +26 -0
- package/dist/util/icon-utils.js.map +1 -0
- package/dist/util/icon-utils.mjs +24 -0
- package/dist/util/icon-utils.mjs.map +1 -0
- package/dist/util/instruction-assistance-utils.d.mts +28 -1
- package/dist/util/instruction-assistance-utils.d.ts +28 -1
- package/dist/util/instruction-assistance-utils.js +56 -8
- package/dist/util/instruction-assistance-utils.js.map +1 -1
- package/dist/util/instruction-assistance-utils.mjs +55 -9
- package/dist/util/instruction-assistance-utils.mjs.map +1 -1
- package/dist/util/server-utils.js +6 -2
- package/dist/util/server-utils.js.map +1 -1
- package/dist/util/server-utils.mjs +6 -2
- package/dist/util/server-utils.mjs.map +1 -1
- package/dist/util/wc-utils.js +1 -1
- package/dist/util/wc-utils.js.map +1 -1
- package/dist/util/wc-utils.mjs +1 -1
- package/dist/util/wc-utils.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -660,12 +660,15 @@ interface AgentInstructionChatAppOverridableFeature {
|
|
|
660
660
|
completeExampleInstructionLine?: string;
|
|
661
661
|
jsonOnlyImperativeInstructionEnabled: boolean;
|
|
662
662
|
jsonOnlyImperativeInstructionLine?: string;
|
|
663
|
+
includeTypescriptBackedOutputFormattingRequirements: boolean;
|
|
664
|
+
typescriptBackedOutputFormattingRequirements?: string;
|
|
663
665
|
}
|
|
664
666
|
interface InstructionAssistanceConfig {
|
|
665
667
|
outputFormattingRequirements: string;
|
|
666
668
|
tagInstructions?: string;
|
|
667
669
|
completeExampleInstructionLine: string;
|
|
668
670
|
jsonOnlyImperativeInstructionLine: string;
|
|
671
|
+
typescriptBackedOutputFormattingRequirements: string;
|
|
669
672
|
}
|
|
670
673
|
interface TagsChatAppOverridableFeature {
|
|
671
674
|
tagsEnabled: TagDefinitionLite[];
|
|
@@ -772,17 +775,50 @@ interface ConverseRequest extends BaseRequestData {
|
|
|
772
775
|
* If provided, this will be used to determine the invocation mode of the converse request.
|
|
773
776
|
*
|
|
774
777
|
* If 'chat-app', then the converse request is a chat app request.
|
|
778
|
+
*
|
|
775
779
|
* If 'direct-agent-invoke', then the converse request is a direct agent invoke request and is not
|
|
776
780
|
* in the context of a chat app. Since we are adding mode after the fact, if mode is provided
|
|
777
781
|
* and it doesn't match what we expect, we will throw an error (chat-app requires that chatAppId is provided
|
|
778
782
|
* and direct-agent-invoke requires that chatAppId is not provided).
|
|
779
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
|
+
*
|
|
780
794
|
* If invocationMode is not provided, uses the presence or absence of chatAppId to determine the mode (if chatAppId
|
|
781
795
|
* is provided, then it's a chat app request, otherwise it's a direct agent invoke request).
|
|
782
796
|
*/
|
|
783
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;
|
|
784
802
|
}
|
|
785
|
-
|
|
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;
|
|
820
|
+
}
|
|
821
|
+
declare const ConverseInvocationModes: readonly ["chat-app", "direct-agent-invoke", "chat-app-component"];
|
|
786
822
|
type ConverseInvocationMode = (typeof ConverseInvocationModes)[number];
|
|
787
823
|
interface ChatTitleUpdateRequest extends BaseRequestData {
|
|
788
824
|
/** If provided, this will be used as the title for the session */
|
|
@@ -871,6 +907,49 @@ interface SetChatUserPrefsResponse {
|
|
|
871
907
|
prefs?: UserPrefs;
|
|
872
908
|
error?: string;
|
|
873
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
|
+
}
|
|
874
953
|
interface ChatUserAddOrUpdateResponse {
|
|
875
954
|
success: boolean;
|
|
876
955
|
user: ChatUser<RecordOrUndef>;
|
|
@@ -2077,6 +2156,14 @@ interface AgentInstructionAssistanceFeature {
|
|
|
2077
2156
|
enabled: boolean;
|
|
2078
2157
|
line?: string;
|
|
2079
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
|
+
};
|
|
2080
2167
|
}
|
|
2081
2168
|
type SegmentType = 'text' | 'tag';
|
|
2082
2169
|
/**
|
|
@@ -3264,6 +3351,31 @@ interface NameValueDescTriple<T> {
|
|
|
3264
3351
|
interface ComponentTagDefinition<T extends TagDefinitionWidget> {
|
|
3265
3352
|
definition: TagDefinition<T>;
|
|
3266
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
|
+
}
|
|
3267
3379
|
interface TagDefinition<T extends TagDefinitionWidget> {
|
|
3268
3380
|
/**
|
|
3269
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
|
|
@@ -3331,8 +3443,31 @@ interface TagDefinition<T extends TagDefinitionWidget> {
|
|
|
3331
3443
|
dontCacheThis?: boolean;
|
|
3332
3444
|
/** You must be explicit about whether this tag is a widget or not and if so what kind. */
|
|
3333
3445
|
widget: T;
|
|
3334
|
-
/**
|
|
3335
|
-
|
|
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;
|
|
3336
3471
|
/**
|
|
3337
3472
|
* If `canBeGeneratedByLlm` is true, you must provide instructions for the LLM to generate the tag since chat app/agent builders can choose
|
|
3338
3473
|
* to have the instructions injected into the agent instructions prompt for a given tag.
|
|
@@ -3360,6 +3495,64 @@ interface TagDefinition<T extends TagDefinitionWidget> {
|
|
|
3360
3495
|
* The XML wrapper ensures that your formatting doesn't interfere with the overall instruction structure.
|
|
3361
3496
|
*/
|
|
3362
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>;
|
|
3363
3556
|
/** The user id of the user who created the tag definition */
|
|
3364
3557
|
createdBy: string;
|
|
3365
3558
|
/** The user id of the user who last updated the tag definition */
|
|
@@ -3373,7 +3566,38 @@ interface TagDefinitionLite {
|
|
|
3373
3566
|
tag: string;
|
|
3374
3567
|
scope: string;
|
|
3375
3568
|
}
|
|
3376
|
-
|
|
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"];
|
|
3377
3601
|
/**
|
|
3378
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`.
|
|
3379
3603
|
*
|
|
@@ -3384,7 +3608,7 @@ type TagDefinitionForCreateOrUpdate<T extends TagDefinitionWidget = TagDefinitio
|
|
|
3384
3608
|
*
|
|
3385
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.
|
|
3386
3610
|
*/
|
|
3387
|
-
type TagDefinitionWidgetType =
|
|
3611
|
+
type TagDefinitionWidgetType = (typeof TAG_DEFINITION_WIDGET_TYPES)[number];
|
|
3388
3612
|
interface TagDefinitionWidgetPikaCompiledIn extends TagDefinitionWidgetBase {
|
|
3389
3613
|
type: 'pika-compiled-in';
|
|
3390
3614
|
}
|
|
@@ -3405,15 +3629,52 @@ interface TagDefinitionWidgetBase {
|
|
|
3405
3629
|
type: TagDefinitionWidgetType;
|
|
3406
3630
|
}
|
|
3407
3631
|
type TagDefinitionWidget = TagDefinitionWidgetPassThrough | TagDefinitionWidgetPikaCompiledIn | TagDefinitionWidgetCustomCompiledIn | TagDefinitionWidgetWebComponent;
|
|
3408
|
-
type TagWebComponentEncoding = 'gzip
|
|
3632
|
+
type TagWebComponentEncoding = 'gzip';
|
|
3409
3633
|
interface TagDefinitionWebComponent {
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
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;
|
|
3413
3669
|
encoding: TagWebComponentEncoding;
|
|
3414
3670
|
mediaType: 'application/javascript';
|
|
3415
3671
|
encodedSizeBytes: number;
|
|
3416
|
-
/**
|
|
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
|
+
*/
|
|
3417
3678
|
encodedSha256Base64: string;
|
|
3418
3679
|
}
|
|
3419
3680
|
interface TagDefinitionCreateOrUpdateRequest {
|
|
@@ -3430,26 +3691,30 @@ interface TagDefinitionCreateOrUpdateResponse {
|
|
|
3430
3691
|
tagDefinition: TagDefinition<TagDefinitionWidget>;
|
|
3431
3692
|
}
|
|
3432
3693
|
/**
|
|
3433
|
-
*
|
|
3694
|
+
* Search for tag definitions with two primary modes:
|
|
3434
3695
|
*
|
|
3435
|
-
*
|
|
3436
|
-
*
|
|
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
|
|
3437
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)
|
|
3438
3706
|
*
|
|
3439
|
-
* If
|
|
3440
|
-
*
|
|
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.
|
|
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.
|
|
3444
3709
|
*/
|
|
3445
3710
|
interface TagDefinitionSearchRequest {
|
|
3711
|
+
/** Specific tags to retrieve (MODE 2) */
|
|
3446
3712
|
tagsDesired?: TagDefinitionLite[];
|
|
3447
|
-
/**
|
|
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 */
|
|
3448
3716
|
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
|
-
*/
|
|
3717
|
+
/** Pagination token for continued queries */
|
|
3453
3718
|
paginationToken?: Record<string, any> | undefined;
|
|
3454
3719
|
}
|
|
3455
3720
|
interface TagDefinitionSearchResponse {
|
|
@@ -3599,5 +3864,116 @@ interface ShowToastOptions {
|
|
|
3599
3864
|
type ShowToastFn = (message: string, options: ShowToastOptions) => void;
|
|
3600
3865
|
declare const ShareSessionStateList: readonly ["disable-share-feature", "shared-by-me", "shared-by-someone-else", "not-shared"];
|
|
3601
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
|
+
}
|
|
3602
3978
|
|
|
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 };
|
|
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 };
|