@aws/lsp-codewhisperer 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/out/client/sigv4/service.json +1 -1
  3. package/out/client/token/bearer-token-service.json +1 -1
  4. package/out/index.d.ts +1 -0
  5. package/out/index.js +1 -0
  6. package/out/index.js.map +1 -1
  7. package/out/language-server/chat/chatController.d.ts +25 -0
  8. package/out/language-server/chat/chatController.js +117 -0
  9. package/out/language-server/chat/chatController.js.map +1 -0
  10. package/out/language-server/chat/chatController.test.d.ts +1 -0
  11. package/out/language-server/chat/chatController.test.js +240 -0
  12. package/out/language-server/chat/chatController.test.js.map +1 -0
  13. package/out/language-server/chat/chatEventParser.d.ts +24 -0
  14. package/out/language-server/chat/chatEventParser.js +84 -0
  15. package/out/language-server/chat/chatEventParser.js.map +1 -0
  16. package/out/language-server/chat/chatEventParser.test.d.ts +1 -0
  17. package/out/language-server/chat/chatEventParser.test.js +189 -0
  18. package/out/language-server/chat/chatEventParser.test.js.map +1 -0
  19. package/out/language-server/chat/chatSessionManagementService.d.ts +16 -0
  20. package/out/language-server/chat/chatSessionManagementService.js +92 -0
  21. package/out/language-server/chat/chatSessionManagementService.js.map +1 -0
  22. package/out/language-server/chat/chatSessionManagementService.test.d.ts +1 -0
  23. package/out/language-server/chat/chatSessionManagementService.test.js +73 -0
  24. package/out/language-server/chat/chatSessionManagementService.test.js.map +1 -0
  25. package/out/language-server/chat/chatSessionService.d.ts +13 -0
  26. package/out/language-server/chat/chatSessionService.js +62 -0
  27. package/out/language-server/chat/chatSessionService.js.map +1 -0
  28. package/out/language-server/chat/chatSessionService.test.d.ts +1 -0
  29. package/out/language-server/chat/chatSessionService.test.js +79 -0
  30. package/out/language-server/chat/chatSessionService.test.js.map +1 -0
  31. package/out/language-server/chat/contexts/documentContext.d.ts +17 -0
  32. package/out/language-server/chat/contexts/documentContext.js +59 -0
  33. package/out/language-server/chat/contexts/documentContext.js.map +1 -0
  34. package/out/language-server/chat/contexts/documentContext.test.d.ts +1 -0
  35. package/out/language-server/chat/contexts/documentContext.test.js +147 -0
  36. package/out/language-server/chat/contexts/documentContext.test.js.map +1 -0
  37. package/out/language-server/chat/contexts/utils.d.ts +10 -0
  38. package/out/language-server/chat/contexts/utils.js +71 -0
  39. package/out/language-server/chat/contexts/utils.js.map +1 -0
  40. package/out/language-server/chat/contexts/utils.test.d.ts +1 -0
  41. package/out/language-server/chat/contexts/utils.test.js +72 -0
  42. package/out/language-server/chat/contexts/utils.test.js.map +1 -0
  43. package/out/language-server/chat/utils.d.ts +4 -0
  44. package/out/language-server/chat/utils.js +34 -0
  45. package/out/language-server/chat/utils.js.map +1 -0
  46. package/out/language-server/codeWhispererSecurityScanServer.d.ts +1 -1
  47. package/out/language-server/codeWhispererSecurityScanServer.js +41 -26
  48. package/out/language-server/codeWhispererSecurityScanServer.js.map +1 -1
  49. package/out/language-server/codeWhispererServer.d.ts +1 -1
  50. package/out/language-server/codeWhispererServer.js +4 -4
  51. package/out/language-server/codeWhispererServer.js.map +1 -1
  52. package/out/language-server/languageDetection.d.ts +9 -2
  53. package/out/language-server/languageDetection.js +84 -20
  54. package/out/language-server/languageDetection.js.map +1 -1
  55. package/out/language-server/languageDetection.test.d.ts +1 -0
  56. package/out/language-server/languageDetection.test.js +31 -0
  57. package/out/language-server/languageDetection.test.js.map +1 -0
  58. package/out/language-server/proxy-server.d.ts +1 -0
  59. package/out/language-server/proxy-server.js +35 -1
  60. package/out/language-server/proxy-server.js.map +1 -1
  61. package/out/language-server/qChatServer.d.ts +3 -0
  62. package/out/language-server/qChatServer.js +31 -0
  63. package/out/language-server/qChatServer.js.map +1 -0
  64. package/out/language-server/qChatServer.test.d.ts +1 -0
  65. package/out/language-server/qChatServer.test.js +51 -0
  66. package/out/language-server/qChatServer.test.js.map +1 -0
  67. package/out/language-server/securityScan/securityScanDiagnosticsProvider.d.ts +2 -3
  68. package/out/language-server/securityScan/securityScanDiagnosticsProvider.js +5 -23
  69. package/out/language-server/securityScan/securityScanDiagnosticsProvider.js.map +1 -1
  70. package/out/language-server/securityScan/types.d.ts +8 -6
  71. package/out/language-server/testUtils.d.ts +1 -0
  72. package/out/language-server/testUtils.js +17 -1
  73. package/out/language-server/testUtils.js.map +1 -1
  74. package/out/language-server/types.d.ts +13 -0
  75. package/out/language-server/types.js +3 -0
  76. package/out/language-server/types.js.map +1 -0
  77. package/out/language-server/utils.d.ts +3 -0
  78. package/out/language-server/utils.js +19 -1
  79. package/out/language-server/utils.js.map +1 -1
  80. package/out/language-server/utils.test.d.ts +1 -0
  81. package/out/language-server/utils.test.js +33 -0
  82. package/out/language-server/utils.test.js.map +1 -0
  83. package/package.json +13 -4
  84. package/src.gen/@amzn/codewhisperer-streaming/LICENSE +201 -0
  85. package/src.gen/@amzn/codewhisperer-streaming/README.md +464 -0
  86. package/src.gen/@amzn/codewhisperer-streaming/api-extractor.json +4 -0
  87. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreaming.js +17 -0
  88. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreamingClient.js +42 -0
  89. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/commands/ExportResultArchiveCommand.js +42 -0
  90. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateAssistantResponseCommand.js +42 -0
  91. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateTaskAssistPlanCommand.js +42 -0
  92. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/commands/index.js +6 -0
  93. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/endpoints.js +165 -0
  94. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/extensionConfiguration.js +2 -0
  95. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/index.js +10 -0
  96. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/models/CodeWhispererStreamingServiceException.js +12 -0
  97. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/models/index.js +4 -0
  98. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +361 -0
  99. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +458 -0
  100. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.browser.js +38 -0
  101. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.js +46 -0
  102. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.native.js +15 -0
  103. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.shared.js +22 -0
  104. package/src.gen/@amzn/codewhisperer-streaming/dist-cjs/runtimeExtensions.js +22 -0
  105. package/src.gen/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreaming.js +13 -0
  106. package/src.gen/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreamingClient.js +38 -0
  107. package/src.gen/@amzn/codewhisperer-streaming/dist-es/commands/ExportResultArchiveCommand.js +38 -0
  108. package/src.gen/@amzn/codewhisperer-streaming/dist-es/commands/GenerateAssistantResponseCommand.js +38 -0
  109. package/src.gen/@amzn/codewhisperer-streaming/dist-es/commands/GenerateTaskAssistPlanCommand.js +38 -0
  110. package/src.gen/@amzn/codewhisperer-streaming/dist-es/commands/index.js +3 -0
  111. package/src.gen/@amzn/codewhisperer-streaming/dist-es/endpoints.js +161 -0
  112. package/src.gen/@amzn/codewhisperer-streaming/dist-es/extensionConfiguration.js +1 -0
  113. package/src.gen/@amzn/codewhisperer-streaming/dist-es/index.js +5 -0
  114. package/src.gen/@amzn/codewhisperer-streaming/dist-es/models/CodeWhispererStreamingServiceException.js +8 -0
  115. package/src.gen/@amzn/codewhisperer-streaming/dist-es/models/index.js +1 -0
  116. package/src.gen/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +328 -0
  117. package/src.gen/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +449 -0
  118. package/src.gen/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.browser.js +33 -0
  119. package/src.gen/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.js +41 -0
  120. package/src.gen/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.native.js +11 -0
  121. package/src.gen/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.shared.js +18 -0
  122. package/src.gen/@amzn/codewhisperer-streaming/dist-es/runtimeExtensions.js +18 -0
  123. package/src.gen/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreaming.d.ts +30 -0
  124. package/src.gen/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +169 -0
  125. package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +103 -0
  126. package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +294 -0
  127. package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +304 -0
  128. package/src.gen/@amzn/codewhisperer-streaming/dist-types/commands/index.d.ts +3 -0
  129. package/src.gen/@amzn/codewhisperer-streaming/dist-types/endpoints.d.ts +2 -0
  130. package/src.gen/@amzn/codewhisperer-streaming/dist-types/extensionConfiguration.d.ts +8 -0
  131. package/src.gen/@amzn/codewhisperer-streaming/dist-types/index.d.ts +5 -0
  132. package/src.gen/@amzn/codewhisperer-streaming/dist-types/models/CodeWhispererStreamingServiceException.d.ts +13 -0
  133. package/src.gen/@amzn/codewhisperer-streaming/dist-types/models/index.d.ts +1 -0
  134. package/src.gen/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +1173 -0
  135. package/src.gen/@amzn/codewhisperer-streaming/dist-types/protocols/Aws_restJson1.d.ts +29 -0
  136. package/src.gen/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.browser.d.ts +39 -0
  137. package/src.gen/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.d.ts +39 -0
  138. package/src.gen/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.native.d.ts +38 -0
  139. package/src.gen/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.shared.d.ts +17 -0
  140. package/src.gen/@amzn/codewhisperer-streaming/dist-types/runtimeExtensions.d.ts +17 -0
  141. package/src.gen/@amzn/codewhisperer-streaming/package.json +87 -0
  142. package/src.gen/@amzn/codewhisperer-streaming/src/CodeWhispererStreaming.ts +84 -0
  143. package/src.gen/@amzn/codewhisperer-streaming/src/CodeWhispererStreamingClient.ts +304 -0
  144. package/src.gen/@amzn/codewhisperer-streaming/src/commands/ExportResultArchiveCommand.ts +177 -0
  145. package/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateAssistantResponseCommand.ts +369 -0
  146. package/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateTaskAssistPlanCommand.ts +379 -0
  147. package/src.gen/@amzn/codewhisperer-streaming/src/commands/index.ts +4 -0
  148. package/src.gen/@amzn/codewhisperer-streaming/src/endpoints.ts +170 -0
  149. package/src.gen/@amzn/codewhisperer-streaming/src/extensionConfiguration.ts +12 -0
  150. package/src.gen/@amzn/codewhisperer-streaming/src/index.ts +8 -0
  151. package/src.gen/@amzn/codewhisperer-streaming/src/models/CodeWhispererStreamingServiceException.ts +22 -0
  152. package/src.gen/@amzn/codewhisperer-streaming/src/models/index.ts +2 -0
  153. package/src.gen/@amzn/codewhisperer-streaming/src/models/models_0.ts +1518 -0
  154. package/src.gen/@amzn/codewhisperer-streaming/src/protocols/Aws_restJson1.ts +740 -0
  155. package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.browser.ts +42 -0
  156. package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.native.ts +17 -0
  157. package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.shared.ts +24 -0
  158. package/src.gen/@amzn/codewhisperer-streaming/src/runtimeConfig.ts +55 -0
  159. package/src.gen/@amzn/codewhisperer-streaming/src/runtimeExtensions.ts +44 -0
  160. package/src.gen/@amzn/codewhisperer-streaming/typedoc.json +5 -0
