@aws/lsp-codewhisperer 0.0.4 → 0.0.5
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 +7 -0
- package/out/client/sigv4/service.json +1 -1
- package/out/client/token/bearer-token-service.json +1 -1
- package/out/index.d.ts +1 -0
- package/out/index.js +1 -0
- package/out/index.js.map +1 -1
- package/out/language-server/chat/chatController.d.ts +25 -0
- package/out/language-server/chat/chatController.js +117 -0
- package/out/language-server/chat/chatController.js.map +1 -0
- package/out/language-server/chat/chatController.test.d.ts +1 -0
- package/out/language-server/chat/chatController.test.js +240 -0
- package/out/language-server/chat/chatController.test.js.map +1 -0
- package/out/language-server/chat/chatEventParser.d.ts +24 -0
- package/out/language-server/chat/chatEventParser.js +84 -0
- package/out/language-server/chat/chatEventParser.js.map +1 -0
- package/out/language-server/chat/chatEventParser.test.d.ts +1 -0
- package/out/language-server/chat/chatEventParser.test.js +189 -0
- package/out/language-server/chat/chatEventParser.test.js.map +1 -0
- package/out/language-server/chat/chatSessionManagementService.d.ts +16 -0
- package/out/language-server/chat/chatSessionManagementService.js +92 -0
- package/out/language-server/chat/chatSessionManagementService.js.map +1 -0
- package/out/language-server/chat/chatSessionManagementService.test.d.ts +1 -0
- package/out/language-server/chat/chatSessionManagementService.test.js +73 -0
- package/out/language-server/chat/chatSessionManagementService.test.js.map +1 -0
- package/out/language-server/chat/chatSessionService.d.ts +13 -0
- package/out/language-server/chat/chatSessionService.js +63 -0
- package/out/language-server/chat/chatSessionService.js.map +1 -0
- package/out/language-server/chat/chatSessionService.test.d.ts +1 -0
- package/out/language-server/chat/chatSessionService.test.js +80 -0
- package/out/language-server/chat/chatSessionService.test.js.map +1 -0
- package/out/language-server/chat/contexts/documentContext.d.ts +17 -0
- package/out/language-server/chat/contexts/documentContext.js +59 -0
- package/out/language-server/chat/contexts/documentContext.js.map +1 -0
- package/out/language-server/chat/contexts/documentContext.test.d.ts +1 -0
- package/out/language-server/chat/contexts/documentContext.test.js +147 -0
- package/out/language-server/chat/contexts/documentContext.test.js.map +1 -0
- package/out/language-server/chat/contexts/utils.d.ts +10 -0
- package/out/language-server/chat/contexts/utils.js +71 -0
- package/out/language-server/chat/contexts/utils.js.map +1 -0
- package/out/language-server/chat/contexts/utils.test.d.ts +1 -0
- package/out/language-server/chat/contexts/utils.test.js +72 -0
- package/out/language-server/chat/contexts/utils.test.js.map +1 -0
- package/out/language-server/chat/utils.d.ts +4 -0
- package/out/language-server/chat/utils.js +34 -0
- package/out/language-server/chat/utils.js.map +1 -0
- package/out/language-server/codeWhispererSecurityScanServer.d.ts +1 -1
- package/out/language-server/codeWhispererSecurityScanServer.js +41 -26
- package/out/language-server/codeWhispererSecurityScanServer.js.map +1 -1
- package/out/language-server/codeWhispererServer.js +1 -1
- package/out/language-server/codeWhispererServer.js.map +1 -1
- package/out/language-server/languageDetection.d.ts +9 -2
- package/out/language-server/languageDetection.js +84 -20
- package/out/language-server/languageDetection.js.map +1 -1
- package/out/language-server/languageDetection.test.d.ts +1 -0
- package/out/language-server/languageDetection.test.js +31 -0
- package/out/language-server/languageDetection.test.js.map +1 -0
- package/out/language-server/proxy-server.d.ts +1 -0
- package/out/language-server/proxy-server.js +35 -1
- package/out/language-server/proxy-server.js.map +1 -1
- package/out/language-server/qChatServer.d.ts +3 -0
- package/out/language-server/qChatServer.js +31 -0
- package/out/language-server/qChatServer.js.map +1 -0
- package/out/language-server/qChatServer.test.d.ts +1 -0
- package/out/language-server/qChatServer.test.js +51 -0
- package/out/language-server/qChatServer.test.js.map +1 -0
- package/out/language-server/securityScan/securityScanDiagnosticsProvider.d.ts +2 -3
- package/out/language-server/securityScan/securityScanDiagnosticsProvider.js +5 -23
- package/out/language-server/securityScan/securityScanDiagnosticsProvider.js.map +1 -1
- package/out/language-server/securityScan/types.d.ts +8 -6
- package/out/language-server/testUtils.d.ts +1 -0
- package/out/language-server/testUtils.js +17 -1
- package/out/language-server/testUtils.js.map +1 -1
- package/out/language-server/types.d.ts +13 -0
- package/out/language-server/types.js +3 -0
- package/out/language-server/types.js.map +1 -0
- package/out/language-server/utils.d.ts +3 -0
- package/out/language-server/utils.js +19 -1
- package/out/language-server/utils.js.map +1 -1
- package/out/language-server/utils.test.d.ts +1 -0
- package/out/language-server/utils.test.js +33 -0
- package/out/language-server/utils.test.js.map +1 -0
- package/package.json +13 -4
- package/src.gen/@amzn/codewhisperer-streaming/LICENSE +201 -0
- package/src.gen/@amzn/codewhisperer-streaming/README.md +464 -0
- package/src.gen/@amzn/codewhisperer-streaming/api-extractor.json +4 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreaming.js +17 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreamingClient.js +42 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/commands/ExportResultArchiveCommand.js +42 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateAssistantResponseCommand.js +42 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateTaskAssistPlanCommand.js +42 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/commands/index.js +6 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/endpoints.js +165 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/extensionConfiguration.js +2 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/index.js +10 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/models/CodeWhispererStreamingServiceException.js +12 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/models/index.js +4 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +361 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +458 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.browser.js +38 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.js +46 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.native.js +15 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.shared.js +22 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/runtimeExtensions.js +22 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreaming.js +13 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreamingClient.js +38 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/commands/ExportResultArchiveCommand.js +38 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/commands/GenerateAssistantResponseCommand.js +38 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/commands/GenerateTaskAssistPlanCommand.js +38 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/commands/index.js +3 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/endpoints.js +161 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/extensionConfiguration.js +1 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/index.js +5 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/models/CodeWhispererStreamingServiceException.js +8 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/models/index.js +1 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +328 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +449 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.browser.js +33 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.js +41 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.native.js +11 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.shared.js +18 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-es/runtimeExtensions.js +18 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreaming.d.ts +30 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +169 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +103 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +294 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +304 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/index.d.ts +3 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/endpoints.d.ts +2 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/extensionConfiguration.d.ts +8 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/index.d.ts +5 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/models/CodeWhispererStreamingServiceException.d.ts +13 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/models/index.d.ts +1 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +1173 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/protocols/Aws_restJson1.d.ts +29 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.browser.d.ts +39 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.d.ts +39 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.native.d.ts +38 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.shared.d.ts +17 -0
- package/src.gen/@amzn/codewhisperer-streaming/dist-types/runtimeExtensions.d.ts +17 -0
- package/src.gen/@amzn/codewhisperer-streaming/package.json +87 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/CodeWhispererStreaming.ts +84 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/CodeWhispererStreamingClient.ts +304 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/commands/ExportResultArchiveCommand.ts +177 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateAssistantResponseCommand.ts +369 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateTaskAssistPlanCommand.ts +379 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/commands/index.ts +4 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/endpoints.ts +170 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/extensionConfiguration.ts +12 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/index.ts +8 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/models/CodeWhispererStreamingServiceException.ts +22 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/models/index.ts +2 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/models/models_0.ts +1518 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/protocols/Aws_restJson1.ts +740 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.browser.ts +42 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.native.ts +17 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.shared.ts +24 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.ts +55 -0
- package/src.gen/@amzn/codewhisperer-streaming/src/runtimeExtensions.ts +44 -0
- package/src.gen/@amzn/codewhisperer-streaming/typedoc.json +5 -0
package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateTaskAssistPlanCommand.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateTaskAssistPlanCommand = exports.$Command = void 0;
|
|
4
|
+
const models_0_1 = require("../models/models_0");
|
|
5
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
7
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
9
|
+
const types_1 = require("@smithy/types");
|
|
10
|
+
class GenerateTaskAssistPlanCommand extends smithy_client_1.Command {
|
|
11
|
+
constructor(input) {
|
|
12
|
+
super();
|
|
13
|
+
this.input = input;
|
|
14
|
+
}
|
|
15
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
16
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
17
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
18
|
+
const { logger } = configuration;
|
|
19
|
+
const clientName = 'CodeWhispererStreamingClient';
|
|
20
|
+
const commandName = 'GenerateTaskAssistPlanCommand';
|
|
21
|
+
const handlerExecutionContext = {
|
|
22
|
+
logger,
|
|
23
|
+
clientName,
|
|
24
|
+
commandName,
|
|
25
|
+
inputFilterSensitiveLog: models_0_1.GenerateTaskAssistPlanRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: models_0_1.GenerateTaskAssistPlanResponseFilterSensitiveLog,
|
|
27
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
28
|
+
service: 'AmazonCodeWhispererStreamingService',
|
|
29
|
+
operation: 'GenerateTaskAssistPlan',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return (0, Aws_restJson1_1.se_GenerateTaskAssistPlanCommand)(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.de_GenerateTaskAssistPlanCommand)(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.GenerateTaskAssistPlanCommand = GenerateTaskAssistPlanCommand;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./ExportResultArchiveCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./GenerateAssistantResponseCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./GenerateTaskAssistPlanCommand"), exports);
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultRegionInfoProvider = void 0;
|
|
4
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
5
|
+
const regionHash = {};
|
|
6
|
+
const partitionHash = {
|
|
7
|
+
aws: {
|
|
8
|
+
regions: [
|
|
9
|
+
'af-south-1',
|
|
10
|
+
'ap-east-1',
|
|
11
|
+
'ap-northeast-1',
|
|
12
|
+
'ap-northeast-2',
|
|
13
|
+
'ap-northeast-3',
|
|
14
|
+
'ap-south-1',
|
|
15
|
+
'ap-south-2',
|
|
16
|
+
'ap-southeast-1',
|
|
17
|
+
'ap-southeast-2',
|
|
18
|
+
'ap-southeast-3',
|
|
19
|
+
'ap-southeast-4',
|
|
20
|
+
'ca-central-1',
|
|
21
|
+
'eu-central-1',
|
|
22
|
+
'eu-central-2',
|
|
23
|
+
'eu-north-1',
|
|
24
|
+
'eu-south-1',
|
|
25
|
+
'eu-south-2',
|
|
26
|
+
'eu-west-1',
|
|
27
|
+
'eu-west-2',
|
|
28
|
+
'eu-west-3',
|
|
29
|
+
'il-central-1',
|
|
30
|
+
'me-central-1',
|
|
31
|
+
'me-south-1',
|
|
32
|
+
'sa-east-1',
|
|
33
|
+
'us-east-1',
|
|
34
|
+
'us-east-2',
|
|
35
|
+
'us-west-1',
|
|
36
|
+
'us-west-2',
|
|
37
|
+
],
|
|
38
|
+
regionRegex: '^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$',
|
|
39
|
+
variants: [
|
|
40
|
+
{
|
|
41
|
+
hostname: 'amazoncodewhispererstreamingservice.{region}.amazonaws.com',
|
|
42
|
+
tags: [],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
hostname: 'amazoncodewhispererstreamingservice-fips.{region}.amazonaws.com',
|
|
46
|
+
tags: ['fips'],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
hostname: 'amazoncodewhispererstreamingservice-fips.{region}.api.aws',
|
|
50
|
+
tags: ['dualstack', 'fips'],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
hostname: 'amazoncodewhispererstreamingservice.{region}.api.aws',
|
|
54
|
+
tags: ['dualstack'],
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
'aws-cn': {
|
|
59
|
+
regions: ['cn-north-1', 'cn-northwest-1'],
|
|
60
|
+
regionRegex: '^cn\\-\\w+\\-\\d+$',
|
|
61
|
+
variants: [
|
|
62
|
+
{
|
|
63
|
+
hostname: 'amazoncodewhispererstreamingservice.{region}.amazonaws.com.cn',
|
|
64
|
+
tags: [],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
hostname: 'amazoncodewhispererstreamingservice-fips.{region}.amazonaws.com.cn',
|
|
68
|
+
tags: ['fips'],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
hostname: 'amazoncodewhispererstreamingservice-fips.{region}.api.amazonwebservices.com.cn',
|
|
72
|
+
tags: ['dualstack', 'fips'],
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
hostname: 'amazoncodewhispererstreamingservice.{region}.api.amazonwebservices.com.cn',
|
|
76
|
+
tags: ['dualstack'],
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
'aws-iso': {
|
|
81
|
+
regions: ['us-iso-east-1', 'us-iso-west-1'],
|
|
82
|
+
regionRegex: '^us\\-iso\\-\\w+\\-\\d+$',
|
|
83
|
+
variants: [
|
|
84
|
+
{
|
|
85
|
+
hostname: 'amazoncodewhispererstreamingservice.{region}.c2s.ic.gov',
|
|
86
|
+
tags: [],
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
hostname: 'amazoncodewhispererstreamingservice-fips.{region}.c2s.ic.gov',
|
|
90
|
+
tags: ['fips'],
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
'aws-iso-b': {
|
|
95
|
+
regions: ['us-isob-east-1'],
|
|
96
|
+
regionRegex: '^us\\-isob\\-\\w+\\-\\d+$',
|
|
97
|
+
variants: [
|
|
98
|
+
{
|
|
99
|
+
hostname: 'amazoncodewhispererstreamingservice.{region}.sc2s.sgov.gov',
|
|
100
|
+
tags: [],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
hostname: 'amazoncodewhispererstreamingservice-fips.{region}.sc2s.sgov.gov',
|
|
104
|
+
tags: ['fips'],
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
'aws-iso-e': {
|
|
109
|
+
regions: [],
|
|
110
|
+
regionRegex: '^eu\\-isoe\\-\\w+\\-\\d+$',
|
|
111
|
+
variants: [
|
|
112
|
+
{
|
|
113
|
+
hostname: 'amazoncodewhispererstreamingservice.{region}.cloud.adc-e.uk',
|
|
114
|
+
tags: [],
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
hostname: 'amazoncodewhispererstreamingservice-fips.{region}.cloud.adc-e.uk',
|
|
118
|
+
tags: ['fips'],
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
'aws-iso-f': {
|
|
123
|
+
regions: [],
|
|
124
|
+
regionRegex: '^us\\-isof\\-\\w+\\-\\d+$',
|
|
125
|
+
variants: [
|
|
126
|
+
{
|
|
127
|
+
hostname: 'amazoncodewhispererstreamingservice.{region}.csp.hci.ic.gov',
|
|
128
|
+
tags: [],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
hostname: 'amazoncodewhispererstreamingservice-fips.{region}.csp.hci.ic.gov',
|
|
132
|
+
tags: ['fips'],
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
'aws-us-gov': {
|
|
137
|
+
regions: ['us-gov-east-1', 'us-gov-west-1'],
|
|
138
|
+
regionRegex: '^us\\-gov\\-\\w+\\-\\d+$',
|
|
139
|
+
variants: [
|
|
140
|
+
{
|
|
141
|
+
hostname: 'amazoncodewhispererstreamingservice.{region}.amazonaws.com',
|
|
142
|
+
tags: [],
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
hostname: 'amazoncodewhispererstreamingservice-fips.{region}.amazonaws.com',
|
|
146
|
+
tags: ['fips'],
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
hostname: 'amazoncodewhispererstreamingservice-fips.{region}.api.aws',
|
|
150
|
+
tags: ['dualstack', 'fips'],
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
hostname: 'amazoncodewhispererstreamingservice.{region}.api.aws',
|
|
154
|
+
tags: ['dualstack'],
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
160
|
+
...options,
|
|
161
|
+
signingService: 'amazoncodewhispererstreamingservice',
|
|
162
|
+
regionHash,
|
|
163
|
+
partitionHash,
|
|
164
|
+
});
|
|
165
|
+
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CodeWhispererStreamingServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./CodeWhispererStreamingClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./CodeWhispererStreaming"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var CodeWhispererStreamingServiceException_1 = require("./models/CodeWhispererStreamingServiceException");
|
|
10
|
+
Object.defineProperty(exports, "CodeWhispererStreamingServiceException", { enumerable: true, get: function () { return CodeWhispererStreamingServiceException_1.CodeWhispererStreamingServiceException; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CodeWhispererStreamingServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class CodeWhispererStreamingServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, CodeWhispererStreamingServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CodeWhispererStreamingServiceException = CodeWhispererStreamingServiceException;
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateTaskAssistPlanResponseFilterSensitiveLog = exports.GenerateTaskAssistPlanRequestFilterSensitiveLog = exports.ExportResultArchiveResponseFilterSensitiveLog = exports.GenerateAssistantResponseResponseFilterSensitiveLog = exports.GenerateAssistantResponseRequestFilterSensitiveLog = exports.ResultArchiveStreamFilterSensitiveLog = exports.ResultArchiveStream = exports.ExportIntent = exports.ConversationStateFilterSensitiveLog = exports.ContextTruncationScheme = exports.ChatTriggerType = exports.ChatResponseStreamFilterSensitiveLog = exports.ChatResponseStream = exports.SupplementaryWebLinksEventFilterSensitiveLog = exports.InvalidStateReason = exports.FollowupPromptEventFilterSensitiveLog = exports.ChatMessageFilterSensitiveLog = exports.ChatMessage = exports.UserInputMessageFilterSensitiveLog = exports.UserInputMessageContextFilterSensitiveLog = exports.EditorStateFilterSensitiveLog = exports.CursorState = exports.DiagnosticFilterSensitiveLog = exports.Diagnostic = exports.TextDocumentDiagnosticFilterSensitiveLog = exports.TextDocumentFilterSensitiveLog = exports.SymbolType = exports.RuntimeDiagnosticFilterSensitiveLog = exports.DiagnosticSeverity = exports.BinaryPayloadEventFilterSensitiveLog = exports.BinaryMetadataEventFilterSensitiveLog = exports.ContentChecksumType = exports.ConflictException = exports.AssistantResponseMessageFilterSensitiveLog = exports.SupplementaryWebLinkFilterSensitiveLog = exports.FollowupPromptFilterSensitiveLog = exports.UserIntent = exports.AssistantResponseEventFilterSensitiveLog = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = exports.AccessDeniedExceptionReason = void 0;
|
|
4
|
+
const CodeWhispererStreamingServiceException_1 = require("./CodeWhispererStreamingServiceException");
|
|
5
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
+
exports.AccessDeniedExceptionReason = {
|
|
7
|
+
UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS: 'UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS',
|
|
8
|
+
};
|
|
9
|
+
class AccessDeniedException extends CodeWhispererStreamingServiceException_1.CodeWhispererStreamingServiceException {
|
|
10
|
+
constructor(opts) {
|
|
11
|
+
super({
|
|
12
|
+
name: 'AccessDeniedException',
|
|
13
|
+
$fault: 'client',
|
|
14
|
+
...opts,
|
|
15
|
+
});
|
|
16
|
+
this.name = 'AccessDeniedException';
|
|
17
|
+
this.$fault = 'client';
|
|
18
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
19
|
+
this.reason = opts.reason;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
23
|
+
class InternalServerException extends CodeWhispererStreamingServiceException_1.CodeWhispererStreamingServiceException {
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: 'InternalServerException',
|
|
27
|
+
$fault: 'server',
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
this.name = 'InternalServerException';
|
|
31
|
+
this.$fault = 'server';
|
|
32
|
+
this.$retryable = {};
|
|
33
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.InternalServerException = InternalServerException;
|
|
37
|
+
class ResourceNotFoundException extends CodeWhispererStreamingServiceException_1.CodeWhispererStreamingServiceException {
|
|
38
|
+
constructor(opts) {
|
|
39
|
+
super({
|
|
40
|
+
name: 'ResourceNotFoundException',
|
|
41
|
+
$fault: 'client',
|
|
42
|
+
...opts,
|
|
43
|
+
});
|
|
44
|
+
this.name = 'ResourceNotFoundException';
|
|
45
|
+
this.$fault = 'client';
|
|
46
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
50
|
+
class ThrottlingException extends CodeWhispererStreamingServiceException_1.CodeWhispererStreamingServiceException {
|
|
51
|
+
constructor(opts) {
|
|
52
|
+
super({
|
|
53
|
+
name: 'ThrottlingException',
|
|
54
|
+
$fault: 'client',
|
|
55
|
+
...opts,
|
|
56
|
+
});
|
|
57
|
+
this.name = 'ThrottlingException';
|
|
58
|
+
this.$fault = 'client';
|
|
59
|
+
this.$retryable = {
|
|
60
|
+
throttling: true,
|
|
61
|
+
};
|
|
62
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.ThrottlingException = ThrottlingException;
|
|
66
|
+
exports.ValidationExceptionReason = {
|
|
67
|
+
INVALID_CONVERSATION_ID: 'INVALID_CONVERSATION_ID',
|
|
68
|
+
};
|
|
69
|
+
class ValidationException extends CodeWhispererStreamingServiceException_1.CodeWhispererStreamingServiceException {
|
|
70
|
+
constructor(opts) {
|
|
71
|
+
super({
|
|
72
|
+
name: 'ValidationException',
|
|
73
|
+
$fault: 'client',
|
|
74
|
+
...opts,
|
|
75
|
+
});
|
|
76
|
+
this.name = 'ValidationException';
|
|
77
|
+
this.$fault = 'client';
|
|
78
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
79
|
+
this.reason = opts.reason;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.ValidationException = ValidationException;
|
|
83
|
+
const AssistantResponseEventFilterSensitiveLog = (obj) => ({
|
|
84
|
+
...obj,
|
|
85
|
+
...(obj.content && { content: smithy_client_1.SENSITIVE_STRING }),
|
|
86
|
+
});
|
|
87
|
+
exports.AssistantResponseEventFilterSensitiveLog = AssistantResponseEventFilterSensitiveLog;
|
|
88
|
+
exports.UserIntent = {
|
|
89
|
+
APPLY_COMMON_BEST_PRACTICES: 'APPLY_COMMON_BEST_PRACTICES',
|
|
90
|
+
CITE_SOURCES: 'CITE_SOURCES',
|
|
91
|
+
EXPLAIN_CODE_SELECTION: 'EXPLAIN_CODE_SELECTION',
|
|
92
|
+
EXPLAIN_LINE_BY_LINE: 'EXPLAIN_LINE_BY_LINE',
|
|
93
|
+
IMPROVE_CODE: 'IMPROVE_CODE',
|
|
94
|
+
SHOW_EXAMPLES: 'SHOW_EXAMPLES',
|
|
95
|
+
SUGGEST_ALTERNATE_IMPLEMENTATION: 'SUGGEST_ALTERNATE_IMPLEMENTATION',
|
|
96
|
+
};
|
|
97
|
+
const FollowupPromptFilterSensitiveLog = (obj) => ({
|
|
98
|
+
...obj,
|
|
99
|
+
...(obj.content && { content: smithy_client_1.SENSITIVE_STRING }),
|
|
100
|
+
});
|
|
101
|
+
exports.FollowupPromptFilterSensitiveLog = FollowupPromptFilterSensitiveLog;
|
|
102
|
+
const SupplementaryWebLinkFilterSensitiveLog = (obj) => ({
|
|
103
|
+
...obj,
|
|
104
|
+
...(obj.url && { url: smithy_client_1.SENSITIVE_STRING }),
|
|
105
|
+
...(obj.title && { title: smithy_client_1.SENSITIVE_STRING }),
|
|
106
|
+
...(obj.snippet && { snippet: smithy_client_1.SENSITIVE_STRING }),
|
|
107
|
+
});
|
|
108
|
+
exports.SupplementaryWebLinkFilterSensitiveLog = SupplementaryWebLinkFilterSensitiveLog;
|
|
109
|
+
const AssistantResponseMessageFilterSensitiveLog = (obj) => ({
|
|
110
|
+
...obj,
|
|
111
|
+
...(obj.content && { content: smithy_client_1.SENSITIVE_STRING }),
|
|
112
|
+
...(obj.supplementaryWebLinks && {
|
|
113
|
+
supplementaryWebLinks: obj.supplementaryWebLinks.map(item => (0, exports.SupplementaryWebLinkFilterSensitiveLog)(item)),
|
|
114
|
+
}),
|
|
115
|
+
...(obj.followupPrompt && { followupPrompt: (0, exports.FollowupPromptFilterSensitiveLog)(obj.followupPrompt) }),
|
|
116
|
+
});
|
|
117
|
+
exports.AssistantResponseMessageFilterSensitiveLog = AssistantResponseMessageFilterSensitiveLog;
|
|
118
|
+
class ConflictException extends CodeWhispererStreamingServiceException_1.CodeWhispererStreamingServiceException {
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: 'ConflictException',
|
|
122
|
+
$fault: 'client',
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
this.name = 'ConflictException';
|
|
126
|
+
this.$fault = 'client';
|
|
127
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.ConflictException = ConflictException;
|
|
131
|
+
exports.ContentChecksumType = {
|
|
132
|
+
SHA_256: 'SHA_256',
|
|
133
|
+
};
|
|
134
|
+
const BinaryMetadataEventFilterSensitiveLog = (obj) => ({
|
|
135
|
+
...obj,
|
|
136
|
+
});
|
|
137
|
+
exports.BinaryMetadataEventFilterSensitiveLog = BinaryMetadataEventFilterSensitiveLog;
|
|
138
|
+
const BinaryPayloadEventFilterSensitiveLog = (obj) => ({
|
|
139
|
+
...obj,
|
|
140
|
+
...(obj.bytes && { bytes: smithy_client_1.SENSITIVE_STRING }),
|
|
141
|
+
});
|
|
142
|
+
exports.BinaryPayloadEventFilterSensitiveLog = BinaryPayloadEventFilterSensitiveLog;
|
|
143
|
+
exports.DiagnosticSeverity = {
|
|
144
|
+
ERROR: 'ERROR',
|
|
145
|
+
HINT: 'HINT',
|
|
146
|
+
INFORMATION: 'INFORMATION',
|
|
147
|
+
WARNING: 'WARNING',
|
|
148
|
+
};
|
|
149
|
+
const RuntimeDiagnosticFilterSensitiveLog = (obj) => ({
|
|
150
|
+
...obj,
|
|
151
|
+
...(obj.source && { source: smithy_client_1.SENSITIVE_STRING }),
|
|
152
|
+
...(obj.message && { message: smithy_client_1.SENSITIVE_STRING }),
|
|
153
|
+
});
|
|
154
|
+
exports.RuntimeDiagnosticFilterSensitiveLog = RuntimeDiagnosticFilterSensitiveLog;
|
|
155
|
+
exports.SymbolType = {
|
|
156
|
+
DECLARATION: 'DECLARATION',
|
|
157
|
+
USAGE: 'USAGE',
|
|
158
|
+
};
|
|
159
|
+
const TextDocumentFilterSensitiveLog = (obj) => ({
|
|
160
|
+
...obj,
|
|
161
|
+
...(obj.relativeFilePath && { relativeFilePath: smithy_client_1.SENSITIVE_STRING }),
|
|
162
|
+
...(obj.text && { text: smithy_client_1.SENSITIVE_STRING }),
|
|
163
|
+
});
|
|
164
|
+
exports.TextDocumentFilterSensitiveLog = TextDocumentFilterSensitiveLog;
|
|
165
|
+
const TextDocumentDiagnosticFilterSensitiveLog = (obj) => ({
|
|
166
|
+
...obj,
|
|
167
|
+
...(obj.document && { document: (0, exports.TextDocumentFilterSensitiveLog)(obj.document) }),
|
|
168
|
+
...(obj.source && { source: smithy_client_1.SENSITIVE_STRING }),
|
|
169
|
+
...(obj.message && { message: smithy_client_1.SENSITIVE_STRING }),
|
|
170
|
+
});
|
|
171
|
+
exports.TextDocumentDiagnosticFilterSensitiveLog = TextDocumentDiagnosticFilterSensitiveLog;
|
|
172
|
+
var Diagnostic;
|
|
173
|
+
(function (Diagnostic) {
|
|
174
|
+
Diagnostic.visit = (value, visitor) => {
|
|
175
|
+
if (value.textDocumentDiagnostic !== undefined)
|
|
176
|
+
return visitor.textDocumentDiagnostic(value.textDocumentDiagnostic);
|
|
177
|
+
if (value.runtimeDiagnostic !== undefined)
|
|
178
|
+
return visitor.runtimeDiagnostic(value.runtimeDiagnostic);
|
|
179
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
180
|
+
};
|
|
181
|
+
})(Diagnostic || (exports.Diagnostic = Diagnostic = {}));
|
|
182
|
+
const DiagnosticFilterSensitiveLog = (obj) => {
|
|
183
|
+
if (obj.textDocumentDiagnostic !== undefined)
|
|
184
|
+
return { textDocumentDiagnostic: (0, exports.TextDocumentDiagnosticFilterSensitiveLog)(obj.textDocumentDiagnostic) };
|
|
185
|
+
if (obj.runtimeDiagnostic !== undefined)
|
|
186
|
+
return { runtimeDiagnostic: (0, exports.RuntimeDiagnosticFilterSensitiveLog)(obj.runtimeDiagnostic) };
|
|
187
|
+
if (obj.$unknown !== undefined)
|
|
188
|
+
return { [obj.$unknown[0]]: 'UNKNOWN' };
|
|
189
|
+
};
|
|
190
|
+
exports.DiagnosticFilterSensitiveLog = DiagnosticFilterSensitiveLog;
|
|
191
|
+
var CursorState;
|
|
192
|
+
(function (CursorState) {
|
|
193
|
+
CursorState.visit = (value, visitor) => {
|
|
194
|
+
if (value.position !== undefined)
|
|
195
|
+
return visitor.position(value.position);
|
|
196
|
+
if (value.range !== undefined)
|
|
197
|
+
return visitor.range(value.range);
|
|
198
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
199
|
+
};
|
|
200
|
+
})(CursorState || (exports.CursorState = CursorState = {}));
|
|
201
|
+
const EditorStateFilterSensitiveLog = (obj) => ({
|
|
202
|
+
...obj,
|
|
203
|
+
...(obj.document && { document: (0, exports.TextDocumentFilterSensitiveLog)(obj.document) }),
|
|
204
|
+
...(obj.cursorState && { cursorState: obj.cursorState }),
|
|
205
|
+
});
|
|
206
|
+
exports.EditorStateFilterSensitiveLog = EditorStateFilterSensitiveLog;
|
|
207
|
+
const UserInputMessageContextFilterSensitiveLog = (obj) => ({
|
|
208
|
+
...obj,
|
|
209
|
+
...(obj.editorState && { editorState: (0, exports.EditorStateFilterSensitiveLog)(obj.editorState) }),
|
|
210
|
+
...(obj.diagnostic && { diagnostic: (0, exports.DiagnosticFilterSensitiveLog)(obj.diagnostic) }),
|
|
211
|
+
});
|
|
212
|
+
exports.UserInputMessageContextFilterSensitiveLog = UserInputMessageContextFilterSensitiveLog;
|
|
213
|
+
const UserInputMessageFilterSensitiveLog = (obj) => ({
|
|
214
|
+
...obj,
|
|
215
|
+
...(obj.content && { content: smithy_client_1.SENSITIVE_STRING }),
|
|
216
|
+
...(obj.userInputMessageContext && {
|
|
217
|
+
userInputMessageContext: (0, exports.UserInputMessageContextFilterSensitiveLog)(obj.userInputMessageContext),
|
|
218
|
+
}),
|
|
219
|
+
});
|
|
220
|
+
exports.UserInputMessageFilterSensitiveLog = UserInputMessageFilterSensitiveLog;
|
|
221
|
+
var ChatMessage;
|
|
222
|
+
(function (ChatMessage) {
|
|
223
|
+
ChatMessage.visit = (value, visitor) => {
|
|
224
|
+
if (value.userInputMessage !== undefined)
|
|
225
|
+
return visitor.userInputMessage(value.userInputMessage);
|
|
226
|
+
if (value.assistantResponseMessage !== undefined)
|
|
227
|
+
return visitor.assistantResponseMessage(value.assistantResponseMessage);
|
|
228
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
229
|
+
};
|
|
230
|
+
})(ChatMessage || (exports.ChatMessage = ChatMessage = {}));
|
|
231
|
+
const ChatMessageFilterSensitiveLog = (obj) => {
|
|
232
|
+
if (obj.userInputMessage !== undefined)
|
|
233
|
+
return { userInputMessage: (0, exports.UserInputMessageFilterSensitiveLog)(obj.userInputMessage) };
|
|
234
|
+
if (obj.assistantResponseMessage !== undefined)
|
|
235
|
+
return { assistantResponseMessage: (0, exports.AssistantResponseMessageFilterSensitiveLog)(obj.assistantResponseMessage) };
|
|
236
|
+
if (obj.$unknown !== undefined)
|
|
237
|
+
return { [obj.$unknown[0]]: 'UNKNOWN' };
|
|
238
|
+
};
|
|
239
|
+
exports.ChatMessageFilterSensitiveLog = ChatMessageFilterSensitiveLog;
|
|
240
|
+
const FollowupPromptEventFilterSensitiveLog = (obj) => ({
|
|
241
|
+
...obj,
|
|
242
|
+
...(obj.followupPrompt && { followupPrompt: (0, exports.FollowupPromptFilterSensitiveLog)(obj.followupPrompt) }),
|
|
243
|
+
});
|
|
244
|
+
exports.FollowupPromptEventFilterSensitiveLog = FollowupPromptEventFilterSensitiveLog;
|
|
245
|
+
exports.InvalidStateReason = {
|
|
246
|
+
INVALID_TASK_ASSIST_PLAN: 'INVALID_TASK_ASSIST_PLAN',
|
|
247
|
+
};
|
|
248
|
+
const SupplementaryWebLinksEventFilterSensitiveLog = (obj) => ({
|
|
249
|
+
...obj,
|
|
250
|
+
...(obj.supplementaryWebLinks && {
|
|
251
|
+
supplementaryWebLinks: obj.supplementaryWebLinks.map(item => (0, exports.SupplementaryWebLinkFilterSensitiveLog)(item)),
|
|
252
|
+
}),
|
|
253
|
+
});
|
|
254
|
+
exports.SupplementaryWebLinksEventFilterSensitiveLog = SupplementaryWebLinksEventFilterSensitiveLog;
|
|
255
|
+
var ChatResponseStream;
|
|
256
|
+
(function (ChatResponseStream) {
|
|
257
|
+
ChatResponseStream.visit = (value, visitor) => {
|
|
258
|
+
if (value.messageMetadataEvent !== undefined)
|
|
259
|
+
return visitor.messageMetadataEvent(value.messageMetadataEvent);
|
|
260
|
+
if (value.assistantResponseEvent !== undefined)
|
|
261
|
+
return visitor.assistantResponseEvent(value.assistantResponseEvent);
|
|
262
|
+
if (value.codeReferenceEvent !== undefined)
|
|
263
|
+
return visitor.codeReferenceEvent(value.codeReferenceEvent);
|
|
264
|
+
if (value.supplementaryWebLinksEvent !== undefined)
|
|
265
|
+
return visitor.supplementaryWebLinksEvent(value.supplementaryWebLinksEvent);
|
|
266
|
+
if (value.followupPromptEvent !== undefined)
|
|
267
|
+
return visitor.followupPromptEvent(value.followupPromptEvent);
|
|
268
|
+
if (value.invalidStateEvent !== undefined)
|
|
269
|
+
return visitor.invalidStateEvent(value.invalidStateEvent);
|
|
270
|
+
if (value.error !== undefined)
|
|
271
|
+
return visitor.error(value.error);
|
|
272
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
273
|
+
};
|
|
274
|
+
})(ChatResponseStream || (exports.ChatResponseStream = ChatResponseStream = {}));
|
|
275
|
+
const ChatResponseStreamFilterSensitiveLog = (obj) => {
|
|
276
|
+
if (obj.messageMetadataEvent !== undefined)
|
|
277
|
+
return { messageMetadataEvent: obj.messageMetadataEvent };
|
|
278
|
+
if (obj.assistantResponseEvent !== undefined)
|
|
279
|
+
return { assistantResponseEvent: (0, exports.AssistantResponseEventFilterSensitiveLog)(obj.assistantResponseEvent) };
|
|
280
|
+
if (obj.codeReferenceEvent !== undefined)
|
|
281
|
+
return { codeReferenceEvent: obj.codeReferenceEvent };
|
|
282
|
+
if (obj.supplementaryWebLinksEvent !== undefined)
|
|
283
|
+
return {
|
|
284
|
+
supplementaryWebLinksEvent: (0, exports.SupplementaryWebLinksEventFilterSensitiveLog)(obj.supplementaryWebLinksEvent),
|
|
285
|
+
};
|
|
286
|
+
if (obj.followupPromptEvent !== undefined)
|
|
287
|
+
return { followupPromptEvent: (0, exports.FollowupPromptEventFilterSensitiveLog)(obj.followupPromptEvent) };
|
|
288
|
+
if (obj.invalidStateEvent !== undefined)
|
|
289
|
+
return { invalidStateEvent: obj.invalidStateEvent };
|
|
290
|
+
if (obj.error !== undefined)
|
|
291
|
+
return { error: obj.error };
|
|
292
|
+
if (obj.$unknown !== undefined)
|
|
293
|
+
return { [obj.$unknown[0]]: 'UNKNOWN' };
|
|
294
|
+
};
|
|
295
|
+
exports.ChatResponseStreamFilterSensitiveLog = ChatResponseStreamFilterSensitiveLog;
|
|
296
|
+
exports.ChatTriggerType = {
|
|
297
|
+
DIAGNOSTIC: 'DIAGNOSTIC',
|
|
298
|
+
MANUAL: 'MANUAL',
|
|
299
|
+
};
|
|
300
|
+
exports.ContextTruncationScheme = {
|
|
301
|
+
ANALYSIS: 'ANALYSIS',
|
|
302
|
+
GUMBY: 'GUMBY',
|
|
303
|
+
};
|
|
304
|
+
const ConversationStateFilterSensitiveLog = (obj) => ({
|
|
305
|
+
...obj,
|
|
306
|
+
...(obj.history && { history: obj.history.map(item => (0, exports.ChatMessageFilterSensitiveLog)(item)) }),
|
|
307
|
+
...(obj.currentMessage && { currentMessage: (0, exports.ChatMessageFilterSensitiveLog)(obj.currentMessage) }),
|
|
308
|
+
});
|
|
309
|
+
exports.ConversationStateFilterSensitiveLog = ConversationStateFilterSensitiveLog;
|
|
310
|
+
exports.ExportIntent = {
|
|
311
|
+
TASK_ASSIST: 'TASK_ASSIST',
|
|
312
|
+
TRANSFORMATION: 'TRANSFORMATION',
|
|
313
|
+
};
|
|
314
|
+
var ResultArchiveStream;
|
|
315
|
+
(function (ResultArchiveStream) {
|
|
316
|
+
ResultArchiveStream.visit = (value, visitor) => {
|
|
317
|
+
if (value.binaryMetadataEvent !== undefined)
|
|
318
|
+
return visitor.binaryMetadataEvent(value.binaryMetadataEvent);
|
|
319
|
+
if (value.binaryPayloadEvent !== undefined)
|
|
320
|
+
return visitor.binaryPayloadEvent(value.binaryPayloadEvent);
|
|
321
|
+
if (value.internalServerException !== undefined)
|
|
322
|
+
return visitor.internalServerException(value.internalServerException);
|
|
323
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
324
|
+
};
|
|
325
|
+
})(ResultArchiveStream || (exports.ResultArchiveStream = ResultArchiveStream = {}));
|
|
326
|
+
const ResultArchiveStreamFilterSensitiveLog = (obj) => {
|
|
327
|
+
if (obj.binaryMetadataEvent !== undefined)
|
|
328
|
+
return { binaryMetadataEvent: smithy_client_1.SENSITIVE_STRING };
|
|
329
|
+
if (obj.binaryPayloadEvent !== undefined)
|
|
330
|
+
return { binaryPayloadEvent: smithy_client_1.SENSITIVE_STRING };
|
|
331
|
+
if (obj.internalServerException !== undefined)
|
|
332
|
+
return { internalServerException: obj.internalServerException };
|
|
333
|
+
if (obj.$unknown !== undefined)
|
|
334
|
+
return { [obj.$unknown[0]]: 'UNKNOWN' };
|
|
335
|
+
};
|
|
336
|
+
exports.ResultArchiveStreamFilterSensitiveLog = ResultArchiveStreamFilterSensitiveLog;
|
|
337
|
+
const GenerateAssistantResponseRequestFilterSensitiveLog = (obj) => ({
|
|
338
|
+
...obj,
|
|
339
|
+
...(obj.conversationState && { conversationState: (0, exports.ConversationStateFilterSensitiveLog)(obj.conversationState) }),
|
|
340
|
+
});
|
|
341
|
+
exports.GenerateAssistantResponseRequestFilterSensitiveLog = GenerateAssistantResponseRequestFilterSensitiveLog;
|
|
342
|
+
const GenerateAssistantResponseResponseFilterSensitiveLog = (obj) => ({
|
|
343
|
+
...obj,
|
|
344
|
+
...(obj.generateAssistantResponseResponse && { generateAssistantResponseResponse: 'STREAMING_CONTENT' }),
|
|
345
|
+
});
|
|
346
|
+
exports.GenerateAssistantResponseResponseFilterSensitiveLog = GenerateAssistantResponseResponseFilterSensitiveLog;
|
|
347
|
+
const ExportResultArchiveResponseFilterSensitiveLog = (obj) => ({
|
|
348
|
+
...obj,
|
|
349
|
+
...(obj.body && { body: 'STREAMING_CONTENT' }),
|
|
350
|
+
});
|
|
351
|
+
exports.ExportResultArchiveResponseFilterSensitiveLog = ExportResultArchiveResponseFilterSensitiveLog;
|
|
352
|
+
const GenerateTaskAssistPlanRequestFilterSensitiveLog = (obj) => ({
|
|
353
|
+
...obj,
|
|
354
|
+
...(obj.conversationState && { conversationState: (0, exports.ConversationStateFilterSensitiveLog)(obj.conversationState) }),
|
|
355
|
+
});
|
|
356
|
+
exports.GenerateTaskAssistPlanRequestFilterSensitiveLog = GenerateTaskAssistPlanRequestFilterSensitiveLog;
|
|
357
|
+
const GenerateTaskAssistPlanResponseFilterSensitiveLog = (obj) => ({
|
|
358
|
+
...obj,
|
|
359
|
+
...(obj.planningResponseStream && { planningResponseStream: 'STREAMING_CONTENT' }),
|
|
360
|
+
});
|
|
361
|
+
exports.GenerateTaskAssistPlanResponseFilterSensitiveLog = GenerateTaskAssistPlanResponseFilterSensitiveLog;
|