@aws/lsp-codewhisperer 0.0.16 → 0.0.18

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 (825) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/node_modules/@amzn/codewhisperer-streaming/README.md +235 -60
  3. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreaming.js +2 -0
  4. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreamingClient.js +15 -9
  5. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  7. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/ExportResultArchiveCommand.js +16 -32
  8. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateAssistantResponseCommand.js +16 -32
  9. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateTaskAssistPlanCommand.js +16 -32
  10. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/SendMessageCommand.js +26 -0
  11. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/index.js +1 -0
  12. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/endpoints.js +139 -95
  13. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +541 -135
  14. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +227 -221
  15. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.browser.js +5 -4
  16. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.js +15 -10
  17. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.native.js +1 -1
  18. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.shared.js +23 -13
  19. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeExtensions.js +3 -0
  20. package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreaming.js +7 -5
  21. package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreamingClient.js +26 -20
  22. package/node_modules/@amzn/codewhisperer-streaming/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  23. package/node_modules/@amzn/codewhisperer-streaming/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  24. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/ExportResultArchiveCommand.js +20 -36
  25. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/GenerateAssistantResponseCommand.js +20 -36
  26. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/GenerateTaskAssistPlanCommand.js +20 -36
  27. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/SendMessageCommand.js +22 -0
  28. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/index.js +4 -3
  29. package/node_modules/@amzn/codewhisperer-streaming/dist-es/endpoints.js +140 -96
  30. package/node_modules/@amzn/codewhisperer-streaming/dist-es/index.js +5 -5
  31. package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/CodeWhispererStreamingServiceException.js +1 -1
  32. package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/index.js +1 -1
  33. package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +509 -135
  34. package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +218 -214
  35. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.browser.js +16 -15
  36. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.js +29 -24
  37. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.native.js +3 -3
  38. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.shared.js +28 -18
  39. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeExtensions.js +6 -3
  40. package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreaming.d.ts +12 -5
  41. package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +25 -20
  42. package/node_modules/@amzn/codewhisperer-streaming/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  43. package/node_modules/@amzn/codewhisperer-streaming/dist-types/auth/httpAuthSchemeProvider.d.ts +67 -0
  44. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +31 -27
  45. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +263 -30
  46. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +263 -30
  47. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +636 -0
  48. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/index.d.ts +4 -3
  49. package/node_modules/@amzn/codewhisperer-streaming/dist-types/endpoints.d.ts +1 -1
  50. package/node_modules/@amzn/codewhisperer-streaming/dist-types/extensionConfiguration.d.ts +5 -4
  51. package/node_modules/@amzn/codewhisperer-streaming/dist-types/index.d.ts +7 -5
  52. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/CodeWhispererStreamingServiceException.d.ts +3 -2
  53. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/index.d.ts +1 -1
  54. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +1313 -229
  55. package/node_modules/@amzn/codewhisperer-streaming/dist-types/protocols/Aws_restJson1.d.ts +14 -5
  56. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.browser.d.ts +14 -10
  57. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.d.ts +1 -36
  58. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.native.d.ts +13 -9
  59. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.shared.d.ts +9 -1
  60. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeExtensions.d.ts +1 -1
  61. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-cjs/index.js +295 -0
  62. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +49 -0
  63. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +1 -0
  64. package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/logger.d.ts +2 -2
  65. package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/credentials.d.ts +8 -0
  66. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +1 -0
  67. package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/package.json +7 -15
  68. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/LICENSE +201 -0
  69. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/README.md +4 -0
  70. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +1 -0
  71. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +1 -0
  72. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/index.js +65 -0
  73. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +1 -0
  74. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +1 -0
  75. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +1 -0
  76. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +1 -0
  77. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +5 -0
  78. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/index.js +3 -0
  79. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +10 -0
  80. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +9 -0
  81. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +10 -0
  82. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +1 -0
  83. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +1 -0
  84. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/index.d.ts +3 -0
  85. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +1 -0
  86. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +7 -0
  87. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +7 -0
  88. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +1 -0
  89. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +1 -0
  90. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +3 -0
  91. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +1 -0
  92. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +7 -0
  93. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +7 -0
  94. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/package.json +65 -0
  95. package/node_modules/@amzn/codewhisperer-streaming/package.json +47 -47
  96. package/node_modules/@smithy/abort-controller/LICENSE +201 -0
  97. package/node_modules/@smithy/abort-controller/README.md +4 -0
  98. package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +1 -0
  99. package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +1 -0
  100. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +82 -0
  101. package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +9 -0
  102. package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +20 -0
  103. package/node_modules/@smithy/abort-controller/dist-es/index.js +2 -0
  104. package/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +13 -0
  105. package/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +18 -0
  106. package/node_modules/@smithy/abort-controller/dist-types/index.d.ts +9 -0
  107. package/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +13 -0
  108. package/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +18 -0
  109. package/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +9 -0
  110. package/node_modules/@smithy/abort-controller/package.json +62 -0
  111. package/node_modules/@smithy/node-http-handler/LICENSE +201 -0
  112. package/node_modules/@smithy/node-http-handler/README.md +4 -0
  113. package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +1 -0
  114. package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +1 -0
  115. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +687 -0
  116. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +1 -0
  117. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +1 -0
  118. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +1 -0
  119. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +1 -0
  120. package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +1 -0
  121. package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +1 -0
  122. package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +1 -0
  123. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +1 -0
  124. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +1 -0
  125. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +1 -0
  126. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +1 -0
  127. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +1 -0
  128. package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +1 -0
  129. package/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
  130. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
  131. package/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
  132. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +184 -0
  133. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +86 -0
  134. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -0
  135. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +159 -0
  136. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +19 -0
  137. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +81 -0
  138. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +21 -0
  139. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +8 -0
  140. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +6 -0
  141. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +11 -0
  142. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +14 -0
  143. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +19 -0
  144. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +52 -0
  145. package/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
  146. package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
  147. package/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
  148. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +37 -0
  149. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +22 -0
  150. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +13 -0
  151. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +57 -0
  152. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +14 -0
  153. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +12 -0
  154. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
  155. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
  156. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
  157. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +7 -0
  158. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +2 -0
  159. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +14 -0
  160. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
  161. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
  162. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
  163. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +36 -0
  164. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +22 -0
  165. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +13 -0
  166. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +57 -0
  167. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +13 -0
  168. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +12 -0
  169. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
  170. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
  171. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +2 -0
  172. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +6 -0
  173. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +2 -0
  174. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +13 -0
  175. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
  176. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +13 -0
  177. package/node_modules/@smithy/node-http-handler/package.json +67 -0
  178. package/node_modules/@smithy/protocol-http/LICENSE +201 -0
  179. package/node_modules/@smithy/protocol-http/README.md +4 -0
  180. package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +1 -0
  181. package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +1 -0
  182. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +1 -0
  183. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +1 -0
  184. package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +1 -0
  185. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +1 -0
  186. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +1 -0
  187. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +237 -0
  188. package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +1 -0
  189. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +1 -0
  190. package/node_modules/@smithy/protocol-http/dist-es/Field.js +23 -0
  191. package/node_modules/@smithy/protocol-http/dist-es/Fields.js +19 -0
  192. package/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +22 -0
  193. package/node_modules/@smithy/protocol-http/dist-es/extensions/index.js +1 -0
  194. package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +48 -0
  195. package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +14 -0
  196. package/node_modules/@smithy/protocol-http/dist-es/index.js +8 -0
  197. package/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js +4 -0
  198. package/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +49 -0
  199. package/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +44 -0
  200. package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +37 -0
  201. package/node_modules/@smithy/protocol-http/dist-types/extensions/index.d.ts +1 -0
  202. package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +37 -0
  203. package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +23 -0
  204. package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +16 -0
  205. package/node_modules/@smithy/protocol-http/dist-types/index.d.ts +8 -0
  206. package/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts +1 -0
  207. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +49 -0
  208. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts +44 -0
  209. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +37 -0
  210. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/index.d.ts +1 -0
  211. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +37 -0
  212. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +23 -0
  213. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +16 -0
  214. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts +8 -0
  215. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +1 -0
  216. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts +21 -0
  217. package/node_modules/@smithy/protocol-http/dist-types/types.d.ts +21 -0
  218. package/node_modules/@smithy/protocol-http/package.json +61 -0
  219. package/node_modules/@smithy/querystring-builder/LICENSE +201 -0
  220. package/node_modules/@smithy/querystring-builder/README.md +10 -0
  221. package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +52 -0
  222. package/node_modules/@smithy/querystring-builder/dist-es/index.js +21 -0
  223. package/node_modules/@smithy/querystring-builder/dist-types/index.d.ts +5 -0
  224. package/node_modules/@smithy/querystring-builder/dist-types/ts3.4/index.d.ts +5 -0
  225. package/node_modules/@smithy/querystring-builder/package.json +61 -0
  226. package/node_modules/@smithy/types/LICENSE +201 -0
  227. package/node_modules/@smithy/types/README.md +80 -0
  228. package/node_modules/@smithy/types/dist-cjs/abort.js +1 -0
  229. package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +1 -0
  230. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +1 -0
  231. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +1 -0
  232. package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +1 -0
  233. package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +1 -0
  234. package/node_modules/@smithy/types/dist-cjs/auth/auth.js +1 -0
  235. package/node_modules/@smithy/types/dist-cjs/auth/index.js +1 -0
  236. package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +1 -0
  237. package/node_modules/@smithy/types/dist-cjs/checksum.js +1 -0
  238. package/node_modules/@smithy/types/dist-cjs/client.js +1 -0
  239. package/node_modules/@smithy/types/dist-cjs/command.js +1 -0
  240. package/node_modules/@smithy/types/dist-cjs/connection/config.js +1 -0
  241. package/node_modules/@smithy/types/dist-cjs/connection/index.js +1 -0
  242. package/node_modules/@smithy/types/dist-cjs/connection/manager.js +1 -0
  243. package/node_modules/@smithy/types/dist-cjs/connection/pool.js +1 -0
  244. package/node_modules/@smithy/types/dist-cjs/crypto.js +1 -0
  245. package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +1 -0
  246. package/node_modules/@smithy/types/dist-cjs/encode.js +1 -0
  247. package/node_modules/@smithy/types/dist-cjs/endpoint.js +1 -0
  248. package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +1 -0
  249. package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +1 -0
  250. package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +1 -0
  251. package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +1 -0
  252. package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +1 -0
  253. package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +1 -0
  254. package/node_modules/@smithy/types/dist-cjs/eventStream.js +1 -0
  255. package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +1 -0
  256. package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +1 -0
  257. package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -0
  258. package/node_modules/@smithy/types/dist-cjs/extensions/index.js +1 -0
  259. package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +1 -0
  260. package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +1 -0
  261. package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +1 -0
  262. package/node_modules/@smithy/types/dist-cjs/http.js +1 -0
  263. package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +1 -0
  264. package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +1 -0
  265. package/node_modules/@smithy/types/dist-cjs/identity/identity.js +1 -0
  266. package/node_modules/@smithy/types/dist-cjs/identity/index.js +1 -0
  267. package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +1 -0
  268. package/node_modules/@smithy/types/dist-cjs/index.js +149 -0
  269. package/node_modules/@smithy/types/dist-cjs/logger.js +1 -0
  270. package/node_modules/@smithy/types/dist-cjs/middleware.js +1 -0
  271. package/node_modules/@smithy/types/dist-cjs/pagination.js +1 -0
  272. package/node_modules/@smithy/types/dist-cjs/profile.js +1 -0
  273. package/node_modules/@smithy/types/dist-cjs/response.js +1 -0
  274. package/node_modules/@smithy/types/dist-cjs/retry.js +1 -0
  275. package/node_modules/@smithy/types/dist-cjs/serde.js +1 -0
  276. package/node_modules/@smithy/types/dist-cjs/shapes.js +1 -0
  277. package/node_modules/@smithy/types/dist-cjs/signature.js +1 -0
  278. package/node_modules/@smithy/types/dist-cjs/stream.js +1 -0
  279. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +1 -0
  280. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +1 -0
  281. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +1 -0
  282. package/node_modules/@smithy/types/dist-cjs/transfer.js +1 -0
  283. package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +1 -0
  284. package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +1 -0
  285. package/node_modules/@smithy/types/dist-cjs/transform/exact.js +1 -0
  286. package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +1 -0
  287. package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +1 -0
  288. package/node_modules/@smithy/types/dist-cjs/uri.js +1 -0
  289. package/node_modules/@smithy/types/dist-cjs/util.js +1 -0
  290. package/node_modules/@smithy/types/dist-cjs/waiter.js +1 -0
  291. package/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js +5 -0
  292. package/node_modules/@smithy/types/dist-es/auth/HttpSigner.js +1 -0
  293. package/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js +1 -0
  294. package/node_modules/@smithy/types/dist-es/auth/auth.js +5 -0
  295. package/node_modules/@smithy/types/dist-es/auth/index.js +6 -0
  296. package/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js +1 -0
  297. package/node_modules/@smithy/types/dist-es/checksum.js +1 -0
  298. package/node_modules/@smithy/types/dist-es/client.js +1 -0
  299. package/node_modules/@smithy/types/dist-es/command.js +1 -0
  300. package/node_modules/@smithy/types/dist-es/connection/config.js +1 -0
  301. package/node_modules/@smithy/types/dist-es/connection/index.js +3 -0
  302. package/node_modules/@smithy/types/dist-es/connection/manager.js +1 -0
  303. package/node_modules/@smithy/types/dist-es/connection/pool.js +1 -0
  304. package/node_modules/@smithy/types/dist-es/crypto.js +1 -0
  305. package/node_modules/@smithy/types/dist-es/downlevel-ts3.4/transform/type-transform.js +1 -0
  306. package/node_modules/@smithy/types/dist-es/encode.js +1 -0
  307. package/node_modules/@smithy/types/dist-es/endpoint.js +5 -0
  308. package/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js +1 -0
  309. package/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js +1 -0
  310. package/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js +1 -0
  311. package/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js +1 -0
  312. package/node_modules/@smithy/types/dist-es/endpoints/index.js +5 -0
  313. package/node_modules/@smithy/types/dist-es/endpoints/shared.js +1 -0
  314. package/node_modules/@smithy/types/dist-es/eventStream.js +1 -0
  315. package/node_modules/@smithy/types/dist-es/extensions/checksum.js +39 -0
  316. package/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js +11 -0
  317. package/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js +1 -0
  318. package/node_modules/@smithy/types/dist-es/extensions/index.js +3 -0
  319. package/node_modules/@smithy/types/dist-es/extensions/retry.js +1 -0
  320. package/node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js +1 -0
  321. package/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js +1 -0
  322. package/node_modules/@smithy/types/dist-es/http.js +5 -0
  323. package/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js +1 -0
  324. package/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js +1 -0
  325. package/node_modules/@smithy/types/dist-es/identity/identity.js +1 -0
  326. package/node_modules/@smithy/types/dist-es/identity/index.js +4 -0
  327. package/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js +1 -0
  328. package/node_modules/@smithy/types/dist-es/index.js +36 -0
  329. package/node_modules/@smithy/types/dist-es/logger.js +1 -0
  330. package/node_modules/@smithy/types/dist-es/middleware.js +1 -0
  331. package/node_modules/@smithy/types/dist-es/pagination.js +1 -0
  332. package/node_modules/@smithy/types/dist-es/profile.js +6 -0
  333. package/node_modules/@smithy/types/dist-es/response.js +1 -0
  334. package/node_modules/@smithy/types/dist-es/retry.js +1 -0
  335. package/node_modules/@smithy/types/dist-es/serde.js +1 -0
  336. package/node_modules/@smithy/types/dist-es/shapes.js +1 -0
  337. package/node_modules/@smithy/types/dist-es/signature.js +1 -0
  338. package/node_modules/@smithy/types/dist-es/stream.js +1 -0
  339. package/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js +1 -0
  340. package/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js +1 -0
  341. package/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js +1 -0
  342. package/node_modules/@smithy/types/dist-es/transfer.js +6 -0
  343. package/node_modules/@smithy/types/dist-es/transform/client-method-transforms.js +1 -0
  344. package/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js +1 -0
  345. package/node_modules/@smithy/types/dist-es/transform/exact.js +1 -0
  346. package/node_modules/@smithy/types/dist-es/transform/no-undefined.js +1 -0
  347. package/node_modules/@smithy/types/dist-es/transform/type-transform.js +1 -0
  348. package/node_modules/@smithy/types/dist-es/uri.js +1 -0
  349. package/node_modules/@smithy/types/dist-es/util.js +1 -0
  350. package/node_modules/@smithy/types/dist-es/waiter.js +1 -0
  351. package/node_modules/@smithy/types/dist-types/abort.d.ts +49 -0
  352. package/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts +7 -0
  353. package/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +49 -0
  354. package/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +20 -0
  355. package/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +41 -0
  356. package/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +14 -0
  357. package/node_modules/@smithy/types/dist-types/auth/auth.d.ts +57 -0
  358. package/node_modules/@smithy/types/dist-types/auth/index.d.ts +6 -0
  359. package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +41 -0
  360. package/node_modules/@smithy/types/dist-types/checksum.d.ts +63 -0
  361. package/node_modules/@smithy/types/dist-types/client.d.ts +44 -0
  362. package/node_modules/@smithy/types/dist-types/command.d.ts +10 -0
  363. package/node_modules/@smithy/types/dist-types/connection/config.d.ts +7 -0
  364. package/node_modules/@smithy/types/dist-types/connection/index.d.ts +3 -0
  365. package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +28 -0
  366. package/node_modules/@smithy/types/dist-types/connection/pool.d.ts +24 -0
  367. package/node_modules/@smithy/types/dist-types/crypto.d.ts +60 -0
  368. package/node_modules/@smithy/types/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +25 -0
  369. package/node_modules/@smithy/types/dist-types/encode.d.ts +19 -0
  370. package/node_modules/@smithy/types/dist-types/endpoint.d.ts +77 -0
  371. package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +15 -0
  372. package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +7 -0
  373. package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +19 -0
  374. package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +10 -0
  375. package/node_modules/@smithy/types/dist-types/endpoints/index.d.ts +5 -0
  376. package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +25 -0
  377. package/node_modules/@smithy/types/dist-types/eventStream.d.ts +108 -0
  378. package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +55 -0
  379. package/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +33 -0
  380. package/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +9 -0
  381. package/node_modules/@smithy/types/dist-types/extensions/index.d.ts +4 -0
  382. package/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +18 -0
  383. package/node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts +35 -0
  384. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +79 -0
  385. package/node_modules/@smithy/types/dist-types/http.d.ts +105 -0
  386. package/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +14 -0
  387. package/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +27 -0
  388. package/node_modules/@smithy/types/dist-types/identity/identity.d.ts +15 -0
  389. package/node_modules/@smithy/types/dist-types/identity/index.d.ts +4 -0
  390. package/node_modules/{@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts → @smithy/types/dist-types/identity/tokenIdentity.d.ts} +3 -3
  391. package/node_modules/@smithy/types/dist-types/index.d.ts +36 -0
  392. package/node_modules/@smithy/types/dist-types/logger.d.ts +13 -0
  393. package/node_modules/@smithy/types/dist-types/middleware.d.ts +510 -0
  394. package/node_modules/@smithy/types/dist-types/pagination.d.ts +26 -0
  395. package/node_modules/@smithy/types/dist-types/profile.d.ts +30 -0
  396. package/node_modules/@smithy/types/dist-types/response.d.ts +40 -0
  397. package/node_modules/@smithy/types/dist-types/retry.d.ts +133 -0
  398. package/node_modules/@smithy/types/dist-types/serde.d.ts +111 -0
  399. package/node_modules/@smithy/types/dist-types/shapes.d.ts +81 -0
  400. package/node_modules/@smithy/types/dist-types/signature.d.ts +150 -0
  401. package/node_modules/@smithy/types/dist-types/stream.d.ts +22 -0
  402. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +33 -0
  403. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +62 -0
  404. package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +53 -0
  405. package/node_modules/@smithy/types/dist-types/transfer.d.ts +33 -0
  406. package/node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts +26 -0
  407. package/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +73 -0
  408. package/node_modules/@smithy/types/dist-types/transform/exact.d.ts +6 -0
  409. package/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +62 -0
  410. package/node_modules/@smithy/types/dist-types/transform/type-transform.d.ts +34 -0
  411. package/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts +49 -0
  412. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +7 -0
  413. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +49 -0
  414. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +20 -0
  415. package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +41 -0
  416. package/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +14 -0
  417. package/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts +57 -0
  418. package/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +6 -0
  419. package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +40 -0
  420. package/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts +63 -0
  421. package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +44 -0
  422. package/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +10 -0
  423. package/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +7 -0
  424. package/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts +3 -0
  425. package/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +28 -0
  426. package/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +24 -0
  427. package/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts +60 -0
  428. package/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +41 -0
  429. package/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +19 -0
  430. package/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +77 -0
  431. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +15 -0
  432. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +7 -0
  433. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +19 -0
  434. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +10 -0
  435. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts +5 -0
  436. package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +25 -0
  437. package/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +108 -0
  438. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +55 -0
  439. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +33 -0
  440. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +9 -0
  441. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts +4 -0
  442. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts +18 -0
  443. package/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +35 -0
  444. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +78 -0
  445. package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +105 -0
  446. package/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +14 -0
  447. package/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +27 -0
  448. package/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts +15 -0
  449. package/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +4 -0
  450. package/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +14 -0
  451. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +36 -0
  452. package/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts +13 -0
  453. package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +510 -0
  454. package/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts +26 -0
  455. package/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +30 -0
  456. package/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts +40 -0
  457. package/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +133 -0
  458. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +111 -0
  459. package/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +81 -0
  460. package/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts +150 -0
  461. package/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts +22 -0
  462. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +33 -0
  463. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +61 -0
  464. package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +52 -0
  465. package/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +33 -0
  466. package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts +26 -0
  467. package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +84 -0
  468. package/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts +14 -0
  469. package/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +82 -0
  470. package/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts +41 -0
  471. package/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts +17 -0
  472. package/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +192 -0
  473. package/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts +35 -0
  474. package/node_modules/@smithy/types/dist-types/uri.d.ts +17 -0
  475. package/node_modules/@smithy/types/dist-types/util.d.ts +176 -0
  476. package/node_modules/@smithy/types/dist-types/waiter.d.ts +35 -0
  477. package/node_modules/@smithy/types/package.json +61 -0
  478. package/node_modules/@smithy/util-uri-escape/LICENSE +201 -0
  479. package/node_modules/@smithy/util-uri-escape/README.md +10 -0
  480. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +1 -0
  481. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +1 -0
  482. package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +43 -0
  483. package/node_modules/@smithy/util-uri-escape/dist-es/escape-uri-path.js +2 -0
  484. package/node_modules/@smithy/util-uri-escape/dist-es/escape-uri.js +2 -0
  485. package/node_modules/@smithy/util-uri-escape/dist-es/index.js +2 -0
  486. package/node_modules/@smithy/util-uri-escape/dist-types/escape-uri-path.d.ts +4 -0
  487. package/node_modules/@smithy/util-uri-escape/dist-types/escape-uri.d.ts +4 -0
  488. package/node_modules/@smithy/util-uri-escape/dist-types/index.d.ts +8 -0
  489. package/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri-path.d.ts +4 -0
  490. package/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri.d.ts +4 -0
  491. package/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/index.d.ts +8 -0
  492. package/node_modules/@smithy/util-uri-escape/package.json +59 -0
  493. package/out/client/streamingClient/codewhispererStreamingClient.js +7 -8
  494. package/out/client/streamingClient/codewhispererStreamingClient.js.map +1 -1
  495. package/out/client/token/bearer-token-service.json +2472 -470
  496. package/out/constants.d.ts +2 -0
  497. package/out/constants.js +6 -0
  498. package/out/constants.js.map +1 -0
  499. package/out/language-server/auto-trigger/coefficients.json +11 -1
  500. package/out/language-server/chat/chatController.d.ts +4 -3
  501. package/out/language-server/chat/chatController.js +90 -31
  502. package/out/language-server/chat/chatController.js.map +1 -1
  503. package/out/language-server/chat/chatController.test.js +51 -28
  504. package/out/language-server/chat/chatController.test.js.map +1 -1
  505. package/out/language-server/chat/chatEventParser.d.ts +7 -2
  506. package/out/language-server/chat/chatEventParser.js +13 -5
  507. package/out/language-server/chat/chatEventParser.js.map +1 -1
  508. package/out/language-server/chat/chatEventParser.test.js +88 -42
  509. package/out/language-server/chat/chatEventParser.test.js.map +1 -1
  510. package/out/language-server/chat/chatSessionService.d.ts +4 -4
  511. package/out/language-server/chat/chatSessionService.js +13 -13
  512. package/out/language-server/chat/chatSessionService.js.map +1 -1
  513. package/out/language-server/chat/chatSessionService.test.js +19 -25
  514. package/out/language-server/chat/chatSessionService.test.js.map +1 -1
  515. package/out/language-server/chat/contexts/documentContext.d.ts +1 -4
  516. package/out/language-server/chat/contexts/documentContext.js +1 -17
  517. package/out/language-server/chat/contexts/documentContext.js.map +1 -1
  518. package/out/language-server/chat/contexts/documentContext.test.js +0 -7
  519. package/out/language-server/chat/contexts/documentContext.test.js.map +1 -1
  520. package/out/language-server/chat/contexts/triggerContext.d.ts +3 -4
  521. package/out/language-server/chat/contexts/triggerContext.js +0 -4
  522. package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
  523. package/out/language-server/chat/contexts/triggerContexts.test.js +0 -1
  524. package/out/language-server/chat/contexts/triggerContexts.test.js.map +1 -1
  525. package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +7 -2
  526. package/out/language-server/chat/telemetry/chatTelemetryController.js +68 -44
  527. package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
  528. package/out/language-server/chat/telemetry/chatTelemetryController.test.js +112 -1
  529. package/out/language-server/chat/telemetry/chatTelemetryController.test.js.map +1 -1
  530. package/out/language-server/chat/telemetry/clientTelemetry.d.ts +0 -1
  531. package/out/language-server/chat/telemetry/clientTelemetry.js.map +1 -1
  532. package/out/language-server/codeWhispererSecurityScanServer.js +2 -1
  533. package/out/language-server/codeWhispererSecurityScanServer.js.map +1 -1
  534. package/out/language-server/codeWhispererServer.js +67 -46
  535. package/out/language-server/codeWhispererServer.js.map +1 -1
  536. package/out/language-server/codeWhispererServer.test.js +73 -2
  537. package/out/language-server/codeWhispererServer.test.js.map +1 -1
  538. package/out/language-server/codeWhispererService.d.ts +14 -11
  539. package/out/language-server/codeWhispererService.js +25 -12
  540. package/out/language-server/codeWhispererService.js.map +1 -1
  541. package/out/language-server/configuration/qConfigurationServer.js +2 -2
  542. package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
  543. package/out/language-server/constants.d.ts +1 -0
  544. package/out/language-server/constants.js +2 -1
  545. package/out/language-server/constants.js.map +1 -1
  546. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js +2 -3
  547. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js.map +1 -1
  548. package/out/language-server/dependencyGraph/dependencyGraph.js +2 -2
  549. package/out/language-server/dependencyGraph/dependencyGraph.js.map +1 -1
  550. package/out/language-server/languageDetection.d.ts +9 -1
  551. package/out/language-server/languageDetection.js +71 -5
  552. package/out/language-server/languageDetection.js.map +1 -1
  553. package/out/language-server/netTransform/artifactManager.js +12 -10
  554. package/out/language-server/netTransform/artifactManager.js.map +1 -1
  555. package/out/language-server/netTransform/converter.d.ts +1 -2
  556. package/out/language-server/netTransform/converter.js +3 -48
  557. package/out/language-server/netTransform/converter.js.map +1 -1
  558. package/out/language-server/netTransform/models.d.ts +4 -0
  559. package/out/language-server/netTransform/models.js.map +1 -1
  560. package/out/language-server/netTransform/resources/SupportedProjects.js +3 -1
  561. package/out/language-server/netTransform/resources/SupportedProjects.js.map +1 -1
  562. package/out/language-server/netTransform/tests/converter.test.js +2 -159
  563. package/out/language-server/netTransform/tests/converter.test.js.map +1 -1
  564. package/out/language-server/netTransform/tests/validation.test.js +2 -0
  565. package/out/language-server/netTransform/tests/validation.test.js.map +1 -1
  566. package/out/language-server/netTransform/transformHandler.js +25 -35
  567. package/out/language-server/netTransform/transformHandler.js.map +1 -1
  568. package/out/language-server/netTransformServer.js +2 -21
  569. package/out/language-server/netTransformServer.js.map +1 -1
  570. package/out/language-server/proxy-server.js +9 -83
  571. package/out/language-server/proxy-server.js.map +1 -1
  572. package/out/language-server/qChatServer.js +13 -4
  573. package/out/language-server/qChatServer.js.map +1 -1
  574. package/out/language-server/session/sessionManager.d.ts +7 -2
  575. package/out/language-server/session/sessionManager.js +2 -0
  576. package/out/language-server/session/sessionManager.js.map +1 -1
  577. package/out/language-server/session/sessionManager.test.js +4 -0
  578. package/out/language-server/session/sessionManager.test.js.map +1 -1
  579. package/out/language-server/telemetry/codeDiffTracker.d.ts +2 -1
  580. package/out/language-server/telemetry/codeDiffTracker.js +6 -1
  581. package/out/language-server/telemetry/codeDiffTracker.js.map +1 -1
  582. package/out/language-server/telemetry/codePercentage.d.ts +6 -4
  583. package/out/language-server/telemetry/codePercentage.js +49 -12
  584. package/out/language-server/telemetry/codePercentage.js.map +1 -1
  585. package/out/language-server/telemetry/codePercentage.test.js +169 -41
  586. package/out/language-server/telemetry/codePercentage.test.js.map +1 -1
  587. package/out/language-server/telemetry/types.d.ts +2 -1
  588. package/out/language-server/telemetry/types.js.map +1 -1
  589. package/out/language-server/telemetry/userTriggerDecision.test.js +560 -156
  590. package/out/language-server/telemetry/userTriggerDecision.test.js.map +1 -1
  591. package/out/language-server/telemetry.test.js +11 -9
  592. package/out/language-server/telemetry.test.js.map +1 -1
  593. package/out/language-server/telemetryService.d.ts +79 -0
  594. package/out/language-server/telemetryService.js +321 -0
  595. package/out/language-server/telemetryService.js.map +1 -0
  596. package/out/language-server/telemetryService.test.d.ts +1 -0
  597. package/out/language-server/telemetryService.test.js +761 -0
  598. package/out/language-server/telemetryService.test.js.map +1 -0
  599. package/out/language-server/utilities/telemetryUtils.d.ts +4 -0
  600. package/out/language-server/utilities/telemetryUtils.js +89 -0
  601. package/out/language-server/utilities/telemetryUtils.js.map +1 -0
  602. package/out/language-server/utilities/telemetryUtils.test.d.ts +1 -0
  603. package/out/language-server/utilities/telemetryUtils.test.js +207 -0
  604. package/out/language-server/utilities/telemetryUtils.test.js.map +1 -0
  605. package/out/language-server/utils.d.ts +7 -4
  606. package/out/language-server/utils.js +57 -34
  607. package/out/language-server/utils.js.map +1 -1
  608. package/out/language-server/utils.test.js +104 -73
  609. package/out/language-server/utils.test.js.map +1 -1
  610. package/package.json +4 -12
  611. package/node_modules/@aws/lsp-fqn/out/browser/fqnWorkerPool.d.ts +0 -5
  612. package/node_modules/@aws/lsp-fqn/out/browser/fqnWorkerPool.js +0 -28
  613. package/node_modules/@aws/lsp-fqn/out/browser/fqnWorkerPool.js.map +0 -1
  614. package/node_modules/@aws/lsp-fqn/out/browser/index.d.ts +0 -2
  615. package/node_modules/@aws/lsp-fqn/out/browser/index.js +0 -19
  616. package/node_modules/@aws/lsp-fqn/out/browser/index.js.map +0 -1
  617. package/node_modules/@aws/lsp-fqn/out/common/commonFqnWorkerPool.d.ts +0 -7
  618. package/node_modules/@aws/lsp-fqn/out/common/commonFqnWorkerPool.js +0 -39
  619. package/node_modules/@aws/lsp-fqn/out/common/commonFqnWorkerPool.js.map +0 -1
  620. package/node_modules/@aws/lsp-fqn/out/common/defaults.d.ts +0 -4
  621. package/node_modules/@aws/lsp-fqn/out/common/defaults.js +0 -8
  622. package/node_modules/@aws/lsp-fqn/out/common/defaults.js.map +0 -1
  623. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.d.ts +0 -3
  624. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.js +0 -28
  625. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.js.map +0 -1
  626. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.test.js +0 -57
  627. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.test.js.map +0 -1
  628. package/node_modules/@aws/lsp-fqn/out/common/types.d.ts +0 -58
  629. package/node_modules/@aws/lsp-fqn/out/common/types.js +0 -3
  630. package/node_modules/@aws/lsp-fqn/out/common/types.js.map +0 -1
  631. package/node_modules/@aws/lsp-fqn/out/index.d.ts +0 -7
  632. package/node_modules/@aws/lsp-fqn/out/index.js +0 -18
  633. package/node_modules/@aws/lsp-fqn/out/index.js.map +0 -1
  634. package/node_modules/@aws/lsp-fqn/out/node/aws-lsp-fqn-worker.js +0 -19
  635. package/node_modules/@aws/lsp-fqn/out/node/aws-lsp-fqn-worker.js.map +0 -1
  636. package/node_modules/@aws/lsp-fqn/out/node/fqnWorkerPool.d.ts +0 -5
  637. package/node_modules/@aws/lsp-fqn/out/node/fqnWorkerPool.js +0 -12
  638. package/node_modules/@aws/lsp-fqn/out/node/fqnWorkerPool.js.map +0 -1
  639. package/node_modules/@aws/lsp-fqn/out/node/index.d.ts +0 -2
  640. package/node_modules/@aws/lsp-fqn/out/node/index.js +0 -19
  641. package/node_modules/@aws/lsp-fqn/out/node/index.js.map +0 -1
  642. package/node_modules/@aws/lsp-fqn/package.json +0 -42
  643. package/node_modules/@aws/lsp-fqn/src/browser/fqnWorkerPool.ts +0 -26
  644. package/node_modules/@aws/lsp-fqn/src/browser/index.ts +0 -2
  645. package/node_modules/@aws/lsp-fqn/src/common/commonFqnWorkerPool.ts +0 -44
  646. package/node_modules/@aws/lsp-fqn/src/common/defaults.ts +0 -4
  647. package/node_modules/@aws/lsp-fqn/src/common/fqnExtractor.test.ts +0 -66
  648. package/node_modules/@aws/lsp-fqn/src/common/fqnExtractor.ts +0 -35
  649. package/node_modules/@aws/lsp-fqn/src/common/types.ts +0 -77
  650. package/node_modules/@aws/lsp-fqn/src/index.ts +0 -8
  651. package/node_modules/@aws/lsp-fqn/src/node/aws-lsp-fqn-worker.ts +0 -19
  652. package/node_modules/@aws/lsp-fqn/src/node/fqnWorkerPool.ts +0 -9
  653. package/node_modules/@aws/lsp-fqn/src/node/index.ts +0 -2
  654. package/node_modules/@aws/lsp-fqn/tsconfig.json +0 -8
  655. package/node_modules/@aws/lsp-fqn/tsconfig.tsbuildinfo +0 -1
  656. package/node_modules/@aws-sdk/types/dist-cjs/abort.js +0 -2
  657. package/node_modules/@aws-sdk/types/dist-cjs/auth.js +0 -5
  658. package/node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js +0 -2
  659. package/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.browser.js +0 -2
  660. package/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.node.js +0 -2
  661. package/node_modules/@aws-sdk/types/dist-cjs/checksum.js +0 -2
  662. package/node_modules/@aws-sdk/types/dist-cjs/client.js +0 -2
  663. package/node_modules/@aws-sdk/types/dist-cjs/command.js +0 -2
  664. package/node_modules/@aws-sdk/types/dist-cjs/connection.js +0 -2
  665. package/node_modules/@aws-sdk/types/dist-cjs/credentials.js +0 -2
  666. package/node_modules/@aws-sdk/types/dist-cjs/crypto.js +0 -2
  667. package/node_modules/@aws-sdk/types/dist-cjs/dns.js +0 -8
  668. package/node_modules/@aws-sdk/types/dist-cjs/encode.js +0 -2
  669. package/node_modules/@aws-sdk/types/dist-cjs/endpoint.js +0 -5
  670. package/node_modules/@aws-sdk/types/dist-cjs/eventStream.js +0 -2
  671. package/node_modules/@aws-sdk/types/dist-cjs/extensions/index.js +0 -2
  672. package/node_modules/@aws-sdk/types/dist-cjs/http.js +0 -2
  673. package/node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js +0 -2
  674. package/node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js +0 -2
  675. package/node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js +0 -2
  676. package/node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js +0 -2
  677. package/node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js +0 -2
  678. package/node_modules/@aws-sdk/types/dist-cjs/identity/index.js +0 -8
  679. package/node_modules/@aws-sdk/types/dist-cjs/index.js +0 -35
  680. package/node_modules/@aws-sdk/types/dist-cjs/logger.js +0 -2
  681. package/node_modules/@aws-sdk/types/dist-cjs/middleware.js +0 -2
  682. package/node_modules/@aws-sdk/types/dist-cjs/pagination.js +0 -2
  683. package/node_modules/@aws-sdk/types/dist-cjs/profile.js +0 -2
  684. package/node_modules/@aws-sdk/types/dist-cjs/request.js +0 -2
  685. package/node_modules/@aws-sdk/types/dist-cjs/response.js +0 -2
  686. package/node_modules/@aws-sdk/types/dist-cjs/retry.js +0 -2
  687. package/node_modules/@aws-sdk/types/dist-cjs/serde.js +0 -2
  688. package/node_modules/@aws-sdk/types/dist-cjs/shapes.js +0 -2
  689. package/node_modules/@aws-sdk/types/dist-cjs/signature.js +0 -2
  690. package/node_modules/@aws-sdk/types/dist-cjs/stream.js +0 -2
  691. package/node_modules/@aws-sdk/types/dist-cjs/token.js +0 -2
  692. package/node_modules/@aws-sdk/types/dist-cjs/transfer.js +0 -5
  693. package/node_modules/@aws-sdk/types/dist-cjs/uri.js +0 -2
  694. package/node_modules/@aws-sdk/types/dist-cjs/util.js +0 -2
  695. package/node_modules/@aws-sdk/types/dist-cjs/waiter.js +0 -2
  696. package/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.browser.d.ts +0 -6
  697. package/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.node.d.ts +0 -9
  698. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +0 -17
  699. package/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.browser.d.ts +0 -1
  700. package/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.node.d.ts +0 -2
  701. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +0 -5
  702. package/out/language-server/chat/contexts/documentFqnExtractor.d.ts +0 -22
  703. package/out/language-server/chat/contexts/documentFqnExtractor.js +0 -95
  704. package/out/language-server/chat/contexts/documentFqnExtractor.js.map +0 -1
  705. package/out/language-server/chat/contexts/documentFqnExtractor.test.js +0 -94
  706. package/out/language-server/chat/contexts/documentFqnExtractor.test.js.map +0 -1
  707. package/out/language-server/chat/contexts/mockData.d.ts +0 -37
  708. package/out/language-server/chat/contexts/mockData.js +0 -98
  709. package/out/language-server/chat/contexts/mockData.js.map +0 -1
  710. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/LICENSE +0 -0
  711. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/README.md +0 -0
  712. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/abort.js +0 -0
  713. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/auth.js +0 -0
  714. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/blob/blob-types.js +0 -0
  715. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/checksum.js +0 -0
  716. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/client.js +0 -0
  717. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/command.js +0 -0
  718. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/connection.js +0 -0
  719. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/credentials.js +0 -0
  720. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/crypto.js +0 -0
  721. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/dns.js +0 -0
  722. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/encode.js +0 -0
  723. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/endpoint.js +0 -0
  724. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/eventStream.js +0 -0
  725. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/extensions/index.js +0 -0
  726. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/http.js +0 -0
  727. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/identity/AnonymousIdentity.js +0 -0
  728. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/identity/AwsCredentialIdentity.js +0 -0
  729. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/identity/Identity.js +0 -0
  730. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/identity/LoginIdentity.js +0 -0
  731. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/identity/TokenIdentity.js +0 -0
  732. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/identity/index.js +0 -0
  733. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/index.js +0 -0
  734. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/logger.js +0 -0
  735. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/middleware.js +0 -0
  736. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/pagination.js +0 -0
  737. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/profile.js +0 -0
  738. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/request.js +0 -0
  739. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/response.js +0 -0
  740. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/retry.js +0 -0
  741. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/serde.js +0 -0
  742. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/shapes.js +0 -0
  743. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/signature.js +0 -0
  744. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/stream.js +0 -0
  745. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/token.js +0 -0
  746. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/transfer.js +0 -0
  747. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/uri.js +0 -0
  748. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/util.js +0 -0
  749. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/waiter.js +0 -0
  750. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/abort.d.ts +0 -0
  751. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/auth.d.ts +0 -0
  752. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/blob/blob-types.d.ts +0 -0
  753. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/checksum.d.ts +0 -0
  754. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/client.d.ts +0 -0
  755. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/command.d.ts +0 -0
  756. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/connection.d.ts +0 -0
  757. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/crypto.d.ts +0 -0
  758. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/dns.d.ts +0 -0
  759. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/encode.d.ts +0 -0
  760. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/endpoint.d.ts +0 -0
  761. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/eventStream.d.ts +0 -0
  762. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/extensions/index.d.ts +0 -0
  763. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/http.d.ts +0 -0
  764. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/identity/AnonymousIdentity.d.ts +0 -0
  765. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/identity/AwsCredentialIdentity.d.ts +0 -0
  766. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/identity/Identity.d.ts +0 -0
  767. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/identity/LoginIdentity.d.ts +0 -0
  768. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/identity/index.d.ts +0 -0
  769. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/index.d.ts +0 -0
  770. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/middleware.d.ts +0 -0
  771. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/pagination.d.ts +0 -0
  772. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/profile.d.ts +0 -0
  773. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/request.d.ts +0 -0
  774. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/response.d.ts +0 -0
  775. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/retry.d.ts +0 -0
  776. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/serde.d.ts +0 -0
  777. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/shapes.d.ts +0 -0
  778. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/signature.d.ts +0 -0
  779. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/stream.d.ts +0 -0
  780. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/token.d.ts +0 -0
  781. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/transfer.d.ts +0 -0
  782. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/abort.d.ts +0 -0
  783. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/auth.d.ts +0 -0
  784. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/blob/blob-types.d.ts +0 -0
  785. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/checksum.d.ts +0 -0
  786. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/client.d.ts +0 -0
  787. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/command.d.ts +0 -0
  788. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/connection.d.ts +0 -0
  789. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/crypto.d.ts +0 -0
  790. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/dns.d.ts +0 -0
  791. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/encode.d.ts +0 -0
  792. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/endpoint.d.ts +0 -0
  793. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/eventStream.d.ts +0 -0
  794. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/extensions/index.d.ts +0 -0
  795. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/http.d.ts +0 -0
  796. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts +0 -0
  797. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +0 -0
  798. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/identity/Identity.d.ts +0 -0
  799. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/identity/LoginIdentity.d.ts +0 -0
  800. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/identity/index.d.ts +0 -0
  801. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/index.d.ts +0 -0
  802. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/logger.d.ts +0 -0
  803. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/middleware.d.ts +0 -0
  804. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/pagination.d.ts +0 -0
  805. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/profile.d.ts +0 -0
  806. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/request.d.ts +0 -0
  807. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/response.d.ts +0 -0
  808. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/retry.d.ts +0 -0
  809. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/serde.d.ts +0 -0
  810. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/shapes.d.ts +0 -0
  811. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/signature.d.ts +0 -0
  812. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/stream.d.ts +0 -0
  813. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/token.d.ts +0 -0
  814. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/transfer.d.ts +0 -0
  815. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/uri.d.ts +0 -0
  816. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/util.d.ts +0 -0
  817. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/ts3.4/waiter.d.ts +0 -0
  818. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/uri.d.ts +0 -0
  819. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/util.d.ts +0 -0
  820. /package/node_modules/{@aws-sdk → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-types/waiter.d.ts +0 -0
  821. /package/node_modules/{@aws-sdk/types/dist-es/blob/runtime-blob-types.browser.js → @smithy/protocol-http/dist-es/httpHandler.js} +0 -0
  822. /package/node_modules/{@aws-sdk/types/dist-es/blob/runtime-blob-types.node.js → @smithy/protocol-http/dist-es/types.js} +0 -0
  823. /package/node_modules/{@aws/lsp-fqn/out/common/fqnExtractor.test.d.ts → @smithy/types/dist-es/abort.js} +0 -0
  824. /package/node_modules/{@aws/lsp-fqn/out/node/aws-lsp-fqn-worker.d.ts → @smithy/types/dist-es/auth/HttpAuthScheme.js} +0 -0
  825. /package/{out/language-server/chat/contexts/documentFqnExtractor.test.d.ts → node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js} +0 -0
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const assert = require("assert");
4
4
  const sinon = require("sinon");
5
5
  const utils_1 = require("./utils");
6
+ const chai_1 = require("chai");
7
+ const constants_1 = require("./constants");
6
8
  describe('getBearerTokenFromProvider', () => {
7
9
  const mockToken = 'mockToken';
8
10
  it('returns the bearer token from the provider', () => {
@@ -30,92 +32,121 @@ describe('getBearerTokenFromProvider', () => {
30
32
  assert.throws(() => (0, utils_1.getBearerTokenFromProvider)(mockCredentialsProvider), Error, 'credentialsProvider does not have bearer token credentials');
31
33
  });
32
34
  });
33
- describe('getUserAgent', () => {
34
- it('should return a default string when no parameters are provided', () => {
35
- const userAgent = (0, utils_1.getUserAgent)({});
36
- assert.strictEqual(userAgent, 'AWS-Language-Servers');
35
+ describe('getSsoConnectionType', () => {
36
+ it('should return ssoConnectionType as builderId', () => {
37
+ const mockCredentialsProvider = {
38
+ hasCredentials: sinon.stub().returns(true),
39
+ getCredentials: sinon.stub().returns({ token: 'token' }),
40
+ getConnectionMetadata: sinon.stub().returns({
41
+ sso: {
42
+ startUrl: constants_1.BUILDER_ID_START_URL,
43
+ },
44
+ }),
45
+ };
46
+ const ssoConnectionType = (0, utils_1.getSsoConnectionType)(mockCredentialsProvider);
47
+ (0, chai_1.expect)(ssoConnectionType).to.equal('builderId');
37
48
  });
38
- it('should return a complete string when all initializeParams are provided', () => {
39
- const initializeParams = {
40
- initializationOptions: {
41
- aws: {
42
- clientInfo: {
43
- name: 'Test Platform',
44
- version: '2.3.4',
45
- extension: {
46
- name: 'Test Client Extension',
47
- version: '1.2.3',
48
- },
49
- clientId: '1111-1111',
50
- },
49
+ it('should return ssoConnectionType as identityCenter', () => {
50
+ const mockCredentialsProvider = {
51
+ hasCredentials: sinon.stub().returns(true),
52
+ getCredentials: sinon.stub().returns({ token: 'token' }),
53
+ getConnectionMetadata: sinon.stub().returns({
54
+ sso: {
55
+ startUrl: 'idc-url',
51
56
  },
52
- },
57
+ }),
53
58
  };
54
- const serverInfo = {
55
- name: 'Test Server Name',
56
- version: '0.1.2',
59
+ const ssoConnectionType = (0, utils_1.getSsoConnectionType)(mockCredentialsProvider);
60
+ (0, chai_1.expect)(ssoConnectionType).to.equal('identityCenter');
61
+ });
62
+ it('should return ssoConnectionType as none when getConnectionMetadata returns undefined', () => {
63
+ const mockCredentialsProvider = {
64
+ hasCredentials: sinon.stub().returns(true),
65
+ getCredentials: sinon.stub().returns({ token: 'token' }),
66
+ getConnectionMetadata: sinon.stub().returns(undefined),
57
67
  };
58
- const userAgent = (0, utils_1.getUserAgent)(initializeParams, serverInfo);
59
- assert.strictEqual(userAgent, 'AWS-Language-Servers Test-Server-Name/0.1.2 Test-Client-Extension/1.2.3 Test-Platform/2.3.4 ClientId/1111-1111');
68
+ const ssoConnectionType = (0, utils_1.getSsoConnectionType)(mockCredentialsProvider);
69
+ (0, chai_1.expect)(ssoConnectionType).to.equal('none');
60
70
  });
61
- it('should omit custom suffix if clientExtensionInfo is not passed', () => {
62
- const initializeParams = {};
63
- const serverInfo = {
64
- name: 'Test Server Name',
65
- version: '0.1.2',
71
+ it('should return ssoConnectionType as none when getConnectionMetadata.sso returns undefined', () => {
72
+ const mockCredentialsProvider = {
73
+ hasCredentials: sinon.stub().returns(true),
74
+ getCredentials: sinon.stub().returns({ token: 'token' }),
75
+ getConnectionMetadata: sinon.stub().returns({
76
+ sso: undefined,
77
+ }),
66
78
  };
67
- const userAgent = (0, utils_1.getUserAgent)(initializeParams, serverInfo);
68
- assert.strictEqual(userAgent, 'AWS-Language-Servers Test-Server-Name/0.1.2');
79
+ const ssoConnectionType = (0, utils_1.getSsoConnectionType)(mockCredentialsProvider);
80
+ (0, chai_1.expect)(ssoConnectionType).to.equal('none');
69
81
  });
70
- it('should omit serverInfo if not passed', () => {
71
- const initializeParams = {
72
- initializationOptions: {
73
- aws: {
74
- clientInfo: {
75
- name: 'Test Platform',
76
- version: '2.3.4',
77
- extension: {
78
- name: 'Test Client Extension',
79
- version: '1.2.3',
80
- },
81
- clientId: '1111-1111',
82
- },
82
+ it('should return ssoConnectionType as none when getConnectionMetadata.sso.startUrl is empty string', () => {
83
+ const mockCredentialsProvider = {
84
+ hasCredentials: sinon.stub().returns(true),
85
+ getCredentials: sinon.stub().returns({ token: 'token' }),
86
+ getConnectionMetadata: sinon.stub().returns({
87
+ sso: {
88
+ startUrl: '',
83
89
  },
84
- },
90
+ }),
85
91
  };
86
- const userAgent = (0, utils_1.getUserAgent)(initializeParams);
87
- assert.strictEqual(userAgent, 'AWS-Language-Servers Test-Client-Extension/1.2.3 Test-Platform/2.3.4 ClientId/1111-1111');
92
+ const ssoConnectionType = (0, utils_1.getSsoConnectionType)(mockCredentialsProvider);
93
+ (0, chai_1.expect)(ssoConnectionType).to.equal('none');
88
94
  });
89
- it('should replace missing clientExtensionInfo fields with UNKNOWN tokens', () => {
90
- const initializeParams = {
91
- initializationOptions: {
92
- aws: {
93
- clientInfo: {
94
- extension: {},
95
- },
95
+ it('should return ssoConnectionType as none when getConnectionMetadata.sso.startUrl returns undefined', () => {
96
+ const mockCredentialsProvider = {
97
+ hasCredentials: sinon.stub().returns(true),
98
+ getCredentials: sinon.stub().returns({ token: 'token' }),
99
+ getConnectionMetadata: sinon.stub().returns({
100
+ sso: {
101
+ startUrl: undefined,
96
102
  },
97
- },
98
- };
99
- const serverInfo = {
100
- name: 'Test Server Name',
101
- version: '0.1.2',
103
+ }),
102
104
  };
103
- const userAgent = (0, utils_1.getUserAgent)(initializeParams, serverInfo);
104
- assert.strictEqual(userAgent, 'AWS-Language-Servers Test-Server-Name/0.1.2 UNKNOWN/UNKNOWN UNKNOWN/UNKNOWN');
105
+ const ssoConnectionType = (0, utils_1.getSsoConnectionType)(mockCredentialsProvider);
106
+ (0, chai_1.expect)(ssoConnectionType).to.equal('none');
105
107
  });
106
- it('should fallback to standard InitializeParams.clientInfo when initializationOptions.aws is not passed', () => {
107
- const initializeParams = {
108
- clientInfo: {
109
- name: 'Test Client',
110
- version: '2.3.4',
111
- },
112
- };
113
- const serverInfo = {
114
- name: 'Test Server Name',
115
- version: '0.1.2',
116
- };
117
- const userAgent = (0, utils_1.getUserAgent)(initializeParams, serverInfo);
118
- assert.strictEqual(userAgent, 'AWS-Language-Servers Test-Server-Name/0.1.2 Test-Client/2.3.4');
108
+ });
109
+ describe('getUnmodifiedAcceptedTokens', function () {
110
+ it('Should return correct unmodified accepted tokens count', function () {
111
+ assert.strictEqual((0, utils_1.getUnmodifiedAcceptedTokens)('foo', 'fou'), 2);
112
+ assert.strictEqual((0, utils_1.getUnmodifiedAcceptedTokens)('foo', 'f11111oo'), 3);
113
+ assert.strictEqual((0, utils_1.getUnmodifiedAcceptedTokens)('foo', 'fo'), 2);
114
+ assert.strictEqual((0, utils_1.getUnmodifiedAcceptedTokens)('helloworld', 'HelloWorld'), 8);
115
+ assert.strictEqual((0, utils_1.getUnmodifiedAcceptedTokens)('helloworld', 'World'), 4);
116
+ assert.strictEqual((0, utils_1.getUnmodifiedAcceptedTokens)('CodeWhisperer', 'CODE'), 1);
117
+ assert.strictEqual((0, utils_1.getUnmodifiedAcceptedTokens)('CodeWhisperer', 'CodeWhispererGood'), 13);
118
+ });
119
+ });
120
+ describe('getEndPositionForAcceptedSuggestion', () => {
121
+ it('should return correct end position for single-line content', () => {
122
+ const content = 'console.log("Hello");';
123
+ const startPosition = { line: 5, character: 10 };
124
+ const result = (0, utils_1.getEndPositionForAcceptedSuggestion)(content, startPosition);
125
+ assert.deepStrictEqual(result, { line: 5, character: 31 });
126
+ });
127
+ it('should return correct end position for multi-line content', () => {
128
+ const content = 'if (condition) {\n console.log("True");\n}';
129
+ const startPosition = { line: 10, character: 5 };
130
+ const result = (0, utils_1.getEndPositionForAcceptedSuggestion)(content, startPosition);
131
+ assert.deepStrictEqual(result, { line: 12, character: 1 });
132
+ });
133
+ it('should handle empty content', () => {
134
+ const content = '';
135
+ const startPosition = { line: 0, character: 0 };
136
+ const result = (0, utils_1.getEndPositionForAcceptedSuggestion)(content, startPosition);
137
+ assert.deepStrictEqual(result, { line: 0, character: 0 });
138
+ });
139
+ it('should handle content with only newlines', () => {
140
+ const content = '\n\n';
141
+ const startPosition = { line: 3, character: 0 };
142
+ const result = (0, utils_1.getEndPositionForAcceptedSuggestion)(content, startPosition);
143
+ assert.deepStrictEqual(result, { line: 5, character: 0 });
144
+ });
145
+ it('should handle content ending with a newline', () => {
146
+ const content = 'console.log("Hello");\n';
147
+ const startPosition = { line: 7, character: 2 };
148
+ const result = (0, utils_1.getEndPositionForAcceptedSuggestion)(content, startPosition);
149
+ assert.deepStrictEqual(result, { line: 8, character: 0 });
119
150
  });
120
151
  });
121
152
  //# sourceMappingURL=utils.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../../src/language-server/utils.test.ts"],"names":[],"mappings":";;AACA,iCAAgC;AAChC,+BAA8B;AAC9B,mCAAkE;AAElE,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACxC,MAAM,SAAS,GAAG,WAAW,CAAA;IAC7B,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAClD,MAAM,uBAAuB,GAAwB;YACjD,cAAc,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;YAC1C,cAAc,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;YAC1D,qBAAqB,EAAE,KAAK,CAAC,IAAI,EAAE;SACtC,CAAA;QAED,MAAM,CAAC,WAAW,CAAC,IAAA,kCAA0B,EAAC,uBAAuB,CAAC,EAAE,SAAS,CAAC,CAAA;IACtF,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,wEAAwE,EAAE,GAAG,EAAE;QAC9E,MAAM,uBAAuB,GAAwB;YACjD,cAAc,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;YAC3C,cAAc,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;YAC1D,qBAAqB,EAAE,KAAK,CAAC,IAAI,EAAE;SACtC,CAAA;QAED,MAAM,CAAC,MAAM,CACT,GAAG,EAAE,CAAC,IAAA,kCAA0B,EAAC,uBAAuB,CAAC,EACzD,KAAK,EACL,4DAA4D,CAC/D,CAAA;IACL,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAA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,GAAa,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAA;QAEzD,MAAM,MAAM,GAAG,IAAA,2CAAmC,EAAC,OAAO,EAAE,aAAa,CAAC,CAAA;QAE1E,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAA;IAC7D,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACnD,MAAM,OAAO,GAAG,yBAAyB,CAAA;QACzC,MAAM,aAAa,GAAa,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAA;QAEzD,MAAM,MAAM,GAAG,IAAA,2CAAmC,EAAC,OAAO,EAAE,aAAa,CAAC,CAAA;QAE1E,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAA;IAC7D,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/lsp-codewhisperer",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "CodeWhisperer Language Server",
5
5
  "main": "out/index.js",
6
6
  "repository": {
@@ -12,12 +12,7 @@
12
12
  "engines": {
13
13
  "node": ">=18.0.0"
14
14
  },
15
- "workspaces": [
16
- "src.gen/@amzn/codewhisperer-streaming"
17
- ],
18
15
  "scripts": {
19
- "compile-streamingClient": "npm run build -w src.gen/@amzn/codewhisperer-streaming",
20
- "precompile": "npm run compile-streamingClient",
21
16
  "compile": "tsc --build",
22
17
  "postcompile": "npm run copyServiceClient",
23
18
  "copyServiceClient": "copyfiles -u 1 --error ./src/client/sigv4/*.json out && copyfiles -u 1 --error ./src/client/token/*.json out",
@@ -34,9 +29,8 @@
34
29
  "dependencies": {
35
30
  "@amzn/codewhisperer-streaming": "*",
36
31
  "@aws-sdk/util-retry": "^3.374.0",
37
- "@aws/chat-client-ui-types": "^0.0.7",
38
- "@aws/language-server-runtimes": "^0.2.20",
39
- "@aws/lsp-fqn": "^0.0.1",
32
+ "@aws/chat-client-ui-types": "^0.0.8",
33
+ "@aws/language-server-runtimes": "^0.2.27",
40
34
  "@gerhobbelt/gitignore-parser": "^0.2.0-9",
41
35
  "@smithy/node-http-handler": "^2.5.0",
42
36
  "adm-zip": "^0.5.10",
@@ -47,7 +41,6 @@
47
41
  "got": "^11.8.5",
48
42
  "hpagent": "^1.2.0",
49
43
  "js-md5": "^0.8.3",
50
- "proxy-http-agent": "^1.0.1",
51
44
  "uuid": "^9.0.1",
52
45
  "vscode-uri": "^3.0.8"
53
46
  },
@@ -76,7 +69,6 @@
76
69
  "endOfLine": "lf"
77
70
  },
78
71
  "bundleDependencies": [
79
- "@amzn/codewhisperer-streaming",
80
- "@aws/lsp-fqn"
72
+ "@amzn/codewhisperer-streaming"
81
73
  ]
82
74
  }
@@ -1,5 +0,0 @@
1
- import { ExtractorResult, FqnExtractorInput, IFqnWorkerPool } from '../common/types';
2
- export declare class FqnWorkerPool implements IFqnWorkerPool {
3
- exec(_input: FqnExtractorInput): Promise<ExtractorResult>;
4
- dispose(): void;
5
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FqnWorkerPool = void 0;
4
- // TODO: implement logic for browser/webworker environment
5
- class FqnWorkerPool {
6
- async exec(_input) {
7
- return Promise.resolve({
8
- success: true,
9
- data: {
10
- fullyQualified: {
11
- declaredSymbols: [],
12
- usedSymbols: [],
13
- },
14
- simple: {
15
- declaredSymbols: [],
16
- usedSymbols: [],
17
- },
18
- externalSimple: {
19
- declaredSymbols: [],
20
- usedSymbols: [],
21
- },
22
- },
23
- });
24
- }
25
- dispose() { }
26
- }
27
- exports.FqnWorkerPool = FqnWorkerPool;
28
- //# sourceMappingURL=fqnWorkerPool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fqnWorkerPool.js","sourceRoot":"","sources":["../../src/browser/fqnWorkerPool.ts"],"names":[],"mappings":";;;AAEA,0DAA0D;AAC1D,MAAa,aAAa;IACf,KAAK,CAAC,IAAI,CAAC,MAAyB;QACvC,OAAO,OAAO,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,IAAI;YACb,IAAI,EAAE;gBACF,cAAc,EAAE;oBACZ,eAAe,EAAE,EAAE;oBACnB,WAAW,EAAE,EAAE;iBAClB;gBACD,MAAM,EAAE;oBACJ,eAAe,EAAE,EAAE;oBACnB,WAAW,EAAE,EAAE;iBAClB;gBACD,cAAc,EAAE;oBACZ,eAAe,EAAE,EAAE;oBACnB,WAAW,EAAE,EAAE;iBAClB;aACJ;SACJ,CAAC,CAAA;IACN,CAAC;IAEM,OAAO,KAAI,CAAC;CACtB;AAtBD,sCAsBC"}
@@ -1,2 +0,0 @@
1
- export * from '../common/types';
2
- export * from './fqnWorkerPool';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("../common/types"), exports);
18
- __exportStar(require("./fqnWorkerPool"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,kDAA+B"}
@@ -1,7 +0,0 @@
1
- import { ExtractorResult, FqnExtractorInput, IFqnWorkerPool, WorkerPoolConfig } from './types';
2
- export declare class CommonFqnWorkerPool implements IFqnWorkerPool {
3
- #private;
4
- constructor(filePath: string, { timeout, logger, workerPoolOptions }?: WorkerPoolConfig);
5
- exec(input: FqnExtractorInput): Promise<ExtractorResult>;
6
- dispose(): void;
7
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommonFqnWorkerPool = void 0;
4
- const workerpool_1 = require("workerpool");
5
- const defaults_1 = require("./defaults");
6
- class CommonFqnWorkerPool {
7
- #workerPool;
8
- #logger;
9
- #timeout;
10
- constructor(filePath, { timeout = defaults_1.DEFAULT_TIMEOUT, logger, workerPoolOptions } = {}) {
11
- this.#timeout = timeout;
12
- this.#logger = logger;
13
- this.#workerPool = (0, workerpool_1.pool)(filePath, {
14
- maxWorkers: defaults_1.DEFAULT_MAX_WORKERS,
15
- maxQueueSize: defaults_1.DEFAULT_MAX_QUEUE_SIZE,
16
- ...workerPoolOptions,
17
- });
18
- }
19
- async exec(input) {
20
- this.#logger?.log(`Extracting fully qualified names for ${input.languageId}`);
21
- return this.#workerPool
22
- .exec(defaults_1.FQN_WORKER_ID, [input])
23
- .timeout(this.#timeout)
24
- .then(data => data)
25
- .catch(error => {
26
- const errorMessage = `Encountered error while extracting fully qualified names: ${error instanceof Error ? error.message : 'Unknown'}`;
27
- this.#logger?.error(errorMessage);
28
- return {
29
- success: false,
30
- error: errorMessage,
31
- };
32
- });
33
- }
34
- dispose() {
35
- this.#workerPool.terminate(true);
36
- }
37
- }
38
- exports.CommonFqnWorkerPool = CommonFqnWorkerPool;
39
- //# sourceMappingURL=commonFqnWorkerPool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commonFqnWorkerPool.js","sourceRo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CD,kDAuCC"}
@@ -1,4 +0,0 @@
1
- export declare const DEFAULT_TIMEOUT = 5000;
2
- export declare const DEFAULT_MAX_WORKERS = 2;
3
- export declare const DEFAULT_MAX_QUEUE_SIZE = 10;
4
- export declare const FQN_WORKER_ID = "fqn";
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FQN_WORKER_ID = exports.DEFAULT_MAX_QUEUE_SIZE = exports.DEFAULT_MAX_WORKERS = exports.DEFAULT_TIMEOUT = void 0;
4
- exports.DEFAULT_TIMEOUT = 5000;
5
- exports.DEFAULT_MAX_WORKERS = 2;
6
- exports.DEFAULT_MAX_QUEUE_SIZE = 10;
7
- exports.FQN_WORKER_ID = 'fqn';
8
- //# sourceMappingURL=defaults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/common/defaults.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,IAAI,CAAA;AACtB,QAAA,mBAAmB,GAAG,CAAC,CAAA;AACvB,QAAA,sBAAsB,GAAG,EAAE,CAAA;AAC3B,QAAA,aAAa,GAAG,KAAK,CAAA"}
@@ -1,3 +0,0 @@
1
- import type * as Fqn from '@aws/fully-qualified-names';
2
- import { FqnExtractorInput, FqnExtractorOutput } from './types';
3
- export declare function extract(fqn: typeof Fqn, input: FqnExtractorInput): Promise<FqnExtractorOutput>;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extract = extract;
4
- function extractNames(fqn, languageId, fileText, extent) {
5
- switch (languageId) {
6
- case 'java':
7
- return fqn.Java.findNamesWithInExtent(fileText, extent);
8
- case 'javascript':
9
- case 'javascriptreact':
10
- case 'typescriptreact':
11
- return fqn.Tsx.findNamesWithInExtent(fileText, extent);
12
- case 'typescript':
13
- return fqn.TypeScript.findNamesWithInExtent(fileText, extent);
14
- case 'python':
15
- return fqn.Python.findNamesWithInExtent(fileText, extent);
16
- default:
17
- // ideally unreachable
18
- throw new Error(`Unsupported language: ${languageId}`);
19
- }
20
- }
21
- async function extract(fqn, input) {
22
- const { fileText, languageId, selection } = input;
23
- const startLocation = new fqn.Location(selection.start.line, selection.start.character);
24
- const endLocation = new fqn.Location(selection.end.line, selection.end.character);
25
- const extent = new fqn.Extent(startLocation, endLocation);
26
- return extractNames(fqn, languageId, fileText, extent);
27
- }
28
- //# sourceMappingURL=fqnExtractor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fqnExtractor.js","sourceRoot":"","sources":["../../src/common/fqnExtractor.ts"],"names":[],"mappings":";;AA0BA,0BAQC;AA/BD,SAAS,YAAY,CACjB,GAAe,EACf,UAA2C,EAC3C,QAAgB,EAChB,MAAkB;IAElB,QAAQ,UAAU,EAAE,CAAC;QACjB,KAAK,MAAM;YACP,OAAO,GAAG,CAAC,IAAI,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QAC3D,KAAK,YAAY,CAAC;QAClB,KAAK,iBAAiB,CAAC;QACvB,KAAK,iBAAiB;YAClB,OAAO,GAAG,CAAC,GAAG,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QAC1D,KAAK,YAAY;YACb,OAAO,GAAG,CAAC,UAAU,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QACjE,KAAK,QAAQ;YACT,OAAO,GAAG,CAAC,MAAM,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QAC7D;YACI,sBAAsB;YACtB,MAAM,IAAI,KAAK,CAAC,yBAAyB,UAAU,EAAE,CAAC,CAAA;IAC9D,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,OAAO,CAAC,GAAe,EAAE,KAAwB;IACnE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,CAAA;IAEjD,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACvF,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IACjF,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,aAAa,EAAE,WAAW,CAAC,CAAA;IAEzD,OAAO,YAAY,CAAC,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;AAC1D,CAAC"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const fqn = require("@aws/fully-qualified-names");
4
- const assert = require("assert");
5
- const ts_sinon_1 = require("ts-sinon");
6
- const fqnExtractor_1 = require("./fqnExtractor");
7
- describe('fqnExtractor.extract', () => {
8
- let typescriptStub;
9
- let javaStub;
10
- const tsResult = {};
11
- const javaResult = {};
12
- const mockRange = {
13
- start: {
14
- line: 0,
15
- character: 0,
16
- },
17
- end: {
18
- line: 1,
19
- character: 1,
20
- },
21
- };
22
- const mockFileText = `console.log('abc')`;
23
- beforeEach(() => {
24
- typescriptStub = ts_sinon_1.default.stub(fqn.TypeScript, 'findNamesWithInExtent').callsFake(() => Promise.resolve(tsResult));
25
- javaStub = ts_sinon_1.default.stub(fqn.Java, 'findNamesWithInExtent').callsFake(() => Promise.resolve(javaResult));
26
- });
27
- afterEach(() => {
28
- typescriptStub.restore();
29
- javaStub.restore();
30
- });
31
- it('throws error with unsupported languageId', async () => {
32
- await assert.rejects(() => (0, fqnExtractor_1.extract)(fqn, {
33
- languageId: 'lolcode',
34
- fileText: mockFileText,
35
- selection: mockRange,
36
- }));
37
- });
38
- it('calls the corresponding fqn function', async () => {
39
- let result = await (0, fqnExtractor_1.extract)(fqn, {
40
- languageId: 'typescript',
41
- fileText: mockFileText,
42
- selection: mockRange,
43
- });
44
- ts_sinon_1.default.assert.calledOnceWithMatch(typescriptStub, mockFileText, ts_sinon_1.default.match.instanceOf(fqn.Extent));
45
- // reference check
46
- assert.strictEqual(result, tsResult);
47
- result = await (0, fqnExtractor_1.extract)(fqn, {
48
- languageId: 'java',
49
- fileText: mockFileText,
50
- selection: mockRange,
51
- });
52
- ts_sinon_1.default.assert.calledOnceWithMatch(javaStub, mockFileText, ts_sinon_1.default.match.instanceOf(fqn.Extent));
53
- // reference check
54
- assert.strictEqual(result, javaResult);
55
- });
56
- });
57
- //# sourceMappingURL=fqnExtractor.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fqnExtractor.test.js","sourceRoot":"","sources":["../../src/common/fqnExtractor.test.ts"],"names":[],"mappings":";;AAAA,kDAAiD;AACjD,iCAAgC;AAChC,uCAA4B;AAC5B,iDAAwC;AAExC,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAClC,IAAI,cAA+B,CAAA;IACnC,IAAI,QAAyB,CAAA;IAC7B,MAAM,QAAQ,GAAG,EAAE,CAAA;IACnB,MAAM,UAAU,GAAG,EAAE,CAAA;IACrB,MAAM,SAAS,GAAG;QACd,KAAK,EAAE;YACH,IAAI,EAAE,CAAC;YACP,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE;YACD,IAAI,EAAE,CAAC;YACP,SAAS,EAAE,CAAC;SACf;KACJ,CAAA;IACD,MAAM,YAAY,GAAG,oBAAoB,CAAA;IAEzC,UAAU,CAAC,GAAG,EAAE;QACZ,cAAc,GAAG,kBAAK,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,uBAAuB,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAA;QAC/G,QAAQ,GAAG,kBAAK,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC,SAAS,CAAC,GAAG,EA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EAAE,UAAU,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
@@ -1,58 +0,0 @@
1
- import type { Location } from '@aws/fully-qualified-names';
2
- import type { WorkerPoolOptions } from 'workerpool';
3
- export type FqnSupportedLanguages = 'python' | 'java' | 'javascript' | 'javascriptreact' | 'typescript' | 'typescriptreact';
4
- export type Result<TData, TError> = {
5
- success: true;
6
- data: TData;
7
- } | {
8
- success: false;
9
- data?: TData;
10
- error: TError;
11
- };
12
- export type ExtractorResult = Result<FqnExtractorOutput, string>;
13
- export interface FullyQualifiedName {
14
- source: string[];
15
- symbol: string[];
16
- }
17
- export interface Logger {
18
- log: (message: string) => void;
19
- error: (error: string) => void;
20
- }
21
- export interface WorkerPoolConfig {
22
- logger?: Logger;
23
- /**
24
- * time a task is allowed to run before terminated
25
- *
26
- * @default 5000ms
27
- */
28
- timeout?: number;
29
- workerPoolOptions?: WorkerPoolOptions;
30
- }
31
- export interface FqnExtractorOutput {
32
- fullyQualified: {
33
- declaredSymbols: FullyQualifiedName[];
34
- usedSymbols: FullyQualifiedName[];
35
- };
36
- simple: {
37
- declaredSymbols: FullyQualifiedName[];
38
- usedSymbols: FullyQualifiedName[];
39
- };
40
- externalSimple: {
41
- declaredSymbols: FullyQualifiedName[];
42
- usedSymbols: FullyQualifiedName[];
43
- };
44
- }
45
- export type Position = Pick<Location, 'character' | 'line'>;
46
- export type Range = {
47
- start: Position;
48
- end: Position;
49
- };
50
- export interface FqnExtractorInput {
51
- languageId: FqnSupportedLanguages;
52
- fileText: string;
53
- selection: Range;
54
- }
55
- export interface IFqnWorkerPool {
56
- exec(input: FqnExtractorInput): Promise<ExtractorResult>;
57
- dispose(): void;
58
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/common/types.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { ExtractorResult, FqnExtractorInput, IFqnWorkerPool, WorkerPoolConfig } from './common/types';
2
- export * from './common/types';
3
- export declare class FqnWorkerPool implements IFqnWorkerPool {
4
- constructor(workerPoolConfig?: WorkerPoolConfig);
5
- exec(input: FqnExtractorInput): Promise<ExtractorResult>;
6
- dispose(): void;
7
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./common/types"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,iDAA8B"}