@aws/lsp-codewhisperer 0.0.97 → 0.0.99

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 (82) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/node_modules/@amzn/amazon-q-developer-streaming-client/README.md +259 -0
  3. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreamingClient.js +14 -11
  4. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/GenerateCodeFromCommandsCommand.js +4 -0
  5. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/SendMessageCommand.js +4 -0
  6. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/EndpointParameters.js +15 -0
  7. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/endpointResolver.js +19 -0
  8. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/ruleset.js +61 -0
  9. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/models_0.js +148 -64
  10. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/protocols/Aws_json1_0.js +92 -0
  11. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.shared.js +2 -2
  12. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreamingClient.js +16 -13
  13. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/GenerateCodeFromCommandsCommand.js +4 -0
  14. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/SendMessageCommand.js +4 -0
  15. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/EndpointParameters.js +11 -0
  16. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/endpointResolver.js +15 -0
  17. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/ruleset.js +58 -0
  18. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/models_0.js +138 -57
  19. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/protocols/Aws_json1_0.js +94 -2
  20. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.shared.js +2 -2
  21. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreamingClient.d.ts +6 -9
  22. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/GenerateCodeFromCommandsCommand.d.ts +6 -6
  23. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/SendMessageCommand.d.ts +68 -11
  24. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/EndpointParameters.d.ts +28 -0
  25. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/endpointResolver.d.ts +5 -0
  26. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/ruleset.d.ts +2 -0
  27. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/index.d.ts +1 -0
  28. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/models_0.d.ts +472 -87
  29. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.browser.d.ts +5 -2
  30. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.d.ts +5 -2
  31. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.native.d.ts +5 -2
  32. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.shared.d.ts +3 -1
  33. package/node_modules/@amzn/amazon-q-developer-streaming-client/package.json +3 -0
  34. package/node_modules/@amzn/codewhisperer-streaming/README.md +266 -7
  35. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreaming.js +2 -0
  36. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/InvokeMCPCommand.js +22 -0
  37. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/index.js +1 -0
  38. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +172 -58
  39. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +164 -3
  40. package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreaming.js +2 -0
  41. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/InvokeMCPCommand.js +18 -0
  42. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/index.js +1 -0
  43. package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +159 -51
  44. package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +163 -4
  45. package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreaming.d.ts +7 -0
  46. package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +3 -2
  47. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +5 -5
  48. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +68 -3
  49. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +63 -6
  50. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/InvokeMCPCommand.d.ts +93 -0
  51. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +68 -11
  52. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/index.d.ts +1 -0
  53. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +585 -80
  54. package/node_modules/@amzn/codewhisperer-streaming/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  55. package/out/language-server/agenticChat/agenticChatController.js +17 -5
  56. package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
  57. package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js +21 -13
  58. package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js.map +1 -1
  59. package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +12 -4
  60. package/out/language-server/agenticChat/tools/mcp/mcpManager.js +192 -37
  61. package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
  62. package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js +42 -20
  63. package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js.map +1 -1
  64. package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js +4 -0
  65. package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js.map +1 -1
  66. package/out/language-server/agenticChat/tools/toolServer.js +57 -12
  67. package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
  68. package/out/language-server/agenticChat/utils/tokenLimitsCalculator.d.ts +3 -3
  69. package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js +4 -4
  70. package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js.map +1 -1
  71. package/out/language-server/netTransform/utils.js +2 -4
  72. package/out/language-server/netTransform/utils.js.map +1 -1
  73. package/out/shared/codeWhispererService.js +1 -0
  74. package/out/shared/codeWhispererService.js.map +1 -1
  75. package/out/shared/telemetry/telemetryService.js +2 -1
  76. package/out/shared/telemetry/telemetryService.js.map +1 -1
  77. package/out/shared/utils.js +6 -4
  78. package/out/shared/utils.js.map +1 -1
  79. package/package.json +5 -4
  80. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoints.js +0 -211
  81. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoints.js +0 -207
  82. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoints.d.ts +0 -2
@@ -6,6 +6,8 @@ import { DocumentType as __DocumentType } from "@smithy/types";
6
6
  * @enum
7
7
  */
8
8
  export declare const AccessDeniedExceptionReason: {
9
+ readonly FEATURE_NOT_SUPPORTED: "FEATURE_NOT_SUPPORTED";
10
+ readonly TEMPORARILY_SUSPENDED: "TEMPORARILY_SUSPENDED";
9
11
  readonly UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS: "UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS";
10
12
  readonly UNAUTHORIZED_WORKSPACE_CONTEXT_FEATURE_ACCESS: "UNAUTHORIZED_WORKSPACE_CONTEXT_FEATURE_ACCESS";
11
13
  };
@@ -31,30 +33,35 @@ export declare class AccessDeniedException extends __BaseException {
31
33
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
32
34
  }
33
35
  /**
34
- * Structure representing a single entry of additional contextual content
35
36
  * @public
37
+ * @enum
36
38
  */
37
- export interface AdditionalContentEntry {
38
- /**
39
- * The name/identifier for this context entry
40
- * @public
41
- */
42
- name: string | undefined;
39
+ export declare const ConflictExceptionReason: {
40
+ readonly CUSTOMER_KMS_KEY_DISABLED: "CUSTOMER_KMS_KEY_DISABLED";
41
+ readonly CUSTOMER_KMS_KEY_INVALID_KEY_POLICY: "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY";
42
+ readonly MISMATCHED_KMS_KEY: "MISMATCHED_KMS_KEY";
43
+ };
44
+ /**
45
+ * @public
46
+ */
47
+ export type ConflictExceptionReason = typeof ConflictExceptionReason[keyof typeof ConflictExceptionReason];
48
+ /**
49
+ * This exception is thrown when the action to perform could not be completed because the resource is in a conflicting state.
50
+ * @public
51
+ */
52
+ export declare class ConflictException extends __BaseException {
53
+ readonly name: "ConflictException";
54
+ readonly $fault: "client";
43
55
  /**
44
- * A description of what this context entry represents
56
+ * Reason for ConflictException
45
57
  * @public
46
58
  */
47
- description: string | undefined;
59
+ reason?: ConflictExceptionReason | undefined;
48
60
  /**
49
- * The actual contextual content
50
- * @public
61
+ * @internal
51
62
  */
52
- innerContext?: string | undefined;
63
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
53
64
  }
54
- /**
55
- * @internal
56
- */
57
- export declare const AdditionalContentEntryFilterSensitiveLog: (obj: AdditionalContentEntry) => any;
58
65
  /**
59
66
  * @public
60
67
  * @enum
@@ -84,23 +91,13 @@ export declare class InternalServerException extends __BaseException {
84
91
  */
85
92
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
86
93
  }
