@openclaw/msteams 2026.6.5 → 2026.6.6-beta.1
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/dist/api.js +1 -1
- package/dist/{channel--oT3fyD5.js → channel-FzXHnZIM.js} +16 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-KNuY2Oaw.js → channel.runtime-CaeTVmSx.js} +2 -2
- package/dist/{probe-C-rWMb-m.js → probe-D-pKTqs9.js} +1 -1
- package/dist/secret-contract-api.js +34 -1
- package/dist/{src-CLsoqMj1.js → src-C647R5Nw.js} +2 -2
- package/node_modules/@azure/core-client/dist/browser/authorizeRequestOnTenantChallenge.js +1 -2
- package/node_modules/@azure/core-client/dist/browser/authorizeRequestOnTenantChallenge.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/base64.d.ts +2 -6
- package/node_modules/@azure/core-client/dist/browser/base64.js +7 -15
- package/node_modules/@azure/core-client/dist/browser/base64.js.map +1 -0
- package/node_modules/@azure/core-client/dist/browser/index.d.ts +5 -5
- package/node_modules/@azure/core-client/dist/browser/index.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/interfaceHelpers.js +1 -2
- package/node_modules/@azure/core-client/dist/browser/interfaceHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/operationHelpers.js +8 -4
- package/node_modules/@azure/core-client/dist/browser/operationHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/serializationPolicy.js +1 -1
- package/node_modules/@azure/core-client/dist/browser/serializationPolicy.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/serializer.js +32 -11
- package/node_modules/@azure/core-client/dist/browser/serializer.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/serviceClient.js +2 -2
- package/node_modules/@azure/core-client/dist/browser/serviceClient.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/{state.d.ts → state-web.d.mts} +1 -1
- package/node_modules/@azure/core-client/dist/browser/{state.js → state-web.mjs} +1 -1
- package/node_modules/@azure/core-client/dist/browser/state-web.mjs.map +1 -0
- package/node_modules/@azure/core-client/dist/browser/urlHelpers.js +2 -1
- package/node_modules/@azure/core-client/dist/browser/urlHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/authorizeRequestOnTenantChallenge.js +1 -2
- package/node_modules/@azure/core-client/dist/commonjs/authorizeRequestOnTenantChallenge.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/base64.d.ts +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/base64.js +6 -6
- package/node_modules/@azure/core-client/dist/commonjs/base64.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/index.d.ts +5 -5
- package/node_modules/@azure/core-client/dist/commonjs/index.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/interfaceHelpers.js +1 -2
- package/node_modules/@azure/core-client/dist/commonjs/interfaceHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/operationHelpers.js +10 -6
- package/node_modules/@azure/core-client/dist/commonjs/operationHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/serializationPolicy.js +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/serializationPolicy.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/serializer.js +32 -11
- package/node_modules/@azure/core-client/dist/commonjs/serializer.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/serviceClient.js +2 -2
- package/node_modules/@azure/core-client/dist/commonjs/serviceClient.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/state-cjs.d.ts +8 -0
- package/node_modules/@azure/core-client/dist/commonjs/{state.js → state-cjs.js} +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/state-cjs.js.map +1 -0
- package/node_modules/@azure/core-client/dist/commonjs/tsdoc-metadata.json +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/urlHelpers.js +2 -1
- package/node_modules/@azure/core-client/dist/commonjs/urlHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/authorizeRequestOnTenantChallenge.js +1 -2
- package/node_modules/@azure/core-client/dist/esm/authorizeRequestOnTenantChallenge.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/base64.d.ts +1 -1
- package/node_modules/@azure/core-client/dist/esm/base64.js +6 -6
- package/node_modules/@azure/core-client/dist/esm/base64.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/index.d.ts +5 -5
- package/node_modules/@azure/core-client/dist/esm/index.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/interfaceHelpers.js +1 -2
- package/node_modules/@azure/core-client/dist/esm/interfaceHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/operationHelpers.js +7 -3
- package/node_modules/@azure/core-client/dist/esm/operationHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/serializationPolicy.js +1 -1
- package/node_modules/@azure/core-client/dist/esm/serializationPolicy.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/serializer.js +32 -11
- package/node_modules/@azure/core-client/dist/esm/serializer.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/serviceClient.js +2 -2
- package/node_modules/@azure/core-client/dist/esm/serviceClient.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/state-cjs.d.ts +8 -0
- package/node_modules/@azure/core-client/dist/esm/state-cjs.js +9 -0
- package/node_modules/@azure/core-client/dist/esm/state-cjs.js.map +1 -0
- package/node_modules/@azure/core-client/dist/esm/state.js +1 -1
- package/node_modules/@azure/core-client/dist/esm/state.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/urlHelpers.js +2 -1
- package/node_modules/@azure/core-client/dist/esm/urlHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/authorizeRequestOnTenantChallenge.js +1 -2
- package/node_modules/@azure/core-client/dist/react-native/authorizeRequestOnTenantChallenge.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/base64.d.ts +1 -1
- package/node_modules/@azure/core-client/dist/react-native/base64.js +6 -6
- package/node_modules/@azure/core-client/dist/react-native/base64.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/index.d.ts +5 -5
- package/node_modules/@azure/core-client/dist/react-native/index.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/interfaceHelpers.js +1 -2
- package/node_modules/@azure/core-client/dist/react-native/interfaceHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/operationHelpers.js +8 -4
- package/node_modules/@azure/core-client/dist/react-native/operationHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/serializationPolicy.js +1 -1
- package/node_modules/@azure/core-client/dist/react-native/serializationPolicy.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/serializer.js +32 -11
- package/node_modules/@azure/core-client/dist/react-native/serializer.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/serviceClient.js +2 -2
- package/node_modules/@azure/core-client/dist/react-native/serviceClient.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/state-web.d.mts +8 -0
- package/node_modules/@azure/core-client/dist/react-native/state-web.mjs +9 -0
- package/node_modules/@azure/core-client/dist/react-native/state-web.mjs.map +1 -0
- package/node_modules/@azure/core-client/dist/react-native/urlHelpers.js +2 -1
- package/node_modules/@azure/core-client/dist/react-native/urlHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/package.json +31 -30
- package/node_modules/@azure/core-rest-pipeline/dist/browser/constants.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/constants.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/defaultHttpClient.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/index.d.ts +1 -12
- package/node_modules/@azure/core-rest-pipeline/dist/browser/index.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/interfaces.d.ts +17 -16
- package/node_modules/@azure/core-rest-pipeline/dist/browser/interfaces.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/bearerTokenAuthenticationPolicy.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/bearerTokenAuthenticationPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/ndJsonPolicy.js +1 -3
- package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/ndJsonPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/wrapAbortSignalLikePolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/createFile-browser.d.mts +15 -0
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/createFile-browser.mjs +28 -0
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/createFile-browser.mjs.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/file.d.ts +12 -16
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/file.js +28 -32
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/file.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/tokenCycler.js +5 -2
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/tokenCycler.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgent.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgent.js.map +1 -1
- package/node_modules/{@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform.d.ts → @azure/core-rest-pipeline/dist/browser/util/userAgentPlatform-browser.d.mts} +1 -1
- package/node_modules/{@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform.js → @azure/core-rest-pipeline/dist/browser/util/userAgentPlatform-browser.mjs} +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform-browser.mjs.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/wrapAbortSignal.js +4 -2
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/wrapAbortSignal.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/constants.js +2 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/constants.js.map +2 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/createPipelineFromOptions.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/createPipelineFromOptions.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/defaultHttpClient.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/defaultHttpClient.js.map +2 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/httpHeaders.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/httpHeaders.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts +1 -12
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/index.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/index.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/interfaces.d.ts +17 -16
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/interfaces.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/interfaces.js.map +2 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/log.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/log.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipeline.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipeline.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipelineRequest.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipelineRequest.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/agentPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/agentPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/auxiliaryAuthenticationHeaderPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/auxiliaryAuthenticationHeaderPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/bearerTokenAuthenticationPolicy.js +2 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/bearerTokenAuthenticationPolicy.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/decompressResponsePolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/decompressResponsePolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/defaultRetryPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/defaultRetryPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/exponentialRetryPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/exponentialRetryPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/formDataPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/formDataPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/logPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/logPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/multipartPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/multipartPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/ndJsonPolicy.js +2 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/ndJsonPolicy.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/proxyPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/proxyPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/redirectPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/redirectPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/retryPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/retryPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/setClientRequestIdPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/setClientRequestIdPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/systemErrorRetryPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/systemErrorRetryPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/throttlingRetryPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/throttlingRetryPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tlsPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tlsPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tracingPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tracingPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/userAgentPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/userAgentPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/wrapAbortSignalLikePolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/wrapAbortSignalLikePolicy.js.map +2 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/restError.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/restError.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/tsdoc-metadata.json +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/createFile.d.ts +15 -0
- package/node_modules/{@typespec/ts-http-runtime/dist/commonjs/util/inspect.common.js → @azure/core-rest-pipeline/dist/commonjs/util/createFile.js} +10 -7
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/createFile.js.map +7 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/file.d.ts +12 -16
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/file.js +25 -20
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/file.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/tokenCycler.js +6 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/tokenCycler.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgent.js +4 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgent.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgentPlatform.d.ts +8 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgentPlatform.js +7 -7
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgentPlatform.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/wrapAbortSignal.js +7 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/wrapAbortSignal.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/esm/constants.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/constants.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/defaultHttpClient.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/index.d.ts +1 -12
- package/node_modules/@azure/core-rest-pipeline/dist/esm/index.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/interfaces.d.ts +17 -16
- package/node_modules/@azure/core-rest-pipeline/dist/esm/interfaces.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/bearerTokenAuthenticationPolicy.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/bearerTokenAuthenticationPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/ndJsonPolicy.js +1 -3
- package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/ndJsonPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/wrapAbortSignalLikePolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/createFile.d.ts +15 -0
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/createFile.js +19 -0
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/createFile.js.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/file.d.ts +12 -16
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/file.js +28 -32
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/file.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/tokenCycler.js +5 -2
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/tokenCycler.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgent.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgentPlatform.d.ts +8 -0
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgentPlatform.js +6 -7
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgentPlatform.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/wrapAbortSignal.js +4 -2
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/wrapAbortSignal.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/constants.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/constants.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/defaultHttpClient.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/defaultHttpClient.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/index.d.ts +1 -12
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/index.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/interfaces.d.ts +17 -16
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/interfaces.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/bearerTokenAuthenticationPolicy.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/bearerTokenAuthenticationPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/ndJsonPolicy.js +1 -3
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/ndJsonPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/wrapAbortSignalLikePolicy.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/wrapAbortSignalLikePolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/createFile-browser.d.mts +15 -0
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/createFile-browser.mjs +28 -0
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/createFile-browser.mjs.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/file.d.ts +12 -16
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/file.js +28 -32
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/file.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/tokenCycler.js +5 -2
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/tokenCycler.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgent.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgent.js.map +1 -1
- package/node_modules/{@typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform.d.ts → @azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform-react-native.d.mts} +1 -1
- package/node_modules/{@typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform.js → @azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform-react-native.mjs} +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform-react-native.mjs.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/{wrapAbortSignal.d.ts → wrapAbortSignal-rn.d.mts} +7 -2
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/{wrapAbortSignal.js → wrapAbortSignal-rn.mjs} +11 -5
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/wrapAbortSignal-rn.mjs.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/package.json +37 -14
- package/node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/app/PublicClientApplication.mjs +44 -2
- package/node_modules/@azure/msal-browser/dist/app/PublicClientApplication.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeStatusCodes.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/AccountManager.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.mjs +12 -1
- package/node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/CacheHelpers.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/CacheKeys.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/CookieStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/DatabaseStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/EncryptedData.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/LocalStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/MemoryStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/SessionStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/TokenCache.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/config/Configuration.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/controllers/StandardController.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/controllers/StandardController.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/CryptoOps.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/index.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/encode/Base64Decode.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/encode/Base64Encode.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/NativeAuthError.mjs +4 -4
- package/node_modules/@azure/msal-browser/dist/error/NativeAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/event/EventHandler.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/event/EventMessage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/event/EventType.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/index.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/PlatformAuthInteractionClient.mjs +4 -3
- package/node_modules/@azure/msal-browser/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.mjs +27 -7
- package/node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.mjs +6 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.mjs +11 -4
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.mjs +2 -1
- package/node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/log-strings-mapping.json +7 -3
- package/node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/naa/BridgeProxy.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/naa/BridgeStatusCode.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/navigation/NavigationClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/network/FetchClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs +10 -2
- package/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/protocol/Authorize.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/redirect_bridge/index.mjs +4 -5
- package/node_modules/@azure/msal-browser/dist/redirect_bridge/index.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/request/RequestHelpers.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/response/ResponseHandler.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/BrowserConstants.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/BrowserUtils.mjs +15 -5
- package/node_modules/@azure/msal-browser/dist/utils/BrowserUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/Helpers.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/log-strings-mapping.json +15 -11
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.cjs +238 -132
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.js +238 -132
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/node_modules/@azure/msal-browser/lib/log-strings-mapping.json +7 -3
- package/node_modules/@azure/msal-browser/lib/msal-browser.cjs +252 -135
- package/node_modules/@azure/msal-browser/lib/msal-browser.cjs.map +1 -1
- package/node_modules/@azure/msal-browser/lib/msal-browser.js +252 -135
- package/node_modules/@azure/msal-browser/lib/msal-browser.js.map +1 -1
- package/node_modules/@azure/msal-browser/lib/msal-browser.min.js +2 -2
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.cjs +59 -50
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.js +59 -50
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
- package/node_modules/@azure/msal-browser/package.json +2 -2
- package/node_modules/@azure/msal-browser/src/app/PublicClientApplication.ts +85 -1
- package/node_modules/@azure/msal-browser/src/broker/nativeBroker/NativeStatusCodes.ts +1 -1
- package/node_modules/@azure/msal-browser/src/cache/BrowserCacheManager.ts +17 -0
- package/node_modules/@azure/msal-browser/src/controllers/StandardController.ts +4 -2
- package/node_modules/@azure/msal-browser/src/error/NativeAuthError.ts +2 -2
- package/node_modules/@azure/msal-browser/src/interaction_client/PlatformAuthInteractionClient.ts +5 -1
- package/node_modules/@azure/msal-browser/src/interaction_client/PopupClient.ts +65 -27
- package/node_modules/@azure/msal-browser/src/interaction_client/RedirectClient.ts +5 -0
- package/node_modules/@azure/msal-browser/src/interaction_client/SilentIframeClient.ts +49 -19
- package/node_modules/@azure/msal-browser/src/interaction_handler/SilentHandler.ts +1 -0
- package/node_modules/@azure/msal-browser/src/operatingcontext/BaseOperatingContext.ts +15 -1
- package/node_modules/@azure/msal-browser/src/packageMetadata.ts +1 -1
- package/node_modules/@azure/msal-browser/src/redirect_bridge/index.ts +3 -7
- package/node_modules/@azure/msal-browser/src/utils/BrowserUtils.ts +28 -7
- package/node_modules/@azure/msal-browser/types/app/PublicClientApplication.d.ts +37 -1
- package/node_modules/@azure/msal-browser/types/app/PublicClientApplication.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/broker/nativeBroker/NativeStatusCodes.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/controllers/StandardController.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/PopupClient.d.ts +11 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/SilentIframeClient.d.ts +20 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/operatingcontext/BaseOperatingContext.d.ts +8 -1
- package/node_modules/@azure/msal-browser/types/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/packageMetadata.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/redirect_bridge/index.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/utils/BrowserUtils.d.ts +17 -2
- package/node_modules/@azure/msal-browser/types/utils/BrowserUtils.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/account/AuthToken.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/Authority.mjs +19 -6
- package/node_modules/@azure/msal-common/dist/authority/Authority.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.mjs +3 -3
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/cache/utils/AccountEntityUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/AuthError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/CacheError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs +4 -4
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs +3 -3
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/NetworkError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/PlatformBrokerError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ServerError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/index-node.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/index.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/logger/Logger.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-common/dist/protocol/Authorize.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/protocol/Token.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/url/UrlString.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/Constants.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/FunctionWrappers.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/UrlUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/AccountInfo.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/AuthToken.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/CcsCredential.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/ClientInfo.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/TokenClaims.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/Authority.mjs +19 -6
- package/node_modules/@azure/msal-common/dist-browser/authority/Authority.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityFactory.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityMetadata.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityOptions.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityType.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/OpenIdConfigResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/ProtocolMode.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/RegionDiscovery.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/CacheManager.mjs +3 -3
- package/node_modules/@azure/msal-common/dist-browser/cache/CacheManager.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/persistence/TokenCacheContext.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/utils/AccountEntityUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/utils/CacheHelpers.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/client/AuthorizationCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/client/RefreshTokenClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/client/SilentFlowClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/config/ClientConfiguration.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/constants/AADServerParamKeys.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/crypto/ICrypto.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/crypto/JoseHeader.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/crypto/PopTokenGenerator.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/AuthError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/AuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/CacheError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/CacheErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientAuthError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientConfigurationError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthError.mjs +4 -4
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthErrorCodes.mjs +3 -3
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthErrorCodes.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/JoseHeaderError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/JoseHeaderErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/NetworkError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/PlatformBrokerError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ServerError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/index-browser.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/index.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/log-strings-mapping.json +2 -2
- package/node_modules/@azure/msal-common/dist-browser/logger/Logger.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/network/INetworkModule.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/network/RequestThumbprint.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/network/ThrottlingUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-common/dist-browser/protocol/Authorize.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/protocol/Token.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/AuthenticationHeaderParser.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/BaseAuthRequest.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/RequestParameterBuilder.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/ScopeSet.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/response/ResponseHandler.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceEvent.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/StubPerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/server/ServerTelemetryManager.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/url/UrlString.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/ClientAssertionUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/Constants.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/FunctionWrappers.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/ProtocolUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/StringUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/TimeUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/UrlUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/lib/index-browser.cjs +2 -2
- package/node_modules/@azure/msal-common/lib/{index-node-9_Gz5QUk.js → index-node-DHSwXao8.js} +27 -14
- package/node_modules/@azure/msal-common/lib/index-node-DHSwXao8.js.map +1 -0
- package/node_modules/@azure/msal-common/lib/index-node.cjs +2 -2
- package/node_modules/@azure/msal-common/lib/index.cjs +2 -2
- package/node_modules/@azure/msal-common/package.json +1 -1
- package/node_modules/@azure/msal-common/src/authority/Authority.ts +20 -5
- package/node_modules/@azure/msal-common/src/cache/CacheManager.ts +5 -10
- package/node_modules/@azure/msal-common/src/error/InteractionRequiredAuthError.ts +2 -2
- package/node_modules/@azure/msal-common/src/error/InteractionRequiredAuthErrorCodes.ts +1 -2
- package/node_modules/@azure/msal-common/src/packageMetadata.ts +1 -1
- package/node_modules/@azure/msal-common/types/authority/Authority.d.ts +5 -1
- package/node_modules/@azure/msal-common/types/authority/Authority.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/cache/CacheManager.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/InteractionRequiredAuthErrorCodes.d.ts +1 -1
- package/node_modules/@azure/msal-common/types/error/InteractionRequiredAuthErrorCodes.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/packageMetadata.d.ts +1 -1
- package/node_modules/@azure/msal-node/dist/cache/CacheHelpers.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/NodeStorage.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/TokenCache.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/serializer/Serializer.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/BaseClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ClientAssertion.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ClientCredentialClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/DeviceCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentityApplication.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentityClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/PublicClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/config/Configuration.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/config/ManagedIdentityId.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/CryptoProvider.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/GuidGenerator.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/HashUtils.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/PkceGenerator.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/error/ManagedIdentityError.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/error/NodeAuthError.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/index.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/internals.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/network/HttpClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/network/LoopbackClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-node/dist/protocol/Authorize.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/utils/Constants.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/utils/EncodingUtils.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs +1 -1
- package/node_modules/@azure/msal-node/lib/msal-node.cjs +87 -74
- package/node_modules/@azure/msal-node/lib/msal-node.cjs.map +1 -1
- package/node_modules/@azure/msal-node/package.json +2 -2
- package/node_modules/@azure/msal-node/src/packageMetadata.ts +1 -1
- package/node_modules/@azure/msal-node/types/packageMetadata.d.ts +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/http2.d.ts +3 -0
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/clientHelpers.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/clientHelpers.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/common.d.ts +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/getClient.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/getClient.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/multipart.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/multipart.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/restError.js +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/sendRequest.js +13 -10
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/sendRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/constants.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/constants.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/createPipelineFromOptions.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/createPipelineFromOptions.js +2 -21
- package/node_modules/@typespec/ts-http-runtime/dist/browser/createPipelineFromOptions.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/{defaultHttpClient.d.ts → defaultHttpClient-browser.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/{defaultHttpClient.js → defaultHttpClient-browser.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/defaultHttpClient-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/encoding.d.ts +13 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/encoding.js +19 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/encoding.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/{util/checkEnvironment.d.ts → env-browser.d.mts} +21 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/{util/checkEnvironment.js → env-browser.mjs} +26 -12
- package/node_modules/@typespec/ts-http-runtime/dist/browser/env-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/formData-web.d.mts +9 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/formData-web.mjs +12 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/formData-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/httpHeaders.js +11 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/httpHeaders.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/index.d.ts +3 -14
- package/node_modules/@typespec/ts-http-runtime/dist/browser/index.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/index.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/interfaces.d.ts +15 -14
- package/node_modules/@typespec/ts-http-runtime/dist/browser/interfaces.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/debug.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/debug.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/{log.d.ts → log-web.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/{log.js → log-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/log-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/logger.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/logger.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/pipelineRequest.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/pipelineRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/basicAuthenticationPolicy.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/basicAuthenticationPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/checkInsecureConnection.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/checkInsecureConnection.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/{decompressResponsePolicy.d.ts → decompressResponsePolicy-web.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/{decompressResponsePolicy.js → decompressResponsePolicy-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/decompressResponsePolicy-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/formDataPolicy.js +5 -12
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/formDataPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/internal.d.ts +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/internal.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/multipartPolicy.js +7 -3
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/multipartPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies-web.d.mts +10 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies-web.mjs +12 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies.d.ts +25 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies.js +30 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{react-native/policies/proxyPolicy.js → browser/policies/proxyPolicy-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/restError.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/types-browser.d.mts +19 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/types-browser.mjs +4 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/types-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/bytesEncoding.js → browser/util/bytesEncoding-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.common.d.ts +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.common.js +3 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat-browser.d.mts +16 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/{concat.js → concat-browser.mjs} +4 -11
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/inspect.js → browser/util/inspect-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/internal.d.ts +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/internal.js +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/sha256.js → browser/util/sha256-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.common.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards-browser.d.mts +14 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards-browser.mjs +26 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards.d.ts +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards.js +4 -10
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgent.d.ts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgent.js +2 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgent.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform-browser.d.mts +37 -0
- package/node_modules/{@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform.js → @typespec/ts-http-runtime/dist/browser/util/userAgentPlatform-browser.mjs} +10 -11
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/{uuidUtils.d.ts → uuidUtils-browser.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/{uuidUtils.js → uuidUtils-browser.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/uuidUtils-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/clientHelpers.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/clientHelpers.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/common.d.ts +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/getClient.js +3 -3
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/getClient.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/multipart.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/restError.js +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/restError.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/sendRequest.js +26 -8
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/sendRequest.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/constants.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/constants.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/createPipelineFromOptions.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/createPipelineFromOptions.js +2 -19
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/createPipelineFromOptions.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/checkEnvironment.d.ts → commonjs/env.d.ts} +21 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/env.js +67 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/env.js.map +7 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/formData.d.ts +10 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/{util/arrayBuffer.js → formData.js} +19 -14
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/formData.js.map +7 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/httpHeaders.js +4 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/httpHeaders.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/index.d.ts +1 -12
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/index.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/index.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/interfaces.d.ts +15 -14
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/interfaces.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/debug.js +2 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/debug.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/logger.js +2 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/logger.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/nodeHttpClient.js +3 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/nodeHttpClient.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/pipelineRequest.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/pipelineRequest.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/basicAuthenticationPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/checkInsecureConnection.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/checkInsecureConnection.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/formDataPolicy.js +4 -11
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/formDataPolicy.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/internal.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/internal.js +7 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/internal.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/multipartPolicy.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/multipartPolicy.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/platformPolicies.d.ts +25 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/platformPolicies.js +43 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/platformPolicies.js.map +7 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/tsdoc-metadata.json +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/types.d.ts +19 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/types.js +16 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/types.js.map +7 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/concat.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/concat.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/internal.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/internal.js +10 -10
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/internal.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards-node.d.ts +13 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/{logger/log.common.js → util/typeGuards-node.js} +14 -21
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards-node.js.map +7 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards.d.ts +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards.js +6 -13
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/userAgent.d.ts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/userAgent.js +7 -5
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/userAgent.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/clientHelpers.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/common.d.ts +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/getClient.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/getClient.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/multipart.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/restError.js +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/sendRequest.js +13 -10
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/sendRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/constants.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/constants.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/createPipelineFromOptions.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/createPipelineFromOptions.js +2 -21
- package/node_modules/@typespec/ts-http-runtime/dist/esm/createPipelineFromOptions.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/{commonjs/util/checkEnvironment.d.ts → esm/env.d.ts} +21 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/env.js +48 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/env.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/formData.d.ts +10 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/formData.js +26 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/formData.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/httpHeaders.js +11 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/httpHeaders.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/index.d.ts +1 -12
- package/node_modules/@typespec/ts-http-runtime/dist/esm/index.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/interfaces.d.ts +15 -14
- package/node_modules/@typespec/ts-http-runtime/dist/esm/interfaces.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/debug.js +2 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/debug.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/logger.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/logger.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/nodeHttpClient.js +3 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/nodeHttpClient.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/pipelineRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/basicAuthenticationPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/checkInsecureConnection.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/checkInsecureConnection.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/formDataPolicy.js +4 -11
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/formDataPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/internal.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/internal.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/multipartPolicy.js +4 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/multipartPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/platformPolicies.d.ts +25 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/platformPolicies.js +30 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/platformPolicies.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/types.d.ts +19 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/types.js +4 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/types.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/concat.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/concat.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/internal.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/internal.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards-node.d.ts +13 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards-node.js +20 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards-node.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards.d.ts +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards.js +4 -10
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/userAgent.d.ts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/userAgent.js +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/userAgent.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/clientHelpers.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/clientHelpers.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/common.d.ts +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/getClient.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/getClient.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/multipart.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/multipart.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/restError.js +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/sendRequest.js +13 -10
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/sendRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/constants.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/constants.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.js +2 -21
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/{defaultHttpClient.d.ts → defaultHttpClient-react-native.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/{defaultHttpClient.js → defaultHttpClient-react-native.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/defaultHttpClient-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/encoding-react-native.d.mts +21 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/encoding-react-native.mjs +25 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/encoding-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{esm/util/checkEnvironment.d.ts → react-native/env-react-native.d.mts} +21 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/env-react-native.mjs +50 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/env-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/formData-web.d.mts +9 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/formData-web.mjs +12 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/formData-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/httpHeaders.js +11 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/httpHeaders.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/index.d.ts +3 -14
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/index.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/index.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/interfaces.d.ts +15 -14
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/interfaces.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/debug.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/debug.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/{log.d.ts → log-web.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/{log.js → log-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/log-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/logger.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/logger.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/pipelineRequest.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/pipelineRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/basicAuthenticationPolicy.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/basicAuthenticationPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/checkInsecureConnection.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/checkInsecureConnection.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy-web.d.mts +8 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy-web.mjs +11 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/formDataPolicy.js +5 -12
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/formDataPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/internal.d.ts +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/internal.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/multipartPolicy.js +7 -3
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/multipartPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies-web.d.mts +10 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies-web.mjs +12 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies.d.ts +25 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies.js +30 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{browser/policies/proxyPolicy.js → react-native/policies/proxyPolicy-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/restError.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/types-react-native.d.mts +19 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/types-react-native.mjs +4 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/types-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{browser/util/bytesEncoding.js → react-native/util/bytesEncoding-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.common.d.ts +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.common.js +3 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/{concat.d.ts → concat-react-native.d.mts} +10 -3
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/{concat.js → concat-react-native.mjs} +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/concat-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{browser/util/inspect.js → react-native/util/inspect-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/internal.d.ts +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/internal.js +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{browser/util/sha256.js → react-native/util/sha256-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.common.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards-react-native.d.mts +16 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards-react-native.mjs +34 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards.d.ts +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards.js +4 -10
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgent.d.ts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgent.js +2 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgent.js.map +1 -1
- package/node_modules/{@azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform.d.ts → @typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform-react-native.d.mts} +1 -1
- package/node_modules/{@azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform.js → @typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform-react-native.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils-react-native.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/{uuidUtils.js → uuidUtils-react-native.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/package.json +94 -8
- package/node_modules/semver/classes/semver.js +19 -2
- package/node_modules/semver/package.json +1 -1
- package/npm-shrinkwrap.json +29 -29
- package/package.json +4 -4
- package/dist/contract-api.js +0 -2
- package/dist/secret-contract-CSs7JYzG.js +0 -35
- package/node_modules/@azure/core-client/dist/browser/base64-browser.mjs.map +0 -1
- package/node_modules/@azure/core-client/dist/browser/state-browser.mjs.map +0 -1
- package/node_modules/@azure/core-client/dist/commonjs/state-cjs.cjs.map +0 -1
- package/node_modules/@azure/core-client/dist/commonjs/state.d.ts +0 -7
- package/node_modules/@azure/core-client/dist/react-native/state.d.ts +0 -8
- package/node_modules/@azure/core-client/dist/react-native/state.js +0 -10
- package/node_modules/@azure/core-client/dist/react-native/state.js.map +0 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform.d.ts +0 -9
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform.js.map +0 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform.js.map +0 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/wrapAbortSignal.js.map +0 -1
- package/node_modules/@azure/msal-common/lib/index-node-9_Gz5QUk.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/defaultHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/log.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/nodeHttpClient.d.ts +0 -9
- package/node_modules/@typespec/ts-http-runtime/dist/browser/nodeHttpClient.js +0 -347
- package/node_modules/@typespec/ts-http-runtime/dist/browser/nodeHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/decompressResponsePolicy.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/checkEnvironment.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat.d.ts +0 -17
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/uuidUtils.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/xhrHttpClient.d.ts +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/browser/xhrHttpClient.js +0 -174
- package/node_modules/@typespec/ts-http-runtime/dist/browser/xhrHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/fetchHttpClient.d.ts +0 -12
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/fetchHttpClient.js +0 -238
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/fetchHttpClient.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/log.common.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/log.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/proxyPolicy.common.d.ts +0 -19
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/proxyPolicy.common.js +0 -44
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/proxyPolicy.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/arrayBuffer.d.ts +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/arrayBuffer.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/bytesEncoding.common.d.ts +0 -61
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/bytesEncoding.common.js +0 -106
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/bytesEncoding.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/checkEnvironment.js +0 -46
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/checkEnvironment.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/inspect.common.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/inspect.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/sha256.common.d.ts +0 -14
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/sha256.common.js +0 -70
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/sha256.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/uuidUtils.common.d.ts +0 -13
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/uuidUtils.common.js +0 -49
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/uuidUtils.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/xhrHttpClient.d.ts +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/xhrHttpClient.js +0 -186
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/xhrHttpClient.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/esm/fetchHttpClient.d.ts +0 -12
- package/node_modules/@typespec/ts-http-runtime/dist/esm/fetchHttpClient.js +0 -279
- package/node_modules/@typespec/ts-http-runtime/dist/esm/fetchHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/log.common.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/log.common.js +0 -23
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/log.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/proxyPolicy.common.d.ts +0 -19
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/proxyPolicy.common.js +0 -24
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/proxyPolicy.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/arrayBuffer.d.ts +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/arrayBuffer.js +0 -20
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/arrayBuffer.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/bytesEncoding.common.d.ts +0 -61
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/bytesEncoding.common.js +0 -110
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/bytesEncoding.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/checkEnvironment.js +0 -41
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/checkEnvironment.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/inspect.common.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/inspect.common.js +0 -4
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/inspect.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/sha256.common.d.ts +0 -14
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/sha256.common.js +0 -49
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/sha256.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/uuidUtils.common.d.ts +0 -13
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/uuidUtils.common.js +0 -40
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/uuidUtils.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/xhrHttpClient.d.ts +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/esm/xhrHttpClient.js +0 -174
- package/node_modules/@typespec/ts-http-runtime/dist/esm/xhrHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/defaultHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/fetchHttpClient.d.ts +0 -12
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/fetchHttpClient.js +0 -279
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/fetchHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/log.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/nodeHttpClient.d.ts +0 -9
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/nodeHttpClient.js +0 -347
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/nodeHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy.d.ts +0 -11
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy.js +0 -23
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/checkEnvironment.js +0 -41
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/checkEnvironment.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/concat.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/nodeHttpClient.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport http from \"node:http\";\nimport https from \"node:https\";\nimport zlib from \"node:zlib\";\nimport { Transform } from \"node:stream\";\nimport { AbortError } from \"./abort-controller/AbortError.js\";\nimport type {\n HttpClient,\n HttpHeaders,\n PipelineRequest,\n PipelineResponse,\n RequestBodyType,\n TlsSettings,\n TransferProgressEvent,\n} from \"./interfaces.js\";\nimport { createHttpHeaders } from \"./httpHeaders.js\";\nimport { RestError } from \"./restError.js\";\nimport type { IncomingMessage } from \"node:http\";\nimport { logger } from \"./log.js\";\nimport { Sanitizer } from \"./util/sanitizer.js\";\n\nconst DEFAULT_TLS_SETTINGS = {};\n\nfunction isReadableStream(body: any): body is NodeJS.ReadableStream {\n return body && typeof body.pipe === \"function\";\n}\n\nfunction isStreamComplete(stream: NodeJS.ReadableStream): Promise<void> {\n if (stream.readable === false) {\n return Promise.resolve();\n }\n\n return new Promise((resolve) => {\n const handler = (): void => {\n resolve();\n stream.removeListener(\"close\", handler);\n stream.removeListener(\"end\", handler);\n stream.removeListener(\"error\", handler);\n };\n\n stream.on(\"close\", handler);\n stream.on(\"end\", handler);\n stream.on(\"error\", handler);\n });\n}\n\nfunction isArrayBuffer(body: any): body is ArrayBuffer | ArrayBufferView {\n return body && typeof body.byteLength === \"number\";\n}\n\nclass ReportTransform extends Transform {\n private loadedBytes = 0;\n private progressCallback: (progress: TransferProgressEvent) => void;\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n _transform(chunk: string | Buffer, _encoding: string, callback: Function): void {\n this.push(chunk);\n this.loadedBytes += chunk.length;\n try {\n this.progressCallback({ loadedBytes: this.loadedBytes });\n callback();\n } catch (e: any) {\n callback(e);\n }\n }\n\n constructor(progressCallback: (progress: TransferProgressEvent) => void) {\n super();\n this.progressCallback = progressCallback;\n }\n}\n\n/**\n * A HttpClient implementation that uses Node's \"https\" module to send HTTPS requests.\n * @internal\n */\nclass NodeHttpClient implements HttpClient {\n private cachedHttpAgent?: http.Agent;\n private cachedHttpsAgents: WeakMap<TlsSettings, https.Agent> = new WeakMap();\n\n /**\n * Makes a request over an underlying transport layer and returns the response.\n * @param request - The request to be made.\n */\n public async sendRequest(request: PipelineRequest): Promise<PipelineResponse> {\n const abortController = new AbortController();\n let abortListener: ((event: any) => void) | undefined;\n if (request.abortSignal) {\n if (request.abortSignal.aborted) {\n throw new AbortError(\"The operation was aborted. Request has already been canceled.\");\n }\n\n abortListener = (event: Event) => {\n if (event.type === \"abort\") {\n abortController.abort();\n }\n };\n request.abortSignal.addEventListener(\"abort\", abortListener);\n }\n\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n if (request.timeout > 0) {\n timeoutId = setTimeout(() => {\n const sanitizer = new Sanitizer();\n logger.info(`request to '${sanitizer.sanitizeUrl(request.url)}' timed out. canceling...`);\n abortController.abort();\n }, request.timeout);\n }\n\n const acceptEncoding = request.headers.get(\"Accept-Encoding\");\n const shouldDecompress =\n acceptEncoding?.includes(\"gzip\") || acceptEncoding?.includes(\"deflate\");\n\n let body = typeof request.body === \"function\" ? request.body() : request.body;\n if (body && !request.headers.has(\"Content-Length\")) {\n const bodyLength = getBodyLength(body);\n if (bodyLength !== null) {\n request.headers.set(\"Content-Length\", bodyLength);\n }\n }\n\n let responseStream: NodeJS.ReadableStream | undefined;\n try {\n if (body && request.onUploadProgress) {\n const onUploadProgress = request.onUploadProgress;\n const uploadReportStream = new ReportTransform(onUploadProgress);\n uploadReportStream.on(\"error\", (e) => {\n logger.error(\"Error in upload progress\", e);\n });\n if (isReadableStream(body)) {\n body.pipe(uploadReportStream);\n } else {\n uploadReportStream.end(body);\n }\n\n body = uploadReportStream;\n }\n\n const res = await this.makeRequest(request, abortController, body);\n\n if (timeoutId !== undefined) {\n clearTimeout(timeoutId);\n }\n\n const headers = getResponseHeaders(res);\n\n const status = res.statusCode ?? 0;\n const response: PipelineResponse = {\n status,\n headers,\n request,\n };\n\n // Responses to HEAD must not have a body.\n // If they do return a body, that body must be ignored.\n if (request.method === \"HEAD\") {\n // call resume() and not destroy() to avoid closing the socket\n // and losing keep alive\n res.resume();\n return response;\n }\n\n responseStream = shouldDecompress ? getDecodedResponseStream(res, headers) : res;\n\n const onDownloadProgress = request.onDownloadProgress;\n if (onDownloadProgress) {\n const downloadReportStream = new ReportTransform(onDownloadProgress);\n downloadReportStream.on(\"error\", (e) => {\n logger.error(\"Error in download progress\", e);\n });\n responseStream.pipe(downloadReportStream);\n responseStream = downloadReportStream;\n }\n\n if (\n // Value of POSITIVE_INFINITY in streamResponseStatusCodes is considered as any status code\n request.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY) ||\n request.streamResponseStatusCodes?.has(response.status)\n ) {\n response.readableStreamBody = responseStream;\n } else {\n response.bodyAsText = await streamToText(responseStream);\n }\n\n return response;\n } finally {\n // clean up event listener\n if (request.abortSignal && abortListener) {\n let uploadStreamDone = Promise.resolve();\n if (isReadableStream(body)) {\n uploadStreamDone = isStreamComplete(body);\n }\n let downloadStreamDone = Promise.resolve();\n if (isReadableStream(responseStream)) {\n downloadStreamDone = isStreamComplete(responseStream);\n }\n Promise.all([uploadStreamDone, downloadStreamDone])\n .then(() => {\n // eslint-disable-next-line promise/always-return\n if (abortListener) {\n request.abortSignal?.removeEventListener(\"abort\", abortListener);\n }\n })\n .catch((e) => {\n logger.warning(\"Error when cleaning up abortListener on httpRequest\", e);\n });\n }\n }\n }\n\n private makeRequest(\n request: PipelineRequest,\n abortController: AbortController,\n body?: RequestBodyType,\n ): Promise<http.IncomingMessage> {\n const url = new URL(request.url);\n\n const isInsecure = url.protocol !== \"https:\";\n\n if (isInsecure && !request.allowInsecureConnection) {\n throw new Error(`Cannot connect to ${request.url} while allowInsecureConnection is false.`);\n }\n\n const agent = (request.agent as http.Agent) ?? this.getOrCreateAgent(request, isInsecure);\n const options: http.RequestOptions = {\n agent,\n hostname: url.hostname,\n path: `${url.pathname}${url.search}`,\n port: url.port,\n method: request.method,\n headers: request.headers.toJSON({ preserveCase: true }),\n ...request.requestOverrides,\n };\n\n return new Promise<http.IncomingMessage>((resolve, reject) => {\n const req = isInsecure ? http.request(options, resolve) : https.request(options, resolve);\n\n req.once(\"error\", (err: Error & { code?: string }) => {\n reject(\n new RestError(err.message, { code: err.code ?? RestError.REQUEST_SEND_ERROR, request }),\n );\n });\n\n abortController.signal.addEventListener(\"abort\", () => {\n const abortError = new AbortError(\n \"The operation was aborted. Rejecting from abort signal callback while making request.\",\n );\n req.destroy(abortError);\n reject(abortError);\n });\n if (body && isReadableStream(body)) {\n body.pipe(req);\n } else if (body) {\n if (typeof body === \"string\" || Buffer.isBuffer(body)) {\n req.end(body);\n } else if (isArrayBuffer(body)) {\n req.end(ArrayBuffer.isView(body) ? Buffer.from(body.buffer) : Buffer.from(body));\n } else {\n logger.error(\"Unrecognized body type\", body);\n reject(new RestError(\"Unrecognized body type\"));\n }\n } else {\n // streams don't like \"undefined\" being passed as data\n req.end();\n }\n });\n }\n\n private getOrCreateAgent(request: PipelineRequest, isInsecure: boolean): http.Agent {\n const disableKeepAlive = request.disableKeepAlive;\n\n // Handle Insecure requests first\n if (isInsecure) {\n if (disableKeepAlive) {\n // keepAlive:false is the default so we don't need a custom Agent\n return http.globalAgent;\n }\n\n if (!this.cachedHttpAgent) {\n // If there is no cached agent create a new one and cache it.\n this.cachedHttpAgent = new http.Agent({ keepAlive: true });\n }\n return this.cachedHttpAgent;\n } else {\n if (disableKeepAlive && !request.tlsSettings) {\n // When there are no tlsSettings and keepAlive is false\n // we don't need a custom agent\n return https.globalAgent;\n }\n\n // We use the tlsSettings to index cached clients\n const tlsSettings = request.tlsSettings ?? DEFAULT_TLS_SETTINGS;\n\n // Get the cached agent or create a new one with the\n // provided values for keepAlive and tlsSettings\n let agent = this.cachedHttpsAgents.get(tlsSettings);\n\n if (agent && agent.options.keepAlive === !disableKeepAlive) {\n return agent;\n }\n\n logger.info(\"No cached TLS Agent exist, creating a new Agent\");\n agent = new https.Agent({\n // keepAlive is true if disableKeepAlive is false.\n keepAlive: !disableKeepAlive,\n // Since we are spreading, if no tslSettings were provided, nothing is added to the agent options.\n ...tlsSettings,\n });\n\n this.cachedHttpsAgents.set(tlsSettings, agent);\n return agent;\n }\n }\n}\n\nfunction getResponseHeaders(res: IncomingMessage): HttpHeaders {\n const headers = createHttpHeaders();\n for (const header of Object.keys(res.headers)) {\n const value = res.headers[header];\n if (Array.isArray(value)) {\n if (value.length > 0) {\n headers.set(header, value[0]);\n }\n } else if (value) {\n headers.set(header, value);\n }\n }\n return headers;\n}\n\nfunction getDecodedResponseStream(\n stream: IncomingMessage,\n headers: HttpHeaders,\n): NodeJS.ReadableStream {\n const contentEncoding = headers.get(\"Content-Encoding\");\n if (contentEncoding === \"gzip\") {\n const unzip = zlib.createGunzip();\n stream.pipe(unzip);\n return unzip;\n } else if (contentEncoding === \"deflate\") {\n const inflate = zlib.createInflate();\n stream.pipe(inflate);\n return inflate;\n }\n\n return stream;\n}\n\nfunction streamToText(stream: NodeJS.ReadableStream): Promise<string> {\n return new Promise<string>((resolve, reject) => {\n const buffer: Buffer[] = [];\n\n stream.on(\"data\", (chunk) => {\n if (Buffer.isBuffer(chunk)) {\n buffer.push(chunk);\n } else {\n buffer.push(Buffer.from(chunk));\n }\n });\n stream.on(\"end\", () => {\n resolve(Buffer.concat(buffer).toString(\"utf8\"));\n });\n stream.on(\"error\", (e) => {\n if (e && e?.name === \"AbortError\") {\n reject(e);\n } else {\n reject(\n new RestError(`Error reading response as text: ${e.message}`, {\n code: RestError.PARSE_ERROR,\n }),\n );\n }\n });\n });\n}\n\n/** @internal */\nexport function getBodyLength(body: RequestBodyType): number | null {\n if (!body) {\n return 0;\n } else if (Buffer.isBuffer(body)) {\n return body.length;\n } else if (isReadableStream(body)) {\n return null;\n } else if (isArrayBuffer(body)) {\n return body.byteLength;\n } else if (typeof body === \"string\") {\n return Buffer.from(body).length;\n } else {\n return null;\n }\n}\n\n/**\n * Create a new HttpClient instance for the NodeJS environment.\n * @internal\n */\nexport function createNodeHttpClient(): HttpClient {\n return new NodeHttpClient();\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,uBAAiB;AACjB,wBAAkB;AAClB,uBAAiB;AACjB,yBAA0B;AAC1B,wBAA2B;AAU3B,yBAAkC;AAClC,uBAA0B;AAE1B,iBAAuB;AACvB,uBAA0B;AAE1B,MAAM,uBAAuB,CAAC;AAE9B,SAAS,iBAAiB,MAA0C;AAClE,SAAO,QAAQ,OAAO,KAAK,SAAS;AACtC;AAEA,SAAS,iBAAiB,QAA8C;AACtE,MAAI,OAAO,aAAa,OAAO;AAC7B,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAEA,SAAO,IAAI,QAAQ,CAAC,YAAY;AAC9B,UAAM,UAAU,MAAY;AAC1B,cAAQ;AACR,aAA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U,IAAI;AAAA,MACd,MAAM,GAAG,IAAI,QAAQ,GAAG,IAAI,MAAM;AAAA,MAClC,MAAM,IAAI;AAAA,MACV,QAAQ,QAAQ;AAAA,MAChB,SAAS,QAAQ,QAAQ,OAAO,EAAE,cAAc,KAAK,CAAC;AAAA,MACtD,GAAG,QAAQ;AAAA,IACb;AAEA,WAAO,IAAI,QAA8B,CAAC,SAAS,WAAW;AAC5D,YAAM,MAAM,aAAa,iBAAAA,QAAK,QAAQ,SAAS,OAAO,IAAI,kBAAAC,QAAM,QAAQ,SAAS,OAAO;AAExF,UAAI,KAAK,SAAS,CAAC,QAAmC;AACpD;AAAA,UACE,IAAI,2BAAU,IAAI,SAAS,EAAE,MAAM,IAAI,QAAQ,2BAAU,oBAAoB,QAAQ,CAAC;AAAA,QACxF;AAAA,MACF,CAAC;AAED,sBAAgB,OAAO,iBAAiB,SAAS,MAAM;AACrD,cAAM,aAAa,IAAI;AAAA,UACrB;AAAA,QACF;AACA,YAAI,QAAQ,UAAU;AACtB,eAAO,UAAU;AAAA,MACnB,CAAC;AACD,UAAI,QAAQ,iBAAiB,IAAI,GAAG;AAClC,aAAK,KAAK,GAAG;AAAA,MACf,WAAW,MAAM;AACf,YAAI,OAAO,SAAS,YAAY,OAAO,SAAS,IAAI,GAAG;AACrD,cAAI,IAAI,IAAI;AAAA,QACd,WAAW,cAAc,IAAI,GAAG;AAC9B,cAAI,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport http from \"node:http\";\nimport https from \"node:https\";\nimport zlib from \"node:zlib\";\nimport { Transform } from \"node:stream\";\nimport { AbortError } from \"./abort-controller/AbortError.js\";\nimport type {\n HttpClient,\n HttpHeaders,\n PipelineRequest,\n PipelineResponse,\n RequestBodyType,\n TlsSettings,\n TransferProgressEvent,\n} from \"./interfaces.js\";\nimport { createHttpHeaders } from \"./httpHeaders.js\";\nimport { RestError } from \"./restError.js\";\nimport type { IncomingMessage } from \"node:http\";\nimport { logger } from \"./log.js\";\nimport { Sanitizer } from \"./util/sanitizer.js\";\n\nconst DEFAULT_TLS_SETTINGS = {};\n\nfunction isReadableStream(body: any): body is NodeJS.ReadableStream {\n return body && typeof body.pipe === \"function\";\n}\n\nfunction isStreamComplete(stream: NodeJS.ReadableStream): Promise<void> {\n if (stream.readable === false) {\n return Promise.resolve();\n }\n\n return new Promise((resolve) => {\n const handler = (): void => {\n resolve();\n stream.removeListener(\"close\", handler);\n stream.removeListener(\"end\", handler);\n stream.removeListener(\"error\", handler);\n };\n\n stream.on(\"close\", handler);\n stream.on(\"end\", handler);\n stream.on(\"error\", handler);\n });\n}\n\nfunction isArrayBuffer(body: any): body is ArrayBuffer | ArrayBufferView {\n return body && typeof body.byteLength === \"number\";\n}\n\nclass ReportTransform extends Transform {\n private loadedBytes = 0;\n private progressCallback: (progress: TransferProgressEvent) => void;\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n _transform(chunk: string | Buffer, _encoding: string, callback: Function): void {\n this.push(chunk);\n this.loadedBytes += chunk.length;\n try {\n this.progressCallback({ loadedBytes: this.loadedBytes });\n callback();\n } catch (e: any) {\n callback(e);\n }\n }\n\n constructor(progressCallback: (progress: TransferProgressEvent) => void) {\n super();\n this.progressCallback = progressCallback;\n }\n}\n\n/**\n * A HttpClient implementation that uses Node's \"https\" module to send HTTPS requests.\n * @internal\n */\nclass NodeHttpClient implements HttpClient {\n private cachedHttpAgent?: http.Agent;\n private cachedHttpsAgents: WeakMap<TlsSettings, https.Agent> = new WeakMap();\n\n /**\n * Makes a request over an underlying transport layer and returns the response.\n * @param request - The request to be made.\n */\n public async sendRequest(request: PipelineRequest): Promise<PipelineResponse> {\n const abortController = new AbortController();\n let abortListener: ((event: any) => void) | undefined;\n if (request.abortSignal) {\n if (request.abortSignal.aborted) {\n throw new AbortError(\"The operation was aborted. Request has already been canceled.\");\n }\n\n abortListener = (event: Event) => {\n if (event.type === \"abort\") {\n abortController.abort();\n }\n };\n request.abortSignal.addEventListener(\"abort\", abortListener);\n }\n\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n if (request.timeout > 0) {\n timeoutId = setTimeout(() => {\n const sanitizer = new Sanitizer();\n logger.info(`request to '${sanitizer.sanitizeUrl(request.url)}' timed out. canceling...`);\n abortController.abort();\n }, request.timeout);\n }\n\n const acceptEncoding = request.headers.get(\"Accept-Encoding\");\n const shouldDecompress =\n acceptEncoding?.includes(\"gzip\") || acceptEncoding?.includes(\"deflate\");\n\n let body = typeof request.body === \"function\" ? request.body() : request.body;\n if (body && !request.headers.has(\"Content-Length\")) {\n const bodyLength = getBodyLength(body);\n if (bodyLength !== null) {\n request.headers.set(\"Content-Length\", bodyLength);\n }\n }\n\n let responseStream: NodeJS.ReadableStream | undefined;\n try {\n if (body && request.onUploadProgress) {\n const onUploadProgress = request.onUploadProgress;\n const uploadReportStream = new ReportTransform(onUploadProgress);\n uploadReportStream.on(\"error\", (e) => {\n logger.error(\"Error in upload progress\", e);\n });\n if (isReadableStream(body)) {\n body.pipe(uploadReportStream);\n } else {\n uploadReportStream.end(body);\n }\n\n body = uploadReportStream;\n }\n\n const res = await this.makeRequest(request, abortController, body);\n\n if (timeoutId !== undefined) {\n clearTimeout(timeoutId);\n }\n\n const headers = getResponseHeaders(res);\n\n const status = res.statusCode ?? 0;\n const response: PipelineResponse = {\n status,\n headers,\n request,\n };\n\n // Responses to HEAD must not have a body.\n // If they do return a body, that body must be ignored.\n if (request.method === \"HEAD\") {\n // call resume() and not destroy() to avoid closing the socket\n // and losing keep alive\n res.resume();\n return response;\n }\n\n responseStream = shouldDecompress ? getDecodedResponseStream(res, headers) : res;\n\n const onDownloadProgress = request.onDownloadProgress;\n if (onDownloadProgress) {\n const downloadReportStream = new ReportTransform(onDownloadProgress);\n downloadReportStream.on(\"error\", (e) => {\n logger.error(\"Error in download progress\", e);\n });\n responseStream.pipe(downloadReportStream);\n responseStream = downloadReportStream;\n }\n\n if (\n // Value of POSITIVE_INFINITY in streamResponseStatusCodes is considered as any status code\n request.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY) ||\n request.streamResponseStatusCodes?.has(response.status)\n ) {\n response.readableStreamBody = responseStream;\n } else {\n response.bodyAsText = await streamToText(responseStream);\n }\n\n return response;\n } finally {\n // clean up event listener\n if (request.abortSignal && abortListener) {\n let uploadStreamDone = Promise.resolve();\n if (isReadableStream(body)) {\n uploadStreamDone = isStreamComplete(body);\n }\n let downloadStreamDone = Promise.resolve();\n if (isReadableStream(responseStream)) {\n downloadStreamDone = isStreamComplete(responseStream);\n }\n Promise.all([uploadStreamDone, downloadStreamDone])\n .then(() => {\n // eslint-disable-next-line promise/always-return\n if (abortListener) {\n request.abortSignal?.removeEventListener(\"abort\", abortListener);\n }\n })\n .catch((e) => {\n logger.warning(\"Error when cleaning up abortListener on httpRequest\", e);\n });\n }\n }\n }\n\n private makeRequest(\n request: PipelineRequest,\n abortController: AbortController,\n body?: RequestBodyType,\n ): Promise<http.IncomingMessage> {\n const url = new URL(request.url);\n\n const isInsecure = url.protocol !== \"https:\";\n\n if (isInsecure && !request.allowInsecureConnection) {\n throw new Error(`Cannot connect to ${request.url} while allowInsecureConnection is false.`);\n }\n\n const agent = (request.agent as http.Agent) ?? this.getOrCreateAgent(request, isInsecure);\n const options: http.RequestOptions = {\n agent,\n hostname: url.hostname,\n path: `${url.pathname}${url.search}`,\n port: url.port,\n method: request.method,\n headers: request.headers.toJSON({ preserveCase: true }),\n ...request.requestOverrides,\n };\n\n return new Promise<http.IncomingMessage>((resolve, reject) => {\n const req = isInsecure ? http.request(options, resolve) : https.request(options, resolve);\n\n req.once(\"error\", (err: Error & { code?: string }) => {\n reject(\n new RestError(err.message, { code: err.code ?? RestError.REQUEST_SEND_ERROR, request }),\n );\n });\n\n abortController.signal.addEventListener(\"abort\", () => {\n const abortError = new AbortError(\n \"The operation was aborted. Rejecting from abort signal callback while making request.\",\n );\n req.destroy(abortError);\n reject(abortError);\n });\n if (body && isReadableStream(body)) {\n body.pipe(req);\n } else if (body) {\n if (typeof body === \"string\" || Buffer.isBuffer(body)) {\n req.end(body);\n } else if (isArrayBuffer(body)) {\n req.end(\n ArrayBuffer.isView(body)\n ? Buffer.from(body.buffer, body.byteOffset, body.byteLength)\n : Buffer.from(body),\n );\n } else {\n logger.error(\"Unrecognized body type\", body);\n reject(new RestError(\"Unrecognized body type\"));\n }\n } else {\n // streams don't like \"undefined\" being passed as data\n req.end();\n }\n });\n }\n\n private getOrCreateAgent(request: PipelineRequest, isInsecure: boolean): http.Agent {\n const disableKeepAlive = request.disableKeepAlive;\n\n // Handle Insecure requests first\n if (isInsecure) {\n if (disableKeepAlive) {\n // keepAlive:false is the default so we don't need a custom Agent\n return http.globalAgent;\n }\n\n if (!this.cachedHttpAgent) {\n // If there is no cached agent create a new one and cache it.\n this.cachedHttpAgent = new http.Agent({ keepAlive: true });\n }\n return this.cachedHttpAgent;\n } else {\n if (disableKeepAlive && !request.tlsSettings) {\n // When there are no tlsSettings and keepAlive is false\n // we don't need a custom agent\n return https.globalAgent;\n }\n\n // We use the tlsSettings to index cached clients\n const tlsSettings = request.tlsSettings ?? DEFAULT_TLS_SETTINGS;\n\n // Get the cached agent or create a new one with the\n // provided values for keepAlive and tlsSettings\n let agent = this.cachedHttpsAgents.get(tlsSettings);\n\n if (agent && agent.options.keepAlive === !disableKeepAlive) {\n return agent;\n }\n\n logger.info(\"No cached TLS Agent exist, creating a new Agent\");\n agent = new https.Agent({\n // keepAlive is true if disableKeepAlive is false.\n keepAlive: !disableKeepAlive,\n // Since we are spreading, if no tslSettings were provided, nothing is added to the agent options.\n ...tlsSettings,\n });\n\n this.cachedHttpsAgents.set(tlsSettings, agent);\n return agent;\n }\n }\n}\n\nfunction getResponseHeaders(res: IncomingMessage): HttpHeaders {\n const headers = createHttpHeaders();\n for (const header of Object.keys(res.headers)) {\n const value = res.headers[header];\n if (Array.isArray(value)) {\n if (value.length > 0) {\n headers.set(header, value[0]);\n }\n } else if (value) {\n headers.set(header, value);\n }\n }\n return headers;\n}\n\nfunction getDecodedResponseStream(\n stream: IncomingMessage,\n headers: HttpHeaders,\n): NodeJS.ReadableStream {\n const contentEncoding = headers.get(\"Content-Encoding\");\n if (contentEncoding === \"gzip\") {\n const unzip = zlib.createGunzip();\n stream.pipe(unzip);\n return unzip;\n } else if (contentEncoding === \"deflate\") {\n const inflate = zlib.createInflate();\n stream.pipe(inflate);\n return inflate;\n }\n\n return stream;\n}\n\nfunction streamToText(stream: NodeJS.ReadableStream): Promise<string> {\n return new Promise<string>((resolve, reject) => {\n const buffer: Buffer[] = [];\n\n stream.on(\"data\", (chunk) => {\n if (Buffer.isBuffer(chunk)) {\n buffer.push(chunk);\n } else {\n buffer.push(Buffer.from(chunk));\n }\n });\n stream.on(\"end\", () => {\n resolve(Buffer.concat(buffer).toString(\"utf8\"));\n });\n stream.on(\"error\", (e) => {\n if (e && e?.name === \"AbortError\") {\n reject(e);\n } else {\n reject(\n new RestError(`Error reading response as text: ${e.message}`, {\n code: RestError.PARSE_ERROR,\n }),\n );\n }\n });\n });\n}\n\n/** @internal */\nexport function getBodyLength(body: RequestBodyType): number | null {\n if (!body) {\n return 0;\n } else if (Buffer.isBuffer(body)) {\n return body.length;\n } else if (isReadableStream(body)) {\n return null;\n } else if (isArrayBuffer(body)) {\n return body.byteLength;\n } else if (typeof body === \"string\") {\n return Buffer.from(body).length;\n } else {\n return null;\n }\n}\n\n/**\n * Create a new HttpClient instance for the NodeJS environment.\n * @internal\n */\nexport function createNodeHttpClient(): HttpClient {\n return new NodeHttpClient();\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,uBAAiB;AACjB,wBAAkB;AAClB,uBAAiB;AACjB,yBAA0B;AAC1B,wBAA2B;AAU3B,yBAAkC;AAClC,uBAA0B;AAE1B,iBAAuB;AACvB,uBAA0B;AAE1B,MAAM,uBAAuB,CAAC;AAE9B,SAAS,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KAAK;AAAA,EACd,WAAW,OAAO,SAAS,UAAU;AACnC,WAAO,OAAO,KAAK,IAAI,EAAE;AAAA,EAC3B,OAAO;AACL,WAAO;AAAA,EACT;AACF;AAMO,SAAS,uBAAmC;AACjD,SAAO,IAAI,eAAe;AAC5B;",
|
|
6
6
|
"names": ["http", "https", "zlib"]
|
|
7
7
|
}
|
|
@@ -21,7 +21,7 @@ __export(pipelineRequest_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(pipelineRequest_exports);
|
|
23
23
|
var import_httpHeaders = require("./httpHeaders.js");
|
|
24
|
-
var
|
|
24
|
+
var import_uuid = require("./util/uuidUtils.js");
|
|
25
25
|
class PipelineRequestImpl {
|
|
26
26
|
url;
|
|
27
27
|
method;
|
|
@@ -57,7 +57,7 @@ class PipelineRequestImpl {
|
|
|
57
57
|
this.abortSignal = options.abortSignal;
|
|
58
58
|
this.onUploadProgress = options.onUploadProgress;
|
|
59
59
|
this.onDownloadProgress = options.onDownloadProgress;
|
|
60
|
-
this.requestId = options.requestId || (0,
|
|
60
|
+
this.requestId = options.requestId || (0, import_uuid.randomUUID)();
|
|
61
61
|
this.allowInsecureConnection = options.allowInsecureConnection ?? false;
|
|
62
62
|
this.enableBrowserStreams = options.enableBrowserStreams ?? false;
|
|
63
63
|
this.requestOverrides = options.requestOverrides;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/pipelineRequest.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n FormDataMap,\n HttpHeaders,\n HttpMethods,\n MultipartRequestBody,\n PipelineRequest,\n ProxySettings,\n RequestBodyType,\n TransferProgressEvent,\n} from \"./interfaces.js\";\nimport { createHttpHeaders } from \"./httpHeaders.js\";\nimport { randomUUID } from \"
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAaA,yBAAkC;AAClC,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n FormDataMap,\n HttpHeaders,\n HttpMethods,\n MultipartRequestBody,\n PipelineRequest,\n ProxySettings,\n RequestBodyType,\n TransferProgressEvent,\n} from \"./interfaces.js\";\nimport { createHttpHeaders } from \"./httpHeaders.js\";\nimport { randomUUID } from \"#platform/uuid\";\nimport type { AuthScheme } from \"./auth/schemes.js\";\n\n/**\n * Settings to initialize a request.\n * Almost equivalent to Partial<PipelineRequest>, but url is mandatory.\n */\nexport interface PipelineRequestOptions {\n /**\n * The URL to make the request to.\n */\n url: string;\n\n /**\n * The HTTP method to use when making the request.\n */\n method?: HttpMethods;\n\n /**\n * The HTTP headers to use when making the request.\n */\n headers?: HttpHeaders;\n\n /**\n * The number of milliseconds a request can take before automatically being terminated.\n * If the request is terminated, an `AbortError` is thrown.\n * Defaults to 0, which disables the timeout.\n */\n timeout?: number;\n\n /**\n * If credentials (cookies) should be sent along during an XHR.\n * Defaults to false.\n */\n withCredentials?: boolean;\n\n /**\n * A unique identifier for the request. Used for logging and tracing.\n */\n requestId?: string;\n\n /**\n * The HTTP body content (if any)\n */\n body?: RequestBodyType;\n\n /**\n * Body for a multipart request.\n */\n multipartBody?: MultipartRequestBody;\n\n /**\n * To simulate a browser form post\n */\n formData?: FormDataMap;\n\n /**\n * A list of response status codes whose corresponding PipelineResponse body should be treated as a stream.\n */\n streamResponseStatusCodes?: Set<number>;\n\n /**\n * BROWSER ONLY\n *\n * A browser only option to enable use of the Streams API. If this option is set and streaming is used\n * (see `streamResponseStatusCodes`), the response will have a property `browserStream` instead of\n * `blobBody` which will be undefined.\n *\n * Default value is false\n */\n enableBrowserStreams?: boolean;\n\n /**\n * Proxy configuration.\n */\n proxySettings?: ProxySettings;\n\n /**\n * If the connection should not be reused.\n */\n disableKeepAlive?: boolean;\n\n /**\n * Used to abort the request later.\n */\n abortSignal?: AbortSignal;\n\n /**\n * Callback which fires upon upload progress.\n */\n onUploadProgress?: (progress: TransferProgressEvent) => void;\n\n /** Callback which fires upon download progress. */\n onDownloadProgress?: (progress: TransferProgressEvent) => void;\n\n /** Set to true if the request is sent over HTTP instead of HTTPS */\n allowInsecureConnection?: boolean;\n\n /**\n * List of authentication schemes used for this specific request.\n * These schemes define how the request will be authenticated.\n *\n * If values are provided, these schemes override the client level authentication schemes.\n * If an empty array is provided, it explicitly specifies no authentication for the request.\n * If not provided at the request level, the client level authentication schemes will be used.\n */\n authSchemes?: AuthScheme[];\n\n /**\n * Additional options to set on the request. This provides a way to override\n * existing ones or provide request properties that are not declared.\n *\n * For possible valid properties, see\n * - NodeJS https.request options: https://nodejs.org/api/http.html#httprequestoptions-callback\n * - Browser RequestInit: https://developer.mozilla.org/en-US/docs/Web/API/RequestInit\n *\n * WARNING: Options specified here will override any properties of same names when request is sent by {@link HttpClient}.\n */\n requestOverrides?: Record<string, unknown>;\n}\n\nclass PipelineRequestImpl implements PipelineRequest {\n public url: string;\n public method: HttpMethods;\n public headers: HttpHeaders;\n public timeout: number;\n public withCredentials: boolean;\n public body?: RequestBodyType;\n public multipartBody?: MultipartRequestBody;\n public formData?: FormDataMap;\n public streamResponseStatusCodes?: Set<number>;\n public enableBrowserStreams: boolean;\n\n public proxySettings?: ProxySettings;\n public disableKeepAlive: boolean;\n public abortSignal?: AbortSignal;\n public requestId: string;\n public allowInsecureConnection?: boolean;\n public onUploadProgress?: (progress: TransferProgressEvent) => void;\n public onDownloadProgress?: (progress: TransferProgressEvent) => void;\n public requestOverrides?: Record<string, unknown>;\n public authSchemes?: AuthScheme[];\n\n constructor(options: PipelineRequestOptions) {\n this.url = options.url;\n this.body = options.body;\n this.headers = options.headers ?? createHttpHeaders();\n this.method = options.method ?? \"GET\";\n this.timeout = options.timeout ?? 0;\n this.multipartBody = options.multipartBody;\n this.formData = options.formData;\n this.disableKeepAlive = options.disableKeepAlive ?? false;\n this.proxySettings = options.proxySettings;\n this.streamResponseStatusCodes = options.streamResponseStatusCodes;\n this.withCredentials = options.withCredentials ?? false;\n this.abortSignal = options.abortSignal;\n this.onUploadProgress = options.onUploadProgress;\n this.onDownloadProgress = options.onDownloadProgress;\n this.requestId = options.requestId || randomUUID();\n this.allowInsecureConnection = options.allowInsecureConnection ?? false;\n this.enableBrowserStreams = options.enableBrowserStreams ?? false;\n this.requestOverrides = options.requestOverrides;\n this.authSchemes = options.authSchemes;\n }\n}\n\n/**\n * Creates a new pipeline request with the given options.\n * This method is to allow for the easy setting of default values and not required.\n * @param options - The options to create the request with.\n */\nexport function createPipelineRequest(options: PipelineRequestOptions): PipelineRequest {\n return new PipelineRequestImpl(options);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAaA,yBAAkC;AAClC,kBAA2B;AAyH3B,MAAM,oBAA+C;AAAA,EAC5C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEP,YAAY,SAAiC;AAC3C,SAAK,MAAM,QAAQ;AACnB,SAAK,OAAO,QAAQ;AACpB,SAAK,UAAU,QAAQ,eAAW,sCAAkB;AACpD,SAAK,SAAS,QAAQ,UAAU;AAChC,SAAK,UAAU,QAAQ,WAAW;AAClC,SAAK,gBAAgB,QAAQ;AAC7B,SAAK,WAAW,QAAQ;AACxB,SAAK,mBAAmB,QAAQ,oBAAoB;AACpD,SAAK,gBAAgB,QAAQ;AAC7B,SAAK,4BAA4B,QAAQ;AACzC,SAAK,kBAAkB,QAAQ,mBAAmB;AAClD,SAAK,cAAc,QAAQ;AAC3B,SAAK,mBAAmB,QAAQ;AAChC,SAAK,qBAAqB,QAAQ;AAClC,SAAK,YAAY,QAAQ,iBAAa,wBAAW;AACjD,SAAK,0BAA0B,QAAQ,2BAA2B;AAClE,SAAK,uBAAuB,QAAQ,wBAAwB;AAC5D,SAAK,mBAAmB,QAAQ;AAChC,SAAK,cAAc,QAAQ;AAAA,EAC7B;AACF;AAOO,SAAS,sBAAsB,SAAkD;AACtF,SAAO,IAAI,oBAAoB,OAAO;AACxC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/policies/auth/basicAuthenticationPolicy.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { BasicCredential } from \"../../auth/credentials.js\";\nimport type { AuthScheme } from \"../../auth/schemes.js\";\nimport type { PipelineRequest, PipelineResponse, SendRequest } from \"../../interfaces.js\";\nimport type { PipelinePolicy } from \"../../pipeline.js\";\nimport { stringToUint8Array, uint8ArrayToString } from \"
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { BasicCredential } from \"../../auth/credentials.js\";\nimport type { AuthScheme } from \"../../auth/schemes.js\";\nimport type { PipelineRequest, PipelineResponse, SendRequest } from \"../../interfaces.js\";\nimport type { PipelinePolicy } from \"../../pipeline.js\";\nimport { stringToUint8Array, uint8ArrayToString } from \"#platform/bytesEncoding\";\nimport { ensureSecureConnection } from \"./checkInsecureConnection.js\";\n\n/**\n * Name of the Basic Authentication Policy\n */\nexport const basicAuthenticationPolicyName = \"bearerAuthenticationPolicy\";\n\n/**\n * Options for configuring the basic authentication policy\n */\nexport interface BasicAuthenticationPolicyOptions {\n /**\n * The credential used to authenticate requests\n */\n credential: BasicCredential;\n /**\n * Optional authentication schemes to use. If not provided, schemes from the request will be used.\n */\n authSchemes?: AuthScheme[];\n /**\n * Allows for connecting to HTTP endpoints instead of enforcing HTTPS.\n * CAUTION: Never use this option in production.\n */\n allowInsecureConnection?: boolean;\n}\n\n/**\n * Gets a pipeline policy that adds basic authentication to requests\n */\nexport function basicAuthenticationPolicy(\n options: BasicAuthenticationPolicyOptions,\n): PipelinePolicy {\n return {\n name: basicAuthenticationPolicyName,\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n // Ensure allowInsecureConnection is explicitly set when sending request to non-https URLs\n ensureSecureConnection(request, options);\n\n const scheme = (request.authSchemes ?? options.authSchemes)?.find(\n (x) => x.kind === \"http\" && x.scheme === \"basic\",\n );\n\n // Skip adding authentication header if no basic authentication scheme is found\n if (!scheme) {\n return next(request);\n }\n\n const { username, password } = options.credential;\n const headerValue = uint8ArrayToString(\n stringToUint8Array(`${username}:${password}`, \"utf-8\"),\n \"base64\",\n );\n request.headers.set(\"Authorization\", `Basic ${headerValue}`);\n return next(request);\n },\n };\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,2BAAuD;AACvD,qCAAuC;AAKhC,MAAM,gCAAgC;AAwBtC,SAAS,0BACd,SACgB;AAChB,SAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM,YAAY,SAA0B,MAA8C;AAExF,iEAAuB,SAAS,OAAO;AAEvC,YAAM,UAAU,QAAQ,eAAe,QAAQ,cAAc;AAAA,QAC3D,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,WAAW;AAAA,MAC3C;AAGA,UAAI,CAAC,QAAQ;AACX,eAAO,KAAK,OAAO;AAAA,MACrB;AAEA,YAAM,EAAE,UAAU,SAAS,IAAI,QAAQ;AACvC,YAAM,kBAAc;AAAA,YAClB,yCAAmB,GAAG,QAAQ,IAAI,QAAQ,IAAI,OAAO;AAAA,QACrD;AAAA,MACF;AACA,cAAQ,QAAQ,IAAI,iBAAiB,SAAS,WAAW,EAAE;AAC3D,aAAO,KAAK,OAAO;AAAA,IACrB;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -21,6 +21,7 @@ __export(checkInsecureConnection_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(checkInsecureConnection_exports);
|
|
23
23
|
var import_log = require("../../log.js");
|
|
24
|
+
var import_env = require("../../env.js");
|
|
24
25
|
let insecureConnectionWarningEmmitted = false;
|
|
25
26
|
function allowInsecureConnection(request, options) {
|
|
26
27
|
if (options.allowInsecureConnection && request.allowInsecureConnection) {
|
|
@@ -34,9 +35,9 @@ function allowInsecureConnection(request, options) {
|
|
|
34
35
|
function emitInsecureConnectionWarning() {
|
|
35
36
|
const warning = "Sending token over insecure transport. Assume any token issued is compromised.";
|
|
36
37
|
import_log.logger.warning(warning);
|
|
37
|
-
if (
|
|
38
|
+
if (!insecureConnectionWarningEmmitted) {
|
|
38
39
|
insecureConnectionWarningEmmitted = true;
|
|
39
|
-
|
|
40
|
+
(0, import_env.emitNodeWarning)(warning);
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
function ensureSecureConnection(request, options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/policies/auth/checkInsecureConnection.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { PipelineRequest } from \"../../interfaces.js\";\nimport { logger } from \"../../log.js\";\n\n// Ensure the warining is only emitted once\nlet insecureConnectionWarningEmmitted = false;\n\n/**\n * Checks if the request is allowed to be sent over an insecure connection.\n *\n * A request is allowed to be sent over an insecure connection when:\n * - The `allowInsecureConnection` option is set to `true`.\n * - The request has the `allowInsecureConnection` property set to `true`.\n * - The request is being sent to `localhost` or `127.0.0.1`\n */\nfunction allowInsecureConnection(\n request: PipelineRequest,\n options: { allowInsecureConnection?: boolean },\n): boolean {\n if (options.allowInsecureConnection && request.allowInsecureConnection) {\n const url = new URL(request.url);\n if (url.hostname === \"localhost\" || url.hostname === \"127.0.0.1\") {\n return true;\n }\n }\n\n return false;\n}\n\n/**\n * Logs a warning about sending a token over an insecure connection.\n *\n * This function will emit a node warning once, but log the warning every time.\n */\nfunction emitInsecureConnectionWarning(): void {\n const warning = \"Sending token over insecure transport. Assume any token issued is compromised.\";\n\n logger.warning(warning);\n\n if (
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,iBAAuB;
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { PipelineRequest } from \"../../interfaces.js\";\nimport { logger } from \"../../log.js\";\nimport { emitNodeWarning } from \"#platform/env\";\n\n// Ensure the warining is only emitted once\nlet insecureConnectionWarningEmmitted = false;\n\n/**\n * Checks if the request is allowed to be sent over an insecure connection.\n *\n * A request is allowed to be sent over an insecure connection when:\n * - The `allowInsecureConnection` option is set to `true`.\n * - The request has the `allowInsecureConnection` property set to `true`.\n * - The request is being sent to `localhost` or `127.0.0.1`\n */\nfunction allowInsecureConnection(\n request: PipelineRequest,\n options: { allowInsecureConnection?: boolean },\n): boolean {\n if (options.allowInsecureConnection && request.allowInsecureConnection) {\n const url = new URL(request.url);\n if (url.hostname === \"localhost\" || url.hostname === \"127.0.0.1\") {\n return true;\n }\n }\n\n return false;\n}\n\n/**\n * Logs a warning about sending a token over an insecure connection.\n *\n * This function will emit a node warning once, but log the warning every time.\n */\nfunction emitInsecureConnectionWarning(): void {\n const warning = \"Sending token over insecure transport. Assume any token issued is compromised.\";\n\n logger.warning(warning);\n\n if (!insecureConnectionWarningEmmitted) {\n insecureConnectionWarningEmmitted = true;\n emitNodeWarning(warning);\n }\n}\n\n/**\n * Ensures that authentication is only allowed over HTTPS unless explicitly allowed.\n * Throws an error if the connection is not secure and not explicitly allowed.\n */\nexport function ensureSecureConnection(\n request: PipelineRequest,\n options: { allowInsecureConnection?: boolean },\n): void {\n if (!request.url.toLowerCase().startsWith(\"https://\")) {\n if (allowInsecureConnection(request, options)) {\n emitInsecureConnectionWarning();\n } else {\n throw new Error(\n \"Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.\",\n );\n }\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,iBAAuB;AACvB,iBAAgC;AAGhC,IAAI,oCAAoC;AAUxC,SAAS,wBACP,SACA,SACS;AACT,MAAI,QAAQ,2BAA2B,QAAQ,yBAAyB;AACtE,UAAM,MAAM,IAAI,IAAI,QAAQ,GAAG;AAC/B,QAAI,IAAI,aAAa,eAAe,IAAI,aAAa,aAAa;AAChE,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;AAOA,SAAS,gCAAsC;AAC7C,QAAM,UAAU;AAEhB,oBAAO,QAAQ,OAAO;AAEtB,MAAI,CAAC,mCAAmC;AACtC,wCAAoC;AACpC,oCAAgB,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,uBACd,SACA,SACM;AACN,MAAI,CAAC,QAAQ,IAAI,YAAY,EAAE,WAAW,UAAU,GAAG;AACrD,QAAI,wBAAwB,SAAS,OAAO,GAAG;AAC7C,oCAA8B;AAAA,IAChC,OAAO;AACL,YAAM,IAAI;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -22,23 +22,16 @@ __export(formDataPolicy_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(formDataPolicy_exports);
|
|
24
24
|
var import_bytesEncoding = require("../util/bytesEncoding.js");
|
|
25
|
-
var
|
|
25
|
+
var import_formData = require("../formData.js");
|
|
26
26
|
var import_httpHeaders = require("../httpHeaders.js");
|
|
27
27
|
const formDataPolicyName = "formDataPolicy";
|
|
28
|
-
function formDataToFormDataMap(formData) {
|
|
29
|
-
const formDataMap = {};
|
|
30
|
-
for (const [key, value] of formData.entries()) {
|
|
31
|
-
formDataMap[key] ??= [];
|
|
32
|
-
formDataMap[key].push(value);
|
|
33
|
-
}
|
|
34
|
-
return formDataMap;
|
|
35
|
-
}
|
|
36
28
|
function formDataPolicy() {
|
|
37
29
|
return {
|
|
38
30
|
name: formDataPolicyName,
|
|
39
31
|
async sendRequest(request, next) {
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
const converted = (0, import_formData.convertBodyToFormDataMap)(request.body);
|
|
33
|
+
if (converted) {
|
|
34
|
+
request.formData = converted;
|
|
42
35
|
request.body = void 0;
|
|
43
36
|
}
|
|
44
37
|
if (request.formData) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/policies/formDataPolicy.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { stringToUint8Array } from \"
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,2BAAmC;AACnC,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { stringToUint8Array } from \"#platform/bytesEncoding\";\nimport { convertBodyToFormDataMap } from \"#platform/formData\";\nimport { createHttpHeaders } from \"../httpHeaders.js\";\nimport type {\n BodyPart,\n FormDataMap,\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"../interfaces.js\";\nimport type { PipelinePolicy } from \"../pipeline.js\";\n\n/**\n * The programmatic identifier of the formDataPolicy.\n */\nexport const formDataPolicyName = \"formDataPolicy\";\n\n/**\n * A policy that encodes FormData on the request into the body.\n */\nexport function formDataPolicy(): PipelinePolicy {\n return {\n name: formDataPolicyName,\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const converted = convertBodyToFormDataMap(request.body);\n if (converted) {\n request.formData = converted;\n request.body = undefined;\n }\n\n if (request.formData) {\n const contentType = request.headers.get(\"Content-Type\");\n if (contentType && contentType.indexOf(\"application/x-www-form-urlencoded\") !== -1) {\n request.body = wwwFormUrlEncode(request.formData);\n } else {\n await prepareFormData(request.formData, request);\n }\n\n request.formData = undefined;\n }\n return next(request);\n },\n };\n}\n\nfunction wwwFormUrlEncode(formData: FormDataMap): string {\n const urlSearchParams = new URLSearchParams();\n for (const [key, value] of Object.entries(formData)) {\n if (Array.isArray(value)) {\n for (const subValue of value) {\n urlSearchParams.append(key, subValue.toString());\n }\n } else {\n urlSearchParams.append(key, value.toString());\n }\n }\n return urlSearchParams.toString();\n}\n\nasync function prepareFormData(formData: FormDataMap, request: PipelineRequest): Promise<void> {\n // validate content type (multipart/form-data)\n const contentType = request.headers.get(\"Content-Type\");\n if (contentType && !contentType.startsWith(\"multipart/form-data\")) {\n // content type is specified and is not multipart/form-data. Exit.\n return;\n }\n\n request.headers.set(\"Content-Type\", contentType ?? \"multipart/form-data\");\n\n // set body to MultipartRequestBody using content from FormDataMap\n const parts: BodyPart[] = [];\n\n for (const [fieldName, values] of Object.entries(formData)) {\n for (const value of Array.isArray(values) ? values : [values]) {\n if (typeof value === \"string\") {\n parts.push({\n headers: createHttpHeaders({\n \"Content-Disposition\": `form-data; name=\"${fieldName}\"`,\n }),\n body: stringToUint8Array(value, \"utf-8\"),\n });\n } else if (value === undefined || value === null || typeof value !== \"object\") {\n throw new Error(\n `Unexpected value for key ${fieldName}: ${value}. Value should be serialized to string first.`,\n );\n } else {\n // using || instead of ?? here since if value.name is empty we should create a file name\n const fileName = (value as File).name || \"blob\";\n const headers = createHttpHeaders();\n headers.set(\n \"Content-Disposition\",\n `form-data; name=\"${fieldName}\"; filename=\"${fileName}\"`,\n );\n\n // again, || is used since an empty value.type means the content type is unset\n headers.set(\"Content-Type\", value.type || \"application/octet-stream\");\n\n parts.push({\n headers,\n body: value,\n });\n }\n }\n }\n request.multipartBody = { parts };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;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AC,WAAW,MAAM,KAAK,OAAO,QAAQ,QAAQ,GAAG;AAC1D,eAAW,SAAS,MAAM,QAAQ,MAAM,IAAI,SAAS,CAAC,MAAM,GAAG;AAC7D,UAAI,OAAO,UAAU,UAAU;AAC7B,cAAM,KAAK;AAAA,UACT,aAAS,sCAAkB;AAAA,YACzB,uBAAuB,oBAAoB,SAAS;AAAA,UACtD,CAAC;AAAA,UACD,UAAM,yCAAmB,OAAO,OAAO;AAAA,QACzC,CAAC;AAAA,MACH,WAAW,UAAU,UAAa,UAAU,QAAQ,OAAO,UAAU,UAAU;AAC7E,cAAM,IAAI;AAAA,UACR,4BAA4B,SAAS,KAAK,KAAK;AAAA,QACjD;AAAA,MACF,OAAO;AAEL,cAAM,WAAY,MAAe,QAAQ;AACzC,cAAM,cAAU,sCAAkB;AAClC,gBAAQ;AAAA,UACN;AAAA,UACA,oBAAoB,SAAS,gBAAgB,QAAQ;AAAA,QACvD;AAGA,gBAAQ,IAAI,gBAAgB,MAAM,QAAQ,0BAA0B;AAEpE,cAAM,KAAK;AAAA,UACT;AAAA,UACA,MAAM;AAAA,QACR,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACA,UAAQ,gBAAgB,EAAE,MAAM;AAClC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { agentPolicy, agentPolicyName } from "./agentPolicy.js";
|
|
2
|
-
export { decompressResponsePolicy, decompressResponsePolicyName
|
|
2
|
+
export { decompressResponsePolicy, decompressResponsePolicyName } from "./decompressResponsePolicy.js";
|
|
3
3
|
export { defaultRetryPolicy, defaultRetryPolicyName, type DefaultRetryPolicyOptions, } from "./defaultRetryPolicy.js";
|
|
4
4
|
export { exponentialRetryPolicy, exponentialRetryPolicyName, type ExponentialRetryPolicyOptions, } from "./exponentialRetryPolicy.js";
|
|
5
5
|
export { retryPolicy, type RetryPolicyOptions } from "./retryPolicy.js";
|
|
@@ -19,21 +19,21 @@ var internal_exports = {};
|
|
|
19
19
|
__export(internal_exports, {
|
|
20
20
|
agentPolicy: () => import_agentPolicy.agentPolicy,
|
|
21
21
|
agentPolicyName: () => import_agentPolicy.agentPolicyName,
|
|
22
|
-
decompressResponsePolicy: () =>
|
|
23
|
-
decompressResponsePolicyName: () =>
|
|
22
|
+
decompressResponsePolicy: () => import_decompress.decompressResponsePolicy,
|
|
23
|
+
decompressResponsePolicyName: () => import_decompress.decompressResponsePolicyName,
|
|
24
24
|
defaultRetryPolicy: () => import_defaultRetryPolicy.defaultRetryPolicy,
|
|
25
25
|
defaultRetryPolicyName: () => import_defaultRetryPolicy.defaultRetryPolicyName,
|
|
26
26
|
exponentialRetryPolicy: () => import_exponentialRetryPolicy.exponentialRetryPolicy,
|
|
27
27
|
exponentialRetryPolicyName: () => import_exponentialRetryPolicy.exponentialRetryPolicyName,
|
|
28
28
|
formDataPolicy: () => import_formDataPolicy.formDataPolicy,
|
|
29
29
|
formDataPolicyName: () => import_formDataPolicy.formDataPolicyName,
|
|
30
|
-
getDefaultProxySettings: () =>
|
|
30
|
+
getDefaultProxySettings: () => import_proxy.getDefaultProxySettings,
|
|
31
31
|
logPolicy: () => import_logPolicy.logPolicy,
|
|
32
32
|
logPolicyName: () => import_logPolicy.logPolicyName,
|
|
33
33
|
multipartPolicy: () => import_multipartPolicy.multipartPolicy,
|
|
34
34
|
multipartPolicyName: () => import_multipartPolicy.multipartPolicyName,
|
|
35
|
-
proxyPolicy: () =>
|
|
36
|
-
proxyPolicyName: () =>
|
|
35
|
+
proxyPolicy: () => import_proxy.proxyPolicy,
|
|
36
|
+
proxyPolicyName: () => import_proxy.proxyPolicyName,
|
|
37
37
|
redirectPolicy: () => import_redirectPolicy.redirectPolicy,
|
|
38
38
|
redirectPolicyName: () => import_redirectPolicy.redirectPolicyName,
|
|
39
39
|
retryPolicy: () => import_retryPolicy.retryPolicy,
|
|
@@ -48,7 +48,7 @@ __export(internal_exports, {
|
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(internal_exports);
|
|
50
50
|
var import_agentPolicy = require("./agentPolicy.js");
|
|
51
|
-
var
|
|
51
|
+
var import_decompress = require("./decompressResponsePolicy.js");
|
|
52
52
|
var import_defaultRetryPolicy = require("./defaultRetryPolicy.js");
|
|
53
53
|
var import_exponentialRetryPolicy = require("./exponentialRetryPolicy.js");
|
|
54
54
|
var import_retryPolicy = require("./retryPolicy.js");
|
|
@@ -57,7 +57,7 @@ var import_throttlingRetryPolicy = require("./throttlingRetryPolicy.js");
|
|
|
57
57
|
var import_formDataPolicy = require("./formDataPolicy.js");
|
|
58
58
|
var import_logPolicy = require("./logPolicy.js");
|
|
59
59
|
var import_multipartPolicy = require("./multipartPolicy.js");
|
|
60
|
-
var
|
|
60
|
+
var import_proxy = require("./proxyPolicy.js");
|
|
61
61
|
var import_redirectPolicy = require("./redirectPolicy.js");
|
|
62
62
|
var import_tlsPolicy = require("./tlsPolicy.js");
|
|
63
63
|
var import_userAgentPolicy = require("./userAgentPolicy.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/policies/internal.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { agentPolicy, agentPolicyName } from \"./agentPolicy.js\";\nexport {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,yBAA6C;AAC7C,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { agentPolicy, agentPolicyName } from \"./agentPolicy.js\";\nexport { decompressResponsePolicy, decompressResponsePolicyName } from \"#platform/decompress\";\nexport {\n defaultRetryPolicy,\n defaultRetryPolicyName,\n type DefaultRetryPolicyOptions,\n} from \"./defaultRetryPolicy.js\";\nexport {\n exponentialRetryPolicy,\n exponentialRetryPolicyName,\n type ExponentialRetryPolicyOptions,\n} from \"./exponentialRetryPolicy.js\";\nexport { retryPolicy, type RetryPolicyOptions } from \"./retryPolicy.js\";\nexport type {\n RetryInformation,\n RetryModifiers,\n RetryStrategy,\n} from \"../retryStrategies/retryStrategy.js\";\nexport { systemErrorRetryPolicy, systemErrorRetryPolicyName } from \"./systemErrorRetryPolicy.js\";\nexport { throttlingRetryPolicy, throttlingRetryPolicyName } from \"./throttlingRetryPolicy.js\";\nexport { formDataPolicy, formDataPolicyName } from \"./formDataPolicy.js\";\nexport { logPolicy, logPolicyName, type LogPolicyOptions } from \"./logPolicy.js\";\nexport { multipartPolicy, multipartPolicyName } from \"./multipartPolicy.js\";\nexport { proxyPolicy, proxyPolicyName, getDefaultProxySettings } from \"#platform/proxy\";\nexport {\n redirectPolicy,\n redirectPolicyName,\n type RedirectPolicyOptions,\n} from \"./redirectPolicy.js\";\nexport { tlsPolicy, tlsPolicyName } from \"./tlsPolicy.js\";\nexport {\n userAgentPolicy,\n userAgentPolicyName,\n type UserAgentPolicyOptions,\n} from \"./userAgentPolicy.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,yBAA6C;AAC7C,wBAAuE;AACvE,gCAIO;AACP,oCAIO;AACP,yBAAqD;AAMrD,oCAAmE;AACnE,mCAAiE;AACjE,4BAAmD;AACnD,uBAAgE;AAChE,6BAAqD;AACrD,mBAAsE;AACtE,4BAIO;AACP,uBAAyC;AACzC,6BAIO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -23,10 +23,10 @@ __export(multipartPolicy_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(multipartPolicy_exports);
|
|
24
24
|
var import_bytesEncoding = require("../util/bytesEncoding.js");
|
|
25
25
|
var import_typeGuards = require("../util/typeGuards.js");
|
|
26
|
-
var
|
|
26
|
+
var import_uuid = require("../util/uuidUtils.js");
|
|
27
27
|
var import_concat = require("../util/concat.js");
|
|
28
28
|
function generateBoundary() {
|
|
29
|
-
return `----AzSDKFormBoundary${(0,
|
|
29
|
+
return `----AzSDKFormBoundary${(0, import_uuid.randomUUID)()}`;
|
|
30
30
|
}
|
|
31
31
|
function encodeHeaders(headers) {
|
|
32
32
|
let result = "";
|
package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/multipartPolicy.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/policies/multipartPolicy.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { BodyPart, HttpHeaders, PipelineRequest, PipelineResponse } from \"../interfaces.js\";\nimport type { PipelinePolicy } from \"../pipeline.js\";\nimport { stringToUint8Array } from \"
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { BodyPart, HttpHeaders, PipelineRequest, PipelineResponse } from \"../interfaces.js\";\nimport type { PipelinePolicy } from \"../pipeline.js\";\nimport type { NodeReadableStream, WebReadableStream } from \"#platform/types\";\nimport { stringToUint8Array } from \"#platform/bytesEncoding\";\nimport { isBlob } from \"../util/typeGuards.js\";\nimport { randomUUID } from \"#platform/uuid\";\nimport { concat } from \"#platform/concat\";\n\nfunction generateBoundary(): string {\n return `----AzSDKFormBoundary${randomUUID()}`;\n}\n\nfunction encodeHeaders(headers: HttpHeaders): string {\n let result = \"\";\n for (const [key, value] of headers) {\n result += `${key}: ${value}\\r\\n`;\n }\n return result;\n}\n\nfunction getLength(\n source:\n | (() => WebReadableStream<Uint8Array>)\n | (() => NodeReadableStream)\n | Uint8Array\n | Blob\n | WebReadableStream\n | NodeReadableStream,\n): number | undefined {\n if (source instanceof Uint8Array) {\n return source.byteLength;\n } else if (isBlob(source)) {\n // if was created using createFile then -1 means we have an unknown size\n return source.size === -1 ? undefined : source.size;\n } else {\n return undefined;\n }\n}\n\nfunction getTotalLength(\n sources: (\n | (() => WebReadableStream<Uint8Array>)\n | (() => NodeReadableStream)\n | Uint8Array\n | Blob\n | WebReadableStream\n | NodeReadableStream\n )[],\n): number | undefined {\n let total = 0;\n for (const source of sources) {\n const partLength = getLength(source);\n if (partLength === undefined) {\n return undefined;\n } else {\n total += partLength;\n }\n }\n return total;\n}\n\nasync function buildRequestBody(\n request: PipelineRequest,\n parts: BodyPart[],\n boundary: string,\n): Promise<void> {\n const sources = [\n stringToUint8Array(`--${boundary}`, \"utf-8\"),\n ...parts.flatMap((part) => [\n stringToUint8Array(\"\\r\\n\", \"utf-8\"),\n stringToUint8Array(encodeHeaders(part.headers), \"utf-8\"),\n stringToUint8Array(\"\\r\\n\", \"utf-8\"),\n part.body,\n stringToUint8Array(`\\r\\n--${boundary}`, \"utf-8\"),\n ]),\n stringToUint8Array(\"--\\r\\n\\r\\n\", \"utf-8\"),\n ];\n\n const contentLength = getTotalLength(sources);\n if (contentLength) {\n request.headers.set(\"Content-Length\", contentLength);\n }\n\n // The public BodyPart.body type uses Uint8Array (= Uint8Array<ArrayBufferLike>) for\n // backward compatibility. Internally, concat requires Uint8Array<ArrayBuffer> to ensure\n // SharedArrayBuffer-backed arrays don't flow into Blob construction. In practice, HTTP\n // request bodies are always ArrayBuffer-backed, so this narrowing is safe.\n request.body = await concat(sources as Parameters<typeof concat>[0]);\n}\n\n/**\n * Name of multipart policy\n */\nexport const multipartPolicyName = \"multipartPolicy\";\n\nconst maxBoundaryLength = 70;\nconst validBoundaryCharacters = new Set(\n `abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`,\n);\n\nfunction assertValidBoundary(boundary: string): void {\n if (boundary.length > maxBoundaryLength) {\n throw new Error(`Multipart boundary \"${boundary}\" exceeds maximum length of 70 characters`);\n }\n\n if (Array.from(boundary).some((x) => !validBoundaryCharacters.has(x))) {\n throw new Error(`Multipart boundary \"${boundary}\" contains invalid characters`);\n }\n}\n\n/**\n * Pipeline policy for multipart requests\n */\nexport function multipartPolicy(): PipelinePolicy {\n return {\n name: multipartPolicyName,\n async sendRequest(request, next): Promise<PipelineResponse> {\n if (!request.multipartBody) {\n return next(request);\n }\n\n if (request.body) {\n throw new Error(\"multipartBody and regular body cannot be set at the same time\");\n }\n\n let boundary = request.multipartBody.boundary;\n\n const contentTypeHeader = request.headers.get(\"Content-Type\") ?? \"multipart/mixed\";\n const parsedHeader = contentTypeHeader.match(/^(multipart\\/[^ ;]+)(?:; *boundary=(.+))?$/);\n if (!parsedHeader) {\n throw new Error(\n `Got multipart request body, but content-type header was not multipart: ${contentTypeHeader}`,\n );\n }\n\n const [, contentType, parsedBoundary] = parsedHeader;\n if (parsedBoundary && boundary && parsedBoundary !== boundary) {\n throw new Error(\n `Multipart boundary was specified as ${parsedBoundary} in the header, but got ${boundary} in the request body`,\n );\n }\n\n boundary ??= parsedBoundary;\n if (boundary) {\n assertValidBoundary(boundary);\n } else {\n boundary = generateBoundary();\n }\n request.headers.set(\"Content-Type\", `${contentType}; boundary=${boundary}`);\n await buildRequestBody(request, request.multipartBody.parts, boundary);\n\n request.multipartBody = undefined;\n\n return next(request);\n },\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,2BAAmC;AACnC,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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Pipeline } from "../pipeline.js";
|
|
2
|
+
import type { Agent, ProxySettings, TlsSettings } from "../interfaces.js";
|
|
3
|
+
import type { RedirectPolicyOptions } from "./redirectPolicy.js";
|
|
4
|
+
/**
|
|
5
|
+
* Options for configuring platform-specific pipeline policies.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export interface PlatformPoliciesOptions {
|
|
10
|
+
agent?: Agent;
|
|
11
|
+
tlsOptions?: TlsSettings;
|
|
12
|
+
proxyOptions?: ProxySettings;
|
|
13
|
+
redirectOptions?: RedirectPolicyOptions;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Add platform-specific policies to the pipeline.
|
|
17
|
+
*
|
|
18
|
+
* On Node.js, this adds agent, TLS, proxy, decompression, and redirect
|
|
19
|
+
* policies. On browser and React Native these concerns are handled
|
|
20
|
+
* natively by the runtime, so this is a no-op.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare function addPlatformPolicies(pipeline: Pipeline, options: PlatformPoliciesOptions): void;
|
|
25
|
+
//# sourceMappingURL=platformPolicies.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var platformPolicies_exports = {};
|
|
19
|
+
__export(platformPolicies_exports, {
|
|
20
|
+
addPlatformPolicies: () => addPlatformPolicies
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(platformPolicies_exports);
|
|
23
|
+
var import_agentPolicy = require("./agentPolicy.js");
|
|
24
|
+
var import_tlsPolicy = require("./tlsPolicy.js");
|
|
25
|
+
var import_proxy = require("./proxyPolicy.js");
|
|
26
|
+
var import_decompress = require("./decompressResponsePolicy.js");
|
|
27
|
+
var import_redirectPolicy = require("./redirectPolicy.js");
|
|
28
|
+
function addPlatformPolicies(pipeline, options) {
|
|
29
|
+
if (options.agent) {
|
|
30
|
+
pipeline.addPolicy((0, import_agentPolicy.agentPolicy)(options.agent));
|
|
31
|
+
}
|
|
32
|
+
if (options.tlsOptions) {
|
|
33
|
+
pipeline.addPolicy((0, import_tlsPolicy.tlsPolicy)(options.tlsOptions));
|
|
34
|
+
}
|
|
35
|
+
pipeline.addPolicy((0, import_proxy.proxyPolicy)(options.proxyOptions));
|
|
36
|
+
pipeline.addPolicy((0, import_decompress.decompressResponsePolicy)());
|
|
37
|
+
pipeline.addPolicy((0, import_redirectPolicy.redirectPolicy)(options.redirectOptions), { afterPhase: "Retry" });
|
|
38
|
+
}
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
addPlatformPolicies
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=platformPolicies.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/policies/platformPolicies.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Pipeline } from \"../pipeline.js\";\nimport type { Agent, ProxySettings, TlsSettings } from \"../interfaces.js\";\nimport type { RedirectPolicyOptions } from \"./redirectPolicy.js\";\nimport { agentPolicy } from \"./agentPolicy.js\";\nimport { tlsPolicy } from \"./tlsPolicy.js\";\nimport { proxyPolicy } from \"#platform/proxy\";\nimport { decompressResponsePolicy } from \"#platform/decompress\";\nimport { redirectPolicy } from \"./redirectPolicy.js\";\n\n/**\n * Options for configuring platform-specific pipeline policies.\n *\n * @internal\n */\nexport interface PlatformPoliciesOptions {\n agent?: Agent;\n tlsOptions?: TlsSettings;\n proxyOptions?: ProxySettings;\n redirectOptions?: RedirectPolicyOptions;\n}\n\n/**\n * Add platform-specific policies to the pipeline.\n *\n * On Node.js, this adds agent, TLS, proxy, decompression, and redirect\n * policies. On browser and React Native these concerns are handled\n * natively by the runtime, so this is a no-op.\n *\n * @internal\n */\nexport function addPlatformPolicies(pipeline: Pipeline, options: PlatformPoliciesOptions): void {\n if (options.agent) {\n pipeline.addPolicy(agentPolicy(options.agent));\n }\n if (options.tlsOptions) {\n pipeline.addPolicy(tlsPolicy(options.tlsOptions));\n }\n pipeline.addPolicy(proxyPolicy(options.proxyOptions));\n pipeline.addPolicy(decompressResponsePolicy());\n // Both XHR and Fetch expect to handle redirects automatically,\n // so this only takes effect on Node.\n pipeline.addPolicy(redirectPolicy(options.redirectOptions), { afterPhase: \"Retry\" });\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBAA4B;AAC5B,uBAA0B;AAC1B,mBAA4B;AAC5B,wBAAyC;AACzC,4BAA+B;AAuBxB,SAAS,oBAAoB,UAAoB,SAAwC;AAC9F,MAAI,QAAQ,OAAO;AACjB,aAAS,cAAU,gCAAY,QAAQ,KAAK,CAAC;AAAA,EAC/C;AACA,MAAI,QAAQ,YAAY;AACtB,aAAS,cAAU,4BAAU,QAAQ,UAAU,CAAC;AAAA,EAClD;AACA,WAAS,cAAU,0BAAY,QAAQ,YAAY,CAAC;AACpD,WAAS,cAAU,4CAAyB,CAAC;AAG7C,WAAS,cAAU,sCAAe,QAAQ,eAAe,GAAG,EAAE,YAAY,QAAQ,CAAC;AACrF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/restError.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isError } from \"./util/error.js\";\nimport type { PipelineRequest, PipelineResponse } from \"./interfaces.js\";\nimport { custom } from \"
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isError } from \"./util/error.js\";\nimport type { PipelineRequest, PipelineResponse } from \"./interfaces.js\";\nimport { custom } from \"#platform/inspect\";\nimport { Sanitizer } from \"./util/sanitizer.js\";\n\nconst errorSanitizer = new Sanitizer();\n\n/**\n * The options supported by RestError.\n */\nexport interface RestErrorOptions {\n /**\n * The code of the error itself (use statics on RestError if possible.)\n */\n code?: string;\n /**\n * The HTTP status code of the request (if applicable.)\n */\n statusCode?: number;\n /**\n * The request that was made.\n */\n request?: PipelineRequest;\n /**\n * The response received (if any.)\n */\n response?: PipelineResponse;\n}\n\n/**\n * A custom error type for failed pipeline requests.\n */\nexport class RestError extends Error {\n /**\n * Something went wrong when making the request.\n * This means the actual request failed for some reason,\n * such as a DNS issue or the connection being lost.\n */\n static readonly REQUEST_SEND_ERROR: string = \"REQUEST_SEND_ERROR\";\n /**\n * This means that parsing the response from the server failed.\n * It may have been malformed.\n */\n static readonly PARSE_ERROR: string = \"PARSE_ERROR\";\n\n /**\n * The code of the error itself (use statics on RestError if possible.)\n */\n public code?: string;\n /**\n * The HTTP status code of the request (if applicable.)\n */\n public statusCode?: number;\n /**\n * The request that was made.\n * This property is non-enumerable.\n */\n public request?: PipelineRequest;\n /**\n * The response received (if any.)\n * This property is non-enumerable.\n */\n public response?: PipelineResponse;\n /**\n * Bonus property set by the throw site.\n */\n public details?: unknown;\n\n constructor(message: string, options: RestErrorOptions = {}) {\n super(message);\n this.name = \"RestError\";\n this.code = options.code;\n this.statusCode = options.statusCode;\n\n // The request and response may contain sensitive information in the headers or body.\n // To help prevent this sensitive information being accidentally logged, the request and response\n // properties are marked as non-enumerable here. This prevents them showing up in the output of\n // JSON.stringify and console.log.\n Object.defineProperty(this, \"request\", { value: options.request, enumerable: false });\n Object.defineProperty(this, \"response\", { value: options.response, enumerable: false });\n\n // Only include useful agent information in the request for logging, as the full agent object\n // may contain large binary data.\n const agent = this.request?.agent\n ? {\n maxFreeSockets: this.request.agent.maxFreeSockets,\n maxSockets: this.request.agent.maxSockets,\n }\n : undefined;\n\n // Logging method for util.inspect in Node\n Object.defineProperty(this, custom, {\n value: () => {\n // Extract non-enumerable properties and add them back. This is OK since in this output the request and\n // response get sanitized.\n return `RestError: ${this.message} \\n ${errorSanitizer.sanitize({\n ...this,\n request: { ...this.request, agent },\n response: this.response,\n })}`;\n },\n enumerable: false,\n });\n\n Object.setPrototypeOf(this, RestError.prototype);\n }\n}\n\n/**\n * Typeguard for RestError\n * @param e - Something caught by a catch clause.\n */\nexport function isRestError(e: unknown): e is RestError {\n if (e instanceof RestError) {\n return true;\n }\n return isError(e) && e.name === \"RestError\";\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,mBAAwB;AAExB,qBAAuB;AACvB,uBAA0B;AAE1B,MAAM,iBAAiB,IAAI,2BAAU;AA2B9B,MAAM,kBAAkB,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMnC,OAAgB,qBAA6B;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7C,O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NodeJS.ReadableStream;
|
|
7
|
+
/**
|
|
8
|
+
* Re-export of `Buffer` for use in platform-neutral code.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type NodeBuffer = Buffer;
|
|
13
|
+
/**
|
|
14
|
+
* Re-export of the Web `ReadableStream` for use in platform-neutral code.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export type WebReadableStream<R = any> = ReadableStream<R>;
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var types_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(types_exports);
|
|
16
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Re-export of `NodeJS.ReadableStream` for use in platform-neutral code.\n *\n * @public\n */\nexport type NodeReadableStream = NodeJS.ReadableStream;\n\n/**\n * Re-export of `Buffer` for use in platform-neutral code.\n *\n * @public\n */\nexport type NodeBuffer = Buffer;\n\n/**\n * Re-export of the Web `ReadableStream` for use in platform-neutral code.\n *\n * @public\n */\nexport type WebReadableStream<R = any> = ReadableStream<R>;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|