@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.
- package/CHANGELOG.md +51 -0
- package/README.md +62 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +16 -0
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +6 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +16 -0
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +6 -3
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/package.json +6 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/README.md +9 -0
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/index.js +193 -76
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http-handler.js +39 -15
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-handler.js +9 -1
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/server.mock.js +9 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +41 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/write-request-body.js +13 -9
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http-handler.d.ts +4 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +11 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +3 -0
- 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
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/package.json +10 -10
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/index.js +30 -8
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +13 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +53 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +53 -0
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/package.json +6 -6
- package/node_modules/@smithy/types/dist-cjs/waiter.js +1 -0
- package/out/client/token/bearer-token-service.json +1650 -96
- package/out/client/token/codewhisperer.d.ts +1 -1
- package/out/constants.d.ts +6 -0
- package/out/constants.js +7 -1
- package/out/constants.js.map +1 -1
- package/out/language-server/amazonQServiceManager/AmazonQTokenServiceManager.d.ts +90 -0
- package/out/language-server/amazonQServiceManager/AmazonQTokenServiceManager.js +466 -0
- package/out/language-server/amazonQServiceManager/AmazonQTokenServiceManager.js.map +1 -0
- package/out/language-server/amazonQServiceManager/BaseAmazonQServiceManager.d.ts +5 -0
- package/out/language-server/amazonQServiceManager/BaseAmazonQServiceManager.js +3 -0
- package/out/language-server/amazonQServiceManager/BaseAmazonQServiceManager.js.map +1 -0
- package/out/language-server/amazonQServiceManager/errors.d.ts +28 -0
- package/out/language-server/amazonQServiceManager/errors.js +70 -0
- package/out/language-server/amazonQServiceManager/errors.js.map +1 -0
- package/out/language-server/amazonQServiceManager/qDeveloperProfiles.d.ts +38 -0
- package/out/language-server/amazonQServiceManager/qDeveloperProfiles.js +85 -0
- package/out/language-server/amazonQServiceManager/qDeveloperProfiles.js.map +1 -0
- package/out/language-server/chat/chatController.d.ts +1 -1
- package/out/language-server/chat/chatController.js +19 -3
- package/out/language-server/chat/chatController.js.map +1 -1
- package/out/language-server/chat/chatSessionManagementService.d.ts +3 -8
- package/out/language-server/chat/chatSessionManagementService.js +5 -57
- package/out/language-server/chat/chatSessionManagementService.js.map +1 -1
- package/out/language-server/chat/chatSessionService.d.ts +2 -3
- package/out/language-server/chat/chatSessionService.js +7 -21
- package/out/language-server/chat/chatSessionService.js.map +1 -1
- package/out/language-server/chat/contexts/triggerContext.d.ts +1 -1
- package/out/language-server/chat/contexts/triggerContext.js +2 -1
- package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.js +88 -81
- package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
- package/out/language-server/codeWhispererSecurityScanServer.d.ts +2 -4
- package/out/language-server/codeWhispererSecurityScanServer.js +24 -11
- package/out/language-server/codeWhispererSecurityScanServer.js.map +1 -1
- package/out/language-server/codeWhispererServer.js +93 -65
- package/out/language-server/codeWhispererServer.js.map +1 -1
- package/out/language-server/codeWhispererService.d.ts +12 -1
- package/out/language-server/codeWhispererService.js +45 -16
- package/out/language-server/codeWhispererService.js.map +1 -1
- package/out/language-server/configuration/qConfigurationServer.d.ts +17 -4
- package/out/language-server/configuration/qConfigurationServer.js +103 -14
- package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
- package/out/language-server/dependencyGraph/commonUtil.d.ts +0 -1
- package/out/language-server/dependencyGraph/commonUtil.js +0 -11
- package/out/language-server/dependencyGraph/commonUtil.js.map +1 -1
- package/out/language-server/dependencyGraph/dependencyGraph.js +2 -2
- package/out/language-server/dependencyGraph/dependencyGraph.js.map +1 -1
- package/out/language-server/netTransform/transformHandler.d.ts +3 -2
- package/out/language-server/netTransform/transformHandler.js +7 -2
- package/out/language-server/netTransform/transformHandler.js.map +1 -1
- package/out/language-server/netTransformServer.js +3 -3
- package/out/language-server/netTransformServer.js.map +1 -1
- package/out/language-server/proxy-server.js +3 -14
- package/out/language-server/proxy-server.js.map +1 -1
- package/out/language-server/qChatServer.d.ts +2 -4
- package/out/language-server/qChatServer.js +30 -16
- package/out/language-server/qChatServer.js.map +1 -1
- package/out/language-server/securityScan/constants.d.ts +3 -0
- package/out/language-server/securityScan/constants.js +7 -0
- package/out/language-server/securityScan/constants.js.map +1 -0
- package/out/language-server/securityScan/securityScanHandler.d.ts +5 -5
- package/out/language-server/securityScan/securityScanHandler.js +22 -12
- package/out/language-server/securityScan/securityScanHandler.js.map +1 -1
- package/out/language-server/telemetry/codeDiffTracker.d.ts +1 -1
- package/out/language-server/telemetry/codeDiffTracker.js +16 -13
- package/out/language-server/telemetry/codeDiffTracker.js.map +1 -1
- package/out/language-server/telemetryService.d.ts +7 -5
- package/out/language-server/telemetryService.js +29 -20
- package/out/language-server/telemetryService.js.map +1 -1
- package/out/language-server/testUtils.d.ts +3 -0
- package/out/language-server/testUtils.js +12 -1
- package/out/language-server/testUtils.js.map +1 -1
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.js +2 -2
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.js.map +1 -1
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js +2 -2
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
- package/out/language-server/utils.d.ts +3 -0
- package/out/language-server/utils.js +15 -0
- package/out/language-server/utils.js.map +1 -1
- package/package.json +8 -8
- package/node_modules/@smithy/node-http-handler/README.md +0 -4
- package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -21
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -8
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -6
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -14
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -6
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +0 -13
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +0 -13
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +0 -23
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +0 -23
- package/out/language-server/auto-trigger/autoTrigger.test.d.ts +0 -1
- package/out/language-server/auto-trigger/autoTrigger.test.js +0 -82
- package/out/language-server/auto-trigger/autoTrigger.test.js.map +0 -1
- package/out/language-server/chat/chatController.test.d.ts +0 -1
- package/out/language-server/chat/chatController.test.js +0 -709
- package/out/language-server/chat/chatController.test.js.map +0 -1
- package/out/language-server/chat/chatEventParser.test.d.ts +0 -1
- package/out/language-server/chat/chatEventParser.test.js +0 -239
- package/out/language-server/chat/chatEventParser.test.js.map +0 -1
- package/out/language-server/chat/chatSessionManagementService.test.d.ts +0 -1
- package/out/language-server/chat/chatSessionManagementService.test.js +0 -77
- package/out/language-server/chat/chatSessionManagementService.test.js.map +0 -1
- package/out/language-server/chat/chatSessionService.test.d.ts +0 -1
- package/out/language-server/chat/chatSessionService.test.js +0 -86
- package/out/language-server/chat/chatSessionService.test.js.map +0 -1
- package/out/language-server/chat/contexts/documentContext.test.d.ts +0 -1
- package/out/language-server/chat/contexts/documentContext.test.js +0 -117
- package/out/language-server/chat/contexts/documentContext.test.js.map +0 -1
- package/out/language-server/chat/contexts/triggerContexts.test.d.ts +0 -1
- package/out/language-server/chat/contexts/triggerContexts.test.js +0 -81
- package/out/language-server/chat/contexts/triggerContexts.test.js.map +0 -1
- package/out/language-server/chat/contexts/utils.test.d.ts +0 -1
- package/out/language-server/chat/contexts/utils.test.js +0 -72
- package/out/language-server/chat/contexts/utils.test.js.map +0 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.test.d.ts +0 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.test.js +0 -195
- package/out/language-server/chat/telemetry/chatTelemetryController.test.js.map +0 -1
- package/out/language-server/codeWhispererServer.test.d.ts +0 -1
- package/out/language-server/codeWhispererServer.test.js +0 -1377
- package/out/language-server/codeWhispererServer.test.js.map +0 -1
- package/out/language-server/dependencyGraph/csharpDependencyGraph.test.d.ts +0 -1
- package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js +0 -483
- package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js.map +0 -1
- package/out/language-server/dependencyGraph/gitIgnoreFilter.d.ts +0 -7
- package/out/language-server/dependencyGraph/gitIgnoreFilter.js +0 -39
- package/out/language-server/dependencyGraph/gitIgnoreFilter.js.map +0 -1
- package/out/language-server/languageDetection.test.d.ts +0 -1
- package/out/language-server/languageDetection.test.js +0 -31
- package/out/language-server/languageDetection.test.js.map +0 -1
- package/out/language-server/mergeRightUtils.test.d.ts +0 -1
- package/out/language-server/mergeRightUtils.test.js +0 -53
- package/out/language-server/mergeRightUtils.test.js.map +0 -1
- package/out/language-server/netTransform/tests/converter.test.d.ts +0 -1
- package/out/language-server/netTransform/tests/converter.test.js +0 -108
- package/out/language-server/netTransform/tests/converter.test.js.map +0 -1
- package/out/language-server/netTransform/tests/transformHandler.test.d.ts +0 -1
- package/out/language-server/netTransform/tests/transformHandler.test.js +0 -252
- package/out/language-server/netTransform/tests/transformHandler.test.js.map +0 -1
- package/out/language-server/netTransform/tests/validation.test.d.ts +0 -1
- package/out/language-server/netTransform/tests/validation.test.js +0 -84
- package/out/language-server/netTransform/tests/validation.test.js.map +0 -1
- package/out/language-server/qChatServer.test.d.ts +0 -1
- package/out/language-server/qChatServer.test.js +0 -51
- package/out/language-server/qChatServer.test.js.map +0 -1
- package/out/language-server/securityScan/securityScanHandler.test.d.ts +0 -1
- package/out/language-server/securityScan/securityScanHandler.test.js +0 -171
- package/out/language-server/securityScan/securityScanHandler.test.js.map +0 -1
- package/out/language-server/session/sessionManager.test.d.ts +0 -1
- package/out/language-server/session/sessionManager.test.js +0 -588
- package/out/language-server/session/sessionManager.test.js.map +0 -1
- package/out/language-server/telemetry/codeDiffTracker.test.d.ts +0 -1
- package/out/language-server/telemetry/codeDiffTracker.test.js +0 -125
- package/out/language-server/telemetry/codeDiffTracker.test.js.map +0 -1
- package/out/language-server/telemetry/codePercentage.test.d.ts +0 -1
- package/out/language-server/telemetry/codePercentage.test.js +0 -214
- package/out/language-server/telemetry/codePercentage.test.js.map +0 -1
- package/out/language-server/telemetry/userTriggerDecision.test.d.ts +0 -1
- package/out/language-server/telemetry/userTriggerDecision.test.js +0 -1348
- package/out/language-server/telemetry/userTriggerDecision.test.js.map +0 -1
- package/out/language-server/telemetry.test.d.ts +0 -1
- package/out/language-server/telemetry.test.js +0 -98
- package/out/language-server/telemetry.test.js.map +0 -1
- package/out/language-server/telemetryService.test.d.ts +0 -1
- package/out/language-server/telemetryService.test.js +0 -771
- package/out/language-server/telemetryService.test.js.map +0 -1
- package/out/language-server/utilities/filesystemUtilities.d.ts +0 -8
- package/out/language-server/utilities/filesystemUtilities.js +0 -30
- package/out/language-server/utilities/filesystemUtilities.js.map +0 -1
- package/out/language-server/utilities/filesystemUtilities.test.d.ts +0 -1
- package/out/language-server/utilities/filesystemUtilities.test.js +0 -85
- package/out/language-server/utilities/filesystemUtilities.test.js.map +0 -1
- package/out/language-server/utilities/pathUtils.d.ts +0 -27
- package/out/language-server/utilities/pathUtils.js +0 -79
- package/out/language-server/utilities/pathUtils.js.map +0 -1
- package/out/language-server/utilities/pathUtils.test.d.ts +0 -1
- package/out/language-server/utilities/pathUtils.test.js +0 -43
- package/out/language-server/utilities/pathUtils.test.js.map +0 -1
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.d.ts +0 -5
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.js +0 -49
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.js.map +0 -1
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.d.ts +0 -1
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.js +0 -157
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.js.map +0 -1
- package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.d.ts +0 -1
- package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js +0 -88
- package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js.map +0 -1
- package/out/language-server/utilities/telemetryUtils.test.d.ts +0 -1
- package/out/language-server/utilities/telemetryUtils.test.js +0 -207
- package/out/language-server/utilities/telemetryUtils.test.js.map +0 -1
- package/out/language-server/utilities/textUtils.d.ts +0 -1
- package/out/language-server/utilities/textUtils.js +0 -12
- package/out/language-server/utilities/textUtils.js.map +0 -1
- package/out/language-server/utilities/textUtils.test.d.ts +0 -1
- package/out/language-server/utilities/textUtils.test.js +0 -21
- package/out/language-server/utilities/textUtils.test.js.map +0 -1
- package/out/language-server/utils.test.d.ts +0 -1
- package/out/language-server/utils.test.js +0 -152
- package/out/language-server/utils.test.js.map +0 -1
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller}/LICENSE +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/README.md +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/index.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/AbortController.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/index.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/index.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/abort-controller → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler}/LICENSE +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/constants.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/get-transformed-headers.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http-handler.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-handler.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/readable.mock.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/server.mock.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-connection-timeout.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-socket-timeout.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/collector.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/index.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -0
- /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
- /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
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/constants.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/get-transformed-headers.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/index.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-connection-pool.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/readable.mock.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/stream-collector/collector.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/constants.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/get-transformed-headers.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/index.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-connection-pool.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-handler.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/readable.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/server.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/index.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/constants.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/index.d.ts +0 -0
- /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
- /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
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/server.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +0 -0
- /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
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/write-request-body.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/LICENSE +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/README.md +0 -0
- /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
- /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
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -0
- /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
- /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
- /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
- /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
- /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
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/Field.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/Fields.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/extensions/index.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpHandler.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/index.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/types.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/extensions/index.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/index.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts +0 -0
- /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
- /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
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/types.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/LICENSE +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/README.md +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-cjs/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-es/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-types/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/package.json +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/LICENSE +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/README.md +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/checksum.js → types/dist-cjs/abort.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpApiKeyAuth.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpAuthScheme.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpSigner.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/IdentityProviderConfig.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/auth.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/blob/blob-payload-input-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/client.js → types/dist-cjs/checksum.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/command.js → types/dist-cjs/client.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/crypto.js → types/dist-cjs/command.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/config.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/manager.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/pool.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/encode.js → types/dist-cjs/crypto.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/endpoint.js → types/dist-cjs/encode.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/eventStream.js → types/dist-cjs/endpoint.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/EndpointRuleObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/ErrorRuleObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/RuleSetObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/TreeRuleObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/shared.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/http.js → types/dist-cjs/eventStream.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/checksum.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/defaultClientConfiguration.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/retry.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/externals-check/browser-externals-check.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/http/httpHandlerInitialization.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/logger.js → types/dist-cjs/http.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/apiKeyIdentity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/awsCredentialIdentity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/identity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/tokenIdentity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/middleware.js → types/dist-cjs/logger.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/pagination.js → types/dist-cjs/middleware.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/profile.js → types/dist-cjs/pagination.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/response.js → types/dist-cjs/profile.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/retry.js → types/dist-cjs/response.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/serde.js → types/dist-cjs/retry.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/shapes.js → types/dist-cjs/serde.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/signature.js → types/dist-cjs/shapes.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/stream.js → types/dist-cjs/signature.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/transfer.js → types/dist-cjs/stream.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/uri.js → types/dist-cjs/transfer.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/client-method-transforms.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/exact.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/no-undefined.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/type-transform.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/util.js → types/dist-cjs/uri.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/waiter.js → types/dist-cjs/util.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/abort.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpApiKeyAuth.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpAuthScheme.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpAuthSchemeProvider.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpSigner.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/IdentityProviderConfig.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/auth.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/blob/blob-payload-input-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/checksum.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/client.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/command.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/config.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/manager.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/pool.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/crypto.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/downlevel-ts3.4/transform/type-transform.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/encode.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoint.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/EndpointRuleObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/ErrorRuleObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/RuleSetObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/TreeRuleObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/shared.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/eventStream.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/checksum.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/defaultClientConfiguration.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/defaultExtensionConfiguration.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/retry.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/externals-check/browser-externals-check.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/http/httpHandlerInitialization.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/http.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/apiKeyIdentity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/awsCredentialIdentity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/identity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/tokenIdentity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/logger.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/middleware.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/pagination.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/profile.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/response.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/retry.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/serde.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/shapes.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/signature.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/stream.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-common-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-payload-input-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-payload-output-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transfer.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/client-method-transforms.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/client-payload-blob-type-narrow.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/exact.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/no-undefined.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/type-transform.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/uri.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/util.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/waiter.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/abort.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpApiKeyAuth.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpAuthScheme.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpSigner.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/IdentityProviderConfig.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/auth.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/blob/blob-payload-input-types.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/client.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/command.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/config.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/manager.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/pool.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/crypto.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/encode.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoint.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/EndpointRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/ErrorRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/RuleSetObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/TreeRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/shared.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/eventStream.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/defaultClientConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/defaultExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/retry.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/externals-check/browser-externals-check.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/http/httpHandlerInitialization.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/http.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/apiKeyIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/awsCredentialIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/identity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/tokenIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/logger.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/middleware.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/pagination.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/profile.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/response.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/retry.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/serde.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/shapes.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/signature.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/stream.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -0
- /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
- /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
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transfer.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/client-method-transforms.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/exact.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/no-undefined.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/abort.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpSigner.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/auth.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/index.d.ts +0 -0
- /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
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/client.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/command.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/config.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/manager.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/pool.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/crypto.d.ts +0 -0
- /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
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/encode.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoint.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/shared.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/eventStream.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/retry.d.ts +0 -0
- /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
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/http.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/identity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/tokenIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/logger.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/middleware.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/pagination.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/profile.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/response.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/retry.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/serde.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/shapes.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/signature.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/stream.d.ts +0 -0
- /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
- /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
- /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
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transfer.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/client-method-transforms.d.ts +0 -0
- /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
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/exact.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/no-undefined.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/uri.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/util.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/waiter.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/uri.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/util.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/waiter.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/package.json +0 -0
|
@@ -1,771 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const telemetryService_1 = require("./telemetryService");
|
|
4
|
-
const ts_sinon_1 = require("ts-sinon");
|
|
5
|
-
const constants_1 = require("./constants");
|
|
6
|
-
const types_1 = require("./telemetry/types");
|
|
7
|
-
class MockCredentialsProvider {
|
|
8
|
-
mockIamCredentials;
|
|
9
|
-
mockBearerCredentials;
|
|
10
|
-
mockConnectionMetadata;
|
|
11
|
-
hasCredentials(type) {
|
|
12
|
-
if (type === 'iam') {
|
|
13
|
-
return this.mockIamCredentials !== undefined;
|
|
14
|
-
}
|
|
15
|
-
else if (type === 'bearer') {
|
|
16
|
-
return this.mockBearerCredentials !== undefined;
|
|
17
|
-
}
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
getCredentials(type) {
|
|
21
|
-
if (type === 'iam') {
|
|
22
|
-
return this.mockIamCredentials;
|
|
23
|
-
}
|
|
24
|
-
else if (type === 'bearer') {
|
|
25
|
-
return this.mockBearerCredentials;
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
getConnectionMetadata() {
|
|
30
|
-
return this.mockConnectionMetadata;
|
|
31
|
-
}
|
|
32
|
-
setConnectionMetadata(metadata) {
|
|
33
|
-
this.mockConnectionMetadata = metadata;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
describe('TelemetryService', () => {
|
|
37
|
-
let telemetry;
|
|
38
|
-
let clock;
|
|
39
|
-
let telemetryService;
|
|
40
|
-
let mockCredentialsProvider;
|
|
41
|
-
const mockAwsQRegion = 'mock-aws-q-region';
|
|
42
|
-
const mockAwsQEndpointUrl = 'mock-aws-q-endpoint-url';
|
|
43
|
-
const logging = {
|
|
44
|
-
log: (message) => {
|
|
45
|
-
console.log(message);
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
const mockWorkspace = {};
|
|
49
|
-
const mockSession = {
|
|
50
|
-
codewhispererSessionId: 'test-session-id',
|
|
51
|
-
responseContext: {
|
|
52
|
-
requestId: 'test-request-id',
|
|
53
|
-
codewhispererSessionId: 'test-session-id',
|
|
54
|
-
},
|
|
55
|
-
customizationArn: 'test-arn',
|
|
56
|
-
language: 'tsx',
|
|
57
|
-
suggestions: [
|
|
58
|
-
{
|
|
59
|
-
itemId: 'item-id-1',
|
|
60
|
-
content: 'line1\nline2\nline3',
|
|
61
|
-
references: [],
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
completionSessionResult: {
|
|
65
|
-
'item-id-1': {
|
|
66
|
-
accepted: true,
|
|
67
|
-
seen: true,
|
|
68
|
-
discarded: false,
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
acceptedSuggestionId: 'item-id-1',
|
|
72
|
-
firstCompletionDisplayLatency: 100,
|
|
73
|
-
timeToFirstRecommendation: 200,
|
|
74
|
-
getAggregatedUserTriggerDecision: () => 'Accept',
|
|
75
|
-
startPosition: {
|
|
76
|
-
line: 12,
|
|
77
|
-
character: 23,
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
const mockSdkRuntimeConfigurator = Object.assign(
|
|
81
|
-
// Default callable function for v3 clients
|
|
82
|
-
(Ctor, current_config) => new Ctor({ ...current_config }),
|
|
83
|
-
// Property for v2 clients
|
|
84
|
-
{
|
|
85
|
-
v2: (Ctor, current_config) => new Ctor({ ...current_config }),
|
|
86
|
-
});
|
|
87
|
-
beforeEach(() => {
|
|
88
|
-
clock = ts_sinon_1.default.useFakeTimers({
|
|
89
|
-
now: 1483228800000,
|
|
90
|
-
});
|
|
91
|
-
mockCredentialsProvider = new MockCredentialsProvider();
|
|
92
|
-
telemetry = {
|
|
93
|
-
emitMetric: ts_sinon_1.default.stub(),
|
|
94
|
-
onClientTelemetry: ts_sinon_1.default.stub(),
|
|
95
|
-
};
|
|
96
|
-
});
|
|
97
|
-
afterEach(() => {
|
|
98
|
-
clock.restore();
|
|
99
|
-
ts_sinon_1.default.restore();
|
|
100
|
-
});
|
|
101
|
-
it('updateUserContext updates the userContext property', () => {
|
|
102
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', {}, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
103
|
-
const mockUserContext = {
|
|
104
|
-
clientId: 'aaaabbbbccccdddd',
|
|
105
|
-
ideCategory: 'ECLIPSE',
|
|
106
|
-
ideVersion: '1.1.1',
|
|
107
|
-
operatingSystem: 'MAC',
|
|
108
|
-
product: 'INLINE',
|
|
109
|
-
};
|
|
110
|
-
telemetryService.updateUserContext(mockUserContext);
|
|
111
|
-
ts_sinon_1.default.assert.match(telemetryService.userContext, mockUserContext);
|
|
112
|
-
});
|
|
113
|
-
it('updateOptOutPreference updates the optOutPreference property', () => {
|
|
114
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', {}, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
115
|
-
const mockOptOutPreference = 'OPTIN';
|
|
116
|
-
telemetryService.updateOptOutPreference(mockOptOutPreference);
|
|
117
|
-
ts_sinon_1.default.assert.match(telemetryService.optOutPreference, mockOptOutPreference);
|
|
118
|
-
});
|
|
119
|
-
it('updateEnableTelemetryEventsToDestination updates the enableTelemetryEventsToDestination property', () => {
|
|
120
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', {}, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
121
|
-
telemetryService.updateEnableTelemetryEventsToDestination(true);
|
|
122
|
-
ts_sinon_1.default.assert.match(telemetryService.enableTelemetryEventsToDestination, true);
|
|
123
|
-
});
|
|
124
|
-
it('getSuggestionState fetches the suggestion state from CodeWhispererSession', () => {
|
|
125
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', {}, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
126
|
-
const getSuggestionState = telemetryService.getSuggestionState.bind(telemetryService);
|
|
127
|
-
let session = {
|
|
128
|
-
getAggregatedUserTriggerDecision: () => {
|
|
129
|
-
return 'Accept';
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
ts_sinon_1.default.assert.match(getSuggestionState(session), 'ACCEPT');
|
|
133
|
-
session = {
|
|
134
|
-
getAggregatedUserTriggerDecision: () => {
|
|
135
|
-
return 'Reject';
|
|
136
|
-
},
|
|
137
|
-
};
|
|
138
|
-
ts_sinon_1.default.assert.match(getSuggestionState(session), 'REJECT');
|
|
139
|
-
session = {
|
|
140
|
-
getAggregatedUserTriggerDecision: () => {
|
|
141
|
-
return 'Discard';
|
|
142
|
-
},
|
|
143
|
-
};
|
|
144
|
-
ts_sinon_1.default.assert.match(getSuggestionState(session), 'DISCARD');
|
|
145
|
-
session = {
|
|
146
|
-
getAggregatedUserTriggerDecision: () => {
|
|
147
|
-
return 'Empty';
|
|
148
|
-
},
|
|
149
|
-
};
|
|
150
|
-
ts_sinon_1.default.assert.match(getSuggestionState(session), 'EMPTY');
|
|
151
|
-
session = {
|
|
152
|
-
getAggregatedUserTriggerDecision: () => {
|
|
153
|
-
return undefined;
|
|
154
|
-
},
|
|
155
|
-
};
|
|
156
|
-
ts_sinon_1.default.assert.match(getSuggestionState(session), 'EMPTY');
|
|
157
|
-
});
|
|
158
|
-
it('should not emit user trigger decision if login is invalid (IAM)', () => {
|
|
159
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'iam', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
160
|
-
const invokeSendTelemetryEventStub = ts_sinon_1.default.stub(telemetryService, 'sendTelemetryEvent');
|
|
161
|
-
telemetryService.emitUserTriggerDecision(mockSession);
|
|
162
|
-
ts_sinon_1.default.assert.notCalled(invokeSendTelemetryEventStub);
|
|
163
|
-
});
|
|
164
|
-
it('should not emit user trigger decision if login is BuilderID, but user chose OPTOUT option', () => {
|
|
165
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
166
|
-
sso: {
|
|
167
|
-
startUrl: constants_1.BUILDER_ID_START_URL,
|
|
168
|
-
},
|
|
169
|
-
});
|
|
170
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
171
|
-
const invokeSendTelemetryEventStub = ts_sinon_1.default.stub(telemetryService, 'sendTelemetryEvent');
|
|
172
|
-
telemetryService.updateOptOutPreference('OPTOUT');
|
|
173
|
-
telemetryService.emitUserTriggerDecision(mockSession);
|
|
174
|
-
ts_sinon_1.default.assert.notCalled(invokeSendTelemetryEventStub);
|
|
175
|
-
});
|
|
176
|
-
it('should handle SSO connection type change at runtime', () => {
|
|
177
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
178
|
-
const sendTelemetryEventStub = ts_sinon_1.default
|
|
179
|
-
.stub(telemetryService, 'sendTelemetryEvent')
|
|
180
|
-
.returns(Promise.resolve());
|
|
181
|
-
telemetryService.updateOptOutPreference('OPTOUT'); // Disables telemetry for builderId startUrl
|
|
182
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
183
|
-
sso: {
|
|
184
|
-
startUrl: 'https://some-random-test-idc-directory.awsapps.com',
|
|
185
|
-
},
|
|
186
|
-
});
|
|
187
|
-
// Emitting event with IdC connection
|
|
188
|
-
telemetryService.emitUserTriggerDecision(mockSession);
|
|
189
|
-
ts_sinon_1.default.assert.calledOnce(sendTelemetryEventStub);
|
|
190
|
-
// Switch to BuilderId connection
|
|
191
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
192
|
-
sso: {
|
|
193
|
-
startUrl: constants_1.BUILDER_ID_START_URL,
|
|
194
|
-
},
|
|
195
|
-
});
|
|
196
|
-
sendTelemetryEventStub.resetHistory();
|
|
197
|
-
// Should not emit event anymore with BuilderId
|
|
198
|
-
telemetryService.emitUserTriggerDecision(mockSession);
|
|
199
|
-
ts_sinon_1.default.assert.notCalled(sendTelemetryEventStub);
|
|
200
|
-
});
|
|
201
|
-
it('should emit userTriggerDecision event to STE and to the destination', () => {
|
|
202
|
-
const expectedUserTriggerDecisionEvent = {
|
|
203
|
-
telemetryEvent: {
|
|
204
|
-
userTriggerDecisionEvent: {
|
|
205
|
-
sessionId: 'test-session-id',
|
|
206
|
-
requestId: 'test-request-id',
|
|
207
|
-
customizationArn: 'test-arn',
|
|
208
|
-
programmingLanguage: { languageName: 'typescript' },
|
|
209
|
-
completionType: 'BLOCK',
|
|
210
|
-
suggestionState: 'ACCEPT',
|
|
211
|
-
recommendationLatencyMilliseconds: 100,
|
|
212
|
-
timestamp: new Date(Date.now()),
|
|
213
|
-
triggerToResponseLatencyMilliseconds: 200,
|
|
214
|
-
suggestionReferenceCount: 0,
|
|
215
|
-
generatedLine: 3,
|
|
216
|
-
numberOfRecommendations: 1,
|
|
217
|
-
perceivedLatencyMilliseconds: undefined,
|
|
218
|
-
acceptedCharacterCount: 17,
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
optOutPreference: 'OPTIN',
|
|
222
|
-
};
|
|
223
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
224
|
-
sso: {
|
|
225
|
-
startUrl: 'idc-start-url',
|
|
226
|
-
},
|
|
227
|
-
});
|
|
228
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
229
|
-
telemetryService.updateEnableTelemetryEventsToDestination(true);
|
|
230
|
-
const invokeSendTelemetryEventStub = ts_sinon_1.default
|
|
231
|
-
.stub(telemetryService, 'sendTelemetryEvent')
|
|
232
|
-
.returns(Promise.resolve());
|
|
233
|
-
telemetryService.updateOptOutPreference('OPTIN');
|
|
234
|
-
telemetryService.emitUserTriggerDecision(mockSession);
|
|
235
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(invokeSendTelemetryEventStub, expectedUserTriggerDecisionEvent);
|
|
236
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(telemetry.emitMetric, {
|
|
237
|
-
name: 'codewhisperer_userTriggerDecision',
|
|
238
|
-
data: {
|
|
239
|
-
codewhispererSessionId: 'test-session-id',
|
|
240
|
-
codewhispererFirstRequestId: 'test-request-id',
|
|
241
|
-
credentialStartUrl: undefined,
|
|
242
|
-
codewhispererSuggestionState: 'Accept',
|
|
243
|
-
codewhispererCompletionType: 'Block',
|
|
244
|
-
codewhispererLanguage: 'tsx',
|
|
245
|
-
codewhispererTriggerType: undefined,
|
|
246
|
-
codewhispererAutomatedTriggerType: undefined,
|
|
247
|
-
codewhispererTriggerCharacter: undefined,
|
|
248
|
-
codewhispererLineNumber: 12,
|
|
249
|
-
codewhispererCursorOffset: 23,
|
|
250
|
-
codewhispererSuggestionCount: 1,
|
|
251
|
-
codewhispererClassifierResult: undefined,
|
|
252
|
-
codewhispererClassifierThreshold: undefined,
|
|
253
|
-
codewhispererTotalShownTime: 0,
|
|
254
|
-
codewhispererTypeaheadLength: 0,
|
|
255
|
-
codewhispererTimeSinceLastDocumentChange: undefined,
|
|
256
|
-
codewhispererTimeSinceLastUserDecision: undefined,
|
|
257
|
-
codewhispererTimeToFirstRecommendation: 200,
|
|
258
|
-
codewhispererPreviousSuggestionState: undefined,
|
|
259
|
-
codewhispererSupplementalContextTimeout: undefined,
|
|
260
|
-
codewhispererSupplementalContextIsUtg: undefined,
|
|
261
|
-
codewhispererSupplementalContextLength: undefined,
|
|
262
|
-
codewhispererCustomizationArn: 'test-arn',
|
|
263
|
-
},
|
|
264
|
-
});
|
|
265
|
-
});
|
|
266
|
-
it('should not emit userTriggerDecision event to destination when enableTelemetryEventsToDestination is disabled', () => {
|
|
267
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
268
|
-
sso: {
|
|
269
|
-
startUrl: constants_1.BUILDER_ID_START_URL,
|
|
270
|
-
},
|
|
271
|
-
});
|
|
272
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
273
|
-
telemetryService.updateEnableTelemetryEventsToDestination(false);
|
|
274
|
-
telemetryService.updateOptOutPreference('OPTOUT');
|
|
275
|
-
telemetryService.emitUserTriggerDecision(mockSession);
|
|
276
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetry.emitMetric, {
|
|
277
|
-
name: 'codewhisperer_userTriggerDecision',
|
|
278
|
-
});
|
|
279
|
-
});
|
|
280
|
-
describe('Chat interact with message', () => {
|
|
281
|
-
let telemetryService;
|
|
282
|
-
let mockCredentialsProvider;
|
|
283
|
-
let invokeSendTelemetryEventStub;
|
|
284
|
-
beforeEach(() => {
|
|
285
|
-
mockCredentialsProvider = new MockCredentialsProvider();
|
|
286
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
287
|
-
sso: {
|
|
288
|
-
startUrl: 'idc-start-url',
|
|
289
|
-
},
|
|
290
|
-
});
|
|
291
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
292
|
-
invokeSendTelemetryEventStub = ts_sinon_1.default
|
|
293
|
-
.stub(telemetryService, 'sendTelemetryEvent')
|
|
294
|
-
.returns(Promise.resolve());
|
|
295
|
-
});
|
|
296
|
-
afterEach(() => {
|
|
297
|
-
ts_sinon_1.default.restore();
|
|
298
|
-
});
|
|
299
|
-
it('should send InteractWithMessage event with correct parameters and emit metric to destination', () => {
|
|
300
|
-
const metric = {
|
|
301
|
-
cwsprChatMessageId: 'message123',
|
|
302
|
-
codewhispererCustomizationArn: 'arn:123',
|
|
303
|
-
cwsprChatInteractionType: types_1.ChatInteractionType.InsertAtCursor,
|
|
304
|
-
cwsprChatInteractionTarget: 'CODE',
|
|
305
|
-
cwsprChatAcceptedCharactersLength: 100,
|
|
306
|
-
};
|
|
307
|
-
const conversationId = 'conv123';
|
|
308
|
-
const acceptedLineCount = 5;
|
|
309
|
-
telemetryService.updateEnableTelemetryEventsToDestination(true);
|
|
310
|
-
telemetryService.emitChatInteractWithMessage(metric, {
|
|
311
|
-
conversationId,
|
|
312
|
-
acceptedLineCount,
|
|
313
|
-
});
|
|
314
|
-
const expectedEvent = {
|
|
315
|
-
telemetryEvent: {
|
|
316
|
-
chatInteractWithMessageEvent: {
|
|
317
|
-
conversationId: conversationId,
|
|
318
|
-
messageId: metric.cwsprChatMessageId,
|
|
319
|
-
customizationArn: 'arn:123',
|
|
320
|
-
interactionType: 'INSERT_AT_CURSOR',
|
|
321
|
-
interactionTarget: metric.cwsprChatInteractionTarget,
|
|
322
|
-
acceptedCharacterCount: metric.cwsprChatAcceptedCharactersLength,
|
|
323
|
-
acceptedLineCount: acceptedLineCount,
|
|
324
|
-
acceptedSnippetHasReference: false,
|
|
325
|
-
hasProjectLevelContext: false,
|
|
326
|
-
},
|
|
327
|
-
},
|
|
328
|
-
};
|
|
329
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(invokeSendTelemetryEventStub, expectedEvent);
|
|
330
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(telemetry.emitMetric, {
|
|
331
|
-
name: 'amazonq_interactWithMessage',
|
|
332
|
-
data: {
|
|
333
|
-
cwsprChatMessageId: 'message123',
|
|
334
|
-
codewhispererCustomizationArn: 'arn:123',
|
|
335
|
-
cwsprChatInteractionType: 'insertAtCursor',
|
|
336
|
-
cwsprChatInteractionTarget: 'CODE',
|
|
337
|
-
cwsprChatAcceptedCharactersLength: 100,
|
|
338
|
-
cwsprChatConversationId: 'conv123',
|
|
339
|
-
credentialStartUrl: 'idc-start-url',
|
|
340
|
-
},
|
|
341
|
-
});
|
|
342
|
-
});
|
|
343
|
-
it('should not send InteractWithMessage event to destination when enableTelemetryEventsToDestination flag is disabled', () => {
|
|
344
|
-
const metric = {
|
|
345
|
-
cwsprChatMessageId: 'message123',
|
|
346
|
-
codewhispererCustomizationArn: 'arn:123',
|
|
347
|
-
cwsprChatInteractionType: types_1.ChatInteractionType.InsertAtCursor,
|
|
348
|
-
cwsprChatInteractionTarget: 'CODE',
|
|
349
|
-
cwsprChatAcceptedCharactersLength: 100,
|
|
350
|
-
};
|
|
351
|
-
const conversationId = 'conv123';
|
|
352
|
-
const acceptedLineCount = 5;
|
|
353
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
354
|
-
sso: {
|
|
355
|
-
startUrl: constants_1.BUILDER_ID_START_URL,
|
|
356
|
-
},
|
|
357
|
-
});
|
|
358
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', {}, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
359
|
-
telemetryService.updateEnableTelemetryEventsToDestination(false);
|
|
360
|
-
telemetryService.updateOptOutPreference('OPTOUT');
|
|
361
|
-
telemetryService.emitChatInteractWithMessage(metric, {
|
|
362
|
-
conversationId,
|
|
363
|
-
acceptedLineCount,
|
|
364
|
-
});
|
|
365
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetry.emitMetric, {
|
|
366
|
-
name: 'amazonq_interactWithMessage',
|
|
367
|
-
});
|
|
368
|
-
});
|
|
369
|
-
it('should not send InteractWithMessage when conversationId is undefined', () => {
|
|
370
|
-
const metric = {
|
|
371
|
-
cwsprChatMessageId: 'message123',
|
|
372
|
-
codewhispererCustomizationArn: 'arn:123',
|
|
373
|
-
cwsprChatInteractionType: types_1.ChatInteractionType.InsertAtCursor,
|
|
374
|
-
cwsprChatInteractionTarget: 'CODE',
|
|
375
|
-
cwsprChatAcceptedCharactersLength: 100,
|
|
376
|
-
};
|
|
377
|
-
telemetryService.emitChatInteractWithMessage(metric, {
|
|
378
|
-
acceptedLineCount: 5,
|
|
379
|
-
});
|
|
380
|
-
ts_sinon_1.default.assert.notCalled(invokeSendTelemetryEventStub);
|
|
381
|
-
});
|
|
382
|
-
it('should not send InteractWithMessage when credentialsType is IAM', () => {
|
|
383
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'iam', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
384
|
-
invokeSendTelemetryEventStub = ts_sinon_1.default.stub(telemetryService, 'sendTelemetryEvent');
|
|
385
|
-
const metric = {
|
|
386
|
-
cwsprChatMessageId: 'message123',
|
|
387
|
-
codewhispererCustomizationArn: 'arn:123',
|
|
388
|
-
cwsprChatInteractionType: types_1.ChatInteractionType.InsertAtCursor,
|
|
389
|
-
cwsprChatInteractionTarget: 'CODE',
|
|
390
|
-
cwsprChatAcceptedCharactersLength: 100,
|
|
391
|
-
};
|
|
392
|
-
telemetryService.emitChatInteractWithMessage(metric, {
|
|
393
|
-
conversationId: 'conv123',
|
|
394
|
-
acceptedLineCount: 5,
|
|
395
|
-
});
|
|
396
|
-
ts_sinon_1.default.assert.notCalled(invokeSendTelemetryEventStub);
|
|
397
|
-
});
|
|
398
|
-
it('should not send InteractWithMessage when login is BuilderID, but user chose OPTOUT option', () => {
|
|
399
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
400
|
-
sso: {
|
|
401
|
-
startUrl: constants_1.BUILDER_ID_START_URL,
|
|
402
|
-
},
|
|
403
|
-
});
|
|
404
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
405
|
-
invokeSendTelemetryEventStub = ts_sinon_1.default.stub(telemetryService, 'sendTelemetryEvent');
|
|
406
|
-
telemetryService.updateOptOutPreference('OPTOUT');
|
|
407
|
-
const metric = {
|
|
408
|
-
cwsprChatMessageId: 'message123',
|
|
409
|
-
codewhispererCustomizationArn: 'arn:123',
|
|
410
|
-
cwsprChatInteractionType: types_1.ChatInteractionType.InsertAtCursor,
|
|
411
|
-
cwsprChatInteractionTarget: 'CODE',
|
|
412
|
-
cwsprChatAcceptedCharactersLength: 100,
|
|
413
|
-
};
|
|
414
|
-
telemetryService.emitChatInteractWithMessage(metric, {
|
|
415
|
-
conversationId: 'conv123',
|
|
416
|
-
acceptedLineCount: 5,
|
|
417
|
-
});
|
|
418
|
-
ts_sinon_1.default.assert.notCalled(invokeSendTelemetryEventStub);
|
|
419
|
-
});
|
|
420
|
-
it('should send InteractWithMessage but with optional acceptedLineCount parameter', () => {
|
|
421
|
-
const metric = {
|
|
422
|
-
cwsprChatMessageId: 'message123',
|
|
423
|
-
codewhispererCustomizationArn: 'arn:123',
|
|
424
|
-
cwsprChatInteractionType: types_1.ChatInteractionType.InsertAtCursor,
|
|
425
|
-
cwsprChatInteractionTarget: 'CODE',
|
|
426
|
-
cwsprChatAcceptedCharactersLength: 100,
|
|
427
|
-
};
|
|
428
|
-
const conversationId = 'conv123';
|
|
429
|
-
telemetryService.emitChatInteractWithMessage(metric, {
|
|
430
|
-
conversationId,
|
|
431
|
-
acceptedLineCount: undefined,
|
|
432
|
-
});
|
|
433
|
-
ts_sinon_1.default.assert.calledWithExactly(invokeSendTelemetryEventStub, {
|
|
434
|
-
telemetryEvent: {
|
|
435
|
-
chatInteractWithMessageEvent: {
|
|
436
|
-
conversationId: 'conv123',
|
|
437
|
-
messageId: 'message123',
|
|
438
|
-
customizationArn: 'arn:123',
|
|
439
|
-
interactionType: 'INSERT_AT_CURSOR',
|
|
440
|
-
interactionTarget: 'CODE',
|
|
441
|
-
acceptedCharacterCount: 100,
|
|
442
|
-
acceptedLineCount: undefined, // Should be undefined
|
|
443
|
-
acceptedSnippetHasReference: false,
|
|
444
|
-
hasProjectLevelContext: false,
|
|
445
|
-
},
|
|
446
|
-
},
|
|
447
|
-
});
|
|
448
|
-
});
|
|
449
|
-
});
|
|
450
|
-
it('should emit CodeCoverageEvent event to STE and to the destination', () => {
|
|
451
|
-
const expectedEvent = {
|
|
452
|
-
telemetryEvent: {
|
|
453
|
-
codeCoverageEvent: {
|
|
454
|
-
customizationArn: 'test-arn',
|
|
455
|
-
programmingLanguage: { languageName: 'typescript' },
|
|
456
|
-
acceptedCharacterCount: 123,
|
|
457
|
-
totalCharacterCount: 456,
|
|
458
|
-
timestamp: new Date(Date.now()),
|
|
459
|
-
},
|
|
460
|
-
},
|
|
461
|
-
optOutPreference: 'OPTIN',
|
|
462
|
-
};
|
|
463
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
464
|
-
sso: {
|
|
465
|
-
startUrl: 'idc-start-url',
|
|
466
|
-
},
|
|
467
|
-
});
|
|
468
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
469
|
-
const invokeSendTelemetryEventStub = ts_sinon_1.default
|
|
470
|
-
.stub(telemetryService, 'sendTelemetryEvent')
|
|
471
|
-
.returns(Promise.resolve());
|
|
472
|
-
telemetryService.updateOptOutPreference('OPTIN');
|
|
473
|
-
telemetryService.updateEnableTelemetryEventsToDestination(true);
|
|
474
|
-
telemetryService.emitCodeCoverageEvent({
|
|
475
|
-
languageId: 'typescript',
|
|
476
|
-
customizationArn: 'test-arn',
|
|
477
|
-
acceptedCharacterCount: 123,
|
|
478
|
-
totalCharacterCount: 456,
|
|
479
|
-
}, {
|
|
480
|
-
percentage: 50,
|
|
481
|
-
successCount: 1,
|
|
482
|
-
});
|
|
483
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(invokeSendTelemetryEventStub, expectedEvent);
|
|
484
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(telemetry.emitMetric, {
|
|
485
|
-
name: 'codewhisperer_codePercentage',
|
|
486
|
-
data: {
|
|
487
|
-
codewhispererTotalTokens: 456,
|
|
488
|
-
codewhispererLanguage: 'typescript',
|
|
489
|
-
codewhispererSuggestedTokens: 123,
|
|
490
|
-
codewhispererPercentage: 50,
|
|
491
|
-
successCount: 1,
|
|
492
|
-
},
|
|
493
|
-
});
|
|
494
|
-
});
|
|
495
|
-
it('should not emit CodeCoverageEvent event to destination when enableTelemetryEventsToDestination flag is disabled', () => {
|
|
496
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
497
|
-
sso: {
|
|
498
|
-
startUrl: constants_1.BUILDER_ID_START_URL,
|
|
499
|
-
},
|
|
500
|
-
});
|
|
501
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
502
|
-
telemetryService.updateOptOutPreference('OPTOUT');
|
|
503
|
-
telemetryService.updateEnableTelemetryEventsToDestination(false);
|
|
504
|
-
telemetryService.emitCodeCoverageEvent({
|
|
505
|
-
languageId: 'typescript',
|
|
506
|
-
customizationArn: 'test-arn',
|
|
507
|
-
acceptedCharacterCount: 123,
|
|
508
|
-
totalCharacterCount: 456,
|
|
509
|
-
}, {
|
|
510
|
-
percentage: 50,
|
|
511
|
-
successCount: 1,
|
|
512
|
-
});
|
|
513
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetry.emitMetric, {
|
|
514
|
-
name: 'codewhisperer_codePercentage',
|
|
515
|
-
});
|
|
516
|
-
});
|
|
517
|
-
it('should emit userModificationEvent event', () => {
|
|
518
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
519
|
-
sso: {
|
|
520
|
-
startUrl: 'idc-start-url',
|
|
521
|
-
},
|
|
522
|
-
});
|
|
523
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', {}, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
524
|
-
const invokeSendTelemetryEventStub = ts_sinon_1.default
|
|
525
|
-
.stub(telemetryService, 'sendTelemetryEvent')
|
|
526
|
-
.returns(Promise.resolve());
|
|
527
|
-
telemetryService.updateOptOutPreference('OPTIN');
|
|
528
|
-
telemetryService.emitUserModificationEvent({
|
|
529
|
-
sessionId: 'test-session-id',
|
|
530
|
-
requestId: 'test-request-id',
|
|
531
|
-
languageId: 'typescript',
|
|
532
|
-
customizationArn: 'test-arn',
|
|
533
|
-
timestamp: new Date(),
|
|
534
|
-
modificationPercentage: 0.2,
|
|
535
|
-
acceptedCharacterCount: 100,
|
|
536
|
-
unmodifiedAcceptedCharacterCount: 80,
|
|
537
|
-
});
|
|
538
|
-
const expectedEvent = {
|
|
539
|
-
telemetryEvent: {
|
|
540
|
-
userModificationEvent: {
|
|
541
|
-
sessionId: 'test-session-id',
|
|
542
|
-
requestId: 'test-request-id',
|
|
543
|
-
programmingLanguage: {
|
|
544
|
-
languageName: 'typescript',
|
|
545
|
-
},
|
|
546
|
-
modificationPercentage: 0.2,
|
|
547
|
-
customizationArn: 'test-arn',
|
|
548
|
-
timestamp: new Date(),
|
|
549
|
-
acceptedCharacterCount: 100,
|
|
550
|
-
unmodifiedAcceptedCharacterCount: 80,
|
|
551
|
-
},
|
|
552
|
-
},
|
|
553
|
-
optOutPreference: 'OPTIN',
|
|
554
|
-
};
|
|
555
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(invokeSendTelemetryEventStub, expectedEvent);
|
|
556
|
-
});
|
|
557
|
-
it('should emit chatUserModificationEvent event including emitting event to destination', () => {
|
|
558
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
559
|
-
sso: {
|
|
560
|
-
startUrl: 'idc-start-url',
|
|
561
|
-
},
|
|
562
|
-
});
|
|
563
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
564
|
-
telemetryService.updateEnableTelemetryEventsToDestination(true);
|
|
565
|
-
const invokeSendTelemetryEventStub = ts_sinon_1.default
|
|
566
|
-
.stub(telemetryService, 'sendTelemetryEvent')
|
|
567
|
-
.returns(Promise.resolve());
|
|
568
|
-
telemetryService.updateOptOutPreference('OPTIN');
|
|
569
|
-
telemetryService.emitChatUserModificationEvent({
|
|
570
|
-
conversationId: 'test-conversation-id',
|
|
571
|
-
messageId: 'test-message-id',
|
|
572
|
-
customizationArn: 'test-arn',
|
|
573
|
-
modificationPercentage: 0.2,
|
|
574
|
-
});
|
|
575
|
-
const expectedEvent = {
|
|
576
|
-
telemetryEvent: {
|
|
577
|
-
chatUserModificationEvent: {
|
|
578
|
-
conversationId: 'test-conversation-id',
|
|
579
|
-
messageId: 'test-message-id',
|
|
580
|
-
customizationArn: 'test-arn',
|
|
581
|
-
modificationPercentage: 0.2,
|
|
582
|
-
},
|
|
583
|
-
},
|
|
584
|
-
optOutPreference: 'OPTIN',
|
|
585
|
-
};
|
|
586
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(invokeSendTelemetryEventStub, expectedEvent);
|
|
587
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(telemetry.emitMetric, {
|
|
588
|
-
name: 'amazonq_modifyCode',
|
|
589
|
-
data: {
|
|
590
|
-
cwsprChatConversationId: 'test-conversation-id',
|
|
591
|
-
cwsprChatMessageId: 'test-message-id',
|
|
592
|
-
cwsprChatModificationPercentage: 0.2,
|
|
593
|
-
codewhispererCustomizationArn: 'test-arn',
|
|
594
|
-
credentialStartUrl: 'idc-start-url',
|
|
595
|
-
},
|
|
596
|
-
});
|
|
597
|
-
});
|
|
598
|
-
it('should not emit chatUserModificationEvent event to destination when enableTelemetryEventsToDestination flag is disabled', () => {
|
|
599
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
600
|
-
sso: {
|
|
601
|
-
startUrl: constants_1.BUILDER_ID_START_URL,
|
|
602
|
-
},
|
|
603
|
-
});
|
|
604
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
605
|
-
telemetryService.updateEnableTelemetryEventsToDestination(false);
|
|
606
|
-
telemetryService.updateOptOutPreference('OPTOUT');
|
|
607
|
-
telemetryService.emitChatUserModificationEvent({
|
|
608
|
-
conversationId: 'test-conversation-id',
|
|
609
|
-
messageId: 'test-message-id',
|
|
610
|
-
customizationArn: 'test-arn',
|
|
611
|
-
modificationPercentage: 0.2,
|
|
612
|
-
});
|
|
613
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetry.emitMetric, {
|
|
614
|
-
name: 'amazonq_modifyCode',
|
|
615
|
-
});
|
|
616
|
-
});
|
|
617
|
-
describe('Chat add message', () => {
|
|
618
|
-
let telemetryService;
|
|
619
|
-
let mockCredentialsProvider;
|
|
620
|
-
let invokeSendTelemetryEventStub;
|
|
621
|
-
beforeEach(() => {
|
|
622
|
-
mockCredentialsProvider = new MockCredentialsProvider();
|
|
623
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
624
|
-
sso: {
|
|
625
|
-
startUrl: 'idc-start-url',
|
|
626
|
-
},
|
|
627
|
-
});
|
|
628
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
629
|
-
invokeSendTelemetryEventStub = ts_sinon_1.default
|
|
630
|
-
.stub(telemetryService, 'sendTelemetryEvent')
|
|
631
|
-
.returns(Promise.resolve());
|
|
632
|
-
});
|
|
633
|
-
afterEach(() => {
|
|
634
|
-
ts_sinon_1.default.restore();
|
|
635
|
-
});
|
|
636
|
-
it('should send ChatAddMessage event with correct parameters and emit metric to destination', () => {
|
|
637
|
-
telemetryService.updateEnableTelemetryEventsToDestination(true);
|
|
638
|
-
telemetryService.emitChatAddMessage({
|
|
639
|
-
conversationId: 'conv123',
|
|
640
|
-
messageId: 'message123',
|
|
641
|
-
customizationArn: 'cust-123',
|
|
642
|
-
programmingLanguage: 'jsx',
|
|
643
|
-
userIntent: 'SUGGEST_ALTERNATE_IMPLEMENTATION',
|
|
644
|
-
hasCodeSnippet: false,
|
|
645
|
-
timeToFirstChunkMilliseconds: 100,
|
|
646
|
-
activeEditorTotalCharacters: 250,
|
|
647
|
-
fullResponselatency: 400,
|
|
648
|
-
requestLength: 100,
|
|
649
|
-
responseLength: 3000,
|
|
650
|
-
numberOfCodeBlocks: 0,
|
|
651
|
-
}, {});
|
|
652
|
-
const expectedEvent = {
|
|
653
|
-
telemetryEvent: {
|
|
654
|
-
chatAddMessageEvent: {
|
|
655
|
-
conversationId: 'conv123',
|
|
656
|
-
messageId: 'message123',
|
|
657
|
-
customizationArn: 'cust-123',
|
|
658
|
-
userIntent: 'SUGGEST_ALTERNATE_IMPLEMENTATION',
|
|
659
|
-
hasCodeSnippet: false,
|
|
660
|
-
programmingLanguage: {
|
|
661
|
-
languageName: 'javascript',
|
|
662
|
-
},
|
|
663
|
-
activeEditorTotalCharacters: 250,
|
|
664
|
-
timeToFirstChunkMilliseconds: 100,
|
|
665
|
-
timeBetweenChunks: undefined,
|
|
666
|
-
fullResponselatency: 400,
|
|
667
|
-
requestLength: 100,
|
|
668
|
-
responseLength: 3000,
|
|
669
|
-
numberOfCodeBlocks: 0,
|
|
670
|
-
hasProjectLevelContext: false,
|
|
671
|
-
},
|
|
672
|
-
},
|
|
673
|
-
};
|
|
674
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(invokeSendTelemetryEventStub, expectedEvent);
|
|
675
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(telemetry.emitMetric, {
|
|
676
|
-
name: 'amazonq_addMessage',
|
|
677
|
-
data: {
|
|
678
|
-
credentialStartUrl: 'idc-start-url',
|
|
679
|
-
cwsprChatConversationId: 'conv123',
|
|
680
|
-
cwsprChatHasCodeSnippet: false,
|
|
681
|
-
cwsprChatTriggerInteraction: undefined,
|
|
682
|
-
cwsprChatMessageId: 'message123',
|
|
683
|
-
cwsprChatUserIntent: 'SUGGEST_ALTERNATE_IMPLEMENTATION',
|
|
684
|
-
cwsprChatProgrammingLanguage: 'jsx',
|
|
685
|
-
cwsprChatResponseCodeSnippetCount: 0,
|
|
686
|
-
cwsprChatResponseCode: undefined,
|
|
687
|
-
cwsprChatSourceLinkCount: undefined,
|
|
688
|
-
cwsprChatReferencesCount: undefined,
|
|
689
|
-
cwsprChatFollowUpCount: undefined,
|
|
690
|
-
cwsprTimeToFirstChunk: 100,
|
|
691
|
-
cwsprChatFullResponseLatency: 400,
|
|
692
|
-
cwsprChatTimeBetweenChunks: undefined,
|
|
693
|
-
cwsprChatRequestLength: 100,
|
|
694
|
-
cwsprChatResponseLength: 3000,
|
|
695
|
-
cwsprChatConversationType: undefined,
|
|
696
|
-
cwsprChatActiveEditorTotalCharacters: 250,
|
|
697
|
-
cwsprChatActiveEditorImportCount: undefined,
|
|
698
|
-
codewhispererCustomizationArn: 'cust-123',
|
|
699
|
-
},
|
|
700
|
-
});
|
|
701
|
-
});
|
|
702
|
-
it('should not send ChatAddMessage event to destination when enableTelemetryEventsToDestination flag is disabled', () => {
|
|
703
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
704
|
-
sso: {
|
|
705
|
-
startUrl: constants_1.BUILDER_ID_START_URL,
|
|
706
|
-
},
|
|
707
|
-
});
|
|
708
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', {}, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
709
|
-
telemetryService.updateOptOutPreference('OPTOUT');
|
|
710
|
-
telemetryService.updateEnableTelemetryEventsToDestination(false);
|
|
711
|
-
telemetryService.emitChatAddMessage({
|
|
712
|
-
conversationId: 'conv123',
|
|
713
|
-
messageId: 'message123',
|
|
714
|
-
customizationArn: 'cust-123',
|
|
715
|
-
programmingLanguage: 'jsx',
|
|
716
|
-
userIntent: 'SUGGEST_ALTERNATE_IMPLEMENTATION',
|
|
717
|
-
hasCodeSnippet: false,
|
|
718
|
-
timeToFirstChunkMilliseconds: 100,
|
|
719
|
-
activeEditorTotalCharacters: 250,
|
|
720
|
-
fullResponselatency: 400,
|
|
721
|
-
requestLength: 100,
|
|
722
|
-
responseLength: 3000,
|
|
723
|
-
numberOfCodeBlocks: 0,
|
|
724
|
-
}, {});
|
|
725
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetry.emitMetric, {
|
|
726
|
-
name: 'amazonq_addMessage',
|
|
727
|
-
});
|
|
728
|
-
});
|
|
729
|
-
it('should not send ChatAddMessage when conversationId is undefined', () => {
|
|
730
|
-
telemetryService.emitChatAddMessage({
|
|
731
|
-
messageId: 'message123',
|
|
732
|
-
customizationArn: 'cust-123',
|
|
733
|
-
}, {});
|
|
734
|
-
ts_sinon_1.default.assert.notCalled(invokeSendTelemetryEventStub);
|
|
735
|
-
});
|
|
736
|
-
it('should not send ChatAddMessage when messageId is undefined', () => {
|
|
737
|
-
telemetryService.emitChatAddMessage({
|
|
738
|
-
conversationId: 'conv123',
|
|
739
|
-
customizationArn: 'cust-123',
|
|
740
|
-
}, {});
|
|
741
|
-
ts_sinon_1.default.assert.notCalled(invokeSendTelemetryEventStub);
|
|
742
|
-
});
|
|
743
|
-
it('should not send ChatAddMessage when credentialsType is IAM', () => {
|
|
744
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'iam', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
745
|
-
invokeSendTelemetryEventStub = ts_sinon_1.default.stub(telemetryService, 'sendTelemetryEvent');
|
|
746
|
-
telemetryService.emitChatAddMessage({
|
|
747
|
-
conversationId: 'conv123',
|
|
748
|
-
messageId: 'message123',
|
|
749
|
-
customizationArn: 'cust-123',
|
|
750
|
-
}, {});
|
|
751
|
-
ts_sinon_1.default.assert.notCalled(invokeSendTelemetryEventStub);
|
|
752
|
-
});
|
|
753
|
-
it('should not send ChatAddMessage when login is BuilderID, but user chose OPTOUT option', () => {
|
|
754
|
-
mockCredentialsProvider.setConnectionMetadata({
|
|
755
|
-
sso: {
|
|
756
|
-
startUrl: constants_1.BUILDER_ID_START_URL,
|
|
757
|
-
},
|
|
758
|
-
});
|
|
759
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, mockAwsQRegion, mockAwsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
760
|
-
invokeSendTelemetryEventStub = ts_sinon_1.default.stub(telemetryService, 'sendTelemetryEvent');
|
|
761
|
-
telemetryService.updateOptOutPreference('OPTOUT');
|
|
762
|
-
telemetryService.emitChatAddMessage({
|
|
763
|
-
conversationId: 'conv123',
|
|
764
|
-
messageId: 'message123',
|
|
765
|
-
customizationArn: 'cust-123',
|
|
766
|
-
}, {});
|
|
767
|
-
ts_sinon_1.default.assert.notCalled(invokeSendTelemetryEventStub);
|
|
768
|
-
});
|
|
769
|
-
});
|
|
770
|
-
});
|
|
771
|
-
//# sourceMappingURL=telemetryService.test.js.map
|