87
- /**
88
- * This exception is thrown when describing a resource that does not exist.
89
- * @public
90
- */
91
- export declare class ResourceNotFoundException extends __BaseException {
92
- readonly name: "ResourceNotFoundException";
93
- readonly $fault: "client";
94
- /**
95
- * @internal
96
- */
97
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
98
- }
99
94
  /**
100
95
  * @public
101
96
  * @enum
102
97
  */
103
98
  export declare const ThrottlingExceptionReason: {
99
+ readonly DAILY_REQUEST_COUNT: "DAILY_REQUEST_COUNT";
100
+ readonly INSUFFICIENT_MODEL_CAPACITY: "INSUFFICIENT_MODEL_CAPACITY";
104
101
  readonly MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT";
105
102
  };
106
103
  /**
@@ -135,6 +132,7 @@ export declare const ValidationExceptionReason: {
135
132
  readonly CONTENT_LENGTH_EXCEEDS_THRESHOLD: "CONTENT_LENGTH_EXCEEDS_THRESHOLD";
136
133
  readonly INVALID_CONVERSATION_ID: "INVALID_CONVERSATION_ID";
137
134
  readonly INVALID_KMS_GRANT: "INVALID_KMS_GRANT";
135
+ readonly INVALID_MODEL_ID: "INVALID_MODEL_ID";
138
136
  };
139
137
  /**
140
138
  * @public
@@ -157,6 +155,85 @@ export declare class ValidationException extends __BaseException {
157
155
  */
158
156
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
159
157
  }
158
+ /**
159
+ * This exception is thrown when describing a resource that does not exist.
160
+ * @public
161
+ */
162
+ export declare class ResourceNotFoundException extends __BaseException {
163
+ readonly name: "ResourceNotFoundException";
164
+ readonly $fault: "client";
165
+ /**
166
+ * @internal
167
+ */
168
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
169
+ }
170
+ /**
171
+ * @public
172
+ * @enum
173
+ */
174
+ export declare const ServiceQuotaExceededExceptionReason: {
175
+ readonly CONVERSATION_LIMIT_EXCEEDED: "CONVERSATION_LIMIT_EXCEEDED";
176
+ readonly MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT";
177
+ readonly OVERAGE_REQUEST_LIMIT_EXCEEDED: "OVERAGE_REQUEST_LIMIT_EXCEEDED";
178
+ };
179
+ /**
180
+ * @public
181
+ */
182
+ export type ServiceQuotaExceededExceptionReason = typeof ServiceQuotaExceededExceptionReason[keyof typeof ServiceQuotaExceededExceptionReason];
183
+ /**
184
+ * This exception is thrown when request was denied due to caller exceeding their usage limits
185
+ * @public
186
+ */
187
+ export declare class ServiceQuotaExceededException extends __BaseException {
188
+ readonly name: "ServiceQuotaExceededException";
189
+ readonly $fault: "client";
190
+ /**
191
+ * Reason for ServiceQuotaExceededException
192
+ * @public
193
+ */
194
+ reason?: ServiceQuotaExceededExceptionReason | undefined;
195
+ /**
196
+ * @internal
197
+ */
198
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
199
+ }
200
+ /**
201
+ * Structure representing a single entry of additional contextual content
202
+ * @public
203
+ */
204
+ export interface AdditionalContentEntry {
205
+ /**
206
+ * The name/identifier for this context entry
207
+ * @public
208
+ */
209
+ name: string | undefined;
210
+ /**
211
+ * A description of what this context entry represents
212
+ * @public
213
+ */
214
+ description: string | undefined;
215
+ /**
216
+ * The actual contextual content
217
+ * @public
218
+ */
219
+ innerContext?: string | undefined;
220
+ }
221
+ /**
222
+ * @internal
223
+ */
224
+ export declare const AdditionalContentEntryFilterSensitiveLog: (obj: AdditionalContentEntry) => any;
225
+ /**
226
+ * @public
227
+ * @enum
228
+ */
229
+ export declare const AgentTaskType: {
230
+ readonly SPEC_TASK: "spectask";
231
+ readonly VIBE: "vibe";
232
+ };
233
+ /**
234
+ * @public
235
+ */
236
+ export type AgentTaskType = typeof AgentTaskType[keyof typeof AgentTaskType];
160
237
  /**
161
238
  * Description of a user's context when they are calling Q Chat from AppStudio
162
239
  * @public
@@ -207,6 +284,23 @@ export interface AssistantResponseEvent {
207
284
  * @internal
208
285
  */
209
286
  export declare const AssistantResponseEventFilterSensitiveLog: (obj: AssistantResponseEvent) => any;
287
+ /**
288
+ * @public
289
+ * @enum
290
+ */
291
+ export declare const CachePointType: {
292
+ readonly DEFAULT: "default";
293
+ };
294
+ /**
295
+ * @public
296
+ */
297
+ export type CachePointType = typeof CachePointType[keyof typeof CachePointType];
298
+ /**
299
+ * @public
300
+ */
301
+ export interface CachePoint {
302
+ type: CachePointType | undefined;
303
+ }
210
304
  /**
211
305
  * @public
212
306
  * @enum
@@ -277,6 +371,63 @@ export interface FollowupPrompt {
277
371
  * @internal
278
372
  */
279
373
  export declare const FollowupPromptFilterSensitiveLog: (obj: FollowupPrompt) => any;
