pika-shared 1.3.0 → 1.4.0

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 (35) hide show
  1. package/dist/types/chatbot/chatbot-types.d.mts +446 -14
  2. package/dist/types/chatbot/chatbot-types.d.ts +446 -14
  3. package/dist/types/chatbot/chatbot-types.js +4 -2
  4. package/dist/types/chatbot/chatbot-types.js.map +1 -1
  5. package/dist/types/chatbot/chatbot-types.mjs +4 -2
  6. package/dist/types/chatbot/chatbot-types.mjs.map +1 -1
  7. package/dist/util/api-gateway-utils.js +14 -1
  8. package/dist/util/api-gateway-utils.js.map +1 -1
  9. package/dist/util/api-gateway-utils.mjs +14 -1
  10. package/dist/util/api-gateway-utils.mjs.map +1 -1
  11. package/dist/util/bad-request-error.d.mts +7 -0
  12. package/dist/util/bad-request-error.d.ts +7 -0
  13. package/dist/util/bad-request-error.js +20 -0
  14. package/dist/util/bad-request-error.js.map +1 -0
  15. package/dist/util/bad-request-error.mjs +18 -0
  16. package/dist/util/bad-request-error.mjs.map +1 -0
  17. package/dist/util/forbidden-error.d.mts +7 -0
  18. package/dist/util/forbidden-error.d.ts +7 -0
  19. package/dist/util/forbidden-error.js +20 -0
  20. package/dist/util/forbidden-error.js.map +1 -0
  21. package/dist/util/forbidden-error.mjs +18 -0
  22. package/dist/util/forbidden-error.mjs.map +1 -0
  23. package/dist/util/server-utils.d.mts +41 -1
  24. package/dist/util/server-utils.d.ts +41 -1
  25. package/dist/util/server-utils.js +303 -0
  26. package/dist/util/server-utils.js.map +1 -1
  27. package/dist/util/server-utils.mjs +301 -1
  28. package/dist/util/server-utils.mjs.map +1 -1
  29. package/dist/util/unauthorized-error.d.mts +7 -0
  30. package/dist/util/unauthorized-error.d.ts +7 -0
  31. package/dist/util/unauthorized-error.js +20 -0
  32. package/dist/util/unauthorized-error.js.map +1 -0
  33. package/dist/util/unauthorized-error.mjs +18 -0
  34. package/dist/util/unauthorized-error.mjs.map +1 -0
  35. package/package.json +1 -1
@@ -66,6 +66,15 @@ interface ChatSession<T extends RecordOrUndef = undefined> {
66
66
  createDate: string;
67
67
  /** ISO 8601 formatted timestamp of the last session update */
68
68
  lastUpdate: string;
69
+ /**
70
+ * If the entity feature is enabled, this is the entity ID of the user who created the session at the moment of creation.
71
+ *
72
+ * If the site wide entity feature is not enabled or if the associated chat app has disabled the entity feature or
73
+ * if this session is being created in the context of a direct invocation (no chat app involved) then this is the string
74
+ * "chat-app-global" indicating that if the user chooses to share this session, it will be accessible to anyone with access to the chat app who has the link.
75
+ * Otherwise, only those who have access to the chat app and are associated with the same entity ID as the session owner will be able to access the session.
76
+ */
77
+ entityId: string;
69
78
  /**
70
79
  * Last Message that has been analyzed by the system for insights, this lets us detect if the user came back to
71
80
  * the chat after the session is believed to be complete and added another message that we should analyze again.
@@ -129,6 +138,16 @@ interface ChatSession<T extends RecordOrUndef = undefined> {
129
138
  * when the session is created and when the last message ID is added. This should be fine.
130
139
  */
131
140
  insightStatus?: InsightStatusNeedsInsightsAnalysis | undefined;
141
+ /** The share ID if this session is shared */
142
+ shareId?: string;
143
+ /** User ID of the user who created the share */
144
+ shareCreatedByUserId?: string;
145
+ /** When this session was first shared */
146
+ shareDate?: string;
147
+ /** When this session's share was revoked */
148
+ shareRevokedDate?: string;
149
+ /** If set to 'mock', this session is used for integration testing purposes. */
150
+ testType?: 'mock';
132
151
  }
