@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.
- package/CHANGELOG.md +42 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/README.md +259 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreamingClient.js +14 -11
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/GenerateCodeFromCommandsCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/SendMessageCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/EndpointParameters.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/endpointResolver.js +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/ruleset.js +61 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/models_0.js +148 -64
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/protocols/Aws_json1_0.js +92 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.shared.js +2 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreamingClient.js +16 -13
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/GenerateCodeFromCommandsCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/SendMessageCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/EndpointParameters.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/endpointResolver.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/ruleset.js +58 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/models_0.js +138 -57
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/protocols/Aws_json1_0.js +94 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.shared.js +2 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreamingClient.d.ts +6 -9
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/GenerateCodeFromCommandsCommand.d.ts +6 -6
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/SendMessageCommand.d.ts +68 -11
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/EndpointParameters.d.ts +28 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/index.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/models_0.d.ts +472 -87
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.browser.d.ts +5 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.d.ts +5 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.native.d.ts +5 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/node_modules/@amzn/amazon-q-developer-streaming-client/package.json +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/README.md +266 -7
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreaming.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/InvokeMCPCommand.js +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +172 -58
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +164 -3
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreaming.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/InvokeMCPCommand.js +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +159 -51
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +163 -4
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreaming.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +3 -2
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +5 -5
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +68 -3
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +63 -6
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/InvokeMCPCommand.d.ts +93 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +68 -11
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/index.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +585 -80
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/out/language-server/agenticChat/agenticChatController.js +17 -5
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js +21 -13
- package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +12 -4
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js +192 -37
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js +42 -20
- package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js +4 -0
- package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js.map +1 -1
- package/out/language-server/agenticChat/tools/toolServer.js +57 -12
- package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.d.ts +3 -3
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js +4 -4
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js.map +1 -1
- package/out/language-server/netTransform/utils.js +2 -4
- package/out/language-server/netTransform/utils.js.map +1 -1
- package/out/shared/codeWhispererService.js +1 -0
- package/out/shared/codeWhispererService.js.map +1 -1
- package/out/shared/telemetry/telemetryService.js +2 -1
- package/out/shared/telemetry/telemetryService.js.map +1 -1
- package/out/shared/utils.js +6 -4
- package/out/shared/utils.js.map +1 -1
- package/package.json +5 -4
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoints.js +0 -211
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoints.js +0 -207
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoints.d.ts +0 -2
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.GenerateCodeFromCommandsResponseFilterSensitiveLog = exports.GenerateCodeFromCommandsResponseStreamFilterSensitiveLog = exports.GenerateCodeFromCommandsResponseStream = exports.GenerateCodeFromCommandsRequestFilterSensitiveLog = exports.SendMessageResponseFilterSensitiveLog = exports.SendMessageRequestFilterSensitiveLog = exports.
|
|
3
|
+
exports.GitStateFilterSensitiveLog = exports.EnvStateFilterSensitiveLog = exports.EnvironmentVariableFilterSensitiveLog = exports.EditorStateFilterSensitiveLog = exports.RelevantTextDocumentFilterSensitiveLog = exports.ContentType = exports.CursorState = exports.DiagnosticFilterSensitiveLog = exports.Diagnostic = exports.TextDocumentDiagnosticFilterSensitiveLog = exports.DiagnosticTag = exports.DiagnosticRelatedInformationFilterSensitiveLog = exports.DiagnosticLocationFilterSensitiveLog = exports.TextDocumentFilterSensitiveLog = exports.SymbolType = exports.CodeDescriptionFilterSensitiveLog = exports.RuntimeDiagnosticFilterSensitiveLog = exports.DiagnosticSeverity = exports.ConsoleStateFilterSensitiveLog = exports.Origin = exports.ImageBlockFilterSensitiveLog = exports.ImageSourceFilterSensitiveLog = exports.ImageSource = exports.ImageFormat = exports.AssistantResponseMessageFilterSensitiveLog = exports.ToolUseFilterSensitiveLog = exports.SupplementaryWebLinkFilterSensitiveLog = exports.ReasoningContentFilterSensitiveLog = exports.ReasoningContent = exports.ReasoningTextFilterSensitiveLog = exports.FollowupPromptFilterSensitiveLog = exports.UserIntent = exports.CachePointType = exports.AssistantResponseEventFilterSensitiveLog = exports.AppStudioStateFilterSensitiveLog = exports.AgentTaskType = exports.AdditionalContentEntryFilterSensitiveLog = exports.ServiceQuotaExceededException = exports.ServiceQuotaExceededExceptionReason = exports.ResourceNotFoundException = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ThrottlingExceptionReason = exports.InternalServerException = exports.InternalServerExceptionReason = exports.ConflictException = exports.ConflictExceptionReason = exports.AccessDeniedException = exports.AccessDeniedExceptionReason = void 0;
|
|
4
|
+
exports.InteractionComponentFilterSensitiveLog = exports.TaskDetailsFilterSensitiveLog = exports.TaskOverviewFilterSensitiveLog = exports.TaskComponentFilterSensitiveLog = exports.TaskActionFilterSensitiveLog = exports.TaskActionNoteFilterSensitiveLog = exports.TaskActionNoteType = exports.TaskActionConfirmationFilterSensitiveLog = exports.SuggestionsFilterSensitiveLog = exports.SuggestionFilterSensitiveLog = exports.SectionFilterSensitiveLog = exports.SectionComponentFilterSensitiveLog = exports.ResourceListFilterSensitiveLog = exports.ResourceFilterSensitiveLog = exports.ProgressFilterSensitiveLog = exports.ProgressComponentFilterSensitiveLog = exports.StepFilterSensitiveLog = exports.StepState = exports.StepComponentFilterSensitiveLog = exports.InfrastructureUpdateFilterSensitiveLog = exports.InfrastructureUpdateTransitionFilterSensitiveLog = exports.AlertFilterSensitiveLog = exports.AlertType = exports.AlertComponentFilterSensitiveLog = exports.TextFilterSensitiveLog = exports.ActionFilterSensitiveLog = exports.WebLinkFilterSensitiveLog = exports.ModuleLinkFilterSensitiveLog = exports.CloudWatchTroubleshootingLinkFilterSensitiveLog = exports.IntentsEventFilterSensitiveLog = exports.IntentDataType = exports.IntentType = exports.FollowupPromptEventFilterSensitiveLog = exports.CodeEventFilterSensitiveLog = exports.CitationEventFilterSensitiveLog = exports.CitationTarget = exports.ChatMessageFilterSensitiveLog = exports.ChatMessage = exports.UserInputMessageFilterSensitiveLog = exports.UserInputMessageContextFilterSensitiveLog = exports.ToolFilterSensitiveLog = exports.Tool = exports.ToolSpecificationFilterSensitiveLog = exports.ToolInputSchemaFilterSensitiveLog = exports.ToolResultFilterSensitiveLog = exports.ToolResultStatus = exports.ToolResultContentBlockFilterSensitiveLog = exports.ToolResultContentBlock = exports.ShellStateFilterSensitiveLog = exports.ShellHistoryEntryFilterSensitiveLog = void 0;
|
|
5
|
+
exports.GenerateCodeFromCommandsResponseFilterSensitiveLog = exports.GenerateCodeFromCommandsResponseStreamFilterSensitiveLog = exports.GenerateCodeFromCommandsResponseStream = exports.GenerateCodeFromCommandsRequestFilterSensitiveLog = exports.SendMessageResponseFilterSensitiveLog = exports.SendMessageRequestFilterSensitiveLog = exports.OutputFormat = exports.DryRunOperationException = exports.ConversationStateFilterSensitiveLog = exports.CommandInputFilterSensitiveLog = exports.CommandInput = exports.ChatTriggerType = exports.ChatResponseStreamFilterSensitiveLog = exports.ChatResponseStream = exports.ToolUseEventFilterSensitiveLog = exports.ToolResultEventFilterSensitiveLog = exports.SupplementaryWebLinksEventFilterSensitiveLog = exports.ReasoningContentEventFilterSensitiveLog = exports.InvalidStateReason = exports.InteractionComponentsEventFilterSensitiveLog = exports.InteractionComponentEntryFilterSensitiveLog = void 0;
|
|
6
6
|
const QDeveloperStreamingServiceException_1 = require("./QDeveloperStreamingServiceException");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
exports.AccessDeniedExceptionReason = {
|
|
9
|
+
FEATURE_NOT_SUPPORTED: "FEATURE_NOT_SUPPORTED",
|
|
10
|
+
TEMPORARILY_SUSPENDED: "TEMPORARILY_SUSPENDED",
|
|
9
11
|
UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS: "UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS",
|
|
10
12
|
UNAUTHORIZED_WORKSPACE_CONTEXT_FEATURE_ACCESS: "UNAUTHORIZED_WORKSPACE_CONTEXT_FEATURE_ACCESS",
|
|
11
13
|
};
|
|
@@ -24,16 +26,26 @@ class AccessDeniedException extends QDeveloperStreamingServiceException_1.QDevel
|
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
exports.AccessDeniedException = AccessDeniedException;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
exports.ConflictExceptionReason = {
|
|
30
|
+
CUSTOMER_KMS_KEY_DISABLED: "CUSTOMER_KMS_KEY_DISABLED",
|
|
31
|
+
CUSTOMER_KMS_KEY_INVALID_KEY_POLICY: "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY",
|
|
32
|
+
MISMATCHED_KMS_KEY: "MISMATCHED_KMS_KEY",
|
|
33
|
+
};
|
|
34
|
+
class ConflictException extends QDeveloperStreamingServiceException_1.QDeveloperStreamingServiceException {
|
|
35
|
+
name = "ConflictException";
|
|
36
|
+
$fault = "client";
|
|
37
|
+
reason;
|
|
38
|
+
constructor(opts) {
|
|
39
|
+
super({
|
|
40
|
+
name: "ConflictException",
|
|
41
|
+
$fault: "client",
|
|
42
|
+
...opts
|
|
43
|
+
});
|
|
44
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
45
|
+
this.reason = opts.reason;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.ConflictException = ConflictException;
|
|
37
49
|
exports.InternalServerExceptionReason = {
|
|
38
50
|
MODEL_TEMPORARILY_UNAVAILABLE: "MODEL_TEMPORARILY_UNAVAILABLE",
|
|
39
51
|
};
|
|
@@ -53,20 +65,9 @@ class InternalServerException extends QDeveloperStreamingServiceException_1.QDev
|
|
|
53
65
|
}
|
|
54
66
|
}
|
|
55
67
|
exports.InternalServerException = InternalServerException;
|
|
56
|
-
class ResourceNotFoundException extends QDeveloperStreamingServiceException_1.QDeveloperStreamingServiceException {
|
|
57
|
-
name = "ResourceNotFoundException";
|
|
58
|
-
$fault = "client";
|
|
59
|
-
constructor(opts) {
|
|
60
|
-
super({
|
|
61
|
-
name: "ResourceNotFoundException",
|
|
62
|
-
$fault: "client",
|
|
63
|
-
...opts
|
|
64
|
-
});
|
|
65
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
69
68
|
exports.ThrottlingExceptionReason = {
|
|
69
|
+
DAILY_REQUEST_COUNT: "DAILY_REQUEST_COUNT",
|
|
70
|
+
INSUFFICIENT_MODEL_CAPACITY: "INSUFFICIENT_MODEL_CAPACITY",
|
|
70
71
|
MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT",
|
|
71
72
|
};
|
|
72
73
|
class ThrottlingException extends QDeveloperStreamingServiceException_1.QDeveloperStreamingServiceException {
|
|
@@ -91,6 +92,7 @@ exports.ValidationExceptionReason = {
|
|
|
91
92
|
CONTENT_LENGTH_EXCEEDS_THRESHOLD: "CONTENT_LENGTH_EXCEEDS_THRESHOLD",
|
|
92
93
|
INVALID_CONVERSATION_ID: "INVALID_CONVERSATION_ID",
|
|
93
94
|
INVALID_KMS_GRANT: "INVALID_KMS_GRANT",
|
|
95
|
+
INVALID_MODEL_ID: "INVALID_MODEL_ID",
|
|
94
96
|
};
|
|
95
97
|
class ValidationException extends QDeveloperStreamingServiceException_1.QDeveloperStreamingServiceException {
|
|
96
98
|
name = "ValidationException";
|
|
@@ -107,6 +109,53 @@ class ValidationException extends QDeveloperStreamingServiceException_1.QDevelop
|
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
111
|
exports.ValidationException = ValidationException;
|
|
112
|
+
class ResourceNotFoundException extends QDeveloperStreamingServiceException_1.QDeveloperStreamingServiceException {
|
|
113
|
+
name = "ResourceNotFoundException";
|
|
114
|
+
$fault = "client";
|
|
115
|
+
constructor(opts) {
|
|
116
|
+
super({
|
|
117
|
+
name: "ResourceNotFoundException",
|
|
118
|
+
$fault: "client",
|
|
119
|
+
...opts
|
|
120
|
+
});
|
|
121
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
125
|
+
exports.ServiceQuotaExceededExceptionReason = {
|
|
126
|
+
CONVERSATION_LIMIT_EXCEEDED: "CONVERSATION_LIMIT_EXCEEDED",
|
|
127
|
+
MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT",
|
|
128
|
+
OVERAGE_REQUEST_LIMIT_EXCEEDED: "OVERAGE_REQUEST_LIMIT_EXCEEDED",
|
|
129
|
+
};
|
|
130
|
+
class ServiceQuotaExceededException extends QDeveloperStreamingServiceException_1.QDeveloperStreamingServiceException {
|
|
131
|
+
name = "ServiceQuotaExceededException";
|
|
132
|
+
$fault = "client";
|
|
133
|
+
reason;
|
|
134
|
+
constructor(opts) {
|
|
135
|
+
super({
|
|
136
|
+
name: "ServiceQuotaExceededException",
|
|
137
|
+
$fault: "client",
|
|
138
|
+
...opts
|
|
139
|
+
});
|
|
140
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
141
|
+
this.reason = opts.reason;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
145
|
+
const AdditionalContentEntryFilterSensitiveLog = (obj) => ({
|
|
146
|
+
...obj,
|
|
147
|
+
...(obj.name && { name: smithy_client_1.SENSITIVE_STRING
|
|
148
|
+
}),
|
|
149
|
+
...(obj.description && { description: smithy_client_1.SENSITIVE_STRING
|
|
150
|
+
}),
|
|
151
|
+
...(obj.innerContext && { innerContext: smithy_client_1.SENSITIVE_STRING
|
|
152
|
+
}),
|
|
153
|
+
});
|
|
154
|
+
exports.AdditionalContentEntryFilterSensitiveLog = AdditionalContentEntryFilterSensitiveLog;
|
|
155
|
+
exports.AgentTaskType = {
|
|
156
|
+
SPEC_TASK: "spectask",
|
|
157
|
+
VIBE: "vibe",
|
|
158
|
+
};
|
|
110
159
|
const AppStudioStateFilterSensitiveLog = (obj) => ({
|
|
111
160
|
...obj,
|
|
112
161
|
...(obj.namespace && { namespace: smithy_client_1.SENSITIVE_STRING
|
|
@@ -125,6 +174,9 @@ const AssistantResponseEventFilterSensitiveLog = (obj) => ({
|
|
|
125
174
|
}),
|
|
126
175
|
});
|
|
127
176
|
exports.AssistantResponseEventFilterSensitiveLog = AssistantResponseEventFilterSensitiveLog;
|
|
177
|
+
exports.CachePointType = {
|
|
178
|
+
DEFAULT: "default",
|
|
179
|
+
};
|
|
128
180
|
exports.UserIntent = {
|
|
129
181
|
APPLY_COMMON_BEST_PRACTICES: "APPLY_COMMON_BEST_PRACTICES",
|
|
130
182
|
CITE_SOURCES: "CITE_SOURCES",
|
|
@@ -143,6 +195,35 @@ const FollowupPromptFilterSensitiveLog = (obj) => ({
|
|
|
143
195
|
}),
|
|
144
196
|
});
|
|
145
197
|
exports.FollowupPromptFilterSensitiveLog = FollowupPromptFilterSensitiveLog;
|
|
198
|
+
const ReasoningTextFilterSensitiveLog = (obj) => ({
|
|
199
|
+
...obj,
|
|
200
|
+
...(obj.text && { text: smithy_client_1.SENSITIVE_STRING
|
|
201
|
+
}),
|
|
202
|
+
...(obj.signature && { signature: smithy_client_1.SENSITIVE_STRING
|
|
203
|
+
}),
|
|
204
|
+
});
|
|
205
|
+
exports.ReasoningTextFilterSensitiveLog = ReasoningTextFilterSensitiveLog;
|
|
206
|
+
var ReasoningContent;
|
|
207
|
+
(function (ReasoningContent) {
|
|
208
|
+
ReasoningContent.visit = (value, visitor) => {
|
|
209
|
+
if (value.reasoningText !== undefined)
|
|
210
|
+
return visitor.reasoningText(value.reasoningText);
|
|
211
|
+
if (value.redactedContent !== undefined)
|
|
212
|
+
return visitor.redactedContent(value.redactedContent);
|
|
213
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
214
|
+
};
|
|
215
|
+
})(ReasoningContent || (exports.ReasoningContent = ReasoningContent = {}));
|
|
216
|
+
const ReasoningContentFilterSensitiveLog = (obj) => {
|
|
217
|
+
if (obj.reasoningText !== undefined)
|
|
218
|
+
return { reasoningText: smithy_client_1.SENSITIVE_STRING
|
|
219
|
+
};
|
|
220
|
+
if (obj.redactedContent !== undefined)
|
|
221
|
+
return { redactedContent: obj.redactedContent
|
|
222
|
+
};
|
|
223
|
+
if (obj.$unknown !== undefined)
|
|
224
|
+
return { [obj.$unknown[0]]: 'UNKNOWN' };
|
|
225
|
+
};
|
|
226
|
+
exports.ReasoningContentFilterSensitiveLog = ReasoningContentFilterSensitiveLog;
|
|
146
227
|
const SupplementaryWebLinkFilterSensitiveLog = (obj) => ({
|
|
147
228
|
...obj,
|
|
148
229
|
...(obj.url && { url: smithy_client_1.SENSITIVE_STRING
|
|
@@ -171,28 +252,10 @@ const AssistantResponseMessageFilterSensitiveLog = (obj) => ({
|
|
|
171
252
|
}),
|
|
172
253
|
...(obj.toolUses && { toolUses: obj.toolUses.map(item => (0, exports.ToolUseFilterSensitiveLog)(item))
|
|
173
254
|
}),
|
|
255
|
+
...(obj.reasoningContent && { reasoningContent: smithy_client_1.SENSITIVE_STRING
|
|
256
|
+
}),
|
|
174
257
|
});
|
|
175
258
|
exports.AssistantResponseMessageFilterSensitiveLog = AssistantResponseMessageFilterSensitiveLog;
|
|
176
|
-
exports.ConflictExceptionReason = {
|
|
177
|
-
CUSTOMER_KMS_KEY_DISABLED: "CUSTOMER_KMS_KEY_DISABLED",
|
|
178
|
-
CUSTOMER_KMS_KEY_INVALID_KEY_POLICY: "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY",
|
|
179
|
-
MISMATCHED_KMS_KEY: "MISMATCHED_KMS_KEY",
|
|
180
|
-
};
|
|
181
|
-
class ConflictException extends QDeveloperStreamingServiceException_1.QDeveloperStreamingServiceException {
|
|
182
|
-
name = "ConflictException";
|
|
183
|
-
$fault = "client";
|
|
184
|
-
reason;
|
|
185
|
-
constructor(opts) {
|
|
186
|
-
super({
|
|
187
|
-
name: "ConflictException",
|
|
188
|
-
$fault: "client",
|
|
189
|
-
...opts
|
|
190
|
-
});
|
|
191
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
192
|
-
this.reason = opts.reason;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
exports.ConflictException = ConflictException;
|
|
196
259
|
exports.ImageFormat = {
|
|
197
260
|
GIF: "gif",
|
|
198
261
|
JPEG: "jpeg",
|
|
@@ -229,14 +292,18 @@ exports.Origin = {
|
|
|
229
292
|
DOCUMENTATION: "DOCUMENTATION",
|
|
230
293
|
GITLAB: "GITLAB",
|
|
231
294
|
IDE: "IDE",
|
|
295
|
+
INLINE_CHAT: "INLINE_CHAT",
|
|
296
|
+
KIRO_CLI: "KIRO_CLI",
|
|
232
297
|
MARKETING: "MARKETING",
|
|
233
298
|
MD: "MD",
|
|
299
|
+
MD_CE: "MD_CE",
|
|
234
300
|
MD_IDE: "MD_IDE",
|
|
235
301
|
MOBILE: "MOBILE",
|
|
236
302
|
OPENSEARCH_DASHBOARD: "OPENSEARCH_DASHBOARD",
|
|
237
303
|
Q_DEV_BEXT: "Q_DEV_BEXT",
|
|
238
304
|
SAGE_MAKER: "SAGE_MAKER",
|
|
239
305
|
SERVICE_INTERNAL: "SERVICE_INTERNAL",
|
|
306
|
+
SM_AI_STUDIO_IDE: "SM_AI_STUDIO_IDE",
|
|
240
307
|
UNIFIED_SEARCH: "UNIFIED_SEARCH",
|
|
241
308
|
UNKNOWN: "UNKNOWN",
|
|
242
309
|
};
|
|
@@ -465,6 +532,8 @@ var Tool;
|
|
|
465
532
|
Tool.visit = (value, visitor) => {
|
|
466
533
|
if (value.toolSpecification !== undefined)
|
|
467
534
|
return visitor.toolSpecification(value.toolSpecification);
|
|
535
|
+
if (value.cachePoint !== undefined)
|
|
536
|
+
return visitor.cachePoint(value.cachePoint);
|
|
468
537
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
469
538
|
};
|
|
470
539
|
})(Tool || (exports.Tool = Tool = {}));
|
|
@@ -472,6 +541,9 @@ const ToolFilterSensitiveLog = (obj) => {
|
|
|
472
541
|
if (obj.toolSpecification !== undefined)
|
|
473
542
|
return { toolSpecification: (0, exports.ToolSpecificationFilterSensitiveLog)(obj.toolSpecification)
|
|
474
543
|
};
|
|
544
|
+
if (obj.cachePoint !== undefined)
|
|
545
|
+
return { cachePoint: obj.cachePoint
|
|
546
|
+
};
|
|
475
547
|
if (obj.$unknown !== undefined)
|
|
476
548
|
return { [obj.$unknown[0]]: 'UNKNOWN' };
|
|
477
549
|
};
|
|
@@ -564,6 +636,7 @@ const FollowupPromptEventFilterSensitiveLog = (obj) => ({
|
|
|
564
636
|
});
|
|
565
637
|
exports.FollowupPromptEventFilterSensitiveLog = FollowupPromptEventFilterSensitiveLog;
|
|
566
638
|
exports.IntentType = {
|
|
639
|
+
ARTIFACT: "ARTIFACT",
|
|
567
640
|
DEEPLINKS: "DEEPLINKS",
|
|
568
641
|
GLUE_SENSEI: "GLUE_SENSEI",
|
|
569
642
|
RESOURCE_DATA: "RESOURCE_DATA",
|
|
@@ -844,6 +917,14 @@ exports.InteractionComponentsEventFilterSensitiveLog = InteractionComponentsEven
|
|
|
844
917
|
exports.InvalidStateReason = {
|
|
845
918
|
INVALID_TASK_ASSIST_PLAN: "INVALID_TASK_ASSIST_PLAN",
|
|
846
919
|
};
|
|
920
|
+
const ReasoningContentEventFilterSensitiveLog = (obj) => ({
|
|
921
|
+
...obj,
|
|
922
|
+
...(obj.text && { text: smithy_client_1.SENSITIVE_STRING
|
|
923
|
+
}),
|
|
924
|
+
...(obj.signature && { signature: smithy_client_1.SENSITIVE_STRING
|
|
925
|
+
}),
|
|
926
|
+
});
|
|
927
|
+
exports.ReasoningContentEventFilterSensitiveLog = ReasoningContentEventFilterSensitiveLog;
|
|
847
928
|
const SupplementaryWebLinksEventFilterSensitiveLog = (obj) => ({
|
|
848
929
|
...obj,
|
|
849
930
|
...(obj.supplementaryWebLinks && { supplementaryWebLinks: obj.supplementaryWebLinks.map(item => (0, exports.SupplementaryWebLinkFilterSensitiveLog)(item))
|
|
@@ -871,6 +952,8 @@ var ChatResponseStream;
|
|
|
871
952
|
return visitor.messageMetadataEvent(value.messageMetadataEvent);
|
|
872
953
|
if (value.assistantResponseEvent !== undefined)
|
|
873
954
|
return visitor.assistantResponseEvent(value.assistantResponseEvent);
|
|
955
|
+
if (value.reasoningContentEvent !== undefined)
|
|
956
|
+
return visitor.reasoningContentEvent(value.reasoningContentEvent);
|
|
874
957
|
if (value.dryRunSucceedEvent !== undefined)
|
|
875
958
|
return visitor.dryRunSucceedEvent(value.dryRunSucceedEvent);
|
|
876
959
|
if (value.codeReferenceEvent !== undefined)
|
|
@@ -889,6 +972,12 @@ var ChatResponseStream;
|
|
|
889
972
|
return visitor.toolUseEvent(value.toolUseEvent);
|
|
890
973
|
if (value.toolResultEvent !== undefined)
|
|
891
974
|
return visitor.toolResultEvent(value.toolResultEvent);
|
|
975
|
+
if (value.metadataEvent !== undefined)
|
|
976
|
+
return visitor.metadataEvent(value.metadataEvent);
|
|
977
|
+
if (value.meteringEvent !== undefined)
|
|
978
|
+
return visitor.meteringEvent(value.meteringEvent);
|
|
979
|
+
if (value.contextUsageEvent !== undefined)
|
|
980
|
+
return visitor.contextUsageEvent(value.contextUsageEvent);
|
|
892
981
|
if (value.citationEvent !== undefined)
|
|
893
982
|
return visitor.citationEvent(value.citationEvent);
|
|
894
983
|
if (value.invalidStateEvent !== undefined)
|
|
@@ -905,6 +994,9 @@ const ChatResponseStreamFilterSensitiveLog = (obj) => {
|
|
|
905
994
|
if (obj.assistantResponseEvent !== undefined)
|
|
906
995
|
return { assistantResponseEvent: (0, exports.AssistantResponseEventFilterSensitiveLog)(obj.assistantResponseEvent)
|
|
907
996
|
};
|
|
997
|
+
if (obj.reasoningContentEvent !== undefined)
|
|
998
|
+
return { reasoningContentEvent: smithy_client_1.SENSITIVE_STRING
|
|
999
|
+
};
|
|
908
1000
|
if (obj.dryRunSucceedEvent !== undefined)
|
|
909
1001
|
return { dryRunSucceedEvent: obj.dryRunSucceedEvent
|
|
910
1002
|
};
|
|
@@ -932,6 +1024,15 @@ const ChatResponseStreamFilterSensitiveLog = (obj) => {
|
|
|
932
1024
|
if (obj.toolResultEvent !== undefined)
|
|
933
1025
|
return { toolResultEvent: (0, exports.ToolResultEventFilterSensitiveLog)(obj.toolResultEvent)
|
|
934
1026
|
};
|
|
1027
|
+
if (obj.metadataEvent !== undefined)
|
|
1028
|
+
return { metadataEvent: obj.metadataEvent
|
|
1029
|
+
};
|
|
1030
|
+
if (obj.meteringEvent !== undefined)
|
|
1031
|
+
return { meteringEvent: obj.meteringEvent
|
|
1032
|
+
};
|
|
1033
|
+
if (obj.contextUsageEvent !== undefined)
|
|
1034
|
+
return { contextUsageEvent: obj.contextUsageEvent
|
|
1035
|
+
};
|
|
935
1036
|
if (obj.citationEvent !== undefined)
|
|
936
1037
|
return { citationEvent: (0, exports.CitationEventFilterSensitiveLog)(obj.citationEvent)
|
|
937
1038
|
};
|
|
@@ -993,27 +1094,10 @@ exports.OutputFormat = {
|
|
|
993
1094
|
JAVA_CDK: "java/cdk",
|
|
994
1095
|
JSON_CFN: "json/cfn",
|
|
995
1096
|
PYTHON_CDK: "python/cdk",
|
|
1097
|
+
TERRAFORM_IAC: "terraform/iac",
|
|
996
1098
|
TYPESCRIPT_CDK: "typescript/cdk",
|
|
997
1099
|
YAML_CFN: "yaml/cfn",
|
|
998
1100
|
};
|
|
999
|
-
exports.ServiceQuotaExceededExceptionReason = {
|
|
1000
|
-
CONVERSATION_LIMIT_EXCEEDED: "CONVERSATION_LIMIT_EXCEEDED",
|
|
1001
|
-
};
|
|
1002
|
-
class ServiceQuotaExceededException extends QDeveloperStreamingServiceException_1.QDeveloperStreamingServiceException {
|
|
1003
|
-
name = "ServiceQuotaExceededException";
|
|
1004
|
-
$fault = "client";
|
|
1005
|
-
reason;
|
|
1006
|
-
constructor(opts) {
|
|
1007
|
-
super({
|
|
1008
|
-
name: "ServiceQuotaExceededException",
|
|
1009
|
-
$fault: "client",
|
|
1010
|
-
...opts
|
|
1011
|
-
});
|
|
1012
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
1013
|
-
this.reason = opts.reason;
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1017
1101
|
const SendMessageRequestFilterSensitiveLog = (obj) => ({
|
|
1018
1102
|
...obj,
|
|
1019
1103
|
...(obj.conversationState && { conversationState: (0, exports.ConversationStateFilterSensitiveLog)(obj.conversationState)
|
package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/protocols/Aws_json1_0.js
CHANGED
|
@@ -168,6 +168,11 @@ const de_ChatResponseStream = (output, context) => {
|
|
|
168
168
|
assistantResponseEvent: await de_AssistantResponseEvent_event(event["assistantResponseEvent"], context),
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
+
if (event["reasoningContentEvent"] != null) {
|
|
172
|
+
return {
|
|
173
|
+
reasoningContentEvent: await de_ReasoningContentEvent_event(event["reasoningContentEvent"], context),
|
|
174
|
+
};
|
|
175
|
+
}
|
|
171
176
|
if (event["dryRunSucceedEvent"] != null) {
|
|
172
177
|
return {
|
|
173
178
|
dryRunSucceedEvent: await de_DryRunSucceedEvent_event(event["dryRunSucceedEvent"], context),
|
|
@@ -213,6 +218,21 @@ const de_ChatResponseStream = (output, context) => {
|
|
|
213
218
|
toolResultEvent: await de_ToolResultEvent_event(event["toolResultEvent"], context),
|
|
214
219
|
};
|
|
215
220
|
}
|
|
221
|
+
if (event["metadataEvent"] != null) {
|
|
222
|
+
return {
|
|
223
|
+
metadataEvent: await de_MetadataEvent_event(event["metadataEvent"], context),
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
if (event["meteringEvent"] != null) {
|
|
227
|
+
return {
|
|
228
|
+
meteringEvent: await de_MeteringEvent_event(event["meteringEvent"], context),
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
if (event["contextUsageEvent"] != null) {
|
|
232
|
+
return {
|
|
233
|
+
contextUsageEvent: await de_ContextUsageEvent_event(event["contextUsageEvent"], context),
|
|
234
|
+
};
|
|
235
|
+
}
|
|
216
236
|
if (event["citationEvent"] != null) {
|
|
217
237
|
return {
|
|
218
238
|
citationEvent: await de_CitationEvent_event(event["citationEvent"], context),
|
|
@@ -280,6 +300,12 @@ const de_CodeReferenceEvent_event = async (output, context) => {
|
|
|
280
300
|
Object.assign(contents, (0, smithy_client_1._json)(data));
|
|
281
301
|
return contents;
|
|
282
302
|
};
|
|
303
|
+
const de_ContextUsageEvent_event = async (output, context) => {
|
|
304
|
+
const contents = {};
|
|
305
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
306
|
+
Object.assign(contents, de_ContextUsageEvent(data, context));
|
|
307
|
+
return contents;
|
|
308
|
+
};
|
|
283
309
|
const de_DryRunSucceedEvent_event = async (output, context) => {
|
|
284
310
|
const contents = {};
|
|
285
311
|
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
@@ -317,6 +343,24 @@ const de_MessageMetadataEvent_event = async (output, context) => {
|
|
|
317
343
|
Object.assign(contents, (0, smithy_client_1._json)(data));
|
|
318
344
|
return contents;
|
|
319
345
|
};
|
|
346
|
+
const de_MetadataEvent_event = async (output, context) => {
|
|
347
|
+
const contents = {};
|
|
348
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
349
|
+
Object.assign(contents, de_MetadataEvent(data, context));
|
|
350
|
+
return contents;
|
|
351
|
+
};
|
|
352
|
+
const de_MeteringEvent_event = async (output, context) => {
|
|
353
|
+
const contents = {};
|
|
354
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
355
|
+
Object.assign(contents, de_MeteringEvent(data, context));
|
|
356
|
+
return contents;
|
|
357
|
+
};
|
|
358
|
+
const de_ReasoningContentEvent_event = async (output, context) => {
|
|
359
|
+
const contents = {};
|
|
360
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
361
|
+
Object.assign(contents, de_ReasoningContentEvent(data, context));
|
|
362
|
+
return contents;
|
|
363
|
+
};
|
|
320
364
|
const de_ServiceQuotaExceededException_event = async (output, context) => {
|
|
321
365
|
const parsedOutput = {
|
|
322
366
|
...output,
|
|
@@ -357,9 +401,11 @@ const de_InteractionComponentsEvent_event = async (output, context) => {
|
|
|
357
401
|
};
|
|
358
402
|
const se_AssistantResponseMessage = (input, context) => {
|
|
359
403
|
return (0, smithy_client_1.take)(input, {
|
|
404
|
+
'cachePoint': smithy_client_1._json,
|
|
360
405
|
'content': [],
|
|
361
406
|
'followupPrompt': smithy_client_1._json,
|
|
362
407
|
'messageId': [],
|
|
408
|
+
'reasoningContent': _ => se_ReasoningContent(_, context),
|
|
363
409
|
'references': smithy_client_1._json,
|
|
364
410
|
'supplementaryWebLinks': smithy_client_1._json,
|
|
365
411
|
'toolUses': _ => se_ToolUses(_, context),
|
|
@@ -379,6 +425,8 @@ const se_ChatMessage = (input, context) => {
|
|
|
379
425
|
};
|
|
380
426
|
const se_ConversationState = (input, context) => {
|
|
381
427
|
return (0, smithy_client_1.take)(input, {
|
|
428
|
+
'agentContinuationId': [],
|
|
429
|
+
'agentTaskType': [],
|
|
382
430
|
'chatTriggerType': [],
|
|
383
431
|
'conversationId': [],
|
|
384
432
|
'currentMessage': _ => se_ChatMessage(_, context),
|
|
@@ -404,11 +452,19 @@ const se_ImageSource = (input, context) => {
|
|
|
404
452
|
_: (name, value) => ({ name: value })
|
|
405
453
|
});
|
|
406
454
|
};
|
|
455
|
+
const se_ReasoningContent = (input, context) => {
|
|
456
|
+
return models_0_1.ReasoningContent.visit(input, {
|
|
457
|
+
reasoningText: value => ({ "reasoningText": (0, smithy_client_1._json)(value) }),
|
|
458
|
+
redactedContent: value => ({ "redactedContent": context.base64Encoder(value) }),
|
|
459
|
+
_: (name, value) => ({ name: value })
|
|
460
|
+
});
|
|
461
|
+
};
|
|
407
462
|
const se_SensitiveDocument = (input, context) => {
|
|
408
463
|
return input;
|
|
409
464
|
};
|
|
410
465
|
const se_Tool = (input, context) => {
|
|
411
466
|
return models_0_1.Tool.visit(input, {
|
|
467
|
+
cachePoint: value => ({ "cachePoint": (0, smithy_client_1._json)(value) }),
|
|
412
468
|
toolSpecification: value => ({ "toolSpecification": se_ToolSpecification(value, context) }),
|
|
413
469
|
_: (name, value) => ({ name: value })
|
|
414
470
|
});
|
|
@@ -468,6 +524,8 @@ const se_ToolUses = (input, context) => {
|
|
|
468
524
|
};
|
|
469
525
|
const se_UserInputMessage = (input, context) => {
|
|
470
526
|
return (0, smithy_client_1.take)(input, {
|
|
527
|
+
'cachePoint': smithy_client_1._json,
|
|
528
|
+
'clientCacheConfig': smithy_client_1._json,
|
|
471
529
|
'content': [],
|
|
472
530
|
'images': _ => se_ImageBlocks(_, context),
|
|
473
531
|
'modelId': [],
|
|
@@ -499,6 +557,30 @@ const se_SendMessageRequest = (input, context) => {
|
|
|
499
557
|
'source': [],
|
|
500
558
|
});
|
|
501
559
|
};
|
|
560
|
+
const de_ContextUsageEvent = (output, context) => {
|
|
561
|
+
return (0, smithy_client_1.take)(output, {
|
|
562
|
+
'contextUsagePercentage': smithy_client_1.limitedParseFloat32,
|
|
563
|
+
});
|
|
564
|
+
};
|
|
565
|
+
const de_MetadataEvent = (output, context) => {
|
|
566
|
+
return (0, smithy_client_1.take)(output, {
|
|
567
|
+
'tokenUsage': (_) => de_TokenUsage(_, context),
|
|
568
|
+
});
|
|
569
|
+
};
|
|
570
|
+
const de_MeteringEvent = (output, context) => {
|
|
571
|
+
return (0, smithy_client_1.take)(output, {
|
|
572
|
+
'unit': smithy_client_1.expectString,
|
|
573
|
+
'unitPlural': smithy_client_1.expectString,
|
|
574
|
+
'usage': smithy_client_1.limitedParseDouble,
|
|
575
|
+
});
|
|
576
|
+
};
|
|
577
|
+
const de_ReasoningContentEvent = (output, context) => {
|
|
578
|
+
return (0, smithy_client_1.take)(output, {
|
|
579
|
+
'redactedContent': context.base64Decoder,
|
|
580
|
+
'signature': smithy_client_1.expectString,
|
|
581
|
+
'text': smithy_client_1.expectString,
|
|
582
|
+
});
|
|
583
|
+
};
|
|
502
584
|
const de_SensitiveDocument = (output, context) => {
|
|
503
585
|
return output;
|
|
504
586
|
};
|
|
@@ -531,6 +613,16 @@ const de_ToolResultEvent = (output, context) => {
|
|
|
531
613
|
'toolResult': (_) => de_ToolResult(_, context),
|
|
532
614
|
});
|
|
533
615
|
};
|
|
616
|
+
const de_TokenUsage = (output, context) => {
|
|
617
|
+
return (0, smithy_client_1.take)(output, {
|
|
618
|
+
'cacheReadInputTokens': smithy_client_1.expectInt32,
|
|
619
|
+
'cacheWriteInputTokens': smithy_client_1.expectInt32,
|
|
620
|
+
'contextUsagePercentage': smithy_client_1.limitedParseFloat32,
|
|
621
|
+
'outputTokens': smithy_client_1.expectInt32,
|
|
622
|
+
'totalTokens': smithy_client_1.expectInt32,
|
|
623
|
+
'uncachedInputTokens': smithy_client_1.expectInt32,
|
|
624
|
+
});
|
|
625
|
+
};
|
|
534
626
|
const de_InteractionComponentsEvent = (output, context) => {
|
|
535
627
|
return (0, smithy_client_1.take)(output, {
|
|
536
628
|
'interactionComponentEntries': (_) => de_InteractionComponentEntryList(_, context),
|
package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.shared.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
5
|
-
const
|
|
5
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
6
|
const core_1 = require("@aws-sdk/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const url_parser_1 = require("@smithy/url-parser");
|
|
@@ -14,6 +14,7 @@ const getRuntimeConfig = (config) => {
|
|
|
14
14
|
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
15
15
|
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
16
16
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
17
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
17
18
|
extensions: config?.extensions ?? [],
|
|
18
19
|
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultQDeveloperStreamingHttpAuthSchemeProvider,
|
|
19
20
|
httpAuthSchemes: config?.httpAuthSchemes ?? [{
|
|
@@ -22,7 +23,6 @@ const getRuntimeConfig = (config) => {
|
|
|
22
23
|
signer: new core_1.AwsSdkSigV4Signer(),
|
|
23
24
|
}],
|
|
24
25
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
25
|
-
regionInfoProvider: config?.regionInfoProvider ?? endpoints_1.defaultRegionInfoProvider,
|
|
26
26
|
serviceId: config?.serviceId ?? "QDeveloperStreaming",
|
|
27
27
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
28
28
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreamingClient.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { defaultQDeveloperStreamingHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
2
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
2
3
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
3
4
|
import { resolveRuntimeExtensions, } from "./runtimeExtensions";
|
|
4
5
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
6
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
7
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
8
|
-
import {
|
|
9
|
-
import { DefaultIdentityProviderConfig,
|
|
9
|
+
import { resolveRegionConfig, } from "@smithy/config-resolver";
|
|
10
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
10
11
|
import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
|
|
11
12
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
13
|
+
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
12
14
|
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
13
15
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
14
16
|
export { __Client };
|
|
@@ -16,23 +18,24 @@ export class QDeveloperStreamingClient extends __Client {
|
|
|
16
18
|
config;
|
|
17
19
|
constructor(...[configuration]) {
|
|
18
20
|
let _config_0 = __getRuntimeConfig(configuration || {});
|
|
19
|
-
let _config_1 =
|
|
20
|
-
let _config_2 =
|
|
21
|
-
let _config_3 =
|
|
22
|
-
let _config_4 =
|
|
23
|
-
let _config_5 =
|
|
24
|
-
let _config_6 =
|
|
25
|
-
let _config_7 =
|
|
26
|
-
let _config_8 =
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
let _config_1 = resolveClientEndpointParameters(_config_0);
|
|
22
|
+
let _config_2 = resolveUserAgentConfig(_config_1);
|
|
23
|
+
let _config_3 = resolveRetryConfig(_config_2);
|
|
24
|
+
let _config_4 = resolveRegionConfig(_config_3);
|
|
25
|
+
let _config_5 = resolveHostHeaderConfig(_config_4);
|
|
26
|
+
let _config_6 = resolveEndpointConfig(_config_5);
|
|
27
|
+
let _config_7 = resolveEventStreamSerdeConfig(_config_6);
|
|
28
|
+
let _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
29
|
+
let _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
30
|
+
super(_config_9);
|
|
31
|
+
this.config = _config_9;
|
|
29
32
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
30
33
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
31
34
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
32
35
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
33
36
|
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
34
37
|
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
35
|
-
this.middlewareStack.use(
|
|
38
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
36
39
|
httpAuthSchemeParametersProvider: defaultQDeveloperStreamingHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
37
40
|
"aws.auth#sigv4": config.credentials,
|
|
38
41
|
}),
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
2
|
import { GenerateCodeFromCommandsRequestFilterSensitiveLog, GenerateCodeFromCommandsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
2
3
|
import { de_GenerateCodeFromCommandsCommand, se_GenerateCodeFromCommandsCommand, } from "../protocols/Aws_json1_0";
|
|
4
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
5
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
6
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
5
7
|
export { $Command };
|
|
6
8
|
export class GenerateCodeFromCommandsCommand extends $Command.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
7
10
|
.m(function (Command, cs, config, o) {
|
|
8
11
|
return [
|
|
9
12
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
10
14
|
];
|
|
11
15
|
})
|
|
12
16
|
.s("AmazonQDeveloperStreamingService", "GenerateCodeFromCommands", {
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
2
|
import { SendMessageRequestFilterSensitiveLog, SendMessageResponseFilterSensitiveLog, } from "../models/models_0";
|
|
2
3
|
import { de_SendMessageCommand, se_SendMessageCommand, } from "../protocols/Aws_json1_0";
|
|
4
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
5
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
6
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
5
7
|
export { $Command };
|
|
6
8
|
export class SendMessageCommand extends $Command.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
7
10
|
.m(function (Command, cs, config, o) {
|
|
8
11
|
return [
|
|
9
12
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
10
14
|
];
|
|
11
15
|
})
|
|
12
16
|
.s("AmazonQDeveloperStreamingService", "SendMessage", {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return {
|
|
3
|
+
...options,
|
|
4
|
+
region: options.region ?? "us-east-1",
|
|
5
|
+
defaultSigningName: "q",
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export const commonParams = {
|
|
9
|
+
endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
region: { type: "builtInParams", name: "region" },
|
|
11
|
+
};
|