@aws/lsp-codewhisperer 0.0.27 → 0.0.29

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 (595) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +62 -1
  3. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +16 -0
  4. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +6 -3
  5. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +16 -0
  6. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +6 -3
  7. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/package.json +6 -6
  8. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/README.md +9 -0
  9. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/index.js +193 -76
  10. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http-handler.js +39 -15
  11. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
  12. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-handler.js +9 -1
  13. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/server.mock.js +9 -2
  14. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
  15. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
  16. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +22 -0
  17. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +41 -0
  18. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  19. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/write-request-body.js +13 -9
  20. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http-handler.d.ts +4 -2
  21. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +7 -0
  22. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +11 -0
  23. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +7 -0
  24. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
  25. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -2
  26. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +3 -0
  27. package/node_modules/{@smithy/node-http-handler/dist-types → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4}/set-socket-keep-alive.d.ts +7 -6
  28. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +3 -0
  29. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
  30. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/package.json +10 -10
  31. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/index.js +30 -8
  32. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +13 -8
  33. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +53 -0
  34. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +53 -0
  35. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/package.json +6 -6
  36. package/node_modules/@smithy/types/dist-cjs/waiter.js +1 -0
  37. package/out/client/token/bearer-token-service.json +1650 -96
  38. package/out/client/token/codewhisperer.d.ts +1 -1
  39. package/out/constants.d.ts +6 -0
  40. package/out/constants.js +7 -1
  41. package/out/constants.js.map +1 -1
  42. package/out/language-server/amazonQServiceManager/AmazonQTokenServiceManager.d.ts +90 -0
  43. package/out/language-server/amazonQServiceManager/AmazonQTokenServiceManager.js +466 -0
  44. package/out/language-server/amazonQServiceManager/AmazonQTokenServiceManager.js.map +1 -0
  45. package/out/language-server/amazonQServiceManager/BaseAmazonQServiceManager.d.ts +5 -0
  46. package/out/language-server/amazonQServiceManager/BaseAmazonQServiceManager.js +3 -0
  47. package/out/language-server/amazonQServiceManager/BaseAmazonQServiceManager.js.map +1 -0
  48. package/out/language-server/amazonQServiceManager/errors.d.ts +28 -0
  49. package/out/language-server/amazonQServiceManager/errors.js +70 -0
  50. package/out/language-server/amazonQServiceManager/errors.js.map +1 -0
  51. package/out/language-server/amazonQServiceManager/qDeveloperProfiles.d.ts +38 -0
  52. package/out/language-server/amazonQServiceManager/qDeveloperProfiles.js +85 -0
  53. package/out/language-server/amazonQServiceManager/qDeveloperProfiles.js.map +1 -0
  54. package/out/language-server/chat/chatController.d.ts +1 -1
  55. package/out/language-server/chat/chatController.js +19 -3
  56. package/out/language-server/chat/chatController.js.map +1 -1
  57. package/out/language-server/chat/chatSessionManagementService.d.ts +3 -8
  58. package/out/language-server/chat/chatSessionManagementService.js +5 -57
  59. package/out/language-server/chat/chatSessionManagementService.js.map +1 -1
  60. package/out/language-server/chat/chatSessionService.d.ts +2 -3
  61. package/out/language-server/chat/chatSessionService.js +7 -21
  62. package/out/language-server/chat/chatSessionService.js.map +1 -1
  63. package/out/language-server/chat/contexts/triggerContext.d.ts +1 -1
  64. package/out/language-server/chat/contexts/triggerContext.js +2 -1
  65. package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
  66. package/out/language-server/chat/telemetry/chatTelemetryController.js +88 -81
  67. package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
  68. package/out/language-server/codeWhispererSecurityScanServer.d.ts +2 -4
  69. package/out/language-server/codeWhispererSecurityScanServer.js +24 -11
  70. package/out/language-server/codeWhispererSecurityScanServer.js.map +1 -1
  71. package/out/language-server/codeWhispererServer.js +93 -65
  72. package/out/language-server/codeWhispererServer.js.map +1 -1
  73. package/out/language-server/codeWhispererService.d.ts +12 -1
  74. package/out/language-server/codeWhispererService.js +45 -16
  75. package/out/language-server/codeWhispererService.js.map +1 -1
  76. package/out/language-server/configuration/qConfigurationServer.d.ts +17 -4
  77. package/out/language-server/configuration/qConfigurationServer.js +103 -14
  78. package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
  79. package/out/language-server/dependencyGraph/commonUtil.d.ts +0 -1
  80. package/out/language-server/dependencyGraph/commonUtil.js +0 -11
  81. package/out/language-server/dependencyGraph/commonUtil.js.map +1 -1
  82. package/out/language-server/dependencyGraph/dependencyGraph.js +2 -2
  83. package/out/language-server/dependencyGraph/dependencyGraph.js.map +1 -1
  84. package/out/language-server/netTransform/transformHandler.d.ts +3 -2
  85. package/out/language-server/netTransform/transformHandler.js +7 -2
  86. package/out/language-server/netTransform/transformHandler.js.map +1 -1
  87. package/out/language-server/netTransformServer.js +3 -3
  88. package/out/language-server/netTransformServer.js.map +1 -1
  89. package/out/language-server/proxy-server.js +3 -14
  90. package/out/language-server/proxy-server.js.map +1 -1
  91. package/out/language-server/qChatServer.d.ts +2 -4
  92. package/out/language-server/qChatServer.js +30 -16
  93. package/out/language-server/qChatServer.js.map +1 -1
  94. package/out/language-server/securityScan/constants.d.ts +3 -0
  95. package/out/language-server/securityScan/constants.js +7 -0
  96. package/out/language-server/securityScan/constants.js.map +1 -0
  97. package/out/language-server/securityScan/securityScanHandler.d.ts +5 -5
  98. package/out/language-server/securityScan/securityScanHandler.js +22 -12
  99. package/out/language-server/securityScan/securityScanHandler.js.map +1 -1
  100. package/out/language-server/telemetry/codeDiffTracker.d.ts +1 -1
  101. package/out/language-server/telemetry/codeDiffTracker.js +16 -13
  102. package/out/language-server/telemetry/codeDiffTracker.js.map +1 -1
  103. package/out/language-server/telemetryService.d.ts +7 -5
  104. package/out/language-server/telemetryService.js +29 -20
  105. package/out/language-server/telemetryService.js.map +1 -1
  106. package/out/language-server/testUtils.d.ts +3 -0
  107. package/out/language-server/testUtils.js +12 -1
  108. package/out/language-server/testUtils.js.map +1 -1
  109. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.js +2 -2
  110. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.js.map +1 -1
  111. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js +2 -2
  112. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
  113. package/out/language-server/utils.d.ts +3 -0
  114. package/out/language-server/utils.js +15 -0
  115. package/out/language-server/utils.js.map +1 -1
  116. package/package.json +8 -8
  117. package/node_modules/@smithy/node-http-handler/README.md +0 -4
  118. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -21
  119. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -8
  120. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -6
  121. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -14
  122. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -2
  123. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -2
  124. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -2
  125. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -6
  126. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -2
  127. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +0 -13
  128. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +0 -13
  129. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +0 -23
  130. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +0 -23
  131. package/out/language-server/auto-trigger/autoTrigger.test.d.ts +0 -1
  132. package/out/language-server/auto-trigger/autoTrigger.test.js +0 -82
  133. package/out/language-server/auto-trigger/autoTrigger.test.js.map +0 -1
  134. package/out/language-server/chat/chatController.test.d.ts +0 -1
  135. package/out/language-server/chat/chatController.test.js +0 -709
  136. package/out/language-server/chat/chatController.test.js.map +0 -1
  137. package/out/language-server/chat/chatEventParser.test.d.ts +0 -1
  138. package/out/language-server/chat/chatEventParser.test.js +0 -239
  139. package/out/language-server/chat/chatEventParser.test.js.map +0 -1
  140. package/out/language-server/chat/chatSessionManagementService.test.d.ts +0 -1
  141. package/out/language-server/chat/chatSessionManagementService.test.js +0 -77
  142. package/out/language-server/chat/chatSessionManagementService.test.js.map +0 -1
  143. package/out/language-server/chat/chatSessionService.test.d.ts +0 -1
  144. package/out/language-server/chat/chatSessionService.test.js +0 -86
  145. package/out/language-server/chat/chatSessionService.test.js.map +0 -1
  146. package/out/language-server/chat/contexts/documentContext.test.d.ts +0 -1
  147. package/out/language-server/chat/contexts/documentContext.test.js +0 -117
  148. package/out/language-server/chat/contexts/documentContext.test.js.map +0 -1
  149. package/out/language-server/chat/contexts/triggerContexts.test.d.ts +0 -1
  150. package/out/language-server/chat/contexts/triggerContexts.test.js +0 -81
  151. package/out/language-server/chat/contexts/triggerContexts.test.js.map +0 -1
  152. package/out/language-server/chat/contexts/utils.test.d.ts +0 -1
  153. package/out/language-server/chat/contexts/utils.test.js +0 -72
  154. package/out/language-server/chat/contexts/utils.test.js.map +0 -1
  155. package/out/language-server/chat/telemetry/chatTelemetryController.test.d.ts +0 -1
  156. package/out/language-server/chat/telemetry/chatTelemetryController.test.js +0 -195
  157. package/out/language-server/chat/telemetry/chatTelemetryController.test.js.map +0 -1
  158. package/out/language-server/codeWhispererServer.test.d.ts +0 -1
  159. package/out/language-server/codeWhispererServer.test.js +0 -1377
  160. package/out/language-server/codeWhispererServer.test.js.map +0 -1
  161. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.d.ts +0 -1
  162. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js +0 -483
  163. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js.map +0 -1
  164. package/out/language-server/dependencyGraph/gitIgnoreFilter.d.ts +0 -7
  165. package/out/language-server/dependencyGraph/gitIgnoreFilter.js +0 -39
  166. package/out/language-server/dependencyGraph/gitIgnoreFilter.js.map +0 -1
  167. package/out/language-server/languageDetection.test.d.ts +0 -1
  168. package/out/language-server/languageDetection.test.js +0 -31
  169. package/out/language-server/languageDetection.test.js.map +0 -1
  170. package/out/language-server/mergeRightUtils.test.d.ts +0 -1
  171. package/out/language-server/mergeRightUtils.test.js +0 -53
  172. package/out/language-server/mergeRightUtils.test.js.map +0 -1
  173. package/out/language-server/netTransform/tests/converter.test.d.ts +0 -1
  174. package/out/language-server/netTransform/tests/converter.test.js +0 -108
  175. package/out/language-server/netTransform/tests/converter.test.js.map +0 -1
  176. package/out/language-server/netTransform/tests/transformHandler.test.d.ts +0 -1
  177. package/out/language-server/netTransform/tests/transformHandler.test.js +0 -252
  178. package/out/language-server/netTransform/tests/transformHandler.test.js.map +0 -1
  179. package/out/language-server/netTransform/tests/validation.test.d.ts +0 -1
  180. package/out/language-server/netTransform/tests/validation.test.js +0 -84
  181. package/out/language-server/netTransform/tests/validation.test.js.map +0 -1
  182. package/out/language-server/qChatServer.test.d.ts +0 -1
  183. package/out/language-server/qChatServer.test.js +0 -51
  184. package/out/language-server/qChatServer.test.js.map +0 -1
  185. package/out/language-server/securityScan/securityScanHandler.test.d.ts +0 -1
  186. package/out/language-server/securityScan/securityScanHandler.test.js +0 -171
  187. package/out/language-server/securityScan/securityScanHandler.test.js.map +0 -1
  188. package/out/language-server/session/sessionManager.test.d.ts +0 -1
  189. package/out/language-server/session/sessionManager.test.js +0 -588
  190. package/out/language-server/session/sessionManager.test.js.map +0 -1
  191. package/out/language-server/telemetry/codeDiffTracker.test.d.ts +0 -1
  192. package/out/language-server/telemetry/codeDiffTracker.test.js +0 -125
  193. package/out/language-server/telemetry/codeDiffTracker.test.js.map +0 -1
  194. package/out/language-server/telemetry/codePercentage.test.d.ts +0 -1
  195. package/out/language-server/telemetry/codePercentage.test.js +0 -214
  196. package/out/language-server/telemetry/codePercentage.test.js.map +0 -1
  197. package/out/language-server/telemetry/userTriggerDecision.test.d.ts +0 -1
  198. package/out/language-server/telemetry/userTriggerDecision.test.js +0 -1348
  199. package/out/language-server/telemetry/userTriggerDecision.test.js.map +0 -1
  200. package/out/language-server/telemetry.test.d.ts +0 -1
  201. package/out/language-server/telemetry.test.js +0 -98
  202. package/out/language-server/telemetry.test.js.map +0 -1
  203. package/out/language-server/telemetryService.test.d.ts +0 -1
  204. package/out/language-server/telemetryService.test.js +0 -771
  205. package/out/language-server/telemetryService.test.js.map +0 -1
  206. package/out/language-server/utilities/filesystemUtilities.d.ts +0 -8
  207. package/out/language-server/utilities/filesystemUtilities.js +0 -30
  208. package/out/language-server/utilities/filesystemUtilities.js.map +0 -1
  209. package/out/language-server/utilities/filesystemUtilities.test.d.ts +0 -1
  210. package/out/language-server/utilities/filesystemUtilities.test.js +0 -85
  211. package/out/language-server/utilities/filesystemUtilities.test.js.map +0 -1
  212. package/out/language-server/utilities/pathUtils.d.ts +0 -27
  213. package/out/language-server/utilities/pathUtils.js +0 -79
  214. package/out/language-server/utilities/pathUtils.js.map +0 -1
  215. package/out/language-server/utilities/pathUtils.test.d.ts +0 -1
  216. package/out/language-server/utilities/pathUtils.test.js +0 -43
  217. package/out/language-server/utilities/pathUtils.test.js.map +0 -1
  218. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.d.ts +0 -5
  219. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.js +0 -49
  220. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.js.map +0 -1
  221. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.d.ts +0 -1
  222. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.js +0 -157
  223. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.js.map +0 -1
  224. package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.d.ts +0 -1
  225. package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js +0 -88
  226. package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js.map +0 -1
  227. package/out/language-server/utilities/telemetryUtils.test.d.ts +0 -1
  228. package/out/language-server/utilities/telemetryUtils.test.js +0 -207
  229. package/out/language-server/utilities/telemetryUtils.test.js.map +0 -1
  230. package/out/language-server/utilities/textUtils.d.ts +0 -1
  231. package/out/language-server/utilities/textUtils.js +0 -12
  232. package/out/language-server/utilities/textUtils.js.map +0 -1
  233. package/out/language-server/utilities/textUtils.test.d.ts +0 -1
  234. package/out/language-server/utilities/textUtils.test.js +0 -21
  235. package/out/language-server/utilities/textUtils.test.js.map +0 -1
  236. package/out/language-server/utils.test.d.ts +0 -1
  237. package/out/language-server/utils.test.js +0 -152
  238. package/out/language-server/utils.test.js.map +0 -1
  239. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller}/LICENSE +0 -0
  240. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/README.md +0 -0
  241. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -0
  242. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -0
  243. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/index.js +0 -0
  244. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/AbortController.js +0 -0
  245. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +0 -0
  246. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/index.js +0 -0
  247. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/index.d.ts +0 -0
  248. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +0 -0
  249. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/abort-controller → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler}/LICENSE +0 -0
  250. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/constants.js +0 -0
  251. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/get-transformed-headers.js +0 -0
  252. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http-handler.js +0 -0
  253. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -0
  254. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -0
  255. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-handler.js +0 -0
  256. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/readable.mock.js +0 -0
  257. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/server.mock.js +0 -0
  258. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-connection-timeout.js +0 -0
  259. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -0
  260. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-socket-timeout.js +0 -0
  261. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/collector.js +0 -0
  262. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/index.js +0 -0
  263. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -0
  264. /package/node_modules/{@smithy/node-http-handler/dist-cjs/write-request-body.js → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/timing.js} +0 -0
  265. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/Field.js → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js} +0 -0
  266. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/constants.js +0 -0
  267. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/get-transformed-headers.js +0 -0
  268. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/index.js +0 -0
  269. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-connection-pool.js +0 -0
  270. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/readable.mock.js +0 -0
  271. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/stream-collector/collector.js +0 -0
  272. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -0
  273. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/constants.d.ts +0 -0
  274. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/get-transformed-headers.d.ts +0 -0
  275. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/index.d.ts +0 -0
  276. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -0
  277. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-connection-pool.d.ts +0 -0
  278. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-handler.d.ts +0 -0
  279. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/readable.mock.d.ts +0 -0
  280. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/server.mock.d.ts +0 -0
  281. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -0
  282. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/index.d.ts +0 -0
  283. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -0
  284. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/constants.d.ts +0 -0
  285. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +0 -0
  286. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/index.d.ts +0 -0
  287. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -0
  288. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +0 -0
  289. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +0 -0
  290. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -0
  291. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/server.mock.d.ts +0 -0
  292. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -0
  293. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +0 -0
  294. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -0
  295. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -0
  296. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/write-request-body.d.ts +0 -0
  297. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/LICENSE +0 -0
  298. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/README.md +0 -0
  299. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/Fields.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Field.js} +0 -0
  300. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Fields.js} +0 -0
  301. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -0
  302. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -0
  303. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js} +0 -0
  304. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js} +0 -0
  305. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js} +0 -0
  306. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/types.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js} +0 -0
  307. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/abort.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/types.js} +0 -0
  308. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/Field.js +0 -0
  309. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/Fields.js +0 -0
  310. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +0 -0
  311. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/extensions/index.js +0 -0
  312. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpHandler.js +0 -0
  313. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +0 -0
  314. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/index.js +0 -0
  315. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js +0 -0
  316. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/types.js +0 -0
  317. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +0 -0
  318. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +0 -0
  319. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +0 -0
  320. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/extensions/index.d.ts +0 -0
  321. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +0 -0
  322. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +0 -0
  323. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/index.d.ts +0 -0
  324. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts +0 -0
  325. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +0 -0
  326. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts +0 -0
  327. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +0 -0
  328. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/index.d.ts +0 -0
  329. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -0
  330. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +0 -0
  331. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts +0 -0
  332. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +0 -0
  333. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts +0 -0
  334. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/types.d.ts +0 -0
  335. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/LICENSE +0 -0
  336. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/README.md +0 -0
  337. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-cjs/index.js +0 -0
  338. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-es/index.js +0 -0
  339. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-types/index.d.ts +0 -0
  340. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-types/ts3.4/index.d.ts +0 -0
  341. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/package.json +0 -0
  342. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/LICENSE +0 -0
  343. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/README.md +0 -0
  344. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/checksum.js → types/dist-cjs/abort.js} +0 -0
  345. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpApiKeyAuth.js +0 -0
  346. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpAuthScheme.js +0 -0
  347. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -0
  348. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpSigner.js +0 -0
  349. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/IdentityProviderConfig.js +0 -0
  350. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/auth.js +0 -0
  351. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/index.js +0 -0
  352. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/blob/blob-payload-input-types.js +0 -0
  353. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/client.js → types/dist-cjs/checksum.js} +0 -0
  354. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/command.js → types/dist-cjs/client.js} +0 -0
  355. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/crypto.js → types/dist-cjs/command.js} +0 -0
  356. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/config.js +0 -0
  357. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/index.js +0 -0
  358. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/manager.js +0 -0
  359. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/pool.js +0 -0
  360. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/encode.js → types/dist-cjs/crypto.js} +0 -0
  361. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -0
  362. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/endpoint.js → types/dist-cjs/encode.js} +0 -0
  363. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/eventStream.js → types/dist-cjs/endpoint.js} +0 -0
  364. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/EndpointRuleObject.js +0 -0
  365. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/ErrorRuleObject.js +0 -0
  366. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/RuleSetObject.js +0 -0
  367. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/TreeRuleObject.js +0 -0
  368. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/index.js +0 -0
  369. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/shared.js +0 -0
  370. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/http.js → types/dist-cjs/eventStream.js} +0 -0
  371. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/checksum.js +0 -0
  372. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/defaultClientConfiguration.js +0 -0
  373. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -0
  374. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/index.js +0 -0
  375. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/retry.js +0 -0
  376. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/externals-check/browser-externals-check.js +0 -0
  377. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/http/httpHandlerInitialization.js +0 -0
  378. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/logger.js → types/dist-cjs/http.js} +0 -0
  379. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/apiKeyIdentity.js +0 -0
  380. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/awsCredentialIdentity.js +0 -0
  381. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/identity.js +0 -0
  382. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/index.js +0 -0
  383. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/tokenIdentity.js +0 -0
  384. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/index.js +0 -0
  385. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/middleware.js → types/dist-cjs/logger.js} +0 -0
  386. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/pagination.js → types/dist-cjs/middleware.js} +0 -0
  387. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/profile.js → types/dist-cjs/pagination.js} +0 -0
  388. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/response.js → types/dist-cjs/profile.js} +0 -0
  389. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/retry.js → types/dist-cjs/response.js} +0 -0
  390. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/serde.js → types/dist-cjs/retry.js} +0 -0
  391. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/shapes.js → types/dist-cjs/serde.js} +0 -0
  392. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/signature.js → types/dist-cjs/shapes.js} +0 -0
  393. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/stream.js → types/dist-cjs/signature.js} +0 -0
  394. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/transfer.js → types/dist-cjs/stream.js} +0 -0
  395. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -0
  396. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -0
  397. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -0
  398. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/uri.js → types/dist-cjs/transfer.js} +0 -0
  399. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/client-method-transforms.js +0 -0
  400. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -0
  401. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/exact.js +0 -0
  402. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/no-undefined.js +0 -0
  403. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/type-transform.js +0 -0
  404. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/util.js → types/dist-cjs/uri.js} +0 -0
  405. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/waiter.js → types/dist-cjs/util.js} +0 -0
  406. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/abort.js +0 -0
  407. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpApiKeyAuth.js +0 -0
  408. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpAuthScheme.js +0 -0
  409. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpAuthSchemeProvider.js +0 -0
  410. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpSigner.js +0 -0
  411. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/IdentityProviderConfig.js +0 -0
  412. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/auth.js +0 -0
  413. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/index.js +0 -0
  414. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/blob/blob-payload-input-types.js +0 -0
  415. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/checksum.js +0 -0
  416. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/client.js +0 -0
  417. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/command.js +0 -0
  418. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/config.js +0 -0
  419. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/index.js +0 -0
  420. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/manager.js +0 -0
  421. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/pool.js +0 -0
  422. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/crypto.js +0 -0
  423. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/downlevel-ts3.4/transform/type-transform.js +0 -0
  424. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/encode.js +0 -0
  425. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoint.js +0 -0
  426. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/EndpointRuleObject.js +0 -0
  427. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/ErrorRuleObject.js +0 -0
  428. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/RuleSetObject.js +0 -0
  429. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/TreeRuleObject.js +0 -0
  430. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/index.js +0 -0
  431. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/shared.js +0 -0
  432. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/eventStream.js +0 -0
  433. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/checksum.js +0 -0
  434. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/defaultClientConfiguration.js +0 -0
  435. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/defaultExtensionConfiguration.js +0 -0
  436. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/index.js +0 -0
  437. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/retry.js +0 -0
  438. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/externals-check/browser-externals-check.js +0 -0
  439. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/http/httpHandlerInitialization.js +0 -0
  440. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/http.js +0 -0
  441. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/apiKeyIdentity.js +0 -0
  442. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/awsCredentialIdentity.js +0 -0
  443. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/identity.js +0 -0
  444. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/index.js +0 -0
  445. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/tokenIdentity.js +0 -0
  446. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/index.js +0 -0
  447. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/logger.js +0 -0
  448. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/middleware.js +0 -0
  449. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/pagination.js +0 -0
  450. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/profile.js +0 -0
  451. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/response.js +0 -0
  452. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/retry.js +0 -0
  453. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/serde.js +0 -0
  454. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/shapes.js +0 -0
  455. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/signature.js +0 -0
  456. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/stream.js +0 -0
  457. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-common-types.js +0 -0
  458. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-payload-input-types.js +0 -0
  459. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-payload-output-types.js +0 -0
  460. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transfer.js +0 -0
  461. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/client-method-transforms.js +0 -0
  462. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/client-payload-blob-type-narrow.js +0 -0
  463. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/exact.js +0 -0
  464. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/no-undefined.js +0 -0
  465. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/type-transform.js +0 -0
  466. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/uri.js +0 -0
  467. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/util.js +0 -0
  468. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/waiter.js +0 -0
  469. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/abort.d.ts +0 -0
  470. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpApiKeyAuth.d.ts +0 -0
  471. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpAuthScheme.d.ts +0 -0
  472. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpAuthSchemeProvider.d.ts +0 -0
  473. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpSigner.d.ts +0 -0
  474. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/IdentityProviderConfig.d.ts +0 -0
  475. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/auth.d.ts +0 -0
  476. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/index.d.ts +0 -0
  477. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/blob/blob-payload-input-types.d.ts +0 -0
  478. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/checksum.d.ts +0 -0
  479. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/client.d.ts +0 -0
  480. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/command.d.ts +0 -0
  481. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/config.d.ts +0 -0
  482. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/index.d.ts +0 -0
  483. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/manager.d.ts +0 -0
  484. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/pool.d.ts +0 -0
  485. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/crypto.d.ts +0 -0
  486. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +0 -0
  487. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/encode.d.ts +0 -0
  488. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoint.d.ts +0 -0
  489. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/EndpointRuleObject.d.ts +0 -0
  490. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/ErrorRuleObject.d.ts +0 -0
  491. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/RuleSetObject.d.ts +0 -0
  492. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/TreeRuleObject.d.ts +0 -0
  493. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/index.d.ts +0 -0
  494. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/shared.d.ts +0 -0
  495. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/eventStream.d.ts +0 -0
  496. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/checksum.d.ts +0 -0
  497. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/defaultClientConfiguration.d.ts +0 -0
  498. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/defaultExtensionConfiguration.d.ts +0 -0
  499. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/index.d.ts +0 -0
  500. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/retry.d.ts +0 -0
  501. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/externals-check/browser-externals-check.d.ts +0 -0
  502. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/http/httpHandlerInitialization.d.ts +0 -0
  503. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/http.d.ts +0 -0
  504. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/apiKeyIdentity.d.ts +0 -0
  505. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/awsCredentialIdentity.d.ts +0 -0
  506. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/identity.d.ts +0 -0
  507. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/index.d.ts +0 -0
  508. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/tokenIdentity.d.ts +0 -0
  509. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/index.d.ts +0 -0
  510. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/logger.d.ts +0 -0
  511. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/middleware.d.ts +0 -0
  512. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/pagination.d.ts +0 -0
  513. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/profile.d.ts +0 -0
  514. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/response.d.ts +0 -0
  515. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/retry.d.ts +0 -0
  516. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/serde.d.ts +0 -0
  517. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/shapes.d.ts +0 -0
  518. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/signature.d.ts +0 -0
  519. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/stream.d.ts +0 -0
  520. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -0
  521. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -0
  522. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -0
  523. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transfer.d.ts +0 -0
  524. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/client-method-transforms.d.ts +0 -0
  525. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -0
  526. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/exact.d.ts +0 -0
  527. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/no-undefined.d.ts +0 -0
  528. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/type-transform.d.ts +0 -0
  529. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/abort.d.ts +0 -0
  530. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +0 -0
  531. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +0 -0
  532. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +0 -0
  533. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpSigner.d.ts +0 -0
  534. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +0 -0
  535. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/auth.d.ts +0 -0
  536. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/index.d.ts +0 -0
  537. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -0
  538. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/checksum.d.ts +0 -0
  539. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/client.d.ts +0 -0
  540. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/command.d.ts +0 -0
  541. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/config.d.ts +0 -0
  542. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/index.d.ts +0 -0
  543. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/manager.d.ts +0 -0
  544. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/pool.d.ts +0 -0
  545. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/crypto.d.ts +0 -0
  546. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +0 -0
  547. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/encode.d.ts +0 -0
  548. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoint.d.ts +0 -0
  549. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +0 -0
  550. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +0 -0
  551. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +0 -0
  552. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +0 -0
  553. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/index.d.ts +0 -0
  554. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/shared.d.ts +0 -0
  555. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/eventStream.d.ts +0 -0
  556. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/checksum.d.ts +0 -0
  557. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +0 -0
  558. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +0 -0
  559. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/index.d.ts +0 -0
  560. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/retry.d.ts +0 -0
  561. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +0 -0
  562. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -0
  563. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/http.d.ts +0 -0
  564. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +0 -0
  565. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +0 -0
  566. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/identity.d.ts +0 -0
  567. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/index.d.ts +0 -0
  568. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/tokenIdentity.d.ts +0 -0
  569. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/index.d.ts +0 -0
  570. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/logger.d.ts +0 -0
  571. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/middleware.d.ts +0 -0
  572. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/pagination.d.ts +0 -0
  573. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/profile.d.ts +0 -0
  574. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/response.d.ts +0 -0
  575. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/retry.d.ts +0 -0
  576. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/serde.d.ts +0 -0
  577. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/shapes.d.ts +0 -0
  578. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/signature.d.ts +0 -0
  579. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/stream.d.ts +0 -0
  580. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -0
  581. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -0
  582. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -0
  583. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transfer.d.ts +0 -0
  584. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/client-method-transforms.d.ts +0 -0
  585. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -0
  586. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/exact.d.ts +0 -0
  587. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/no-undefined.d.ts +0 -0
  588. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/type-transform.d.ts +0 -0
  589. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/uri.d.ts +0 -0
  590. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/util.d.ts +0 -0
  591. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/waiter.d.ts +0 -0
  592. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/uri.d.ts +0 -0
  593. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/util.d.ts +0 -0
  594. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/waiter.d.ts +0 -0
  595. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/package.json +0 -0
