@openclaw/msteams 2026.6.5-beta.6 → 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.
Files changed (1196) hide show
  1. package/dist/api.js +1 -1
  2. package/dist/{channel--oT3fyD5.js → channel-FzXHnZIM.js} +16 -2
  3. package/dist/channel-plugin-api.js +1 -1
  4. package/dist/{channel.runtime-KNuY2Oaw.js → channel.runtime-CaeTVmSx.js} +2 -2
  5. package/dist/{probe-C-rWMb-m.js → probe-D-pKTqs9.js} +1 -1
  6. package/dist/secret-contract-api.js +34 -1
  7. package/dist/{src-CLsoqMj1.js → src-C647R5Nw.js} +2 -2
  8. package/node_modules/@azure/core-client/dist/browser/authorizeRequestOnTenantChallenge.js +1 -2
  9. package/node_modules/@azure/core-client/dist/browser/authorizeRequestOnTenantChallenge.js.map +1 -1
  10. package/node_modules/@azure/core-client/dist/browser/base64.d.ts +2 -6
  11. package/node_modules/@azure/core-client/dist/browser/base64.js +7 -15
  12. package/node_modules/@azure/core-client/dist/browser/base64.js.map +1 -0
  13. package/node_modules/@azure/core-client/dist/browser/index.d.ts +5 -5
  14. package/node_modules/@azure/core-client/dist/browser/index.js.map +1 -1
  15. package/node_modules/@azure/core-client/dist/browser/interfaceHelpers.js +1 -2
  16. package/node_modules/@azure/core-client/dist/browser/interfaceHelpers.js.map +1 -1
  17. package/node_modules/@azure/core-client/dist/browser/operationHelpers.js +8 -4
  18. package/node_modules/@azure/core-client/dist/browser/operationHelpers.js.map +1 -1
  19. package/node_modules/@azure/core-client/dist/browser/serializationPolicy.js +1 -1
  20. package/node_modules/@azure/core-client/dist/browser/serializationPolicy.js.map +1 -1
  21. package/node_modules/@azure/core-client/dist/browser/serializer.js +32 -11
  22. package/node_modules/@azure/core-client/dist/browser/serializer.js.map +1 -1
  23. package/node_modules/@azure/core-client/dist/browser/serviceClient.js +2 -2
  24. package/node_modules/@azure/core-client/dist/browser/serviceClient.js.map +1 -1
  25. package/node_modules/@azure/core-client/dist/browser/{state.d.ts → state-web.d.mts} +1 -1
  26. package/node_modules/@azure/core-client/dist/browser/{state.js → state-web.mjs} +1 -1
  27. package/node_modules/@azure/core-client/dist/browser/state-web.mjs.map +1 -0
  28. package/node_modules/@azure/core-client/dist/browser/urlHelpers.js +2 -1
  29. package/node_modules/@azure/core-client/dist/browser/urlHelpers.js.map +1 -1
  30. package/node_modules/@azure/core-client/dist/commonjs/authorizeRequestOnTenantChallenge.js +1 -2
  31. package/node_modules/@azure/core-client/dist/commonjs/authorizeRequestOnTenantChallenge.js.map +1 -1
  32. package/node_modules/@azure/core-client/dist/commonjs/base64.d.ts +1 -1
  33. package/node_modules/@azure/core-client/dist/commonjs/base64.js +6 -6
  34. package/node_modules/@azure/core-client/dist/commonjs/base64.js.map +1 -1
  35. package/node_modules/@azure/core-client/dist/commonjs/index.d.ts +5 -5
  36. package/node_modules/@azure/core-client/dist/commonjs/index.js.map +1 -1
  37. package/node_modules/@azure/core-client/dist/commonjs/interfaceHelpers.js +1 -2
  38. package/node_modules/@azure/core-client/dist/commonjs/interfaceHelpers.js.map +1 -1
  39. package/node_modules/@azure/core-client/dist/commonjs/operationHelpers.js +10 -6
  40. package/node_modules/@azure/core-client/dist/commonjs/operationHelpers.js.map +1 -1
  41. package/node_modules/@azure/core-client/dist/commonjs/serializationPolicy.js +1 -1
  42. package/node_modules/@azure/core-client/dist/commonjs/serializationPolicy.js.map +1 -1
  43. package/node_modules/@azure/core-client/dist/commonjs/serializer.js +32 -11
  44. package/node_modules/@azure/core-client/dist/commonjs/serializer.js.map +1 -1
  45. package/node_modules/@azure/core-client/dist/commonjs/serviceClient.js +2 -2
  46. package/node_modules/@azure/core-client/dist/commonjs/serviceClient.js.map +1 -1
  47. package/node_modules/@azure/core-client/dist/commonjs/state-cjs.d.ts +8 -0
  48. package/node_modules/@azure/core-client/dist/commonjs/{state.js → state-cjs.js} +1 -1
  49. package/node_modules/@azure/core-client/dist/commonjs/state-cjs.js.map +1 -0
  50. package/node_modules/@azure/core-client/dist/commonjs/tsdoc-metadata.json +1 -1
  51. package/node_modules/@azure/core-client/dist/commonjs/urlHelpers.js +2 -1
  52. package/node_modules/@azure/core-client/dist/commonjs/urlHelpers.js.map +1 -1
  53. package/node_modules/@azure/core-client/dist/esm/authorizeRequestOnTenantChallenge.js +1 -2
  54. package/node_modules/@azure/core-client/dist/esm/authorizeRequestOnTenantChallenge.js.map +1 -1
  55. package/node_modules/@azure/core-client/dist/esm/base64.d.ts +1 -1
  56. package/node_modules/@azure/core-client/dist/esm/base64.js +6 -6
  57. package/node_modules/@azure/core-client/dist/esm/base64.js.map +1 -1
  58. package/node_modules/@azure/core-client/dist/esm/index.d.ts +5 -5
  59. package/node_modules/@azure/core-client/dist/esm/index.js.map +1 -1
  60. package/node_modules/@azure/core-client/dist/esm/interfaceHelpers.js +1 -2
  61. package/node_modules/@azure/core-client/dist/esm/interfaceHelpers.js.map +1 -1
  62. package/node_modules/@azure/core-client/dist/esm/operationHelpers.js +7 -3
  63. package/node_modules/@azure/core-client/dist/esm/operationHelpers.js.map +1 -1
  64. package/node_modules/@azure/core-client/dist/esm/serializationPolicy.js +1 -1
  65. package/node_modules/@azure/core-client/dist/esm/serializationPolicy.js.map +1 -1
  66. package/node_modules/@azure/core-client/dist/esm/serializer.js +32 -11
  67. package/node_modules/@azure/core-client/dist/esm/serializer.js.map +1 -1
  68. package/node_modules/@azure/core-client/dist/esm/serviceClient.js +2 -2
  69. package/node_modules/@azure/core-client/dist/esm/serviceClient.js.map +1 -1
  70. package/node_modules/@azure/core-client/dist/esm/state-cjs.d.ts +8 -0
  71. package/node_modules/@azure/core-client/dist/esm/state-cjs.js +9 -0
  72. package/node_modules/@azure/core-client/dist/esm/state-cjs.js.map +1 -0
  73. package/node_modules/@azure/core-client/dist/esm/state.js +1 -1
  74. package/node_modules/@azure/core-client/dist/esm/state.js.map +1 -1
  75. package/node_modules/@azure/core-client/dist/esm/urlHelpers.js +2 -1
  76. package/node_modules/@azure/core-client/dist/esm/urlHelpers.js.map +1 -1
  77. package/node_modules/@azure/core-client/dist/react-native/authorizeRequestOnTenantChallenge.js +1 -2
  78. package/node_modules/@azure/core-client/dist/react-native/authorizeRequestOnTenantChallenge.js.map +1 -1
  79. package/node_modules/@azure/core-client/dist/react-native/base64.d.ts +1 -1
  80. package/node_modules/@azure/core-client/dist/react-native/base64.js +6 -6
  81. package/node_modules/@azure/core-client/dist/react-native/base64.js.map +1 -1
  82. package/node_modules/@azure/core-client/dist/react-native/index.d.ts +5 -5
  83. package/node_modules/@azure/core-client/dist/react-native/index.js.map +1 -1
  84. package/node_modules/@azure/core-client/dist/react-native/interfaceHelpers.js +1 -2
  85. package/node_modules/@azure/core-client/dist/react-native/interfaceHelpers.js.map +1 -1
  86. package/node_modules/@azure/core-client/dist/react-native/operationHelpers.js +8 -4
  87. package/node_modules/@azure/core-client/dist/react-native/operationHelpers.js.map +1 -1
  88. package/node_modules/@azure/core-client/dist/react-native/serializationPolicy.js +1 -1
  89. package/node_modules/@azure/core-client/dist/react-native/serializationPolicy.js.map +1 -1
  90. package/node_modules/@azure/core-client/dist/react-native/serializer.js +32 -11
  91. package/node_modules/@azure/core-client/dist/react-native/serializer.js.map +1 -1
  92. package/node_modules/@azure/core-client/dist/react-native/serviceClient.js +2 -2
  93. package/node_modules/@azure/core-client/dist/react-native/serviceClient.js.map +1 -1
  94. package/node_modules/@azure/core-client/dist/react-native/state-web.d.mts +8 -0
  95. package/node_modules/@azure/core-client/dist/react-native/state-web.mjs +9 -0
  96. package/node_modules/@azure/core-client/dist/react-native/state-web.mjs.map +1 -0
  97. package/node_modules/@azure/core-client/dist/react-native/urlHelpers.js +2 -1
  98. package/node_modules/@azure/core-client/dist/react-native/urlHelpers.js.map +1 -1
  99. package/node_modules/@azure/core-client/package.json +31 -30
  100. package/node_modules/@azure/core-rest-pipeline/dist/browser/constants.js +1 -1
  101. package/node_modules/@azure/core-rest-pipeline/dist/browser/constants.js.map +1 -1
  102. package/node_modules/@azure/core-rest-pipeline/dist/browser/defaultHttpClient.js.map +1 -1
  103. package/node_modules/@azure/core-rest-pipeline/dist/browser/index.d.ts +1 -12
  104. package/node_modules/@azure/core-rest-pipeline/dist/browser/index.js.map +1 -1
  105. package/node_modules/@azure/core-rest-pipeline/dist/browser/interfaces.d.ts +17 -16
  106. package/node_modules/@azure/core-rest-pipeline/dist/browser/interfaces.js.map +1 -1
  107. package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/bearerTokenAuthenticationPolicy.js +1 -1
  108. package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/bearerTokenAuthenticationPolicy.js.map +1 -1
  109. package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/ndJsonPolicy.js +1 -3
  110. package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/ndJsonPolicy.js.map +1 -1
  111. package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/wrapAbortSignalLikePolicy.js.map +1 -1
  112. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/createFile-browser.d.mts +15 -0
  113. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/createFile-browser.mjs +28 -0
  114. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/createFile-browser.mjs.map +1 -0
  115. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/file.d.ts +12 -16
  116. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/file.js +28 -32
  117. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/file.js.map +1 -1
  118. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/tokenCycler.js +5 -2
  119. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/tokenCycler.js.map +1 -1
  120. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgent.js +1 -1
  121. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgent.js.map +1 -1
  122. 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
  123. package/node_modules/{@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform.js → @azure/core-rest-pipeline/dist/browser/util/userAgentPlatform-browser.mjs} +1 -1
  124. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform-browser.mjs.map +1 -0
  125. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/wrapAbortSignal.js +4 -2
  126. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/wrapAbortSignal.js.map +1 -1
  127. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/constants.js +2 -1
  128. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/constants.js.map +2 -2
  129. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/createPipelineFromOptions.js +1 -0
  130. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/createPipelineFromOptions.js.map +1 -1
  131. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/defaultHttpClient.js +1 -0
  132. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/defaultHttpClient.js.map +2 -2
  133. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/httpHeaders.js +1 -0
  134. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/httpHeaders.js.map +1 -1
  135. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts +1 -12
  136. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/index.js +1 -0
  137. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/index.js.map +3 -3
  138. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/interfaces.d.ts +17 -16
  139. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/interfaces.js +1 -0
  140. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/interfaces.js.map +2 -2
  141. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/log.js +1 -0
  142. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/log.js.map +1 -1
  143. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipeline.js +1 -0
  144. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipeline.js.map +1 -1
  145. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipelineRequest.js +1 -0
  146. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipelineRequest.js.map +1 -1
  147. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/agentPolicy.js +1 -0
  148. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/agentPolicy.js.map +1 -1
  149. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/auxiliaryAuthenticationHeaderPolicy.js +1 -0
  150. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/auxiliaryAuthenticationHeaderPolicy.js.map +1 -1
  151. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/bearerTokenAuthenticationPolicy.js +2 -1
  152. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/bearerTokenAuthenticationPolicy.js.map +3 -3
  153. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/decompressResponsePolicy.js +1 -0
  154. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/decompressResponsePolicy.js.map +1 -1
  155. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/defaultRetryPolicy.js +1 -0
  156. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/defaultRetryPolicy.js.map +1 -1
  157. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/exponentialRetryPolicy.js +1 -0
  158. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/exponentialRetryPolicy.js.map +1 -1
  159. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/formDataPolicy.js +1 -0
  160. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/formDataPolicy.js.map +1 -1
  161. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/logPolicy.js +1 -0
  162. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/logPolicy.js.map +1 -1
  163. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/multipartPolicy.js +1 -0
  164. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/multipartPolicy.js.map +1 -1
  165. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/ndJsonPolicy.js +2 -3
  166. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/ndJsonPolicy.js.map +3 -3
  167. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/proxyPolicy.js +1 -0
  168. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/proxyPolicy.js.map +1 -1
  169. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/redirectPolicy.js +1 -0
  170. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/redirectPolicy.js.map +1 -1
  171. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/retryPolicy.js +1 -0
  172. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/retryPolicy.js.map +1 -1
  173. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/setClientRequestIdPolicy.js +1 -0
  174. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/setClientRequestIdPolicy.js.map +1 -1
  175. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/systemErrorRetryPolicy.js +1 -0
  176. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/systemErrorRetryPolicy.js.map +1 -1
  177. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/throttlingRetryPolicy.js +1 -0
  178. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/throttlingRetryPolicy.js.map +1 -1
  179. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tlsPolicy.js +1 -0
  180. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tlsPolicy.js.map +1 -1
  181. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tracingPolicy.js +1 -0
  182. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tracingPolicy.js.map +1 -1
  183. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/userAgentPolicy.js +1 -0
  184. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/userAgentPolicy.js.map +1 -1
  185. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/wrapAbortSignalLikePolicy.js +1 -0
  186. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/wrapAbortSignalLikePolicy.js.map +2 -2
  187. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/restError.js +1 -0
  188. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/restError.js.map +1 -1
  189. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/tsdoc-metadata.json +1 -1
  190. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/createFile.d.ts +15 -0
  191. package/node_modules/{@typespec/ts-http-runtime/dist/commonjs/util/inspect.common.js → @azure/core-rest-pipeline/dist/commonjs/util/createFile.js} +10 -7
  192. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/createFile.js.map +7 -0
  193. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/file.d.ts +12 -16
  194. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/file.js +25 -20
  195. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/file.js.map +3 -3
  196. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/tokenCycler.js +6 -2
  197. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/tokenCycler.js.map +3 -3
  198. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgent.js +4 -3
  199. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgent.js.map +3 -3
  200. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgentPlatform.d.ts +8 -0
  201. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgentPlatform.js +7 -7
  202. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgentPlatform.js.map +3 -3
  203. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/wrapAbortSignal.js +7 -2
  204. package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/wrapAbortSignal.js.map +3 -3
  205. package/node_modules/@azure/core-rest-pipeline/dist/esm/constants.js +1 -1
  206. package/node_modules/@azure/core-rest-pipeline/dist/esm/constants.js.map +1 -1
  207. package/node_modules/@azure/core-rest-pipeline/dist/esm/defaultHttpClient.js.map +1 -1
  208. package/node_modules/@azure/core-rest-pipeline/dist/esm/index.d.ts +1 -12
  209. package/node_modules/@azure/core-rest-pipeline/dist/esm/index.js.map +1 -1
  210. package/node_modules/@azure/core-rest-pipeline/dist/esm/interfaces.d.ts +17 -16
  211. package/node_modules/@azure/core-rest-pipeline/dist/esm/interfaces.js.map +1 -1
  212. package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/bearerTokenAuthenticationPolicy.js +1 -1
  213. package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/bearerTokenAuthenticationPolicy.js.map +1 -1
  214. package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/ndJsonPolicy.js +1 -3
  215. package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/ndJsonPolicy.js.map +1 -1
  216. package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/wrapAbortSignalLikePolicy.js.map +1 -1
  217. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/createFile.d.ts +15 -0
  218. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/createFile.js +19 -0
  219. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/createFile.js.map +1 -0
  220. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/file.d.ts +12 -16
  221. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/file.js +28 -32
  222. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/file.js.map +1 -1
  223. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/tokenCycler.js +5 -2
  224. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/tokenCycler.js.map +1 -1
  225. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgent.js.map +1 -1
  226. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgentPlatform.d.ts +8 -0
  227. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgentPlatform.js +6 -7
  228. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgentPlatform.js.map +1 -1
  229. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/wrapAbortSignal.js +4 -2
  230. package/node_modules/@azure/core-rest-pipeline/dist/esm/util/wrapAbortSignal.js.map +1 -1
  231. package/node_modules/@azure/core-rest-pipeline/dist/react-native/constants.js +1 -1
  232. package/node_modules/@azure/core-rest-pipeline/dist/react-native/constants.js.map +1 -1
  233. package/node_modules/@azure/core-rest-pipeline/dist/react-native/defaultHttpClient.js +1 -1
  234. package/node_modules/@azure/core-rest-pipeline/dist/react-native/defaultHttpClient.js.map +1 -1
  235. package/node_modules/@azure/core-rest-pipeline/dist/react-native/index.d.ts +1 -12
  236. package/node_modules/@azure/core-rest-pipeline/dist/react-native/index.js.map +1 -1
  237. package/node_modules/@azure/core-rest-pipeline/dist/react-native/interfaces.d.ts +17 -16
  238. package/node_modules/@azure/core-rest-pipeline/dist/react-native/interfaces.js.map +1 -1
  239. package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/bearerTokenAuthenticationPolicy.js +1 -1
  240. package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/bearerTokenAuthenticationPolicy.js.map +1 -1
  241. package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/ndJsonPolicy.js +1 -3
  242. package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/ndJsonPolicy.js.map +1 -1
  243. package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/wrapAbortSignalLikePolicy.js +1 -1
  244. package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/wrapAbortSignalLikePolicy.js.map +1 -1
  245. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/createFile-browser.d.mts +15 -0
  246. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/createFile-browser.mjs +28 -0
  247. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/createFile-browser.mjs.map +1 -0
  248. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/file.d.ts +12 -16
  249. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/file.js +28 -32
  250. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/file.js.map +1 -1
  251. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/tokenCycler.js +5 -2
  252. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/tokenCycler.js.map +1 -1
  253. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgent.js +1 -1
  254. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgent.js.map +1 -1
  255. 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
  256. 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
  257. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform-react-native.mjs.map +1 -0
  258. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/{wrapAbortSignal.d.ts → wrapAbortSignal-rn.d.mts} +7 -2
  259. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/{wrapAbortSignal.js → wrapAbortSignal-rn.mjs} +11 -5
  260. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/wrapAbortSignal-rn.mjs.map +1 -0
  261. package/node_modules/@azure/core-rest-pipeline/package.json +37 -14
  262. package/node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.mjs +1 -1
  263. package/node_modules/@azure/msal-browser/dist/app/PublicClientApplication.mjs +44 -2
  264. package/node_modules/@azure/msal-browser/dist/app/PublicClientApplication.mjs.map +1 -1
  265. package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeStatusCodes.mjs +3 -3
  266. package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  267. package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  268. package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  269. package/node_modules/@azure/msal-browser/dist/cache/AccountManager.mjs +1 -1
  270. package/node_modules/@azure/msal-browser/dist/cache/AsyncMemoryStorage.mjs +1 -1
  271. package/node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.mjs +12 -1
  272. package/node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.mjs.map +1 -1
  273. package/node_modules/@azure/msal-browser/dist/cache/CacheHelpers.mjs +1 -1
  274. package/node_modules/@azure/msal-browser/dist/cache/CacheKeys.mjs +1 -1
  275. package/node_modules/@azure/msal-browser/dist/cache/CookieStorage.mjs +1 -1
  276. package/node_modules/@azure/msal-browser/dist/cache/DatabaseStorage.mjs +1 -1
  277. package/node_modules/@azure/msal-browser/dist/cache/EncryptedData.mjs +1 -1
  278. package/node_modules/@azure/msal-browser/dist/cache/LocalStorage.mjs +1 -1
  279. package/node_modules/@azure/msal-browser/dist/cache/MemoryStorage.mjs +1 -1
  280. package/node_modules/@azure/msal-browser/dist/cache/SessionStorage.mjs +1 -1
  281. package/node_modules/@azure/msal-browser/dist/cache/TokenCache.mjs +1 -1
  282. package/node_modules/@azure/msal-browser/dist/config/Configuration.mjs +2 -2
  283. package/node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs +1 -1
  284. package/node_modules/@azure/msal-browser/dist/controllers/StandardController.mjs +3 -3
  285. package/node_modules/@azure/msal-browser/dist/controllers/StandardController.mjs.map +1 -1
  286. package/node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.mjs +1 -1
  287. package/node_modules/@azure/msal-browser/dist/crypto/CryptoOps.mjs +1 -1
  288. package/node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.mjs +1 -1
  289. package/node_modules/@azure/msal-browser/dist/crypto/SignedHttpRequest.mjs +1 -1
  290. package/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  291. package/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  292. package/node_modules/@azure/msal-browser/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  293. package/node_modules/@azure/msal-browser/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  294. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  295. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  296. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  297. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  298. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  299. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  300. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  301. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  302. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  303. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  304. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  305. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  306. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  307. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  308. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  309. package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  310. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  311. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  312. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpError.mjs +1 -1
  313. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  314. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  315. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  316. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  317. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  318. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  319. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  320. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  321. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  322. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  323. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  324. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  325. package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  326. package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  327. package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  328. package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  329. package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  330. package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  331. package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  332. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  333. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  334. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  335. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  336. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  337. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  338. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  339. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  340. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  341. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  342. package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  343. package/node_modules/@azure/msal-browser/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  344. package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  345. package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  346. package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  347. package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  348. package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  349. package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  350. package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  351. package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  352. package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  353. package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  354. package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  355. package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  356. package/node_modules/@azure/msal-browser/dist/custom_auth/index.mjs +1 -1
  357. package/node_modules/@azure/msal-browser/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  358. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  359. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  360. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  361. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  362. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  363. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  364. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  365. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  366. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  367. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  368. package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  369. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  370. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  371. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  372. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  373. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  374. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  375. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  376. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  377. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  378. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  379. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  380. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  381. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  382. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  383. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  384. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  385. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  386. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  387. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  388. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  389. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  390. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  391. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  392. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  393. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  394. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  395. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  396. package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  397. package/node_modules/@azure/msal-browser/dist/encode/Base64Decode.mjs +1 -1
  398. package/node_modules/@azure/msal-browser/dist/encode/Base64Encode.mjs +1 -1
  399. package/node_modules/@azure/msal-browser/dist/error/BrowserAuthError.mjs +1 -1
  400. package/node_modules/@azure/msal-browser/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  401. package/node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  402. package/node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  403. package/node_modules/@azure/msal-browser/dist/error/NativeAuthError.mjs +4 -4
  404. package/node_modules/@azure/msal-browser/dist/error/NativeAuthError.mjs.map +1 -1
  405. package/node_modules/@azure/msal-browser/dist/error/NativeAuthErrorCodes.mjs +1 -1
  406. package/node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs +1 -1
  407. package/node_modules/@azure/msal-browser/dist/event/EventHandler.mjs +1 -1
  408. package/node_modules/@azure/msal-browser/dist/event/EventMessage.mjs +1 -1
  409. package/node_modules/@azure/msal-browser/dist/event/EventType.mjs +1 -1
  410. package/node_modules/@azure/msal-browser/dist/index.mjs +1 -1
  411. package/node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  412. package/node_modules/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  413. package/node_modules/@azure/msal-browser/dist/interaction_client/PlatformAuthInteractionClient.mjs +4 -3
  414. package/node_modules/@azure/msal-browser/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  415. package/node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.mjs +27 -7
  416. package/node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.mjs.map +1 -1
  417. package/node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.mjs +6 -1
  418. package/node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.mjs.map +1 -1
  419. package/node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  420. package/node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.mjs +1 -1
  421. package/node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.mjs +11 -4
  422. package/node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
  423. package/node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  424. package/node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  425. package/node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.mjs +1 -1
  426. package/node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.mjs +2 -1
  427. package/node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.mjs.map +1 -1
  428. package/node_modules/@azure/msal-browser/dist/log-strings-mapping.json +7 -3
  429. package/node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs +1 -1
  430. package/node_modules/@azure/msal-browser/dist/naa/BridgeProxy.mjs +1 -1
  431. package/node_modules/@azure/msal-browser/dist/naa/BridgeStatusCode.mjs +1 -1
  432. package/node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  433. package/node_modules/@azure/msal-browser/dist/navigation/NavigationClient.mjs +1 -1
  434. package/node_modules/@azure/msal-browser/dist/network/FetchClient.mjs +1 -1
  435. package/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs +10 -2
  436. package/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -1
  437. package/node_modules/@azure/msal-browser/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  438. package/node_modules/@azure/msal-browser/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  439. package/node_modules/@azure/msal-browser/dist/packageMetadata.mjs +2 -2
  440. package/node_modules/@azure/msal-browser/dist/protocol/Authorize.mjs +1 -1
  441. package/node_modules/@azure/msal-browser/dist/redirect_bridge/index.mjs +4 -5
  442. package/node_modules/@azure/msal-browser/dist/redirect_bridge/index.mjs.map +1 -1
  443. package/node_modules/@azure/msal-browser/dist/request/RequestHelpers.mjs +1 -1
  444. package/node_modules/@azure/msal-browser/dist/response/ResponseHandler.mjs +1 -1
  445. package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  446. package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  447. package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  448. package/node_modules/@azure/msal-browser/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  449. package/node_modules/@azure/msal-browser/dist/utils/BrowserConstants.mjs +1 -1
  450. package/node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.mjs +1 -1
  451. package/node_modules/@azure/msal-browser/dist/utils/BrowserUtils.mjs +15 -5
  452. package/node_modules/@azure/msal-browser/dist/utils/BrowserUtils.mjs.map +1 -1
  453. package/node_modules/@azure/msal-browser/dist/utils/Helpers.mjs +1 -1
  454. package/node_modules/@azure/msal-browser/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  455. package/node_modules/@azure/msal-browser/lib/custom-auth-path/log-strings-mapping.json +15 -11
  456. package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.cjs +238 -132
  457. package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  458. package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.js +238 -132
  459. package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  460. package/node_modules/@azure/msal-browser/lib/log-strings-mapping.json +7 -3
  461. package/node_modules/@azure/msal-browser/lib/msal-browser.cjs +252 -135
  462. package/node_modules/@azure/msal-browser/lib/msal-browser.cjs.map +1 -1
  463. package/node_modules/@azure/msal-browser/lib/msal-browser.js +252 -135
  464. package/node_modules/@azure/msal-browser/lib/msal-browser.js.map +1 -1
  465. package/node_modules/@azure/msal-browser/lib/msal-browser.min.js +2 -2
  466. package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.cjs +59 -50
  467. package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  468. package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.js +59 -50
  469. package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  470. package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
  471. package/node_modules/@azure/msal-browser/package.json +2 -2
  472. package/node_modules/@azure/msal-browser/src/app/PublicClientApplication.ts +85 -1
  473. package/node_modules/@azure/msal-browser/src/broker/nativeBroker/NativeStatusCodes.ts +1 -1
  474. package/node_modules/@azure/msal-browser/src/cache/BrowserCacheManager.ts +17 -0
  475. package/node_modules/@azure/msal-browser/src/controllers/StandardController.ts +4 -2
  476. package/node_modules/@azure/msal-browser/src/error/NativeAuthError.ts +2 -2
  477. package/node_modules/@azure/msal-browser/src/interaction_client/PlatformAuthInteractionClient.ts +5 -1
  478. package/node_modules/@azure/msal-browser/src/interaction_client/PopupClient.ts +65 -27
  479. package/node_modules/@azure/msal-browser/src/interaction_client/RedirectClient.ts +5 -0
  480. package/node_modules/@azure/msal-browser/src/interaction_client/SilentIframeClient.ts +49 -19
  481. package/node_modules/@azure/msal-browser/src/interaction_handler/SilentHandler.ts +1 -0
  482. package/node_modules/@azure/msal-browser/src/operatingcontext/BaseOperatingContext.ts +15 -1
  483. package/node_modules/@azure/msal-browser/src/packageMetadata.ts +1 -1
  484. package/node_modules/@azure/msal-browser/src/redirect_bridge/index.ts +3 -7
  485. package/node_modules/@azure/msal-browser/src/utils/BrowserUtils.ts +28 -7
  486. package/node_modules/@azure/msal-browser/types/app/PublicClientApplication.d.ts +37 -1
  487. package/node_modules/@azure/msal-browser/types/app/PublicClientApplication.d.ts.map +1 -1
  488. package/node_modules/@azure/msal-browser/types/broker/nativeBroker/NativeStatusCodes.d.ts +1 -1
  489. package/node_modules/@azure/msal-browser/types/cache/BrowserCacheManager.d.ts.map +1 -1
  490. package/node_modules/@azure/msal-browser/types/controllers/StandardController.d.ts.map +1 -1
  491. package/node_modules/@azure/msal-browser/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  492. package/node_modules/@azure/msal-browser/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  493. package/node_modules/@azure/msal-browser/types/interaction_client/PopupClient.d.ts +11 -1
  494. package/node_modules/@azure/msal-browser/types/interaction_client/PopupClient.d.ts.map +1 -1
  495. package/node_modules/@azure/msal-browser/types/interaction_client/RedirectClient.d.ts.map +1 -1
  496. package/node_modules/@azure/msal-browser/types/interaction_client/SilentIframeClient.d.ts +20 -1
  497. package/node_modules/@azure/msal-browser/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
  498. package/node_modules/@azure/msal-browser/types/interaction_handler/SilentHandler.d.ts.map +1 -1
  499. package/node_modules/@azure/msal-browser/types/operatingcontext/BaseOperatingContext.d.ts +8 -1
  500. package/node_modules/@azure/msal-browser/types/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
  501. package/node_modules/@azure/msal-browser/types/packageMetadata.d.ts +1 -1
  502. package/node_modules/@azure/msal-browser/types/redirect_bridge/index.d.ts.map +1 -1
  503. package/node_modules/@azure/msal-browser/types/utils/BrowserUtils.d.ts +17 -2
  504. package/node_modules/@azure/msal-browser/types/utils/BrowserUtils.d.ts.map +1 -1
  505. package/node_modules/@azure/msal-common/dist/account/AccountInfo.mjs +1 -1
  506. package/node_modules/@azure/msal-common/dist/account/AuthToken.mjs +1 -1
  507. package/node_modules/@azure/msal-common/dist/account/CcsCredential.mjs +1 -1
  508. package/node_modules/@azure/msal-common/dist/account/ClientInfo.mjs +1 -1
  509. package/node_modules/@azure/msal-common/dist/account/TokenClaims.mjs +1 -1
  510. package/node_modules/@azure/msal-common/dist/authority/Authority.mjs +19 -6
  511. package/node_modules/@azure/msal-common/dist/authority/Authority.mjs.map +1 -1
  512. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.mjs +1 -1
  513. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.mjs +1 -1
  514. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.mjs +1 -1
  515. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.mjs +1 -1
  516. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  517. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  518. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.mjs +1 -1
  519. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.mjs +1 -1
  520. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.mjs +1 -1
  521. package/node_modules/@azure/msal-common/dist/cache/CacheManager.mjs +3 -3
  522. package/node_modules/@azure/msal-common/dist/cache/CacheManager.mjs.map +1 -1
  523. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  524. package/node_modules/@azure/msal-common/dist/cache/utils/AccountEntityUtils.mjs +1 -1
  525. package/node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs +1 -1
  526. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.mjs +1 -1
  527. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.mjs +1 -1
  528. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.mjs +1 -1
  529. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.mjs +1 -1
  530. package/node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.mjs +1 -1
  531. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs +1 -1
  532. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.mjs +1 -1
  533. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.mjs +1 -1
  534. package/node_modules/@azure/msal-common/dist/error/AuthError.mjs +1 -1
  535. package/node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs +1 -1
  536. package/node_modules/@azure/msal-common/dist/error/CacheError.mjs +1 -1
  537. package/node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs +1 -1
  538. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs +1 -1
  539. package/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs +1 -1
  540. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs +1 -1
  541. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
  542. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs +4 -4
  543. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
  544. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs +3 -3
  545. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs.map +1 -1
  546. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.mjs +1 -1
  547. package/node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  548. package/node_modules/@azure/msal-common/dist/error/NetworkError.mjs +1 -1
  549. package/node_modules/@azure/msal-common/dist/error/PlatformBrokerError.mjs +1 -1
  550. package/node_modules/@azure/msal-common/dist/error/ServerError.mjs +1 -1
  551. package/node_modules/@azure/msal-common/dist/index-node.mjs +1 -1
  552. package/node_modules/@azure/msal-common/dist/index.mjs +1 -1
  553. package/node_modules/@azure/msal-common/dist/logger/Logger.mjs +1 -1
  554. package/node_modules/@azure/msal-common/dist/network/INetworkModule.mjs +1 -1
  555. package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.mjs +1 -1
  556. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.mjs +1 -1
  557. package/node_modules/@azure/msal-common/dist/packageMetadata.mjs +2 -2
  558. package/node_modules/@azure/msal-common/dist/protocol/Authorize.mjs +1 -1
  559. package/node_modules/@azure/msal-common/dist/protocol/Token.mjs +1 -1
  560. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.mjs +1 -1
  561. package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.mjs +1 -1
  562. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs +1 -1
  563. package/node_modules/@azure/msal-common/dist/request/ScopeSet.mjs +1 -1
  564. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.mjs +1 -1
  565. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.mjs +1 -1
  566. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs +1 -1
  567. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvents.mjs +1 -1
  568. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
  569. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
  570. package/node_modules/@azure/msal-common/dist/url/UrlString.mjs +1 -1
  571. package/node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.mjs +1 -1
  572. package/node_modules/@azure/msal-common/dist/utils/Constants.mjs +1 -1
  573. package/node_modules/@azure/msal-common/dist/utils/FunctionWrappers.mjs +1 -1
  574. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.mjs +1 -1
  575. package/node_modules/@azure/msal-common/dist/utils/StringUtils.mjs +1 -1
  576. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs +1 -1
  577. package/node_modules/@azure/msal-common/dist/utils/UrlUtils.mjs +1 -1
  578. package/node_modules/@azure/msal-common/dist-browser/account/AccountInfo.mjs +1 -1
  579. package/node_modules/@azure/msal-common/dist-browser/account/AuthToken.mjs +1 -1
  580. package/node_modules/@azure/msal-common/dist-browser/account/CcsCredential.mjs +1 -1
  581. package/node_modules/@azure/msal-common/dist-browser/account/ClientInfo.mjs +1 -1
  582. package/node_modules/@azure/msal-common/dist-browser/account/TokenClaims.mjs +1 -1
  583. package/node_modules/@azure/msal-common/dist-browser/authority/Authority.mjs +19 -6
  584. package/node_modules/@azure/msal-common/dist-browser/authority/Authority.mjs.map +1 -1
  585. package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityFactory.mjs +1 -1
  586. package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityMetadata.mjs +1 -1
  587. package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityOptions.mjs +1 -1
  588. package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityType.mjs +1 -1
  589. package/node_modules/@azure/msal-common/dist-browser/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  590. package/node_modules/@azure/msal-common/dist-browser/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  591. package/node_modules/@azure/msal-common/dist-browser/authority/OpenIdConfigResponse.mjs +1 -1
  592. package/node_modules/@azure/msal-common/dist-browser/authority/ProtocolMode.mjs +1 -1
  593. package/node_modules/@azure/msal-common/dist-browser/authority/RegionDiscovery.mjs +1 -1
  594. package/node_modules/@azure/msal-common/dist-browser/cache/CacheManager.mjs +3 -3
  595. package/node_modules/@azure/msal-common/dist-browser/cache/CacheManager.mjs.map +1 -1
  596. package/node_modules/@azure/msal-common/dist-browser/cache/persistence/TokenCacheContext.mjs +1 -1
  597. package/node_modules/@azure/msal-common/dist-browser/cache/utils/AccountEntityUtils.mjs +1 -1
  598. package/node_modules/@azure/msal-common/dist-browser/cache/utils/CacheHelpers.mjs +1 -1
  599. package/node_modules/@azure/msal-common/dist-browser/client/AuthorizationCodeClient.mjs +1 -1
  600. package/node_modules/@azure/msal-common/dist-browser/client/RefreshTokenClient.mjs +1 -1
  601. package/node_modules/@azure/msal-common/dist-browser/client/SilentFlowClient.mjs +1 -1
  602. package/node_modules/@azure/msal-common/dist-browser/config/ClientConfiguration.mjs +1 -1
  603. package/node_modules/@azure/msal-common/dist-browser/constants/AADServerParamKeys.mjs +1 -1
  604. package/node_modules/@azure/msal-common/dist-browser/crypto/ICrypto.mjs +1 -1
  605. package/node_modules/@azure/msal-common/dist-browser/crypto/JoseHeader.mjs +1 -1
  606. package/node_modules/@azure/msal-common/dist-browser/crypto/PopTokenGenerator.mjs +1 -1
  607. package/node_modules/@azure/msal-common/dist-browser/error/AuthError.mjs +1 -1
  608. package/node_modules/@azure/msal-common/dist-browser/error/AuthErrorCodes.mjs +1 -1
  609. package/node_modules/@azure/msal-common/dist-browser/error/CacheError.mjs +1 -1
  610. package/node_modules/@azure/msal-common/dist-browser/error/CacheErrorCodes.mjs +1 -1
  611. package/node_modules/@azure/msal-common/dist-browser/error/ClientAuthError.mjs +1 -1
  612. package/node_modules/@azure/msal-common/dist-browser/error/ClientAuthErrorCodes.mjs +1 -1
  613. package/node_modules/@azure/msal-common/dist-browser/error/ClientConfigurationError.mjs +1 -1
  614. package/node_modules/@azure/msal-common/dist-browser/error/ClientConfigurationErrorCodes.mjs +1 -1
  615. package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthError.mjs +4 -4
  616. package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthError.mjs.map +1 -1
  617. package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthErrorCodes.mjs +3 -3
  618. package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthErrorCodes.mjs.map +1 -1
  619. package/node_modules/@azure/msal-common/dist-browser/error/JoseHeaderError.mjs +1 -1
  620. package/node_modules/@azure/msal-common/dist-browser/error/JoseHeaderErrorCodes.mjs +1 -1
  621. package/node_modules/@azure/msal-common/dist-browser/error/NetworkError.mjs +1 -1
  622. package/node_modules/@azure/msal-common/dist-browser/error/PlatformBrokerError.mjs +1 -1
  623. package/node_modules/@azure/msal-common/dist-browser/error/ServerError.mjs +1 -1
  624. package/node_modules/@azure/msal-common/dist-browser/index-browser.mjs +1 -1
  625. package/node_modules/@azure/msal-common/dist-browser/index.mjs +1 -1
  626. package/node_modules/@azure/msal-common/dist-browser/log-strings-mapping.json +2 -2
  627. package/node_modules/@azure/msal-common/dist-browser/logger/Logger.mjs +1 -1
  628. package/node_modules/@azure/msal-common/dist-browser/network/INetworkModule.mjs +1 -1
  629. package/node_modules/@azure/msal-common/dist-browser/network/RequestThumbprint.mjs +1 -1
  630. package/node_modules/@azure/msal-common/dist-browser/network/ThrottlingUtils.mjs +1 -1
  631. package/node_modules/@azure/msal-common/dist-browser/packageMetadata.mjs +2 -2
  632. package/node_modules/@azure/msal-common/dist-browser/protocol/Authorize.mjs +1 -1
  633. package/node_modules/@azure/msal-common/dist-browser/protocol/Token.mjs +1 -1
  634. package/node_modules/@azure/msal-common/dist-browser/request/AuthenticationHeaderParser.mjs +1 -1
  635. package/node_modules/@azure/msal-common/dist-browser/request/BaseAuthRequest.mjs +1 -1
  636. package/node_modules/@azure/msal-common/dist-browser/request/RequestParameterBuilder.mjs +1 -1
  637. package/node_modules/@azure/msal-common/dist-browser/request/ScopeSet.mjs +1 -1
  638. package/node_modules/@azure/msal-common/dist-browser/response/ResponseHandler.mjs +1 -1
  639. package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceClient.mjs +1 -1
  640. package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceEvent.mjs +1 -1
  641. package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceEvents.mjs +1 -1
  642. package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/StubPerformanceClient.mjs +1 -1
  643. package/node_modules/@azure/msal-common/dist-browser/telemetry/server/ServerTelemetryManager.mjs +1 -1
  644. package/node_modules/@azure/msal-common/dist-browser/url/UrlString.mjs +1 -1
  645. package/node_modules/@azure/msal-common/dist-browser/utils/ClientAssertionUtils.mjs +1 -1
  646. package/node_modules/@azure/msal-common/dist-browser/utils/Constants.mjs +1 -1
  647. package/node_modules/@azure/msal-common/dist-browser/utils/FunctionWrappers.mjs +1 -1
  648. package/node_modules/@azure/msal-common/dist-browser/utils/ProtocolUtils.mjs +1 -1
  649. package/node_modules/@azure/msal-common/dist-browser/utils/StringUtils.mjs +1 -1
  650. package/node_modules/@azure/msal-common/dist-browser/utils/TimeUtils.mjs +1 -1
  651. package/node_modules/@azure/msal-common/dist-browser/utils/UrlUtils.mjs +1 -1
  652. package/node_modules/@azure/msal-common/lib/index-browser.cjs +2 -2
  653. package/node_modules/@azure/msal-common/lib/{index-node-9_Gz5QUk.js → index-node-DHSwXao8.js} +27 -14
  654. package/node_modules/@azure/msal-common/lib/index-node-DHSwXao8.js.map +1 -0
  655. package/node_modules/@azure/msal-common/lib/index-node.cjs +2 -2
  656. package/node_modules/@azure/msal-common/lib/index.cjs +2 -2
  657. package/node_modules/@azure/msal-common/package.json +1 -1
  658. package/node_modules/@azure/msal-common/src/authority/Authority.ts +20 -5
  659. package/node_modules/@azure/msal-common/src/cache/CacheManager.ts +5 -10
  660. package/node_modules/@azure/msal-common/src/error/InteractionRequiredAuthError.ts +2 -2
  661. package/node_modules/@azure/msal-common/src/error/InteractionRequiredAuthErrorCodes.ts +1 -2
  662. package/node_modules/@azure/msal-common/src/packageMetadata.ts +1 -1
  663. package/node_modules/@azure/msal-common/types/authority/Authority.d.ts +5 -1
  664. package/node_modules/@azure/msal-common/types/authority/Authority.d.ts.map +1 -1
  665. package/node_modules/@azure/msal-common/types/cache/CacheManager.d.ts.map +1 -1
  666. package/node_modules/@azure/msal-common/types/error/InteractionRequiredAuthErrorCodes.d.ts +1 -1
  667. package/node_modules/@azure/msal-common/types/error/InteractionRequiredAuthErrorCodes.d.ts.map +1 -1
  668. package/node_modules/@azure/msal-common/types/packageMetadata.d.ts +1 -1
  669. package/node_modules/@azure/msal-node/dist/cache/CacheHelpers.mjs +1 -1
  670. package/node_modules/@azure/msal-node/dist/cache/NodeStorage.mjs +1 -1
  671. package/node_modules/@azure/msal-node/dist/cache/TokenCache.mjs +1 -1
  672. package/node_modules/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  673. package/node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.mjs +1 -1
  674. package/node_modules/@azure/msal-node/dist/cache/serializer/Serializer.mjs +1 -1
  675. package/node_modules/@azure/msal-node/dist/client/BaseClient.mjs +1 -1
  676. package/node_modules/@azure/msal-node/dist/client/ClientApplication.mjs +1 -1
  677. package/node_modules/@azure/msal-node/dist/client/ClientAssertion.mjs +1 -1
  678. package/node_modules/@azure/msal-node/dist/client/ClientCredentialClient.mjs +1 -1
  679. package/node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.mjs +1 -1
  680. package/node_modules/@azure/msal-node/dist/client/DeviceCodeClient.mjs +1 -1
  681. package/node_modules/@azure/msal-node/dist/client/ManagedIdentityApplication.mjs +1 -1
  682. package/node_modules/@azure/msal-node/dist/client/ManagedIdentityClient.mjs +1 -1
  683. package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  684. package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  685. package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
  686. package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  687. package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  688. package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  689. package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  690. package/node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.mjs +1 -1
  691. package/node_modules/@azure/msal-node/dist/client/PublicClientApplication.mjs +1 -1
  692. package/node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.mjs +1 -1
  693. package/node_modules/@azure/msal-node/dist/config/Configuration.mjs +1 -1
  694. package/node_modules/@azure/msal-node/dist/config/ManagedIdentityId.mjs +1 -1
  695. package/node_modules/@azure/msal-node/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  696. package/node_modules/@azure/msal-node/dist/crypto/CryptoProvider.mjs +1 -1
  697. package/node_modules/@azure/msal-node/dist/crypto/GuidGenerator.mjs +1 -1
  698. package/node_modules/@azure/msal-node/dist/crypto/HashUtils.mjs +1 -1
  699. package/node_modules/@azure/msal-node/dist/crypto/PkceGenerator.mjs +1 -1
  700. package/node_modules/@azure/msal-node/dist/error/ClientAuthErrorCodes.mjs +1 -1
  701. package/node_modules/@azure/msal-node/dist/error/ManagedIdentityError.mjs +1 -1
  702. package/node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  703. package/node_modules/@azure/msal-node/dist/error/NodeAuthError.mjs +1 -1
  704. package/node_modules/@azure/msal-node/dist/index.mjs +1 -1
  705. package/node_modules/@azure/msal-node/dist/internals.mjs +1 -1
  706. package/node_modules/@azure/msal-node/dist/network/HttpClient.mjs +1 -1
  707. package/node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.mjs +1 -1
  708. package/node_modules/@azure/msal-node/dist/network/LoopbackClient.mjs +1 -1
  709. package/node_modules/@azure/msal-node/dist/packageMetadata.mjs +2 -2
  710. package/node_modules/@azure/msal-node/dist/protocol/Authorize.mjs +1 -1
  711. package/node_modules/@azure/msal-node/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  712. package/node_modules/@azure/msal-node/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  713. package/node_modules/@azure/msal-node/dist/retry/ImdsRetryPolicy.mjs +1 -1
  714. package/node_modules/@azure/msal-node/dist/retry/LinearRetryStrategy.mjs +1 -1
  715. package/node_modules/@azure/msal-node/dist/utils/Constants.mjs +1 -1
  716. package/node_modules/@azure/msal-node/dist/utils/EncodingUtils.mjs +1 -1
  717. package/node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs +1 -1
  718. package/node_modules/@azure/msal-node/lib/msal-node.cjs +87 -74
  719. package/node_modules/@azure/msal-node/lib/msal-node.cjs.map +1 -1
  720. package/node_modules/@azure/msal-node/package.json +2 -2
  721. package/node_modules/@azure/msal-node/src/packageMetadata.ts +1 -1
  722. package/node_modules/@azure/msal-node/types/packageMetadata.d.ts +1 -1
  723. package/node_modules/@types/node/README.md +1 -1
  724. package/node_modules/@types/node/http2.d.ts +3 -0
  725. package/node_modules/@types/node/package.json +2 -2
  726. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/clientHelpers.js +1 -1
  727. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/clientHelpers.js.map +1 -1
  728. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/common.d.ts +3 -2
  729. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/common.js.map +1 -1
  730. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/getClient.js +1 -1
  731. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/getClient.js.map +1 -1
  732. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/multipart.js +1 -1
  733. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/multipart.js.map +1 -1
  734. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/restError.js +5 -4
  735. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/restError.js.map +1 -1
  736. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/sendRequest.js +13 -10
  737. package/node_modules/@typespec/ts-http-runtime/dist/browser/client/sendRequest.js.map +1 -1
  738. package/node_modules/@typespec/ts-http-runtime/dist/browser/constants.js +1 -1
  739. package/node_modules/@typespec/ts-http-runtime/dist/browser/constants.js.map +1 -1
  740. package/node_modules/@typespec/ts-http-runtime/dist/browser/createPipelineFromOptions.d.ts +1 -1
  741. package/node_modules/@typespec/ts-http-runtime/dist/browser/createPipelineFromOptions.js +2 -21
  742. package/node_modules/@typespec/ts-http-runtime/dist/browser/createPipelineFromOptions.js.map +1 -1
  743. package/node_modules/@typespec/ts-http-runtime/dist/browser/{defaultHttpClient.d.ts → defaultHttpClient-browser.d.mts} +1 -1
  744. package/node_modules/@typespec/ts-http-runtime/dist/browser/{defaultHttpClient.js → defaultHttpClient-browser.mjs} +1 -1
  745. package/node_modules/@typespec/ts-http-runtime/dist/browser/defaultHttpClient-browser.mjs.map +1 -0
  746. package/node_modules/@typespec/ts-http-runtime/dist/browser/encoding.d.ts +13 -0
  747. package/node_modules/@typespec/ts-http-runtime/dist/browser/encoding.js +19 -0
  748. package/node_modules/@typespec/ts-http-runtime/dist/browser/encoding.js.map +1 -0
  749. package/node_modules/@typespec/ts-http-runtime/dist/browser/{util/checkEnvironment.d.ts → env-browser.d.mts} +21 -1
  750. package/node_modules/@typespec/ts-http-runtime/dist/browser/{util/checkEnvironment.js → env-browser.mjs} +26 -12
  751. package/node_modules/@typespec/ts-http-runtime/dist/browser/env-browser.mjs.map +1 -0
  752. package/node_modules/@typespec/ts-http-runtime/dist/browser/formData-web.d.mts +9 -0
  753. package/node_modules/@typespec/ts-http-runtime/dist/browser/formData-web.mjs +12 -0
  754. package/node_modules/@typespec/ts-http-runtime/dist/browser/formData-web.mjs.map +1 -0
  755. package/node_modules/@typespec/ts-http-runtime/dist/browser/httpHeaders.js +11 -1
  756. package/node_modules/@typespec/ts-http-runtime/dist/browser/httpHeaders.js.map +1 -1
  757. package/node_modules/@typespec/ts-http-runtime/dist/browser/index.d.ts +3 -14
  758. package/node_modules/@typespec/ts-http-runtime/dist/browser/index.js +2 -2
  759. package/node_modules/@typespec/ts-http-runtime/dist/browser/index.js.map +1 -1
  760. package/node_modules/@typespec/ts-http-runtime/dist/browser/interfaces.d.ts +15 -14
  761. package/node_modules/@typespec/ts-http-runtime/dist/browser/interfaces.js.map +1 -1
  762. package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/debug.js +3 -2
  763. package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/debug.js.map +1 -1
  764. package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/{log.d.ts → log-web.d.mts} +1 -1
  765. package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/{log.js → log-web.mjs} +1 -1
  766. package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/log-web.mjs.map +1 -0
  767. package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/logger.js +2 -2
  768. package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/logger.js.map +1 -1
  769. package/node_modules/@typespec/ts-http-runtime/dist/browser/pipelineRequest.js +1 -1
  770. package/node_modules/@typespec/ts-http-runtime/dist/browser/pipelineRequest.js.map +1 -1
  771. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/basicAuthenticationPolicy.js +1 -1
  772. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/basicAuthenticationPolicy.js.map +1 -1
  773. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/checkInsecureConnection.js +3 -2
  774. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/checkInsecureConnection.js.map +1 -1
  775. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/{decompressResponsePolicy.d.ts → decompressResponsePolicy-web.d.mts} +1 -1
  776. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/{decompressResponsePolicy.js → decompressResponsePolicy-web.mjs} +1 -1
  777. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/decompressResponsePolicy-web.mjs.map +1 -0
  778. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/formDataPolicy.js +5 -12
  779. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/formDataPolicy.js.map +1 -1
  780. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/internal.d.ts +2 -2
  781. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/internal.js +2 -2
  782. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/internal.js.map +1 -1
  783. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/multipartPolicy.js +7 -3
  784. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/multipartPolicy.js.map +1 -1
  785. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies-web.d.mts +10 -0
  786. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies-web.mjs +12 -0
  787. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies-web.mjs.map +1 -0
  788. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies.d.ts +25 -0
  789. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies.js +30 -0
  790. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies.js.map +1 -0
  791. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy-web.d.mts +2 -0
  792. package/node_modules/@typespec/ts-http-runtime/dist/{react-native/policies/proxyPolicy.js → browser/policies/proxyPolicy-web.mjs} +1 -1
  793. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy-web.mjs.map +1 -0
  794. package/node_modules/@typespec/ts-http-runtime/dist/browser/restError.js +1 -1
  795. package/node_modules/@typespec/ts-http-runtime/dist/browser/restError.js.map +1 -1
  796. package/node_modules/@typespec/ts-http-runtime/dist/browser/types-browser.d.mts +19 -0
  797. package/node_modules/@typespec/ts-http-runtime/dist/browser/types-browser.mjs +4 -0
  798. package/node_modules/@typespec/ts-http-runtime/dist/browser/types-browser.mjs.map +1 -0
  799. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding-web.d.mts +2 -0
  800. package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/bytesEncoding.js → browser/util/bytesEncoding-web.mjs} +1 -1
  801. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding-web.mjs.map +1 -0
  802. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.common.d.ts +4 -4
  803. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.common.js +3 -4
  804. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.common.js.map +1 -1
  805. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat-browser.d.mts +16 -0
  806. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/{concat.js → concat-browser.mjs} +4 -11
  807. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat-browser.mjs.map +1 -0
  808. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect-web.d.mts +2 -0
  809. package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/inspect.js → browser/util/inspect-web.mjs} +1 -1
  810. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect-web.mjs.map +1 -0
  811. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/internal.d.ts +4 -4
  812. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/internal.js +4 -4
  813. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/internal.js.map +1 -1
  814. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256-web.d.mts +2 -0
  815. package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/sha256.js → browser/util/sha256-web.mjs} +1 -1
  816. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256-web.mjs.map +1 -0
  817. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.common.js +1 -1
  818. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.common.js.map +1 -1
  819. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards-browser.d.mts +14 -0
  820. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards-browser.mjs +26 -0
  821. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards-browser.mjs.map +1 -0
  822. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards.d.ts +5 -4
  823. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards.js +4 -10
  824. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards.js.map +1 -1
  825. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgent.d.ts +2 -0
  826. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgent.js +2 -1
  827. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgent.js.map +1 -1
  828. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform-browser.d.mts +37 -0
  829. package/node_modules/{@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform.js → @typespec/ts-http-runtime/dist/browser/util/userAgentPlatform-browser.mjs} +10 -11
  830. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform-browser.mjs.map +1 -0
  831. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/{uuidUtils.d.ts → uuidUtils-browser.d.mts} +1 -1
  832. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/{uuidUtils.js → uuidUtils-browser.mjs} +1 -1
  833. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/uuidUtils-browser.mjs.map +1 -0
  834. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/clientHelpers.js +2 -2
  835. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/clientHelpers.js.map +2 -2
  836. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/common.d.ts +3 -2
  837. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/common.js.map +1 -1
  838. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/getClient.js +3 -3
  839. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/getClient.js.map +2 -2
  840. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/multipart.js.map +1 -1
  841. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/restError.js +5 -4
  842. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/restError.js.map +2 -2
  843. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/sendRequest.js +26 -8
  844. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/sendRequest.js.map +2 -2
  845. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/constants.js +1 -1
  846. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/constants.js.map +1 -1
  847. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/createPipelineFromOptions.d.ts +1 -1
  848. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/createPipelineFromOptions.js +2 -19
  849. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/createPipelineFromOptions.js.map +2 -2
  850. package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/checkEnvironment.d.ts → commonjs/env.d.ts} +21 -1
  851. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/env.js +67 -0
  852. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/env.js.map +7 -0
  853. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/formData.d.ts +10 -0
  854. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/{util/arrayBuffer.js → formData.js} +19 -14
  855. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/formData.js.map +7 -0
  856. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/httpHeaders.js +4 -1
  857. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/httpHeaders.js.map +2 -2
  858. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/index.d.ts +1 -12
  859. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/index.js +2 -2
  860. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/index.js.map +2 -2
  861. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/interfaces.d.ts +15 -14
  862. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/interfaces.js.map +1 -1
  863. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/debug.js +2 -1
  864. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/debug.js.map +2 -2
  865. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/logger.js +2 -1
  866. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/logger.js.map +2 -2
  867. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/nodeHttpClient.js +3 -1
  868. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/nodeHttpClient.js.map +2 -2
  869. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/pipelineRequest.js +2 -2
  870. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/pipelineRequest.js.map +2 -2
  871. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/basicAuthenticationPolicy.js.map +1 -1
  872. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/checkInsecureConnection.js +3 -2
  873. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/checkInsecureConnection.js.map +2 -2
  874. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/formDataPolicy.js +4 -11
  875. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/formDataPolicy.js.map +2 -2
  876. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/internal.d.ts +1 -1
  877. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/internal.js +7 -7
  878. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/internal.js.map +2 -2
  879. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/multipartPolicy.js +2 -2
  880. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/multipartPolicy.js.map +2 -2
  881. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/platformPolicies.d.ts +25 -0
  882. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/platformPolicies.js +43 -0
  883. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/platformPolicies.js.map +7 -0
  884. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/restError.js.map +1 -1
  885. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/tsdoc-metadata.json +1 -1
  886. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/types.d.ts +19 -0
  887. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/types.js +16 -0
  888. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/types.js.map +7 -0
  889. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/concat.d.ts +1 -1
  890. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/concat.js.map +2 -2
  891. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/internal.d.ts +1 -1
  892. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/internal.js +10 -10
  893. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/internal.js.map +2 -2
  894. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards-node.d.ts +13 -0
  895. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/{logger/log.common.js → util/typeGuards-node.js} +14 -21
  896. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards-node.js.map +7 -0
  897. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards.d.ts +5 -4
  898. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards.js +6 -13
  899. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards.js.map +2 -2
  900. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/userAgent.d.ts +2 -0
  901. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/userAgent.js +7 -5
  902. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/userAgent.js.map +2 -2
  903. package/node_modules/@typespec/ts-http-runtime/dist/esm/client/clientHelpers.js.map +1 -1
  904. package/node_modules/@typespec/ts-http-runtime/dist/esm/client/common.d.ts +3 -2
  905. package/node_modules/@typespec/ts-http-runtime/dist/esm/client/common.js.map +1 -1
  906. package/node_modules/@typespec/ts-http-runtime/dist/esm/client/getClient.js +1 -1
  907. package/node_modules/@typespec/ts-http-runtime/dist/esm/client/getClient.js.map +1 -1
  908. package/node_modules/@typespec/ts-http-runtime/dist/esm/client/multipart.js.map +1 -1
  909. package/node_modules/@typespec/ts-http-runtime/dist/esm/client/restError.js +5 -4
  910. package/node_modules/@typespec/ts-http-runtime/dist/esm/client/restError.js.map +1 -1
  911. package/node_modules/@typespec/ts-http-runtime/dist/esm/client/sendRequest.js +13 -10
  912. package/node_modules/@typespec/ts-http-runtime/dist/esm/client/sendRequest.js.map +1 -1
  913. package/node_modules/@typespec/ts-http-runtime/dist/esm/constants.js +1 -1
  914. package/node_modules/@typespec/ts-http-runtime/dist/esm/constants.js.map +1 -1
  915. package/node_modules/@typespec/ts-http-runtime/dist/esm/createPipelineFromOptions.d.ts +1 -1
  916. package/node_modules/@typespec/ts-http-runtime/dist/esm/createPipelineFromOptions.js +2 -21
  917. package/node_modules/@typespec/ts-http-runtime/dist/esm/createPipelineFromOptions.js.map +1 -1
  918. package/node_modules/@typespec/ts-http-runtime/dist/{commonjs/util/checkEnvironment.d.ts → esm/env.d.ts} +21 -1
  919. package/node_modules/@typespec/ts-http-runtime/dist/esm/env.js +48 -0
  920. package/node_modules/@typespec/ts-http-runtime/dist/esm/env.js.map +1 -0
  921. package/node_modules/@typespec/ts-http-runtime/dist/esm/formData.d.ts +10 -0
  922. package/node_modules/@typespec/ts-http-runtime/dist/esm/formData.js +26 -0
  923. package/node_modules/@typespec/ts-http-runtime/dist/esm/formData.js.map +1 -0
  924. package/node_modules/@typespec/ts-http-runtime/dist/esm/httpHeaders.js +11 -1
  925. package/node_modules/@typespec/ts-http-runtime/dist/esm/httpHeaders.js.map +1 -1
  926. package/node_modules/@typespec/ts-http-runtime/dist/esm/index.d.ts +1 -12
  927. package/node_modules/@typespec/ts-http-runtime/dist/esm/index.js.map +1 -1
  928. package/node_modules/@typespec/ts-http-runtime/dist/esm/interfaces.d.ts +15 -14
  929. package/node_modules/@typespec/ts-http-runtime/dist/esm/interfaces.js.map +1 -1
  930. package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/debug.js +2 -1
  931. package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/debug.js.map +1 -1
  932. package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/logger.js +2 -2
  933. package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/logger.js.map +1 -1
  934. package/node_modules/@typespec/ts-http-runtime/dist/esm/nodeHttpClient.js +3 -1
  935. package/node_modules/@typespec/ts-http-runtime/dist/esm/nodeHttpClient.js.map +1 -1
  936. package/node_modules/@typespec/ts-http-runtime/dist/esm/pipelineRequest.js.map +1 -1
  937. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/basicAuthenticationPolicy.js.map +1 -1
  938. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/checkInsecureConnection.js +3 -2
  939. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/checkInsecureConnection.js.map +1 -1
  940. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/formDataPolicy.js +4 -11
  941. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/formDataPolicy.js.map +1 -1
  942. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/internal.d.ts +1 -1
  943. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/internal.js +1 -1
  944. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/internal.js.map +1 -1
  945. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/multipartPolicy.js +4 -0
  946. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/multipartPolicy.js.map +1 -1
  947. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/platformPolicies.d.ts +25 -0
  948. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/platformPolicies.js +30 -0
  949. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/platformPolicies.js.map +1 -0
  950. package/node_modules/@typespec/ts-http-runtime/dist/esm/restError.js.map +1 -1
  951. package/node_modules/@typespec/ts-http-runtime/dist/esm/types.d.ts +19 -0
  952. package/node_modules/@typespec/ts-http-runtime/dist/esm/types.js +4 -0
  953. package/node_modules/@typespec/ts-http-runtime/dist/esm/types.js.map +1 -0
  954. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/concat.d.ts +1 -1
  955. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/concat.js.map +1 -1
  956. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/internal.d.ts +1 -1
  957. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/internal.js +1 -1
  958. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/internal.js.map +1 -1
  959. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards-node.d.ts +13 -0
  960. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards-node.js +20 -0
  961. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards-node.js.map +1 -0
  962. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards.d.ts +5 -4
  963. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards.js +4 -10
  964. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards.js.map +1 -1
  965. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/userAgent.d.ts +2 -0
  966. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/userAgent.js +1 -0
  967. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/userAgent.js.map +1 -1
  968. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/clientHelpers.js +1 -1
  969. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/clientHelpers.js.map +1 -1
  970. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/common.d.ts +3 -2
  971. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/common.js.map +1 -1
  972. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/getClient.js +1 -1
  973. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/getClient.js.map +1 -1
  974. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/multipart.js +1 -1
  975. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/multipart.js.map +1 -1
  976. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/restError.js +5 -4
  977. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/restError.js.map +1 -1
  978. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/sendRequest.js +13 -10
  979. package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/sendRequest.js.map +1 -1
  980. package/node_modules/@typespec/ts-http-runtime/dist/react-native/constants.js +1 -1
  981. package/node_modules/@typespec/ts-http-runtime/dist/react-native/constants.js.map +1 -1
  982. package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.d.ts +1 -1
  983. package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.js +2 -21
  984. package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.js.map +1 -1
  985. package/node_modules/@typespec/ts-http-runtime/dist/react-native/{defaultHttpClient.d.ts → defaultHttpClient-react-native.d.mts} +1 -1
  986. package/node_modules/@typespec/ts-http-runtime/dist/react-native/{defaultHttpClient.js → defaultHttpClient-react-native.mjs} +1 -1
  987. package/node_modules/@typespec/ts-http-runtime/dist/react-native/defaultHttpClient-react-native.mjs.map +1 -0
  988. package/node_modules/@typespec/ts-http-runtime/dist/react-native/encoding-react-native.d.mts +21 -0
  989. package/node_modules/@typespec/ts-http-runtime/dist/react-native/encoding-react-native.mjs +25 -0
  990. package/node_modules/@typespec/ts-http-runtime/dist/react-native/encoding-react-native.mjs.map +1 -0
  991. package/node_modules/@typespec/ts-http-runtime/dist/{esm/util/checkEnvironment.d.ts → react-native/env-react-native.d.mts} +21 -1
  992. package/node_modules/@typespec/ts-http-runtime/dist/react-native/env-react-native.mjs +50 -0
  993. package/node_modules/@typespec/ts-http-runtime/dist/react-native/env-react-native.mjs.map +1 -0
  994. package/node_modules/@typespec/ts-http-runtime/dist/react-native/formData-web.d.mts +9 -0
  995. package/node_modules/@typespec/ts-http-runtime/dist/react-native/formData-web.mjs +12 -0
  996. package/node_modules/@typespec/ts-http-runtime/dist/react-native/formData-web.mjs.map +1 -0
  997. package/node_modules/@typespec/ts-http-runtime/dist/react-native/httpHeaders.js +11 -1
  998. package/node_modules/@typespec/ts-http-runtime/dist/react-native/httpHeaders.js.map +1 -1
  999. package/node_modules/@typespec/ts-http-runtime/dist/react-native/index.d.ts +3 -14
  1000. package/node_modules/@typespec/ts-http-runtime/dist/react-native/index.js +2 -2
  1001. package/node_modules/@typespec/ts-http-runtime/dist/react-native/index.js.map +1 -1
  1002. package/node_modules/@typespec/ts-http-runtime/dist/react-native/interfaces.d.ts +15 -14
  1003. package/node_modules/@typespec/ts-http-runtime/dist/react-native/interfaces.js.map +1 -1
  1004. package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/debug.js +3 -2
  1005. package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/debug.js.map +1 -1
  1006. package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/{log.d.ts → log-web.d.mts} +1 -1
  1007. package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/{log.js → log-web.mjs} +1 -1
  1008. package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/log-web.mjs.map +1 -0
  1009. package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/logger.js +2 -2
  1010. package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/logger.js.map +1 -1
  1011. package/node_modules/@typespec/ts-http-runtime/dist/react-native/pipelineRequest.js +1 -1
  1012. package/node_modules/@typespec/ts-http-runtime/dist/react-native/pipelineRequest.js.map +1 -1
  1013. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/basicAuthenticationPolicy.js +1 -1
  1014. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/basicAuthenticationPolicy.js.map +1 -1
  1015. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/checkInsecureConnection.js +3 -2
  1016. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/checkInsecureConnection.js.map +1 -1
  1017. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy-web.d.mts +8 -0
  1018. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy-web.mjs +11 -0
  1019. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy-web.mjs.map +1 -0
  1020. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/formDataPolicy.js +5 -12
  1021. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/formDataPolicy.js.map +1 -1
  1022. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/internal.d.ts +2 -2
  1023. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/internal.js +2 -2
  1024. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/internal.js.map +1 -1
  1025. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/multipartPolicy.js +7 -3
  1026. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/multipartPolicy.js.map +1 -1
  1027. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies-web.d.mts +10 -0
  1028. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies-web.mjs +12 -0
  1029. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies-web.mjs.map +1 -0
  1030. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies.d.ts +25 -0
  1031. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies.js +30 -0
  1032. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies.js.map +1 -0
  1033. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy-web.d.mts +2 -0
  1034. package/node_modules/@typespec/ts-http-runtime/dist/{browser/policies/proxyPolicy.js → react-native/policies/proxyPolicy-web.mjs} +1 -1
  1035. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy-web.mjs.map +1 -0
  1036. package/node_modules/@typespec/ts-http-runtime/dist/react-native/restError.js +1 -1
  1037. package/node_modules/@typespec/ts-http-runtime/dist/react-native/restError.js.map +1 -1
  1038. package/node_modules/@typespec/ts-http-runtime/dist/react-native/types-react-native.d.mts +19 -0
  1039. package/node_modules/@typespec/ts-http-runtime/dist/react-native/types-react-native.mjs +4 -0
  1040. package/node_modules/@typespec/ts-http-runtime/dist/react-native/types-react-native.mjs.map +1 -0
  1041. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding-web.d.mts +2 -0
  1042. package/node_modules/@typespec/ts-http-runtime/dist/{browser/util/bytesEncoding.js → react-native/util/bytesEncoding-web.mjs} +1 -1
  1043. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding-web.mjs.map +1 -0
  1044. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.common.d.ts +4 -4
  1045. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.common.js +3 -4
  1046. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.common.js.map +1 -1
  1047. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/{concat.d.ts → concat-react-native.d.mts} +10 -3
  1048. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/{concat.js → concat-react-native.mjs} +2 -2
  1049. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/concat-react-native.mjs.map +1 -0
  1050. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect-web.d.mts +2 -0
  1051. package/node_modules/@typespec/ts-http-runtime/dist/{browser/util/inspect.js → react-native/util/inspect-web.mjs} +1 -1
  1052. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect-web.mjs.map +1 -0
  1053. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/internal.d.ts +4 -4
  1054. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/internal.js +4 -4
  1055. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/internal.js.map +1 -1
  1056. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256-web.d.mts +2 -0
  1057. package/node_modules/@typespec/ts-http-runtime/dist/{browser/util/sha256.js → react-native/util/sha256-web.mjs} +1 -1
  1058. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256-web.mjs.map +1 -0
  1059. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.common.js +1 -1
  1060. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.common.js.map +1 -1
  1061. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards-react-native.d.mts +16 -0
  1062. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards-react-native.mjs +34 -0
  1063. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards-react-native.mjs.map +1 -0
  1064. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards.d.ts +5 -4
  1065. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards.js +4 -10
  1066. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards.js.map +1 -1
  1067. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgent.d.ts +2 -0
  1068. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgent.js +2 -1
  1069. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgent.js.map +1 -1
  1070. 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
  1071. 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
  1072. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform-react-native.mjs.map +1 -0
  1073. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils-react-native.d.mts +2 -0
  1074. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/{uuidUtils.js → uuidUtils-react-native.mjs} +1 -1
  1075. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils-react-native.mjs.map +1 -0
  1076. package/node_modules/@typespec/ts-http-runtime/package.json +94 -8
  1077. package/node_modules/semver/classes/semver.js +19 -2
  1078. package/node_modules/semver/package.json +1 -1
  1079. package/npm-shrinkwrap.json +29 -29
  1080. package/package.json +4 -4
  1081. package/dist/contract-api.js +0 -2
  1082. package/dist/secret-contract-CSs7JYzG.js +0 -35
  1083. package/node_modules/@azure/core-client/dist/browser/base64-browser.mjs.map +0 -1
  1084. package/node_modules/@azure/core-client/dist/browser/state-browser.mjs.map +0 -1
  1085. package/node_modules/@azure/core-client/dist/commonjs/state-cjs.cjs.map +0 -1
  1086. package/node_modules/@azure/core-client/dist/commonjs/state.d.ts +0 -7
  1087. package/node_modules/@azure/core-client/dist/react-native/state.d.ts +0 -8
  1088. package/node_modules/@azure/core-client/dist/react-native/state.js +0 -10
  1089. package/node_modules/@azure/core-client/dist/react-native/state.js.map +0 -1
  1090. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform.d.ts +0 -9
  1091. package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform.js.map +0 -1
  1092. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform.js.map +0 -1
  1093. package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/wrapAbortSignal.js.map +0 -1
  1094. package/node_modules/@azure/msal-common/lib/index-node-9_Gz5QUk.js.map +0 -1
  1095. package/node_modules/@typespec/ts-http-runtime/dist/browser/defaultHttpClient.js.map +0 -1
  1096. package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/log.js.map +0 -1
  1097. package/node_modules/@typespec/ts-http-runtime/dist/browser/nodeHttpClient.d.ts +0 -9
  1098. package/node_modules/@typespec/ts-http-runtime/dist/browser/nodeHttpClient.js +0 -347
  1099. package/node_modules/@typespec/ts-http-runtime/dist/browser/nodeHttpClient.js.map +0 -1
  1100. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/decompressResponsePolicy.js.map +0 -1
  1101. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy.d.ts +0 -2
  1102. package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy.js.map +0 -1
  1103. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.d.ts +0 -2
  1104. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.js.map +0 -1
  1105. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/checkEnvironment.js.map +0 -1
  1106. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat.d.ts +0 -17
  1107. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat.js.map +0 -1
  1108. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect.d.ts +0 -2
  1109. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect.js.map +0 -1
  1110. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.d.ts +0 -2
  1111. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.js.map +0 -1
  1112. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform.js.map +0 -1
  1113. package/node_modules/@typespec/ts-http-runtime/dist/browser/util/uuidUtils.js.map +0 -1
  1114. package/node_modules/@typespec/ts-http-runtime/dist/browser/xhrHttpClient.d.ts +0 -7
  1115. package/node_modules/@typespec/ts-http-runtime/dist/browser/xhrHttpClient.js +0 -174
  1116. package/node_modules/@typespec/ts-http-runtime/dist/browser/xhrHttpClient.js.map +0 -1
  1117. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/fetchHttpClient.d.ts +0 -12
  1118. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/fetchHttpClient.js +0 -238
  1119. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/fetchHttpClient.js.map +0 -7
  1120. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/log.common.d.ts +0 -2
  1121. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/log.common.js.map +0 -7
  1122. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/proxyPolicy.common.d.ts +0 -19
  1123. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/proxyPolicy.common.js +0 -44
  1124. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/proxyPolicy.common.js.map +0 -7
  1125. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/arrayBuffer.d.ts +0 -7
  1126. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/arrayBuffer.js.map +0 -7
  1127. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/bytesEncoding.common.d.ts +0 -61
  1128. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/bytesEncoding.common.js +0 -106
  1129. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/bytesEncoding.common.js.map +0 -7
  1130. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/checkEnvironment.js +0 -46
  1131. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/checkEnvironment.js.map +0 -7
  1132. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/inspect.common.d.ts +0 -2
  1133. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/inspect.common.js.map +0 -7
  1134. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/sha256.common.d.ts +0 -14
  1135. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/sha256.common.js +0 -70
  1136. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/sha256.common.js.map +0 -7
  1137. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/uuidUtils.common.d.ts +0 -13
  1138. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/uuidUtils.common.js +0 -49
  1139. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/uuidUtils.common.js.map +0 -7
  1140. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/xhrHttpClient.d.ts +0 -7
  1141. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/xhrHttpClient.js +0 -186
  1142. package/node_modules/@typespec/ts-http-runtime/dist/commonjs/xhrHttpClient.js.map +0 -7
  1143. package/node_modules/@typespec/ts-http-runtime/dist/esm/fetchHttpClient.d.ts +0 -12
  1144. package/node_modules/@typespec/ts-http-runtime/dist/esm/fetchHttpClient.js +0 -279
  1145. package/node_modules/@typespec/ts-http-runtime/dist/esm/fetchHttpClient.js.map +0 -1
  1146. package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/log.common.d.ts +0 -2
  1147. package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/log.common.js +0 -23
  1148. package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/log.common.js.map +0 -1
  1149. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/proxyPolicy.common.d.ts +0 -19
  1150. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/proxyPolicy.common.js +0 -24
  1151. package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/proxyPolicy.common.js.map +0 -1
  1152. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/arrayBuffer.d.ts +0 -7
  1153. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/arrayBuffer.js +0 -20
  1154. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/arrayBuffer.js.map +0 -1
  1155. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/bytesEncoding.common.d.ts +0 -61
  1156. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/bytesEncoding.common.js +0 -110
  1157. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/bytesEncoding.common.js.map +0 -1
  1158. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/checkEnvironment.js +0 -41
  1159. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/checkEnvironment.js.map +0 -1
  1160. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/inspect.common.d.ts +0 -2
  1161. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/inspect.common.js +0 -4
  1162. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/inspect.common.js.map +0 -1
  1163. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/sha256.common.d.ts +0 -14
  1164. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/sha256.common.js +0 -49
  1165. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/sha256.common.js.map +0 -1
  1166. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/uuidUtils.common.d.ts +0 -13
  1167. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/uuidUtils.common.js +0 -40
  1168. package/node_modules/@typespec/ts-http-runtime/dist/esm/util/uuidUtils.common.js.map +0 -1
  1169. package/node_modules/@typespec/ts-http-runtime/dist/esm/xhrHttpClient.d.ts +0 -7
  1170. package/node_modules/@typespec/ts-http-runtime/dist/esm/xhrHttpClient.js +0 -174
  1171. package/node_modules/@typespec/ts-http-runtime/dist/esm/xhrHttpClient.js.map +0 -1
  1172. package/node_modules/@typespec/ts-http-runtime/dist/react-native/defaultHttpClient.js.map +0 -1
  1173. package/node_modules/@typespec/ts-http-runtime/dist/react-native/fetchHttpClient.d.ts +0 -12
  1174. package/node_modules/@typespec/ts-http-runtime/dist/react-native/fetchHttpClient.js +0 -279
  1175. package/node_modules/@typespec/ts-http-runtime/dist/react-native/fetchHttpClient.js.map +0 -1
  1176. package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/log.js.map +0 -1
  1177. package/node_modules/@typespec/ts-http-runtime/dist/react-native/nodeHttpClient.d.ts +0 -9
  1178. package/node_modules/@typespec/ts-http-runtime/dist/react-native/nodeHttpClient.js +0 -347
  1179. package/node_modules/@typespec/ts-http-runtime/dist/react-native/nodeHttpClient.js.map +0 -1
  1180. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy.d.ts +0 -11
  1181. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy.js +0 -23
  1182. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy.js.map +0 -1
  1183. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy.d.ts +0 -2
  1184. package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy.js.map +0 -1
  1185. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.d.ts +0 -2
  1186. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.js.map +0 -1
  1187. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/checkEnvironment.js +0 -41
  1188. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/checkEnvironment.js.map +0 -1
  1189. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/concat.js.map +0 -1
  1190. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect.d.ts +0 -2
  1191. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect.js.map +0 -1
  1192. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.d.ts +0 -2
  1193. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.js.map +0 -1
  1194. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform.js.map +0 -1
  1195. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils.d.ts +0 -2
  1196. package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"authorizeRequestOnTenantChallenge.js","sourceRoot":"","sources":["../../src/authorizeRequestOnTenantChallenge.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC;;GAEG;AACH,MAAM,SAAS,GAAG;IAChB,YAAY,EAAE,WAAW;IACzB;;OAEG;IACH,eAAe,EAAE;QACf;;WAEG;QACH,aAAa,EAAE,eAAe;KAC/B;CACF,CAAC;AAEF,SAAS,MAAM,CAAC,IAAY;IAC1B,OAAO,uFAAuF,CAAC,IAAI,CACjG,IAAI,CACL,CAAC;AACJ,CAAC;AAED;;;;IAII;AACG,MAAM,iCAAiC,GAEtB,KAAK,EAAE,gBAAgB,EAAE,EAAE;IACjD,MAAM,cAAc,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClE,MAAM,SAAS,GAAG,YAAY,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,SAAS,EAAE,CAAC;QACd,MAAM,aAAa,GAAc,cAAc,CAAC,SAAS,CAAC,CAAC;QAC3D,MAAM,eAAe,GAAG,WAAW,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;QAChD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,KAAK,CAAC;QACf,CAAC;QACD,MAAM,WAAW,GAAG,MAAM,gBAAgB,CAAC,cAAc,CAAC,eAAe,EAAE;YACzE,GAAG,cAAc;YACjB,QAAQ;SACT,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,OAAO,KAAK,CAAC;QACf,CAAC;QAED,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAClC,SAAS,CAAC,eAAe,CAAC,aAAa,EACvC,GAAG,WAAW,CAAC,SAAS,IAAI,QAAQ,IAAI,WAAW,CAAC,KAAK,EAAE,CAC5D,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,OAAO;AACT,CAAC;AAUD;;;;;GAKG;AACH,SAAS,cAAc,CAAC,SAAiB;IACvC,MAAM,eAAe,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,cAAc,GAAG,GAAG,eAAe,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IAChF,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CACpD,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CACnE,CAAC;IACF,mCAAmC;IACnC,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,EAAe,CAAC,CAAC;AAC3E,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,OAAwB;IAChD,OAAO;QACL,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,cAAc,EAAE;YACd,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB;QACD,cAAc,EAAE,OAAO,CAAC,cAAc;KACvC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n AuthorizeRequestOnChallengeOptions,\n PipelineRequest,\n PipelineResponse,\n} from \"@azure/core-rest-pipeline\";\n\nimport type { GetTokenOptions } from \"@azure/core-auth\";\n\n/**\n * A set of constants used internally when processing requests.\n */\nconst Constants = {\n DefaultScope: \"/.default\",\n /**\n * Defines constants for use with HTTP headers.\n */\n HeaderConstants: {\n /**\n * The Authorization header.\n */\n AUTHORIZATION: \"authorization\",\n },\n};\n\nfunction isUuid(text: string): boolean {\n return /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/.test(\n text,\n );\n}\n\n/**\n * Defines a callback to handle auth challenge for Storage APIs.\n * This implements the bearer challenge process described here: https://learn.microsoft.com/rest/api/storageservices/authorize-with-azure-active-directory#bearer-challenge\n * Handling has specific features for storage that departs to the general AAD challenge docs.\n **/\nexport const authorizeRequestOnTenantChallenge: (\n challengeOptions: AuthorizeRequestOnChallengeOptions,\n) => Promise<boolean> = async (challengeOptions) => {\n const requestOptions = requestToOptions(challengeOptions.request);\n const challenge = getChallenge(challengeOptions.response);\n if (challenge) {\n const challengeInfo: Challenge = parseChallenge(challenge);\n const challengeScopes = buildScopes(challengeOptions, challengeInfo);\n const tenantId = extractTenantId(challengeInfo);\n if (!tenantId) {\n return false;\n }\n const accessToken = await challengeOptions.getAccessToken(challengeScopes, {\n ...requestOptions,\n tenantId,\n });\n\n if (!accessToken) {\n return false;\n }\n\n challengeOptions.request.headers.set(\n Constants.HeaderConstants.AUTHORIZATION,\n `${accessToken.tokenType ?? \"Bearer\"} ${accessToken.token}`,\n );\n return true;\n }\n return false;\n};\n\n/**\n * Extracts the tenant id from the challenge information\n * The tenant id is contained in the authorization_uri as the first\n * path part.\n */\nfunction extractTenantId(challengeInfo: Challenge): string | undefined {\n const parsedAuthUri = new URL(challengeInfo.authorization_uri);\n const pathSegments = parsedAuthUri.pathname.split(\"/\");\n const tenantId = pathSegments[1];\n if (tenantId && isUuid(tenantId)) {\n return tenantId;\n }\n return undefined;\n}\n\n/**\n * Builds the authentication scopes based on the information that comes in the\n * challenge information. Scopes url is present in the resource_id, if it is empty\n * we keep using the original scopes.\n */\nfunction buildScopes(\n challengeOptions: AuthorizeRequestOnChallengeOptions,\n challengeInfo: Challenge,\n): string[] {\n if (!challengeInfo.resource_id) {\n return challengeOptions.scopes;\n }\n\n const challengeScopes = new URL(challengeInfo.resource_id);\n challengeScopes.pathname = Constants.DefaultScope;\n let scope = challengeScopes.toString();\n if (scope === \"https://disk.azure.com/.default\") {\n // the extra slash is required by the service\n scope = \"https://disk.azure.com//.default\";\n }\n return [scope];\n}\n\n/**\n * We will retrieve the challenge only if the response status code was 401,\n * and if the response contained the header \"WWW-Authenticate\" with a non-empty value.\n */\nfunction getChallenge(response: PipelineResponse): string | undefined {\n const challenge = response.headers.get(\"WWW-Authenticate\");\n if (response.status === 401 && challenge) {\n return challenge;\n }\n return;\n}\n\n/**\n * Challenge structure\n */\ninterface Challenge {\n authorization_uri: string;\n resource_id?: string;\n}\n\n/**\n * Converts: `Bearer a=\"b\" c=\"d\"`.\n * Into: `[ { a: 'b', c: 'd' }]`.\n *\n * @internal\n */\nfunction parseChallenge(challenge: string): Challenge {\n const bearerChallenge = challenge.slice(\"Bearer \".length);\n const challengeParts = `${bearerChallenge.trim()} `.split(\" \").filter((x) => x);\n const keyValuePairs = challengeParts.map((keyValue) =>\n (([key, value]) => ({ [key]: value }))(keyValue.trim().split(\"=\")),\n );\n // Key-value pairs to plain object:\n return keyValuePairs.reduce((a, b) => ({ ...a, ...b }), {} as Challenge);\n}\n\n/**\n * Extracts the options form a Pipeline Request for later re-use\n */\nfunction requestToOptions(request: PipelineRequest): GetTokenOptions {\n return {\n abortSignal: request.abortSignal,\n requestOptions: {\n timeout: request.timeout,\n },\n tracingOptions: request.tracingOptions,\n };\n}\n"]}