@@ -0,0 +1,464 @@
1
+ <!-- generated file, do not edit directly -->
2
+
3
+ # @amzn/codewhisperer-streaming
4
+
5
+ ## Description
6
+
7
+ AWS SDK for JavaScript CodeWhispererStreaming Client for Node.js, Browser and React Native.
8
+
9
+ ## Installing
10
+ To install the this package, simply type add or install @amzn/codewhisperer-streaming
11
+ using your favorite package manager:
12
+ - `npm install @amzn/codewhisperer-streaming`
13
+ - `yarn add @amzn/codewhisperer-streaming`
14
+ - `pnpm add @amzn/codewhisperer-streaming`
15
+
16
+ ## Getting Started
17
+
18
+ ### Import
19
+
20
+ The AWS SDK is modulized by clients and commands.
21
+ To send a request, you only need to import the `CodeWhispererStreamingClient` and
22
+ the commands you need, for example `ExportResultArchiveCommand`:
23
+
24
+ ```js
25
+ // ES5 example
26
+ const { CodeWhispererStreamingClient, ExportResultArchiveCommand } = require("@amzn/codewhisperer-streaming");
27
+ ```
28
+
29
+ ```ts
30
+ // ES6+ example
31
+ import { CodeWhispererStreamingClient, ExportResultArchiveCommand } from "@amzn/codewhisperer-streaming";
32
+ ```
33
+
34
+ ### Usage
35
+
36
+ To send a request, you:
37
+
38
+ - Initiate client with configuration (e.g. credentials, region).
39
+ - Initiate command with input parameters.
40
+ - Call `send` operation on client with command object as input.
41
+ - If you are using a custom http handler, you may call `destroy()` to close open connections.
42
+
43
+ ```js
44
+ // a client can be shared by different commands.
45
+ const client = new CodeWhispererStreamingClient({ region: "REGION" });
46
+
47
+ const params = { /** input parameters */ };
48
+ const command = new ExportResultArchiveCommand(params);
49
+ ```
50
+
51
+ #### Async/await
52
+
53
+ We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
54
+ operator to wait for the promise returned by send operation as follows:
55
+
56
+ ```js
57
+ // async/await.
58
+ try {
59
+ const data = await client.send(command);
60
+ // process data.
61
+ } catch (error) {
62
+ // error handling.
63
+ } finally {
64
+ // finally.
65
+ }
66
+ ```
67
+
68
+ Async-await is clean, concise, intuitive, easy to debug and has better error handling
69
+ as compared to using Promise chains or callbacks.
70
+
71
+ #### Promises
72
+
73
+ You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
74
+ to execute send operation.
75
+
76
+ ```js
77
+ client.send(command).then(
78
+ (data) => {
79
+ // process data.
80
+ },
81
+ (error) => {
82
+ // error handling.
83
+ }
84
+ );
85
+ ```
86
+
87
+ Promises can also be called using `.catch()` and `.finally()` as follows:
88
+
89
+ ```js
90
+ client
91
+ .send(command)
92
+ .then((data) => {
93
+ // process data.
94
+ })
95
+ .catch((error) => {
96
+ // error handling.
97
+ })
98
+ .finally(() => {
99
+ // finally.
100
+ });
101
+ ```
102
+
103
+ #### Callbacks
104
+
105
+ We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
106
+ but they are supported by the send operation.
107
+
108
+ ```js
109
+ // callbacks.
110
+ client.send(command, (err, data) => {
111
+ // process err and data.
112
+ });
113
+ ```
114
+
115
+ #### v2 compatible style
116
+
117
+ The client can also send requests using v2 compatible style.
118
+ However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post
119
+ on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)
120
+
121
+ ```ts
122
+ import * as AWS from "@amzn/codewhisperer-streaming";
123
+ const client = new AWS.CodeWhispererStreaming({ region: "REGION" });
124
+
125
+ // async/await.
126
+ try {
127
+ const data = await client.exportResultArchive(params);
128
+ // process data.
129
+ } catch (error) {
130
+ // error handling.
131
+ }
132
+
133
+ // Promises.
134
+ client
135
+ .exportResultArchive(params)
136
+ .then((data) => {
137
+ // process data.
138
+ })
139
+ .catch((error) => {
140
+ // error handling.
141
+ });
142
+
143
+ // callbacks.
144
+ client.exportResultArchive(params, (err, data) => {
145
+ // process err and data.
146
+ });
147
+ ```
148
+
149
+ ### Troubleshooting
150
+
151
+ When the service returns an exception, the error will include the exception information,
152
+ as well as response metadata (e.g. request id).
153
+
154
+ ```js
155
+ try {
156
+ const data = await client.send(command);
157
+ // process data.
158
+ } catch (error) {
159
+ const { requestId, cfId, extendedRequestId } = error.$$metadata;
160
+ console.log({ requestId, cfId, extendedRequestId });
161
+ /**
162
+ * The keys within exceptions are also parsed.
163
+ * You can access them by specifying exception names:
164
+ * if (error.name === 'SomeServiceException') {
165
+ * const value = error.specialKeyInException;
166
+ * }
167
+ */
168
+ }
169
+ ```
170
+
171
+ ## Getting Help
172
+
173
+ Please use these community resources for getting help.
174
+ We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
175
+
176
+ - Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
177
+ or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
178
+ - Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
179
+ on AWS Developer Blog.
180
+ - Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.
181
+ - Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3).
182
+ - If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose).
183
+
184
+ To test your universal JavaScript code in Node.js, browser and react-native environments,
185
+ visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).
186
+
187
+ ## Contributing
188
+
189
+ This client code is generated automatically. Any modifications will be overwritten the next time the `@amzn/codewhisperer-streaming` package is updated.
190
+ To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).
191
+
192
+ ## License
193
+
194
+ This SDK is distributed under the
195
+ [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
196
+ see LICENSE for more information.
197
+ ## Client Commands (Operations List)
198
+
199
+ <details>
200
+ <summary>
201
+ AllowVendedLogDeliveryForResource
202
+ </summary>
203
+
204
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/allowvendedlogdeliveryforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/allowvendedlogdeliveryforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/allowvendedlogdeliveryforresourcecommandoutput.html)
205
+ </details>
206
+ <details>
207
+ <summary>
208
+ AssociateCustomizationPermission
209
+ </summary>
210
+
211
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/associatecustomizationpermissioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/associatecustomizationpermissioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/associatecustomizationpermissioncommandoutput.html)
212
+ </details>
213
+ <details>
214
+ <summary>
215
+ CreateCustomization
216
+ </summary>
217
+
218
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/createcustomizationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/createcustomizationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/createcustomizationcommandoutput.html)
219
+ </details>
220
+ <details>
221
+ <summary>
222
+ CreateProfile
223
+ </summary>
224
+
225
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/createprofilecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/createprofilecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/createprofilecommandoutput.html)
226
+ </details>
227
+ <details>
228
+ <summary>
229
+ DeleteCustomization
230
+ </summary>
231
+
232
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/deletecustomizationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/deletecustomizationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/deletecustomizationcommandoutput.html)
233
+ </details>
234
+ <details>
235
+ <summary>
236
+ DeleteProfile
237
+ </summary>
238
+
239
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/deleteprofilecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/deleteprofilecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/deleteprofilecommandoutput.html)
240
+ </details>
241
+ <details>
242
+ <summary>
243
+ DisassociateCustomizationPermission
244
+ </summary>
245
+
246
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/disassociatecustomizationpermissioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/disassociatecustomizationpermissioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/disassociatecustomizationpermissioncommandoutput.html)
247
+ </details>
248
+ <details>
249
+ <summary>
250
+ GenerateRecommendations
251
+ </summary>
252
+
253
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/generaterecommendationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/generaterecommendationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/generaterecommendationscommandoutput.html)
254
+ </details>
255
+ <details>
256
+ <summary>
257
+ GetCustomization
258
+ </summary>
259
+
260
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/getcustomizationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/getcustomizationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/getcustomizationcommandoutput.html)
261
+ </details>
262
+ <details>
263
+ <summary>
264
+ ListCustomizationPermissions
265
+ </summary>
266
+
267
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/listcustomizationpermissionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listcustomizationpermissionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listcustomizationpermissionscommandoutput.html)
268
+ </details>
269
+ <details>
270
+ <summary>
271
+ ListCustomizations
272
+ </summary>
273
+
274
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/listcustomizationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listcustomizationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listcustomizationscommandoutput.html)
275
+ </details>
276
+ <details>
277
+ <summary>
278
+ ListCustomizationVersions
279
+ </summary>
280
+
281
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/listcustomizationversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listcustomizationversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listcustomizationversionscommandoutput.html)
282
+ </details>
283
+ <details>
284
+ <summary>
285
+ ListProfiles
286
+ </summary>
287
+
288
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/listprofilescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listprofilescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listprofilescommandoutput.html)
289
+ </details>
290
+ <details>
291
+ <summary>
292
+ ListTagsForResource
293
+ </summary>
294
+
295
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/listtagsforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listtagsforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listtagsforresourcecommandoutput.html)
296
+ </details>
297
+ <details>
298
+ <summary>
299
+ TagResource
300
+ </summary>
301
+
302
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/tagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/tagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/tagresourcecommandoutput.html)
303
+ </details>
304
+ <details>
305
+ <summary>
306
+ UntagResource
307
+ </summary>
308
+
309
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/untagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/untagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/untagresourcecommandoutput.html)
310
+ </details>
311
+ <details>
312
+ <summary>
313
+ UpdateCustomization
314
+ </summary>
315
+
316
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/updatecustomizationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/updatecustomizationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/updatecustomizationcommandoutput.html)
317
+ </details>
318
+ <details>
319
+ <summary>
320
+ UpdateProfile
321
+ </summary>
322
+
323
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/updateprofilecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/updateprofilecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/updateprofilecommandoutput.html)
324
+ </details>
325
+ <details>
326
+ <summary>
327
+ CreateArtifactUploadUrl
328
+ </summary>
329
+
330
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/createartifactuploadurlcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/createartifactuploadurlcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/createartifactuploadurlcommandoutput.html)
331
+ </details>
332
+ <details>
333
+ <summary>
334
+ CreateTaskAssistConversation
335
+ </summary>
336
+
337
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/createtaskassistconversationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/createtaskassistconversationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/createtaskassistconversationcommandoutput.html)
338
+ </details>
339
+ <details>
340
+ <summary>
341
+ CreateUploadUrl
342
+ </summary>
343
+
344
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/createuploadurlcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/createuploadurlcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/createuploadurlcommandoutput.html)
345
+ </details>
346
+ <details>
347
+ <summary>
348
+ DeleteTaskAssistConversation
349
+ </summary>
350
+
351
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/deletetaskassistconversationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/deletetaskassistconversationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/deletetaskassistconversationcommandoutput.html)
352
+ </details>
353
+ <details>
354
+ <summary>
355
+ GenerateCompletions
356
+ </summary>
357
+
358
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/generatecompletionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/generatecompletionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/generatecompletionscommandoutput.html)
359
+ </details>
360
+ <details>
361
+ <summary>
362
+ GetCodeAnalysis
363
+ </summary>
364
+
365
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/getcodeanalysiscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/getcodeanalysiscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/getcodeanalysiscommandoutput.html)
366
+ </details>
367
+ <details>
368
+ <summary>
369
+ GetTaskAssistCodeGeneration
370
+ </summary>
371
+
372
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/gettaskassistcodegenerationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/gettaskassistcodegenerationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/gettaskassistcodegenerationcommandoutput.html)
373
+ </details>
374
+ <details>
375
+ <summary>
376
+ GetTransformation
377
+ </summary>
378
+
379
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/gettransformationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/gettransformationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/gettransformationcommandoutput.html)
380
+ </details>
381
+ <details>
382
+ <summary>
383
+ GetTransformationPlan
384
+ </summary>
385
+
386
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/gettransformationplancommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/gettransformationplancommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/gettransformationplancommandoutput.html)
387
+ </details>
388
+ <details>
389
+ <summary>
390
+ ListAvailableCustomizations
391
+ </summary>
392
+
393
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/listavailablecustomizationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listavailablecustomizationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listavailablecustomizationscommandoutput.html)
394
+ </details>
395
+ <details>
396
+ <summary>
397
+ ListCodeAnalysisFindings
398
+ </summary>
399
+
400
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/listcodeanalysisfindingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listcodeanalysisfindingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listcodeanalysisfindingscommandoutput.html)
401
+ </details>
402
+ <details>
403
+ <summary>
404
+ ListFeatureEvaluations
405
+ </summary>
406
+
407
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/listfeatureevaluationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listfeatureevaluationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/listfeatureevaluationscommandoutput.html)
408
+ </details>
409
+ <details>
410
+ <summary>
411
+ SendTelemetryEvent
412
+ </summary>
413
+
414
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/sendtelemetryeventcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/sendtelemetryeventcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/sendtelemetryeventcommandoutput.html)
415
+ </details>
416
+ <details>
417
+ <summary>
418
+ StartCodeAnalysis
419
+ </summary>
420
+
421
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/startcodeanalysiscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/startcodeanalysiscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/startcodeanalysiscommandoutput.html)
422
+ </details>
423
+ <details>
424
+ <summary>
425
+ StartTaskAssistCodeGeneration
426
+ </summary>
427
+
428
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/starttaskassistcodegenerationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/starttaskassistcodegenerationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/starttaskassistcodegenerationcommandoutput.html)
429
+ </details>
430
+ <details>
431
+ <summary>
432
+ StartTransformation
433
+ </summary>
434
+
435
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/starttransformationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/starttransformationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/starttransformationcommandoutput.html)
436
+ </details>
437
+ <details>
438
+ <summary>
439
+ StopTransformation
440
+ </summary>
441
+
442
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/stoptransformationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/stoptransformationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/stoptransformationcommandoutput.html)
443
+ </details>
444
+ <details>
445
+ <summary>
446
+ ExportResultArchive
447
+ </summary>
448
+
449
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/exportresultarchivecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/exportresultarchivecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/exportresultarchivecommandoutput.html)
450
+ </details>
451
+ <details>
452
+ <summary>
453
+ GenerateAssistantResponse
454
+ </summary>
455
+
456
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/generateassistantresponsecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/generateassistantresponsecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/generateassistantresponsecommandoutput.html)
457
+ </details>
458
+ <details>
459
+ <summary>
460
+ GenerateTaskAssistPlan
461
+ </summary>
462
+
463
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/generatetaskassistplancommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/generatetaskassistplancommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/generatetaskassistplancommandoutput.html)
464
+ </details>
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../api-extractor.json",
3
+ "mainEntryPointFilePath": "<projectFolder>/dist-types/index.d.ts"
4
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeWhispererStreaming = void 0;
4
+ const CodeWhispererStreamingClient_1 = require("./CodeWhispererStreamingClient");
5
+ const ExportResultArchiveCommand_1 = require("./commands/ExportResultArchiveCommand");
6
+ const GenerateAssistantResponseCommand_1 = require("./commands/GenerateAssistantResponseCommand");
7
+ const GenerateTaskAssistPlanCommand_1 = require("./commands/GenerateTaskAssistPlanCommand");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ const commands = {
10
+ ExportResultArchiveCommand: ExportResultArchiveCommand_1.ExportResultArchiveCommand,
11
+ GenerateAssistantResponseCommand: GenerateAssistantResponseCommand_1.GenerateAssistantResponseCommand,
12
+ GenerateTaskAssistPlanCommand: GenerateTaskAssistPlanCommand_1.GenerateTaskAssistPlanCommand,
13
+ };
14
+ class CodeWhispererStreaming extends CodeWhispererStreamingClient_1.CodeWhispererStreamingClient {
15
+ }
16
+ exports.CodeWhispererStreaming = CodeWhispererStreaming;
17
+ (0, smithy_client_1.createAggregatedClient)(commands, CodeWhispererStreaming);
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeWhispererStreamingClient = exports.__Client = void 0;
4
+ const runtimeConfig_1 = require("./runtimeConfig");
5
+ const runtimeExtensions_1 = require("./runtimeExtensions");
6
+ const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
+ const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
9
+ const middleware_token_1 = require("@aws-sdk/middleware-token");
10
+ const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
+ const config_resolver_1 = require("@smithy/config-resolver");
12
+ const eventstream_serde_config_resolver_1 = require("@smithy/eventstream-serde-config-resolver");
13
+ const middleware_content_length_1 = require("@smithy/middleware-content-length");
14
+ const middleware_retry_1 = require("@smithy/middleware-retry");
15
+ const smithy_client_1 = require("@smithy/smithy-client");
16
+ Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
17
+ class CodeWhispererStreamingClient extends smithy_client_1.Client {
18
+ constructor(...[configuration]) {
19
+ let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
20
+ let _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
21
+ let _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
22
+ let _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
23
+ let _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
24
+ let _config_5 = (0, middleware_token_1.resolveTokenConfig)(_config_4);
25
+ let _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
26
+ let _config_7 = (0, eventstream_serde_config_resolver_1.resolveEventStreamSerdeConfig)(_config_6);
27
+ let _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
28
+ super(_config_8);
29
+ this.config = _config_8;
30
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
31
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
32
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
33
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
34
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
35
+ this.middlewareStack.use((0, middleware_token_1.getTokenPlugin)(this.config));
36
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
37
+ }
38
+ destroy() {
39
+ super.destroy();
40
+ }
41
+ }
42
+ exports.CodeWhispererStreamingClient = CodeWhispererStreamingClient;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExportResultArchiveCommand = 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 ExportResultArchiveCommand 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 = 'ExportResultArchiveCommand';
21
+ const handlerExecutionContext = {
22
+ logger,
23
+ clientName,
24
+ commandName,
25
+ inputFilterSensitiveLog: (_) => _,
26
+ outputFilterSensitiveLog: models_0_1.ExportResultArchiveResponseFilterSensitiveLog,
27
+ [types_1.SMITHY_CONTEXT_KEY]: {
28
+ service: 'AmazonCodeWhispererStreamingService',
29
+ operation: 'ExportResultArchive',
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_ExportResultArchiveCommand)(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return (0, Aws_restJson1_1.de_ExportResultArchiveCommand)(output, context);
40
+ }
41
+ }
42
+ exports.ExportResultArchiveCommand = ExportResultArchiveCommand;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenerateAssistantResponseCommand = 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 GenerateAssistantResponseCommand 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 = 'GenerateAssistantResponseCommand';
21
+ const handlerExecutionContext = {
22
+ logger,
23
+ clientName,
24
+ commandName,
25
+ inputFilterSensitiveLog: models_0_1.GenerateAssistantResponseRequestFilterSensitiveLog,
26
+ outputFilterSensitiveLog: models_0_1.GenerateAssistantResponseResponseFilterSensitiveLog,
27
+ [types_1.SMITHY_CONTEXT_KEY]: {
28
+ service: 'AmazonCodeWhispererStreamingService',
29
+ operation: 'GenerateAssistantResponse',
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_GenerateAssistantResponseCommand)(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return (0, Aws_restJson1_1.de_GenerateAssistantResponseCommand)(output, context);
40
+ }
41
+ }
42
+ exports.GenerateAssistantResponseCommand = GenerateAssistantResponseCommand;