133
152
  /**
134
153
  * Convenience type for updating a session with the last analyzed message id and insights s3 url.
@@ -481,6 +500,8 @@ interface ChatUser<T extends RecordOrUndef = undefined> {
481
500
  features: {
482
501
  [K in FeatureType]: K extends 'instruction' ? InstructionFeature : K extends 'history' ? HistoryFeature : never;
483
502
  };
503
+ /** If set to 'mock', this user is used for integration testing purposes. */
504
+ testType?: 'mock';
484
505
  }
485
506
  interface ChatUserLite {
486
507
  userId: string;
@@ -521,6 +542,27 @@ interface SimpleAuthenticatedUser<T extends RecordOrUndef = undefined> {
521
542
  * to use the various features of pika. It is not persisted to the database or in cookies. We use it
522
543
  */
523
544
  interface ChatAppOverridableFeatures {
545
+ /**
546
+ * If enabled, entity-based access control and filtering is active for this chat app.
547
+ * Chat apps can only disable the entity feature, not modify the site-level configuration
548
+ * like attributeName or display settings.
549
+ */
550
+ entity: {
551
+ /**
552
+ * If false, entity features are disabled for this chat app regardless of site settings. This
553
+ * affects the session share feature. If this is false, then a shared session will be
554
+ * accessible to anyone with access to the chat app that the session exists within.
555
+ */
556
+ enabled: boolean;
557
+ /**
558
+ * The attribute name in the user's custom data that is used to match against the entity access control lists.
559
+ *
560
+ * This value is copied from the site level entity feature configuration and may not be overridden at the chat app level.
561
+ *
562
+ * It enabled is true and this is not set, then an error will be thrown.
563
+ */
564
+ attributeName?: string;
565
+ };
524
566
  /**
525
567
  *
526
568
  * If true then the verify response feature is enabled.
@@ -815,9 +857,9 @@ interface SetChatUserPrefsResponse {
815
857
  prefs?: UserPrefs;
816
858
  error?: string;
817
859
  }
818
- interface ChatUserAddOrUpdateResponse<T extends RecordOrUndef = undefined> {
860
+ interface ChatUserAddOrUpdateResponse {
819
861
  success: boolean;
820
- user: ChatUser<T>;
862
+ user: ChatUser<RecordOrUndef>;
821
863
  error?: string;
822
864
  }
823
865
  interface ChatMessageResponse {
@@ -1051,8 +1093,8 @@ interface AgentDefinition {
1051
1093
  createdAt: string;
1052
1094
  /** ISO 8601 formatted timestamp of last update */
1053
1095
  updatedAt: string;
1054
- /** If true, this is a test agent that will get deleted after 1 day. This is used for testing. */
1055
- test?: boolean;
1096
+ /** If set to 'mock', this is a test agent that will get deleted after 1 day. This is used for integration testing. */
1097
+ testType?: 'mock';
1056
1098
  }
1057
1099
  type UpdateableAgentDefinitionFields = Extract<keyof AgentDefinition, 'basePrompt' | 'toolIds' | 'accessRules' | 'runtimeAdapter' | 'rolloutPolicy' | 'dontCacheThis' | 'knowledgeBases'>;
1058
1100
  type AgentDefinitionForUpdate = Partial<Omit<AgentDefinition, 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'lastModifiedBy' | 'test'>> & {
@@ -1175,8 +1217,8 @@ interface ToolDefinitionBase {
1175
1217
  createdAt: string;
1176
1218
  /** ISO 8601 formatted timestamp of last update */
1177
1219
  updatedAt: string;
1178
- /** If true, this is a test tool that will get deleted after 1 day. This is used for testing. */
1179
- test?: boolean;
1220
+ /** If set to 'mock', this is a test tool that will get deleted after 1 day. This is used for integration testing. */
1221
+ testType?: 'mock';
1180
1222
  }
1181
1223
  interface LambdaToolDefinition extends ToolDefinitionBase {
1182
1224
  executionType: 'lambda';
@@ -1203,11 +1245,16 @@ type ToolDefinitionForCreate = (Omit<LambdaToolDefinition, 'version' | 'createdA
1203
1245
  }) | (Omit<McpToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
1204
1246
  toolId?: ToolDefinition['toolId'];
1205
1247
  });
1206
- type ToolDefinitionForIdempotentCreateOrUpdate = Omit<ToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
1207
- lambdaArn: string;
1248
+ type ToolDefinitionForIdempotentCreateOrUpdate = (Omit<LambdaToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
1208
1249
  functionSchema: FunctionDefinition[];
1209
1250
  supportedAgentFrameworks: ['bedrock'];
1210
- };
1251
+ }) | (Omit<InlineToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
1252
+ functionSchema: FunctionDefinition[];
1253
+ supportedAgentFrameworks: ['bedrock'];
1254
+ }) | (Omit<McpToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
1255
+ functionSchema: FunctionDefinition[];
1256
+ supportedAgentFrameworks: ['bedrock'];
1257
+ });
1211
1258
  interface OAuth {
1212
1259
  clientId: string;
1213
1260
  clientSecret: string;
@@ -1281,6 +1328,266 @@ interface UpdateChatAppRequest {
1281
1328
  chatApp: ChatAppForUpdate;
1282
1329
  userId: string;
1283
1330
  }
1331
+ interface DeleteMockDataRequest {
1332
+ userId: string;
1333
+ sessions?: {
1334
+ sessionId: string;
1335
+ sessionUserId: string;
1336
+ }[];
1337
+ chatApps?: {
1338
+ chatAppId: string;
1339
+ }[];
1340
+ agents?: {
1341
+ agentId: string;
1342
+ }[];
1343
+ tools?: {
1344
+ toolId: string;
1345
+ }[];
1346
+ users?: {
1347
+ userId: string;
1348
+ }[];
1349
+ }
1350
+ interface DeleteMockDataResponse {
1351
+ success: boolean;
1352
+ }
1353
+ interface CreateOrUpdateMockSessionRequest {
1354
+ session: ChatSessionForCreate & {
1355
+ test: 'test';
1356
+ };
1357
+ userId: string;
1358
+ }
1359
+ interface CreateOrUpdateMockSessionResponse {
1360
+ success: boolean;
1361
+ session: ChatSession<RecordOrUndef>;
1362
+ }
1363
+ interface DeleteMockSessionRequest {
1364
+ sessionId: string;
1365
+ sessionUserId: string;
1366
+ userId: string;
1367
+ }
1368
+ interface DeleteMockSessionResponse {
1369
+ success: boolean;
1370
+ }
1371
+ interface CreateOrUpdateMockChatAppRequest {
1372
+ chatApp: ChatApp & {
1373
+ test: 'test';
1374
+ };
1375
+ userId: string;
1376
+ }
1377
+ interface CreateOrUpdateMockChatAppResponse {
1378
+ success: boolean;
1379
+ chatApp: ChatApp;
1380
+ }
1381
+ interface DeleteMockChatAppRequest {
1382
+ chatAppId: string;
1383
+ userId: string;
1384
+ }
1385
+ interface DeleteMockChatAppResponse {
1386
+ success: boolean;
1387
+ }
1388
+ interface CreateOrUpdateMockAgentRequest {
1389
+ agent: AgentDefinition & {
1390
+ test: 'test';
1391
+ };
1392
+ userId: string;
1393
+ }
1394
+ interface CreateOrUpdateMockAgentResponse {
1395
+ success: boolean;
1396
+ agent: AgentDefinition;
1397
+ }
1398
+ interface DeleteMockAgentRequest {
1399
+ agentId: string;
1400
+ userId: string;
1401
+ }
1402
+ interface DeleteMockAgentResponse {
1403
+ success: boolean;
1404
+ }
1405
+ interface CreateOrUpdateMockToolRequest {
1406
+ tool: ToolDefinition & {
1407
+ test: 'test';
1408
+ };
1409
+ userId: string;
1410
+ }
1411
+ interface CreateOrUpdateMockToolResponse {
1412
+ success: boolean;
1413
+ tool: ToolDefinition;
1414
+ }
1415
+ interface DeleteMockToolRequest {
1416
+ toolId: string;
1417
+ userId: string;
1418
+ }
1419
+ interface DeleteMockToolResponse {
1420
+ success: boolean;
1421
+ }
1422
+ interface CreateOrUpdateMockUserRequest {
1423
+ user: ChatUser<RecordOrUndef> & {
1424
+ test: 'test';
1425
+ };
1426
+ userId: string;
1427
+ }
1428
+ interface CreateOrUpdateMockUserResponse {
1429
+ success: boolean;
1430
+ user: ChatUser<RecordOrUndef>;
1431
+ }
1432
+ interface DeleteMockUserRequest {
1433
+ mockUserId: string;
1434
+ userId: string;
1435
+ }
1436
+ interface DeleteMockUserResponse {
1437
+ success: boolean;
1438
+ }
1439
+ interface GetAllMockSessionsRequest {
1440
+ limit?: number;
1441
+ nextToken?: string;
1442
+ }
1443
+ interface GetAllMockSessionsResponse {
1444
+ success: boolean;
1445
+ chatSessions: ChatSession<RecordOrUndef>[];
1446
+ nextToken?: string;
1447
+ }
1448
+ interface GetMockSessionByUserIdAndSessionIdRequest {
1449
+ sessionId: string;
1450
+ userId: string;
1451
+ }
1452
+ interface GetMockSessionByUserIdAndSessionIdResponse {
1453
+ success: boolean;
1454
+ chatSession?: ChatSession<RecordOrUndef>;
1455
+ }
1456
+ interface GetAllMockUsersRequest {
1457
+ limit?: number;
1458
+ nextToken?: string;
1459
+ }
1460
+ interface GetAllMockUsersResponse {
1461
+ success: boolean;
1462
+ chatUsers: ChatUser<RecordOrUndef>[];
1463
+ nextToken?: string;
1464
+ }
1465
+ interface GetAllMockAgentsRequest {
1466
+ limit?: number;
1467
+ nextToken?: string;
1468
+ }
1469
+ interface GetAllMockAgentsResponse {
1470
+ success: boolean;
1471
+ agents: AgentDefinition[];
1472
+ nextToken?: string;
1473
+ }
1474
+ interface GetAllMockToolsRequest {
1475
+ limit?: number;
1476
+ nextToken?: string;
1477
+ }
1478
+ interface GetAllMockToolsResponse {
1479
+ success: boolean;
1480
+ tools: ToolDefinition[];
1481
+ nextToken?: string;
1482
+ }
1483
+ interface GetAllMockChatAppsRequest {
1484
+ limit?: number;
1485
+ nextToken?: string;
1486
+ }
1487
+ interface GetAllMockChatAppsResponse {
1488
+ success: boolean;
1489
+ chatApps: ChatApp[];
1490
+ nextToken?: string;
1491
+ }
1492
+ interface GetAllMockSharedSessionVisitsRequest {
1493
+ limit?: number;
1494
+ nextToken?: string;
1495
+ }
1496
+ interface GetAllMockSharedSessionVisitsResponse {
1497
+ success: boolean;
1498
+ sharedSessionVisits: SharedSessionVisitHistory[];
1499
+ nextToken?: string;
1500
+ }
1501
+ interface GetAllMockPinnedSessionsRequest {
1502
+ limit?: number;
1503
+ nextToken?: string;
1504
+ }
1505
+ interface GetAllMockPinnedSessionsResponse {
1506
+ success: boolean;
1507
+ pinnedSessions: PinnedSession[];
1508
+ nextToken?: string;
1509
+ }
1510
+ interface GetAllMockDataRequest {
1511
+ limit?: number;
1512
+ }
1513
+ interface GetAllMockDataResponse {
1514
+ success: boolean;
1515
+ data: {
1516
+ sessions: ChatSession<RecordOrUndef>[];
1517
+ users: ChatUser<RecordOrUndef>[];
1518
+ agents: AgentDefinition[];
1519
+ tools: ToolDefinition[];
1520
+ chatApps: ChatApp[];
1521
+ sharedSessionVisits: SharedSessionVisitHistory[];
1522
+ pinnedSessions: PinnedSession[];
1523
+ };
1524
+ }
1525
+ interface DeleteAllMockSessionsRequest {
1526
+ userId: string;
1527
+ }
1528
+ interface DeleteAllMockSessionsResponse {
1529
+ success: boolean;
1530
+ deletedCount: number;
1531
+ }
1532
+ interface DeleteAllMockUsersRequest {
1533
+ userId: string;
1534
+ }
1535
+ interface DeleteAllMockUsersResponse {
1536
+ success: boolean;
1537
+ deletedCount: number;
1538
+ }
1539
+ interface DeleteAllMockAgentsRequest {
1540
+ userId: string;
1541
+ }
1542
+ interface DeleteAllMockAgentsResponse {
1543
+ success: boolean;
1544
+ deletedCount: number;
1545
+ }
1546
+ interface DeleteAllMockToolsRequest {
1547
+ userId: string;
1548
+ }
1549
+ interface DeleteAllMockToolsResponse {
1550
+ success: boolean;
1551
+ deletedCount: number;
1552
+ }
1553
+ interface DeleteAllMockChatAppsRequest {
1554
+ userId: string;
1555
+ }
1556
+ interface DeleteAllMockChatAppsResponse {
1557
+ success: boolean;
1558
+ deletedCount: number;
1559
+ }
1560
+ interface DeleteAllMockSharedSessionVisitsRequest {
1561
+ userId: string;
1562
+ }
1563
+ interface DeleteAllMockSharedSessionVisitsResponse {
1564
+ success: boolean;
1565
+ deletedCount: number;
1566
+ }
1567
+ interface DeleteAllMockPinnedSessionsRequest {
1568
+ userId: string;
1569
+ }
1570
+ interface DeleteAllMockPinnedSessionsResponse {
1571
+ success: boolean;
1572
+ deletedCount: number;
1573
+ }
1574
+ interface DeleteAllMockDataRequest {
1575
+ userId: string;
1576
+ confirm?: boolean;
1577
+ }
1578
+ interface DeleteAllMockDataResponse {
1579
+ success: boolean;
1580
+ deletedCounts: {
1581
+ sessions: number;
1582
+ users: number;
1583
+ agents: number;
1584
+ tools: number;
1585
+ chatApps: number;
1586
+ sharedSessionVisits: number;
1587
+ pinnedSessions: number;
1588
+ total: number;
1589
+ };
1590
+ }
1284
1591
  type ChatAppMode = 'standalone' | 'embedded';
1285
1592
  /**
1286
1593
  * This extends AccessRules so you can enable/disable the chat app for certain users.
@@ -1341,8 +1648,8 @@ interface ChatApp extends AccessRules {
1341
1648
  createDate: string;
1342
1649
  /** ISO 8601 formatted timestamp of the last chat app update */
1343
1650
  lastUpdate: string;
1344
- /** If true, this is a test chat app that will get deleted after 1 day. This is used for testing. */
1345
- test?: boolean;
1651
+ /** If set to 'mock', this is a test chat app that will get deleted after 1 day. This is used for integration testing. */
1652
+ testType?: 'mock';
1346
1653
  }
