@aws/lsp-codewhisperer 0.0.21 → 0.0.24
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 +49 -0
- package/node_modules/@amzn/codewhisperer-streaming/LICENSE +1 -1
- package/node_modules/@amzn/codewhisperer-streaming/README.md +49 -21
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +21 -2
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +17 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +3 -1
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +33 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.d.ts +42 -1
- package/node_modules/@amzn/codewhisperer-streaming/package.json +2 -2
- package/out/client/sigv4/codewhisperer.d.ts +4 -0
- package/out/client/token/codewhisperer.d.ts +14 -0
- package/out/constants.d.ts +2 -0
- package/out/index.d.ts +5 -0
- package/out/language-server/auto-trigger/autoTrigger.d.ts +38 -0
- package/out/language-server/auto-trigger/autoTrigger.test.d.ts +1 -0
- package/out/language-server/chat/chatController.js +3 -3
- package/out/language-server/chat/chatController.js.map +1 -1
- package/out/language-server/chat/chatController.test.d.ts +1 -0
- package/out/language-server/chat/chatEventParser.d.ts +39 -0
- package/out/language-server/chat/chatEventParser.test.d.ts +1 -0
- package/out/language-server/chat/chatSessionManagementService.d.ts +19 -0
- package/out/language-server/chat/chatSessionManagementService.test.d.ts +1 -0
- package/out/language-server/chat/chatSessionService.d.ts +14 -0
- package/out/language-server/chat/chatSessionService.test.d.ts +1 -0
- package/out/language-server/chat/constants.d.ts +2 -0
- package/out/language-server/chat/contexts/documentContext.d.ts +23 -0
- package/out/language-server/chat/contexts/documentContext.test.d.ts +1 -0
- package/out/language-server/chat/contexts/triggerContext.d.ts +17 -0
- package/out/language-server/chat/contexts/triggerContexts.test.d.ts +1 -0
- package/out/language-server/chat/contexts/utils.d.ts +10 -0
- package/out/language-server/chat/contexts/utils.test.d.ts +1 -0
- package/out/language-server/chat/quickActions.d.ts +12 -0
- package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +61 -0
- package/out/language-server/chat/telemetry/chatTelemetryController.js +16 -15
- package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.test.d.ts +1 -0
- package/out/language-server/chat/telemetry/clientTelemetry.d.ts +59 -0
- package/out/language-server/chat/utils.d.ts +6 -0
- package/out/language-server/codeWhispererSecurityScanServer.d.ts +3 -0
- package/out/language-server/codeWhispererServer.d.ts +6 -0
- package/out/language-server/codeWhispererServer.js +15 -15
- package/out/language-server/codeWhispererServer.js.map +1 -1
- package/out/language-server/codeWhispererServer.test.d.ts +1 -0
- package/out/language-server/configuration/qConfigurationServer.d.ts +4 -0
- package/out/language-server/constants.d.ts +4 -0
- package/out/language-server/dependencyGraph/commonUtil.d.ts +2 -0
- package/out/language-server/dependencyGraph/csharpDependencyGraph.test.d.ts +1 -0
- package/out/language-server/dependencyGraph/dependencyGraphFactory.d.ts +14 -0
- package/out/language-server/languageDetection.d.ts +19 -0
- package/out/language-server/languageDetection.test.d.ts +1 -0
- package/out/language-server/mergeRightUtils.test.d.ts +1 -0
- package/out/language-server/models/constants.d.ts +15 -0
- package/out/language-server/models/model.d.ts +16 -0
- package/out/language-server/netTransform/artifactManager.d.ts +3 -2
- package/out/language-server/netTransform/artifactManager.js +35 -11
- package/out/language-server/netTransform/artifactManager.js.map +1 -1
- package/out/language-server/netTransform/metrics.d.ts +17 -0
- package/out/language-server/netTransform/models.d.ts +94 -0
- package/out/language-server/netTransform/tests/converter.test.d.ts +1 -0
- package/out/language-server/netTransform/tests/transformHandler.test.d.ts +2 -0
- package/out/language-server/netTransform/tests/transformHandler.test.js +32 -9
- package/out/language-server/netTransform/tests/transformHandler.test.js.map +1 -1
- package/out/language-server/netTransform/tests/validation.test.d.ts +1 -0
- package/out/language-server/netTransform/transformHandler.js +3 -2
- package/out/language-server/netTransform/transformHandler.js.map +1 -1
- package/out/language-server/proxy-server.d.ts +6 -0
- package/out/language-server/qChatServer.d.ts +3 -0
- package/out/language-server/qChatServer.test.d.ts +1 -0
- package/out/language-server/securityScan/securityScanDiagnosticsProvider.js +1 -1
- package/out/language-server/securityScan/securityScanDiagnosticsProvider.js.map +1 -1
- package/out/language-server/securityScan/securityScanHandler.test.d.ts +1 -0
- package/out/language-server/securityScan/types.d.ts +64 -0
- package/out/language-server/session/sessionManager.test.d.ts +1 -0
- package/out/language-server/telemetry/codeDiffTracker.test.d.ts +1 -0
- package/out/language-server/telemetry/codePercentage.d.ts +19 -0
- package/out/language-server/telemetry/codePercentage.js +11 -12
- package/out/language-server/telemetry/codePercentage.js.map +1 -1
- package/out/language-server/telemetry/codePercentage.test.d.ts +1 -0
- package/out/language-server/telemetry/metric.d.ts +16 -0
- package/out/language-server/telemetry/types.d.ts +259 -0
- package/out/language-server/telemetry/userTriggerDecision.test.d.ts +1 -0
- package/out/language-server/telemetry.test.d.ts +1 -0
- package/out/language-server/telemetryService.d.ts +79 -0
- package/out/language-server/telemetryService.js +6 -6
- package/out/language-server/telemetryService.js.map +1 -1
- package/out/language-server/telemetryService.test.d.ts +1 -0
- package/out/language-server/types.d.ts +16 -0
- package/out/language-server/utilities/filesystemUtilities.d.ts +8 -0
- package/out/language-server/utilities/filesystemUtilities.test.d.ts +1 -0
- package/out/language-server/utilities/pathUtils.test.d.ts +1 -0
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.d.ts +13 -0
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.d.ts +5 -0
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.d.ts +18 -0
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.d.ts +1 -0
- package/out/language-server/utilities/supplementalContextUtil/rankBm25.d.ts +32 -0
- package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.d.ts +5 -0
- package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.d.ts +1 -0
- package/out/language-server/utilities/telemetryUtils.d.ts +4 -0
- package/out/language-server/utilities/telemetryUtils.js +3 -3
- package/out/language-server/utilities/telemetryUtils.js.map +1 -1
- package/out/language-server/utilities/telemetryUtils.test.d.ts +1 -0
- package/out/language-server/utilities/textUtils.d.ts +1 -0
- package/out/language-server/utilities/textUtils.test.d.ts +1 -0
- package/out/language-server/utils.test.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.24](https://github.com/aws/language-servers/compare/lsp-codewhisperer-v0.0.23...lsp-codewhisperer/v0.0.24) (2025-01-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* bugfix for artifacts upload ([#749](https://github.com/aws/language-servers/issues/749)) ([71c0a19](https://github.com/aws/language-servers/commit/71c0a19974428037160152cc7e40cd6c399ceec9))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* convert makeProxyConfig to sync to allow proxy configs to be loa… ([#725](https://github.com/aws/language-servers/issues/725)) ([7ea8150](https://github.com/aws/language-servers/commit/7ea81505c4c69a0a3ba3b595a51fd40b9db14947))
|
|
14
|
+
* make proxy nodejs only ([#716](https://github.com/aws/language-servers/issues/716)) ([37cf726](https://github.com/aws/language-servers/commit/37cf726e4926640da158ee67d86a1937b2c89c68))
|
|
15
|
+
* marking aws field as optional in initializationOptions ([#757](https://github.com/aws/language-servers/issues/757)) ([d435c99](https://github.com/aws/language-servers/commit/d435c992c44214523eadfe252bb80d70ffa191f6))
|
|
16
|
+
* move CW streaming client to tarball ([#743](https://github.com/aws/language-servers/issues/743)) ([a1a17d8](https://github.com/aws/language-servers/commit/a1a17d853bd1d33897e2deaacec53d6d62bbe2ec))
|
|
17
|
+
* removing duplicated nuget packages folder ([#746](https://github.com/aws/language-servers/issues/746)) ([24b44d0](https://github.com/aws/language-servers/commit/24b44d03ce6d2127099a6ce8c33cd63b55fae290))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Performance Improvements
|
|
21
|
+
|
|
22
|
+
* dispose chat controller in chatController tests ([#717](https://github.com/aws/language-servers/issues/717)) ([b0e6b78](https://github.com/aws/language-servers/commit/b0e6b78bcee5970eac8159d2a46bae152f1d238d))
|
|
23
|
+
|
|
24
|
+
## [0.0.23](https://github.com/aws/language-servers/compare/lsp-codewhisperer-v0.0.22...lsp-codewhisperer/v0.0.23) (2025-01-28)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* bugfix for artifacts upload ([#749](https://github.com/aws/language-servers/issues/749)) ([71c0a19](https://github.com/aws/language-servers/commit/71c0a19974428037160152cc7e40cd6c399ceec9))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* convert makeProxyConfig to sync to allow proxy configs to be loa… ([#725](https://github.com/aws/language-servers/issues/725)) ([7ea8150](https://github.com/aws/language-servers/commit/7ea81505c4c69a0a3ba3b595a51fd40b9db14947))
|
|
35
|
+
* make proxy nodejs only ([#716](https://github.com/aws/language-servers/issues/716)) ([37cf726](https://github.com/aws/language-servers/commit/37cf726e4926640da158ee67d86a1937b2c89c68))
|
|
36
|
+
* marking aws field as optional in initializationOptions ([#757](https://github.com/aws/language-servers/issues/757)) ([d435c99](https://github.com/aws/language-servers/commit/d435c992c44214523eadfe252bb80d70ffa191f6))
|
|
37
|
+
* move CW streaming client to tarball ([#743](https://github.com/aws/language-servers/issues/743)) ([a1a17d8](https://github.com/aws/language-servers/commit/a1a17d853bd1d33897e2deaacec53d6d62bbe2ec))
|
|
38
|
+
* removing duplicated nuget packages folder ([#746](https://github.com/aws/language-servers/issues/746)) ([24b44d0](https://github.com/aws/language-servers/commit/24b44d03ce6d2127099a6ce8c33cd63b55fae290))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Performance Improvements
|
|
42
|
+
|
|
43
|
+
* dispose chat controller in chatController tests ([#717](https://github.com/aws/language-servers/issues/717)) ([b0e6b78](https://github.com/aws/language-servers/commit/b0e6b78bcee5970eac8159d2a46bae152f1d238d))
|
|
44
|
+
|
|
45
|
+
## [0.0.22](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.21...lsp-codewhisperer/v0.0.22) (2025-01-27)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Bug Fixes
|
|
49
|
+
|
|
50
|
+
* move CW streaming client to tarball ([#743](https://github.com/aws/language-servers/issues/743)) ([a1a17d8](https://github.com/aws/language-servers/commit/a1a17d853bd1d33897e2deaacec53d6d62bbe2ec))
|
|
51
|
+
|
|
3
52
|
## [0.0.21](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.20...lsp-codewhisperer/v0.0.21) (2025-01-16)
|
|
4
53
|
|
|
5
54
|
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright 2018-
|
|
189
|
+
Copyright 2018-2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
|
@@ -205,13 +205,6 @@ AllowVendedLogDeliveryForResource
|
|
|
205
205
|
</details>
|
|
206
206
|
<details>
|
|
207
207
|
<summary>
|
|
208
|
-
AssociateConnectorResource
|
|
209
|
-
</summary>
|
|
210
|
-
|
|
211
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/AssociateConnectorResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/AssociateConnectorResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/AssociateConnectorResourceCommandOutput/)
|
|
212
|
-
</details>
|
|
213
|
-
<details>
|
|
214
|
-
<summary>
|
|
215
208
|
AssociateCustomizationPermission
|
|
216
209
|
</summary>
|
|
217
210
|
|
|
@@ -261,13 +254,6 @@ GenerateRecommendations
|
|
|
261
254
|
</details>
|
|
262
255
|
<details>
|
|
263
256
|
<summary>
|
|
264
|
-
GetConnector
|
|
265
|
-
</summary>
|
|
266
|
-
|
|
267
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/GetConnectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/GetConnectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/GetConnectorCommandOutput/)
|
|
268
|
-
</details>
|
|
269
|
-
<details>
|
|
270
|
-
<summary>
|
|
271
257
|
GetCustomization
|
|
272
258
|
</summary>
|
|
273
259
|
|
|
@@ -310,13 +296,6 @@ ListTagsForResource
|
|
|
310
296
|
</details>
|
|
311
297
|
<details>
|
|
312
298
|
<summary>
|
|
313
|
-
RejectConnector
|
|
314
|
-
</summary>
|
|
315
|
-
|
|
316
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/RejectConnectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/RejectConnectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/RejectConnectorCommandOutput/)
|
|
317
|
-
</details>
|
|
318
|
-
<details>
|
|
319
|
-
<summary>
|
|
320
299
|
TagResource
|
|
321
300
|
</summary>
|
|
322
301
|
|
|
@@ -345,6 +324,13 @@ UpdateProfile
|
|
|
345
324
|
</details>
|
|
346
325
|
<details>
|
|
347
326
|
<summary>
|
|
327
|
+
VendKeyGrant
|
|
328
|
+
</summary>
|
|
329
|
+
|
|
330
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/VendKeyGrantCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/VendKeyGrantCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/VendKeyGrantCommandOutput/)
|
|
331
|
+
</details>
|
|
332
|
+
<details>
|
|
333
|
+
<summary>
|
|
348
334
|
CreateArtifactUploadUrl
|
|
349
335
|
</summary>
|
|
350
336
|
|
|
@@ -387,6 +373,13 @@ GetCodeAnalysis
|
|
|
387
373
|
</details>
|
|
388
374
|
<details>
|
|
389
375
|
<summary>
|
|
376
|
+
GetCodeFixJob
|
|
377
|
+
</summary>
|
|
378
|
+
|
|
379
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/GetCodeFixJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/GetCodeFixJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/GetCodeFixJobCommandOutput/)
|
|
380
|
+
</details>
|
|
381
|
+
<details>
|
|
382
|
+
<summary>
|
|
390
383
|
GetTaskAssistCodeGeneration
|
|
391
384
|
</summary>
|
|
392
385
|
|
|
@@ -457,6 +450,13 @@ StartCodeAnalysis
|
|
|
457
450
|
</details>
|
|
458
451
|
<details>
|
|
459
452
|
<summary>
|
|
453
|
+
StartCodeFixJob
|
|
454
|
+
</summary>
|
|
455
|
+
|
|
456
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/StartCodeFixJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/StartCodeFixJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/StartCodeFixJobCommandOutput/)
|
|
457
|
+
</details>
|
|
458
|
+
<details>
|
|
459
|
+
<summary>
|
|
460
460
|
StartTaskAssistCodeGeneration
|
|
461
461
|
</summary>
|
|
462
462
|
|
|
@@ -506,6 +506,13 @@ GenerateTaskAssistPlan
|
|
|
506
506
|
</details>
|
|
507
507
|
<details>
|
|
508
508
|
<summary>
|
|
509
|
+
AssociateConnectorResource
|
|
510
|
+
</summary>
|
|
511
|
+
|
|
512
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/AssociateConnectorResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/AssociateConnectorResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/AssociateConnectorResourceCommandOutput/)
|
|
513
|
+
</details>
|
|
514
|
+
<details>
|
|
515
|
+
<summary>
|
|
509
516
|
CreateAssignment
|
|
510
517
|
</summary>
|
|
511
518
|
|
|
@@ -555,6 +562,13 @@ DeletePlugin
|
|
|
555
562
|
</details>
|
|
556
563
|
<details>
|
|
557
564
|
<summary>
|
|
565
|
+
GetConnector
|
|
566
|
+
</summary>
|
|
567
|
+
|
|
568
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/GetConnectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/GetConnectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/GetConnectorCommandOutput/)
|
|
569
|
+
</details>
|
|
570
|
+
<details>
|
|
571
|
+
<summary>
|
|
558
572
|
GetConversation
|
|
559
573
|
</summary>
|
|
560
574
|
|
|
@@ -611,6 +625,13 @@ ListConversations
|
|
|
611
625
|
</details>
|
|
612
626
|
<details>
|
|
613
627
|
<summary>
|
|
628
|
+
ListDashboardMetrics
|
|
629
|
+
</summary>
|
|
630
|
+
|
|
631
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/ListDashboardMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/ListDashboardMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/ListDashboardMetricsCommandOutput/)
|
|
632
|
+
</details>
|
|
633
|
+
<details>
|
|
634
|
+
<summary>
|
|
614
635
|
ListExtensionProviders
|
|
615
636
|
</summary>
|
|
616
637
|
|
|
@@ -660,6 +681,13 @@ PassRequest
|
|
|
660
681
|
</details>
|
|
661
682
|
<details>
|
|
662
683
|
<summary>
|
|
684
|
+
RejectConnector
|
|
685
|
+
</summary>
|
|
686
|
+
|
|
687
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/RejectConnectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/RejectConnectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/RejectConnectorCommandOutput/)
|
|
688
|
+
</details>
|
|
689
|
+
<details>
|
|
690
|
+
<summary>
|
|
663
691
|
SendEvent
|
|
664
692
|
</summary>
|
|
665
693
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.GenerateTaskAssistPlanResponseFilterSensitiveLog = exports.GenerateTaskAssistPlanRequestFilterSensitiveLog = exports.SendMessageResponseFilterSensitiveLog = exports.SendMessageRequestFilterSensitiveLog = exports.Origin = exports.ExportResultArchiveResponseFilterSensitiveLog = exports.GenerateAssistantResponseResponseFilterSensitiveLog = exports.GenerateAssistantResponseRequestFilterSensitiveLog = exports.ServiceQuotaExceededException = exports.ResultArchiveStreamFilterSensitiveLog = exports.ResultArchiveStream = exports.ExportIntent = exports.ExportContext = exports.TransformationDownloadArtifactType = exports.DryRunOperationException = exports.ConversationStateFilterSensitiveLog = exports.ContextTruncationScheme = exports.ChatTriggerType = exports.ChatResponseStreamFilterSensitiveLog = exports.ChatResponseStream = exports.SupplementaryWebLinksEventFilterSensitiveLog = exports.InvalidStateReason = exports.InteractionComponentsEventFilterSensitiveLog = exports.InteractionComponentEntryFilterSensitiveLog = exports.InteractionComponentFilterSensitiveLog = exports.TaskDetailsFilterSensitiveLog = exports.TaskOverviewFilterSensitiveLog = exports.TaskComponentFilterSensitiveLog = exports.TaskActionFilterSensitiveLog = exports.TaskActionNoteFilterSensitiveLog = exports.TaskActionNoteType = exports.TaskActionConfirmationFilterSensitiveLog = exports.SectionFilterSensitiveLog = exports.SectionComponentFilterSensitiveLog = exports.ResourceListFilterSensitiveLog = exports.ResourceFilterSensitiveLog = exports.ProgressFilterSensitiveLog = exports.ProgressComponentFilterSensitiveLog = exports.StepFilterSensitiveLog = exports.StepState = exports.StepComponentFilterSensitiveLog = exports.InfrastructureUpdateFilterSensitiveLog = exports.InfrastructureUpdateTransitionFilterSensitiveLog = exports.AlertFilterSensitiveLog = void 0;
|
|
3
|
+
exports.AlertComponentFilterSensitiveLog = exports.TextFilterSensitiveLog = exports.ActionFilterSensitiveLog = exports.WebLinkFilterSensitiveLog = exports.ModuleLinkFilterSensitiveLog = exports.CloudWatchTroubleshootingLinkFilterSensitiveLog = exports.IntentsEventFilterSensitiveLog = exports.IntentDataType = exports.IntentType = exports.FollowupPromptEventFilterSensitiveLog = exports.CodeEventFilterSensitiveLog = exports.ChatMessageFilterSensitiveLog = exports.ChatMessage = exports.UserInputMessageFilterSensitiveLog = exports.UserInputMessageContextFilterSensitiveLog = exports.ShellStateFilterSensitiveLog = exports.ShellHistoryEntryFilterSensitiveLog = exports.GitStateFilterSensitiveLog = exports.EnvStateFilterSensitiveLog = exports.EnvironmentVariableFilterSensitiveLog = exports.EditorStateFilterSensitiveLog = exports.RelevantTextDocumentFilterSensitiveLog = exports.CursorState = exports.DiagnosticFilterSensitiveLog = exports.Diagnostic = exports.TextDocumentDiagnosticFilterSensitiveLog = exports.TextDocumentFilterSensitiveLog = exports.SymbolType = exports.RuntimeDiagnosticFilterSensitiveLog = exports.DiagnosticSeverity = exports.ConsoleStateFilterSensitiveLog = exports.BinaryPayloadEventFilterSensitiveLog = exports.BinaryMetadataEventFilterSensitiveLog = exports.ContentChecksumType = exports.ConflictException = exports.ConflictExceptionReason = exports.AssistantResponseMessageFilterSensitiveLog = exports.SupplementaryWebLinkFilterSensitiveLog = exports.FollowupPromptFilterSensitiveLog = exports.UserIntent = exports.AssistantResponseEventFilterSensitiveLog = exports.AppStudioStateFilterSensitiveLog = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ThrottlingExceptionReason = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = exports.AccessDeniedExceptionReason = void 0;
|
|
4
|
+
exports.GenerateTaskAssistPlanResponseFilterSensitiveLog = exports.GenerateTaskAssistPlanRequestFilterSensitiveLog = exports.SendMessageResponseFilterSensitiveLog = exports.SendMessageRequestFilterSensitiveLog = exports.Origin = exports.ExportResultArchiveResponseFilterSensitiveLog = exports.GenerateAssistantResponseResponseFilterSensitiveLog = exports.GenerateAssistantResponseRequestFilterSensitiveLog = exports.ServiceQuotaExceededException = exports.ResultArchiveStreamFilterSensitiveLog = exports.ResultArchiveStream = exports.ExportIntent = exports.ExportContext = exports.TransformationDownloadArtifactType = exports.DryRunOperationException = exports.ConversationStateFilterSensitiveLog = exports.ContextTruncationScheme = exports.ChatTriggerType = exports.ChatResponseStreamFilterSensitiveLog = exports.ChatResponseStream = exports.SupplementaryWebLinksEventFilterSensitiveLog = exports.InvalidStateReason = exports.InteractionComponentsEventFilterSensitiveLog = exports.InteractionComponentEntryFilterSensitiveLog = 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 = void 0;
|
|
5
5
|
const CodeWhispererStreamingServiceException_1 = require("./CodeWhispererStreamingServiceException");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
exports.AccessDeniedExceptionReason = {
|
|
@@ -48,6 +48,9 @@ class ResourceNotFoundException extends CodeWhispererStreamingServiceException_1
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
51
|
+
exports.ThrottlingExceptionReason = {
|
|
52
|
+
MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT",
|
|
53
|
+
};
|
|
51
54
|
class ThrottlingException extends CodeWhispererStreamingServiceException_1.CodeWhispererStreamingServiceException {
|
|
52
55
|
constructor(opts) {
|
|
53
56
|
super({
|
|
@@ -61,6 +64,7 @@ class ThrottlingException extends CodeWhispererStreamingServiceException_1.CodeW
|
|
|
61
64
|
throttling: true,
|
|
62
65
|
};
|
|
63
66
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
67
|
+
this.reason = opts.reason;
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
exports.ThrottlingException = ThrottlingException;
|
|
@@ -532,6 +536,18 @@ const SectionFilterSensitiveLog = (obj) => ({
|
|
|
532
536
|
}),
|
|
533
537
|
});
|
|
534
538
|
exports.SectionFilterSensitiveLog = SectionFilterSensitiveLog;
|
|
539
|
+
const SuggestionFilterSensitiveLog = (obj) => ({
|
|
540
|
+
...obj,
|
|
541
|
+
...(obj.value && { value: smithy_client_1.SENSITIVE_STRING
|
|
542
|
+
}),
|
|
543
|
+
});
|
|
544
|
+
exports.SuggestionFilterSensitiveLog = SuggestionFilterSensitiveLog;
|
|
545
|
+
const SuggestionsFilterSensitiveLog = (obj) => ({
|
|
546
|
+
...obj,
|
|
547
|
+
...(obj.items && { items: obj.items.map(item => (0, exports.SuggestionFilterSensitiveLog)(item))
|
|
548
|
+
}),
|
|
549
|
+
});
|
|
550
|
+
exports.SuggestionsFilterSensitiveLog = SuggestionsFilterSensitiveLog;
|
|
535
551
|
const TaskActionConfirmationFilterSensitiveLog = (obj) => ({
|
|
536
552
|
...obj,
|
|
537
553
|
...(obj.content && { content: smithy_client_1.SENSITIVE_STRING
|
|
@@ -604,6 +620,8 @@ const InteractionComponentFilterSensitiveLog = (obj) => ({
|
|
|
604
620
|
}),
|
|
605
621
|
...(obj.taskDetails && { taskDetails: (0, exports.TaskDetailsFilterSensitiveLog)(obj.taskDetails)
|
|
606
622
|
}),
|
|
623
|
+
...(obj.suggestions && { suggestions: (0, exports.SuggestionsFilterSensitiveLog)(obj.suggestions)
|
|
624
|
+
}),
|
|
607
625
|
...(obj.section && { section: (0, exports.SectionFilterSensitiveLog)(obj.section)
|
|
608
626
|
}),
|
|
609
627
|
...(obj.resource && { resource: (0, exports.ResourceFilterSensitiveLog)(obj.resource)
|
|
@@ -817,6 +835,7 @@ exports.Origin = {
|
|
|
817
835
|
MARKETING: "MARKETING",
|
|
818
836
|
MD: "MD",
|
|
819
837
|
MOBILE: "MOBILE",
|
|
838
|
+
SAGE_MAKER: "SAGE_MAKER",
|
|
820
839
|
SERVICE_INTERNAL: "SERVICE_INTERNAL",
|
|
821
840
|
UNIFIED_SEARCH: "UNIFIED_SEARCH",
|
|
822
841
|
UNKNOWN: "UNKNOWN",
|
|
@@ -252,6 +252,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
252
252
|
const data = parsedOutput.body;
|
|
253
253
|
const doc = (0, smithy_client_1.take)(data, {
|
|
254
254
|
'message': smithy_client_1.expectString,
|
|
255
|
+
'reason': smithy_client_1.expectString,
|
|
255
256
|
});
|
|
256
257
|
Object.assign(contents, doc);
|
|
257
258
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -41,6 +41,9 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
41
41
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
+
export const ThrottlingExceptionReason = {
|
|
45
|
+
MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT",
|
|
46
|
+
};
|
|
44
47
|
export class ThrottlingException extends __BaseException {
|
|
45
48
|
constructor(opts) {
|
|
46
49
|
super({
|
|
@@ -54,6 +57,7 @@ export class ThrottlingException extends __BaseException {
|
|
|
54
57
|
throttling: true,
|
|
55
58
|
};
|
|
56
59
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
60
|
+
this.reason = opts.reason;
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
export const ValidationExceptionReason = {
|
|
@@ -480,6 +484,16 @@ export const SectionFilterSensitiveLog = (obj) => ({
|
|
|
480
484
|
...(obj.action && { action: ActionFilterSensitiveLog(obj.action)
|
|
481
485
|
}),
|
|
482
486
|
});
|
|
487
|
+
export const SuggestionFilterSensitiveLog = (obj) => ({
|
|
488
|
+
...obj,
|
|
489
|
+
...(obj.value && { value: SENSITIVE_STRING
|
|
490
|
+
}),
|
|
491
|
+
});
|
|
492
|
+
export const SuggestionsFilterSensitiveLog = (obj) => ({
|
|
493
|
+
...obj,
|
|
494
|
+
...(obj.items && { items: obj.items.map(item => SuggestionFilterSensitiveLog(item))
|
|
495
|
+
}),
|
|
496
|
+
});
|
|
483
497
|
export const TaskActionConfirmationFilterSensitiveLog = (obj) => ({
|
|
484
498
|
...obj,
|
|
485
499
|
...(obj.content && { content: SENSITIVE_STRING
|
|
@@ -546,6 +560,8 @@ export const InteractionComponentFilterSensitiveLog = (obj) => ({
|
|
|
546
560
|
}),
|
|
547
561
|
...(obj.taskDetails && { taskDetails: TaskDetailsFilterSensitiveLog(obj.taskDetails)
|
|
548
562
|
}),
|
|
563
|
+
...(obj.suggestions && { suggestions: SuggestionsFilterSensitiveLog(obj.suggestions)
|
|
564
|
+
}),
|
|
549
565
|
...(obj.section && { section: SectionFilterSensitiveLog(obj.section)
|
|
550
566
|
}),
|
|
551
567
|
...(obj.resource && { resource: ResourceFilterSensitiveLog(obj.resource)
|
|
@@ -747,6 +763,7 @@ export const Origin = {
|
|
|
747
763
|
MARKETING: "MARKETING",
|
|
748
764
|
MD: "MD",
|
|
749
765
|
MOBILE: "MOBILE",
|
|
766
|
+
SAGE_MAKER: "SAGE_MAKER",
|
|
750
767
|
SERVICE_INTERNAL: "SERVICE_INTERNAL",
|
|
751
768
|
UNIFIED_SEARCH: "UNIFIED_SEARCH",
|
|
752
769
|
UNKNOWN: "UNKNOWN",
|
|
@@ -241,6 +241,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
241
241
|
const data = parsedOutput.body;
|
|
242
242
|
const doc = take(data, {
|
|
243
243
|
'message': __expectString,
|
|
244
|
+
'reason': __expectString,
|
|
244
245
|
});
|
|
245
246
|
Object.assign(contents, doc);
|
|
246
247
|
const exception = new ThrottlingException({
|
|
@@ -115,6 +115,7 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
115
115
|
* value: "STRING_VALUE",
|
|
116
116
|
* },
|
|
117
117
|
* ],
|
|
118
|
+
* timezoneOffset: Number("int"),
|
|
118
119
|
* },
|
|
119
120
|
* appStudioContext: { // AppStudioState
|
|
120
121
|
* namespace: "STRING_VALUE", // required
|
|
@@ -255,6 +256,7 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
255
256
|
* value: "STRING_VALUE",
|
|
256
257
|
* },
|
|
257
258
|
* ],
|
|
259
|
+
* timezoneOffset: Number("int"),
|
|
258
260
|
* },
|
|
259
261
|
* appStudioContext: {
|
|
260
262
|
* namespace: "STRING_VALUE", // required
|
|
@@ -27,7 +27,7 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* API to generate task
|
|
30
|
+
* API to generate task assist plan.
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -115,6 +115,7 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
115
115
|
* value: "STRING_VALUE",
|
|
116
116
|
* },
|
|
117
117
|
* ],
|
|
118
|
+
* timezoneOffset: Number("int"),
|
|
118
119
|
* },
|
|
119
120
|
* appStudioContext: { // AppStudioState
|
|
120
121
|
* namespace: "STRING_VALUE", // required
|
|
@@ -255,6 +256,7 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
255
256
|
* value: "STRING_VALUE",
|
|
256
257
|
* },
|
|
257
258
|
* ],
|
|
259
|
+
* timezoneOffset: Number("int"),
|
|
258
260
|
* },
|
|
259
261
|
* appStudioContext: {
|
|
260
262
|
* namespace: "STRING_VALUE", // required
|
package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts
CHANGED
|
@@ -116,6 +116,7 @@ declare const SendMessageCommand_base: {
|
|
|
116
116
|
* value: "STRING_VALUE",
|
|
117
117
|
* },
|
|
118
118
|
* ],
|
|
119
|
+
* timezoneOffset: Number("int"),
|
|
119
120
|
* },
|
|
120
121
|
* appStudioContext: { // AppStudioState
|
|
121
122
|
* namespace: "STRING_VALUE", // required
|
|
@@ -256,6 +257,7 @@ declare const SendMessageCommand_base: {
|
|
|
256
257
|
* value: "STRING_VALUE",
|
|
257
258
|
* },
|
|
258
259
|
* ],
|
|
260
|
+
* timezoneOffset: Number("int"),
|
|
259
261
|
* },
|
|
260
262
|
* appStudioContext: {
|
|
261
263
|
* namespace: "STRING_VALUE", // required
|
|
@@ -53,6 +53,17 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
53
53
|
*/
|
|
54
54
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
* @enum
|
|
59
|
+
*/
|
|
60
|
+
export declare const ThrottlingExceptionReason: {
|
|
61
|
+
readonly MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT";
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
export type ThrottlingExceptionReason = typeof ThrottlingExceptionReason[keyof typeof ThrottlingExceptionReason];
|
|
56
67
|
/**
|
|
57
68
|
* This exception is thrown when request was denied due to request throttling.
|
|
58
69
|
* @public
|
|
@@ -63,6 +74,11 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
63
74
|
$retryable: {
|
|
64
75
|
throttling: boolean;
|
|
65
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* Reason for ThrottlingException
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
reason?: ThrottlingExceptionReason;
|
|
66
82
|
/**
|
|
67
83
|
* @internal
|
|
68
84
|
*/
|
|
@@ -772,6 +788,11 @@ export interface EnvState {
|
|
|
772
788
|
* @public
|
|
773
789
|
*/
|
|
774
790
|
environmentVariables?: (EnvironmentVariable)[];
|
|
791
|
+
/**
|
|
792
|
+
* Local timezone offset of the client. For more information, see documentation https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset
|
|
793
|
+
* @public
|
|
794
|
+
*/
|
|
795
|
+
timezoneOffset?: number;
|
|
775
796
|
}
|
|
776
797
|
/**
|
|
777
798
|
* @internal
|
|
@@ -1481,6 +1502,10 @@ export declare const SectionFilterSensitiveLog: (obj: Section) => any;
|
|
|
1481
1502
|
export interface Suggestion {
|
|
1482
1503
|
value: string | undefined;
|
|
1483
1504
|
}
|
|
1505
|
+
/**
|
|
1506
|
+
* @internal
|
|
1507
|
+
*/
|
|
1508
|
+
export declare const SuggestionFilterSensitiveLog: (obj: Suggestion) => any;
|
|
1484
1509
|
/**
|
|
1485
1510
|
* Structure containing a list of suggestions.
|
|
1486
1511
|
* @public
|
|
@@ -1488,6 +1513,10 @@ export interface Suggestion {
|
|
|
1488
1513
|
export interface Suggestions {
|
|
1489
1514
|
items: (Suggestion)[] | undefined;
|
|
1490
1515
|
}
|
|
1516
|
+
/**
|
|
1517
|
+
* @internal
|
|
1518
|
+
*/
|
|
1519
|
+
export declare const SuggestionsFilterSensitiveLog: (obj: Suggestions) => any;
|
|
1491
1520
|
/**
|
|
1492
1521
|
* Structure representing a confirmation message related to a task action.
|
|
1493
1522
|
* @public
|
|
@@ -2436,6 +2465,10 @@ export declare const Origin: {
|
|
|
2436
2465
|
* AWS Mobile Application (ACMA)
|
|
2437
2466
|
*/
|
|
2438
2467
|
readonly MOBILE: "MOBILE";
|
|
2468
|
+
/**
|
|
2469
|
+
* Amazon SageMaker's Rome Chat.
|
|
2470
|
+
*/
|
|
2471
|
+
readonly SAGE_MAKER: "SAGE_MAKER";
|
|
2439
2472
|
/**
|
|
2440
2473
|
* Internal Service Traffic (Integ Tests, Canaries, etc.). This is the default when no Origin header present in request.
|
|
2441
2474
|
*/
|
|
@@ -1,4 +1,45 @@
|
|
|
1
|
+
import { HttpBearerAuthSigner } from "@smithy/core";
|
|
2
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
3
|
+
import { IdentityProviderConfig } from "@smithy/types";
|
|
4
|
+
import { CodeWhispererStreamingClientConfig } from "./CodeWhispererStreamingClient";
|
|
1
5
|
/**
|
|
2
6
|
* @internal
|
|
3
7
|
*/
|
|
4
|
-
export declare const getRuntimeConfig:
|
|
8
|
+
export declare const getRuntimeConfig: (config: CodeWhispererStreamingClientConfig) => {
|
|
9
|
+
runtime: string;
|
|
10
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
11
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
12
|
+
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
13
|
+
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
14
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | {
|
|
15
|
+
schemeId: string;
|
|
16
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity>;
|
|
17
|
+
signer: HttpBearerAuthSigner;
|
|
18
|
+
}[];
|
|
19
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
20
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
21
|
+
requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
|
|
22
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
24
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
25
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
26
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
27
|
+
apiVersion: string;
|
|
28
|
+
cacheMiddleware?: boolean | undefined;
|
|
29
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
30
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
31
|
+
base64Encoder: (_input: string | Uint8Array) => string;
|
|
32
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
33
|
+
utf8Encoder: (input: string | Uint8Array) => string;
|
|
34
|
+
disableHostPrefix: boolean;
|
|
35
|
+
serviceId: string;
|
|
36
|
+
regionInfoProvider: import("@smithy/types").RegionInfoProvider;
|
|
37
|
+
logger: import("@smithy/types").Logger;
|
|
38
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
39
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
40
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
41
|
+
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | undefined;
|
|
42
|
+
tls?: boolean | undefined;
|
|
43
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CodeWhispererStreamingHttpAuthSchemeProvider;
|
|
44
|
+
token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider | undefined;
|
|
45
|
+
};
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@smithy/eventstream-serde-node": "^3.0.8",
|
|
37
37
|
"@smithy/fetch-http-handler": "^3.2.8",
|
|
38
38
|
"@smithy/hash-node": "^3.0.6",
|
|
39
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
39
|
+
"@smithy/invalid-dependency": "^3.0.6",
|
|
40
40
|
"@smithy/middleware-content-length": "^3.0.8",
|
|
41
41
|
"@smithy/middleware-retry": "^3.0.21",
|
|
42
42
|
"@smithy/middleware-serde": "^3.0.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"downlevel-dts": "0.10.1",
|
|
64
64
|
"rimraf": "^3.0.0",
|
|
65
65
|
"typescript": "~4.9.5",
|
|
66
|
-
"@types/node": "^
|
|
66
|
+
"@types/node": "^16.18.96",
|
|
67
67
|
"@types/uuid": "^9.0.4"
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ServiceConfigurationOptions } from 'aws-sdk/lib/service';
|
|
2
|
+
import CodeWhispererClient = require('./codewhisperersigv4client');
|
|
3
|
+
export type CodeWhispererSigv4ClientConfigurationOptions = ServiceConfigurationOptions;
|
|
4
|
+
export declare function createCodeWhispererSigv4Client(options: ServiceConfigurationOptions): CodeWhispererClient;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AWSError } from 'aws-sdk';
|
|
2
|
+
import { ServiceConfigurationOptions } from 'aws-sdk/lib/service';
|
|
3
|
+
import CodeWhispererClient = require('./codewhispererbearertokenclient');
|
|
4
|
+
interface RequestExtras {
|
|
5
|
+
readonly service: AWS.Service;
|
|
6
|
+
readonly operation: string;
|
|
7
|
+
readonly params?: any;
|
|
8
|
+
}
|
|
9
|
+
type RequestListener = (request: AWS.Request<any, AWSError> & RequestExtras) => void;
|
|
10
|
+
export interface CodeWhispererTokenClientConfigurationOptions extends ServiceConfigurationOptions {
|
|
11
|
+
onRequestSetup?: RequestListener | RequestListener[];
|
|
12
|
+
}
|
|
13
|
+
export declare function createCodeWhispererTokenClient(options: CodeWhispererTokenClientConfigurationOptions): CodeWhispererClient;
|
|
14
|
+
export {};
|
package/out/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './language-server/codeWhispererSecurityScanServer';
|
|
2
|
+
export * from './language-server/codeWhispererServer';
|
|
3
|
+
export * from './language-server/qChatServer';
|
|
4
|
+
export * from './language-server/proxy-server';
|
|
5
|
+
export * from './language-server/netTransformServer';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FileContext } from '../codeWhispererService';
|
|
2
|
+
export type CodewhispererTriggerType = 'AutoTrigger' | 'OnDemand';
|
|
3
|
+
export type CodewhispererAutomatedTriggerType = 'SpecialCharacters' | 'Enter' | 'Classifier';
|
|
4
|
+
/**
|
|
5
|
+
* Determine the trigger type based on the file context. Currently supports special cases for Special Characters and Enter keys,
|
|
6
|
+
* as determined by the File Context. For regular typing or undetermined triggers, the Classifier trigger type is used.
|
|
7
|
+
*
|
|
8
|
+
* This is a helper function that can be used since in LSP we don't have the actual keypress events. So we don't know
|
|
9
|
+
* (exactly) whether a position was reached through for instance inserting a new line or backspacing the next line.
|
|
10
|
+
*
|
|
11
|
+
* @param fileContext The file with left and right context based on the invocation position
|
|
12
|
+
* @returns The TriggerType
|
|
13
|
+
*/
|
|
14
|
+
export declare const triggerType: (fileContext: FileContext) => CodewhispererAutomatedTriggerType;
|
|
15
|
+
/**
|
|
16
|
+
* Parameters to the auto trigger. Contains all information to make a decision.
|
|
17
|
+
*/
|
|
18
|
+
type AutoTriggerParams = {
|
|
19
|
+
fileContext: FileContext;
|
|
20
|
+
char: string;
|
|
21
|
+
triggerType: string;
|
|
22
|
+
os: string;
|
|
23
|
+
previousDecision: string;
|
|
24
|
+
ide: string;
|
|
25
|
+
lineNum: number;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Auto Trigger to determine whether a keystroke or edit should trigger a recommendation invocation.
|
|
29
|
+
* It uses information about the file, the position, the last entered character, the environment,
|
|
30
|
+
* and previous recommendation decisions from the user to determine whether a new recommendation
|
|
31
|
+
* should be shown. The auto-trigger is not stateful and does not keep track of past invocations.
|
|
32
|
+
*/
|
|
33
|
+
export declare const autoTrigger: ({ fileContext, char, triggerType, os, previousDecision, ide, lineNum, }: AutoTriggerParams) => {
|
|
34
|
+
shouldTrigger: boolean;
|
|
35
|
+
classifierResult: number;
|
|
36
|
+
classifierThreshold: number;
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -95,7 +95,7 @@ class ChatController {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
metric.setDimension('codewhispererCustomizationArn', requestInput.conversationState?.customizationArn);
|
|
98
|
-
this.#telemetryController.emitAddMessageMetric(params.tabId, metric.metric);
|
|
98
|
+
await this.#telemetryController.emitAddMessageMetric(params.tabId, metric.metric);
|
|
99
99
|
this.#telemetryController.updateTriggerInfo(params.tabId, {
|
|
100
100
|
lastMessageTrigger: {
|
|
101
101
|
...triggerContext,
|
|
@@ -271,7 +271,7 @@ class ChatController {
|
|
|
271
271
|
// this is the only way we can detect a follow up action
|
|
272
272
|
// we can reuse previous trigger information
|
|
273
273
|
if (lastMessageTrigger?.followUpActions?.has(params.prompt?.prompt ?? '')) {
|
|
274
|
-
this.#telemetryController.emitInteractWithMessageMetric(params.tabId, {
|
|
274
|
+
await this.#telemetryController.emitInteractWithMessageMetric(params.tabId, {
|
|
275
275
|
cwsprChatMessageId: lastMessageTrigger.messageId,
|
|
276
276
|
cwsprChatInteractionType: types_1.ChatInteractionType.ClickFollowUp,
|
|
277
277
|
});
|
|
@@ -301,7 +301,7 @@ class ChatController {
|
|
|
301
301
|
return result;
|
|
302
302
|
}
|
|
303
303
|
if (!(0, utils_2.isNullish)(partialResultToken)) {
|
|
304
|
-
this.#features.lsp.sendProgress(protocol_1.chatRequestType, partialResultToken, result.data.chatResult);
|
|
304
|
+
await this.#features.lsp.sendProgress(protocol_1.chatRequestType, partialResultToken, result.data.chatResult);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
metric.mergeWith({
|