@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
|
@@ -55,6 +55,10 @@ async function buildRequestBody(request, parts, boundary) {
|
|
|
55
55
|
if (contentLength) {
|
|
56
56
|
request.headers.set("Content-Length", contentLength);
|
|
57
57
|
}
|
|
58
|
+
// The public BodyPart.body type uses Uint8Array (= Uint8Array<ArrayBufferLike>) for
|
|
59
|
+
// backward compatibility. Internally, concat requires Uint8Array<ArrayBuffer> to ensure
|
|
60
|
+
// SharedArrayBuffer-backed arrays don't flow into Blob construction. In practice, HTTP
|
|
61
|
+
// request bodies are always ArrayBuffer-backed, so this narrowing is safe.
|
|
58
62
|
request.body = await concat(sources);
|
|
59
63
|
}
|
|
60
64
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipartPolicy.js","sourceRoot":"","sources":["../../../src/policies/multipartPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"multipartPolicy.js","sourceRoot":"","sources":["../../../src/policies/multipartPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,OAAO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AAQ,GAAG,gBAAgB,EAAE,CAAC;YAChC,CAAC;YACD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,GAAG,WAAW,cAAc,QAAQ,EAAE,CAAC,CAAC;YAC5E,MAAM,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;YAEvE,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;YAElC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC","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"]}
|
|
@@ -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,30 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { agentPolicy } from "./agentPolicy.js";
|
|
4
|
+
import { tlsPolicy } from "./tlsPolicy.js";
|
|
5
|
+
import { proxyPolicy } from "./proxyPolicy.js";
|
|
6
|
+
import { decompressResponsePolicy } from "./decompressResponsePolicy.js";
|
|
7
|
+
import { redirectPolicy } from "./redirectPolicy.js";
|
|
8
|
+
/**
|
|
9
|
+
* Add platform-specific policies to the pipeline.
|
|
10
|
+
*
|
|
11
|
+
* On Node.js, this adds agent, TLS, proxy, decompression, and redirect
|
|
12
|
+
* policies. On browser and React Native these concerns are handled
|
|
13
|
+
* natively by the runtime, so this is a no-op.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export function addPlatformPolicies(pipeline, options) {
|
|
18
|
+
if (options.agent) {
|
|
19
|
+
pipeline.addPolicy(agentPolicy(options.agent));
|
|
20
|
+
}
|
|
21
|
+
if (options.tlsOptions) {
|
|
22
|
+
pipeline.addPolicy(tlsPolicy(options.tlsOptions));
|
|
23
|
+
}
|
|
24
|
+
pipeline.addPolicy(proxyPolicy(options.proxyOptions));
|
|
25
|
+
pipeline.addPolicy(decompressResponsePolicy());
|
|
26
|
+
// Both XHR and Fetch expect to handle redirects automatically,
|
|
27
|
+
// so this only takes effect on Node.
|
|
28
|
+
pipeline.addPolicy(redirectPolicy(options.redirectOptions), { afterPhase: "Retry" });
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=platformPolicies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformPolicies.js","sourceRoot":"","sources":["../../../src/policies/platformPolicies.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAcrD;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAkB,EAAE,OAAgC;IACtF,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAClB,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC;IACD,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;IACpD,CAAC;IACD,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;IACtD,QAAQ,CAAC,SAAS,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAC/C,+DAA+D;IAC/D,qCAAqC;IACrC,QAAQ,CAAC,SAAS,CAAC,cAAc,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;AACvF,CAAC","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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restError.js","sourceRoot":"","sources":["../../src/restError.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,cAAc,GAAG,IAAI,SAAS,EAAE,CAAC;AAwBvC;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC;;;;OAIG;IACH,MAAM,CAAU,kBAAkB,GAAW,oBAAoB,CAAC;IAClE;;;OAGG;IACH,MAAM,CAAU,WAAW,GAAW,aAAa,CAAC;IAEpD;;OAEG;IACI,IAAI,CAAU;IACrB;;OAEG;IACI,UAAU,CAAU;IAC3B;;;OAGG;IACI,OAAO,CAAmB;IACjC;;;OAGG;IACI,QAAQ,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SAClB,CAAC,CAAC;QAEH,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnD,CAAC;;AAGH;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,CAAU;IACpC,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC;AAC9C,CAAC","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 \"
|
|
1
|
+
{"version":3,"file":"restError.js","sourceRoot":"","sources":["../../src/restError.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,cAAc,GAAG,IAAI,SAAS,EAAE,CAAC;AAwBvC;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC;;;;OAIG;IACH,MAAM,CAAU,kBAAkB,GAAW,oBAAoB,CAAC;IAClE;;;OAGG;IACH,MAAM,CAAU,WAAW,GAAW,aAAa,CAAC;IAEpD;;OAEG;IACI,IAAI,CAAU;IACrB;;OAEG;IACI,UAAU,CAAU;IAC3B;;;OAGG;IACI,OAAO,CAAmB;IACjC;;;OAGG;IACI,QAAQ,CAAoB;IACnC;;OAEG;IACI,OAAO,CAAW;IAEzB,YAAY,OAAe,EAAE,UAA4B,EAAE;QACzD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,OAAO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,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC;AAC9C,CAAC","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"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export of `NodeJS.ReadableStream` for use in platform-neutral code.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type NodeReadableStream = 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 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","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"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
|
-
export type ConcatSource = ReadableStream<Uint8Array
|
|
6
|
+
export type ConcatSource = ReadableStream<Uint8Array<ArrayBuffer>> | NodeJS.ReadableStream | Uint8Array<ArrayBuffer> | Blob;
|
|
7
7
|
/**
|
|
8
8
|
* Utility function that concatenates a set of binary inputs into one combined output.
|
|
9
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../src/util/concat.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,KAAK,SAAS,CAAC,CAAC,mBAAmB;IAGjC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAChC,IAAI,CAAC;QACH,OAAO,IAAI,EAAE,CAAC;YACZ,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;YAC5C,IAAI,IAAI,EAAE,CAAC;gBACT,OAAO;YACT,CAAC;YAED,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CAAI,SAAc;IAC1C,IAAI,CAAC,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;AACH,CAAC;AAaD;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,OAAgD;IAEhD,OAAO;QACL,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAEtF,OAAO,QAAQ,CAAC,IAAI,CAClB,CAAC,KAAK,SAAS,CAAC;YACd,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;gBAC7B,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;oBACjC,MAAM,KAAK,CAAC;gBACd,CAAC;YACH,CAAC;QACH,CAAC,CAAC,EAAE,CACL,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Readable } from \"stream\";\nimport type { ReadableStream as AsyncIterableReadableStream } from \"stream/web\";\nimport { isBlob } from \"./typeGuards.js\";\n\nasync function* streamAsyncIterator(\n this: ReadableStream<Uint8Array>,\n): AsyncIterableIterator<Uint8Array> {\n const reader = this.getReader();\n try {\n while (true) {\n const { done, value } = await reader.read();\n if (done) {\n return;\n }\n\n yield value;\n }\n } finally {\n reader.releaseLock();\n }\n}\n\nfunction makeAsyncIterable<T>(webStream: any): asserts webStream is AsyncIterableReadableStream<T> {\n if (!webStream[Symbol.asyncIterator]) {\n webStream[Symbol.asyncIterator] = streamAsyncIterator.bind(webStream);\n }\n\n if (!webStream.values) {\n webStream.values = streamAsyncIterator.bind(webStream);\n }\n}\n\nfunction ensureNodeStream(\n stream: ReadableStream<Uint8Array> | NodeJS.ReadableStream,\n): NodeJS.ReadableStream {\n if (stream instanceof ReadableStream) {\n makeAsyncIterable<Uint8Array>(stream);\n return Readable.fromWeb(stream);\n } else {\n return stream;\n }\n}\n\nfunction toStream(\n source: ReadableStream<Uint8Array> | NodeJS.ReadableStream | Uint8Array | Blob,\n): NodeJS.ReadableStream {\n if (source instanceof Uint8Array) {\n return Readable.from(Buffer.from(source));\n } else if (isBlob(source)) {\n return ensureNodeStream(source.stream());\n } else {\n return ensureNodeStream(source);\n }\n}\n\n/**\n * Accepted binary data types for concat\n *\n * @internal\n */\nexport type ConcatSource =\n | ReadableStream<Uint8Array<ArrayBuffer>>\n | NodeJS.ReadableStream\n | Uint8Array<ArrayBuffer>\n | Blob;\n\n/**\n * Utility function that concatenates a set of binary inputs into one combined output.\n *\n * @param sources - array of sources for the concatenation\n * @returns - in Node, a (() =\\> NodeJS.ReadableStream) which, when read, produces a concatenation of all the inputs.\n * In browser, returns a `Blob` representing all the concatenated inputs.\n *\n * @internal\n */\nexport async function concat(\n sources: (ConcatSource | (() => ConcatSource))[],\n): Promise<(() => NodeJS.ReadableStream) | Blob> {\n return function () {\n const streams = sources.map((x) => (typeof x === \"function\" ? x() : x)).map(toStream);\n\n return Readable.from(\n (async function* () {\n for (const stream of streams) {\n for await (const chunk of stream) {\n yield chunk;\n }\n }\n })(),\n );\n };\n}\n"]}
|
|
@@ -4,7 +4,7 @@ export { isObject, type UnknownObject } from "./object.js";
|
|
|
4
4
|
export { isError } from "./error.js";
|
|
5
5
|
export { computeSha256Hash, computeSha256Hmac } from "./sha256.js";
|
|
6
6
|
export { randomUUID } from "./uuidUtils.js";
|
|
7
|
-
export { isBrowser, isBun, isNodeLike, isNodeRuntime, isDeno, isReactNative, isWebWorker, } from "
|
|
7
|
+
export { isBrowser, isBun, isNodeLike, isNodeRuntime, isDeno, isReactNative, isWebWorker, } from "../env.js";
|
|
8
8
|
export { stringToUint8Array, uint8ArrayToString, type EncodingType } from "./bytesEncoding.js";
|
|
9
9
|
export { Sanitizer, type SanitizerOptions } from "./sanitizer.js";
|
|
10
10
|
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -6,7 +6,7 @@ export { isObject } from "./object.js";
|
|
|
6
6
|
export { isError } from "./error.js";
|
|
7
7
|
export { computeSha256Hash, computeSha256Hmac } from "./sha256.js";
|
|
8
8
|
export { randomUUID } from "./uuidUtils.js";
|
|
9
|
-
export { isBrowser, isBun, isNodeLike, isNodeRuntime, isDeno, isReactNative, isWebWorker, } from "
|
|
9
|
+
export { isBrowser, isBun, isNodeLike, isNodeRuntime, isDeno, isReactNative, isWebWorker, } from "../env.js";
|
|
10
10
|
export { stringToUint8Array, uint8ArrayToString } from "./bytesEncoding.js";
|
|
11
11
|
export { Sanitizer } from "./sanitizer.js";
|
|
12
12
|
//# sourceMappingURL=internal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/util/internal.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAsB,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/util/internal.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAsB,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACL,SAAS,EACT,KAAK,EACL,UAAU,EACV,aAAa,EACb,MAAM,EACN,aAAa,EACb,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAqB,MAAM,yBAAyB,CAAC;AACpG,OAAO,EAAE,SAAS,EAAyB,MAAM,gBAAgB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { calculateRetryDelay } from \"./delay.js\";\nexport { getRandomIntegerInclusive } from \"./random.js\";\nexport { isObject, type UnknownObject } from \"./object.js\";\nexport { isError } from \"./error.js\";\nexport { computeSha256Hash, computeSha256Hmac } from \"#platform/sha256\";\nexport { randomUUID } from \"#platform/uuid\";\nexport {\n isBrowser,\n isBun,\n isNodeLike,\n isNodeRuntime,\n isDeno,\n isReactNative,\n isWebWorker,\n} from \"#platform/env\";\nexport { stringToUint8Array, uint8ArrayToString, type EncodingType } from \"#platform/bytesEncoding\";\nexport { Sanitizer, type SanitizerOptions } from \"./sanitizer.js\";\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the given value is a Node.js readable stream.
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare function isNodeReadableStream(x: unknown): x is NodeJS.ReadableStream;
|
|
7
|
+
/**
|
|
8
|
+
* Checks if the given value is a web ReadableStream.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare function isWebReadableStream(x: unknown): x is ReadableStream;
|
|
13
|
+
//# sourceMappingURL=typeGuards-node.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { Readable } from "stream";
|
|
4
|
+
/**
|
|
5
|
+
* Checks if the given value is a Node.js readable stream.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export function isNodeReadableStream(x) {
|
|
10
|
+
return x instanceof Readable;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Checks if the given value is a web ReadableStream.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export function isWebReadableStream(x) {
|
|
18
|
+
return x instanceof ReadableStream;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=typeGuards-node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeGuards-node.js","sourceRoot":"","sources":["../../../src/util/typeGuards-node.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,CAAU;IAC7C,OAAO,CAAC,YAAY,QAAQ,CAAC;AAC/B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,CAAU;IAC5C,OAAO,CAAC,YAAY,cAAc,CAAC;AACrC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Readable } from \"stream\";\n\n/**\n * Checks if the given value is a Node.js readable stream.\n *\n * @internal\n */\nexport function isNodeReadableStream(x: unknown): x is NodeJS.ReadableStream {\n return x instanceof Readable;\n}\n\n/**\n * Checks if the given value is a web ReadableStream.\n *\n * @internal\n */\nexport function isWebReadableStream(x: unknown): x is ReadableStream {\n return x instanceof ReadableStream;\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export declare function
|
|
1
|
+
import type { NodeReadableStream, WebReadableStream } from "../types.js";
|
|
2
|
+
import { isNodeReadableStream, isWebReadableStream } from "./typeGuards-node.js";
|
|
3
|
+
export { isNodeReadableStream, isWebReadableStream };
|
|
4
|
+
export declare function isBinaryBody(body: unknown): body is Uint8Array | NodeReadableStream | WebReadableStream<Uint8Array> | (() => NodeReadableStream) | (() => WebReadableStream<Uint8Array>) | Blob;
|
|
5
|
+
export declare function isReadableStream(x: unknown): x is WebReadableStream | NodeReadableStream;
|
|
5
6
|
export declare function isBlob(x: unknown): x is Blob;
|
|
6
7
|
//# sourceMappingURL=typeGuards.d.ts.map
|
|
@@ -1,24 +1,18 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export function isWebReadableStream(x) {
|
|
7
|
-
return Boolean(x &&
|
|
8
|
-
typeof x.getReader === "function" &&
|
|
9
|
-
typeof x.tee === "function");
|
|
10
|
-
}
|
|
3
|
+
import { isNodeReadableStream, isWebReadableStream } from "./typeGuards-node.js";
|
|
4
|
+
export { isNodeReadableStream, isWebReadableStream };
|
|
11
5
|
export function isBinaryBody(body) {
|
|
12
6
|
return (body !== undefined &&
|
|
13
7
|
(body instanceof Uint8Array ||
|
|
14
8
|
isReadableStream(body) ||
|
|
15
9
|
typeof body === "function" ||
|
|
16
|
-
|
|
10
|
+
body instanceof Blob));
|
|
17
11
|
}
|
|
18
12
|
export function isReadableStream(x) {
|
|
19
13
|
return isNodeReadableStream(x) || isWebReadableStream(x);
|
|
20
14
|
}
|
|
21
15
|
export function isBlob(x) {
|
|
22
|
-
return
|
|
16
|
+
return x instanceof Blob;
|
|
23
17
|
}
|
|
24
18
|
//# sourceMappingURL=typeGuards.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.js","sourceRoot":"","sources":["../../../src/util/typeGuards.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"typeGuards.js","sourceRoot":"","sources":["../../../src/util/typeGuards.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;AAErD,MAAM,UAAU,YAAY,CAC1B,IAAa;IAQb,OAAO,CACL,IAAI,KAAK,SAAS;QAClB,CAAC,IAAI,YAAY,UAAU;YACzB,gBAAgB,CAAC,IAAI,CAAC;YACtB,OAAO,IAAI,KAAK,UAAU;YAC1B,IAAI,YAAY,IAAI,CAAC,CACxB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,CAAU;IACzC,OAAO,oBAAoB,CAAC,CAAC,CAAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,CAAU;IAC/B,OAAO,CAAC,YAAY,IAAI,CAAC;AAC3B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { NodeReadableStream, WebReadableStream } from \"#platform/types\";\nimport { isNodeReadableStream, isWebReadableStream } from \"#platform/typeGuards\";\n\nexport { isNodeReadableStream, isWebReadableStream };\n\nexport function isBinaryBody(\n body: unknown,\n): body is\n | Uint8Array\n | NodeReadableStream\n | WebReadableStream<Uint8Array>\n | (() => NodeReadableStream)\n | (() => WebReadableStream<Uint8Array>)\n | Blob {\n return (\n body !== undefined &&\n (body instanceof Uint8Array ||\n isReadableStream(body) ||\n typeof body === \"function\" ||\n body instanceof Blob)\n );\n}\n\nexport function isReadableStream(x: unknown): x is WebReadableStream | NodeReadableStream {\n return isNodeReadableStream(x) || isWebReadableStream(x);\n}\n\nexport function isBlob(x: unknown): x is Blob {\n return x instanceof Blob;\n}\n"]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { getHeaderName, setPlatformSpecificData } from "./userAgentPlatform.js";
|
|
4
4
|
import { SDK_VERSION } from "../constants.js";
|
|
5
|
+
export { setPlatformSpecificData };
|
|
5
6
|
function getUserAgentString(telemetryInfo) {
|
|
6
7
|
const parts = [];
|
|
7
8
|
for (const [key, value] of telemetryInfo) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userAgent.js","sourceRoot":"","sources":["../../../src/util/userAgent.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"userAgent.js","sourceRoot":"","sources":["../../../src/util/userAgent.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,SAAS,kBAAkB,CAAC,aAAkC;IAC5D,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,aAAa,EAAE,CAAC;QACzC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;QAC9C,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,aAAa,EAAE,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,MAAe;IACrD,MAAM,WAAW,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC9C,WAAW,CAAC,GAAG,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;IAChD,MAAM,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAC3C,MAAM,YAAY,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACrD,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,YAAY,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;IAC3E,OAAO,cAAc,CAAC;AACxB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getHeaderName, setPlatformSpecificData } from \"#platform/userAgent\";\nimport { SDK_VERSION } from \"../constants.js\";\n\nexport { setPlatformSpecificData };\n\nfunction getUserAgentString(telemetryInfo: Map<string, string>): string {\n const parts: string[] = [];\n for (const [key, value] of telemetryInfo) {\n const token = value ? `${key}/${value}` : key;\n parts.push(token);\n }\n return parts.join(\" \");\n}\n\n/**\n * @internal\n */\nexport function getUserAgentHeaderName(): string {\n return getHeaderName();\n}\n\n/**\n * @internal\n */\nexport async function getUserAgentValue(prefix?: string): Promise<string> {\n const runtimeInfo = new Map<string, string>();\n runtimeInfo.set(\"ts-http-runtime\", SDK_VERSION);\n await setPlatformSpecificData(runtimeInfo);\n const defaultAgent = getUserAgentString(runtimeInfo);\n const userAgentValue = prefix ? `${prefix} ${defaultAgent}` : defaultAgent;\n return userAgentValue;\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { createDefaultHttpClient } from "../defaultHttpClient.
|
|
3
|
+
import { createDefaultHttpClient } from "../defaultHttpClient-react-native.mjs";
|
|
4
4
|
import { createPipelineFromOptions } from "../createPipelineFromOptions.js";
|
|
5
5
|
import { apiVersionPolicy } from "./apiVersionPolicy.js";
|
|
6
6
|
import { isApiKeyCredential, isBasicCredential, isBearerTokenCredential, isOAuth2TokenCredential, } from "../auth/credentials.js";
|
package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/clientHelpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientHelpers.js","sourceRoot":"","sources":["../../../src/client/clientHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"clientHelpers.js","sourceRoot":"","sources":["../../../src/client/clientHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAE5F,IAAI,gBAAwC,CAAC;AAE7C;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,UAAyB,EAAE;IAC/D,MAAM,QAAQ,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAEpD,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;IAE9C,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IACrE,IAAI,UAAU,EAAE,CAAC;QACf,IAAI,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC;YACnC,QAAQ,CAAC,SAAS,CAChB,0BAA0B,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,uBAAuB,EAAE,CAAC,CACjF,CAAC;QACJ,CAAC;aAAM,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC;YACzC,QAAQ,CAAC,SAAS,CAChB,yBAAyB,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,uBAAuB,EAAE,CAAC,CAChF,CAAC;QACJ,CAAC;aAAM,IAAI,uBAAuB,CAAC,UAAU,CAAC,EAAE,CAAC;YAC/C,QAAQ,CAAC,SAAS,CAChB,0BAA0B,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,uBAAuB,EAAE,CAAC,CACjF,CAAC;QACJ,CAAC;aAAM,IAAI,uBAAuB,CAAC,UAAU,CAAC,EAAE,CAAC;YAC/C,QAAQ,CAAC,SAAS,CAChB,0BAA0B,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,uBAAuB,EAAE,CAAC,CACjF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,2BAA2B;IACzC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,gBAAgB,GAAG,uBAAuB,EAAE,CAAC;IAC/C,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HttpClient } from \"../interfaces.js\";\nimport type { Pipeline } from \"../pipeline.js\";\nimport { createDefaultHttpClient } from \"#platform/httpClient\";\nimport { createPipelineFromOptions } from \"../createPipelineFromOptions.js\";\nimport type { ClientOptions } from \"./common.js\";\nimport { apiVersionPolicy } from \"./apiVersionPolicy.js\";\nimport {\n isApiKeyCredential,\n isBasicCredential,\n isBearerTokenCredential,\n isOAuth2TokenCredential,\n} from \"../auth/credentials.js\";\nimport { apiKeyAuthenticationPolicy } from \"../policies/auth/apiKeyAuthenticationPolicy.js\";\nimport { basicAuthenticationPolicy } from \"../policies/auth/basicAuthenticationPolicy.js\";\nimport { bearerAuthenticationPolicy } from \"../policies/auth/bearerAuthenticationPolicy.js\";\nimport { oauth2AuthenticationPolicy } from \"../policies/auth/oauth2AuthenticationPolicy.js\";\n\nlet cachedHttpClient: HttpClient | undefined;\n\n/**\n * Creates a default rest pipeline to re-use accross Rest Level Clients\n */\nexport function createDefaultPipeline(options: ClientOptions = {}): Pipeline {\n const pipeline = createPipelineFromOptions(options);\n\n pipeline.addPolicy(apiVersionPolicy(options));\n\n const { credential, authSchemes, allowInsecureConnection } = options;\n if (credential) {\n if (isApiKeyCredential(credential)) {\n pipeline.addPolicy(\n apiKeyAuthenticationPolicy({ authSchemes, credential, allowInsecureConnection }),\n );\n } else if (isBasicCredential(credential)) {\n pipeline.addPolicy(\n basicAuthenticationPolicy({ authSchemes, credential, allowInsecureConnection }),\n );\n } else if (isBearerTokenCredential(credential)) {\n pipeline.addPolicy(\n bearerAuthenticationPolicy({ authSchemes, credential, allowInsecureConnection }),\n );\n } else if (isOAuth2TokenCredential(credential)) {\n pipeline.addPolicy(\n oauth2AuthenticationPolicy({ authSchemes, credential, allowInsecureConnection }),\n );\n }\n }\n\n return pipeline;\n}\n\nexport function getCachedDefaultHttpsClient(): HttpClient {\n if (!cachedHttpClient) {\n cachedHttpClient = createDefaultHttpClient();\n }\n\n return cachedHttpClient;\n}\n"]}
|
|
@@ -2,6 +2,7 @@ import type { HttpClient, PipelineRequest, PipelineResponse, RawHttpHeaders, Req
|
|
|
2
2
|
import type { Pipeline, PipelinePolicy } from "../pipeline.js";
|
|
3
3
|
import type { PipelineOptions } from "../createPipelineFromOptions.js";
|
|
4
4
|
import type { LogPolicyOptions } from "../policies/logPolicy.js";
|
|
5
|
+
import type { NodeReadableStream, WebReadableStream } from "../types-react-native.mjs";
|
|
5
6
|
import type { AuthScheme } from "../auth/schemes.js";
|
|
6
7
|
import type { ClientCredential } from "../auth/credentials.js";
|
|
7
8
|
/**
|
|
@@ -175,7 +176,7 @@ export type HttpNodeStreamResponse = HttpResponse & {
|
|
|
175
176
|
/**
|
|
176
177
|
* Streamable body
|
|
177
178
|
*/
|
|
178
|
-
body?:
|
|
179
|
+
body?: NodeReadableStream;
|
|
179
180
|
};
|
|
180
181
|
/**
|
|
181
182
|
* Http Response which body is a NodeJS stream object
|
|
@@ -184,7 +185,7 @@ export type HttpBrowserStreamResponse = HttpResponse & {
|
|
|
184
185
|
/**
|
|
185
186
|
* Streamable body
|
|
186
187
|
*/
|
|
187
|
-
body?:
|
|
188
|
+
body?: WebReadableStream<Uint8Array>;
|
|
188
189
|
};
|
|
189
190
|
/**
|
|
190
191
|
* Defines the type for a method that supports getting the response body as
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/client/common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n HttpClient,\n PipelineRequest,\n PipelineResponse,\n RawHttpHeaders,\n RequestBodyType,\n TransferProgressEvent,\n RawHttpHeadersInput,\n} from \"../interfaces.js\";\nimport type { Pipeline, PipelinePolicy } from \"../pipeline.js\";\nimport type { PipelineOptions } from \"../createPipelineFromOptions.js\";\nimport type { LogPolicyOptions } from \"../policies/logPolicy.js\";\nimport type { AuthScheme } from \"../auth/schemes.js\";\nimport type { ClientCredential } from \"../auth/credentials.js\";\n\n/**\n * Shape of the default request parameters, this may be overridden by the specific\n * request types to provide strong types\n */\nexport type RequestParameters = {\n /**\n * Headers to send along with the request\n */\n headers?: RawHttpHeadersInput;\n /**\n * Sets the accept header to send to the service\n * defaults to 'application/json'. If also a header \"accept\" is set\n * this property will take precedence.\n */\n accept?: string;\n /**\n * Body to send with the request\n */\n body?: unknown;\n /**\n * Query parameters to send with the request\n */\n queryParameters?: Record<string, unknown>;\n /**\n * Set an explicit content-type to send with the request. If also a header \"content-type\" is set\n * this property will take precedence.\n */\n contentType?: string;\n /** Set to true if the request is sent over HTTP instead of HTTPS */\n allowInsecureConnection?: boolean;\n /** Set to true if you want to skip encoding the path parameters */\n skipUrlEncoding?: boolean;\n /**\n * Path parameters for custom the base url\n */\n pathParameters?: Record<string, any>;\n\n /**\n * The number of milliseconds a request can take before automatically being terminated.\n */\n timeout?: number;\n\n /**\n * Callback which fires upon upload progress.\n */\n onUploadProgress?: (progress: TransferProgressEvent) => void;\n\n /**\n * Callback which fires upon download progress.\n */\n onDownloadProgress?: (progress: TransferProgressEvent) => void;\n\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignal;\n\n /**\n * A function to be called each time a response is received from the server\n * while performing the requested operation.\n * May be called multiple times.\n */\n onResponse?: RawResponseCallback;\n};\n\n/**\n * A function to be called each time a response is received from the server\n * while performing the requested operation.\n * May be called multiple times.\n */\n// UNBRANDED DIFFERENCE: onResponse callback does not have a second __legacyError parameter which was provided for backwards compatibility\nexport type RawResponseCallback = (rawResponse: FullOperationResponse, error?: unknown) => void;\n\n/**\n * Wrapper object for http request and response. Deserialized object is stored in\n * the `parsedBody` property when the response body is received in JSON.\n */\nexport interface FullOperationResponse extends PipelineResponse {\n /**\n * The raw HTTP response headers.\n */\n rawHeaders?: RawHttpHeaders;\n\n /**\n * The response body as parsed JSON.\n */\n parsedBody?: RequestBodyType;\n\n /**\n * The request that generated the response.\n */\n request: PipelineRequest;\n}\n\n/**\n * The base options type for all operations.\n */\nexport interface OperationOptions {\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignal;\n /**\n * Options used when creating and sending HTTP requests for this operation.\n */\n requestOptions?: OperationRequestOptions;\n /**\n * A function to be called each time a response is received from the server\n * while performing the requested operation.\n * May be called multiple times.\n */\n onResponse?: RawResponseCallback;\n}\n\n/**\n * Options used when creating and sending HTTP requests for this operation.\n */\nexport interface OperationRequestOptions {\n /**\n * User defined custom request headers that\n * will be applied before the request is sent.\n */\n headers?: RawHttpHeadersInput;\n\n /**\n * The number of milliseconds a request can take before automatically being terminated.\n */\n timeout?: number;\n\n /**\n * Callback which fires upon upload progress.\n */\n onUploadProgress?: (progress: TransferProgressEvent) => void;\n\n /**\n * Callback which fires upon download progress.\n */\n onDownloadProgress?: (progress: TransferProgressEvent) => void;\n\n /**\n * Set to true if the request is sent over HTTP instead of HTTPS\n */\n allowInsecureConnection?: boolean;\n\n /**\n * Set to true if you want to skip encoding the path parameters\n */\n skipUrlEncoding?: boolean;\n}\n\n/**\n * Type to use with pathUnchecked, overrides the body type to any to allow flexibility\n */\nexport type PathUncheckedResponse = HttpResponse & { body: any };\n\n/**\n * Shape of a Rest Level Client\n */\nexport interface Client {\n /**\n * The pipeline used by this client to make requests\n */\n pipeline: Pipeline;\n /**\n * This method will be used to send request that would check the path to provide\n * strong types. When used by the codegen this type gets overridden with the generated\n * types. For example:\n * ```typescript snippet:ReadmeSamplePathExample\n * import { Client } from \"@typespec/ts-http-runtime\";\n *\n * type MyClient = Client & {\n * path: Routes;\n * };\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n path: Function;\n /**\n * This method allows arbitrary paths and doesn't provide strong types\n */\n pathUnchecked: PathUnchecked;\n}\n\n/**\n * Http Response which body is a NodeJS stream object\n */\nexport type HttpNodeStreamResponse = HttpResponse & {\n /**\n * Streamable body\n */\n body?: NodeJS.ReadableStream;\n};\n\n/**\n * Http Response which body is a NodeJS stream object\n */\nexport type HttpBrowserStreamResponse = HttpResponse & {\n /**\n * Streamable body\n */\n body?: ReadableStream<Uint8Array>;\n};\n\n/**\n * Defines the type for a method that supports getting the response body as\n * a raw stream\n */\nexport type StreamableMethod<TResponse = PathUncheckedResponse> = PromiseLike<TResponse> & {\n /**\n * Returns the response body as a NodeJS stream. Only available in Node-like environments.\n */\n asNodeStream: () => Promise<HttpNodeStreamResponse>;\n /**\n * Returns the response body as a browser (Web) stream. Only available in the browser. If you require a Web Stream of the response in Node, consider using the\n * `Readable.toWeb` Node API on the result of `asNodeStream`.\n */\n asBrowserStream: () => Promise<HttpBrowserStreamResponse>;\n};\n\n/**\n * Defines the signature for pathUnchecked.\n */\nexport type PathUnchecked = <TPath extends string>(\n path: TPath,\n ...args: PathParameters<TPath>\n) => ResourceMethods<StreamableMethod>;\n\n/**\n * Defines the methods that can be called on a resource\n */\nexport interface ResourceMethods<TResponse = PromiseLike<PathUncheckedResponse>> {\n /**\n * Definition of the GET HTTP method for a resource\n */\n get: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the POST HTTP method for a resource\n */\n post: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the PUT HTTP method for a resource\n */\n put: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the PATCH HTTP method for a resource\n */\n patch: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the DELETE HTTP method for a resource\n */\n delete: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the HEAD HTTP method for a resource\n */\n head: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the OPTIONS HTTP method for a resource\n */\n options: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the TRACE HTTP method for a resource\n */\n trace: (options?: RequestParameters) => TResponse;\n}\n\n/**\n * Used to configure additional policies added to the pipeline at construction.\n */\nexport interface AdditionalPolicyConfig {\n /**\n * A policy to be added.\n */\n policy: PipelinePolicy;\n /**\n * Determines if this policy be applied before or after retry logic.\n * Only use `perRetry` if you need to modify the request again\n * each time the operation is retried due to retryable service\n * issues.\n */\n position: \"perCall\" | \"perRetry\";\n}\n\n/**\n * General options that a Rest Level Client can take\n */\nexport type ClientOptions = PipelineOptions & {\n /**\n * List of authentication schemes supported by the client.\n * These schemes define how the client can authenticate requests.\n */\n authSchemes?: AuthScheme[];\n\n /**\n * The credential used to authenticate requests.\n * Must be compatible with one of the specified authentication schemes.\n */\n credential?: ClientCredential;\n\n // UNBRANDED DIFFERENCE: The deprecated baseUrl property is removed in favor of the endpoint property in the unbranded Core package\n\n /**\n * Endpoint for the client\n */\n endpoint?: string;\n /**\n * Options for setting a custom apiVersion.\n */\n apiVersion?: string;\n /**\n * Option to allow calling http (insecure) endpoints\n */\n allowInsecureConnection?: boolean;\n /**\n * Additional policies to include in the HTTP pipeline.\n */\n additionalPolicies?: AdditionalPolicyConfig[];\n /**\n * Specify a custom HttpClient when making requests.\n */\n httpClient?: HttpClient;\n /**\n * Options to configure request/response logging.\n */\n loggingOptions?: LogPolicyOptions;\n /**\n * Pipeline to use for the client. If not provided, a default pipeline will be created using the options provided.\n * Use with caution -- when setting this option, all client options that are used in the creation of the default pipeline\n * will be ignored.\n */\n pipeline?: Pipeline;\n};\n\n/**\n * Represents the shape of an HttpResponse\n */\nexport type HttpResponse = {\n /**\n * The request that generated this response.\n */\n request: PipelineRequest;\n /**\n * The HTTP response headers.\n */\n headers: RawHttpHeaders;\n /**\n * Parsed body\n */\n body: unknown;\n /**\n * The HTTP status code of the response.\n */\n status: string;\n};\n\n/**\n * Helper type used to detect parameters in a path template\n * text surrounded by \\{\\} will be considered a path parameter\n */\nexport type PathParameters<\n TRoute extends string,\n // This is trying to match the string in TRoute with a template where HEAD/{PARAM}/TAIL\n // for example in the followint path: /foo/{fooId}/bar/{barId}/baz the template will infer\n // HEAD: /foo\n // Param: fooId\n // Tail: /bar/{barId}/baz\n // The above sample path would return [pathParam: string, pathParam: string]\n> = TRoute extends `${infer _Head}/{${infer _Param}}${infer Tail}`\n ? // In case we have a match for the template above we know for sure\n // that we have at least one pathParameter, that's why we set the first pathParam\n // in the tuple. At this point we have only matched up until param, if we want to identify\n // additional parameters we can call RouteParameters recursively on the Tail to match the remaining parts,\n // in case the Tail has more parameters, it will return a tuple with the parameters found in tail.\n // We spread the second path params to end up with a single dimension tuple at the end.\n [\n pathParameter: string | number | PathParameterWithOptions,\n ...pathParameters: PathParameters<Tail>,\n ]\n : // When the path doesn't match the template, it means that we have no path parameters so we return\n // an empty tuple.\n [];\n\n/** A response containing error details. */\nexport interface ErrorResponse {\n /** The error object. */\n error: ErrorModel;\n}\n\n/** The error object. */\nexport interface ErrorModel {\n /** One of a server-defined set of error codes. */\n code: string;\n /** A human-readable representation of the error. */\n message: string;\n /** The target of the error. */\n target?: string;\n /** An array of details about specific errors that led to this reported error. */\n details: Array<ErrorModel>;\n /** An object containing more specific information than the current object about the error. */\n innererror?: InnerError;\n}\n\n/** An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. */\nexport interface InnerError {\n /** One of a server-defined set of error codes. */\n code: string;\n /** Inner error. */\n innererror?: InnerError;\n}\n\n/**\n * An object that can be passed as a path parameter, allowing for additional options to be set relating to how the parameter is encoded.\n */\nexport interface PathParameterWithOptions {\n /**\n * The value of the parameter.\n */\n value: string | number;\n\n /**\n * Whether to allow for reserved characters in the value. If set to true, special characters such as '/' in the parameter's value will not be URL encoded.\n * Defaults to false.\n */\n allowReserved?: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/client/common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n HttpClient,\n PipelineRequest,\n PipelineResponse,\n RawHttpHeaders,\n RequestBodyType,\n TransferProgressEvent,\n RawHttpHeadersInput,\n} from \"../interfaces.js\";\nimport type { Pipeline, PipelinePolicy } from \"../pipeline.js\";\nimport type { PipelineOptions } from \"../createPipelineFromOptions.js\";\nimport type { LogPolicyOptions } from \"../policies/logPolicy.js\";\nimport type { NodeReadableStream, WebReadableStream } from \"#platform/types\";\nimport type { AuthScheme } from \"../auth/schemes.js\";\nimport type { ClientCredential } from \"../auth/credentials.js\";\n\n/**\n * Shape of the default request parameters, this may be overridden by the specific\n * request types to provide strong types\n */\nexport type RequestParameters = {\n /**\n * Headers to send along with the request\n */\n headers?: RawHttpHeadersInput;\n /**\n * Sets the accept header to send to the service\n * defaults to 'application/json'. If also a header \"accept\" is set\n * this property will take precedence.\n */\n accept?: string;\n /**\n * Body to send with the request\n */\n body?: unknown;\n /**\n * Query parameters to send with the request\n */\n queryParameters?: Record<string, unknown>;\n /**\n * Set an explicit content-type to send with the request. If also a header \"content-type\" is set\n * this property will take precedence.\n */\n contentType?: string;\n /** Set to true if the request is sent over HTTP instead of HTTPS */\n allowInsecureConnection?: boolean;\n /** Set to true if you want to skip encoding the path parameters */\n skipUrlEncoding?: boolean;\n /**\n * Path parameters for custom the base url\n */\n pathParameters?: Record<string, any>;\n\n /**\n * The number of milliseconds a request can take before automatically being terminated.\n */\n timeout?: number;\n\n /**\n * Callback which fires upon upload progress.\n */\n onUploadProgress?: (progress: TransferProgressEvent) => void;\n\n /**\n * Callback which fires upon download progress.\n */\n onDownloadProgress?: (progress: TransferProgressEvent) => void;\n\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignal;\n\n /**\n * A function to be called each time a response is received from the server\n * while performing the requested operation.\n * May be called multiple times.\n */\n onResponse?: RawResponseCallback;\n};\n\n/**\n * A function to be called each time a response is received from the server\n * while performing the requested operation.\n * May be called multiple times.\n */\n// UNBRANDED DIFFERENCE: onResponse callback does not have a second __legacyError parameter which was provided for backwards compatibility\nexport type RawResponseCallback = (rawResponse: FullOperationResponse, error?: unknown) => void;\n\n/**\n * Wrapper object for http request and response. Deserialized object is stored in\n * the `parsedBody` property when the response body is received in JSON.\n */\nexport interface FullOperationResponse extends PipelineResponse {\n /**\n * The raw HTTP response headers.\n */\n rawHeaders?: RawHttpHeaders;\n\n /**\n * The response body as parsed JSON.\n */\n parsedBody?: RequestBodyType;\n\n /**\n * The request that generated the response.\n */\n request: PipelineRequest;\n}\n\n/**\n * The base options type for all operations.\n */\nexport interface OperationOptions {\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignal;\n /**\n * Options used when creating and sending HTTP requests for this operation.\n */\n requestOptions?: OperationRequestOptions;\n /**\n * A function to be called each time a response is received from the server\n * while performing the requested operation.\n * May be called multiple times.\n */\n onResponse?: RawResponseCallback;\n}\n\n/**\n * Options used when creating and sending HTTP requests for this operation.\n */\nexport interface OperationRequestOptions {\n /**\n * User defined custom request headers that\n * will be applied before the request is sent.\n */\n headers?: RawHttpHeadersInput;\n\n /**\n * The number of milliseconds a request can take before automatically being terminated.\n */\n timeout?: number;\n\n /**\n * Callback which fires upon upload progress.\n */\n onUploadProgress?: (progress: TransferProgressEvent) => void;\n\n /**\n * Callback which fires upon download progress.\n */\n onDownloadProgress?: (progress: TransferProgressEvent) => void;\n\n /**\n * Set to true if the request is sent over HTTP instead of HTTPS\n */\n allowInsecureConnection?: boolean;\n\n /**\n * Set to true if you want to skip encoding the path parameters\n */\n skipUrlEncoding?: boolean;\n}\n\n/**\n * Type to use with pathUnchecked, overrides the body type to any to allow flexibility\n */\nexport type PathUncheckedResponse = HttpResponse & { body: any };\n\n/**\n * Shape of a Rest Level Client\n */\nexport interface Client {\n /**\n * The pipeline used by this client to make requests\n */\n pipeline: Pipeline;\n /**\n * This method will be used to send request that would check the path to provide\n * strong types. When used by the codegen this type gets overridden with the generated\n * types. For example:\n * ```typescript snippet:ReadmeSamplePathExample\n * import { Client } from \"@typespec/ts-http-runtime\";\n *\n * type MyClient = Client & {\n * path: Routes;\n * };\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n path: Function;\n /**\n * This method allows arbitrary paths and doesn't provide strong types\n */\n pathUnchecked: PathUnchecked;\n}\n\n/**\n * Http Response which body is a NodeJS stream object\n */\nexport type HttpNodeStreamResponse = HttpResponse & {\n /**\n * Streamable body\n */\n body?: NodeReadableStream;\n};\n\n/**\n * Http Response which body is a NodeJS stream object\n */\nexport type HttpBrowserStreamResponse = HttpResponse & {\n /**\n * Streamable body\n */\n body?: WebReadableStream<Uint8Array>;\n};\n\n/**\n * Defines the type for a method that supports getting the response body as\n * a raw stream\n */\nexport type StreamableMethod<TResponse = PathUncheckedResponse> = PromiseLike<TResponse> & {\n /**\n * Returns the response body as a NodeJS stream. Only available in Node-like environments.\n */\n asNodeStream: () => Promise<HttpNodeStreamResponse>;\n /**\n * Returns the response body as a browser (Web) stream. Only available in the browser. If you require a Web Stream of the response in Node, consider using the\n * `Readable.toWeb` Node API on the result of `asNodeStream`.\n */\n asBrowserStream: () => Promise<HttpBrowserStreamResponse>;\n};\n\n/**\n * Defines the signature for pathUnchecked.\n */\nexport type PathUnchecked = <TPath extends string>(\n path: TPath,\n ...args: PathParameters<TPath>\n) => ResourceMethods<StreamableMethod>;\n\n/**\n * Defines the methods that can be called on a resource\n */\nexport interface ResourceMethods<TResponse = PromiseLike<PathUncheckedResponse>> {\n /**\n * Definition of the GET HTTP method for a resource\n */\n get: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the POST HTTP method for a resource\n */\n post: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the PUT HTTP method for a resource\n */\n put: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the PATCH HTTP method for a resource\n */\n patch: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the DELETE HTTP method for a resource\n */\n delete: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the HEAD HTTP method for a resource\n */\n head: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the OPTIONS HTTP method for a resource\n */\n options: (options?: RequestParameters) => TResponse;\n /**\n * Definition of the TRACE HTTP method for a resource\n */\n trace: (options?: RequestParameters) => TResponse;\n}\n\n/**\n * Used to configure additional policies added to the pipeline at construction.\n */\nexport interface AdditionalPolicyConfig {\n /**\n * A policy to be added.\n */\n policy: PipelinePolicy;\n /**\n * Determines if this policy be applied before or after retry logic.\n * Only use `perRetry` if you need to modify the request again\n * each time the operation is retried due to retryable service\n * issues.\n */\n position: \"perCall\" | \"perRetry\";\n}\n\n/**\n * General options that a Rest Level Client can take\n */\nexport type ClientOptions = PipelineOptions & {\n /**\n * List of authentication schemes supported by the client.\n * These schemes define how the client can authenticate requests.\n */\n authSchemes?: AuthScheme[];\n\n /**\n * The credential used to authenticate requests.\n * Must be compatible with one of the specified authentication schemes.\n */\n credential?: ClientCredential;\n\n // UNBRANDED DIFFERENCE: The deprecated baseUrl property is removed in favor of the endpoint property in the unbranded Core package\n\n /**\n * Endpoint for the client\n */\n endpoint?: string;\n /**\n * Options for setting a custom apiVersion.\n */\n apiVersion?: string;\n /**\n * Option to allow calling http (insecure) endpoints\n */\n allowInsecureConnection?: boolean;\n /**\n * Additional policies to include in the HTTP pipeline.\n */\n additionalPolicies?: AdditionalPolicyConfig[];\n /**\n * Specify a custom HttpClient when making requests.\n */\n httpClient?: HttpClient;\n /**\n * Options to configure request/response logging.\n */\n loggingOptions?: LogPolicyOptions;\n /**\n * Pipeline to use for the client. If not provided, a default pipeline will be created using the options provided.\n * Use with caution -- when setting this option, all client options that are used in the creation of the default pipeline\n * will be ignored.\n */\n pipeline?: Pipeline;\n};\n\n/**\n * Represents the shape of an HttpResponse\n */\nexport type HttpResponse = {\n /**\n * The request that generated this response.\n */\n request: PipelineRequest;\n /**\n * The HTTP response headers.\n */\n headers: RawHttpHeaders;\n /**\n * Parsed body\n */\n body: unknown;\n /**\n * The HTTP status code of the response.\n */\n status: string;\n};\n\n/**\n * Helper type used to detect parameters in a path template\n * text surrounded by \\{\\} will be considered a path parameter\n */\nexport type PathParameters<\n TRoute extends string,\n // This is trying to match the string in TRoute with a template where HEAD/{PARAM}/TAIL\n // for example in the followint path: /foo/{fooId}/bar/{barId}/baz the template will infer\n // HEAD: /foo\n // Param: fooId\n // Tail: /bar/{barId}/baz\n // The above sample path would return [pathParam: string, pathParam: string]\n> = TRoute extends `${infer _Head}/{${infer _Param}}${infer Tail}`\n ? // In case we have a match for the template above we know for sure\n // that we have at least one pathParameter, that's why we set the first pathParam\n // in the tuple. At this point we have only matched up until param, if we want to identify\n // additional parameters we can call RouteParameters recursively on the Tail to match the remaining parts,\n // in case the Tail has more parameters, it will return a tuple with the parameters found in tail.\n // We spread the second path params to end up with a single dimension tuple at the end.\n [\n pathParameter: string | number | PathParameterWithOptions,\n ...pathParameters: PathParameters<Tail>,\n ]\n : // When the path doesn't match the template, it means that we have no path parameters so we return\n // an empty tuple.\n [];\n\n/** A response containing error details. */\nexport interface ErrorResponse {\n /** The error object. */\n error: ErrorModel;\n}\n\n/** The error object. */\nexport interface ErrorModel {\n /** One of a server-defined set of error codes. */\n code: string;\n /** A human-readable representation of the error. */\n message: string;\n /** The target of the error. */\n target?: string;\n /** An array of details about specific errors that led to this reported error. */\n details: Array<ErrorModel>;\n /** An object containing more specific information than the current object about the error. */\n innererror?: InnerError;\n}\n\n/** An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. */\nexport interface InnerError {\n /** One of a server-defined set of error codes. */\n code: string;\n /** Inner error. */\n innererror?: InnerError;\n}\n\n/**\n * An object that can be passed as a path parameter, allowing for additional options to be set relating to how the parameter is encoded.\n */\nexport interface PathParameterWithOptions {\n /**\n * The value of the parameter.\n */\n value: string | number;\n\n /**\n * Whether to allow for reserved characters in the value. If set to true, special characters such as '/' in the parameter's value will not be URL encoded.\n * Defaults to false.\n */\n allowReserved?: boolean;\n}\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { createDefaultPipeline } from "./clientHelpers.js";
|
|
4
4
|
import { sendRequest } from "./sendRequest.js";
|
|
5
5
|
import { buildRequestUrl } from "./urlHelpers.js";
|
|
6
|
-
import { isNodeLike } from "../
|
|
6
|
+
import { isNodeLike } from "../env-react-native.mjs";
|
|
7
7
|
/**
|
|
8
8
|
* Creates a client with a default pipeline
|
|
9
9
|
* @param endpoint - Base endpoint for the client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getClient.js","sourceRoot":"","sources":["../../../src/client/getClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAU3D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getClient.js","s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ACb,uHAAuH,CACxH,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HttpClient, HttpMethods } from \"../interfaces.js\";\nimport type { Pipeline } from \"../pipeline.js\";\nimport { createDefaultPipeline } from \"./clientHelpers.js\";\nimport type {\n Client,\n ClientOptions,\n HttpBrowserStreamResponse,\n HttpNodeStreamResponse,\n RequestParameters,\n ResourceMethods,\n StreamableMethod,\n} from \"./common.js\";\nimport { sendRequest } from \"./sendRequest.js\";\nimport { buildRequestUrl } from \"./urlHelpers.js\";\nimport { isNodeLike } from \"#platform/env\";\n\n/**\n * Creates a client with a default pipeline\n * @param endpoint - Base endpoint for the client\n * @param credentials - Credentials to authenticate the requests\n * @param options - Client options\n */\nexport function getClient(endpoint: string, clientOptions: ClientOptions = {}): Client {\n const pipeline = clientOptions.pipeline ?? createDefaultPipeline(clientOptions);\n if (clientOptions.additionalPolicies?.length) {\n for (const { policy, position } of clientOptions.additionalPolicies) {\n // Sign happens after Retry and is commonly needed to occur\n // before policies that intercept post-retry.\n const afterPhase = position === \"perRetry\" ? \"Sign\" : undefined;\n pipeline.addPolicy(policy, {\n afterPhase,\n });\n }\n }\n\n const { allowInsecureConnection, httpClient } = clientOptions;\n const endpointUrl = clientOptions.endpoint ?? endpoint;\n const client = (path: string, ...args: Array<any>): ResourceMethods<StreamableMethod> => {\n const getUrl = (requestOptions: RequestParameters): string =>\n buildRequestUrl(endpointUrl, path, args, { allowInsecureConnection, ...requestOptions });\n\n return {\n get: (requestOptions: RequestParameters = {}): StreamableMethod => {\n return buildOperation(\n \"GET\",\n getUrl(requestOptions),\n pipeline,\n requestOptions,\n allowInsecureConnection,\n httpClient,\n );\n },\n post: (requestOptions: RequestParameters = {}): StreamableMethod => {\n return buildOperation(\n \"POST\",\n getUrl(requestOptions),\n pipeline,\n requestOptions,\n allowInsecureConnection,\n httpClient,\n );\n },\n put: (requestOptions: RequestParameters = {}): StreamableMethod => {\n return buildOperation(\n \"PUT\",\n getUrl(requestOptions),\n pipeline,\n requestOptions,\n allowInsecureConnection,\n httpClient,\n );\n },\n patch: (requestOptions: RequestParameters = {}): StreamableMethod => {\n return buildOperation(\n \"PATCH\",\n getUrl(requestOptions),\n pipeline,\n requestOptions,\n allowInsecureConnection,\n httpClient,\n );\n },\n delete: (requestOptions: RequestParameters = {}): StreamableMethod => {\n return buildOperation(\n \"DELETE\",\n getUrl(requestOptions),\n pipeline,\n requestOptions,\n allowInsecureConnection,\n httpClient,\n );\n },\n head: (requestOptions: RequestParameters = {}): StreamableMethod => {\n return buildOperation(\n \"HEAD\",\n getUrl(requestOptions),\n pipeline,\n requestOptions,\n allowInsecureConnection,\n httpClient,\n );\n },\n options: (requestOptions: RequestParameters = {}): StreamableMethod => {\n return buildOperation(\n \"OPTIONS\",\n getUrl(requestOptions),\n pipeline,\n requestOptions,\n allowInsecureConnection,\n httpClient,\n );\n },\n trace: (requestOptions: RequestParameters = {}): StreamableMethod => {\n return buildOperation(\n \"TRACE\",\n getUrl(requestOptions),\n pipeline,\n requestOptions,\n allowInsecureConnection,\n httpClient,\n );\n },\n };\n };\n\n return {\n path: client,\n pathUnchecked: client,\n pipeline,\n };\n}\n\nfunction buildOperation(\n method: HttpMethods,\n url: string,\n pipeline: Pipeline,\n options: RequestParameters,\n allowInsecureConnection?: boolean,\n httpClient?: HttpClient,\n): StreamableMethod {\n allowInsecureConnection = options.allowInsecureConnection ?? allowInsecureConnection;\n return {\n then: function (onFulfilled, onrejected) {\n return sendRequest(\n method,\n url,\n pipeline,\n { ...options, allowInsecureConnection },\n httpClient,\n ).then(onFulfilled, onrejected);\n },\n async asBrowserStream() {\n if (isNodeLike) {\n throw new Error(\n \"`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.\",\n );\n } else {\n return sendRequest(\n method,\n url,\n pipeline,\n { ...options, allowInsecureConnection, responseAsStream: true },\n httpClient,\n ) as Promise<HttpBrowserStreamResponse>;\n }\n },\n async asNodeStream() {\n if (isNodeLike) {\n return sendRequest(\n method,\n url,\n pipeline,\n { ...options, allowInsecureConnection, responseAsStream: true },\n httpClient,\n ) as Promise<HttpNodeStreamResponse>;\n } else {\n throw new Error(\n \"`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.\",\n );\n }\n },\n };\n}\n"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { RestError } from "../restError.js";
|
|
4
4
|
import { createHttpHeaders } from "../httpHeaders.js";
|
|
5
|
-
import { stringToUint8Array } from "../util/bytesEncoding.
|
|
5
|
+
import { stringToUint8Array } from "../util/bytesEncoding-web.mjs";
|
|
6
6
|
import { isBinaryBody } from "../util/typeGuards.js";
|
|
7
7
|
/**
|
|
8
8
|
* Get value of a header in the part descriptor ignoring case
|