@@ -5,14 +5,15 @@ const server_interface_1 = require("@aws/language-server-runtimes/server-interfa
5
5
  const got_1 = require("got");
6
6
  const js_md5_1 = require("js-md5");
7
7
  const path = require("path");
8
+ const ScanConstants = require("./constants");
8
9
  const commonUtil_1 = require("../dependencyGraph/commonUtil");
9
10
  class SecurityScanHandler {
10
- client;
11
+ serviceManager;
11
12
  workspace;
12
13
  logging;
13
14
  tokenSource;
14
- constructor(client, workspace, logging) {
15
- this.client = client;
15
+ constructor(serviceManager, workspace, logging) {
16
+ this.serviceManager = serviceManager;
16
17
  this.workspace = workspace;
17
18
  this.logging = logging;
18
19
  this.tokenSource = new server_interface_1.CancellationTokenSource();
@@ -30,14 +31,21 @@ class SecurityScanHandler {
30
31
  cancelSecurityScan() {
31
32
  this.tokenSource.cancel();
32
33
  }
33
- async createCodeResourcePresignedUrlHandler(zipContent) {
34
+ async createCodeResourcePresignedUrlHandler(zipContent, scanName) {
35
+ const uploadIntent = ScanConstants.projectScanUploadIntent;
34
36
  const request = {
35
37
  contentMd5: this.getMd5(zipContent),
36
38
  artifactType: 'SourceCode',
39
+ uploadIntent: uploadIntent,
40
+ uploadContext: {
41
+ codeAnalysisUploadContext: {
42
+ codeScanName: scanName,
43
+ },
44
+ },
37
45
  };
38
46
  try {
39
47
  this.logging.log('Prepare for uploading src context...');
40
- const response = await this.client.createUploadUrl(request);
48
+ const response = await this.serviceManager.getCodewhispererService().createUploadUrl(request);
41
49
  this.logging.log(`Request id: ${response.$response.requestId}`);
42
50
  this.logging.log(`Complete Getting presigned Url for uploading src context.`);
43
51
  this.logging.log(`Uploading src context...`);
@@ -56,7 +64,7 @@ class SecurityScanHandler {
56
64
  async uploadArtifactToS3(zipBuffer, resp) {
57
65
  const encryptionContext = `{"uploadId":"${resp.uploadId}"}`;
58
66
  const md5Content = this.getMd5(zipBuffer);
59
- const headersObj = resp.kmsKeyArn !== '' || resp.kmsKeyArn !== undefined
67
+ const headersObj = resp.kmsKeyArn !== '' && resp.kmsKeyArn !== undefined
60
68
  ? {
61
69
  'Content-MD5': md5Content,
62
70
  'x-amz-server-side-encryption': 'aws:kms',
@@ -72,20 +80,22 @@ class SecurityScanHandler {
72
80
  };
73
81
  const response = await got_1.default.put(resp.uploadUrl, {
74
82
  body: zipBuffer,
75
- headers: headersObj,
83
+ headers: resp?.requestHeaders ?? headersObj,
76
84
  });
77
85
  this.logging.log(`StatusCode: ${response.statusCode}`);
78
86
  }
79
- async createScanJob(artifactMap, languageName) {
87
+ async createScanJob(artifactMap, languageName, scanName) {
80
88
  const req = {
81
89
  artifacts: artifactMap,
82
90
  programmingLanguage: {
83
91
  languageName,
84
92
  },
93
+ scope: ScanConstants.projectCodeAnalysisScope,
94
+ codeScanName: scanName,
85
95
  };
86
96
  this.logging.log(`Creating scan job...`);
87
97
  try {
88
- const resp = await this.client.startCodeAnalysis(req);
98
+ const resp = await this.serviceManager.getCodewhispererService().startCodeAnalysis(req);
89
99
  this.logging.log(`Request id: ${resp.$response.requestId}`);
90
100
  return resp;
91
101
  }
@@ -99,13 +109,13 @@ class SecurityScanHandler {
99
109
  let status = 'Pending';
100
110
  let timer = 0;
101
111
  const codeScanJobPollingIntervalSeconds = 1;
102
- const codeScanJobTimeoutSeconds = 50;
112
+ const codeScanJobTimeoutSeconds = ScanConstants.standardScanTimeoutMs;
103
113
  // eslint-disable-next-line no-constant-condition
104
114
  while (true) {
105
115
  const req = {
106
116
  jobId: jobId,
107
117
  };
108
- const resp = await this.client.getCodeAnalysis(req);
118
+ const resp = await this.serviceManager.getCodewhispererService().getCodeAnalysis(req);
109
119
  this.logging.log(`Request id: ${resp.$response.requestId}`);
110
120
  if (resp.status !== 'Pending') {
111
121
  status = resp.status;
@@ -128,7 +138,7 @@ class SecurityScanHandler {
128
138
  jobId,
129
139
  codeAnalysisFindingsSchema: 'codeanalysis/findings/1.0',
130
140
  };
131
- const response = await this.client.listCodeAnalysisFindings(request);
141
+ const response = await this.serviceManager.getCodewhispererService().listCodeAnalysisFindings(request);
132
142
  this.logging.log(`Request id: ${response.$response.requestId}`);
133
143
  const aggregatedCodeScanIssueList = await this.mapToAggregatedList(response.codeAnalysisFindings, projectPath);
134
144
  return aggregatedCodeScanIssueList;
@@ -1 +1 @@
1
- {"version":3,"file":"securityScanHandler.js","sourceRoot":"","sources":["../../../src/language-server/securityScan/securityScanHandler.ts"],"names":[],"mappings":";;;AAAA,qFAKuD;AACvD,6BAAqB;AACrB,mCAA4B;AAC5B,6BAA4B;AAW5B,8DAAqD;AAGrD,MAAa,mBAAmB;IACpB,MAAM,CAA2B;IACjC,SAAS,CAAW;IACpB,OAAO,CAAS;IACjB,WAAW,CAAyB;IAE3C,YAAY,MAAiC,EAAE,SAAoB,EAAE,OAAgB;QACjF,IAAI,CAA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CAAC,CAAC,CAAC;4BAC7D,OAAO,EAAE,KAAK,CAAC,OAAO;4BACtB,OAAO,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE;4BAClE,KAAK,EAAE,KAAK,CAAC,KAAK;4BAClB,WAAW,EAAE,KAAK,CAAC,WAAW;4BAC9B,UAAU,EAAE,KAAK,CAAC,UAAU;4BAC5B,YAAY,EAAE,KAAK,CAAC,YAAY;4BAChC,SAAS,EAAE,KAAK,CAAC,SAAS;4BAC1B,MAAM,EAAE,KAAK,CAAC,MAAM;4BACpB,sBAAsB,EAAE,KAAK,CAAC,sBAAsB;4BACpD,QAAQ,EAAE,KAAK,CAAC,QAAQ;4BACxB,cAAc,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc;4BAChD,cAAc,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc;yBACnD,CAAA;oBACL,CAAC,CAAC;iBACL,CAAA;gBACD,2BAA2B,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;YAC7D,CAAC;QACL,CAAC;QACD,OAAO,2BAA2B,CAAA;IACtC,CAAC;CACJ;AA3LD,kDA2LC;AAED,MAAa,0BAA2B,SAAQ,KAAK;IACjD,YAAY,OAAgB;QACxB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAA;IAC5C,CAAC;CACJ;AALD,gEAKC"}
1
+ {"version":3,"file":"securityScanHandler.js","sourceRoot":"","sources":["../../../src/language-server/securityScan/securityScanHandler.ts"],"names":[],"mappings":";;;AAAA,qFAKuD;AACvD,6BAAqB;AACrB,mCAA4B;AAC5B,6BAA4B;AAC5B,6CAA4C;AAU5C,8DAAqD;AAIrD,MAAa,mBAAmB;IACpB,cAAc,CAA4B;IAC1C,SAAS,CAAW;IACpB,OAAO,CAAS;IACjB,WAAW,CAAyB;IAE3C,YAAY,cAA0C,EA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K,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAA;IAC5C,CAAC;CACJ;AALD,gEAKC"}
@@ -35,7 +35,7 @@ export declare class CodeDiffTracker<T extends AcceptedSuggestionEntry = Accepte
35
35
  * @param acceptedString the accepted suggestion that was inserted into the editor
36
36
  */
37
37
  static checkDiff(currString?: string, acceptedString?: string): number;
38
- constructor(workspace: Features['workspace'], logging: Features['logging'], recordMetric: (entry: T, codeModificationPercentage: number, unmodifiedAcceptedCharacterCount: number) => void, options?: CodeDiffTrackerOptions);
38
+ constructor(workspace: Features['workspace'], logging: Features['logging'], recordMetric: (entry: T, codeModificationPercentage: number, unmodifiedAcceptedCharacterCount: number) => Promise<void>, options?: CodeDiffTrackerOptions);
39
39
  enqueue(suggestion: T): void;
40
40
  shutdown(): Promise<void>;
41
41
  get eventQueue(): T[];
@@ -97,7 +97,7 @@ class CodeDiffTracker {
97
97
  });
98
98
  const percentage = _a.checkDiff(currString, suggestion.originalString);
99
99
  const unmodifiedAcceptedCharacterCount = (0, utils_1.getUnmodifiedAcceptedTokens)(suggestion.originalString, currString);
100
- this.#recordMetric(suggestion, percentage, unmodifiedAcceptedCharacterCount);
100
+ await this.#recordMetric(suggestion, percentage, unmodifiedAcceptedCharacterCount);
101
101
  }
102
102
  }
103
103
  catch (e) {
@@ -106,21 +106,24 @@ class CodeDiffTracker {
106
106
  }
107
107
  #startInterval() {
108
108
  if (!this.#interval) {
109
- this.#interval = setInterval(async () => {
110
- try {
111
- await this.flush();
112
- }
113
- catch (e) {
114
- this.#logging.log(`flush failed: ${(0, utils_1.getErrorMessage)(e)}`);
115
- }
116
- finally {
117
- this.#interval?.refresh();
118
- }
119
- }, this.#flushInterval);
109
+ const recursiveSetTimeout = () => {
110
+ this.#interval = setTimeout(async () => {
111
+ try {
112
+ await this.flush();
113
+ }
114
+ catch (e) {
115
+ this.#logging.log(`flush failed: ${(0, utils_1.getErrorMessage)(e)}`);
116
+ }
117
+ finally {
118
+ recursiveSetTimeout();
119
+ }
120
+ }, this.#flushInterval);
121
+ };
122
+ recursiveSetTimeout();
120
123
  }
121
124
  }
122
125
  #clearInterval() {
123
- clearInterval(this.#interval);
126
+ clearTimeout(this.#interval);
124
127
  this.#interval = undefined;
125
128
  }
126
129
  }
@@ -1 +1 @@
1
- {"version":3,"file":"codeDiffTracker.js","sourceRoot":"","sources":["../../../src/language-server/telemetry/codeDiffTracker.ts"],"names":[],"mappings":";;;;AAAA,6DAA8C;AAG9C,oCAAuE;AAiBvE;;;GAGG;AACH,MAAa,eAAe;IACxB;;OAEG;IACK,MAAM,CAAU,cAAc,GAAG,IAAI,GAAG,EAAE,CAAA,CAAC,WAAW;IAC9D;;OAEG;IACK,MAAM,CAAU,sBAAsB,GAAG,IAAI,GAAG,EAAE,GAAG,CAAC,CAAA,CAAC,YAAY;IACnE,MAAM,CAAU,sBAAsB,GAAG,KAAK,CAAA;IAEtD,WAAW,CAAK;IAChB,SAAS,CAAiB;IAC1B,UAAU,CAAuB;IACjC,QAAQ,CAAqB;IAC7B,aAAa,CAAkG;IAC/G,cAAc,CAAQ;IACtB,qBAAqB,CAAQ;IAC7B,aAAa,CAAQ;IAErB;;;;;OAKG;IACI,MAAM,CAAC,SAAS,CAAC,UAAmB,EAAE,cAAuB;QAChE,IAAI,CAAC,UAAU,IAAI,CAAC,cAAc,EAAE,CAAC;YACjC,OAAO,CAAC,CAAA;QACZ,CAAC;QAED,MAAM,IAAI,GAAG,IAAA,8BAAQ,EAAC,UAAU,EAAE,cAAc,CAAC,CAAA;QACjD,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;IACpD,CAAC;IAED,YACI,SAAgC,EAChC,OAA4B,EAC5B,YAA8G,EAC9G,OAAgC;QAEhC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAA;QACrB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAA;QAC3B,IAAI,C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AC,OAAO,CAAC,EAAE,CAAC;YACT,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,0CAA0C,CAAC,EAAE,CAAC,CAAA;QACpE,CAAC;IACL,CAAC;IAED,cAAc;QACV,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YAClB,MAAM,mBAAmB,GAAG,GAAG,EAAE;gBAC7B,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,KAAK,IAAI,EAAE;oBACnC,IAAI,CAAC;wBACD,MAAM,IAAI,CAAC,KAAK,EAAE,CAAA;oBACtB,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,IAAA,uBAAe,EAAC,CAAC,CAAC,EAAE,CAAC,CAAA;oBAC5D,CAAC;4BAAS,CAAC;wBACP,mBAAmB,EAAE,CAAA;oBACzB,CAAC;gBACL,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;YAC3B,CAAC,CAAA;YACD,mBAAmB,EAAE,CAAA;QACzB,CAAC;IACL,CAAC;IAED,cAAc;QACV,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAC5B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC9B,CAAC;;AAlJL,0CAmJC"}
@@ -1,22 +1,24 @@
1
- import { CodeWhispererServiceToken } from './codeWhispererService';
2
- import { CredentialsProvider, CredentialsType, Logging, Telemetry, Workspace, SDKInitializator } from '@aws/language-server-runtimes/server-interface';
1
+ import { CredentialsProvider, Logging, Telemetry } from '@aws/language-server-runtimes/server-interface';
3
2
  import { CodeWhispererSession } from './session/sessionManager';
4
3
  import { UserContext, OptOutPreference, UserIntent } from '../client/token/codewhispererbearertokenclient';
5
4
  import { ChatConversationType, InteractWithMessageEvent } from './telemetry/types';
6
5
  import { CodewhispererLanguage } from './languageDetection';
7
- export declare class TelemetryService extends CodeWhispererServiceToken {
6
+ import { BaseAmazonQServiceManager } from './amazonQServiceManager/BaseAmazonQServiceManager';
7
+ export declare class TelemetryService {
8
+ private serviceManager;
8
9
  private userContext;
9
10
  private optOutPreference;
10
11
  private enableTelemetryEventsToDestination;
11
12
  private telemetry;
12
- private credentialsType;
13
13
  private credentialsProvider;
14
14
  private logging;
15
15
  private readonly cwInteractionTypeMap;
16
- constructor(credentialsProvider: CredentialsProvider, credentialsType: CredentialsType, telemetry: Telemetry, logging: Logging, workspace: Workspace, awsQRegion: string, awsQEndpointUrl: string, sdkInitializator: SDKInitializator);
16
+ constructor(serviceManager: BaseAmazonQServiceManager, credentialsProvider: CredentialsProvider, telemetry: Telemetry, logging: Logging);
17
17
  updateUserContext(userContext: UserContext | undefined): void;
18
18
  updateOptOutPreference(optOutPreference: OptOutPreference): void;
19
19
  updateEnableTelemetryEventsToDestination(enableTelemetryEventsToDestination: boolean): void;
20
+ private getCredentialsType;
21
+ private getService;
20
22
  private getSuggestionState;
21
23
  private shouldSendTelemetry;
22
24
  private logSendTelemetryEventFailure;
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TelemetryService = void 0;
4
- const codeWhispererService_1 = require("./codeWhispererService");
5
4
  const utils_1 = require("./utils");
6
5
  const types_1 = require("./telemetry/types");
7
6
  const languageDetection_1 = require("./languageDetection");
8
7
  const chatTelemetryController_1 = require("./chat/telemetry/chatTelemetryController");
9
- class TelemetryService extends codeWhispererService_1.CodeWhispererServiceToken {
8
+ class TelemetryService {
9
+ // Using Base service manager here to support fallback cases such as in codeWhispererServer
10
+ serviceManager;
10
11
  userContext;
11
12
  optOutPreference;
12
13
  enableTelemetryEventsToDestination;
13
14
  telemetry;
14
- credentialsType;
15
15
  credentialsProvider;
16
16
  logging;
17
17
  cwInteractionTypeMap = {
@@ -25,10 +25,9 @@ class TelemetryService extends codeWhispererService_1.CodeWhispererServiceToken
25
25
  [types_1.ChatInteractionType.Downvote]: 'DOWNVOTE',
26
26
  [types_1.ChatInteractionType.ClickBodyLink]: 'CLICK_BODY_LINK',
27
27
  };
28
- constructor(credentialsProvider, credentialsType, telemetry, logging, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator) {
29
- super(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator);
28
+ constructor(serviceManager, credentialsProvider, telemetry, logging) {
29
+ this.serviceManager = serviceManager;
30
30
  this.credentialsProvider = credentialsProvider;
31
- this.credentialsType = credentialsType;
32
31
  this.telemetry = telemetry;
33
32
  this.logging = logging;
34
33
  this.enableTelemetryEventsToDestination = true;
@@ -42,6 +41,16 @@ class TelemetryService extends codeWhispererService_1.CodeWhispererServiceToken
42
41
  updateEnableTelemetryEventsToDestination(enableTelemetryEventsToDestination) {
43
42
  this.enableTelemetryEventsToDestination = enableTelemetryEventsToDestination;
44
43
  }
44
+ getCredentialsType() {
45
+ return this.serviceManager.getCodewhispererService().getCredentialsType();
46
+ }
47
+ getService() {
48
+ const service = this.serviceManager.getCodewhispererService();
49
+ if (!service.sendTelemetryEvent) {
50
+ throw new Error(`Service of type: ${service.getCredentialsType()} returned by service manager is not compatible with TelemetryService`);
51
+ }
52
+ return service;
53
+ }
45
54
  getSuggestionState(session) {
46
55
  let suggestionState;
47
56
  switch (session.getAggregatedUserTriggerDecision()) {
@@ -61,7 +70,7 @@ class TelemetryService extends codeWhispererService_1.CodeWhispererServiceToken
61
70
  }
62
71
  shouldSendTelemetry() {
63
72
  const ssoConnectionType = (0, utils_1.getSsoConnectionType)(this.credentialsProvider);
64
- return (this.credentialsType === 'bearer' &&
73
+ return (this.getCredentialsType() === 'bearer' &&
65
74
  ((ssoConnectionType === 'builderId' && this.optOutPreference === 'OPTIN') ||
66
75
  ssoConnectionType === 'identityCenter'));
67
76
  }
@@ -73,20 +82,20 @@ class TelemetryService extends codeWhispererService_1.CodeWhispererServiceToken
73
82
  this.logging.log(`Failed to sendTelemetryEvent to CodeWhisperer, requestId: ${requestId ?? ''}, message: ${error?.message}`);
74
83
  }
75
84
  async invokeSendTelemetryEvent(event) {
76
- if (!this.shouldSendTelemetry()) {
77
- return;
78
- }
79
- const request = {
80
- telemetryEvent: event,
81
- };
82
- if (this.userContext !== undefined) {
83
- request.userContext = this.userContext;
84
- }
85
- if (this.optOutPreference !== undefined) {
86
- request.optOutPreference = this.optOutPreference;
87
- }
88
85
  try {
89
- await this.sendTelemetryEvent(request);
86
+ if (!this.shouldSendTelemetry()) {
87
+ return;
88
+ }
89
+ const request = {
90
+ telemetryEvent: event,
91
+ };
92
+ if (this.userContext !== undefined) {
93
+ request.userContext = this.userContext;
94
+ }
95
+ if (this.optOutPreference !== undefined) {
96
+ request.optOutPreference = this.optOutPreference;
97
+ }
98
+ await this.getService().sendTelemetryEvent(request);
90
99
  }
91
100
  catch (error) {
92
101
  this.logSendTelemetryEventFailure(error);
@@ -1 +1 @@
1
- {"version":3,"file":"telemetryService.js","sourceRoot":"","sources":["../../src/language-server/telemetryService.ts"],"names":[],"mappings":";;;AAAA,iEAAkE;AAwBlE,mCAA6E;AAC7E,6CAM0B;AAC1B,2DAA+E;AAC/E,sFAAqF;AAErF,MAAa,gBAAiB,SAAQ,gDAAyB;IACnD,WAAW,CAAyB;IACpC,gBAAgB,CAAmB;IACnC,kCAAkC,CAAS;IAC3C,SAAS,CAAW;IACpB,eAAe,CAAiB;IAChC,mBAAmB,CAAqB;IACxC,OAAO,CAAS;IAEP,oBAAoB,GAA4D;QAC7F,CAAC,2BAAmB,CAAC,cAAc,CAAC,EAAE,kBAAkB;QACxD,CAAC,2BAAmB,CAAC,WAAW,CAAC,EAAE,cAAc;QACjD,CAAC,2BAAmB,CAAC,IAAI,CAAC,EAAE,MAAM;QAClC,CAAC,2BAAmB,CAAC,SAAS,CAAC,EAAE,YAAY;QAC7C,CAAC,2BAAmB,CAAC,aAAa,CAAC,EAAE,iBAAiB;QACtD,CAAC,2BAAmB,CAAC,cAAc,CAAC,EAAE,iBAAiB;QACvD,CAAC,2BAAmB,CAAC,MAAM,CAAC,EAAE,QAA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AAA;QACL,CAAC;QACD,OAAO,IAAI,CAAC,wBAAwB,CAAC;YACjC,mBAAmB,EAAE,KAAK;SAC7B,CAAC,CAAA;IACN,CAAC;CACJ;AAvZD,4CAuZC"}
1
+ {"version":3,"file":"telemetryService.js","sourceRoot":"","sources":["../../src/language-server/telemetryService.ts"],"names":[],"mappings":";;;AAqBA,mCAA6E;AAC7E,6CAM0B;AAC1B,2DAA+E;AAC/E,sFAAqF;AAGrF,MAAa,gBAAgB;IACzB,2FAA2F;IACnF,cAAc,CAA2B;IACzC,WAAW,CAAyB;IACpC,gBAAgB,CAAmB;IACnC,kCAAkC,CAAS;IAC3C,SAAS,CAAW;IACpB,mBAAmB,CAAqB;IACxC,OAAO,CAAS;IAEP,oBAAoB,GAA4D;QAC7F,CAAC,2BAAmB,CAAC,cAAc,CAAC,EAAE,kBAAkB;QACxD,CAAC,2BAAmB,CAAC,WAAW,CAAC,EAAE,cAAc;QACjD,CAAC,2BAAmB,CAAC,IAAI,CAAC,EAAE,MAAM;QAClC,CAAC,2BAAmB,CAAC,SAAS,CAAC,EAAE,YAAY;QAC7C,CAAC,2BAAmB,CAAC,aAAa,CAAC,EAAE,iBAAiB;QACtD,CAAC,2BAAmB,CAAC,cAAc,CAAC,EAAE,iBAAiB;QACvD,CAAC,2BAAmB,CAAC,MAAM,CAAC,EAAE,QAAQ;QACtC,CAAC,2BAAmB,CAAC,QAAQ,CAAC,EAAE,UAAU;QAC1C,CAAC,2BAAmB,CAAC,aAAa,CAAC,EAAE,iBAAiB;KACzD,CAAA;IAED,YACI,cAAyC,EACzC,mBAAwC,EACxC,SAAoB,EACpB,OAAgB;QAEhB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAA;QAC9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,kCAAkC,GAAG,IAAI,CAA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 +1,7 @@
1
1
  import { TextDocument } from 'vscode-languageserver-textdocument';
2
2
  import { ResponseContext, Suggestion } from './codeWhispererService';
3
+ import { TestFeatures } from '@aws/language-server-runtimes/testing';
4
+ import { SsoConnectionType } from './utils';
3
5
  export declare const HELLO_WORLD_IN_CSHARP = "class HelloWorld\n{\n static void Main()\n {\n Console.WriteLine(\"Hello World!\");\n }\n}";
4
6
  export declare const SPECIAL_CHARACTER_HELLO_WORLD = "{class HelloWorld";
5
7
  export declare const HELLO_WORLD_WITH_WINDOWS_ENDING: string;
@@ -75,3 +77,4 @@ export declare const createIterableResponse: <T>(data: T[]) => AsyncIterable<T>;
75
77
  * Copy of implementation from AWS Toolkit for VSCode https://github.com/aws/aws-toolkit-vscode/blob/a2daf60dca5e5699b8b25f6dc84708295f042c38/packages/core/src/test/testUtil.ts#L482
76
78
  */
77
79
  export declare function shuffleList<T>(list: T[]): T[];
80
+ export declare const setCredentialsForAmazonQTokenServiceManagerFactory: (getFeatures: () => TestFeatures) => (connectionType: SsoConnectionType) => void;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createIterableResponse = exports.EMPTY_RESULT = exports.EXPECTED_RESULT_WITHOUT_REFERENCES = exports.EXPECTED_RESULT_WITH_REFERENCES = exports.EXPECTED_SUGGESTION_LIST = exports.EXPECTED_REFERENCE = exports.EXPECTED_RESULT = exports.EXPECTED_SESSION_ID = exports.EXPECTED_RESPONSE_CONTEXT = exports.EXPECTED_SUGGESTION = exports.SOME_SINGLE_LINE_FILE = exports.SINGLE_LINE_FILE_CUTOFF_INDEX = exports.HELLO_WORLD_LINE = exports.SAMPLE_FILE_OF_60_LINES_IN_JAVA = exports.SOME_FILE_WITH_EXTENSION = exports.SOME_UNSUPPORTED_FILE = exports.SOME_CLOSED_FILE = exports.SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID = exports.SOME_FILE = exports.HELLO_WORLD_WITH_WINDOWS_ENDING = exports.SPECIAL_CHARACTER_HELLO_WORLD = exports.HELLO_WORLD_IN_CSHARP = void 0;
3
+ exports.setCredentialsForAmazonQTokenServiceManagerFactory = exports.createIterableResponse = exports.EMPTY_RESULT = exports.EXPECTED_RESULT_WITHOUT_REFERENCES = exports.EXPECTED_RESULT_WITH_REFERENCES = exports.EXPECTED_SUGGESTION_LIST = exports.EXPECTED_REFERENCE = exports.EXPECTED_RESULT = exports.EXPECTED_SESSION_ID = exports.EXPECTED_RESPONSE_CONTEXT = exports.EXPECTED_SUGGESTION = exports.SOME_SINGLE_LINE_FILE = exports.SINGLE_LINE_FILE_CUTOFF_INDEX = exports.HELLO_WORLD_LINE = exports.SAMPLE_FILE_OF_60_LINES_IN_JAVA = exports.SOME_FILE_WITH_EXTENSION = exports.SOME_UNSUPPORTED_FILE = exports.SOME_CLOSED_FILE = exports.SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID = exports.SOME_FILE = exports.HELLO_WORLD_WITH_WINDOWS_ENDING = exports.SPECIAL_CHARACTER_HELLO_WORLD = exports.HELLO_WORLD_IN_CSHARP = void 0;
4
4
  exports.shuffleList = shuffleList;
5
5
  const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
6
6
  exports.HELLO_WORLD_IN_CSHARP = `class HelloWorld
@@ -177,4 +177,15 @@ function shuffleList(list) {
177
177
  }
178
178
  return shuffledList;
179
179
  }
180
+ const setCredentialsForAmazonQTokenServiceManagerFactory = (getFeatures) => {
181
+ return (connectionType) => {
182
+ const features = getFeatures();
183
+ features.credentialsProvider.hasCredentials.returns(true);
184
+ features.credentialsProvider.getConnectionType.returns(connectionType);
185
+ features.credentialsProvider.getCredentials.returns({
186
+ token: 'test-token',
187
+ });
188
+ };
189
+ };
190
+ exports.setCredentialsForAmazonQTokenServiceManagerFactory = setCredentialsForAmazonQTokenServiceManagerFactory;
180
191
  //# sourceMappingURL=testUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"testUtils.js","sourceRoot":"","sources":["../../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perty(exports, "__esModule", { value: true });
5
5
  exports.utgLanguageConfigs = void 0;
6
6
  exports.isTestFile = isTestFile;
7
7
  const path = require("path");
8
- const pathUtils_1 = require("../pathUtils");
8
+ const lsp_core_1 = require("@aws/lsp-core");
9
9
  exports.utgLanguageConfigs = {
10
10
  // Java regexes are not working efficiently for class or function extraction
11
11
  java: {
@@ -24,7 +24,7 @@ exports.utgLanguageConfigs = {
24
24
  },
25
25
  };
26
26
  function isTestFile(filePath, languageConfig) {
27
- const normalizedFilePath = (0, pathUtils_1.normalize)(filePath);
27
+ const normalizedFilePath = lsp_core_1.pathUtils.normalize(filePath);
28
28
  const pathContainsTest = normalizedFilePath.includes('tests/') ||
29
29
  normalizedFilePath.includes('test/') ||
30
30
  normalizedFilePath.includes('tst/');
@@ -1 +1 @@
1
- {"version":3,"file":"codeParsingUtil.js","sourceRoot":"","sources":["../../../../src/language-server/utilities/supplementalContextUtil/codeParsingUtil.ts"],"names":[],"mappings":";AAAA,2DAA2D;AAC3D,sKAAsK;;;AAiCtK,gCAmBC;AAlDD,6BAA4B;AAC5B,4CAAwC;AAW3B,QAAA,kBAAkB,GAAsC;IACjE,4EAA4E;IAC5E,IAAI,EAAE;QACF,SAAS,EAAE,OAAO;QAClB,mBAAmB,EAAE,mEAAmE;QACxF,yBAAyB,EACrB,oHAAoH,EAAE,mDAAmD;QAC7K,sBAAsB,EAAE,sCAAsC,EAAE,sBAAsB;QACtF,qBAAqB,EAAE,4BAA4B;KACtD;IACD,MAAM,EAAE;QACJ,SAAS,EAAE,KAAK;QAChB,mBAAmB,EAAE,4CAA4C;QACjE,yBAAyB,EAAE,sCAAsC,EAAE,cAAc;QACjF,sBAAsB,EAAE,sBAAsB;QAC9C,qBAAqB,EAAE,oBAAoB;KAC9C;CACJ,CAAA;AAED,SAAgB,UAAU,CACtB,QAAgB,EAChB,cAGC;IAED,MAAM,kBAAkB,GAAG,IAAA,qBAAS,EAAC,QAAQ,CAAC,CAAA;IAC9C,MAAM,gBAAgB,GAClB,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACrC,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC;QACpC,kBAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IACvC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,kBAAkB,EAAE,cAAc,CAAC,UAAU,CAAC,CAAA;IAEjG,IAAI,gBAAgB,IAAI,yBAAyB,EAAE,CAAC;QAChD,OAAO,IAAI,CAAA;IACf,CAAC;IAED,OAAO,KAAK,CAAA;AAChB,CAAC;AAED,SAAS,gBAAgB,CAAC,QAAgB,EAAE,QAAoC;IAC5E,MAAM,cAAc,GAAG,0BAAkB,CAAC,QAAQ,CAAC,CAAA;IACnD,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,sEAAsE;QACtE,6CAA6C;QAC7C,OAAO,KAAK,CAAA;IAChB,CAAC;IACD,MAAM,mBAAmB,GAAG,cAAc,CAAC,mBAAmB,CAAA;IAE9D,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;IAExC,OAAO,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;AAC7C,CAAC"}
1
+ {"version":3,"file":"codeParsingUtil.js","sourceRoot":"","sources":["../../../../src/language-server/utilities/supplementalContextUtil/codeParsingUtil.ts"],"names":[],"mappings":";AAAA,2DAA2D;AAC3D,sKAAsK;;;AAiCtK,gCAmBC;AAlDD,6BAA4B;AAC5B,4CAAyC;AAW5B,QAAA,kBAAkB,GAAsC;IACjE,4EAA4E;IAC5E,IAAI,EAAE;QACF,SAAS,EAAE,OAAO;QAClB,mBAAmB,EAAE,mEAAmE;QACxF,yBAAyB,EACrB,oHAAoH,EAAE,mDAAmD;QAC7K,sBAAsB,EAAE,sCAAsC,EAAE,sBAAsB;QACtF,qBAAqB,EAAE,4BAA4B;KACtD;IACD,MAAM,EAAE;QACJ,SAAS,EAAE,KAAK;QAChB,mBAAmB,EAAE,4CAA4C;QACjE,yBAAyB,EAAE,sCAAsC,EAAE,cAAc;QACjF,sBAAsB,EAAE,sBAAsB;QAC9C,qBAAqB,EAAE,oBAAoB;KAC9C;CACJ,CAAA;AAED,SAAgB,UAAU,CACtB,QAAgB,EAChB,cAGC;IAED,MAAM,kBAAkB,GAAG,oBAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;IACxD,MAAM,gBAAgB,GAClB,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACrC,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC;QACpC,kBAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IACvC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,kBAAkB,EAAE,cAAc,CAAC,UAAU,CAAC,CAAA;IAEjG,IAAI,gBAAgB,IAAI,yBAAyB,EAAE,CAAC;QAChD,OAAO,IAAI,CAAA;IACf,CAAC;IAED,OAAO,KAAK,CAAA;AAChB,CAAC;AAED,SAAS,gBAAgB,CAAC,QAAgB,EAAE,QAAoC;IAC5E,MAAM,cAAc,GAAG,0BAAkB,CAAC,QAAQ,CAAC,CAAA;IACnD,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,sEAAsE;QACtE,6CAA6C;QAC7C,OAAO,KAAK,CAAA;IAChB,CAAC;IACD,MAAM,mBAAmB,GAAG,cAAc,CAAC,mBAAmB,CAAA;IAE9D,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;IAExC,OAAO,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;AAC7C,CAAC"}
@@ -12,7 +12,7 @@ const nodeUrl = require("url");
12
12
  const rankBm25_1 = require("./rankBm25");
13
13
  const constants_1 = require("../../models/constants");
14
14
  const codeParsingUtil_1 = require("./codeParsingUtil");
15
- const filesystemUtilities_1 = require("../filesystemUtilities");
15
+ const lsp_core_1 = require("@aws/lsp-core");
16
16
  const server_interface_1 = require("@aws/language-server-runtimes/server-interface");
17
17
  const supplementalContextUtil_1 = require("./supplementalContextUtil");
18
18
  // TODO: ugly, can we make it prettier? like we have to manually type 'java', 'javascriptreact' which is error prone
@@ -201,7 +201,7 @@ async function getCrossFileCandidates(document, workspace) {
201
201
  return {
202
202
  file: candidate,
203
203
  // PORT_TODO: port and test getFileDistance to work with LSP's URIs
204
- fileDistance: (0, filesystemUtilities_1.getFileDistance)(targetFile, candidate.uri),
204
+ fileDistance: lsp_core_1.fileSystemUtils.getFileDistance(targetFile, candidate.uri),
205
205
  };
206
206
  })
207
207
  .sort((file1, file2) => {
@@ -1 +1 @@
1
- {"version":3,"file":"crossFileContextUtil.js","sourceRoot":"","sources":["../../../../src/language-server/utilities/supplementalContextUtil/crossFileContextUtil.ts"],"names":[],"mappings":";AAAA,mDAAmD;AACnD,2KAA2K;AAC3K,oFAAoF;;;AAiDpF,wEAgEC;AAkFD,8CAYC;AAiBD,wDA4CC;AA1QD,6BAA4B;AAC5B,+BAA8B;AAC9B,yCAAoD;AACpD,sDAA+D;AAC/D,uDAA8C;AAC9C,gEAAwD;AAExD,qFAMuD;AACvD,uEAA6D;AAU7D,oHAAoH;AACpH,sDAAsD;AACtD,mDAAmD;AACtC,QAAA,2BAA2B,GAA8D;IAClG,IAAI,EAAE,IAAI,GAAG,CAAS,CAAC,OAAO,CAAC,CAAC;IAChC,MAAM,EAAE,IAAI,GAAG,CAAS,CAAC,KAAK,CAAC,CAAC;IAChC,UAAU,EAAE,IAAI,GAAG,CAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC5C,eAAe,EAAE,IAAI,GAAG,CAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACjD,UAAU,EAAE,IAAI,GAAG,CAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC5C,eAAe,EAAE,IAAI,GAAG,CAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CACpD,CAAA;AAED,SAAS,oBAAoB,CAAC,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AAU,EAAC,gBAAgB,CAAC,QAAQ,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CACnE,CAAA;IACL,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,SAAuB,EAAgB,EAAE;QAC3C,OAAO;YACH,IAAI,EAAE,SAAS;YACf,mEAAmE;YACnE,YAAY,EAAE,0BAAe,CAAC,eAAe,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,CAAC;SAC3E,CAAA;IACL,CAAC,CAAC;SACD,IAAI,CAAC,CAAC,KAAmB,EAAE,KAAmB,EAAE,EAAE;QAC/C,OAAO,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;IAClD,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,cAA4B,EAAE,EAAE;QAClC,OAAO,cAAc,CAAC,IAAI,CAAA;IAC9B,CAAC,CAAC,CAAA;AACV,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAwB;IAC9C,IAAI,KAAK,CAAC,uBAAuB,EAAE,CAAC;QAChC,MAAM,IAAI,2CAAiB,EAAE,CAAA;IACjC,CAAC;AACL,CAAC"}
@@ -8,6 +8,7 @@ export declare function isObject(value: unknown): value is {
8
8
  [key: number | string | symbol]: any;
9
9
  };
10
10
  export declare function isNullish(value: unknown): value is null | undefined;
11
+ export declare function isBool(value: unknown): value is boolean;
11
12
  export declare function getCompletionType(suggestion: Suggestion): CodewhispererCompletionType;
12
13
  export declare function parseJson(jsonString: string): any;
13
14
  export declare function getErrorMessage(error: any): string;
@@ -16,3 +17,5 @@ export declare const flattenMetric: (obj: any, prefix?: string) => any;
16
17
  export declare function getSsoConnectionType(credentialsProvider: CredentialsProvider): SsoConnectionType;
17
18
  export declare function getUnmodifiedAcceptedTokens(origin: string, after: string): number;
18
19
  export declare function getEndPositionForAcceptedSuggestion(content: string, startPosition: Position): Position;
20
+ export declare function safeGet<T, E extends Error>(object: T | undefined, customError?: E): T;
21
+ export declare function isStringOrNull(object: any): object is string | null;
@@ -4,6 +4,7 @@ exports.flattenMetric = void 0;
4
4
  exports.isAwsError = isAwsError;
5
5
  exports.isObject = isObject;
6
6
  exports.isNullish = isNullish;
7
+ exports.isBool = isBool;
7
8
  exports.getCompletionType = getCompletionType;
8
9
  exports.parseJson = parseJson;
9
10
  exports.getErrorMessage = getErrorMessage;
@@ -11,6 +12,8 @@ exports.getBearerTokenFromProvider = getBearerTokenFromProvider;
11
12
  exports.getSsoConnectionType = getSsoConnectionType;
12
13
  exports.getUnmodifiedAcceptedTokens = getUnmodifiedAcceptedTokens;
13
14
  exports.getEndPositionForAcceptedSuggestion = getEndPositionForAcceptedSuggestion;
15
+ exports.safeGet = safeGet;
16
+ exports.isStringOrNull = isStringOrNull;
14
17
  const fastest_levenshtein_1 = require("fastest-levenshtein");
15
18
  const constants_1 = require("./constants");
16
19
  function isAwsError(error) {
@@ -31,6 +34,9 @@ function isObject(value) {
31
34
  function isNullish(value) {
32
35
  return value === null || value === undefined;
33
36
  }
37
+ function isBool(value) {
38
+ return typeof value === 'boolean';
39
+ }
34
40
  function getCompletionType(suggestion) {
35
41
  const nonBlankLines = suggestion.content.split('\n').filter(line => line.trim() !== '').length;
36
42
  return nonBlankLines > 1 ? 'Block' : 'Line';
@@ -112,4 +118,13 @@ function getEndPositionForAcceptedSuggestion(content, startPosition) {
112
118
  }
113
119
  return endPosition;
114
120
  }
121
+ function safeGet(object, customError) {
122
+ if (object === undefined) {
123
+ throw customError ?? new Error(`Expected object: "${String(object)} to be defined, but found undefined`);
124
+ }
125
+ return object;
126
+ }
127
+ function isStringOrNull(object) {
128
+ return typeof object === 'string' || object === null;
129
+ }
115
130
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/language-server/utils.ts"],"names":[],"mappings":";;;AAcA,gCAMC;AAUD,4BAEC;AAED,8BAEC;AAED,8CAIC;AAED,8BAMC;AAED,0CAKC;AAED,gEAYC;AAsBD,oDAIC;AASD,kEAE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