1
+ {"version":3,"file":"authorizeRequestOnTenantChallenge.js","sourceRoot":"","sources":["../../src/authorizeRequestOnTenantChallenge.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC;;GAEG;AACH,MAAM,SAAS,GAAG;IAChB,YAAY,EAAE,WAAW;IACzB;;OAEG;IACH,eAAe,EAAE;QACf;;WAEG;QACH,aAAa,EAAE,eAAe;KA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AAE,EAAE,CAAC,CAAC,CAAC,CAAC;IAChF,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CACpD,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CACnE,CAAC;IACF,mCAAmC;IACnC,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,EAAe,CAAC,CAAC;AAC3E,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,OAAwB;IAChD,OAAO;QACL,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,cAAc,EAAE;YACd,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB;QACD,cAAc,EAAE,OAAO,CAAC,cAAc;KACvC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n AuthorizeRequestOnChallengeOptions,\n PipelineRequest,\n PipelineResponse,\n} from \"@azure/core-rest-pipeline\";\n\nimport type { GetTokenOptions } from \"@azure/core-auth\";\n\n/**\n * A set of constants used internally when processing requests.\n */\nconst Constants = {\n DefaultScope: \"/.default\",\n /**\n * Defines constants for use with HTTP headers.\n */\n HeaderConstants: {\n /**\n * The Authorization header.\n */\n AUTHORIZATION: \"authorization\",\n },\n};\n\nfunction isUuid(text: string): boolean {\n return /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/.test(\n text,\n );\n}\n\n/**\n * Defines a callback to handle auth challenge for Storage APIs.\n * This implements the bearer challenge process described here: https://learn.microsoft.com/rest/api/storageservices/authorize-with-azure-active-directory#bearer-challenge\n * Handling has specific features for storage that departs to the general AAD challenge docs.\n **/\nexport const authorizeRequestOnTenantChallenge: (\n challengeOptions: AuthorizeRequestOnChallengeOptions,\n) => Promise<boolean> = async (challengeOptions) => {\n const requestOptions = requestToOptions(challengeOptions.request);\n const challenge = getChallenge(challengeOptions.response);\n if (challenge) {\n const challengeInfo: Challenge = parseChallenge(challenge);\n const challengeScopes = buildScopes(challengeOptions, challengeInfo);\n const tenantId = extractTenantId(challengeInfo);\n if (!tenantId) {\n return false;\n }\n const accessToken = await challengeOptions.getAccessToken(challengeScopes, {\n ...requestOptions,\n tenantId,\n });\n\n if (!accessToken) {\n return false;\n }\n\n challengeOptions.request.headers.set(\n Constants.HeaderConstants.AUTHORIZATION,\n `${accessToken.tokenType ?? \"Bearer\"} ${accessToken.token}`,\n );\n return true;\n }\n return false;\n};\n\n/**\n * Extracts the tenant id from the challenge information\n * The tenant id is contained in the authorization_uri as the first\n * path part.\n */\nfunction extractTenantId(challengeInfo: Challenge): string | undefined {\n const parsedAuthUri = new URL(challengeInfo.authorization_uri);\n const pathSegments = parsedAuthUri.pathname.split(\"/\");\n const tenantId = pathSegments[1];\n if (tenantId && isUuid(tenantId)) {\n return tenantId;\n }\n return undefined;\n}\n\n/**\n * Builds the authentication scopes based on the information that comes in the\n * challenge information. Scopes url is present in the resource_id, if it is empty\n * we keep using the original scopes.\n */\nfunction buildScopes(\n challengeOptions: AuthorizeRequestOnChallengeOptions,\n challengeInfo: Challenge,\n): string[] {\n if (!challengeInfo.resource_id) {\n return challengeOptions.scopes;\n }\n\n const challengeScopes = new URL(challengeInfo.resource_id);\n let scope = new URL(Constants.DefaultScope, challengeScopes.origin).toString();\n if (scope === \"https://disk.azure.com/.default\") {\n // the extra slash is required by the service\n scope = \"https://disk.azure.com//.default\";\n }\n return [scope];\n}\n\n/**\n * We will retrieve the challenge only if the response status code was 401,\n * and if the response contained the header \"WWW-Authenticate\" with a non-empty value.\n */\nfunction getChallenge(response: PipelineResponse): string | undefined {\n const challenge = response.headers.get(\"WWW-Authenticate\");\n if (response.status === 401 && challenge) {\n return challenge;\n }\n return;\n}\n\n/**\n * Challenge structure\n */\ninterface Challenge {\n authorization_uri: string;\n resource_id?: string;\n}\n\n/**\n * Converts: `Bearer a=\"b\" c=\"d\"`.\n * Into: `[ { a: 'b', c: 'd' }]`.\n *\n * @internal\n */\nfunction parseChallenge(challenge: string): Challenge {\n const bearerChallenge = challenge.slice(\"Bearer \".length);\n const challengeParts = `${bearerChallenge.trim()} `.split(\" \").filter((x) => x);\n const keyValuePairs = challengeParts.map((keyValue) =>\n (([key, value]) => ({ [key]: value }))(keyValue.trim().split(\"=\")),\n );\n // Key-value pairs to plain object:\n return keyValuePairs.reduce((a, b) => ({ ...a, ...b }), {} as Challenge);\n}\n\n/**\n * Extracts the options form a Pipeline Request for later re-use\n */\nfunction requestToOptions(request: PipelineRequest): GetTokenOptions {\n return {\n abortSignal: request.abortSignal,\n requestOptions: {\n timeout: request.timeout,\n },\n tracingOptions: request.tracingOptions,\n };\n}\n"]}
@@ -6,7 +6,7 @@
6
6
  export declare function encodeString(value: string): string;