374
+ /**
375
+ * @public
376
+ */
377
+ export interface ReasoningText {
378
+ text: string | undefined;
379
+ /**
380
+ * A token that verifies that the reasoning text was generated by the model
381
+ * @public
382
+ */
383
+ signature?: string | undefined;
384
+ }
385
+ /**
386
+ * @internal
387
+ */
388
+ export declare const ReasoningTextFilterSensitiveLog: (obj: ReasoningText) => any;
389
+ /**
390
+ * The entire reasoning content that the model used to return the output
391
+ * @public
392
+ */
393
+ export type ReasoningContent = ReasoningContent.ReasoningTextMember | ReasoningContent.RedactedContentMember | ReasoningContent.$UnknownMember;
394
+ /**
395
+ * @public
396
+ */
397
+ export declare namespace ReasoningContent {
398
+ interface ReasoningTextMember {
399
+ reasoningText: ReasoningText;
400
+ redactedContent?: never;
401
+ $unknown?: never;
402
+ }
403
+ /**
404
+ * Reasoning content that was encrypted by the model provider
405
+ * @public
406
+ */
407
+ interface RedactedContentMember {
408
+ reasoningText?: never;
409
+ redactedContent: Uint8Array;
410
+ $unknown?: never;
411
+ }
412
+ /**
413
+ * @public
414
+ */
415
+ interface $UnknownMember {
416
+ reasoningText?: never;
417
+ redactedContent?: never;
418
+ $unknown: [string, any];
419
+ }
420
+ interface Visitor<T> {
421
+ reasoningText: (value: ReasoningText) => T;
422
+ redactedContent: (value: Uint8Array) => T;
423
+ _: (name: string, value: any) => T;
424
+ }
425
+ const visit: <T>(value: ReasoningContent, visitor: Visitor<T>) => T;
426
+ }
427
+ /**
428
+ * @internal
429
+ */
430
+ export declare const ReasoningContentFilterSensitiveLog: (obj: ReasoningContent) => any;
280
431
  /**
281
432
  * Represents span in a text.
282
433
  * @public
@@ -396,41 +547,21 @@ export interface AssistantResponseMessage {
396
547
  * @public
397
548
  */
398
549
  toolUses?: (ToolUse)[] | undefined;
399
- }
400
- /**
401
- * @internal
402
- */
403
- export declare const AssistantResponseMessageFilterSensitiveLog: (obj: AssistantResponseMessage) => any;
404
- /**
405
- * @public
406
- * @enum
407
- */
408
- export declare const ConflictExceptionReason: {
409
- readonly CUSTOMER_KMS_KEY_DISABLED: "CUSTOMER_KMS_KEY_DISABLED";
410
- readonly CUSTOMER_KMS_KEY_INVALID_KEY_POLICY: "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY";
411
- readonly MISMATCHED_KMS_KEY: "MISMATCHED_KMS_KEY";
412
- };
413
- /**
414
- * @public
415
- */
416
- export type ConflictExceptionReason = typeof ConflictExceptionReason[keyof typeof ConflictExceptionReason];
417
- /**
418
- * This exception is thrown when the action to perform could not be completed because the resource is in a conflicting state.
419
- * @public
420
- */
421
- export declare class ConflictException extends __BaseException {
422
- readonly name: "ConflictException";
423
- readonly $fault: "client";
424
550
  /**
425
- * Reason for ConflictException
551
+ * Indicates whether this message is a cache point
426
552
  * @public
427
553
  */
428
- reason?: ConflictExceptionReason | undefined;
554
+ cachePoint?: CachePoint | undefined;
429
555
  /**
430
- * @internal
556
+ * Model's internal reasoning process, either as readable text or redacted binary content
557
+ * @public
431
558
  */
432
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
559
+ reasoningContent?: ReasoningContent | undefined;
433
560
  }
561
+ /**
562
+ * @internal
563
+ */
564
+ export declare const AssistantResponseMessageFilterSensitiveLog: (obj: AssistantResponseMessage) => any;
434
565
  /**
435
566
  * Programming Languages supported by CodeWhisperer
436
567
  * @public
@@ -494,6 +625,12 @@ export interface BinaryPayloadEvent {
494
625
  * @internal
495
626
  */
496
627
  export declare const BinaryPayloadEventFilterSensitiveLog: (obj: BinaryPayloadEvent) => any;
628
+ /**
629
+ * @public
630
+ */
631
+ export interface ClientCacheConfig {
632
+ useClientCachingOnly?: boolean | undefined;
633
+ }
497
634
  /**
498
635
  * @public
499
636
  * @enum
@@ -587,6 +724,14 @@ export declare const Origin: {
587
724
  * Any IDE caller.
588
725
  */
589
726
  readonly IDE: "IDE";
727
+ /**
728
+ * Q Developer Inline Chat.
729
+ */
730
+ readonly INLINE_CHAT: "INLINE_CHAT";
731
+ /**
732
+ * KIRO CLI
733
+ */
734
+ readonly KIRO_CLI: "KIRO_CLI";
590
735
  /**
591
736
  * AWS Marketing Website (https://aws.amazon.com)
592
737
  */