1347
1654
  interface ChatAppLite {
1348
1655
  /**
@@ -1434,7 +1741,7 @@ interface ChatAppDataRequest {
1434
1741
  /**
1435
1742
  * These are the features that are available to be overridden by the chat app.
1436
1743
  */
1437
- type ChatAppFeature = FileUploadFeatureForChatApp | SuggestionsFeatureForChatApp | PromptInputFieldLabelFeatureForChatApp | UiCustomizationFeatureForChatApp | VerifyResponseFeatureForChatApp | TracesFeatureForChatApp | ChatDisclaimerNoticeFeatureForChatApp | LogoutFeatureForChatApp | SessionInsightsFeatureForChatApp | UserDataOverrideFeatureForChatApp | TagsFeatureForChatApp | AgentInstructionAssistanceFeatureForChatApp | InstructionAugmentationFeatureForChatApp | UserMemoryFeatureForChatApp;
1744
+ type ChatAppFeature = FileUploadFeatureForChatApp | SuggestionsFeatureForChatApp | PromptInputFieldLabelFeatureForChatApp | UiCustomizationFeatureForChatApp | VerifyResponseFeatureForChatApp | TracesFeatureForChatApp | ChatDisclaimerNoticeFeatureForChatApp | LogoutFeatureForChatApp | SessionInsightsFeatureForChatApp | UserDataOverrideFeatureForChatApp | TagsFeatureForChatApp | AgentInstructionAssistanceFeatureForChatApp | InstructionAugmentationFeatureForChatApp | UserMemoryFeatureForChatApp | EntityFeatureForChatApp;
1438
1745
  interface Feature {
1439
1746
  /**
1440
1747
  * Must be unique, only alphanumeric and - _ allowed, may not start with a number
@@ -1445,7 +1752,7 @@ interface Feature {
1445
1752
  /** Whether the feature is on or off for the chat app in question. Most features are off by default, see the specific feature for details. */
1446
1753
  enabled: boolean;
1447
1754
  }
1448
- declare const FeatureIdList: readonly ["fileUpload", "promptInputFieldLabel", "suggestions", "uiCustomization", "verifyResponse", "traces", "chatDisclaimerNotice", "logout", "sessionInsights", "userDataOverrides", "tags", "agentInstructionAssistance", "instructionAugmentation", "userMemory"];
1755
+ declare const FeatureIdList: readonly ["fileUpload", "promptInputFieldLabel", "suggestions", "uiCustomization", "verifyResponse", "traces", "chatDisclaimerNotice", "logout", "sessionInsights", "userDataOverrides", "tags", "agentInstructionAssistance", "instructionAugmentation", "userMemory", "entity"];
1449
1756
  type FeatureIdType = (typeof FeatureIdList)[number];
1450
1757
  declare const EndToEndFeatureIdList: readonly ["verifyResponse", "traces"];
1451
1758
  type EndToEndFeatureIdType = (typeof EndToEndFeatureIdList)[number];
@@ -1655,6 +1962,12 @@ interface InstructionAugmentationFeatureForChatApp extends InstructionAugmentati
1655
1962
  interface UserMemoryFeatureForChatApp extends UserMemoryFeature, Feature {
1656
1963
  featureId: 'userMemory';
1657
1964
  }
1965
+ interface EntityFeatureForChatApp extends Feature {
1966
+ featureId: 'entity';
1967
+ /** Whether entity feature is enabled for this chat app. Can only be set to false to disable site-level configuration. */
1968
+ enabled: boolean;
1969
+ attributeName?: string;
1970
+ }
1658
1971
  /**
1659
1972
  * The prompt instruction assistance feature is used to add a markdown section to the prompt that instructs the agent on how to format its response.
1660
1973
  *
@@ -3146,5 +3459,124 @@ interface TagDefInJsonFile {
3146
3459
  scope: string;
3147
3460
  gzippedBase64EncodedString: string;
3148
3461
  }
3462
+ /**
3463
+ * SharedSessionVisitHistory tracks user visits to shared sessions
3464
+ */
3465
+ interface SharedSessionVisitHistory {
3466
+ shareId: string;
3467
+ entityId: string;
3468
+ chatAppId: string;
3469
+ firstVisitedAt: string;
3470
+ lastVisitedAt: string;
3471
+ visitCount: number;
3472
+ title: string;
3473
+ /** If set to 'mock', this is a test shared session visit history. This is used for integration testing. */
3474
+ testType?: 'mock';
3475
+ }
3476
+ interface SharedSessionVisitHistoryDynamoDb extends SharedSessionVisitHistory {
3477
+ userIdChatAppId: string;
3478
+ }
3479
+ /**
3480
+ * PinnedSession represents user-curated sidebar items (both own and shared sessions)
3481
+ */
3482
+ interface PinnedSession {
3483
+ shareId?: string;
3484
+ sessionId?: string;
3485
+ userId: string;
3486
+ chatAppId: string;
3487
+ pinnedAt: string;
3488
+ /** If set to 'mock', this is a test pinned session. This is used for integration testing. */
3489
+ testType?: 'mock';
3490
+ }
3491
+ type PinnedSessionDynamoDb = PinnedSession & {
3492
+ userIdChatAppId: string;
3493
+ sessionOrShareId: string;
3494
+ };
3495
+ interface PinnedObjAndChatSession {
3496
+ pinnedSession: PinnedSession;
3497
+ chatSession: ChatSession<RecordOrUndef>;
3498
+ }
3499
+ interface CreateSharedSessionRequest {
3500
+ sessionId: string;
3501
+ sessionUserId: string;
3502
+ chatAppId: string;
3503
+ }
3504
+ interface CreateSharedSessionResponse {
3505
+ success: boolean;
3506
+ shareId: string;
3507
+ chatAppId: string;
3508
+ error?: string;
3509
+ }
3510
+ interface RevokeSharedSessionRequest {
3511
+ shareId: string;
3512
+ }
3513
+ interface RevokeSharedSessionResponse {
3514
+ success: boolean;
3515
+ error?: string;
3516
+ }
3517
+ interface UnrevokeSharedSessionRequest {
3518
+ shareId: string;
3519
+ }
3520
+ interface UnrevokeSharedSessionResponse {
3521
+ success: boolean;
3522
+ error?: string;
3523
+ }
3524
+ interface GetRecentSharedRequest {
3525
+ chatAppId: string;
3526
+ limit?: number;
3527
+ entityId?: string;
3528
+ nextToken?: string;
3529
+ }
3530
+ interface GetRecentSharedResponse {
3531
+ success: boolean;
3532
+ recentShared: SharedSessionVisitHistory[];
3533
+ error?: string;
3534
+ nextToken?: string;
3535
+ }
3536
+ interface GetPinnedSessionsRequest {
3537
+ chatAppId: string;
3538
+ limit?: number;
3539
+ nextToken?: string;
3540
+ }
3541
+ interface GetPinnedSessionsResponse {
3542
+ success: boolean;
3543
+ results: PinnedObjAndChatSession[];
3544
+ nextToken?: string;
3545
+ error?: string;
3546
+ }
3547
+ interface PinSessionRequest {
3548
+ pinnedSession: PinnedSession;
3549
+ }
3550
+ interface PinSessionResponse {
3551
+ success: boolean;
3552
+ error?: string;
3553
+ }
3554
+ interface UnpinSessionRequest {
3555
+ sessionId?: string;
3556
+ shareId?: string;
3557
+ chatAppId: string;
3558
+ }
3559
+ interface UnpinSessionResponse {
3560
+ success: boolean;
3561
+ error?: string;
3562
+ }
3563
+ interface ValidateShareAccessRequest {
3564
+ shareId: string;
3565
+ chatAppId: string;
3566
+ entityId?: string;
3567
+ }
3568
+ interface ValidateShareAccessResponse {
3569
+ success: boolean;
3570
+ hasAccess: boolean;
3571
+ sessionData?: ChatSession<RecordOrUndef>;
3572
+ error?: string;
3573
+ }
3574
+ interface RecordShareVisitRequest {
3575
+ shareId: string;
3576
+ }
3577
+ interface RecordShareVisitResponse {
3578
+ success: boolean;
3579
+ error?: string;
3580
+ }
3149
3581
 
3150
- 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 CreateOrUpdateTagDefinitionAdminRequest, type CreateToolRequest, type CustomDataUiRepresentation, DEFAULT_EVENT_EXPIRY_DURATION, DEFAULT_MAX_K_MATCHES_PER_STRATEGY, DEFAULT_MAX_MEMORY_RECORDS_PER_PROMPT, DEFAULT_MEMORY_STRATEGIES, type DeleteChatAppOverrideRequest, type DeleteChatAppOverrideResponse, type DeleteTagDefinitionAdminRequest, EndToEndFeatureIdList, type EndToEndFeatureIdType, 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 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 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 PromptInputFieldLabelFeature, type PromptInputFieldLabelFeatureForChatApp, type RecordOrUndef, type RefreshChatAppRequest, type RefreshChatAppResponse, type RetrievedMemoryContent, type RetrievedMemoryRecordSummary, type RetryableVerifyResponseClassification, RetryableVerifyResponseClassifications, 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 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 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 VerifyResponseClassification, type VerifyResponseClassificationDescription, VerifyResponseClassificationDescriptions, VerifyResponseClassifications, type VerifyResponseFeature, type VerifyResponseFeatureForChatApp, type VerifyResponseRetryableClassificationDescription, VerifyResponseRetryableClassificationDescriptions, type ViewContentForUserRequest, type ViewContentForUserResponse, type VitePreviewConfig, type ViteServerConfig };
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 };