7
7
  /**
8
8
  * Encodes a byte array in base64 format.
9
- * @param value - the Uint8Aray to encode
9
+ * @param value - the Uint8Array to encode
10
10
  * @internal
11
11
  */
12
12
  export declare function encodeByteArray(value: Uint8Array): string;
@@ -6,22 +6,22 @@ exports.encodeString = encodeString;
6
6
  exports.encodeByteArray = encodeByteArray;
7
7
  exports.decodeString = decodeString;
8
8
  exports.decodeStringToString = decodeStringToString;
9
+ const core_util_1 = require("@azure/core-util");
9
10
  /**
10
11
  * Encodes a string in base64 format.
11
12
  * @param value - the string to encode
12
13
  * @internal
13
14
  */
14
15
  function encodeString(value) {
15
- return Buffer.from(value).toString("base64");
16
+ return (0, core_util_1.uint8ArrayToString)((0, core_util_1.stringToUint8Array)(value, "utf-8"), "base64");
16
17
  }
17
18
  /**
18
19
  * Encodes a byte array in base64 format.
19
- * @param value - the Uint8Aray to encode
20
+ * @param value - the Uint8Array to encode
20
21
  * @internal
21
22
  */
22
23
  function encodeByteArray(value) {
23
- const bufferValue = value instanceof Buffer ? value : Buffer.from(value.buffer);
24
- return bufferValue.toString("base64");
24
+ return (0, core_util_1.uint8ArrayToString)(value, "base64");
25
25
  }