@@ -595,6 +740,10 @@ export declare const Origin: {
595
740
  * MD.
596
741
  */
597
742
  readonly MD: "MD";
743
+ /**
744
+ * SageMaker Unified Studio/MaxDome CodeEditor Chat
745
+ */
746
+ readonly MD_CE: "MD_CE";
598
747
  /**
599
748
  * SageMaker Unified Studio/MaxDome IDE Chat
600
749
  */
@@ -619,6 +768,10 @@ export declare const Origin: {
619
768
  * Internal Service Traffic (Integ Tests, Canaries, etc.). This is the default when no Origin header present in request.
620
769
  */
621
770
  readonly SERVICE_INTERNAL: "SERVICE_INTERNAL";
771
+ /**
772
+ * SageMaker AI Studio IDE Chat
773
+ */
774
+ readonly SM_AI_STUDIO_IDE: "SM_AI_STUDIO_IDE";
622
775
  /**
623
776
  * Unified Search in AWS Management Console (https://<region>.console.aws.amazon.com)
624
777
  */
@@ -1318,7 +1471,7 @@ export declare const ToolSpecificationFilterSensitiveLog: (obj: ToolSpecificatio
1318
1471
  * Information about a tool that can be used.
1319
1472
  * @public
1320
1473
  */
1321
- export type Tool = Tool.ToolSpecificationMember | Tool.$UnknownMember;
1474
+ export type Tool = Tool.CachePointMember | Tool.ToolSpecificationMember | Tool.$UnknownMember;
1322
1475
  /**
1323
1476
  * @public
1324
1477
  */
@@ -1329,6 +1482,12 @@ export declare namespace Tool {
1329
1482
  */
1330
1483
  interface ToolSpecificationMember {
1331
1484
  toolSpecification: ToolSpecification;
1485
+ cachePoint?: never;
1486
+ $unknown?: never;
1487
+ }
1488
+ interface CachePointMember {
1489
+ toolSpecification?: never;
1490
+ cachePoint: CachePoint;
1332
1491
  $unknown?: never;
1333
1492
  }
1334
1493
  /**
@@ -1336,10 +1495,12 @@ export declare namespace Tool {
1336
1495
  */
1337
1496
  interface $UnknownMember {
1338
1497
  toolSpecification?: never;
1498
+ cachePoint?: never;
1339
1499
  $unknown: [string, any];
1340
1500
  }
1341
1501
  interface Visitor<T> {
1342
1502
  toolSpecification: (value: ToolSpecification) => T;
1503
+ cachePoint: (value: CachePoint) => T;
1343
1504
  _: (name: string, value: any) => T;
1344
1505
  }
1345
1506
  const visit: <T>(value: Tool, visitor: Visitor<T>) => T;
@@ -1455,6 +1616,16 @@ export interface UserInputMessage {
1455
1616
  * @public
1456
1617
  */
1457
1618
  modelId?: string | undefined;
1619
+ /**
1620
+ * Indicates whether to add a cache point after the current message
1621
+ * @public
1622
+ */
1623
+ cachePoint?: CachePoint | undefined;
1624
+ /**
1625
+ * Client cache config
1626
+ * @public
1627
+ */
1628
+ clientCacheConfig?: ClientCacheConfig | undefined;
1458
1629
  }
1459
1630
  /**
1460
1631
  * @internal
@@ -1598,6 +1769,16 @@ export interface CodeReferenceEvent {
1598
1769
  */
1599
1770
  references?: (Reference)[] | undefined;
1600
1771
  }
1772
+ /**
1773
+ * @public
1774
+ */
1775
+ export interface ContextUsageEvent {
1776
+ /**
1777
+ * Percentage of model context window used (0-100). Calculated as (totalTokens / maxContextWindowTokens) * 100
1778
+ * @public
1779
+ */
1780
+ contextUsagePercentage?: number | undefined;
1781
+ }
1601
1782
  /**
1602
1783
  * Streaming Response Event when DryRun is succeessful
1603
1784
  * @public
@@ -1624,6 +1805,7 @@ export declare const FollowupPromptEventFilterSensitiveLog: (obj: FollowupPrompt
1624
1805
  * @enum
1625
1806
  */
1626
1807
  export declare const IntentType: {
1808
+ readonly ARTIFACT: "ARTIFACT";
1627
1809
  readonly DEEPLINKS: "DEEPLINKS";
1628
1810
  readonly GLUE_SENSEI: "GLUE_SENSEI";
1629
1811
  readonly RESOURCE_DATA: "RESOURCE_DATA";
@@ -2415,6 +2597,62 @@ export interface MessageMetadataEvent {
2415
2597
  */
2416
2598
  utteranceId?: string | undefined;
2417
2599
  }
2600
+ /**
2601
+ * @public
2602
+ */
2603
+ export interface TokenUsage {
2604
+ uncachedInputTokens: number | undefined;
2605
+ outputTokens: number | undefined;
2606
+ totalTokens: number | undefined;
2607
+ cacheReadInputTokens?: number | undefined;
2608
+ cacheWriteInputTokens?: number | undefined;
2609
+ /**
2610
+ * Percentage of model context window used (0-100). Calculated as (totalTokens / maxContextWindowTokens) * 100
2611
+ * @public
2612
+ */
2613
+ contextUsagePercentage?: number | undefined;
2614
+ }
2615
+ /**
2616
+ * Streaming Response Event for Metadata
2617
+ * @public
2618
+ */
2619
+ export interface MetadataEvent {
2620
+ tokenUsage?: TokenUsage | undefined;
2621
+ }
2622
+ /**
2623
+ * Streaming Response Event for Metering
2624
+ * @public
2625
+ */
2626
+ export interface MeteringEvent {
2627
+ usage?: number | undefined;
2628
+ unit?: string | undefined;
2629
+ unitPlural?: string | undefined;
2630
+ }
2631
+ /**
2632
+ * Streaming Response Event for reasoning content.
2633
+ * @public
2634
+ */
2635
+ export interface ReasoningContentEvent {
2636
+ /**
2637
+ * The reasoning that the model used to return the output.
2638
+ * @public
2639
+ */
2640
+ text?: string | undefined;
2641
+ /**
2642
+ * The content in the reasoning that was encrypted by the model provider
2643
+ * @public
2644
+ */
2645
+ redactedContent?: Uint8Array | undefined;
2646
+ /**
2647
+ * A token that verifies that the reasoning text was generated by the model
2648
+ * @public
2649
+ */
2650
+ signature?: string | undefined;
2651
+ }
2652
+ /**
2653
+ * @internal
2654
+ */
2655
+ export declare const ReasoningContentEventFilterSensitiveLog: (obj: ReasoningContentEvent) => any;
2418
2656
  /**
2419
2657
  * Streaming Response Event for SupplementaryWebLinks
2420
2658
  * @public
@@ -2478,7 +2716,7 @@ export declare const ToolUseEventFilterSensitiveLog: (obj: ToolUseEvent) => any;
2478
2716
  * Streaming events from UniDirectional Streaming Conversational APIs.
2479
2717
  * @public
2480
2718
  */
2481
- export type ChatResponseStream = ChatResponseStream.AssistantResponseEventMember | ChatResponseStream.CitationEventMember | ChatResponseStream.CodeEventMember | ChatResponseStream.CodeReferenceEventMember | ChatResponseStream.DryRunSucceedEventMember | ChatResponseStream.ErrorMember | ChatResponseStream.FollowupPromptEventMember | ChatResponseStream.IntentsEventMember | ChatResponseStream.InteractionComponentsEventMember | ChatResponseStream.InvalidStateEventMember | ChatResponseStream.MessageMetadataEventMember | ChatResponseStream.SupplementaryWebLinksEventMember | ChatResponseStream.ToolResultEventMember | ChatResponseStream.ToolUseEventMember | ChatResponseStream.$UnknownMember;
2719
+ export type ChatResponseStream = ChatResponseStream.AssistantResponseEventMember | ChatResponseStream.CitationEventMember | ChatResponseStream.CodeEventMember | ChatResponseStream.CodeReferenceEventMember | ChatResponseStream.ContextUsageEventMember | ChatResponseStream.DryRunSucceedEventMember | ChatResponseStream.ErrorMember | ChatResponseStream.FollowupPromptEventMember | ChatResponseStream.IntentsEventMember | ChatResponseStream.InteractionComponentsEventMember | ChatResponseStream.InvalidStateEventMember | ChatResponseStream.MessageMetadataEventMember | ChatResponseStream.MetadataEventMember | ChatResponseStream.MeteringEventMember | ChatResponseStream.ReasoningContentEventMember | ChatResponseStream.SupplementaryWebLinksEventMember | ChatResponseStream.ToolResultEventMember | ChatResponseStream.ToolUseEventMember | ChatResponseStream.$UnknownMember;
2482
2720
  /**
2483
2721
  * @public
2484
2722
  */
@@ -2490,6 +2728,7 @@ export declare namespace ChatResponseStream {
2490
2728
  interface MessageMetadataEventMember {
2491
2729
  messageMetadataEvent: MessageMetadataEvent;
2492
2730
  assistantResponseEvent?: never;
2731
+ reasoningContentEvent?: never;
2493
2732
  dryRunSucceedEvent?: never;
2494
2733
  codeReferenceEvent?: never;
2495
2734
  supplementaryWebLinksEvent?: never;
@@ -2499,6 +2738,9 @@ export declare namespace ChatResponseStream {
2499
2738
  interactionComponentsEvent?: never;
2500
2739
  toolUseEvent?: never;
2501
2740
  toolResultEvent?: never;
2741
+ metadataEvent?: never;
2742
+ meteringEvent?: never;
2743
+ contextUsageEvent?: never;
2502
2744
  citationEvent?: never;
2503
2745
  invalidStateEvent?: never;
2504
2746
  error?: never;
@@ -2511,6 +2753,32 @@ export declare namespace ChatResponseStream {
2511
2753
  interface AssistantResponseEventMember {
2512
2754
  messageMetadataEvent?: never;
2513
2755
  assistantResponseEvent: AssistantResponseEvent;
2756
+ reasoningContentEvent?: never;
2757
+ dryRunSucceedEvent?: never;
2758
+ codeReferenceEvent?: never;
2759
+ supplementaryWebLinksEvent?: never;
2760
+ followupPromptEvent?: never;
2761
+ codeEvent?: never;
2762
+ intentsEvent?: never;
2763
+ interactionComponentsEvent?: never;
2764
+ toolUseEvent?: never;
2765
+ toolResultEvent?: never;
2766
+ metadataEvent?: never;
2767
+ meteringEvent?: never;
2768
+ contextUsageEvent?: never;
2769
+ citationEvent?: never;
2770
+ invalidStateEvent?: never;
2771
+ error?: never;
2772
+ $unknown?: never;
2773
+ }
2774
+ /**
2775
+ * Reasoning process returned by models
2776
+ * @public
2777
+ */
2778
+ interface ReasoningContentEventMember {
2779
+ messageMetadataEvent?: never;
2780
+ assistantResponseEvent?: never;
2781
+ reasoningContentEvent: ReasoningContentEvent;
2514
2782
  dryRunSucceedEvent?: never;
2515
2783
  codeReferenceEvent?: never;
2516
2784
  supplementaryWebLinksEvent?: never;
@@ -2520,6 +2788,9 @@ export declare namespace ChatResponseStream {
2520
2788
  interactionComponentsEvent?: never;
2521
2789
  toolUseEvent?: never;
2522
2790
  toolResultEvent?: never;
2791
+ metadataEvent?: never;
2792
+ meteringEvent?: never;
2793
+ contextUsageEvent?: never;
2523
2794
  citationEvent?: never;
2524
2795
  invalidStateEvent?: never;
2525
2796
  error?: never;
@@ -2532,6 +2803,7 @@ export declare namespace ChatResponseStream {
2532
2803
  interface DryRunSucceedEventMember {
2533
2804
  messageMetadataEvent?: never;
2534
2805
  assistantResponseEvent?: never;
2806
+ reasoningContentEvent?: never;
2535
2807
  dryRunSucceedEvent: DryRunSucceedEvent;
2536
2808
  codeReferenceEvent?: never;
2537
2809
  supplementaryWebLinksEvent?: never;
@@ -2541,6 +2813,9 @@ export declare namespace ChatResponseStream {
2541
2813
  interactionComponentsEvent?: never;
2542
2814
  toolUseEvent?: never;
2543
2815
  toolResultEvent?: never;
2816
+ metadataEvent?: never;
2817
+ meteringEvent?: never;
2818
+ contextUsageEvent?: never;
2544
2819
  citationEvent?: never;
2545
2820
  invalidStateEvent?: never;
2546
2821
  error?: never;
@@ -2553,6 +2828,7 @@ export declare namespace ChatResponseStream {
2553
2828
  interface CodeReferenceEventMember {
2554
2829
  messageMetadataEvent?: never;
2555
2830
  assistantResponseEvent?: never;
2831
+ reasoningContentEvent?: never;
2556
2832
  dryRunSucceedEvent?: never;
2557
2833
  codeReferenceEvent: CodeReferenceEvent;
2558
2834
  supplementaryWebLinksEvent?: never;
@@ -2562,6 +2838,9 @@ export declare namespace ChatResponseStream {
2562
2838
  interactionComponentsEvent?: never;
2563
2839
  toolUseEvent?: never;
2564
2840
  toolResultEvent?: never;
2841
+ metadataEvent?: never;
2842
+ meteringEvent?: never;
2843
+ contextUsageEvent?: never;
2565
2844
  citationEvent?: never;
2566
2845
  invalidStateEvent?: never;
2567
2846
  error?: never;
@@ -2574,6 +2853,7 @@ export declare namespace ChatResponseStream {
2574
2853
  interface SupplementaryWebLinksEventMember {
2575
2854
  messageMetadataEvent?: never;
2576
2855
  assistantResponseEvent?: never;
2856
+ reasoningContentEvent?: never;
2577
2857
  dryRunSucceedEvent?: never;
2578
2858
  codeReferenceEvent?: never;
2579
2859
  supplementaryWebLinksEvent: SupplementaryWebLinksEvent;
@@ -2583,6 +2863,9 @@ export declare namespace ChatResponseStream {
2583
2863
  interactionComponentsEvent?: never;
2584
2864
  toolUseEvent?: never;
2585
2865
  toolResultEvent?: never;
2866
+ metadataEvent?: never;
2867
+ meteringEvent?: never;
2868
+ contextUsageEvent?: never;
2586
2869
  citationEvent?: never;
2587
2870
  invalidStateEvent?: never;
2588
2871
  error?: never;
@@ -2595,6 +2878,7 @@ export declare namespace ChatResponseStream {
2595
2878
  interface FollowupPromptEventMember {
2596
2879
  messageMetadataEvent?: never;
2597
2880
  assistantResponseEvent?: never;
2881
+ reasoningContentEvent?: never;
2598
2882
  dryRunSucceedEvent?: never;
2599
2883
  codeReferenceEvent?: never;
2600
2884
  supplementaryWebLinksEvent?: never;
@@ -2604,6 +2888,9 @@ export declare namespace ChatResponseStream {
2604
2888
  interactionComponentsEvent?: never;
2605
2889
  toolUseEvent?: never;
2606
2890
  toolResultEvent?: never;
2891
+ metadataEvent?: never;
2892
+ meteringEvent?: never;
2893
+ contextUsageEvent?: never;
2607
2894
  citationEvent?: never;
2608
2895
  invalidStateEvent?: never;
2609
2896
  error?: never;
@@ -2616,6 +2903,7 @@ export declare namespace ChatResponseStream {
2616
2903
  interface CodeEventMember {
2617
2904
  messageMetadataEvent?: never;
2618
2905
  assistantResponseEvent?: never;
2906
+ reasoningContentEvent?: never;
2619
2907
  dryRunSucceedEvent?: never;
2620
2908
  codeReferenceEvent?: never;
2621
2909
  supplementaryWebLinksEvent?: never;
@@ -2625,6 +2913,9 @@ export declare namespace ChatResponseStream {
2625
2913
  interactionComponentsEvent?: never;
2626
2914
  toolUseEvent?: never;
2627
2915
  toolResultEvent?: never;
2916
+ metadataEvent?: never;
2917
+ meteringEvent?: never;
2918
+ contextUsageEvent?: never;
2628
2919
  citationEvent?: never;
2629
2920
  invalidStateEvent?: never;
2630
2921
  error?: never;
@@ -2637,6 +2928,7 @@ export declare namespace ChatResponseStream {
2637
2928
  interface IntentsEventMember {
2638
2929
  messageMetadataEvent?: never;
2639
2930
  assistantResponseEvent?: never;
2931
+ reasoningContentEvent?: never;
2640
2932
  dryRunSucceedEvent?: never;
2641
2933
  codeReferenceEvent?: never;
2642
2934
  supplementaryWebLinksEvent?: never;
@@ -2646,6 +2938,9 @@ export declare namespace ChatResponseStream {
2646
2938
  interactionComponentsEvent?: never;
2647
2939
  toolUseEvent?: never;
2648
2940
  toolResultEvent?: never;
2941
+ metadataEvent?: never;
2942
+ meteringEvent?: never;
2943
+ contextUsageEvent?: never;
2649
2944
  citationEvent?: never;
2650
2945
  invalidStateEvent?: never;
2651
2946
  error?: never;
@@ -2658,6 +2953,7 @@ export declare namespace ChatResponseStream {
2658
2953
  interface InteractionComponentsEventMember {
2659
2954
  messageMetadataEvent?: never;
2660
2955
  assistantResponseEvent?: never;
2956
+ reasoningContentEvent?: never;
2661
2957
  dryRunSucceedEvent?: never;
2662
2958
  codeReferenceEvent?: never;
2663
2959
  supplementaryWebLinksEvent?: never;
@@ -2667,6 +2963,9 @@ export declare namespace ChatResponseStream {
2667
2963
  interactionComponentsEvent: InteractionComponentsEvent;
2668
2964
  toolUseEvent?: never;
2669
2965
  toolResultEvent?: never;
2966
+ metadataEvent?: never;
2967
+ meteringEvent?: never;
2968
+ contextUsageEvent?: never;
2670
2969
  citationEvent?: never;
2671
2970
  invalidStateEvent?: never;
2672
2971
  error?: never;
@@ -2679,6 +2978,7 @@ export declare namespace ChatResponseStream {
2679
2978
  interface ToolUseEventMember {
2680
2979
  messageMetadataEvent?: never;
2681
2980
  assistantResponseEvent?: never;
2981
+ reasoningContentEvent?: never;
2682
2982
  dryRunSucceedEvent?: never;
2683
2983
  codeReferenceEvent?: never;
2684
2984
  supplementaryWebLinksEvent?: never;
@@ -2688,6 +2988,9 @@ export declare namespace ChatResponseStream {
2688
2988
  interactionComponentsEvent?: never;
2689
2989
  toolUseEvent: ToolUseEvent;
2690
2990
  toolResultEvent?: never;
2991
+ metadataEvent?: never;
2992
+ meteringEvent?: never;
2993
+ contextUsageEvent?: never;
2691
2994
  citationEvent?: never;
2692
2995
  invalidStateEvent?: never;
2693
2996
  error?: never;
@@ -2700,6 +3003,7 @@ export declare namespace ChatResponseStream {
2700
3003
  interface ToolResultEventMember {
2701
3004
  messageMetadataEvent?: never;
2702
3005
  assistantResponseEvent?: never;
3006
+ reasoningContentEvent?: never;
2703
3007
  dryRunSucceedEvent?: never;
2704
3008
  codeReferenceEvent?: never;
2705
3009
  supplementaryWebLinksEvent?: never;
@@ -2709,6 +3013,84 @@ export declare namespace ChatResponseStream {
2709
3013
  interactionComponentsEvent?: never;
2710
3014
  toolUseEvent?: never;
2711
3015
  toolResultEvent: ToolResultEvent;
3016
+ metadataEvent?: never;
3017
+ meteringEvent?: never;
3018
+ contextUsageEvent?: never;
3019
+ citationEvent?: never;
3020
+ invalidStateEvent?: never;
3021
+ error?: never;
3022
+ $unknown?: never;
3023
+ }
3024
+ /**
3025
+ * Metadata event
3026
+ * @public
3027
+ */
3028
+ interface MetadataEventMember {
3029
+ messageMetadataEvent?: never;
3030
+ assistantResponseEvent?: never;
3031
+ reasoningContentEvent?: never;
3032
+ dryRunSucceedEvent?: never;
3033
+ codeReferenceEvent?: never;
3034
+ supplementaryWebLinksEvent?: never;
3035
+ followupPromptEvent?: never;
3036
+ codeEvent?: never;
3037
+ intentsEvent?: never;
3038
+ interactionComponentsEvent?: never;
3039
+ toolUseEvent?: never;
3040
+ toolResultEvent?: never;
3041
+ metadataEvent: MetadataEvent;
3042
+ meteringEvent?: never;
3043
+ contextUsageEvent?: never;
3044
+ citationEvent?: never;
3045
+ invalidStateEvent?: never;
3046
+ error?: never;
3047
+ $unknown?: never;
3048
+ }
3049
+ /**
3050
+ * Metering event
3051
+ * @public
3052
+ */
3053
+ interface MeteringEventMember {
3054
+ messageMetadataEvent?: never;
3055
+ assistantResponseEvent?: never;
3056
+ reasoningContentEvent?: never;
3057
+ dryRunSucceedEvent?: never;
3058
+ codeReferenceEvent?: never;
3059
+ supplementaryWebLinksEvent?: never;
3060
+ followupPromptEvent?: never;
3061
+ codeEvent?: never;
3062
+ intentsEvent?: never;
3063
+ interactionComponentsEvent?: never;
3064
+ toolUseEvent?: never;
3065
+ toolResultEvent?: never;
3066
+ metadataEvent?: never;
3067
+ meteringEvent: MeteringEvent;
3068
+ contextUsageEvent?: never;
3069
+ citationEvent?: never;
3070
+ invalidStateEvent?: never;
3071
+ error?: never;
3072
+ $unknown?: never;
3073
+ }
3074
+ /**
3075
+ * Context Usage event
3076
+ * @public
3077
+ */
3078
+ interface ContextUsageEventMember {
3079
+ messageMetadataEvent?: never;
3080
+ assistantResponseEvent?: never;
3081
+ reasoningContentEvent?: never;
3082
+ dryRunSucceedEvent?: never;
3083
+ codeReferenceEvent?: never;
3084
+ supplementaryWebLinksEvent?: never;
3085
+ followupPromptEvent?: never;
3086
+ codeEvent?: never;
3087
+ intentsEvent?: never;
3088
+ interactionComponentsEvent?: never;
3089
+ toolUseEvent?: never;
3090
+ toolResultEvent?: never;
3091
+ metadataEvent?: never;
3092
+ meteringEvent?: never;
3093
+ contextUsageEvent: ContextUsageEvent;
2712
3094
  citationEvent?: never;
2713
3095
  invalidStateEvent?: never;
2714
3096
  error?: never;
@@ -2721,6 +3103,7 @@ export declare namespace ChatResponseStream {
2721
3103
  interface CitationEventMember {
2722
3104
  messageMetadataEvent?: never;
2723
3105
  assistantResponseEvent?: never;
3106
+ reasoningContentEvent?: never;
2724
3107
  dryRunSucceedEvent?: never;
2725
3108
  codeReferenceEvent?: never;
2726
3109
  supplementaryWebLinksEvent?: never;
@@ -2730,6 +3113,9 @@ export declare namespace ChatResponseStream {
2730
3113
  interactionComponentsEvent?: never;
2731
3114
  toolUseEvent?: never;
2732
3115
  toolResultEvent?: never;
3116
+ metadataEvent?: never;
3117
+ meteringEvent?: never;
3118
+ contextUsageEvent?: never;
2733
3119
  citationEvent: CitationEvent;
2734
3120
  invalidStateEvent?: never;
2735
3121
  error?: never;
@@ -2742,6 +3128,7 @@ export declare namespace ChatResponseStream {
2742
3128
  interface InvalidStateEventMember {
2743
3129
  messageMetadataEvent?: never;
2744
3130
  assistantResponseEvent?: never;
3131
+ reasoningContentEvent?: never;
2745
3132
  dryRunSucceedEvent?: never;
2746
3133
  codeReferenceEvent?: never;
2747
3134
  supplementaryWebLinksEvent?: never;
@@ -2751,6 +3138,9 @@ export declare namespace ChatResponseStream {
2751
3138
  interactionComponentsEvent?: never;
2752
3139
  toolUseEvent?: never;
2753
3140
  toolResultEvent?: never;
3141
+ metadataEvent?: never;
3142
+ meteringEvent?: never;
3143
+ contextUsageEvent?: never;
2754
3144
  citationEvent?: never;
2755
3145
  invalidStateEvent: InvalidStateEvent;
2756
3146
  error?: never;
@@ -2763,6 +3153,7 @@ export declare namespace ChatResponseStream {
2763
3153
  interface ErrorMember {
2764
3154
  messageMetadataEvent?: never;
2765
3155
  assistantResponseEvent?: never;
3156
+ reasoningContentEvent?: never;
2766
3157
  dryRunSucceedEvent?: never;
2767
3158
  codeReferenceEvent?: never;
2768
3159
  supplementaryWebLinksEvent?: never;
@@ -2772,6 +3163,9 @@ export declare namespace ChatResponseStream {
2772
3163
  interactionComponentsEvent?: never;
2773
3164
  toolUseEvent?: never;
2774
3165
  toolResultEvent?: never;
3166
+ metadataEvent?: never;
3167
+ meteringEvent?: never;
3168
+ contextUsageEvent?: never;
2775
3169
  citationEvent?: never;
2776
3170
  invalidStateEvent?: never;
2777
3171
  error: InternalServerException;
@@ -2783,6 +3177,7 @@ export declare namespace ChatResponseStream {
2783
3177
  interface $UnknownMember {
2784
3178
  messageMetadataEvent?: never;
2785
3179
  assistantResponseEvent?: never;
3180
+ reasoningContentEvent?: never;
2786
3181
  dryRunSucceedEvent?: never;
2787
3182
  codeReferenceEvent?: never;
2788
3183
  supplementaryWebLinksEvent?: never;
@@ -2792,6 +3187,9 @@ export declare namespace ChatResponseStream {
2792
3187
  interactionComponentsEvent?: never;
2793
3188
  toolUseEvent?: never;
2794
3189
  toolResultEvent?: never;
3190
+ metadataEvent?: never;
3191
+ meteringEvent?: never;
3192
+ contextUsageEvent?: never;
2795
3193
  citationEvent?: never;
2796
3194
  invalidStateEvent?: never;
2797
3195
  error?: never;
@@ -2800,6 +3198,7 @@ export declare namespace ChatResponseStream {
2800
3198
  interface Visitor<T> {
2801
3199
  messageMetadataEvent: (value: MessageMetadataEvent) => T;
2802
3200
  assistantResponseEvent: (value: AssistantResponseEvent) => T;
3201
+ reasoningContentEvent: (value: ReasoningContentEvent) => T;
2803
3202
  dryRunSucceedEvent: (value: DryRunSucceedEvent) => T;
2804
3203
  codeReferenceEvent: (value: CodeReferenceEvent) => T;
2805
3204
  supplementaryWebLinksEvent: (value: SupplementaryWebLinksEvent) => T;
@@ -2809,6 +3208,9 @@ export declare namespace ChatResponseStream {
2809
3208
  interactionComponentsEvent: (value: InteractionComponentsEvent) => T;
2810
3209
  toolUseEvent: (value: ToolUseEvent) => T;
2811
3210
  toolResultEvent: (value: ToolResultEvent) => T;
3211
+ metadataEvent: (value: MetadataEvent) => T;
3212
+ meteringEvent: (value: MeteringEvent) => T;
3213
+ contextUsageEvent: (value: ContextUsageEvent) => T;
2812
3214
  citationEvent: (value: CitationEvent) => T;
2813
3215
  invalidStateEvent: (value: InvalidStateEvent) => T;
2814
3216
  error: (value: InternalServerException) => T;
@@ -2885,6 +3287,16 @@ export interface ConversationState {
2885
3287
  */
2886
3288
  chatTriggerType: ChatTriggerType | undefined;
2887
3289
  customizationArn?: string | undefined;
3290
+ /**
3291
+ * Unique identifier for the agent task execution
3292
+ * @public
3293
+ */
3294
+ agentContinuationId?: string | undefined;
3295
+ /**
3296
+ * Type of agent task
3297
+ * @public
3298
+ */
3299
+ agentTaskType?: AgentTaskType | undefined;
2888
3300
  }
2889
3301
  /**
2890
3302
  * @internal
@@ -3061,32 +3473,17 @@ export declare namespace ResultArchiveStream {
3061
3473
  */
3062
3474
  export declare const ResultArchiveStreamFilterSensitiveLog: (obj: ResultArchiveStream) => any;
3063
3475
  /**
3064
- * @public
3065
- * @enum
3066
- */
3067
- export declare const ServiceQuotaExceededExceptionReason: {
3068
- readonly CONVERSATION_LIMIT_EXCEEDED: "CONVERSATION_LIMIT_EXCEEDED";
3069
- };
3070
- /**
3476
+ * This exception is thrown when the service is unavailable
3477
+ *
3071
3478
  * @public
3072
3479
  */
3073
- export type ServiceQuotaExceededExceptionReason = typeof ServiceQuotaExceededExceptionReason[keyof typeof ServiceQuotaExceededExceptionReason];
3074
- /**
3075
- * This exception is thrown when request was denied due to caller exceeding their usage limits
3076
- * @public
3077
- */
3078
- export declare class ServiceQuotaExceededException extends __BaseException {
3079
- readonly name: "ServiceQuotaExceededException";
3080
- readonly $fault: "client";
3081
- /**
3082
- * Reason for ServiceQuotaExceededException
3083
- * @public
3084
- */
3085
- reason?: ServiceQuotaExceededExceptionReason | undefined;
3480
+ export declare class ServiceUnavailableException extends __BaseException {
3481
+ readonly name: "ServiceUnavailableException";
3482
+ readonly $fault: "server";
3086
3483
  /**
3087
3484
  * @internal
3088
3485
  */
3089
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
3486
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
3090
3487
  }
3091
3488
  /**
3092
3489
  * Represents a Workspace state uploaded to S3 for Async Code Actions
@@ -3120,6 +3517,7 @@ export interface GenerateAssistantResponseRequest {
3120
3517
  */
3121
3518
  conversationState: ConversationState | undefined;
3122
3519
  profileArn?: string | undefined;
3520
+ agentMode?: string | undefined;
3123
3521
  }
3124
3522
  /**
3125
3523
  * @internal
@@ -3178,6 +3576,113 @@ export interface ExportResultArchiveResponse {
3178
3576
  * @internal
3179
3577
  */
3180
3578
  export declare const ExportResultArchiveResponseFilterSensitiveLog: (obj: ExportResultArchiveResponse) => any;
3579
+ /**
3580
+ * @public
3581
+ * @enum
3582
+ */
3583
+ export declare const MCPMethod: {
3584
+ /**
3585
+ * Initialize capability negotiation
3586
+ */
3587
+ readonly INITIALIZE: "initialize";
3588
+ /**
3589
+ * Successful initialization in the MCP lifecycle
3590
+ */
3591
+ readonly NOTIFICATIONS_INITIALIZED: "notifications/initialized";
3592
+ /**
3593
+ * Call a specific tool
3594
+ */
3595
+ readonly TOOLS_CALL: "tools/call";
3596
+ /**
3597
+ * List available tools
3598
+ */
3599
+ readonly TOOLS_LIST: "tools/list";
3600
+ };
3601
+ /**
3602
+ * @public
3603
+ */
3604
+ export type MCPMethod = typeof MCPMethod[keyof typeof MCPMethod];
3605
+ /**
3606
+ * JSON-RPC 2.0 request structure for MCP operations
3607
+ * @public
3608
+ */
3609
+ export interface InvokeMCPRequest {
3610
+ /**
3611
+ * JSON-RPC protocol version
3612
+ * @public
3613
+ */
3614
+ jsonrpc?: string | undefined;
3615
+ /**
3616
+ * Request identifier for response correlation (string, number, or null per JSON-RPC 2.0)
3617
+ * @public
3618
+ */
3619
+ id?: __DocumentType | undefined;
3620
+ /**
3621
+ * MCP method name
3622
+ * @public
3623
+ */
3624
+ method: MCPMethod | undefined;
3625
+ /**
3626
+ * Method-specific parameters
3627
+ * @public
3628
+ */
3629
+ params?: __DocumentType | undefined;
3630
+ }
3631
+ /**
3632
+ * @internal
3633
+ */
3634
+ export declare const InvokeMCPRequestFilterSensitiveLog: (obj: InvokeMCPRequest) => any;
3635
+ /**
3636
+ * JSON-RPC 2.0 error structure
3637
+ * @public
3638
+ */
3639
+ export interface JsonRpcError {
3640
+ /**
3641
+ * Error code (standard JSON-RPC or MCP-specific)
3642
+ * @public
3643
+ */
3644
+ code: number | undefined;
3645
+ /**
3646
+ * Human-readable error message
3647
+ * @public
3648
+ */
3649
+ message: string | undefined;
3650
+ /**
3651
+ * Additional error data
3652
+ * @public
3653
+ */
3654
+ data?: __DocumentType | undefined;
3655
+ }
3656
+ /**
3657
+ * JSON-RPC 2.0 response structure for MCP operations
3658
+ * @public
3659
+ */
3660
+ export interface InvokeMCPResponse {
3661
+ /**
3662
+ * JSON-RPC protocol version
3663
+ * @public
3664
+ */
3665
+ jsonrpc?: string | undefined;
3666
+ /**
3667
+ * Request identifier for response correlation (string, number, or null per JSON-RPC 2.0)
3668
+ * @public
3669
+ */
3670
+ id?: __DocumentType | undefined;
3671
+ /**
3672
+ * Success result (mutually exclusive with error)
3673
+ * @public
3674
+ */
3675
+ result?: __DocumentType | undefined;
3676
+ /**
3677
+ * Error information (mutually exclusive with result)
3678
+ * @public
3679
+ */
3680
+ error?: JsonRpcError | undefined;
3681
+ }
3682
+ /**
3683
+ * @internal
3684
+ */
3685
+ export declare const InvokeMCPResponseFilterSensitiveLog: (obj: InvokeMCPResponse) => any;
3181
3686
  /**
3182
3687
  * Structure to represent a SendMessage request.
3183
3688
  * @public