@aws/lsp-codewhisperer 0.0.96 → 0.0.98
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 +40 -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.d.ts +3 -1
- package/out/language-server/agenticChat/agenticChatController.js +55 -22
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/constants/constants.d.ts +0 -3
- package/out/language-server/agenticChat/constants/constants.js +1 -7
- package/out/language-server/agenticChat/constants/constants.js.map +1 -1
- package/out/language-server/agenticChat/constants/modelSelection.d.ts +1 -0
- package/out/language-server/agenticChat/constants/modelSelection.js +5 -1
- package/out/language-server/agenticChat/constants/modelSelection.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/mcpOauthClient.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 +48 -0
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js +48 -0
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js.map +1 -0
- package/out/language-server/chat/chatSessionService.d.ts +17 -1
- package/out/language-server/chat/chatSessionService.js +28 -1
- package/out/language-server/chat/chatSessionService.js.map +1 -1
- package/out/language-server/configuration/transformConfigurationServer.d.ts +0 -13
- package/out/language-server/configuration/transformConfigurationServer.js +4 -112
- package/out/language-server/configuration/transformConfigurationServer.js.map +1 -1
- package/out/language-server/netTransform/atxTransformHandler.d.ts +2 -33
- package/out/language-server/netTransform/atxTransformHandler.js +130 -428
- package/out/language-server/netTransform/atxTransformHandler.js.map +1 -1
- package/out/language-server/netTransform/transformHandler.d.ts +0 -4
- package/out/language-server/netTransform/transformHandler.js +11 -39
- package/out/language-server/netTransform/transformHandler.js.map +1 -1
- package/out/language-server/netTransform/utils.d.ts +49 -0
- package/out/language-server/netTransform/utils.js +185 -0
- package/out/language-server/netTransform/utils.js.map +1 -0
- package/out/shared/amazonQServiceManager/AtxTokenServiceManager.d.ts +0 -1
- package/out/shared/amazonQServiceManager/AtxTokenServiceManager.js +14 -38
- package/out/shared/amazonQServiceManager/AtxTokenServiceManager.js.map +1 -1
- package/out/shared/codeWhispererService.js +2 -1
- 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
package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/endpointResolver.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ruleSet } from "./ruleset";
|
|
2
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
3
|
+
import { EndpointCache, customEndpointFunctions, resolveEndpoint, } from "@smithy/util-endpoints";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: ["endpoint",
|
|
7
|
+
"region"]
|
|
8
|
+
});
|
|
9
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
10
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
11
|
+
endpointParams: endpointParams,
|
|
12
|
+
logger: context.logger,
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const ruleSet = {
|
|
2
|
+
"version": "1.0",
|
|
3
|
+
"parameters": {
|
|
4
|
+
"endpoint": {
|
|
5
|
+
"documentation": "This has a value if clients provide an explicit URL to be used",
|
|
6
|
+
"type": "string",
|
|
7
|
+
"builtIn": "SDK::Endpoint",
|
|
8
|
+
},
|
|
9
|
+
"region": {
|
|
10
|
+
"documentation": "The region of the service",
|
|
11
|
+
"required": true,
|
|
12
|
+
"type": "string",
|
|
13
|
+
"builtIn": "AWS::Region",
|
|
14
|
+
"default": "us-east-1",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
"rules": [
|
|
18
|
+
{
|
|
19
|
+
"type": "endpoint",
|
|
20
|
+
"conditions": [
|
|
21
|
+
{
|
|
22
|
+
"fn": "isSet",
|
|
23
|
+
"argv": [
|
|
24
|
+
{
|
|
25
|
+
"ref": "endpoint",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
"endpoint": {
|
|
31
|
+
"url": "{endpoint}",
|
|
32
|
+
"properties": {
|
|
33
|
+
"authSchemes": [
|
|
34
|
+
{
|
|
35
|
+
"name": "sigv4",
|
|
36
|
+
"signingRegion": "{region}",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "endpoint",
|
|
44
|
+
"conditions": [],
|
|
45
|
+
"endpoint": {
|
|
46
|
+
"url": "https://q.{region}.amazonaws.com",
|
|
47
|
+
"properties": {
|
|
48
|
+
"authSchemes": [
|
|
49
|
+
{
|
|
50
|
+
"name": "sigv4",
|
|
51
|
+
"signingRegion": "{region}",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { QDeveloperStreamingServiceException as __BaseException } from "./QDeveloperStreamingServiceException";
|
|
2
2
|
import { SENSITIVE_STRING, } from "@smithy/smithy-client";
|
|
3
3
|
export const AccessDeniedExceptionReason = {
|
|
4
|
+
FEATURE_NOT_SUPPORTED: "FEATURE_NOT_SUPPORTED",
|
|
5
|
+
TEMPORARILY_SUSPENDED: "TEMPORARILY_SUSPENDED",
|
|
4
6
|
UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS: "UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS",
|
|
5
7
|
UNAUTHORIZED_WORKSPACE_CONTEXT_FEATURE_ACCESS: "UNAUTHORIZED_WORKSPACE_CONTEXT_FEATURE_ACCESS",
|
|
6
8
|
};
|
|
@@ -18,15 +20,25 @@ export class AccessDeniedException extends __BaseException {
|
|
|
18
20
|
this.reason = opts.reason;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
|
-
export const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
export const ConflictExceptionReason = {
|
|
24
|
+
CUSTOMER_KMS_KEY_DISABLED: "CUSTOMER_KMS_KEY_DISABLED",
|
|
25
|
+
CUSTOMER_KMS_KEY_INVALID_KEY_POLICY: "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY",
|
|
26
|
+
MISMATCHED_KMS_KEY: "MISMATCHED_KMS_KEY",
|
|
27
|
+
};
|
|
28
|
+
export class ConflictException extends __BaseException {
|
|
29
|
+
name = "ConflictException";
|
|
30
|
+
$fault = "client";
|
|
31
|
+
reason;
|
|
32
|
+
constructor(opts) {
|
|
33
|
+
super({
|
|
34
|
+
name: "ConflictException",
|
|
35
|
+
$fault: "client",
|
|
36
|
+
...opts
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
39
|
+
this.reason = opts.reason;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
30
42
|
export const InternalServerExceptionReason = {
|
|
31
43
|
MODEL_TEMPORARILY_UNAVAILABLE: "MODEL_TEMPORARILY_UNAVAILABLE",
|
|
32
44
|
};
|
|
@@ -45,19 +57,9 @@ export class InternalServerException extends __BaseException {
|
|
|
45
57
|
this.reason = opts.reason;
|
|
46
58
|
}
|
|
47
59
|
}
|
|
48
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
49
|
-
name = "ResourceNotFoundException";
|
|
50
|
-
$fault = "client";
|
|
51
|
-
constructor(opts) {
|
|
52
|
-
super({
|
|
53
|
-
name: "ResourceNotFoundException",
|
|
54
|
-
$fault: "client",
|
|
55
|
-
...opts
|
|
56
|
-
});
|
|
57
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
60
|
export const ThrottlingExceptionReason = {
|
|
61
|
+
DAILY_REQUEST_COUNT: "DAILY_REQUEST_COUNT",
|
|
62
|
+
INSUFFICIENT_MODEL_CAPACITY: "INSUFFICIENT_MODEL_CAPACITY",
|
|
61
63
|
MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT",
|
|
62
64
|
};
|
|
63
65
|
export class ThrottlingException extends __BaseException {
|
|
@@ -81,6 +83,7 @@ export const ValidationExceptionReason = {
|
|
|
81
83
|
CONTENT_LENGTH_EXCEEDS_THRESHOLD: "CONTENT_LENGTH_EXCEEDS_THRESHOLD",
|
|
82
84
|
INVALID_CONVERSATION_ID: "INVALID_CONVERSATION_ID",
|
|
83
85
|
INVALID_KMS_GRANT: "INVALID_KMS_GRANT",
|
|
86
|
+
INVALID_MODEL_ID: "INVALID_MODEL_ID",
|
|
84
87
|
};
|
|
85
88
|
export class ValidationException extends __BaseException {
|
|
86
89
|
name = "ValidationException";
|
|
@@ -96,6 +99,50 @@ export class ValidationException extends __BaseException {
|
|
|
96
99
|
this.reason = opts.reason;
|
|
97
100
|
}
|
|
98
101
|
}
|
|
102
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
103
|
+
name = "ResourceNotFoundException";
|
|
104
|
+
$fault = "client";
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super({
|
|
107
|
+
name: "ResourceNotFoundException",
|
|
108
|
+
$fault: "client",
|
|
109
|
+
...opts
|
|
110
|
+
});
|
|
111
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export const ServiceQuotaExceededExceptionReason = {
|
|
115
|
+
CONVERSATION_LIMIT_EXCEEDED: "CONVERSATION_LIMIT_EXCEEDED",
|
|
116
|
+
MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT",
|
|
117
|
+
OVERAGE_REQUEST_LIMIT_EXCEEDED: "OVERAGE_REQUEST_LIMIT_EXCEEDED",
|
|
118
|
+
};
|
|
119
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
120
|
+
name = "ServiceQuotaExceededException";
|
|
121
|
+
$fault = "client";
|
|
122
|
+
reason;
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "ServiceQuotaExceededException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
130
|
+
this.reason = opts.reason;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export const AdditionalContentEntryFilterSensitiveLog = (obj) => ({
|
|
134
|
+
...obj,
|
|
135
|
+
...(obj.name && { name: SENSITIVE_STRING
|
|
136
|
+
}),
|
|
137
|
+
...(obj.description && { description: SENSITIVE_STRING
|
|
138
|
+
}),
|
|
139
|
+
...(obj.innerContext && { innerContext: SENSITIVE_STRING
|
|
140
|
+
}),
|
|
141
|
+
});
|
|
142
|
+
export const AgentTaskType = {
|
|
143
|
+
SPEC_TASK: "spectask",
|
|
144
|
+
VIBE: "vibe",
|
|
145
|
+
};
|
|
99
146
|
export const AppStudioStateFilterSensitiveLog = (obj) => ({
|
|
100
147
|
...obj,
|
|
101
148
|
...(obj.namespace && { namespace: SENSITIVE_STRING
|
|
@@ -112,6 +159,9 @@ export const AssistantResponseEventFilterSensitiveLog = (obj) => ({
|
|
|
112
159
|
...(obj.content && { content: SENSITIVE_STRING
|
|
113
160
|
}),
|
|
114
161
|
});
|
|
162
|
+
export const CachePointType = {
|
|
163
|
+
DEFAULT: "default",
|
|
164
|
+
};
|
|
115
165
|
export const UserIntent = {
|
|
116
166
|
APPLY_COMMON_BEST_PRACTICES: "APPLY_COMMON_BEST_PRACTICES",
|
|
117
167
|
CITE_SOURCES: "CITE_SOURCES",
|
|
@@ -129,6 +179,33 @@ export const FollowupPromptFilterSensitiveLog = (obj) => ({
|
|
|
129
179
|
...(obj.content && { content: SENSITIVE_STRING
|
|
130
180
|
}),
|
|
131
181
|
});
|
|
182
|
+
export const ReasoningTextFilterSensitiveLog = (obj) => ({
|
|
183
|
+
...obj,
|
|
184
|
+
...(obj.text && { text: SENSITIVE_STRING
|
|
185
|
+
}),
|
|
186
|
+
...(obj.signature && { signature: SENSITIVE_STRING
|
|
187
|
+
}),
|
|
188
|
+
});
|
|
189
|
+
export var ReasoningContent;
|
|
190
|
+
(function (ReasoningContent) {
|
|
191
|
+
ReasoningContent.visit = (value, visitor) => {
|
|
192
|
+
if (value.reasoningText !== undefined)
|
|
193
|
+
return visitor.reasoningText(value.reasoningText);
|
|
194
|
+
if (value.redactedContent !== undefined)
|
|
195
|
+
return visitor.redactedContent(value.redactedContent);
|
|
196
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
197
|
+
};
|
|
198
|
+
})(ReasoningContent || (ReasoningContent = {}));
|
|
199
|
+
export const ReasoningContentFilterSensitiveLog = (obj) => {
|
|
200
|
+
if (obj.reasoningText !== undefined)
|
|
201
|
+
return { reasoningText: SENSITIVE_STRING
|
|
202
|
+
};
|
|
203
|
+
if (obj.redactedContent !== undefined)
|
|
204
|
+
return { redactedContent: obj.redactedContent
|
|
205
|
+
};
|
|
206
|
+
if (obj.$unknown !== undefined)
|
|
207
|
+
return { [obj.$unknown[0]]: 'UNKNOWN' };
|
|
208
|
+
};
|
|
132
209
|
export const SupplementaryWebLinkFilterSensitiveLog = (obj) => ({
|
|
133
210
|
...obj,
|
|
134
211
|
...(obj.url && { url: SENSITIVE_STRING
|
|
@@ -155,26 +232,9 @@ export const AssistantResponseMessageFilterSensitiveLog = (obj) => ({
|
|
|
155
232
|
}),
|
|
156
233
|
...(obj.toolUses && { toolUses: obj.toolUses.map(item => ToolUseFilterSensitiveLog(item))
|
|
157
234
|
}),
|
|
235
|
+
...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING
|
|
236
|
+
}),
|
|
158
237
|
});
|
|
159
|
-
export const ConflictExceptionReason = {
|
|
160
|
-
CUSTOMER_KMS_KEY_DISABLED: "CUSTOMER_KMS_KEY_DISABLED",
|
|
161
|
-
CUSTOMER_KMS_KEY_INVALID_KEY_POLICY: "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY",
|
|
162
|
-
MISMATCHED_KMS_KEY: "MISMATCHED_KMS_KEY",
|
|
163
|
-
};
|
|
164
|
-
export class ConflictException extends __BaseException {
|
|
165
|
-
name = "ConflictException";
|
|
166
|
-
$fault = "client";
|
|
167
|
-
reason;
|
|
168
|
-
constructor(opts) {
|
|
169
|
-
super({
|
|
170
|
-
name: "ConflictException",
|
|
171
|
-
$fault: "client",
|
|
172
|
-
...opts
|
|
173
|
-
});
|
|
174
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
175
|
-
this.reason = opts.reason;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
238
|
export const ImageFormat = {
|
|
179
239
|
GIF: "gif",
|
|
180
240
|
JPEG: "jpeg",
|
|
@@ -209,14 +269,18 @@ export const Origin = {
|
|
|
209
269
|
DOCUMENTATION: "DOCUMENTATION",
|
|
210
270
|
GITLAB: "GITLAB",
|
|
211
271
|
IDE: "IDE",
|
|
272
|
+
INLINE_CHAT: "INLINE_CHAT",
|
|
273
|
+
KIRO_CLI: "KIRO_CLI",
|
|
212
274
|
MARKETING: "MARKETING",
|
|
213
275
|
MD: "MD",
|
|
276
|
+
MD_CE: "MD_CE",
|
|
214
277
|
MD_IDE: "MD_IDE",
|
|
215
278
|
MOBILE: "MOBILE",
|
|
216
279
|
OPENSEARCH_DASHBOARD: "OPENSEARCH_DASHBOARD",
|
|
217
280
|
Q_DEV_BEXT: "Q_DEV_BEXT",
|
|
218
281
|
SAGE_MAKER: "SAGE_MAKER",
|
|
219
282
|
SERVICE_INTERNAL: "SERVICE_INTERNAL",
|
|
283
|
+
SM_AI_STUDIO_IDE: "SM_AI_STUDIO_IDE",
|
|
220
284
|
UNIFIED_SEARCH: "UNIFIED_SEARCH",
|
|
221
285
|
UNKNOWN: "UNKNOWN",
|
|
222
286
|
};
|
|
@@ -426,6 +490,8 @@ export var Tool;
|
|
|
426
490
|
Tool.visit = (value, visitor) => {
|
|
427
491
|
if (value.toolSpecification !== undefined)
|
|
428
492
|
return visitor.toolSpecification(value.toolSpecification);
|
|
493
|
+
if (value.cachePoint !== undefined)
|
|
494
|
+
return visitor.cachePoint(value.cachePoint);
|
|
429
495
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
430
496
|
};
|
|
431
497
|
})(Tool || (Tool = {}));
|
|
@@ -433,6 +499,9 @@ export const ToolFilterSensitiveLog = (obj) => {
|
|
|
433
499
|
if (obj.toolSpecification !== undefined)
|
|
434
500
|
return { toolSpecification: ToolSpecificationFilterSensitiveLog(obj.toolSpecification)
|
|
435
501
|
};
|
|
502
|
+
if (obj.cachePoint !== undefined)
|
|
503
|
+
return { cachePoint: obj.cachePoint
|
|
504
|
+
};
|
|
436
505
|
if (obj.$unknown !== undefined)
|
|
437
506
|
return { [obj.$unknown[0]]: 'UNKNOWN' };
|
|
438
507
|
};
|
|
@@ -518,6 +587,7 @@ export const FollowupPromptEventFilterSensitiveLog = (obj) => ({
|
|
|
518
587
|
}),
|
|
519
588
|
});
|
|
520
589
|
export const IntentType = {
|
|
590
|
+
ARTIFACT: "ARTIFACT",
|
|
521
591
|
DEEPLINKS: "DEEPLINKS",
|
|
522
592
|
GLUE_SENSEI: "GLUE_SENSEI",
|
|
523
593
|
RESOURCE_DATA: "RESOURCE_DATA",
|
|
@@ -769,6 +839,13 @@ export const InteractionComponentsEventFilterSensitiveLog = (obj) => ({
|
|
|
769
839
|
export const InvalidStateReason = {
|
|
770
840
|
INVALID_TASK_ASSIST_PLAN: "INVALID_TASK_ASSIST_PLAN",
|
|
771
841
|
};
|
|
842
|
+
export const ReasoningContentEventFilterSensitiveLog = (obj) => ({
|
|
843
|
+
...obj,
|
|
844
|
+
...(obj.text && { text: SENSITIVE_STRING
|
|
845
|
+
}),
|
|
846
|
+
...(obj.signature && { signature: SENSITIVE_STRING
|
|
847
|
+
}),
|
|
848
|
+
});
|
|
772
849
|
export const SupplementaryWebLinksEventFilterSensitiveLog = (obj) => ({
|
|
773
850
|
...obj,
|
|
774
851
|
...(obj.supplementaryWebLinks && { supplementaryWebLinks: obj.supplementaryWebLinks.map(item => SupplementaryWebLinkFilterSensitiveLog(item))
|
|
@@ -793,6 +870,8 @@ export var ChatResponseStream;
|
|
|
793
870
|
return visitor.messageMetadataEvent(value.messageMetadataEvent);
|
|
794
871
|
if (value.assistantResponseEvent !== undefined)
|
|
795
872
|
return visitor.assistantResponseEvent(value.assistantResponseEvent);
|
|
873
|
+
if (value.reasoningContentEvent !== undefined)
|
|
874
|
+
return visitor.reasoningContentEvent(value.reasoningContentEvent);
|
|
796
875
|
if (value.dryRunSucceedEvent !== undefined)
|
|
797
876
|
return visitor.dryRunSucceedEvent(value.dryRunSucceedEvent);
|
|
798
877
|
if (value.codeReferenceEvent !== undefined)
|
|
@@ -811,6 +890,12 @@ export var ChatResponseStream;
|
|
|
811
890
|
return visitor.toolUseEvent(value.toolUseEvent);
|
|
812
891
|
if (value.toolResultEvent !== undefined)
|
|
813
892
|
return visitor.toolResultEvent(value.toolResultEvent);
|
|
893
|
+
if (value.metadataEvent !== undefined)
|
|
894
|
+
return visitor.metadataEvent(value.metadataEvent);
|
|
895
|
+
if (value.meteringEvent !== undefined)
|
|
896
|
+
return visitor.meteringEvent(value.meteringEvent);
|
|
897
|
+
if (value.contextUsageEvent !== undefined)
|
|
898
|
+
return visitor.contextUsageEvent(value.contextUsageEvent);
|
|
814
899
|
if (value.citationEvent !== undefined)
|
|
815
900
|
return visitor.citationEvent(value.citationEvent);
|
|
816
901
|
if (value.invalidStateEvent !== undefined)
|
|
@@ -827,6 +912,9 @@ export const ChatResponseStreamFilterSensitiveLog = (obj) => {
|
|
|
827
912
|
if (obj.assistantResponseEvent !== undefined)
|
|
828
913
|
return { assistantResponseEvent: AssistantResponseEventFilterSensitiveLog(obj.assistantResponseEvent)
|
|
829
914
|
};
|
|
915
|
+
if (obj.reasoningContentEvent !== undefined)
|
|
916
|
+
return { reasoningContentEvent: SENSITIVE_STRING
|
|
917
|
+
};
|
|
830
918
|
if (obj.dryRunSucceedEvent !== undefined)
|
|
831
919
|
return { dryRunSucceedEvent: obj.dryRunSucceedEvent
|
|
832
920
|
};
|
|
@@ -854,6 +942,15 @@ export const ChatResponseStreamFilterSensitiveLog = (obj) => {
|
|
|
854
942
|
if (obj.toolResultEvent !== undefined)
|
|
855
943
|
return { toolResultEvent: ToolResultEventFilterSensitiveLog(obj.toolResultEvent)
|
|
856
944
|
};
|
|
945
|
+
if (obj.metadataEvent !== undefined)
|
|
946
|
+
return { metadataEvent: obj.metadataEvent
|
|
947
|
+
};
|
|
948
|
+
if (obj.meteringEvent !== undefined)
|
|
949
|
+
return { meteringEvent: obj.meteringEvent
|
|
950
|
+
};
|
|
951
|
+
if (obj.contextUsageEvent !== undefined)
|
|
952
|
+
return { contextUsageEvent: obj.contextUsageEvent
|
|
953
|
+
};
|
|
857
954
|
if (obj.citationEvent !== undefined)
|
|
858
955
|
return { citationEvent: CitationEventFilterSensitiveLog(obj.citationEvent)
|
|
859
956
|
};
|
|
@@ -911,26 +1008,10 @@ export const OutputFormat = {
|
|
|
911
1008
|
JAVA_CDK: "java/cdk",
|
|
912
1009
|
JSON_CFN: "json/cfn",
|
|
913
1010
|
PYTHON_CDK: "python/cdk",
|
|
1011
|
+
TERRAFORM_IAC: "terraform/iac",
|
|
914
1012
|
TYPESCRIPT_CDK: "typescript/cdk",
|
|
915
1013
|
YAML_CFN: "yaml/cfn",
|
|
916
1014
|
};
|
|
917
|
-
export const ServiceQuotaExceededExceptionReason = {
|
|
918
|
-
CONVERSATION_LIMIT_EXCEEDED: "CONVERSATION_LIMIT_EXCEEDED",
|
|
919
|
-
};
|
|
920
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
921
|
-
name = "ServiceQuotaExceededException";
|
|
922
|
-
$fault = "client";
|
|
923
|
-
reason;
|
|
924
|
-
constructor(opts) {
|
|
925
|
-
super({
|
|
926
|
-
name: "ServiceQuotaExceededException",
|
|
927
|
-
$fault: "client",
|
|
928
|
-
...opts
|
|
929
|
-
});
|
|
930
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
931
|
-
this.reason = opts.reason;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
1015
|
export const SendMessageRequestFilterSensitiveLog = (obj) => ({
|
|
935
1016
|
...obj,
|
|
936
1017
|
...(obj.conversationState && { conversationState: ConversationStateFilterSensitiveLog(obj.conversationState)
|
package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/protocols/Aws_json1_0.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { QDeveloperStreamingServiceException as __BaseException } from "../models/QDeveloperStreamingServiceException";
|
|
2
|
-
import { AccessDeniedException, ChatMessage, ConflictException, DryRunOperationException, ImageSource, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, Tool, ToolResultContentBlock, ValidationException, } from "../models/models_0";
|
|
2
|
+
import { AccessDeniedException, ChatMessage, ConflictException, DryRunOperationException, ImageSource, InternalServerException, ReasoningContent, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, Tool, ToolResultContentBlock, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { HttpRequest as __HttpRequest, } from "@smithy/protocol-http";
|
|
5
|
-
import { decorateServiceException as __decorateServiceException, expectString as __expectString, _json, collectBody, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, _json, collectBody, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
6
|
export const se_GenerateCodeFromCommandsCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("GenerateCodeFromCommands");
|
|
8
8
|
let body;
|
|
@@ -161,6 +161,11 @@ const de_ChatResponseStream = (output, context) => {
|
|
|
161
161
|
assistantResponseEvent: await de_AssistantResponseEvent_event(event["assistantResponseEvent"], context),
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
+
if (event["reasoningContentEvent"] != null) {
|
|
165
|
+
return {
|
|
166
|
+
reasoningContentEvent: await de_ReasoningContentEvent_event(event["reasoningContentEvent"], context),
|
|
167
|
+
};
|
|
168
|
+
}
|
|
164
169
|
if (event["dryRunSucceedEvent"] != null) {
|
|
165
170
|
return {
|
|
166
171
|
dryRunSucceedEvent: await de_DryRunSucceedEvent_event(event["dryRunSucceedEvent"], context),
|
|
@@ -206,6 +211,21 @@ const de_ChatResponseStream = (output, context) => {
|
|
|
206
211
|
toolResultEvent: await de_ToolResultEvent_event(event["toolResultEvent"], context),
|
|
207
212
|
};
|
|
208
213
|
}
|
|
214
|
+
if (event["metadataEvent"] != null) {
|
|
215
|
+
return {
|
|
216
|
+
metadataEvent: await de_MetadataEvent_event(event["metadataEvent"], context),
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
if (event["meteringEvent"] != null) {
|
|
220
|
+
return {
|
|
221
|
+
meteringEvent: await de_MeteringEvent_event(event["meteringEvent"], context),
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
if (event["contextUsageEvent"] != null) {
|
|
225
|
+
return {
|
|
226
|
+
contextUsageEvent: await de_ContextUsageEvent_event(event["contextUsageEvent"], context),
|
|
227
|
+
};
|
|
228
|
+
}
|
|
209
229
|
if (event["citationEvent"] != null) {
|
|
210
230
|
return {
|
|
211
231
|
citationEvent: await de_CitationEvent_event(event["citationEvent"], context),
|
|
@@ -273,6 +293,12 @@ const de_CodeReferenceEvent_event = async (output, context) => {
|
|
|
273
293
|
Object.assign(contents, _json(data));
|
|
274
294
|
return contents;
|
|
275
295
|
};
|
|
296
|
+
const de_ContextUsageEvent_event = async (output, context) => {
|
|
297
|
+
const contents = {};
|
|
298
|
+
const data = await parseBody(output.body, context);
|
|
299
|
+
Object.assign(contents, de_ContextUsageEvent(data, context));
|
|
300
|
+
return contents;
|
|
301
|
+
};
|
|
276
302
|
const de_DryRunSucceedEvent_event = async (output, context) => {
|
|
277
303
|
const contents = {};
|
|
278
304
|
const data = await parseBody(output.body, context);
|
|
@@ -310,6 +336,24 @@ const de_MessageMetadataEvent_event = async (output, context) => {
|
|
|
310
336
|
Object.assign(contents, _json(data));
|
|
311
337
|
return contents;
|
|
312
338
|
};
|
|
339
|
+
const de_MetadataEvent_event = async (output, context) => {
|
|
340
|
+
const contents = {};
|
|
341
|
+
const data = await parseBody(output.body, context);
|
|
342
|
+
Object.assign(contents, de_MetadataEvent(data, context));
|
|
343
|
+
return contents;
|
|
344
|
+
};
|
|
345
|
+
const de_MeteringEvent_event = async (output, context) => {
|
|
346
|
+
const contents = {};
|
|
347
|
+
const data = await parseBody(output.body, context);
|
|
348
|
+
Object.assign(contents, de_MeteringEvent(data, context));
|
|
349
|
+
return contents;
|
|
350
|
+
};
|
|
351
|
+
const de_ReasoningContentEvent_event = async (output, context) => {
|
|
352
|
+
const contents = {};
|
|
353
|
+
const data = await parseBody(output.body, context);
|
|
354
|
+
Object.assign(contents, de_ReasoningContentEvent(data, context));
|
|
355
|
+
return contents;
|
|
356
|
+
};
|
|
313
357
|
const de_ServiceQuotaExceededException_event = async (output, context) => {
|
|
314
358
|
const parsedOutput = {
|
|
315
359
|
...output,
|
|
@@ -350,9 +394,11 @@ const de_InteractionComponentsEvent_event = async (output, context) => {
|
|
|
350
394
|
};
|
|
351
395
|
const se_AssistantResponseMessage = (input, context) => {
|
|
352
396
|
return take(input, {
|
|
397
|
+
'cachePoint': _json,
|
|
353
398
|
'content': [],
|
|
354
399
|
'followupPrompt': _json,
|
|
355
400
|
'messageId': [],
|
|
401
|
+
'reasoningContent': _ => se_ReasoningContent(_, context),
|
|
356
402
|
'references': _json,
|
|
357
403
|
'supplementaryWebLinks': _json,
|
|
358
404
|
'toolUses': _ => se_ToolUses(_, context),
|
|
@@ -372,6 +418,8 @@ const se_ChatMessage = (input, context) => {
|
|
|
372
418
|
};
|
|
373
419
|
const se_ConversationState = (input, context) => {
|
|
374
420
|
return take(input, {
|
|
421
|
+
'agentContinuationId': [],
|
|
422
|
+
'agentTaskType': [],
|
|
375
423
|
'chatTriggerType': [],
|
|
376
424
|
'conversationId': [],
|
|
377
425
|
'currentMessage': _ => se_ChatMessage(_, context),
|
|
@@ -397,11 +445,19 @@ const se_ImageSource = (input, context) => {
|
|
|
397
445
|
_: (name, value) => ({ name: value })
|
|
398
446
|
});
|
|
399
447
|
};
|
|
448
|
+
const se_ReasoningContent = (input, context) => {
|
|
449
|
+
return ReasoningContent.visit(input, {
|
|
450
|
+
reasoningText: value => ({ "reasoningText": _json(value) }),
|
|
451
|
+
redactedContent: value => ({ "redactedContent": context.base64Encoder(value) }),
|
|
452
|
+
_: (name, value) => ({ name: value })
|
|
453
|
+
});
|
|
454
|
+
};
|
|
400
455
|
const se_SensitiveDocument = (input, context) => {
|
|
401
456
|
return input;
|
|
402
457
|
};
|
|
403
458
|
const se_Tool = (input, context) => {
|
|
404
459
|
return Tool.visit(input, {
|
|
460
|
+
cachePoint: value => ({ "cachePoint": _json(value) }),
|
|
405
461
|
toolSpecification: value => ({ "toolSpecification": se_ToolSpecification(value, context) }),
|
|
406
462
|
_: (name, value) => ({ name: value })
|
|
407
463
|
});
|
|
@@ -461,6 +517,8 @@ const se_ToolUses = (input, context) => {
|
|
|
461
517
|
};
|
|
462
518
|
const se_UserInputMessage = (input, context) => {
|
|
463
519
|
return take(input, {
|
|
520
|
+
'cachePoint': _json,
|
|
521
|
+
'clientCacheConfig': _json,
|
|
464
522
|
'content': [],
|
|
465
523
|
'images': _ => se_ImageBlocks(_, context),
|
|
466
524
|
'modelId': [],
|
|
@@ -492,6 +550,30 @@ const se_SendMessageRequest = (input, context) => {
|
|
|
492
550
|
'source': [],
|
|
493
551
|
});
|
|
494
552
|
};
|
|
553
|
+
const de_ContextUsageEvent = (output, context) => {
|
|
554
|
+
return take(output, {
|
|
555
|
+
'contextUsagePercentage': __limitedParseFloat32,
|
|
556
|
+
});
|
|
557
|
+
};
|
|
558
|
+
const de_MetadataEvent = (output, context) => {
|
|
559
|
+
return take(output, {
|
|
560
|
+
'tokenUsage': (_) => de_TokenUsage(_, context),
|
|
561
|
+
});
|
|
562
|
+
};
|
|
563
|
+
const de_MeteringEvent = (output, context) => {
|
|
564
|
+
return take(output, {
|
|
565
|
+
'unit': __expectString,
|
|
566
|
+
'unitPlural': __expectString,
|
|
567
|
+
'usage': __limitedParseDouble,
|
|
568
|
+
});
|
|
569
|
+
};
|
|
570
|
+
const de_ReasoningContentEvent = (output, context) => {
|
|
571
|
+
return take(output, {
|
|
572
|
+
'redactedContent': context.base64Decoder,
|
|
573
|
+
'signature': __expectString,
|
|
574
|
+
'text': __expectString,
|
|
575
|
+
});
|
|
576
|
+
};
|
|
495
577
|
const de_SensitiveDocument = (output, context) => {
|
|
496
578
|
return output;
|
|
497
579
|
};
|
|
@@ -524,6 +606,16 @@ const de_ToolResultEvent = (output, context) => {
|
|
|
524
606
|
'toolResult': (_) => de_ToolResult(_, context),
|
|
525
607
|
});
|
|
526
608
|
};
|
|
609
|
+
const de_TokenUsage = (output, context) => {
|
|
610
|
+
return take(output, {
|
|
611
|
+
'cacheReadInputTokens': __expectInt32,
|
|
612
|
+
'cacheWriteInputTokens': __expectInt32,
|
|
613
|
+
'contextUsagePercentage': __limitedParseFloat32,
|
|
614
|
+
'outputTokens': __expectInt32,
|
|
615
|
+
'totalTokens': __expectInt32,
|
|
616
|
+
'uncachedInputTokens': __expectInt32,
|
|
617
|
+
});
|
|
618
|
+
};
|
|
527
619
|
const de_InteractionComponentsEvent = (output, context) => {
|
|
528
620
|
return take(output, {
|
|
529
621
|
'interactionComponentEntries': (_) => de_InteractionComponentEntryList(_, context),
|
package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.shared.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defaultQDeveloperStreamingHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
2
|
-
import {
|
|
2
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
3
3
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
4
4
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
5
5
|
import { parseUrl } from "@smithy/url-parser";
|
|
@@ -11,6 +11,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
11
11
|
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
12
12
|
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
13
13
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
14
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
14
15
|
extensions: config?.extensions ?? [],
|
|
15
16
|
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultQDeveloperStreamingHttpAuthSchemeProvider,
|
|
16
17
|
httpAuthSchemes: config?.httpAuthSchemes ?? [{
|
|
@@ -19,7 +20,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
19
20
|
signer: new AwsSdkSigV4Signer(),
|
|
20
21
|
}],
|
|
21
22
|
logger: config?.logger ?? new NoOpLogger(),
|
|
22
|
-
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
23
23
|
serviceId: config?.serviceId ?? "QDeveloperStreaming",
|
|
24
24
|
urlParser: config?.urlParser ?? parseUrl,
|
|
25
25
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
2
2
|
import { GenerateCodeFromCommandsCommandInput, GenerateCodeFromCommandsCommandOutput } from "./commands/GenerateCodeFromCommandsCommand";
|
|
3
3
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
|
|
4
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
4
5
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
5
6
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
6
7
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
|
-
import {
|
|
8
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
8
9
|
import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
|
|
10
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
9
11
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
10
12
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
11
13
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
12
|
-
import { AwsCredentialIdentityProvider, Provider,
|
|
14
|
+
import { AwsCredentialIdentityProvider, Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
13
15
|
export { __Client };
|
|
14
16
|
/**
|
|
15
17
|
* @public
|
|
@@ -113,11 +115,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
113
115
|
*
|
|
114
116
|
*/
|
|
115
117
|
profile?: string;
|
|
116
|
-
/**
|
|
117
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
118
|
-
* @internal
|
|
119
|
-
*/
|
|
120
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
121
118
|
/**
|
|
122
119
|
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
123
120
|
* @internal
|
|
@@ -159,7 +156,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
159
156
|
/**
|
|
160
157
|
* @public
|
|
161
158
|
*/
|
|
162
|
-
export type QDeveloperStreamingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig &
|
|
159
|
+
export type QDeveloperStreamingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & EventStreamSerdeInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
163
160
|
/**
|
|
164
161
|
* @public
|
|
165
162
|
*
|
|
@@ -170,7 +167,7 @@ export interface QDeveloperStreamingClientConfig extends QDeveloperStreamingClie
|
|
|
170
167
|
/**
|
|
171
168
|
* @public
|
|
172
169
|
*/
|
|
173
|
-
export type QDeveloperStreamingClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig &
|
|
170
|
+
export type QDeveloperStreamingClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & EventStreamSerdeResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
174
171
|
/**
|
|
175
172
|
* @public
|
|
176
173
|
*
|