26
26
  /**
27
27
  * Decodes a base64 string into a byte array.
@@ -29,7 +29,7 @@ function encodeByteArray(value) {
29
29
  * @internal
30
30
  */
31
31
  function decodeString(value) {
32
- return Buffer.from(value, "base64");
32
+ return (0, core_util_1.stringToUint8Array)(value, "base64");
33
33
  }
34
34
  /**
35
35
  * Decodes a base64 string into a string.
@@ -37,6 +37,6 @@ function decodeString(value) {
37
37
  * @internal
38
38
  */
39
39
  function decodeStringToString(value) {
40
- return Buffer.from(value, "base64").toString();
40
+ return (0, core_util_1.uint8ArrayToString)((0, core_util_1.stringToUint8Array)(value, "base64"), "utf-8");
41
41
  }
42
42
  //# sourceMappingURL=base64.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base64.js","sourceRoot":"","sources":["../../src/base64.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAOlC,oCAEC;AAOD,0CAGC;AAOD,oCAEC;AAOD,oDAEC;AAnCD;;;;GAIG;AACH,SAAgB,YAAY,CAAC,KAAa;IACxC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC/C,CAAC;AAED;;;;GAIG;AACH,SAAgB,eAAe,CAAC,KAAiB;IAC/C,MAAM,WAAW,GAAG,KAAK,YAAY,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAqB,CAAC,CAAC;IAC/F,OAAO,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACxC,CAAC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAAC,KAAa;IACxC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACtC,CAAC;AAED;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAChD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;AACjD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Encodes a string in base64 format.\n * @param value - the string to encode\n * @internal\n */\nexport function encodeString(value: string): string {\n return Buffer.from(value).toString(\"base64\");\n}\n\n/**\n * Encodes a byte array in base64 format.\n * @param value - the Uint8Aray to encode\n * @internal\n */\nexport function encodeByteArray(value: Uint8Array): string {\n const bufferValue = value instanceof Buffer ? value : Buffer.from(value.buffer as ArrayBuffer);\n return bufferValue.toString(\"base64\");\n}\n\n/**\n * Decodes a base64 string into a byte array.\n * @param value - the base64 string to decode\n * @internal\n */\nexport function decodeString(value: string): Uint8Array {\n return Buffer.from(value, \"base64\");\n}\n\n/**\n * Decodes a base64 string into a string.\n * @param value - the base64 string to decode\n * @internal\n */\nexport function decodeStringToString(value: string): string {\n return Buffer.from(value, \"base64\").toString();\n}\n"]}
1
+ {"version":3,"file":"base64.js","sourceRoot":"","sources":["../../src/base64.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AASlC,oCAEC;AAOD,0CAEC;AAOD,oCAEC;AAOD,oDAEC;AApCD,gDAA0E;AAE1E;;;;GAIG;AACH,SAAgB,YAAY,CAAC,KAAa;IACxC,OAAO,IAAA,8BAAkB,EAAC,IAAA,8BAAkB,EAAC,KAAK,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAC1E,CAAC;AAED;;;;GAIG;AACH,SAAgB,eAAe,CAAC,KAAiB;IAC/C,OAAO,IAAA,8BAAkB,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAAC,KAAa;IACxC,OAAO,IAAA,8BAAkB,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAChD,OAAO,IAAA,8BAAkB,EAAC,IAAA,8BAAkB,EAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AAC1E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { stringToUint8Array, uint8ArrayToString } from \"@azure/core-util\";\n\n/**\n * Encodes a string in base64 format.\n * @param value - the string to encode\n * @internal\n */\nexport function encodeString(value: string): string {\n return uint8ArrayToString(stringToUint8Array(value, \"utf-8\"), \"base64\");\n}\n\n/**\n * Encodes a byte array in base64 format.\n * @param value - the Uint8Array to encode\n * @internal\n */\nexport function encodeByteArray(value: Uint8Array): string {\n return uint8ArrayToString(value, \"base64\");\n}\n\n/**\n * Decodes a base64 string into a byte array.\n * @param value - the base64 string to decode\n * @internal\n */\nexport function decodeString(value: string): Uint8Array {\n return stringToUint8Array(value, \"base64\");\n}\n\n/**\n * Decodes a base64 string into a string.\n * @param value - the base64 string to decode\n * @internal\n */\nexport function decodeStringToString(value: string): string {\n return uint8ArrayToString(stringToUint8Array(value, \"base64\"), \"utf-8\");\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  export { createSerializer, MapperTypeNames } from "./serializer.js";
2
- export { ServiceClient, ServiceClientOptions } from "./serviceClient.js";
3
- export { createClientPipeline, InternalClientPipelineOptions } from "./pipeline.js";
4
- export { OperationSpec, OperationArguments, OperationOptions, OperationResponseMap, OperationParameter, OperationQueryParameter, OperationURLParameter, Serializer, BaseMapper, Mapper, MapperType, SimpleMapperType, EnumMapper, EnumMapperType, SequenceMapper, SequenceMapperType, DictionaryMapper, DictionaryMapperType, CompositeMapper, CompositeMapperType, MapperConstraints, OperationRequest, OperationRequestOptions, OperationRequestInfo, QueryCollectionFormat, ParameterPath, FullOperationResponse, PolymorphicDiscriminator, SpanConfig, XML_ATTRKEY, XML_CHARKEY, XmlOptions, SerializerOptions, RawResponseCallback, CommonClientOptions, AdditionalPolicyConfig, } from "./interfaces.js";
5
- export { deserializationPolicy, deserializationPolicyName, DeserializationPolicyOptions, DeserializationContentTypes, } from "./deserializationPolicy.js";
6
- export { serializationPolicy, serializationPolicyName, SerializationPolicyOptions, } from "./serializationPolicy.js";
2
+ export { ServiceClient, type ServiceClientOptions } from "./serviceClient.js";
3
+ export { createClientPipeline, type InternalClientPipelineOptions } from "./pipeline.js";
4
+ export { type OperationSpec, type OperationArguments, type OperationOptions, type OperationResponseMap, type OperationParameter, type OperationQueryParameter, type OperationURLParameter, type Serializer, type BaseMapper, type Mapper, type MapperType, type SimpleMapperType, type EnumMapper, type EnumMapperType, type SequenceMapper, type SequenceMapperType, type DictionaryMapper, type DictionaryMapperType, type CompositeMapper, type CompositeMapperType, type MapperConstraints, type OperationRequest, type OperationRequestOptions, type OperationRequestInfo, type QueryCollectionFormat, type ParameterPath, type FullOperationResponse, type PolymorphicDiscriminator, type SpanConfig, XML_ATTRKEY, XML_CHARKEY, type XmlOptions, type SerializerOptions, type RawResponseCallback, type CommonClientOptions, type AdditionalPolicyConfig, } from "./interfaces.js";
5
+ export { deserializationPolicy, deserializationPolicyName, type DeserializationPolicyOptions, type DeserializationContentTypes, } from "./deserializationPolicy.js";
6
+ export { serializationPolicy, serializationPolicyName, type SerializationPolicyOptions, } from "./serializationPolicy.js";
7
7
  export { authorizeRequestOnClaimChallenge } from "./authorizeRequestOnClaimChallenge.js";
8
8
  export { authorizeRequestOnTenantChallenge } from "./authorizeRequestOnTenantChallenge.js";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAAoE;AAA3D,iHAAA,gBAAgB,OAAA;AAAE,gHAAA,eAAe,OAAA;AAC1C,uDAAyE;AAAhE,iHAAA,aAAa,OAAA;AACtB,6CAAoF;AAA3E,mHAAA,oBAAoB,OAAA;AAC7B,iDAqCyB;AAPvB,4GAAA,WAAW,OAAA;AACX,4GAAA,WAAW,OAAA;AAOb,uEAKoC;AAJlC,iIAAA,qBAAqB,OAAA;AACrB,qIAAA,yBAAyB,OAAA;AAI3B,mEAIkC;AAHhC,6HAAA,mBAAmB,OAAA;AACnB,iIAAA,uBAAuB,OAAA;AAGzB,6FAAyF;AAAhF,uJAAA,gCAAgC,OAAA;AACzC,+FAA2F;AAAlF,yJAAA,iCAAiC,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { createSerializer, MapperTypeNames } from \"./serializer.js\";\nexport { ServiceClient, ServiceClientOptions } from \"./serviceClient.js\";\nexport { createClientPipeline, InternalClientPipelineOptions } from \"./pipeline.js\";\nexport {\n OperationSpec,\n OperationArguments,\n OperationOptions,\n OperationResponseMap,\n OperationParameter,\n OperationQueryParameter,\n OperationURLParameter,\n Serializer,\n BaseMapper,\n Mapper,\n MapperType,\n SimpleMapperType,\n EnumMapper,\n EnumMapperType,\n SequenceMapper,\n SequenceMapperType,\n DictionaryMapper,\n DictionaryMapperType,\n CompositeMapper,\n CompositeMapperType,\n MapperConstraints,\n OperationRequest,\n OperationRequestOptions,\n OperationRequestInfo,\n QueryCollectionFormat,\n ParameterPath,\n FullOperationResponse,\n PolymorphicDiscriminator,\n SpanConfig,\n XML_ATTRKEY,\n XML_CHARKEY,\n XmlOptions,\n SerializerOptions,\n RawResponseCallback,\n CommonClientOptions,\n AdditionalPolicyConfig,\n} from \"./interfaces.js\";\nexport {\n deserializationPolicy,\n deserializationPolicyName,\n DeserializationPolicyOptions,\n DeserializationContentTypes,\n} from \"./deserializationPolicy.js\";\nexport {\n serializationPolicy,\n serializationPolicyName,\n SerializationPolicyOptions,\n} from \"./serializationPolicy.js\";\nexport { authorizeRequestOnClaimChallenge } from \"./authorizeRequestOnClaimChallenge.js\";\nexport { authorizeRequestOnTenantChallenge } from \"./authorizeRequestOnTenantChallenge.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAAoE;AAA3D,iHAAA,gBAAgB,OAAA;AAAE,gHAAA,eAAe,OAAA;AAC1C,uDAA8E;AAArE,iHAAA,aAAa,OAAA;AACtB,6CAAyF;AAAhF,mHAAA,oBAAoB,OAAA;AAC7B,iDAqCyB;AAPvB,4GAAA,WAAW,OAAA;AACX,4GAAA,WAAW,OAAA;AAOb,uEAKoC;AAJlC,iIAAA,qBAAqB,OAAA;AACrB,qIAAA,yBAAyB,OAAA;AAI3B,mEAIkC;AAHhC,6HAAA,mBAAmB,OAAA;AACnB,iIAAA,uBAAuB,OAAA;AAGzB,6FAAyF;AAAhF,uJAAA,gCAAgC,OAAA;AACzC,+FAA2F;AAAlF,yJAAA,iCAAiC,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { createSerializer, MapperTypeNames } from \"./serializer.js\";\nexport { ServiceClient, type ServiceClientOptions } from \"./serviceClient.js\";\nexport { createClientPipeline, type InternalClientPipelineOptions } from \"./pipeline.js\";\nexport {\n type OperationSpec,\n type OperationArguments,\n type OperationOptions,\n type OperationResponseMap,\n type OperationParameter,\n type OperationQueryParameter,\n type OperationURLParameter,\n type Serializer,\n type BaseMapper,\n type Mapper,\n type MapperType,\n type SimpleMapperType,\n type EnumMapper,\n type EnumMapperType,\n type SequenceMapper,\n type SequenceMapperType,\n type DictionaryMapper,\n type DictionaryMapperType,\n type CompositeMapper,\n type CompositeMapperType,\n type MapperConstraints,\n type OperationRequest,\n type OperationRequestOptions,\n type OperationRequestInfo,\n type QueryCollectionFormat,\n type ParameterPath,\n type FullOperationResponse,\n type PolymorphicDiscriminator,\n type SpanConfig,\n XML_ATTRKEY,\n XML_CHARKEY,\n type XmlOptions,\n type SerializerOptions,\n type RawResponseCallback,\n type CommonClientOptions,\n type AdditionalPolicyConfig,\n} from \"./interfaces.js\";\nexport {\n deserializationPolicy,\n deserializationPolicyName,\n type DeserializationPolicyOptions,\n type DeserializationContentTypes,\n} from \"./deserializationPolicy.js\";\nexport {\n serializationPolicy,\n serializationPolicyName,\n type SerializationPolicyOptions,\n} from \"./serializationPolicy.js\";\nexport { authorizeRequestOnClaimChallenge } from \"./authorizeRequestOnClaimChallenge.js\";\nexport { authorizeRequestOnTenantChallenge } from \"./authorizeRequestOnTenantChallenge.js\";\n"]}
@@ -11,8 +11,7 @@ const serializer_js_1 = require("./serializer.js");
11
11
  */
12
12
  function getStreamingResponseStatusCodes(operationSpec) {
13
13
  const result = new Set();
14
- for (const statusCode in operationSpec.responses) {
15
- const operationResponse = operationSpec.responses[statusCode];
14
+ for (const [statusCode, operationResponse] of Object.entries(operationSpec.responses)) {
16
15
  if (operationResponse.bodyMapper &&
17
16
  operationResponse.bodyMapper.type.name === serializer_js_1.MapperTypeNames.Stream) {
18
17
  result.add(Number(statusCode));
@@ -1 +1 @@
1
- {"version":3,"file":"interfaceHelpers.js","sourceRoot":"","sources":["../../src/interfaceHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AASlC,0EAYC;AAQD,gEAWC;AArCD,mDAAkD;AAElD;;;GAGG;AACH,SAAgB,+BAA+B,CAAC,aAA4B;IAC1E,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;IACjC,KAAK,MAAM,UAAU,IAAI,aAAa,CAAC,SAAS,EAAE,CAAC;QACjD,MAAM,iBAAiB,GAAG,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAC9D,IACE,iBAAiB,CAAC,UAAU;YAC5B,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,KAAK,+BAAe,CAAC,MAAM,EACjE,CAAC;YACD,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;GAKG;AACH,SAAgB,0BAA0B,CAAC,SAA6B;IACtE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC5C,IAAI,MAAc,CAAC;IACnB,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACtC,MAAM,GAAG,aAAa,CAAC;IACzB,CAAC;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QACxC,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;SAAM,CAAC;QACN,MAAM,GAAG,MAAM,CAAC,cAAe,CAAC;IAClC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationParameter, OperationSpec } from \"./interfaces.js\";\nimport { MapperTypeNames } from \"./serializer.js\";\n\n/**\n * Gets the list of status codes for streaming responses.\n * @internal\n */\nexport function getStreamingResponseStatusCodes(operationSpec: OperationSpec): Set<number> {\n const result = new Set<number>();\n for (const statusCode in operationSpec.responses) {\n const operationResponse = operationSpec.responses[statusCode];\n if (\n operationResponse.bodyMapper &&\n operationResponse.bodyMapper.type.name === MapperTypeNames.Stream\n ) {\n result.add(Number(statusCode));\n }\n }\n return result;\n}\n\n/**\n * Get the path to this parameter's value as a dotted string (a.b.c).\n * @param parameter - The parameter to get the path string for.\n * @returns The path to this parameter's value as a dotted string.\n * @internal\n */\nexport function getPathStringFromParameter(parameter: OperationParameter): string {\n const { parameterPath, mapper } = parameter;\n let result: string;\n if (typeof parameterPath === \"string\") {\n result = parameterPath;\n } else if (Array.isArray(parameterPath)) {\n result = parameterPath.join(\".\");\n } else {\n result = mapper.serializedName!;\n }\n return result;\n}\n"]}
1
+ {"version":3,"file":"interfaceHelpers.js","sourceRoot":"","sources":["../../src/interfaceHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AASlC,0EAWC;AAQD,gEAWC;AApCD,mDAAkD;AAElD;;;GAGG;AACH,SAAgB,+BAA+B,CAAC,aAA4B;IAC1E,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;IACjC,KAAK,MAAM,CAAC,UAAU,EAAE,iBAAiB,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE,CAAC;QACtF,IACE,iBAAiB,CAAC,UAAU;YAC5B,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,KAAK,+BAAe,CAAC,MAAM,EACjE,CAAC;YACD,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;GAKG;AACH,SAAgB,0BAA0B,CAAC,SAA6B;IACtE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC5C,IAAI,MAAc,CAAC;IACnB,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACtC,MAAM,GAAG,aAAa,CAAC;IACzB,CAAC;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QACxC,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;SAAM,CAAC;QACN,MAAM,GAAG,MAAM,CAAC,cAAe,CAAC;IAClC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationParameter, OperationSpec } from \"./interfaces.js\";\nimport { MapperTypeNames } from \"./serializer.js\";\n\n/**\n * Gets the list of status codes for streaming responses.\n * @internal\n */\nexport function getStreamingResponseStatusCodes(operationSpec: OperationSpec): Set<number> {\n const result = new Set<number>();\n for (const [statusCode, operationResponse] of Object.entries(operationSpec.responses)) {\n if (\n operationResponse.bodyMapper &&\n operationResponse.bodyMapper.type.name === MapperTypeNames.Stream\n ) {\n result.add(Number(statusCode));\n }\n }\n return result;\n}\n\n/**\n * Get the path to this parameter's value as a dotted string (a.b.c).\n * @param parameter - The parameter to get the path string for.\n * @returns The path to this parameter's value as a dotted string.\n * @internal\n */\nexport function getPathStringFromParameter(parameter: OperationParameter): string {\n const { parameterPath, mapper } = parameter;\n let result: string;\n if (typeof parameterPath === \"string\") {\n result = parameterPath;\n } else if (Array.isArray(parameterPath)) {\n result = parameterPath.join(\".\");\n } else {\n result = mapper.serializedName!;\n }\n return result;\n}\n"]}
@@ -4,7 +4,7 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getOperationArgumentValueFromParameter = getOperationArgumentValueFromParameter;
6
6
  exports.getOperationRequestInfo = getOperationRequestInfo;
7
- const state_js_1 = require("./state.js");
7
+ const state_1 = require("./state-cjs.js");
8
8
  /**
9
9
  * @internal
10
10
  * Retrieves the value to use for a given operation argument
@@ -44,9 +44,8 @@ function getOperationArgumentValueFromParameter(operationArguments, parameter, f
44
44
  if (parameterMapper.required) {
45
45
  value = {};
46
46
  }
47
- for (const propertyName in parameterPath) {
47
+ for (const [propertyName, propertyPath] of Object.entries(parameterPath)) {
48
48
  const propertyMapper = parameterMapper.type.modelProperties[propertyName];
49
- const propertyPath = parameterPath[propertyName];
50
49
  const propertyValue = getOperationArgumentValueFromParameter(operationArguments, {
51
50
  parameterPath: propertyPath,
52
51
  mapper: propertyMapper,
@@ -55,7 +54,12 @@ function getOperationArgumentValueFromParameter(operationArguments, parameter, f
55
54
  if (!value) {
56
55
  value = {};
57
56
  }
58
- value[propertyName] = propertyValue;
57
+ Object.defineProperty(value, propertyName, {
58
+ value: propertyValue,
59
+ enumerable: true,
60
+ configurable: true,
61
+ writable: true,
62
+ });
59
63
  }
60
64
  }
61
65
  }
@@ -88,10 +92,10 @@ function getOperationRequestInfo(request) {
88
92
  if (hasOriginalRequest(request)) {
89
93
  return getOperationRequestInfo(request[originalRequestSymbol]);
90
94
  }
91
- let info = state_js_1.state.operationRequestMap.get(request);
95
+ let info = state_1.state.operationRequestMap.get(request);
92
96
  if (!info) {
93
97
  info = {};
94
- state_js_1.state.operationRequestMap.set(request, info);
98
+ state_1.state.operationRequestMap.set(request, info);
95
99
  }
96
100
  return info;
97
101
  }
@@ -1 +1 @@
1
- {"version":3,"file":"operationHelpers.js","sourceRoot":"","sources":["../../src/operationHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,wFA0DC;AAqCD,0DAWC;AApHD,yCAAmC;AAEnC;;;;;;;GAOG;AACH,SAAgB,sCAAsC,CACpD,kBAAsC,EACtC,SAA6B,EAC7B,cAAiD;IAEjD,IAAI,aAAa,GAAG,SAAS,CAAC,aAAa,CAAC;IAC5C,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,CAAC;IACzC,IAAI,KAAU,CAAC;IACf,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACtC,aAAa,GAAG,CAAC,aAAa,CAAC,CAAC;IAClC,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QACjC,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,IAAI,eAAe,CAAC,UAAU,EAAE,CAAC;gBAC/B,KAAK,GAAG,eAAe,CAAC,YAAY,CAAC;YACvC,CAAC;iBAAM,CAAC;gBACN,IAAI,oBAAoB,GAAG,4BAA4B,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC;gBAE3F,IAAI,CAAC,oBAAoB,CAAC,aAAa,IAAI,cAAc,EAAE,CAAC;oBAC1D,oBAAoB,GAAG,4BAA4B,CAAC,cAAc,EAAE,aAAa,CAAC,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AAE,EAAE,CAAC,EAAE,CAAC;QACrC,MAAM,iBAAiB,GAAW,aAAa,CAAC,CAAC,CAAC,CAAC;QACnD,8EAA8E;QAC9E,IAAI,MAAM,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAAC;YAC1C,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;QACrC,CAAC;aAAM,CAAC;YACN,MAAM;QACR,CAAC;IACH,CAAC;IACD,IAAI,CAAC,KAAK,aAAa,CAAC,MAAM,EAAE,CAAC;QAC/B,MAAM,CAAC,aAAa,GAAG,MAAM,CAAC;QAC9B,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;IAC9B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;AAEhF,SAAS,kBAAkB,CACzB,OAAyB;IAEzB,OAAO,qBAAqB,IAAI,OAAO,CAAC;AAC1C,CAAC;AAED,SAAgB,uBAAuB,CAAC,OAAyB;IAC/D,IAAI,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC;QAChC,OAAO,uBAAuB,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;IACjE,CAAC;IACD,IAAI,IAAI,GAAG,gBAAK,CAAC,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAElD,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,IAAI,GAAG,EAAE,CAAC;QACV,gBAAK,CAAC,mBAAmB,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n CompositeMapper,\n Mapper,\n OperationArguments,\n OperationParameter,\n OperationRequest,\n OperationRequestInfo,\n ParameterPath,\n} from \"./interfaces.js\";\n\nimport { state } from \"./state.js\";\n\n/**\n * @internal\n * Retrieves the value to use for a given operation argument\n * @param operationArguments - The arguments passed from the generated client\n * @param parameter - The parameter description\n * @param fallbackObject - If something isn't found in the arguments bag, look here.\n * Generally used to look at the service client properties.\n */\nexport function getOperationArgumentValueFromParameter(\n operationArguments: OperationArguments,\n parameter: OperationParameter,\n fallbackObject?: { [parameterName: string]: any },\n): any {\n let parameterPath = parameter.parameterPath;\n const parameterMapper = parameter.mapper;\n let value: any;\n if (typeof parameterPath === \"string\") {\n parameterPath = [parameterPath];\n }\n if (Array.isArray(parameterPath)) {\n if (parameterPath.length > 0) {\n if (parameterMapper.isConstant) {\n value = parameterMapper.defaultValue;\n } else {\n let propertySearchResult = getPropertyFromParameterPath(operationArguments, parameterPath);\n\n if (!propertySearchResult.propertyFound && fallbackObject) {\n propertySearchResult = getPropertyFromParameterPath(fallbackObject, parameterPath);\n }\n\n let useDefaultValue = false;\n if (!propertySearchResult.propertyFound) {\n useDefaultValue =\n parameterMapper.required ||\n (parameterPath[0] === \"options\" && parameterPath.length === 2);\n }\n value = useDefaultValue ? parameterMapper.defaultValue : propertySearchResult.propertyValue;\n }\n }\n } else {\n if (parameterMapper.required) {\n value = {};\n }\n\n for (const propertyName in parameterPath) {\n const propertyMapper: Mapper = (parameterMapper as CompositeMapper).type.modelProperties![\n propertyName\n ];\n const propertyPath: ParameterPath = parameterPath[propertyName];\n const propertyValue: any = getOperationArgumentValueFromParameter(\n operationArguments,\n {\n parameterPath: propertyPath,\n mapper: propertyMapper,\n },\n fallbackObject,\n );\n if (propertyValue !== undefined) {\n if (!value) {\n value = {};\n }\n value[propertyName] = propertyValue;\n }\n }\n }\n return value;\n}\n\ninterface PropertySearchResult {\n propertyValue?: any;\n propertyFound: boolean;\n}\n\nfunction getPropertyFromParameterPath(\n parent: { [parameterName: string]: any },\n parameterPath: string[],\n): PropertySearchResult {\n const result: PropertySearchResult = { propertyFound: false };\n let i = 0;\n for (; i < parameterPath.length; ++i) {\n const parameterPathPart: string = parameterPath[i];\n // Make sure to check inherited properties too, so don't use hasOwnProperty().\n if (parent && parameterPathPart in parent) {\n parent = parent[parameterPathPart];\n } else {\n break;\n }\n }\n if (i === parameterPath.length) {\n result.propertyValue = parent;\n result.propertyFound = true;\n }\n return result;\n}\n\nconst originalRequestSymbol = Symbol.for(\"@azure/core-client original request\");\n\nfunction hasOriginalRequest(\n request: OperationRequest,\n): request is OperationRequest & { [originalRequestSymbol]: OperationRequest } {\n return originalRequestSymbol in request;\n}\n\nexport function getOperationRequestInfo(request: OperationRequest): OperationRequestInfo {\n if (hasOriginalRequest(request)) {\n return getOperationRequestInfo(request[originalRequestSymbol]);\n }\n let info = state.operationRequestMap.get(request);\n\n if (!info) {\n info = {};\n state.operationRequestMap.set(request, info);\n }\n return info;\n}\n"]}
1
+ {"version":3,"file":"operationHelpers.js","sourceRoot":"","sources":["../../src/operationHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqBlC,wFA8DC;AAqCD,0DAWC;AAxHD,2CAAwC;AAExC;;;;;;;GAOG;AACH,SAAgB,sCAAsC,CACpD,kBAAsC,EACtC,SAA6B,EAC7B,cAAiD;IAEjD,IAAI,aAAa,GAAG,SAAS,CAAC,aAAa,CAAC;IAC5C,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,CAAC;IACzC,IAAI,KAAU,CAAC;IACf,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACtC,aAAa,GAAG,CAAC,aAAa,CAAC,CAAC;IAClC,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QACjC,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,IAAI,eAAe,CAAC,UAAU,EAAE,CAAC;gBAC/B,KAAK,GAAG,eAAe,CAAC,YAAY,CAAC;YACvC,CAAC;iBAAM,CAAC;gBACN,IAAI,oBAAoB,GAAG,4BAA4B,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC;gBA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CAAC;IAC/C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n CompositeMapper,\n Mapper,\n OperationArguments,\n OperationParameter,\n OperationRequest,\n OperationRequestInfo,\n} from \"./interfaces.js\";\n\nimport { state } from \"#platform/state\";\n\n/**\n * @internal\n * Retrieves the value to use for a given operation argument\n * @param operationArguments - The arguments passed from the generated client\n * @param parameter - The parameter description\n * @param fallbackObject - If something isn't found in the arguments bag, look here.\n * Generally used to look at the service client properties.\n */\nexport function getOperationArgumentValueFromParameter(\n operationArguments: OperationArguments,\n parameter: OperationParameter,\n fallbackObject?: { [parameterName: string]: any },\n): any {\n let parameterPath = parameter.parameterPath;\n const parameterMapper = parameter.mapper;\n let value: any;\n if (typeof parameterPath === \"string\") {\n parameterPath = [parameterPath];\n }\n if (Array.isArray(parameterPath)) {\n if (parameterPath.length > 0) {\n if (parameterMapper.isConstant) {\n value = parameterMapper.defaultValue;\n } else {\n let propertySearchResult = getPropertyFromParameterPath(operationArguments, parameterPath);\n\n if (!propertySearchResult.propertyFound && fallbackObject) {\n propertySearchResult = getPropertyFromParameterPath(fallbackObject, parameterPath);\n }\n\n let useDefaultValue = false;\n if (!propertySearchResult.propertyFound) {\n useDefaultValue =\n parameterMapper.required ||\n (parameterPath[0] === \"options\" && parameterPath.length === 2);\n }\n value = useDefaultValue ? parameterMapper.defaultValue : propertySearchResult.propertyValue;\n }\n }\n } else {\n if (parameterMapper.required) {\n value = {};\n }\n\n for (const [propertyName, propertyPath] of Object.entries(parameterPath)) {\n const propertyMapper: Mapper = (parameterMapper as CompositeMapper).type.modelProperties![\n propertyName\n ];\n const propertyValue: any = getOperationArgumentValueFromParameter(\n operationArguments,\n {\n parameterPath: propertyPath,\n mapper: propertyMapper,\n },\n fallbackObject,\n );\n if (propertyValue !== undefined) {\n if (!value) {\n value = {};\n }\n Object.defineProperty(value, propertyName, {\n value: propertyValue,\n enumerable: true,\n configurable: true,\n writable: true,\n });\n }\n }\n }\n return value;\n}\n\ninterface PropertySearchResult {\n propertyValue?: any;\n propertyFound: boolean;\n}\n\nfunction getPropertyFromParameterPath(\n parent: { [parameterName: string]: any },\n parameterPath: string[],\n): PropertySearchResult {\n const result: PropertySearchResult = { propertyFound: false };\n let i = 0;\n for (; i < parameterPath.length; ++i) {\n const parameterPathPart: string = parameterPath[i];\n // Make sure to check inherited properties too, so don't use hasOwnProperty().\n if (parent && parameterPathPart in parent) {\n parent = parent[parameterPathPart];\n } else {\n break;\n }\n }\n if (i === parameterPath.length) {\n result.propertyValue = parent;\n result.propertyFound = true;\n }\n return result;\n}\n\nconst originalRequestSymbol = Symbol.for(\"@azure/core-client original request\");\n\nfunction hasOriginalRequest(\n request: OperationRequest,\n): request is OperationRequest & { [originalRequestSymbol]: OperationRequest } {\n return originalRequestSymbol in request;\n}\n\nexport function getOperationRequestInfo(request: OperationRequest): OperationRequestInfo {\n if (hasOriginalRequest(request)) {\n return getOperationRequestInfo(request[originalRequestSymbol]);\n }\n let info = state.operationRequestMap.get(request);\n\n if (!info) {\n info = {};\n state.operationRequestMap.set(request, info);\n }\n return info;\n}\n"]}
@@ -22,7 +22,7 @@ function serializationPolicy(options = {}) {
22
22
  const stringifyXML = options.stringifyXML;
23
23
  return {
24
24
  name: exports.serializationPolicyName,
25
- async sendRequest(request, next) {
25
+ sendRequest(request, next) {
26
26
  const operationInfo = (0, operationHelpers_js_1.getOperationRequestInfo)(request);
27
27
  const operationSpec = operationInfo?.operationSpec;
28
28
  const operationArguments = operationInfo?.operationArguments;
@@ -1 +1 @@
1
- {"version":3,"file":"serializationPolicy.js","sourceRoot":"","sources":["../../src/serializationPolicy.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA4ClC,kDAgBC;AAKD,4CAmCC;AAKD,oDAuHC;AArND,mDAA2D;AAE3D,+DAG+B;AAC/B,mDAAkD;AAClD,+DAAmE;AAEnE;;GAEG;AAC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,YAAY,EAAE,CAAC;QACtC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC;IAChC,CAAC;IAED,MAAM,MAAM,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC;IACtC,MAAM,CAAC,2BAAW,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1D,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n DictionaryMapper,\n OperationArguments,\n OperationRequest,\n OperationSpec,\n RequiredSerializerOptions,\n SerializerOptions,\n XmlOptions,\n} from \"./interfaces.js\";\nimport { XML_ATTRKEY, XML_CHARKEY } from \"./interfaces.js\";\nimport type { PipelinePolicy, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport {\n getOperationArgumentValueFromParameter,\n getOperationRequestInfo,\n} from \"./operationHelpers.js\";\nimport { MapperTypeNames } from \"./serializer.js\";\nimport { getPathStringFromParameter } from \"./interfaceHelpers.js\";\n\n/**\n * The programmatic identifier of the serializationPolicy.\n */\nexport const serializationPolicyName = \"serializationPolicy\";\n\n/**\n * Options to configure API request serialization.\n */\nexport interface SerializationPolicyOptions {\n /**\n * A function that is able to write XML. Required for XML support.\n */\n stringifyXML?: (obj: any, opts?: XmlOptions) => string;\n\n /**\n * Configures behavior of xml parser and builder.\n */\n serializerOptions?: SerializerOptions;\n}\n\n/**\n * This policy handles assembling the request body and headers using\n * an OperationSpec and OperationArguments on the request.\n */\nexport function serializationPolicy(options: SerializationPolicyOptions = {}): PipelinePolicy {\n const stringifyXML = options.stringifyXML;\n\n return {\n name: serializationPolicyName,\n async sendRequest(request: OperationRequest, next: SendRequest): Promise<PipelineResponse> {\n const operationInfo = getOperationRequestInfo(request);\n const operationSpec = operationInfo?.operationSpec;\n const operationArguments = operationInfo?.operationArguments;\n if (operationSpec && operationArguments) {\n serializeHeaders(request, operationArguments, operationSpec);\n serializeRequestBody(request, operationArguments, operationSpec, stringifyXML);\n }\n return next(request);\n },\n };\n}\n\n/**\n * @internal\n */\nexport function serializeHeaders(\n request: OperationRequest,\n operationArguments: OperationArguments,\n operationSpec: OperationSpec,\n): void {\n if (operationSpec.headerParameters) {\n for (const headerParameter of operationSpec.headerParameters) {\n let headerValue = getOperationArgumentValueFromParameter(operationArguments, headerParameter);\n if ((headerValue !== null && headerValue !== undefined) || headerParameter.mapper.required) {\n headerValue = operationSpec.serializer.serialize(\n headerParameter.mapper,\n headerValue,\n getPathStringFromParameter(headerParameter),\n );\n const headerCollectionPrefix = (headerParameter.mapper as DictionaryMapper)\n .headerCollectionPrefix;\n if (headerCollectionPrefix) {\n for (const key of Object.keys(headerValue)) {\n request.headers.set(headerCollectionPrefix + key, headerValue[key]);\n }\n } else {\n request.headers.set(\n headerParameter.mapper.serializedName || getPathStringFromParameter(headerParameter),\n headerValue,\n );\n }\n }\n }\n }\n const customHeaders = operationArguments.options?.requestOptions?.customHeaders;\n if (customHeaders) {\n for (const customHeaderName of Object.keys(customHeaders)) {\n request.headers.set(customHeaderName, customHeaders[customHeaderName]);\n }\n }\n}\n\n/**\n * @internal\n */\nexport function serializeRequestBody(\n request: OperationRequest,\n operationArguments: OperationArguments,\n operationSpec: OperationSpec,\n stringifyXML: (obj: any, opts?: XmlOptions) => string = function () {\n throw new Error(\"XML serialization unsupported!\");\n },\n): void {\n const serializerOptions = operationArguments.options?.serializerOptions;\n const updatedOptions: RequiredSerializerOptions = {\n xml: {\n rootName: serializerOptions?.xml.rootName ?? \"\",\n includeRoot: serializerOptions?.xml.includeRoot ?? false,\n xmlCharKey: serializerOptions?.xml.xmlCharKey ?? XML_CHARKEY,\n },\n };\n\n const xmlCharKey = updatedOptions.xml.xmlCharKey;\n if (operationSpec.requestBody && operationSpec.requestBody.mapper) {\n request.body = getOperationArgumentValueFromParameter(\n operationArguments,\n operationSpec.requestBody,\n );\n\n const bodyMapper = operationSpec.requestBody.mapper;\n const {\n required,\n serializedName,\n xmlName,\n xmlElementName,\n xmlNamespace,\n xmlNamespacePrefix,\n nullable,\n } = bodyMapper;\n const typeName = bodyMapper.type.name;\n\n try {\n if (\n (request.body !== undefined && request.body !== null) ||\n (nullable && request.body === null) ||\n required\n ) {\n const requestBodyParameterPathString: string = getPathStringFromParameter(\n operationSpec.requestBody,\n );\n request.body = operationSpec.serializer.serialize(\n bodyMapper,\n request.body,\n requestBodyParameterPathString,\n updatedOptions,\n );\n\n const isStream = typeName === MapperTypeNames.Stream;\n\n if (operationSpec.isXML) {\n const xmlnsKey = xmlNamespacePrefix ? `xmlns:${xmlNamespacePrefix}` : \"xmlns\";\n const value = getXmlValueWithNamespace(\n xmlNamespace,\n xmlnsKey,\n typeName,\n request.body,\n updatedOptions,\n );\n\n if (typeName === MapperTypeNames.Sequence) {\n request.body = stringifyXML(\n prepareXMLRootList(\n value,\n xmlElementName || xmlName || serializedName!,\n xmlnsKey,\n xmlNamespace,\n ),\n { rootName: xmlName || serializedName, xmlCharKey },\n );\n } else if (!isStream) {\n request.body = stringifyXML(value, {\n rootName: xmlName || serializedName,\n xmlCharKey,\n });\n }\n } else if (\n typeName === MapperTypeNames.String &&\n (operationSpec.contentType?.match(\"text/plain\") || operationSpec.mediaType === \"text\")\n ) {\n // the String serializer has validated that request body is a string\n // so just send the string.\n return;\n } else if (!isStream) {\n request.body = JSON.stringify(request.body);\n }\n }\n } catch (error: any) {\n throw new Error(\n `Error \"${error.message}\" occurred in serializing the payload - ${JSON.stringify(\n serializedName,\n undefined,\n \" \",\n )}.`,\n );\n }\n } else if (operationSpec.formDataParameters && operationSpec.formDataParameters.length > 0) {\n request.formData = {};\n for (const formDataParameter of operationSpec.formDataParameters) {\n const formDataParameterValue = getOperationArgumentValueFromParameter(\n operationArguments,\n formDataParameter,\n );\n if (formDataParameterValue !== undefined && formDataParameterValue !== null) {\n const formDataParameterPropertyName: string =\n formDataParameter.mapper.serializedName || getPathStringFromParameter(formDataParameter);\n request.formData[formDataParameterPropertyName] = operationSpec.serializer.serialize(\n formDataParameter.mapper,\n formDataParameterValue,\n getPathStringFromParameter(formDataParameter),\n updatedOptions,\n );\n }\n }\n }\n}\n\n/**\n * Adds an xml namespace to the xml serialized object if needed, otherwise it just returns the value itself\n */\nfunction getXmlValueWithNamespace(\n xmlNamespace: string | undefined,\n xmlnsKey: string,\n typeName: string,\n serializedValue: any,\n options: RequiredSerializerOptions,\n): any {\n // Composite and Sequence schemas already got their root namespace set during serialization\n // We just need to add xmlns to the other schema types\n if (xmlNamespace && ![\"Composite\", \"Sequence\", \"Dictionary\"].includes(typeName)) {\n const result: any = {};\n result[options.xml.xmlCharKey] = serializedValue;\n result[XML_ATTRKEY] = { [xmlnsKey]: xmlNamespace };\n return result;\n }\n\n return serializedValue;\n}\n\nfunction prepareXMLRootList(\n obj: any,\n elementName: string,\n xmlNamespaceKey?: string,\n xmlNamespace?: string,\n): { [key: string]: any[] } {\n if (!Array.isArray(obj)) {\n obj = [obj];\n }\n if (!xmlNamespaceKey || !xmlNamespace) {\n return { [elementName]: obj };\n }\n\n const result = { [elementName]: obj };\n result[XML_ATTRKEY] = { [xmlNamespaceKey]: xmlNamespace };\n return result;\n}\n"]}
1
+ {"version":3,"file":"serializationPolicy.js","sourceRoot":"","sources":["../../src/serializationPolicy.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA4ClC,kDAgBC;AAKD,4CAmCC;AAKD,oDAuHC;AArND,mDAA2D;AAE3D,+DAG+B;AAC/B,mDAAkD;AAClD,+DAAmE;AAEnE;;GAEG;AACU,QAAA,uBAAuB,GAAG,qBAAqB,CAAC;AAiB7D;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,UAAsC,EAAE;IAC1E,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAE1C,OAAO;QACL,IAAI,EAAE,+BAAuB;QAC7B,WAAW,CAAC,OAAyB,EAAE,IAAiB;YACtD,MAAM,aAA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C1D,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n DictionaryMapper,\n OperationArguments,\n OperationRequest,\n OperationSpec,\n RequiredSerializerOptions,\n SerializerOptions,\n XmlOptions,\n} from \"./interfaces.js\";\nimport { XML_ATTRKEY, XML_CHARKEY } from \"./interfaces.js\";\nimport type { PipelinePolicy, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport {\n getOperationArgumentValueFromParameter,\n getOperationRequestInfo,\n} from \"./operationHelpers.js\";\nimport { MapperTypeNames } from \"./serializer.js\";\nimport { getPathStringFromParameter } from \"./interfaceHelpers.js\";\n\n/**\n * The programmatic identifier of the serializationPolicy.\n */\nexport const serializationPolicyName = \"serializationPolicy\";\n\n/**\n * Options to configure API request serialization.\n */\nexport interface SerializationPolicyOptions {\n /**\n * A function that is able to write XML. Required for XML support.\n */\n stringifyXML?: (obj: any, opts?: XmlOptions) => string;\n\n /**\n * Configures behavior of xml parser and builder.\n */\n serializerOptions?: SerializerOptions;\n}\n\n/**\n * This policy handles assembling the request body and headers using\n * an OperationSpec and OperationArguments on the request.\n */\nexport function serializationPolicy(options: SerializationPolicyOptions = {}): PipelinePolicy {\n const stringifyXML = options.stringifyXML;\n\n return {\n name: serializationPolicyName,\n sendRequest(request: OperationRequest, next: SendRequest): Promise<PipelineResponse> {\n const operationInfo = getOperationRequestInfo(request);\n const operationSpec = operationInfo?.operationSpec;\n const operationArguments = operationInfo?.operationArguments;\n if (operationSpec && operationArguments) {\n serializeHeaders(request, operationArguments, operationSpec);\n serializeRequestBody(request, operationArguments, operationSpec, stringifyXML);\n }\n return next(request);\n },\n };\n}\n\n/**\n * @internal\n */\nexport function serializeHeaders(\n request: OperationRequest,\n operationArguments: OperationArguments,\n operationSpec: OperationSpec,\n): void {\n if (operationSpec.headerParameters) {\n for (const headerParameter of operationSpec.headerParameters) {\n let headerValue = getOperationArgumentValueFromParameter(operationArguments, headerParameter);\n if ((headerValue !== null && headerValue !== undefined) || headerParameter.mapper.required) {\n headerValue = operationSpec.serializer.serialize(\n headerParameter.mapper,\n headerValue,\n getPathStringFromParameter(headerParameter),\n );\n const headerCollectionPrefix = (headerParameter.mapper as DictionaryMapper)\n .headerCollectionPrefix;\n if (headerCollectionPrefix) {\n for (const key of Object.keys(headerValue)) {\n request.headers.set(headerCollectionPrefix + key, headerValue[key]);\n }\n } else {\n request.headers.set(\n headerParameter.mapper.serializedName || getPathStringFromParameter(headerParameter),\n headerValue,\n );\n }\n }\n }\n }\n const customHeaders = operationArguments.options?.requestOptions?.customHeaders;\n if (customHeaders) {\n for (const customHeaderName of Object.keys(customHeaders)) {\n request.headers.set(customHeaderName, customHeaders[customHeaderName]);\n }\n }\n}\n\n/**\n * @internal\n */\nexport function serializeRequestBody(\n request: OperationRequest,\n operationArguments: OperationArguments,\n operationSpec: OperationSpec,\n stringifyXML: (obj: any, opts?: XmlOptions) => string = function () {\n throw new Error(\"XML serialization unsupported!\");\n },\n): void {\n const serializerOptions = operationArguments.options?.serializerOptions;\n const updatedOptions: RequiredSerializerOptions = {\n xml: {\n rootName: serializerOptions?.xml.rootName ?? \"\",\n includeRoot: serializerOptions?.xml.includeRoot ?? false,\n xmlCharKey: serializerOptions?.xml.xmlCharKey ?? XML_CHARKEY,\n },\n };\n\n const xmlCharKey = updatedOptions.xml.xmlCharKey;\n if (operationSpec.requestBody && operationSpec.requestBody.mapper) {\n request.body = getOperationArgumentValueFromParameter(\n operationArguments,\n operationSpec.requestBody,\n );\n\n const bodyMapper = operationSpec.requestBody.mapper;\n const {\n required,\n serializedName,\n xmlName,\n xmlElementName,\n xmlNamespace,\n xmlNamespacePrefix,\n nullable,\n } = bodyMapper;\n const typeName = bodyMapper.type.name;\n\n try {\n if (\n (request.body !== undefined && request.body !== null) ||\n (nullable && request.body === null) ||\n required\n ) {\n const requestBodyParameterPathString: string = getPathStringFromParameter(\n operationSpec.requestBody,\n );\n request.body = operationSpec.serializer.serialize(\n bodyMapper,\n request.body,\n requestBodyParameterPathString,\n updatedOptions,\n );\n\n const isStream = typeName === MapperTypeNames.Stream;\n\n if (operationSpec.isXML) {\n const xmlnsKey = xmlNamespacePrefix ? `xmlns:${xmlNamespacePrefix}` : \"xmlns\";\n const value = getXmlValueWithNamespace(\n xmlNamespace,\n xmlnsKey,\n typeName,\n request.body,\n updatedOptions,\n );\n\n if (typeName === MapperTypeNames.Sequence) {\n request.body = stringifyXML(\n prepareXMLRootList(\n value,\n xmlElementName || xmlName || serializedName!,\n xmlnsKey,\n xmlNamespace,\n ),\n { rootName: xmlName || serializedName, xmlCharKey },\n );\n } else if (!isStream) {\n request.body = stringifyXML(value, {\n rootName: xmlName || serializedName,\n xmlCharKey,\n });\n }\n } else if (\n typeName === MapperTypeNames.String &&\n (operationSpec.contentType?.match(\"text/plain\") || operationSpec.mediaType === \"text\")\n ) {\n // the String serializer has validated that request body is a string\n // so just send the string.\n return;\n } else if (!isStream) {\n request.body = JSON.stringify(request.body);\n }\n }\n } catch (error: any) {\n throw new Error(\n `Error \"${error.message}\" occurred in serializing the payload - ${JSON.stringify(\n serializedName,\n undefined,\n \" \",\n )}.`,\n );\n }\n } else if (operationSpec.formDataParameters && operationSpec.formDataParameters.length > 0) {\n request.formData = {};\n for (const formDataParameter of operationSpec.formDataParameters) {\n const formDataParameterValue = getOperationArgumentValueFromParameter(\n operationArguments,\n formDataParameter,\n );\n if (formDataParameterValue !== undefined && formDataParameterValue !== null) {\n const formDataParameterPropertyName: string =\n formDataParameter.mapper.serializedName || getPathStringFromParameter(formDataParameter);\n request.formData[formDataParameterPropertyName] = operationSpec.serializer.serialize(\n formDataParameter.mapper,\n formDataParameterValue,\n getPathStringFromParameter(formDataParameter),\n updatedOptions,\n );\n }\n }\n }\n}\n\n/**\n * Adds an xml namespace to the xml serialized object if needed, otherwise it just returns the value itself\n */\nfunction getXmlValueWithNamespace(\n xmlNamespace: string | undefined,\n xmlnsKey: string,\n typeName: string,\n serializedValue: any,\n options: RequiredSerializerOptions,\n): any {\n // Composite and Sequence schemas already got their root namespace set during serialization\n // We just need to add xmlns to the other schema types\n if (xmlNamespace && ![\"Composite\", \"Sequence\", \"Dictionary\"].includes(typeName)) {\n const result: any = {};\n result[options.xml.xmlCharKey] = serializedValue;\n result[XML_ATTRKEY] = { [xmlnsKey]: xmlNamespace };\n return result;\n }\n\n return serializedValue;\n}\n\nfunction prepareXMLRootList(\n obj: any,\n elementName: string,\n xmlNamespaceKey?: string,\n xmlNamespace?: string,\n): { [key: string]: any[] } {\n if (!Array.isArray(obj)) {\n obj = [obj];\n }\n if (!xmlNamespaceKey || !xmlNamespace) {\n return { [elementName]: obj };\n }\n\n const result = { [elementName]: obj };\n result[XML_ATTRKEY] = { [xmlNamespaceKey]: xmlNamespace };\n return result;\n}\n"]}
@@ -440,8 +440,8 @@ function serializeSequenceType(serializer, mapper, object, objectName, isXml, op
440
440
  }
441
441
  let elementType = mapper.type.element;
442
442
  if (!elementType || typeof elementType !== "object") {
443
- throw new Error(`element" metadata for an Array must be defined in the ` +
444
- `mapper and it must of type "object" in ${objectName}.`);
443
+ throw new Error(`"element" metadata for an Array must be defined in the ` +
444
+ `mapper and it must be of type "object" in ${objectName}.`);
445
445
  }
446
446
  // Quirk: Composite mappers referenced by `element` might
447
447
  // not have *all* properties declared (like uberParent),
@@ -620,10 +620,15 @@ function serializeCompositeType(serializer, mapper, object, objectName, isXml, o
620
620
  const additionalPropertiesMapper = resolveAdditionalProperties(serializer, mapper, objectName);
621
621
  if (additionalPropertiesMapper) {
622
622
  const propNames = Object.keys(modelProps);
623
- for (const clientPropName in object) {
623
+ for (const clientPropName of Object.keys(object)) {
624
624
  const isAdditionalProperty = propNames.every((pn) => pn !== clientPropName);
625
625
  if (isAdditionalProperty) {
626
- payload[clientPropName] = serializer.serialize(additionalPropertiesMapper, object[clientPropName], objectName + '["' + clientPropName + '"]', options);
626
+ Object.defineProperty(payload, clientPropName, {
627
+ value: serializer.serialize(additionalPropertiesMapper, object[clientPropName], objectName + '["' + clientPropName + '"]', options),
628
+ enumerable: true,
629
+ configurable: true,
630
+ writable: true,
631
+ });
627
632
  }
628
633
  }
629
634
  }
@@ -718,7 +723,12 @@ function deserializeCompositeType(serializer, mapper, responseBody, objectName,
718
723
  */
719
724
  const wrapped = responseBody[xmlName];
720
725
  const elementList = wrapped?.[xmlElementName] ?? [];
721
- instance[key] = serializer.deserialize(propertyMapper, elementList, propertyObjectName, options);
726
+ Object.defineProperty(instance, key, {
727
+ value: serializer.deserialize(propertyMapper, elementList, propertyObjectName, options),
728
+ enumerable: true,
729
+ configurable: true,
730
+ writable: true,
731
+ });
722
732
  handledPropertyNames.push(xmlName);
723
733
  }
724
734
  else {
@@ -783,7 +793,7 @@ function deserializeCompositeType(serializer, mapper, responseBody, objectName,
783
793
  const additionalPropertiesMapper = mapper.type.additionalProperties;
784
794
  if (additionalPropertiesMapper) {
785
795
  const isAdditionalProperty = (responsePropName) => {
786
- for (const clientPropName in modelProps) {
796
+ for (const clientPropName of Object.keys(modelProps)) {
787
797
  const paths = splitSerializeName(modelProps[clientPropName].serializedName);
788
798
  if (paths[0] === responsePropName) {
789
799
  return false;
@@ -791,9 +801,15 @@ function deserializeCompositeType(serializer, mapper, responseBody, objectName,
791
801
  }
792
802
  return true;
793
803
  };
794
- for (const responsePropName in responseBody) {
804
+ for (const responsePropName of Object.keys(responseBody)) {
795
805
  if (isAdditionalProperty(responsePropName)) {
796
- instance[responsePropName] = serializer.deserialize(additionalPropertiesMapper, responseBody[responsePropName], objectName + '["' + responsePropName + '"]', options);
806
+ const deserializedValue = serializer.deserialize(additionalPropertiesMapper, responseBody[responsePropName], objectName + '["' + responsePropName + '"]', options);
807
+ Object.defineProperty(instance, responsePropName, {
808
+ value: deserializedValue,
809
+ enumerable: true,
810
+ configurable: true,
811
+ writable: true,
812
+ });
797
813
  }
798
814
  }
799
815
  }
@@ -802,7 +818,12 @@ function deserializeCompositeType(serializer, mapper, responseBody, objectName,
802
818
  if (instance[key] === undefined &&
803
819
  !handledPropertyNames.includes(key) &&
804
820
  !isSpecialXmlProperty(key, options)) {
805
- instance[key] = responseBody[key];
821
+ Object.defineProperty(instance, key, {
822
+ value: responseBody[key],
823
+ enumerable: true,
824
+ configurable: true,
825
+ writable: true,
826
+ });
806
827
  }
807
828
  }
808
829
  }
@@ -827,8 +848,8 @@ function deserializeDictionaryType(serializer, mapper, responseBody, objectName,
827
848
  function deserializeSequenceType(serializer, mapper, responseBody, objectName, options) {
828
849
  let element = mapper.type.element;
829
850
  if (!element || typeof element !== "object") {
830
- throw new Error(`element" metadata for an Array must be defined in the ` +
831
- `mapper and it must of type "object" in ${objectName}`);
851
+ throw new Error(`"element" metadata for an Array must be defined in the ` +
852
+ `mapper and it must be of type "object" in ${objectName}`);
832
853
  }
833
854
  if (responseBody) {
834
855
  if (!Array.isArray(responseBody)) {