@azure/storage-file-share 12.32.0 → 12.33.0

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 (871) hide show
  1. package/README.md +69 -0
  2. package/dist/browser/Clients.d.ts +123 -1
  3. package/dist/browser/Clients.d.ts.map +1 -1
  4. package/dist/browser/Clients.js +461 -236
  5. package/dist/browser/Clients.js.map +1 -1
  6. package/dist/browser/Pipeline.d.ts.map +1 -1
  7. package/dist/browser/Pipeline.js +5 -23
  8. package/dist/browser/Pipeline.js.map +1 -1
  9. package/dist/browser/ShareClientInternal.d.ts +1 -1
  10. package/dist/browser/ShareClientInternal.d.ts.map +1 -1
  11. package/dist/browser/ShareClientInternal.js +2 -1
  12. package/dist/browser/ShareClientInternal.js.map +1 -1
  13. package/dist/browser/ShareServiceClient.d.ts.map +1 -1
  14. package/dist/browser/ShareServiceClient.js +9 -9
  15. package/dist/browser/ShareServiceClient.js.map +1 -1
  16. package/dist/browser/StorageClient.d.ts +12 -2
  17. package/dist/browser/StorageClient.d.ts.map +1 -1
  18. package/dist/browser/StorageClient.js +46 -9
  19. package/dist/browser/StorageClient.js.map +1 -1
  20. package/dist/browser/generated/api/directory/index.d.ts +3 -0
  21. package/dist/browser/generated/api/directory/index.d.ts.map +1 -0
  22. package/dist/browser/generated/api/directory/index.js +4 -0
  23. package/dist/browser/generated/api/directory/index.js.map +1 -0
  24. package/dist/browser/generated/api/directory/operations.d.ts +413 -0
  25. package/dist/browser/generated/api/directory/operations.d.ts.map +1 -0
  26. package/dist/browser/generated/api/directory/operations.js +1020 -0
  27. package/dist/browser/generated/api/directory/operations.js.map +1 -0
  28. package/dist/browser/generated/api/directory/options.d.ts +202 -0
  29. package/dist/browser/generated/api/directory/options.d.ts.map +1 -0
  30. package/dist/browser/generated/api/directory/options.js +4 -0
  31. package/dist/browser/generated/api/directory/options.js.map +1 -0
  32. package/dist/browser/generated/api/file/index.d.ts +3 -0
  33. package/dist/browser/generated/api/file/index.d.ts.map +1 -0
  34. package/dist/browser/generated/api/file/index.js +4 -0
  35. package/dist/browser/generated/api/file/index.js.map +1 -0
  36. package/dist/browser/generated/api/file/operations.d.ts +1095 -0
  37. package/dist/browser/generated/api/file/operations.d.ts.map +1 -0
  38. package/dist/browser/generated/api/file/operations.js +2638 -0
  39. package/dist/browser/generated/api/file/operations.js.map +1 -0
  40. package/dist/browser/generated/api/file/options.d.ts +499 -0
  41. package/dist/browser/generated/api/file/options.d.ts.map +1 -0
  42. package/dist/browser/generated/api/file/options.js +4 -0
  43. package/dist/browser/generated/api/file/options.js.map +1 -0
  44. package/dist/browser/generated/api/fileContext.d.ts +15 -0
  45. package/dist/browser/generated/api/fileContext.d.ts.map +1 -0
  46. package/dist/browser/generated/api/fileContext.js +23 -0
  47. package/dist/browser/generated/api/fileContext.js.map +1 -0
  48. package/dist/browser/generated/api/index.d.ts +3 -0
  49. package/dist/browser/generated/api/index.d.ts.map +1 -0
  50. package/dist/browser/generated/api/index.js +4 -0
  51. package/dist/browser/generated/api/index.js.map +1 -0
  52. package/dist/browser/generated/api/service/index.d.ts +3 -0
  53. package/dist/browser/generated/api/service/index.d.ts.map +1 -0
  54. package/dist/browser/generated/api/service/index.js +4 -0
  55. package/dist/browser/generated/api/service/index.js.map +1 -0
  56. package/dist/browser/generated/api/service/operations.d.ts +115 -0
  57. package/dist/browser/generated/api/service/operations.d.ts.map +1 -0
  58. package/dist/browser/generated/api/service/operations.js +338 -0
  59. package/dist/browser/generated/api/service/operations.js.map +1 -0
  60. package/dist/browser/generated/api/service/options.d.ts +45 -0
  61. package/dist/browser/generated/api/service/options.d.ts.map +1 -0
  62. package/dist/browser/generated/api/service/options.js +4 -0
  63. package/dist/browser/generated/api/service/options.js.map +1 -0
  64. package/dist/browser/generated/api/share/index.d.ts +3 -0
  65. package/dist/browser/generated/api/share/index.d.ts.map +1 -0
  66. package/dist/browser/generated/api/share/index.js +4 -0
  67. package/dist/browser/generated/api/share/index.js.map +1 -0
  68. package/dist/browser/generated/api/share/operations.d.ts +679 -0
  69. package/dist/browser/generated/api/share/operations.d.ts.map +1 -0
  70. package/dist/browser/generated/api/share/operations.js +1676 -0
  71. package/dist/browser/generated/api/share/operations.js.map +1 -0
  72. package/dist/browser/generated/api/share/options.d.ts +254 -0
  73. package/dist/browser/generated/api/share/options.d.ts.map +1 -0
  74. package/dist/browser/generated/api/share/options.js +4 -0
  75. package/dist/browser/generated/api/share/options.js.map +1 -0
  76. package/dist/browser/generated/classic/directory/index.d.ts +240 -0
  77. package/dist/browser/generated/classic/directory/index.d.ts.map +1 -0
  78. package/dist/browser/generated/classic/directory/index.js +22 -0
  79. package/dist/browser/generated/classic/directory/index.js.map +1 -0
  80. package/dist/browser/generated/classic/file/index.d.ts +634 -0
  81. package/dist/browser/generated/classic/file/index.d.ts.map +1 -0
  82. package/dist/browser/generated/classic/file/index.js +35 -0
  83. package/dist/browser/generated/classic/file/index.js.map +1 -0
  84. package/dist/browser/generated/classic/index.d.ts +5 -0
  85. package/dist/browser/generated/classic/index.d.ts.map +1 -0
  86. package/dist/browser/generated/classic/index.js +4 -0
  87. package/dist/browser/generated/classic/index.js.map +1 -0
  88. package/dist/browser/generated/classic/service/index.d.ts +63 -0
  89. package/dist/browser/generated/classic/service/index.d.ts.map +1 -0
  90. package/dist/browser/generated/classic/service/index.js +17 -0
  91. package/dist/browser/generated/classic/service/index.js.map +1 -0
  92. package/dist/browser/generated/classic/share/index.d.ts +380 -0
  93. package/dist/browser/generated/classic/share/index.d.ts.map +1 -0
  94. package/dist/browser/generated/classic/share/index.js +30 -0
  95. package/dist/browser/generated/classic/share/index.js.map +1 -0
  96. package/dist/browser/generated/fileClient.d.ts +24 -0
  97. package/dist/browser/generated/fileClient.d.ts.map +1 -0
  98. package/dist/browser/generated/fileClient.js +37 -0
  99. package/dist/browser/generated/fileClient.js.map +1 -0
  100. package/dist/browser/generated/index.d.ts +11 -0
  101. package/dist/browser/generated/index.d.ts.map +1 -0
  102. package/dist/browser/generated/index.js +6 -0
  103. package/dist/browser/generated/index.js.map +1 -0
  104. package/dist/browser/generated/logger.d.ts +2 -0
  105. package/dist/browser/generated/logger.d.ts.map +1 -0
  106. package/dist/browser/generated/logger.js +5 -0
  107. package/dist/browser/generated/logger.js.map +1 -0
  108. package/dist/browser/generated/models/index.d.ts +3 -0
  109. package/dist/browser/generated/models/index.d.ts.map +1 -0
  110. package/dist/browser/generated/models/index.js +4 -0
  111. package/dist/browser/generated/models/index.js.map +1 -0
  112. package/dist/browser/generated/models/models.d.ts +942 -0
  113. package/dist/browser/generated/models/models.d.ts.map +1 -0
  114. package/dist/browser/generated/models/models.js +2515 -0
  115. package/dist/browser/generated/models/models.js.map +1 -0
  116. package/dist/browser/generated/static-helpers/platform-types-browser.d.mts +6 -0
  117. package/dist/browser/generated/static-helpers/platform-types-browser.d.mts.map +1 -0
  118. package/dist/browser/generated/static-helpers/platform-types-browser.mjs +2 -0
  119. package/dist/browser/generated/static-helpers/platform-types-browser.mjs.map +1 -0
  120. package/dist/browser/generated/static-helpers/platform-types.d.ts +6 -0
  121. package/dist/browser/generated/static-helpers/platform-types.d.ts.map +1 -0
  122. package/dist/browser/generated/static-helpers/platform-types.js +2 -0
  123. package/dist/browser/generated/static-helpers/platform-types.js.map +1 -0
  124. package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.d.ts +13 -0
  125. package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -0
  126. package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.js +15 -0
  127. package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.js.map +1 -0
  128. package/dist/browser/generated/static-helpers/serialization/xml-helpers.d.ts +146 -0
  129. package/dist/browser/generated/static-helpers/serialization/xml-helpers.d.ts.map +1 -0
  130. package/dist/browser/generated/static-helpers/serialization/xml-helpers.js +446 -0
  131. package/dist/browser/generated/static-helpers/serialization/xml-helpers.js.map +1 -0
  132. package/dist/browser/generated/static-helpers/storageCompatResponse.d.ts +44 -0
  133. package/dist/browser/generated/static-helpers/storageCompatResponse.d.ts.map +1 -0
  134. package/dist/browser/generated/static-helpers/storageCompatResponse.js +36 -0
  135. package/dist/browser/generated/static-helpers/storageCompatResponse.js.map +1 -0
  136. package/dist/browser/generated/static-helpers/urlTemplate.d.ts +5 -0
  137. package/dist/browser/generated/static-helpers/urlTemplate.d.ts.map +1 -0
  138. package/dist/browser/generated/static-helpers/urlTemplate.js +200 -0
  139. package/dist/browser/generated/static-helpers/urlTemplate.js.map +1 -0
  140. package/dist/browser/{generated/src/models/index.d.ts → generated-classic-models.d.ts} +58 -58
  141. package/dist/browser/generated-classic-models.d.ts.map +1 -0
  142. package/dist/browser/{generated/src/models/index.js → generated-classic-models.js} +1 -1
  143. package/dist/browser/generated-classic-models.js.map +1 -0
  144. package/dist/browser/generatedModels.d.ts +21 -2
  145. package/dist/browser/generatedModels.d.ts.map +1 -1
  146. package/dist/browser/generatedModels.js.map +1 -1
  147. package/dist/browser/models.d.ts +3 -0
  148. package/dist/browser/models.d.ts.map +1 -1
  149. package/dist/browser/models.js +20 -0
  150. package/dist/browser/models.js.map +1 -1
  151. package/dist/browser/utils/constants.js +2 -2
  152. package/dist/browser/utils/constants.js.map +1 -1
  153. package/dist/browser/utils/utils.common.d.ts +22 -2
  154. package/dist/browser/utils/utils.common.d.ts.map +1 -1
  155. package/dist/browser/utils/utils.common.js +48 -0
  156. package/dist/browser/utils/utils.common.js.map +1 -1
  157. package/dist/commonjs/Clients.d.ts +123 -1
  158. package/dist/commonjs/Clients.d.ts.map +1 -1
  159. package/dist/commonjs/Clients.js +710 -376
  160. package/dist/commonjs/Clients.js.map +2 -2
  161. package/dist/commonjs/Pipeline.d.ts.map +1 -1
  162. package/dist/commonjs/Pipeline.js +4 -22
  163. package/dist/commonjs/Pipeline.js.map +2 -2
  164. package/dist/commonjs/ShareClientInternal.d.ts +1 -1
  165. package/dist/commonjs/ShareClientInternal.d.ts.map +1 -1
  166. package/dist/commonjs/ShareClientInternal.js +2 -1
  167. package/dist/commonjs/ShareClientInternal.js.map +2 -2
  168. package/dist/commonjs/ShareServiceClient.d.ts.map +1 -1
  169. package/dist/commonjs/ShareServiceClient.js +31 -23
  170. package/dist/commonjs/ShareServiceClient.js.map +2 -2
  171. package/dist/commonjs/StorageClient.d.ts +12 -2
  172. package/dist/commonjs/StorageClient.d.ts.map +1 -1
  173. package/dist/commonjs/StorageClient.js +47 -10
  174. package/dist/commonjs/StorageClient.js.map +3 -3
  175. package/dist/commonjs/generated/api/directory/index.d.ts +3 -0
  176. package/dist/commonjs/generated/api/directory/index.d.ts.map +1 -0
  177. package/dist/commonjs/generated/api/directory/index.js +44 -0
  178. package/dist/commonjs/generated/api/directory/index.js.map +7 -0
  179. package/dist/commonjs/generated/api/directory/operations.d.ts +413 -0
  180. package/dist/commonjs/generated/api/directory/operations.d.ts.map +1 -0
  181. package/dist/commonjs/generated/api/directory/operations.js +810 -0
  182. package/dist/commonjs/generated/api/directory/operations.js.map +7 -0
  183. package/dist/commonjs/generated/api/directory/options.d.ts +202 -0
  184. package/dist/commonjs/generated/api/directory/options.d.ts.map +1 -0
  185. package/dist/commonjs/generated/{src/operationsInterfaces/service.js → api/directory/options.js} +3 -3
  186. package/dist/commonjs/generated/api/directory/options.js.map +7 -0
  187. package/dist/commonjs/generated/api/file/index.d.ts +3 -0
  188. package/dist/commonjs/generated/api/file/index.d.ts.map +1 -0
  189. package/dist/commonjs/generated/api/file/index.js +70 -0
  190. package/dist/commonjs/generated/api/file/index.js.map +7 -0
  191. package/dist/commonjs/generated/api/file/operations.d.ts +1095 -0
  192. package/dist/commonjs/generated/api/file/operations.d.ts.map +1 -0
  193. package/dist/commonjs/generated/api/file/operations.js +2028 -0
  194. package/dist/commonjs/generated/api/file/operations.js.map +7 -0
  195. package/dist/commonjs/generated/api/file/options.d.ts +499 -0
  196. package/dist/commonjs/generated/api/file/options.d.ts.map +1 -0
  197. package/dist/commonjs/generated/{src/operationsInterfaces/file.js → api/file/options.js} +3 -3
  198. package/dist/commonjs/generated/api/file/options.js.map +7 -0
  199. package/dist/commonjs/generated/api/fileContext.d.ts +15 -0
  200. package/dist/commonjs/generated/api/fileContext.d.ts.map +1 -0
  201. package/dist/commonjs/generated/api/fileContext.js +44 -0
  202. package/dist/commonjs/generated/api/fileContext.js.map +7 -0
  203. package/dist/commonjs/generated/api/index.d.ts +3 -0
  204. package/dist/commonjs/generated/api/index.d.ts.map +1 -0
  205. package/dist/commonjs/generated/{src → api}/index.js +6 -11
  206. package/dist/commonjs/generated/api/index.js.map +7 -0
  207. package/dist/commonjs/generated/api/service/index.d.ts +3 -0
  208. package/dist/commonjs/generated/api/service/index.d.ts.map +1 -0
  209. package/dist/commonjs/generated/{src/operations → api/service}/index.js +17 -11
  210. package/dist/commonjs/generated/api/service/index.js.map +7 -0
  211. package/dist/commonjs/generated/api/service/operations.d.ts +115 -0
  212. package/dist/commonjs/generated/api/service/operations.d.ts.map +1 -0
  213. package/dist/commonjs/generated/api/service/operations.js +344 -0
  214. package/dist/commonjs/generated/api/service/operations.js.map +7 -0
  215. package/dist/commonjs/generated/api/service/options.d.ts +45 -0
  216. package/dist/commonjs/generated/api/service/options.d.ts.map +1 -0
  217. package/dist/commonjs/generated/{src/operationsInterfaces/directory.js → api/service/options.js} +3 -3
  218. package/dist/commonjs/generated/api/service/options.js.map +7 -0
  219. package/dist/commonjs/generated/api/share/index.d.ts +3 -0
  220. package/dist/commonjs/generated/api/share/index.d.ts.map +1 -0
  221. package/dist/commonjs/generated/api/share/index.js +60 -0
  222. package/dist/commonjs/generated/api/share/index.js.map +7 -0
  223. package/dist/commonjs/generated/api/share/operations.d.ts +679 -0
  224. package/dist/commonjs/generated/api/share/operations.d.ts.map +1 -0
  225. package/dist/commonjs/generated/api/share/operations.js +1435 -0
  226. package/dist/commonjs/generated/api/share/operations.js.map +7 -0
  227. package/dist/commonjs/generated/api/share/options.d.ts +254 -0
  228. package/dist/commonjs/generated/api/share/options.d.ts.map +1 -0
  229. package/dist/commonjs/generated/api/share/options.js +16 -0
  230. package/dist/commonjs/generated/api/share/options.js.map +7 -0
  231. package/dist/commonjs/generated/classic/directory/index.d.ts +240 -0
  232. package/dist/commonjs/generated/classic/directory/index.d.ts.map +1 -0
  233. package/dist/commonjs/generated/classic/directory/index.js +46 -0
  234. package/dist/commonjs/generated/classic/directory/index.js.map +7 -0
  235. package/dist/commonjs/generated/classic/file/index.d.ts +634 -0
  236. package/dist/commonjs/generated/classic/file/index.d.ts.map +1 -0
  237. package/dist/commonjs/generated/classic/file/index.js +59 -0
  238. package/dist/commonjs/generated/classic/file/index.js.map +7 -0
  239. package/dist/commonjs/generated/classic/index.d.ts +5 -0
  240. package/dist/commonjs/generated/classic/index.d.ts.map +1 -0
  241. package/dist/commonjs/generated/{src/operationsInterfaces/share.js → classic/index.js} +3 -3
  242. package/dist/commonjs/generated/classic/index.js.map +7 -0
  243. package/dist/commonjs/generated/classic/service/index.d.ts +63 -0
  244. package/dist/commonjs/generated/classic/service/index.d.ts.map +1 -0
  245. package/dist/commonjs/generated/classic/service/index.js +41 -0
  246. package/dist/commonjs/generated/classic/service/index.js.map +7 -0
  247. package/dist/commonjs/generated/classic/share/index.d.ts +380 -0
  248. package/dist/commonjs/generated/classic/share/index.d.ts.map +1 -0
  249. package/dist/commonjs/generated/classic/share/index.js +54 -0
  250. package/dist/commonjs/generated/classic/share/index.js.map +7 -0
  251. package/dist/commonjs/generated/fileClient.d.ts +24 -0
  252. package/dist/commonjs/generated/fileClient.d.ts.map +1 -0
  253. package/dist/commonjs/generated/fileClient.js +59 -0
  254. package/dist/commonjs/generated/fileClient.js.map +7 -0
  255. package/dist/commonjs/generated/index.d.ts +11 -0
  256. package/dist/commonjs/generated/index.d.ts.map +1 -0
  257. package/dist/commonjs/generated/index.js +46 -0
  258. package/dist/commonjs/generated/index.js.map +7 -0
  259. package/dist/commonjs/generated/logger.d.ts +2 -0
  260. package/dist/commonjs/generated/logger.d.ts.map +1 -0
  261. package/dist/commonjs/generated/logger.js +29 -0
  262. package/dist/commonjs/generated/logger.js.map +7 -0
  263. package/dist/commonjs/generated/models/index.d.ts +3 -0
  264. package/dist/commonjs/generated/models/index.d.ts.map +1 -0
  265. package/dist/commonjs/generated/models/index.js +38 -0
  266. package/dist/commonjs/generated/models/index.js.map +7 -0
  267. package/dist/commonjs/generated/models/models.d.ts +942 -0
  268. package/dist/commonjs/generated/models/models.d.ts.map +1 -0
  269. package/dist/commonjs/generated/models/models.js +2678 -0
  270. package/dist/commonjs/generated/models/models.js.map +7 -0
  271. package/dist/commonjs/generated/static-helpers/platform-types.d.ts +8 -0
  272. package/dist/commonjs/generated/static-helpers/platform-types.d.ts.map +1 -0
  273. package/dist/commonjs/generated/static-helpers/platform-types.js +16 -0
  274. package/dist/commonjs/generated/static-helpers/platform-types.js.map +7 -0
  275. package/dist/commonjs/generated/static-helpers/serialization/get-binary-stream-response.d.ts +13 -0
  276. package/dist/commonjs/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -0
  277. package/dist/commonjs/{StorageContextClient.js → generated/static-helpers/serialization/get-binary-stream-response.js} +13 -15
  278. package/dist/commonjs/generated/static-helpers/serialization/get-binary-stream-response.js.map +7 -0
  279. package/dist/commonjs/generated/static-helpers/serialization/xml-helpers.d.ts +146 -0
  280. package/dist/commonjs/generated/static-helpers/serialization/xml-helpers.d.ts.map +1 -0
  281. package/dist/commonjs/generated/static-helpers/serialization/xml-helpers.js +421 -0
  282. package/dist/commonjs/generated/static-helpers/serialization/xml-helpers.js.map +7 -0
  283. package/dist/commonjs/generated/static-helpers/storageCompatResponse.d.ts +44 -0
  284. package/dist/commonjs/generated/static-helpers/storageCompatResponse.d.ts.map +1 -0
  285. package/dist/commonjs/generated/static-helpers/storageCompatResponse.js +49 -0
  286. package/dist/commonjs/generated/static-helpers/storageCompatResponse.js.map +7 -0
  287. package/dist/commonjs/generated/static-helpers/urlTemplate.d.ts +5 -0
  288. package/dist/commonjs/generated/static-helpers/urlTemplate.d.ts.map +1 -0
  289. package/dist/commonjs/generated/static-helpers/urlTemplate.js +197 -0
  290. package/dist/commonjs/generated/static-helpers/urlTemplate.js.map +7 -0
  291. package/dist/{esm/generated/src/models/index.d.ts → commonjs/generated-classic-models.d.ts} +58 -58
  292. package/dist/commonjs/generated-classic-models.d.ts.map +1 -0
  293. package/dist/commonjs/{generated/src/models/index.js → generated-classic-models.js} +4 -4
  294. package/dist/commonjs/generated-classic-models.js.map +7 -0
  295. package/dist/commonjs/generatedModels.d.ts +21 -2
  296. package/dist/commonjs/generatedModels.d.ts.map +1 -1
  297. package/dist/commonjs/generatedModels.js.map +2 -2
  298. package/dist/commonjs/index.d.ts +2 -2
  299. package/dist/commonjs/index.d.ts.map +1 -1
  300. package/dist/commonjs/index.js +2 -0
  301. package/dist/commonjs/index.js.map +2 -2
  302. package/dist/commonjs/models.d.ts +3 -0
  303. package/dist/commonjs/models.d.ts.map +1 -1
  304. package/dist/commonjs/models.js +24 -0
  305. package/dist/commonjs/models.js.map +2 -2
  306. package/dist/commonjs/utils/constants.js +2 -2
  307. package/dist/commonjs/utils/constants.js.map +1 -1
  308. package/dist/commonjs/utils/utils.common.d.ts +22 -2
  309. package/dist/commonjs/utils/utils.common.d.ts.map +1 -1
  310. package/dist/commonjs/utils/utils.common.js +40 -0
  311. package/dist/commonjs/utils/utils.common.js.map +2 -2
  312. package/dist/esm/Clients.d.ts +123 -1
  313. package/dist/esm/Clients.d.ts.map +1 -1
  314. package/dist/esm/Clients.js +461 -236
  315. package/dist/esm/Clients.js.map +1 -1
  316. package/dist/esm/Pipeline.d.ts.map +1 -1
  317. package/dist/esm/Pipeline.js +5 -23
  318. package/dist/esm/Pipeline.js.map +1 -1
  319. package/dist/esm/ShareClientInternal.d.ts +1 -1
  320. package/dist/esm/ShareClientInternal.d.ts.map +1 -1
  321. package/dist/esm/ShareClientInternal.js +2 -1
  322. package/dist/esm/ShareClientInternal.js.map +1 -1
  323. package/dist/esm/ShareServiceClient.d.ts.map +1 -1
  324. package/dist/esm/ShareServiceClient.js +9 -9
  325. package/dist/esm/ShareServiceClient.js.map +1 -1
  326. package/dist/esm/StorageClient.d.ts +12 -2
  327. package/dist/esm/StorageClient.d.ts.map +1 -1
  328. package/dist/esm/StorageClient.js +46 -9
  329. package/dist/esm/StorageClient.js.map +1 -1
  330. package/dist/esm/generated/api/directory/index.d.ts +3 -0
  331. package/dist/esm/generated/api/directory/index.d.ts.map +1 -0
  332. package/dist/esm/generated/api/directory/index.js +4 -0
  333. package/dist/esm/generated/api/directory/index.js.map +1 -0
  334. package/dist/esm/generated/api/directory/operations.d.ts +413 -0
  335. package/dist/esm/generated/api/directory/operations.d.ts.map +1 -0
  336. package/dist/esm/generated/api/directory/operations.js +1020 -0
  337. package/dist/esm/generated/api/directory/operations.js.map +1 -0
  338. package/dist/esm/generated/api/directory/options.d.ts +202 -0
  339. package/dist/esm/generated/api/directory/options.d.ts.map +1 -0
  340. package/dist/esm/generated/api/directory/options.js +4 -0
  341. package/dist/esm/generated/api/directory/options.js.map +1 -0
  342. package/dist/esm/generated/api/file/index.d.ts +3 -0
  343. package/dist/esm/generated/api/file/index.d.ts.map +1 -0
  344. package/dist/esm/generated/api/file/index.js +4 -0
  345. package/dist/esm/generated/api/file/index.js.map +1 -0
  346. package/dist/esm/generated/api/file/operations.d.ts +1095 -0
  347. package/dist/esm/generated/api/file/operations.d.ts.map +1 -0
  348. package/dist/esm/generated/api/file/operations.js +2638 -0
  349. package/dist/esm/generated/api/file/operations.js.map +1 -0
  350. package/dist/esm/generated/api/file/options.d.ts +499 -0
  351. package/dist/esm/generated/api/file/options.d.ts.map +1 -0
  352. package/dist/esm/generated/api/file/options.js +4 -0
  353. package/dist/esm/generated/api/file/options.js.map +1 -0
  354. package/dist/esm/generated/api/fileContext.d.ts +15 -0
  355. package/dist/esm/generated/api/fileContext.d.ts.map +1 -0
  356. package/dist/esm/generated/api/fileContext.js +23 -0
  357. package/dist/esm/generated/api/fileContext.js.map +1 -0
  358. package/dist/esm/generated/api/index.d.ts +3 -0
  359. package/dist/esm/generated/api/index.d.ts.map +1 -0
  360. package/dist/esm/generated/api/index.js +4 -0
  361. package/dist/esm/generated/api/index.js.map +1 -0
  362. package/dist/esm/generated/api/service/index.d.ts +3 -0
  363. package/dist/esm/generated/api/service/index.d.ts.map +1 -0
  364. package/dist/esm/generated/api/service/index.js +4 -0
  365. package/dist/esm/generated/api/service/index.js.map +1 -0
  366. package/dist/esm/generated/api/service/operations.d.ts +115 -0
  367. package/dist/esm/generated/api/service/operations.d.ts.map +1 -0
  368. package/dist/esm/generated/api/service/operations.js +338 -0
  369. package/dist/esm/generated/api/service/operations.js.map +1 -0
  370. package/dist/esm/generated/api/service/options.d.ts +45 -0
  371. package/dist/esm/generated/api/service/options.d.ts.map +1 -0
  372. package/dist/esm/generated/api/service/options.js +4 -0
  373. package/dist/esm/generated/api/service/options.js.map +1 -0
  374. package/dist/esm/generated/api/share/index.d.ts +3 -0
  375. package/dist/esm/generated/api/share/index.d.ts.map +1 -0
  376. package/dist/esm/generated/api/share/index.js +4 -0
  377. package/dist/esm/generated/api/share/index.js.map +1 -0
  378. package/dist/esm/generated/api/share/operations.d.ts +679 -0
  379. package/dist/esm/generated/api/share/operations.d.ts.map +1 -0
  380. package/dist/esm/generated/api/share/operations.js +1676 -0
  381. package/dist/esm/generated/api/share/operations.js.map +1 -0
  382. package/dist/esm/generated/api/share/options.d.ts +254 -0
  383. package/dist/esm/generated/api/share/options.d.ts.map +1 -0
  384. package/dist/esm/generated/api/share/options.js +4 -0
  385. package/dist/esm/generated/api/share/options.js.map +1 -0
  386. package/dist/esm/generated/classic/directory/index.d.ts +240 -0
  387. package/dist/esm/generated/classic/directory/index.d.ts.map +1 -0
  388. package/dist/esm/generated/classic/directory/index.js +22 -0
  389. package/dist/esm/generated/classic/directory/index.js.map +1 -0
  390. package/dist/esm/generated/classic/file/index.d.ts +634 -0
  391. package/dist/esm/generated/classic/file/index.d.ts.map +1 -0
  392. package/dist/esm/generated/classic/file/index.js +35 -0
  393. package/dist/esm/generated/classic/file/index.js.map +1 -0
  394. package/dist/esm/generated/classic/index.d.ts +5 -0
  395. package/dist/esm/generated/classic/index.d.ts.map +1 -0
  396. package/dist/esm/generated/classic/index.js +4 -0
  397. package/dist/esm/generated/classic/index.js.map +1 -0
  398. package/dist/esm/generated/classic/service/index.d.ts +63 -0
  399. package/dist/esm/generated/classic/service/index.d.ts.map +1 -0
  400. package/dist/esm/generated/classic/service/index.js +17 -0
  401. package/dist/esm/generated/classic/service/index.js.map +1 -0
  402. package/dist/esm/generated/classic/share/index.d.ts +380 -0
  403. package/dist/esm/generated/classic/share/index.d.ts.map +1 -0
  404. package/dist/esm/generated/classic/share/index.js +30 -0
  405. package/dist/esm/generated/classic/share/index.js.map +1 -0
  406. package/dist/esm/generated/fileClient.d.ts +24 -0
  407. package/dist/esm/generated/fileClient.d.ts.map +1 -0
  408. package/dist/esm/generated/fileClient.js +37 -0
  409. package/dist/esm/generated/fileClient.js.map +1 -0
  410. package/dist/esm/generated/index.d.ts +11 -0
  411. package/dist/esm/generated/index.d.ts.map +1 -0
  412. package/dist/esm/generated/index.js +6 -0
  413. package/dist/esm/generated/index.js.map +1 -0
  414. package/dist/esm/generated/logger.d.ts +2 -0
  415. package/dist/esm/generated/logger.d.ts.map +1 -0
  416. package/dist/esm/generated/logger.js +5 -0
  417. package/dist/esm/generated/logger.js.map +1 -0
  418. package/dist/esm/generated/models/index.d.ts +3 -0
  419. package/dist/esm/generated/models/index.d.ts.map +1 -0
  420. package/dist/esm/generated/models/index.js +4 -0
  421. package/dist/esm/generated/models/index.js.map +1 -0
  422. package/dist/esm/generated/models/models.d.ts +942 -0
  423. package/dist/esm/generated/models/models.d.ts.map +1 -0
  424. package/dist/esm/generated/models/models.js +2515 -0
  425. package/dist/esm/generated/models/models.js.map +1 -0
  426. package/dist/esm/generated/static-helpers/platform-types.d.ts +8 -0
  427. package/dist/esm/generated/static-helpers/platform-types.d.ts.map +1 -0
  428. package/dist/esm/generated/static-helpers/platform-types.js +4 -0
  429. package/dist/esm/generated/static-helpers/platform-types.js.map +1 -0
  430. package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.d.ts +13 -0
  431. package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -0
  432. package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.js +17 -0
  433. package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.js.map +1 -0
  434. package/dist/esm/generated/static-helpers/serialization/xml-helpers.d.ts +146 -0
  435. package/dist/esm/generated/static-helpers/serialization/xml-helpers.d.ts.map +1 -0
  436. package/dist/esm/generated/static-helpers/serialization/xml-helpers.js +446 -0
  437. package/dist/esm/generated/static-helpers/serialization/xml-helpers.js.map +1 -0
  438. package/dist/esm/generated/static-helpers/storageCompatResponse.d.ts +44 -0
  439. package/dist/esm/generated/static-helpers/storageCompatResponse.d.ts.map +1 -0
  440. package/dist/esm/generated/static-helpers/storageCompatResponse.js +36 -0
  441. package/dist/esm/generated/static-helpers/storageCompatResponse.js.map +1 -0
  442. package/dist/esm/generated/static-helpers/urlTemplate.d.ts +5 -0
  443. package/dist/esm/generated/static-helpers/urlTemplate.d.ts.map +1 -0
  444. package/dist/esm/generated/static-helpers/urlTemplate.js +200 -0
  445. package/dist/esm/generated/static-helpers/urlTemplate.js.map +1 -0
  446. package/dist/{commonjs/generated/src/models/index.d.ts → esm/generated-classic-models.d.ts} +58 -58
  447. package/dist/esm/generated-classic-models.d.ts.map +1 -0
  448. package/dist/esm/{generated/src/models/index.js → generated-classic-models.js} +1 -1
  449. package/dist/esm/generated-classic-models.js.map +1 -0
  450. package/dist/esm/generatedModels.d.ts +21 -2
  451. package/dist/esm/generatedModels.d.ts.map +1 -1
  452. package/dist/esm/generatedModels.js.map +1 -1
  453. package/dist/esm/index.d.ts +2 -2
  454. package/dist/esm/index.d.ts.map +1 -1
  455. package/dist/esm/index.js +2 -2
  456. package/dist/esm/index.js.map +1 -1
  457. package/dist/esm/models.d.ts +3 -0
  458. package/dist/esm/models.d.ts.map +1 -1
  459. package/dist/esm/models.js +20 -0
  460. package/dist/esm/models.js.map +1 -1
  461. package/dist/esm/utils/constants.js +2 -2
  462. package/dist/esm/utils/constants.js.map +1 -1
  463. package/dist/esm/utils/utils.common.d.ts +22 -2
  464. package/dist/esm/utils/utils.common.d.ts.map +1 -1
  465. package/dist/esm/utils/utils.common.js +48 -0
  466. package/dist/esm/utils/utils.common.js.map +1 -1
  467. package/dist/react-native/Clients.d.ts +123 -1
  468. package/dist/react-native/Clients.d.ts.map +1 -1
  469. package/dist/react-native/Clients.js +461 -236
  470. package/dist/react-native/Clients.js.map +1 -1
  471. package/dist/react-native/Pipeline.d.ts.map +1 -1
  472. package/dist/react-native/Pipeline.js +5 -23
  473. package/dist/react-native/Pipeline.js.map +1 -1
  474. package/dist/react-native/ShareClientInternal.d.ts +1 -1
  475. package/dist/react-native/ShareClientInternal.d.ts.map +1 -1
  476. package/dist/react-native/ShareClientInternal.js +2 -1
  477. package/dist/react-native/ShareClientInternal.js.map +1 -1
  478. package/dist/react-native/ShareServiceClient.d.ts.map +1 -1
  479. package/dist/react-native/ShareServiceClient.js +9 -9
  480. package/dist/react-native/ShareServiceClient.js.map +1 -1
  481. package/dist/react-native/StorageClient.d.ts +12 -2
  482. package/dist/react-native/StorageClient.d.ts.map +1 -1
  483. package/dist/react-native/StorageClient.js +46 -9
  484. package/dist/react-native/StorageClient.js.map +1 -1
  485. package/dist/react-native/generated/api/directory/index.d.ts +3 -0
  486. package/dist/react-native/generated/api/directory/index.d.ts.map +1 -0
  487. package/dist/react-native/generated/api/directory/index.js +4 -0
  488. package/dist/react-native/generated/api/directory/index.js.map +1 -0
  489. package/dist/react-native/generated/api/directory/operations.d.ts +413 -0
  490. package/dist/react-native/generated/api/directory/operations.d.ts.map +1 -0
  491. package/dist/react-native/generated/api/directory/operations.js +1020 -0
  492. package/dist/react-native/generated/api/directory/operations.js.map +1 -0
  493. package/dist/react-native/generated/api/directory/options.d.ts +202 -0
  494. package/dist/react-native/generated/api/directory/options.d.ts.map +1 -0
  495. package/dist/react-native/generated/api/directory/options.js +4 -0
  496. package/dist/react-native/generated/api/directory/options.js.map +1 -0
  497. package/dist/react-native/generated/api/file/index.d.ts +3 -0
  498. package/dist/react-native/generated/api/file/index.d.ts.map +1 -0
  499. package/dist/react-native/generated/api/file/index.js +4 -0
  500. package/dist/react-native/generated/api/file/index.js.map +1 -0
  501. package/dist/react-native/generated/api/file/operations.d.ts +1095 -0
  502. package/dist/react-native/generated/api/file/operations.d.ts.map +1 -0
  503. package/dist/react-native/generated/api/file/operations.js +2638 -0
  504. package/dist/react-native/generated/api/file/operations.js.map +1 -0
  505. package/dist/react-native/generated/api/file/options.d.ts +499 -0
  506. package/dist/react-native/generated/api/file/options.d.ts.map +1 -0
  507. package/dist/react-native/generated/api/file/options.js +4 -0
  508. package/dist/react-native/generated/api/file/options.js.map +1 -0
  509. package/dist/react-native/generated/api/fileContext.d.ts +15 -0
  510. package/dist/react-native/generated/api/fileContext.d.ts.map +1 -0
  511. package/dist/react-native/generated/api/fileContext.js +23 -0
  512. package/dist/react-native/generated/api/fileContext.js.map +1 -0
  513. package/dist/react-native/generated/api/index.d.ts +3 -0
  514. package/dist/react-native/generated/api/index.d.ts.map +1 -0
  515. package/dist/react-native/generated/api/index.js +4 -0
  516. package/dist/react-native/generated/api/index.js.map +1 -0
  517. package/dist/react-native/generated/api/service/index.d.ts +3 -0
  518. package/dist/react-native/generated/api/service/index.d.ts.map +1 -0
  519. package/dist/react-native/generated/api/service/index.js +4 -0
  520. package/dist/react-native/generated/api/service/index.js.map +1 -0
  521. package/dist/react-native/generated/api/service/operations.d.ts +115 -0
  522. package/dist/react-native/generated/api/service/operations.d.ts.map +1 -0
  523. package/dist/react-native/generated/api/service/operations.js +338 -0
  524. package/dist/react-native/generated/api/service/operations.js.map +1 -0
  525. package/dist/react-native/generated/api/service/options.d.ts +45 -0
  526. package/dist/react-native/generated/api/service/options.d.ts.map +1 -0
  527. package/dist/react-native/generated/api/service/options.js +4 -0
  528. package/dist/react-native/generated/api/service/options.js.map +1 -0
  529. package/dist/react-native/generated/api/share/index.d.ts +3 -0
  530. package/dist/react-native/generated/api/share/index.d.ts.map +1 -0
  531. package/dist/react-native/generated/api/share/index.js +4 -0
  532. package/dist/react-native/generated/api/share/index.js.map +1 -0
  533. package/dist/react-native/generated/api/share/operations.d.ts +679 -0
  534. package/dist/react-native/generated/api/share/operations.d.ts.map +1 -0
  535. package/dist/react-native/generated/api/share/operations.js +1676 -0
  536. package/dist/react-native/generated/api/share/operations.js.map +1 -0
  537. package/dist/react-native/generated/api/share/options.d.ts +254 -0
  538. package/dist/react-native/generated/api/share/options.d.ts.map +1 -0
  539. package/dist/react-native/generated/api/share/options.js +4 -0
  540. package/dist/react-native/generated/api/share/options.js.map +1 -0
  541. package/dist/react-native/generated/classic/directory/index.d.ts +240 -0
  542. package/dist/react-native/generated/classic/directory/index.d.ts.map +1 -0
  543. package/dist/react-native/generated/classic/directory/index.js +22 -0
  544. package/dist/react-native/generated/classic/directory/index.js.map +1 -0
  545. package/dist/react-native/generated/classic/file/index.d.ts +634 -0
  546. package/dist/react-native/generated/classic/file/index.d.ts.map +1 -0
  547. package/dist/react-native/generated/classic/file/index.js +35 -0
  548. package/dist/react-native/generated/classic/file/index.js.map +1 -0
  549. package/dist/react-native/generated/classic/index.d.ts +5 -0
  550. package/dist/react-native/generated/classic/index.d.ts.map +1 -0
  551. package/dist/react-native/generated/classic/index.js +4 -0
  552. package/dist/react-native/generated/classic/index.js.map +1 -0
  553. package/dist/react-native/generated/classic/service/index.d.ts +63 -0
  554. package/dist/react-native/generated/classic/service/index.d.ts.map +1 -0
  555. package/dist/react-native/generated/classic/service/index.js +17 -0
  556. package/dist/react-native/generated/classic/service/index.js.map +1 -0
  557. package/dist/react-native/generated/classic/share/index.d.ts +380 -0
  558. package/dist/react-native/generated/classic/share/index.d.ts.map +1 -0
  559. package/dist/react-native/generated/classic/share/index.js +30 -0
  560. package/dist/react-native/generated/classic/share/index.js.map +1 -0
  561. package/dist/react-native/generated/fileClient.d.ts +24 -0
  562. package/dist/react-native/generated/fileClient.d.ts.map +1 -0
  563. package/dist/react-native/generated/fileClient.js +37 -0
  564. package/dist/react-native/generated/fileClient.js.map +1 -0
  565. package/dist/react-native/generated/index.d.ts +11 -0
  566. package/dist/react-native/generated/index.d.ts.map +1 -0
  567. package/dist/react-native/generated/index.js +6 -0
  568. package/dist/react-native/generated/index.js.map +1 -0
  569. package/dist/react-native/generated/logger.d.ts +2 -0
  570. package/dist/react-native/generated/logger.d.ts.map +1 -0
  571. package/dist/react-native/generated/logger.js +5 -0
  572. package/dist/react-native/generated/logger.js.map +1 -0
  573. package/dist/react-native/generated/models/index.d.ts +3 -0
  574. package/dist/react-native/generated/models/index.d.ts.map +1 -0
  575. package/dist/react-native/generated/models/index.js +4 -0
  576. package/dist/react-native/generated/models/index.js.map +1 -0
  577. package/dist/react-native/generated/models/models.d.ts +942 -0
  578. package/dist/react-native/generated/models/models.d.ts.map +1 -0
  579. package/dist/react-native/generated/models/models.js +2515 -0
  580. package/dist/react-native/generated/models/models.js.map +1 -0
  581. package/dist/react-native/generated/static-helpers/platform-types-browser.d.mts +6 -0
  582. package/dist/react-native/generated/static-helpers/platform-types-browser.d.mts.map +1 -0
  583. package/dist/react-native/generated/static-helpers/platform-types-browser.mjs +2 -0
  584. package/dist/react-native/generated/static-helpers/platform-types-browser.mjs.map +1 -0
  585. package/dist/react-native/generated/static-helpers/platform-types.d.ts +6 -0
  586. package/dist/react-native/generated/static-helpers/platform-types.d.ts.map +1 -0
  587. package/dist/react-native/generated/static-helpers/platform-types.js +2 -0
  588. package/dist/react-native/generated/static-helpers/platform-types.js.map +1 -0
  589. package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.d.mts +13 -0
  590. package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.d.mts.map +1 -0
  591. package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.mjs +15 -0
  592. package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.mjs.map +1 -0
  593. package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.d.ts +2 -0
  594. package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -0
  595. package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.js +2 -0
  596. package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.js.map +1 -0
  597. package/dist/react-native/generated/static-helpers/serialization/xml-helpers.d.ts +146 -0
  598. package/dist/react-native/generated/static-helpers/serialization/xml-helpers.d.ts.map +1 -0
  599. package/dist/react-native/generated/static-helpers/serialization/xml-helpers.js +446 -0
  600. package/dist/react-native/generated/static-helpers/serialization/xml-helpers.js.map +1 -0
  601. package/dist/react-native/generated/static-helpers/storageCompatResponse.d.ts +44 -0
  602. package/dist/react-native/generated/static-helpers/storageCompatResponse.d.ts.map +1 -0
  603. package/dist/react-native/generated/static-helpers/storageCompatResponse.js +36 -0
  604. package/dist/react-native/generated/static-helpers/storageCompatResponse.js.map +1 -0
  605. package/dist/react-native/generated/static-helpers/urlTemplate.d.ts +5 -0
  606. package/dist/react-native/generated/static-helpers/urlTemplate.d.ts.map +1 -0
  607. package/dist/react-native/generated/static-helpers/urlTemplate.js +200 -0
  608. package/dist/react-native/generated/static-helpers/urlTemplate.js.map +1 -0
  609. package/dist/react-native/{generated/src/models/index.d.ts → generated-classic-models.d.ts} +58 -58
  610. package/dist/react-native/generated-classic-models.d.ts.map +1 -0
  611. package/dist/react-native/{generated/src/models/index.js → generated-classic-models.js} +1 -1
  612. package/dist/react-native/generated-classic-models.js.map +1 -0
  613. package/dist/react-native/generatedModels.d.ts +21 -2
  614. package/dist/react-native/generatedModels.d.ts.map +1 -1
  615. package/dist/react-native/generatedModels.js.map +1 -1
  616. package/dist/react-native/index.d.ts +2 -2
  617. package/dist/react-native/index.d.ts.map +1 -1
  618. package/dist/react-native/index.js +2 -2
  619. package/dist/react-native/index.js.map +1 -1
  620. package/dist/react-native/models.d.ts +3 -0
  621. package/dist/react-native/models.d.ts.map +1 -1
  622. package/dist/react-native/models.js +20 -0
  623. package/dist/react-native/models.js.map +1 -1
  624. package/dist/react-native/utils/constants.js +2 -2
  625. package/dist/react-native/utils/constants.js.map +1 -1
  626. package/dist/react-native/utils/utils.common.d.ts +22 -2
  627. package/dist/react-native/utils/utils.common.d.ts.map +1 -1
  628. package/dist/react-native/utils/utils.common.js +48 -0
  629. package/dist/react-native/utils/utils.common.js.map +1 -1
  630. package/package.json +19 -22
  631. package/dist/browser/StorageContextClient.d.ts +0 -9
  632. package/dist/browser/StorageContextClient.d.ts.map +0 -1
  633. package/dist/browser/StorageContextClient.js +0 -18
  634. package/dist/browser/StorageContextClient.js.map +0 -1
  635. package/dist/browser/generated/src/index.d.ts +0 -4
  636. package/dist/browser/generated/src/index.d.ts.map +0 -1
  637. package/dist/browser/generated/src/index.js +0 -11
  638. package/dist/browser/generated/src/index.js.map +0 -1
  639. package/dist/browser/generated/src/models/index.d.ts.map +0 -1
  640. package/dist/browser/generated/src/models/index.js.map +0 -1
  641. package/dist/browser/generated/src/models/mappers.d.ts +0 -135
  642. package/dist/browser/generated/src/models/mappers.d.ts.map +0 -1
  643. package/dist/browser/generated/src/models/mappers.js +0 -6300
  644. package/dist/browser/generated/src/models/mappers.js.map +0 -1
  645. package/dist/browser/generated/src/models/parameters.d.ts +0 -134
  646. package/dist/browser/generated/src/models/parameters.d.ts.map +0 -1
  647. package/dist/browser/generated/src/models/parameters.js +0 -1419
  648. package/dist/browser/generated/src/models/parameters.js.map +0 -1
  649. package/dist/browser/generated/src/operations/directory.d.ts +0 -65
  650. package/dist/browser/generated/src/operations/directory.d.ts.map +0 -1
  651. package/dist/browser/generated/src/operations/directory.js +0 -380
  652. package/dist/browser/generated/src/operations/directory.js.map +0 -1
  653. package/dist/browser/generated/src/operations/file.d.ts +0 -162
  654. package/dist/browser/generated/src/operations/file.d.ts.map +0 -1
  655. package/dist/browser/generated/src/operations/file.js +0 -879
  656. package/dist/browser/generated/src/operations/file.js.map +0 -1
  657. package/dist/browser/generated/src/operations/index.d.ts +0 -5
  658. package/dist/browser/generated/src/operations/index.d.ts.map +0 -1
  659. package/dist/browser/generated/src/operations/index.js +0 -12
  660. package/dist/browser/generated/src/operations/index.js.map +0 -1
  661. package/dist/browser/generated/src/operations/service.d.ts +0 -39
  662. package/dist/browser/generated/src/operations/service.d.ts.map +0 -1
  663. package/dist/browser/generated/src/operations/service.js +0 -176
  664. package/dist/browser/generated/src/operations/service.js.map +0 -1
  665. package/dist/browser/generated/src/operations/share.d.ts +0 -111
  666. package/dist/browser/generated/src/operations/share.d.ts.map +0 -1
  667. package/dist/browser/generated/src/operations/share.js +0 -672
  668. package/dist/browser/generated/src/operations/share.js.map +0 -1
  669. package/dist/browser/generated/src/operationsInterfaces/directory.d.ts +0 -57
  670. package/dist/browser/generated/src/operationsInterfaces/directory.d.ts.map +0 -1
  671. package/dist/browser/generated/src/operationsInterfaces/directory.js +0 -9
  672. package/dist/browser/generated/src/operationsInterfaces/directory.js.map +0 -1
  673. package/dist/browser/generated/src/operationsInterfaces/file.d.ts +0 -154
  674. package/dist/browser/generated/src/operationsInterfaces/file.d.ts.map +0 -1
  675. package/dist/browser/generated/src/operationsInterfaces/file.js +0 -9
  676. package/dist/browser/generated/src/operationsInterfaces/file.js.map +0 -1
  677. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +0 -5
  678. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +0 -1
  679. package/dist/browser/generated/src/operationsInterfaces/index.js +0 -12
  680. package/dist/browser/generated/src/operationsInterfaces/index.js.map +0 -1
  681. package/dist/browser/generated/src/operationsInterfaces/service.d.ts +0 -31
  682. package/dist/browser/generated/src/operationsInterfaces/service.d.ts.map +0 -1
  683. package/dist/browser/generated/src/operationsInterfaces/service.js +0 -9
  684. package/dist/browser/generated/src/operationsInterfaces/service.js.map +0 -1
  685. package/dist/browser/generated/src/operationsInterfaces/share.d.ts +0 -103
  686. package/dist/browser/generated/src/operationsInterfaces/share.d.ts.map +0 -1
  687. package/dist/browser/generated/src/operationsInterfaces/share.js +0 -9
  688. package/dist/browser/generated/src/operationsInterfaces/share.js.map +0 -1
  689. package/dist/browser/generated/src/storageClient.d.ts +0 -20
  690. package/dist/browser/generated/src/storageClient.d.ts.map +0 -1
  691. package/dist/browser/generated/src/storageClient.js +0 -59
  692. package/dist/browser/generated/src/storageClient.js.map +0 -1
  693. package/dist/commonjs/StorageContextClient.d.ts +0 -9
  694. package/dist/commonjs/StorageContextClient.d.ts.map +0 -1
  695. package/dist/commonjs/StorageContextClient.js.map +0 -7
  696. package/dist/commonjs/generated/src/index.d.ts +0 -4
  697. package/dist/commonjs/generated/src/index.d.ts.map +0 -1
  698. package/dist/commonjs/generated/src/index.js.map +0 -7
  699. package/dist/commonjs/generated/src/models/index.d.ts.map +0 -1
  700. package/dist/commonjs/generated/src/models/index.js.map +0 -7
  701. package/dist/commonjs/generated/src/models/mappers.d.ts +0 -135
  702. package/dist/commonjs/generated/src/models/mappers.d.ts.map +0 -1
  703. package/dist/commonjs/generated/src/models/mappers.js +0 -6583
  704. package/dist/commonjs/generated/src/models/mappers.js.map +0 -7
  705. package/dist/commonjs/generated/src/models/parameters.d.ts +0 -134
  706. package/dist/commonjs/generated/src/models/parameters.d.ts.map +0 -1
  707. package/dist/commonjs/generated/src/models/parameters.js +0 -1700
  708. package/dist/commonjs/generated/src/models/parameters.js.map +0 -7
  709. package/dist/commonjs/generated/src/operations/directory.d.ts +0 -65
  710. package/dist/commonjs/generated/src/operations/directory.d.ts.map +0 -1
  711. package/dist/commonjs/generated/src/operations/directory.js +0 -432
  712. package/dist/commonjs/generated/src/operations/directory.js.map +0 -7
  713. package/dist/commonjs/generated/src/operations/file.d.ts +0 -162
  714. package/dist/commonjs/generated/src/operations/file.d.ts.map +0 -1
  715. package/dist/commonjs/generated/src/operations/file.js +0 -967
  716. package/dist/commonjs/generated/src/operations/file.js.map +0 -7
  717. package/dist/commonjs/generated/src/operations/index.d.ts +0 -5
  718. package/dist/commonjs/generated/src/operations/index.d.ts.map +0 -1
  719. package/dist/commonjs/generated/src/operations/index.js.map +0 -7
  720. package/dist/commonjs/generated/src/operations/service.d.ts +0 -39
  721. package/dist/commonjs/generated/src/operations/service.d.ts.map +0 -1
  722. package/dist/commonjs/generated/src/operations/service.js +0 -219
  723. package/dist/commonjs/generated/src/operations/service.js.map +0 -7
  724. package/dist/commonjs/generated/src/operations/share.d.ts +0 -111
  725. package/dist/commonjs/generated/src/operations/share.d.ts.map +0 -1
  726. package/dist/commonjs/generated/src/operations/share.js +0 -749
  727. package/dist/commonjs/generated/src/operations/share.js.map +0 -7
  728. package/dist/commonjs/generated/src/operationsInterfaces/directory.d.ts +0 -57
  729. package/dist/commonjs/generated/src/operationsInterfaces/directory.d.ts.map +0 -1
  730. package/dist/commonjs/generated/src/operationsInterfaces/directory.js.map +0 -7
  731. package/dist/commonjs/generated/src/operationsInterfaces/file.d.ts +0 -154
  732. package/dist/commonjs/generated/src/operationsInterfaces/file.d.ts.map +0 -1
  733. package/dist/commonjs/generated/src/operationsInterfaces/file.js.map +0 -7
  734. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +0 -5
  735. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +0 -1
  736. package/dist/commonjs/generated/src/operationsInterfaces/index.js +0 -28
  737. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +0 -7
  738. package/dist/commonjs/generated/src/operationsInterfaces/service.d.ts +0 -31
  739. package/dist/commonjs/generated/src/operationsInterfaces/service.d.ts.map +0 -1
  740. package/dist/commonjs/generated/src/operationsInterfaces/service.js.map +0 -7
  741. package/dist/commonjs/generated/src/operationsInterfaces/share.d.ts +0 -103
  742. package/dist/commonjs/generated/src/operationsInterfaces/share.d.ts.map +0 -1
  743. package/dist/commonjs/generated/src/operationsInterfaces/share.js.map +0 -7
  744. package/dist/commonjs/generated/src/storageClient.d.ts +0 -20
  745. package/dist/commonjs/generated/src/storageClient.d.ts.map +0 -1
  746. package/dist/commonjs/generated/src/storageClient.js +0 -83
  747. package/dist/commonjs/generated/src/storageClient.js.map +0 -7
  748. package/dist/esm/StorageContextClient.d.ts +0 -9
  749. package/dist/esm/StorageContextClient.d.ts.map +0 -1
  750. package/dist/esm/StorageContextClient.js +0 -18
  751. package/dist/esm/StorageContextClient.js.map +0 -1
  752. package/dist/esm/generated/src/index.d.ts +0 -4
  753. package/dist/esm/generated/src/index.d.ts.map +0 -1
  754. package/dist/esm/generated/src/index.js +0 -11
  755. package/dist/esm/generated/src/index.js.map +0 -1
  756. package/dist/esm/generated/src/models/index.d.ts.map +0 -1
  757. package/dist/esm/generated/src/models/index.js.map +0 -1
  758. package/dist/esm/generated/src/models/mappers.d.ts +0 -135
  759. package/dist/esm/generated/src/models/mappers.d.ts.map +0 -1
  760. package/dist/esm/generated/src/models/mappers.js +0 -6300
  761. package/dist/esm/generated/src/models/mappers.js.map +0 -1
  762. package/dist/esm/generated/src/models/parameters.d.ts +0 -134
  763. package/dist/esm/generated/src/models/parameters.d.ts.map +0 -1
  764. package/dist/esm/generated/src/models/parameters.js +0 -1419
  765. package/dist/esm/generated/src/models/parameters.js.map +0 -1
  766. package/dist/esm/generated/src/operations/directory.d.ts +0 -65
  767. package/dist/esm/generated/src/operations/directory.d.ts.map +0 -1
  768. package/dist/esm/generated/src/operations/directory.js +0 -380
  769. package/dist/esm/generated/src/operations/directory.js.map +0 -1
  770. package/dist/esm/generated/src/operations/file.d.ts +0 -162
  771. package/dist/esm/generated/src/operations/file.d.ts.map +0 -1
  772. package/dist/esm/generated/src/operations/file.js +0 -879
  773. package/dist/esm/generated/src/operations/file.js.map +0 -1
  774. package/dist/esm/generated/src/operations/index.d.ts +0 -5
  775. package/dist/esm/generated/src/operations/index.d.ts.map +0 -1
  776. package/dist/esm/generated/src/operations/index.js +0 -12
  777. package/dist/esm/generated/src/operations/index.js.map +0 -1
  778. package/dist/esm/generated/src/operations/service.d.ts +0 -39
  779. package/dist/esm/generated/src/operations/service.d.ts.map +0 -1
  780. package/dist/esm/generated/src/operations/service.js +0 -176
  781. package/dist/esm/generated/src/operations/service.js.map +0 -1
  782. package/dist/esm/generated/src/operations/share.d.ts +0 -111
  783. package/dist/esm/generated/src/operations/share.d.ts.map +0 -1
  784. package/dist/esm/generated/src/operations/share.js +0 -672
  785. package/dist/esm/generated/src/operations/share.js.map +0 -1
  786. package/dist/esm/generated/src/operationsInterfaces/directory.d.ts +0 -57
  787. package/dist/esm/generated/src/operationsInterfaces/directory.d.ts.map +0 -1
  788. package/dist/esm/generated/src/operationsInterfaces/directory.js +0 -9
  789. package/dist/esm/generated/src/operationsInterfaces/directory.js.map +0 -1
  790. package/dist/esm/generated/src/operationsInterfaces/file.d.ts +0 -154
  791. package/dist/esm/generated/src/operationsInterfaces/file.d.ts.map +0 -1
  792. package/dist/esm/generated/src/operationsInterfaces/file.js +0 -9
  793. package/dist/esm/generated/src/operationsInterfaces/file.js.map +0 -1
  794. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +0 -5
  795. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +0 -1
  796. package/dist/esm/generated/src/operationsInterfaces/index.js +0 -12
  797. package/dist/esm/generated/src/operationsInterfaces/index.js.map +0 -1
  798. package/dist/esm/generated/src/operationsInterfaces/service.d.ts +0 -31
  799. package/dist/esm/generated/src/operationsInterfaces/service.d.ts.map +0 -1
  800. package/dist/esm/generated/src/operationsInterfaces/service.js +0 -9
  801. package/dist/esm/generated/src/operationsInterfaces/service.js.map +0 -1
  802. package/dist/esm/generated/src/operationsInterfaces/share.d.ts +0 -103
  803. package/dist/esm/generated/src/operationsInterfaces/share.d.ts.map +0 -1
  804. package/dist/esm/generated/src/operationsInterfaces/share.js +0 -9
  805. package/dist/esm/generated/src/operationsInterfaces/share.js.map +0 -1
  806. package/dist/esm/generated/src/storageClient.d.ts +0 -20
  807. package/dist/esm/generated/src/storageClient.d.ts.map +0 -1
  808. package/dist/esm/generated/src/storageClient.js +0 -59
  809. package/dist/esm/generated/src/storageClient.js.map +0 -1
  810. package/dist/react-native/StorageContextClient.d.ts +0 -9
  811. package/dist/react-native/StorageContextClient.d.ts.map +0 -1
  812. package/dist/react-native/StorageContextClient.js +0 -18
  813. package/dist/react-native/StorageContextClient.js.map +0 -1
  814. package/dist/react-native/generated/src/index.d.ts +0 -4
  815. package/dist/react-native/generated/src/index.d.ts.map +0 -1
  816. package/dist/react-native/generated/src/index.js +0 -11
  817. package/dist/react-native/generated/src/index.js.map +0 -1
  818. package/dist/react-native/generated/src/models/index.d.ts.map +0 -1
  819. package/dist/react-native/generated/src/models/index.js.map +0 -1
  820. package/dist/react-native/generated/src/models/mappers.d.ts +0 -135
  821. package/dist/react-native/generated/src/models/mappers.d.ts.map +0 -1
  822. package/dist/react-native/generated/src/models/mappers.js +0 -6300
  823. package/dist/react-native/generated/src/models/mappers.js.map +0 -1
  824. package/dist/react-native/generated/src/models/parameters.d.ts +0 -134
  825. package/dist/react-native/generated/src/models/parameters.d.ts.map +0 -1
  826. package/dist/react-native/generated/src/models/parameters.js +0 -1419
  827. package/dist/react-native/generated/src/models/parameters.js.map +0 -1
  828. package/dist/react-native/generated/src/operations/directory.d.ts +0 -65
  829. package/dist/react-native/generated/src/operations/directory.d.ts.map +0 -1
  830. package/dist/react-native/generated/src/operations/directory.js +0 -380
  831. package/dist/react-native/generated/src/operations/directory.js.map +0 -1
  832. package/dist/react-native/generated/src/operations/file.d.ts +0 -162
  833. package/dist/react-native/generated/src/operations/file.d.ts.map +0 -1
  834. package/dist/react-native/generated/src/operations/file.js +0 -879
  835. package/dist/react-native/generated/src/operations/file.js.map +0 -1
  836. package/dist/react-native/generated/src/operations/index.d.ts +0 -5
  837. package/dist/react-native/generated/src/operations/index.d.ts.map +0 -1
  838. package/dist/react-native/generated/src/operations/index.js +0 -12
  839. package/dist/react-native/generated/src/operations/index.js.map +0 -1
  840. package/dist/react-native/generated/src/operations/service.d.ts +0 -39
  841. package/dist/react-native/generated/src/operations/service.d.ts.map +0 -1
  842. package/dist/react-native/generated/src/operations/service.js +0 -176
  843. package/dist/react-native/generated/src/operations/service.js.map +0 -1
  844. package/dist/react-native/generated/src/operations/share.d.ts +0 -111
  845. package/dist/react-native/generated/src/operations/share.d.ts.map +0 -1
  846. package/dist/react-native/generated/src/operations/share.js +0 -672
  847. package/dist/react-native/generated/src/operations/share.js.map +0 -1
  848. package/dist/react-native/generated/src/operationsInterfaces/directory.d.ts +0 -57
  849. package/dist/react-native/generated/src/operationsInterfaces/directory.d.ts.map +0 -1
  850. package/dist/react-native/generated/src/operationsInterfaces/directory.js +0 -9
  851. package/dist/react-native/generated/src/operationsInterfaces/directory.js.map +0 -1
  852. package/dist/react-native/generated/src/operationsInterfaces/file.d.ts +0 -154
  853. package/dist/react-native/generated/src/operationsInterfaces/file.d.ts.map +0 -1
  854. package/dist/react-native/generated/src/operationsInterfaces/file.js +0 -9
  855. package/dist/react-native/generated/src/operationsInterfaces/file.js.map +0 -1
  856. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +0 -5
  857. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +0 -1
  858. package/dist/react-native/generated/src/operationsInterfaces/index.js +0 -12
  859. package/dist/react-native/generated/src/operationsInterfaces/index.js.map +0 -1
  860. package/dist/react-native/generated/src/operationsInterfaces/service.d.ts +0 -31
  861. package/dist/react-native/generated/src/operationsInterfaces/service.d.ts.map +0 -1
  862. package/dist/react-native/generated/src/operationsInterfaces/service.js +0 -9
  863. package/dist/react-native/generated/src/operationsInterfaces/service.js.map +0 -1
  864. package/dist/react-native/generated/src/operationsInterfaces/share.d.ts +0 -103
  865. package/dist/react-native/generated/src/operationsInterfaces/share.d.ts.map +0 -1
  866. package/dist/react-native/generated/src/operationsInterfaces/share.js +0 -9
  867. package/dist/react-native/generated/src/operationsInterfaces/share.js.map +0 -1
  868. package/dist/react-native/generated/src/storageClient.d.ts +0 -20
  869. package/dist/react-native/generated/src/storageClient.d.ts.map +0 -1
  870. package/dist/react-native/generated/src/storageClient.js +0 -59
  871. package/dist/react-native/generated/src/storageClient.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Pipeline.d.ts","sourceRoot":"","sources":["../../src/Pipeline.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,4BAA4B,EAE7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,cAAc,IAAI,qBAAqB,EACvC,aAAa,IAAI,WAAW,EAC5B,eAAe,IAAI,WAAW,EAC9B,aAAa,EACb,oBAAoB,EACpB,wBAAwB,IAAI,oBAAoB,EAChD,eAAe,IAAI,WAAW,EAG/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,aAAa,IAAI,YAAY,EAC7B,sBAAsB,IAAI,gBAAgB,EAI1C,eAAe,IAAI,eAAe,EACnC,MAAM,2BAA2B,CAAC;AAOnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxD,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EACL,mBAAmB,EAEnB,0BAA0B,EAQ3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAInB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI7D,OAAO,EACL,kBAAkB,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,oBAAoB,GAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,sBAAsB,CAAC,EACnB,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;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,UAAU,CAAC,EAAE,UAAU,GAAG,eAAe,EACzC,eAAe,GAAE,sBAA2B,GAC3C,QAAQ,CAOV;AA8BD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,YAAY,GAAG,4BAA4B,CAsEzF;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,YAAY,GACrB,0BAA0B,GAAG,mBAAmB,GAAG,eAAe,CAiBpE"}
@@ -28,7 +28,6 @@ module.exports = __toCommonJS(Pipeline_exports);
28
28
  var import_core_http_compat = require("@azure/core-http-compat");
29
29
  var import_core_rest_pipeline = require("@azure/core-rest-pipeline");
30
30
  var import_core_client = require("@azure/core-client");
31
- var import_core_xml = require("@azure/core-xml");
32
31
  var import_core_auth = require("@azure/core-auth");
33
32
  var import_log = require("./log.js");
34
33
  var import_storage_common = require("@azure/storage-common");
@@ -113,7 +112,7 @@ function getCoreClientOptions(pipeline) {
113
112
  }
114
113
  let corePipeline = pipeline._corePipeline;
115
114
  if (!corePipeline) {
116
- const packageDetails = `azsdk-js-azure-storage-blob/${import_constants.SDK_VERSION}`;
115
+ const packageDetails = `azsdk-js-storage-file-share/${import_constants.SDK_VERSION}`;
117
116
  const userAgentPrefix = restOptions.userAgentOptions && restOptions.userAgentOptions.userAgentPrefix ? `${restOptions.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
118
117
  corePipeline = (0, import_core_client.createClientPipeline)({
119
118
  ...restOptions,
@@ -124,33 +123,16 @@ function getCoreClientOptions(pipeline) {
124
123
  },
125
124
  userAgentOptions: {
126
125
  userAgentPrefix
127
- },
128
- serializationOptions: {
129
- stringifyXML: import_core_xml.stringifyXML,
130
- serializerOptions: {
131
- xml: {
132
- // Use customized XML char key of "#" so we can deserialize metadata
133
- // with "_" key
134
- xmlCharKey: "#"
135
- }
136
- }
137
- },
138
- deserializationOptions: {
139
- parseXML: import_core_xml.parseXML,
140
- serializerOptions: {
141
- xml: {
142
- // Use customized XML char key of "#" so we can deserialize metadata
143
- // with "_" key
144
- xmlCharKey: "#"
145
- }
146
- }
147
126
  }
148
127
  });
149
128
  corePipeline.removePolicy({ phase: "Retry" });
150
129
  corePipeline.removePolicy({ name: import_core_rest_pipeline.decompressResponsePolicyName });
130
+ corePipeline.removePolicy({ name: "deserializationPolicy" });
131
+ corePipeline.removePolicy({ name: "serializationPolicy" });
151
132
  corePipeline.addPolicy((0, import_storage_common.storageCorrectContentLengthPolicy)());
152
133
  corePipeline.addPolicy((0, import_storage_common.storageRetryPolicy)(restOptions.retryOptions), { phase: "Retry" });
153
134
  corePipeline.addPolicy((0, import_storage_common.storageRequestFailureDetailsParserPolicy)());
135
+ corePipeline.addPolicy((0, import_storage_common.storageRedirectRangeHeaderPolicy)());
154
136
  corePipeline.addPolicy((0, import_storage_common.storageBrowserPolicy)());
155
137
  const downlevelResults = processDownlevelPipeline(pipeline);
156
138
  if (downlevelResults) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Pipeline.ts"],
4
- "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n KeepAliveOptions,\n ExtendedServiceClientOptions,\n HttpPipelineLogLevel,\n} from \"@azure/core-http-compat\";\nimport {\n CompatResponse as HttpOperationResponse,\n RequestPolicy as IHttpClient,\n HttpHeadersLike as HttpHeaders,\n RequestPolicy,\n RequestPolicyFactory,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n WebResourceLike as WebResource,\n convertHttpClient,\n createRequestPolicyFactoryPolicy,\n} from \"@azure/core-http-compat\";\nimport type {\n ProxySettings as ProxyOptions,\n UserAgentPolicyOptions as UserAgentOptions,\n Pipeline as CorePipeline,\n PipelinePolicy,\n HttpClient,\n RequestBodyType as HttpRequestBody,\n} from \"@azure/core-rest-pipeline\";\nimport {\n bearerTokenAuthenticationPolicy,\n decompressResponsePolicyName,\n} from \"@azure/core-rest-pipeline\";\nimport { authorizeRequestOnTenantChallenge, createClientPipeline } from \"@azure/core-client\";\nimport { parseXML, stringifyXML } from \"@azure/core-xml\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\n\nimport { logger } from \"./log.js\";\nimport type { Credential, StorageRetryOptions } from \"@azure/storage-common\";\nimport {\n AnonymousCredential,\n StorageRetryPolicyFactory,\n StorageSharedKeyCredential,\n getCachedDefaultHttpClient,\n storageBrowserPolicy,\n storageRetryPolicy,\n storageSharedKeyCredentialPolicy,\n StorageBrowserPolicyFactory,\n storageCorrectContentLengthPolicy,\n storageRequestFailureDetailsParserPolicy,\n} from \"@azure/storage-common\";\nimport {\n StorageOAuthScopes,\n StorageFileLoggingAllowedHeaderNames,\n StorageFileLoggingAllowedQueryParameters,\n SDK_VERSION,\n} from \"./utils/constants.js\";\nimport type { ShareTokenIntent } from \"./generatedModels.js\";\n\n// Export following interfaces and types for customers who want to implement their\n// own RequestPolicy or HTTPClient\nexport {\n StorageOAuthScopes,\n type IHttpClient,\n type HttpHeaders,\n type HttpRequestBody,\n type HttpOperationResponse,\n type WebResource,\n type RequestPolicyFactory,\n type RequestPolicy,\n type RequestPolicyOptions,\n};\n\n/**\n * A subset of `@azure/core-http` ServiceClientOptions\n */\nexport interface ServiceClientOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * Optional. Overrides the default policy factories.\n */\n requestPolicyFactories?:\n | RequestPolicyFactory[]\n | ((defaultRequestPolicyFactories: RequestPolicyFactory[]) => void | RequestPolicyFactory[]);\n}\n\n/**\n * Option interface for Pipeline constructor.\n */\nexport interface PipelineOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * Intent of using TokenCredential in file requests.\n */\n shareTokenIntent?: ShareTokenIntent;\n}\n\n/**\n * An interface for the {@link Pipeline} class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport interface PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n readonly options: PipelineOptions;\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n toServiceClientOptions(): ServiceClientOptions;\n}\n\n/**\n * A helper to decide if a given argument satisfies the Pipeline contract\n * @param pipeline - An argument that may be a Pipeline\n * @returns true when the argument satisfies the Pipeline contract\n */\nexport function isPipelineLike(pipeline: unknown): pipeline is PipelineLike {\n if (!pipeline || typeof pipeline !== \"object\") {\n return false;\n }\n\n const castPipeline = pipeline as PipelineLike;\n\n return (\n Array.isArray(castPipeline.factories) &&\n typeof castPipeline.options === \"object\" &&\n typeof castPipeline.toServiceClientOptions === \"function\"\n );\n}\n\n/**\n * A Pipeline class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport class Pipeline implements PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n public readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n public readonly options: PipelineOptions;\n\n /**\n * Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface.\n *\n * @param factories -\n * @param options -\n */\n constructor(factories: RequestPolicyFactory[], options: PipelineOptions = {}) {\n this.factories = factories;\n this.options = options;\n }\n\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n public toServiceClientOptions(): ServiceClientOptions {\n return {\n httpClient: this.options.httpClient,\n requestPolicyFactories: this.factories,\n };\n }\n}\n\n/**\n * Options interface for the {@link newPipeline} function.\n */\nexport interface StoragePipelineOptions {\n /**\n * Options to configure a proxy for outgoing requests.\n */\n proxyOptions?: ProxyOptions;\n /**\n * Options for adding user agent details to outgoing requests.\n */\n userAgentOptions?: UserAgentOptions;\n /**\n * Configures the built-in retry policy behavior.\n */\n retryOptions?: StorageRetryOptions;\n /**\n * Keep alive configurations. Default keep-alive is enabled.\n */\n keepAliveOptions?: KeepAliveOptions;\n /**\n * Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * The audience used to retrieve an AAD token.\n * By default, audience 'https://storage.azure.com/.default' will be used.\n */\n audience?: string;\n}\n\n/**\n * Creates a new Pipeline object with Credential provided.\n *\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param pipelineOptions - Optional. Options.\n * @returns A new Pipeline object.\n */\nexport function newPipeline(\n credential?: Credential | TokenCredential,\n pipelineOptions: StoragePipelineOptions = {},\n): Pipeline {\n if (!credential) {\n credential = new AnonymousCredential();\n }\n const pipeline = new Pipeline([], pipelineOptions);\n (pipeline as any)._credential = credential;\n return pipeline;\n}\n\nfunction processDownlevelPipeline(\n pipeline: PipelineLike,\n): { wrappedPolicies: PipelinePolicy; afterRetry: boolean } | undefined {\n const knownFactoryFunctions = [\n isAnonymousCredential,\n isStorageSharedKeyCredential,\n isCoreHttpBearerTokenFactory,\n isStorageBrowserPolicyFactory,\n isStorageRetryPolicyFactory,\n isStorageTelemetryPolicyFactory,\n isCoreHttpPolicyFactory,\n ];\n if (pipeline.factories.length) {\n const novelFactories = pipeline.factories.filter((factory) => {\n return !knownFactoryFunctions.some((knownFactory) => knownFactory(factory));\n });\n if (novelFactories.length) {\n const hasInjector = novelFactories.some((factory) => isInjectorPolicyFactory(factory));\n // if there are any left over, wrap in a requestPolicyFactoryPolicy\n return {\n wrappedPolicies: createRequestPolicyFactoryPolicy(novelFactories),\n afterRetry: hasInjector,\n };\n }\n }\n return undefined;\n}\n\nexport function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceClientOptions {\n const { httpClient: v1Client, ...restOptions } = pipeline.options as StoragePipelineOptions;\n\n let httpClient: HttpClient = (pipeline as any)._coreHttpClient;\n if (!httpClient) {\n httpClient = v1Client ? convertHttpClient(v1Client) : getCachedDefaultHttpClient();\n (pipeline as any)._coreHttpClient = httpClient;\n }\n\n let corePipeline: CorePipeline = (pipeline as any)._corePipeline;\n if (!corePipeline) {\n const packageDetails = `azsdk-js-azure-storage-blob/${SDK_VERSION}`;\n const userAgentPrefix =\n restOptions.userAgentOptions && restOptions.userAgentOptions.userAgentPrefix\n ? `${restOptions.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n corePipeline = createClientPipeline({\n ...restOptions,\n loggingOptions: {\n additionalAllowedHeaderNames: StorageFileLoggingAllowedHeaderNames,\n additionalAllowedQueryParameters: StorageFileLoggingAllowedQueryParameters,\n logger: logger.info,\n },\n userAgentOptions: {\n userAgentPrefix,\n },\n serializationOptions: {\n stringifyXML,\n serializerOptions: {\n xml: {\n // Use customized XML char key of \"#\" so we can deserialize metadata\n // with \"_\" key\n xmlCharKey: \"#\",\n },\n },\n },\n deserializationOptions: {\n parseXML,\n serializerOptions: {\n xml: {\n // Use customized XML char key of \"#\" so we can deserialize metadata\n // with \"_\" key\n xmlCharKey: \"#\",\n },\n },\n },\n });\n corePipeline.removePolicy({ phase: \"Retry\" });\n corePipeline.removePolicy({ name: decompressResponsePolicyName });\n corePipeline.addPolicy(storageCorrectContentLengthPolicy());\n corePipeline.addPolicy(storageRetryPolicy(restOptions.retryOptions), { phase: \"Retry\" });\n corePipeline.addPolicy(storageRequestFailureDetailsParserPolicy());\n corePipeline.addPolicy(storageBrowserPolicy());\n const downlevelResults = processDownlevelPipeline(pipeline);\n if (downlevelResults) {\n corePipeline.addPolicy(\n downlevelResults.wrappedPolicies,\n downlevelResults.afterRetry ? { afterPhase: \"Retry\" } : undefined,\n );\n }\n const credential = getCredentialFromPipeline(pipeline);\n if (isTokenCredential(credential)) {\n corePipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes: restOptions.audience ?? StorageOAuthScopes,\n challengeCallbacks: { authorizeRequestOnChallenge: authorizeRequestOnTenantChallenge },\n }),\n { phase: \"Sign\" },\n );\n } else if (credential instanceof StorageSharedKeyCredential) {\n corePipeline.addPolicy(\n storageSharedKeyCredentialPolicy({\n accountName: credential.accountName,\n accountKey: (credential as any).accountKey,\n }),\n { phase: \"Sign\" },\n );\n }\n (pipeline as any)._corePipeline = corePipeline;\n }\n return {\n ...restOptions,\n allowInsecureConnection: true,\n httpClient,\n pipeline: corePipeline,\n };\n}\n\nexport function getCredentialFromPipeline(\n pipeline: PipelineLike,\n): StorageSharedKeyCredential | AnonymousCredential | TokenCredential {\n // see if we squirreled one away on the type itself\n if ((pipeline as any)._credential) {\n return (pipeline as any)._credential;\n }\n // if it came from another package, loop over the factories and look for one like before\n let credential = new AnonymousCredential();\n for (const factory of pipeline.factories) {\n if (isTokenCredential((factory as any).credential)) {\n // Only works if the factory has been attached a \"credential\" property.\n // We do that in newPipeline() when using TokenCredential.\n credential = (factory as any).credential;\n } else if (isStorageSharedKeyCredential(factory)) {\n return factory;\n }\n }\n return credential;\n}\n\nfunction isStorageSharedKeyCredential(\n factory: RequestPolicyFactory,\n): factory is StorageSharedKeyCredential {\n if (factory instanceof StorageSharedKeyCredential) {\n return true;\n }\n return factory.constructor.name === \"StorageSharedKeyCredential\";\n}\n\nfunction isAnonymousCredential(factory: RequestPolicyFactory): factory is AnonymousCredential {\n if (factory instanceof AnonymousCredential) {\n return true;\n }\n return factory.constructor.name === \"AnonymousCredential\";\n}\n\nfunction isCoreHttpBearerTokenFactory(factory: RequestPolicyFactory): boolean {\n return isTokenCredential((factory as any).credential);\n}\n\nfunction isStorageBrowserPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageBrowserPolicyFactory {\n if (factory instanceof StorageBrowserPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageBrowserPolicyFactory\";\n}\n\nfunction isStorageRetryPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageRetryPolicyFactory {\n if (factory instanceof StorageRetryPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageRetryPolicyFactory\";\n}\n\nfunction isStorageTelemetryPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"TelemetryPolicyFactory\";\n}\n\nfunction isInjectorPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"InjectorPolicyFactory\";\n}\n\nfunction isCoreHttpPolicyFactory(factory: RequestPolicyFactory): boolean {\n const knownPolicies = [\n \"GenerateClientRequestIdPolicy\",\n \"TracingPolicy\",\n \"LogPolicy\",\n \"ProxyPolicy\",\n \"DisableResponseDecompressionPolicy\",\n \"KeepAlivePolicy\",\n \"DeserializationPolicy\",\n ];\n\n const mockHttpClient: IHttpClient = {\n sendRequest: async (request: WebResource) => {\n return {\n request,\n headers: request.headers.clone(),\n status: 500,\n };\n },\n };\n const mockRequestPolicyOptions: RequestPolicyOptions = {\n log(_logLevel: HttpPipelineLogLevel, _message: string): void {\n /* do nothing */\n },\n shouldLog(_logLevel: HttpPipelineLogLevel): boolean {\n return false;\n },\n };\n const policyInstance = factory.create(mockHttpClient, mockRequestPolicyOptions);\n const policyName = policyInstance.constructor.name;\n // bundlers sometimes add a custom suffix to the class name to make it unique\n return knownPolicies.some((knownPolicyName) => {\n return policyName.startsWith(knownPolicyName);\n });\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,8BAUO;AASP,gCAGO;AACP,yBAAwE;AAC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AACA,SAAO,QAAQ,YAAY,SAAS;AACtC;AAEA,SAAS,6BAA6B,SAAwC;AAC5E,aAAO,oCAAmB,QAAgB,UAAU;AACtD;AAEA,SAAS,8BACP,SACwC;AACxC,MAAI,mBAAmB,mDAA6B;AAClD,WAAO;AAAA,EACT;AACA,SAAO,QAAQ,YAAY,SAAS;AACtC;AAEA,SAAS,4BACP,SACsC;AACtC,MAAI,mBAAmB,iDAA2B;AAChD,WAAO;AAAA,EACT;AACA,SAAO,QAAQ,YAAY,SAAS;AACtC;AAEA,SAAS,gCAAgC,SAAwC;AAC/E,SAAO,QAAQ,YAAY,SAAS;AACtC;AAEA,SAAS,wBAAwB,SAAwC;AACvE,SAAO,QAAQ,YAAY,SAAS;AACtC;AAEA,SAAS,wBAAwB,SAAwC;AACvE,QAAM,gBAAgB;AAAA,IACpB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,QAAM,iBAA8B;AAAA,IAClC,aAAa,OAAO,YAAyB;AAC3C,aAAO;AAAA,QACL;AAAA,QACA,SAAS,QAAQ,QAAQ,MAAM;AAAA,QAC/B,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,EACF;AACA,QAAM,2BAAiD;AAAA,IACrD,IAAI,WAAiC,UAAwB;AAAA,IAE7D;AAAA,IACA,UAAU,WAA0C;AAClD,aAAO;AAAA,IACT;AAAA,EACF;AACA,QAAM,iBAAiB,QAAQ,OAAO,gBAAgB,wBAAwB;AAC9E,QAAM,aAAa,eAAe,YAAY;AAE9C,SAAO,cAAc,KAAK,CAAC,oBAAoB;AAC7C,WAAO,WAAW,WAAW,eAAe;AAAA,EAC9C,CAAC;AACH;",
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n KeepAliveOptions,\n ExtendedServiceClientOptions,\n HttpPipelineLogLevel,\n} from \"@azure/core-http-compat\";\nimport {\n CompatResponse as HttpOperationResponse,\n RequestPolicy as IHttpClient,\n HttpHeadersLike as HttpHeaders,\n RequestPolicy,\n RequestPolicyFactory,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n WebResourceLike as WebResource,\n convertHttpClient,\n createRequestPolicyFactoryPolicy,\n} from \"@azure/core-http-compat\";\nimport type {\n ProxySettings as ProxyOptions,\n UserAgentPolicyOptions as UserAgentOptions,\n Pipeline as CorePipeline,\n PipelinePolicy,\n HttpClient,\n RequestBodyType as HttpRequestBody,\n} from \"@azure/core-rest-pipeline\";\nimport {\n bearerTokenAuthenticationPolicy,\n decompressResponsePolicyName,\n} from \"@azure/core-rest-pipeline\";\nimport { authorizeRequestOnTenantChallenge, createClientPipeline } from \"@azure/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\n\nimport { logger } from \"./log.js\";\nimport type { Credential, StorageRetryOptions } from \"@azure/storage-common\";\nimport {\n AnonymousCredential,\n StorageRetryPolicyFactory,\n StorageSharedKeyCredential,\n getCachedDefaultHttpClient,\n storageBrowserPolicy,\n storageRetryPolicy,\n storageSharedKeyCredentialPolicy,\n StorageBrowserPolicyFactory,\n storageCorrectContentLengthPolicy,\n storageRequestFailureDetailsParserPolicy,\n storageRedirectRangeHeaderPolicy,\n} from \"@azure/storage-common\";\nimport {\n StorageOAuthScopes,\n StorageFileLoggingAllowedHeaderNames,\n StorageFileLoggingAllowedQueryParameters,\n SDK_VERSION,\n} from \"./utils/constants.js\";\nimport type { ShareTokenIntent } from \"./generatedModels.js\";\n\n// Export following interfaces and types for customers who want to implement their\n// own RequestPolicy or HTTPClient\nexport {\n StorageOAuthScopes,\n type IHttpClient,\n type HttpHeaders,\n type HttpRequestBody,\n type HttpOperationResponse,\n type WebResource,\n type RequestPolicyFactory,\n type RequestPolicy,\n type RequestPolicyOptions,\n};\n\n/**\n * A subset of `@azure/core-http` ServiceClientOptions\n */\nexport interface ServiceClientOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * Optional. Overrides the default policy factories.\n */\n requestPolicyFactories?:\n | RequestPolicyFactory[]\n | ((defaultRequestPolicyFactories: RequestPolicyFactory[]) => void | RequestPolicyFactory[]);\n}\n\n/**\n * Option interface for Pipeline constructor.\n */\nexport interface PipelineOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * Intent of using TokenCredential in file requests.\n */\n shareTokenIntent?: ShareTokenIntent;\n}\n\n/**\n * An interface for the {@link Pipeline} class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport interface PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n readonly options: PipelineOptions;\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n toServiceClientOptions(): ServiceClientOptions;\n}\n\n/**\n * A helper to decide if a given argument satisfies the Pipeline contract\n * @param pipeline - An argument that may be a Pipeline\n * @returns true when the argument satisfies the Pipeline contract\n */\nexport function isPipelineLike(pipeline: unknown): pipeline is PipelineLike {\n if (!pipeline || typeof pipeline !== \"object\") {\n return false;\n }\n\n const castPipeline = pipeline as PipelineLike;\n\n return (\n Array.isArray(castPipeline.factories) &&\n typeof castPipeline.options === \"object\" &&\n typeof castPipeline.toServiceClientOptions === \"function\"\n );\n}\n\n/**\n * A Pipeline class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport class Pipeline implements PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n public readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n public readonly options: PipelineOptions;\n\n /**\n * Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface.\n *\n * @param factories -\n * @param options -\n */\n constructor(factories: RequestPolicyFactory[], options: PipelineOptions = {}) {\n this.factories = factories;\n this.options = options;\n }\n\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n public toServiceClientOptions(): ServiceClientOptions {\n return {\n httpClient: this.options.httpClient,\n requestPolicyFactories: this.factories,\n };\n }\n}\n\n/**\n * Options interface for the {@link newPipeline} function.\n */\nexport interface StoragePipelineOptions {\n /**\n * Options to configure a proxy for outgoing requests.\n */\n proxyOptions?: ProxyOptions;\n /**\n * Options for adding user agent details to outgoing requests.\n */\n userAgentOptions?: UserAgentOptions;\n /**\n * Configures the built-in retry policy behavior.\n */\n retryOptions?: StorageRetryOptions;\n /**\n * Keep alive configurations. Default keep-alive is enabled.\n */\n keepAliveOptions?: KeepAliveOptions;\n /**\n * Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * The audience used to retrieve an AAD token.\n * By default, audience 'https://storage.azure.com/.default' will be used.\n */\n audience?: string;\n}\n\n/**\n * Creates a new Pipeline object with Credential provided.\n *\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param pipelineOptions - Optional. Options.\n * @returns A new Pipeline object.\n */\nexport function newPipeline(\n credential?: Credential | TokenCredential,\n pipelineOptions: StoragePipelineOptions = {},\n): Pipeline {\n if (!credential) {\n credential = new AnonymousCredential();\n }\n const pipeline = new Pipeline([], pipelineOptions);\n (pipeline as any)._credential = credential;\n return pipeline;\n}\n\nfunction processDownlevelPipeline(\n pipeline: PipelineLike,\n): { wrappedPolicies: PipelinePolicy; afterRetry: boolean } | undefined {\n const knownFactoryFunctions = [\n isAnonymousCredential,\n isStorageSharedKeyCredential,\n isCoreHttpBearerTokenFactory,\n isStorageBrowserPolicyFactory,\n isStorageRetryPolicyFactory,\n isStorageTelemetryPolicyFactory,\n isCoreHttpPolicyFactory,\n ];\n if (pipeline.factories.length) {\n const novelFactories = pipeline.factories.filter((factory) => {\n return !knownFactoryFunctions.some((knownFactory) => knownFactory(factory));\n });\n if (novelFactories.length) {\n const hasInjector = novelFactories.some((factory) => isInjectorPolicyFactory(factory));\n // if there are any left over, wrap in a requestPolicyFactoryPolicy\n return {\n wrappedPolicies: createRequestPolicyFactoryPolicy(novelFactories),\n afterRetry: hasInjector,\n };\n }\n }\n return undefined;\n}\n\nexport function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceClientOptions {\n const { httpClient: v1Client, ...restOptions } = pipeline.options as StoragePipelineOptions;\n\n let httpClient: HttpClient = (pipeline as any)._coreHttpClient;\n if (!httpClient) {\n httpClient = v1Client ? convertHttpClient(v1Client) : getCachedDefaultHttpClient();\n (pipeline as any)._coreHttpClient = httpClient;\n }\n\n let corePipeline: CorePipeline = (pipeline as any)._corePipeline;\n if (!corePipeline) {\n const packageDetails = `azsdk-js-storage-file-share/${SDK_VERSION}`;\n const userAgentPrefix =\n restOptions.userAgentOptions && restOptions.userAgentOptions.userAgentPrefix\n ? `${restOptions.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n corePipeline = createClientPipeline({\n ...restOptions,\n loggingOptions: {\n additionalAllowedHeaderNames: StorageFileLoggingAllowedHeaderNames,\n additionalAllowedQueryParameters: StorageFileLoggingAllowedQueryParameters,\n logger: logger.info,\n },\n userAgentOptions: {\n userAgentPrefix,\n },\n });\n corePipeline.removePolicy({ phase: \"Retry\" });\n corePipeline.removePolicy({ name: decompressResponsePolicyName });\n corePipeline.removePolicy({ name: \"deserializationPolicy\" });\n corePipeline.removePolicy({ name: \"serializationPolicy\" });\n corePipeline.addPolicy(storageCorrectContentLengthPolicy());\n corePipeline.addPolicy(storageRetryPolicy(restOptions.retryOptions), { phase: \"Retry\" });\n corePipeline.addPolicy(storageRequestFailureDetailsParserPolicy());\n corePipeline.addPolicy(storageRedirectRangeHeaderPolicy());\n corePipeline.addPolicy(storageBrowserPolicy());\n const downlevelResults = processDownlevelPipeline(pipeline);\n if (downlevelResults) {\n corePipeline.addPolicy(\n downlevelResults.wrappedPolicies,\n downlevelResults.afterRetry ? { afterPhase: \"Retry\" } : undefined,\n );\n }\n const credential = getCredentialFromPipeline(pipeline);\n if (isTokenCredential(credential)) {\n corePipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes: restOptions.audience ?? StorageOAuthScopes,\n challengeCallbacks: { authorizeRequestOnChallenge: authorizeRequestOnTenantChallenge },\n }),\n { phase: \"Sign\" },\n );\n } else if (credential instanceof StorageSharedKeyCredential) {\n corePipeline.addPolicy(\n storageSharedKeyCredentialPolicy({\n accountName: credential.accountName,\n accountKey: (credential as any).accountKey,\n }),\n { phase: \"Sign\" },\n );\n }\n (pipeline as any)._corePipeline = corePipeline;\n }\n return {\n ...restOptions,\n allowInsecureConnection: true,\n httpClient,\n pipeline: corePipeline,\n };\n}\n\nexport function getCredentialFromPipeline(\n pipeline: PipelineLike,\n): StorageSharedKeyCredential | AnonymousCredential | TokenCredential {\n // see if we squirreled one away on the type itself\n if ((pipeline as any)._credential) {\n return (pipeline as any)._credential;\n }\n // if it came from another package, loop over the factories and look for one like before\n let credential = new AnonymousCredential();\n for (const factory of pipeline.factories) {\n if (isTokenCredential((factory as any).credential)) {\n // Only works if the factory has been attached a \"credential\" property.\n // We do that in newPipeline() when using TokenCredential.\n credential = (factory as any).credential;\n } else if (isStorageSharedKeyCredential(factory)) {\n return factory;\n }\n }\n return credential;\n}\n\nfunction isStorageSharedKeyCredential(\n factory: RequestPolicyFactory,\n): factory is StorageSharedKeyCredential {\n if (factory instanceof StorageSharedKeyCredential) {\n return true;\n }\n return factory.constructor.name === \"StorageSharedKeyCredential\";\n}\n\nfunction isAnonymousCredential(factory: RequestPolicyFactory): factory is AnonymousCredential {\n if (factory instanceof AnonymousCredential) {\n return true;\n }\n return factory.constructor.name === \"AnonymousCredential\";\n}\n\nfunction isCoreHttpBearerTokenFactory(factory: RequestPolicyFactory): boolean {\n return isTokenCredential((factory as any).credential);\n}\n\nfunction isStorageBrowserPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageBrowserPolicyFactory {\n if (factory instanceof StorageBrowserPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageBrowserPolicyFactory\";\n}\n\nfunction isStorageRetryPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageRetryPolicyFactory {\n if (factory instanceof StorageRetryPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageRetryPolicyFactory\";\n}\n\nfunction isStorageTelemetryPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"TelemetryPolicyFactory\";\n}\n\nfunction isInjectorPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"InjectorPolicyFactory\";\n}\n\nfunction isCoreHttpPolicyFactory(factory: RequestPolicyFactory): boolean {\n const knownPolicies = [\n \"GenerateClientRequestIdPolicy\",\n \"TracingPolicy\",\n \"LogPolicy\",\n \"ProxyPolicy\",\n \"DisableResponseDecompressionPolicy\",\n \"KeepAlivePolicy\",\n \"DeserializationPolicy\",\n ];\n\n const mockHttpClient: IHttpClient = {\n sendRequest: async (request: WebResource) => {\n return {\n request,\n headers: request.headers.clone(),\n status: 500,\n };\n },\n };\n const mockRequestPolicyOptions: RequestPolicyOptions = {\n log(_logLevel: HttpPipelineLogLevel, _message: string): void {\n /* do nothing */\n },\n shouldLog(_logLevel: HttpPipelineLogLevel): boolean {\n return false;\n },\n };\n const policyInstance = factory.create(mockHttpClient, mockRequestPolicyOptions);\n const policyName = policyInstance.constructor.name;\n // bundlers sometimes add a custom suffix to the class name to make it unique\n return knownPolicies.some((knownPolicyName)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C1C,WAAO;AAAA,EACT;AACA,SAAO,QAAQ,YAAY,SAAS;AACtC;AAEA,SAAS,6BAA6B,SAAwC;AAC5E,aAAO,oCAAmB,QAAgB,UAAU;AACtD;AAEA,SAAS,8BACP,SACwC;AACxC,MAAI,mBAAmB,mDAA6B;AAClD,WAAO;AAAA,EACT;AACA,SAAO,QAAQ,YAAY,SAAS;AACtC;AAEA,SAAS,4BACP,SACsC;AACtC,MAAI,mBAAmB,iDAA2B;AAChD,WAAO;AAAA,EACT;AACA,SAAO,QAAQ,YAAY,SAAS;AACtC;AAEA,SAAS,gCAAgC,SAAwC;AAC/E,SAAO,QAAQ,YAAY,SAAS;AACtC;AAEA,SAAS,wBAAwB,SAAwC;AACvE,SAAO,QAAQ,YAAY,SAAS;AACtC;AAEA,SAAS,wBAAwB,SAAwC;AACvE,QAAM,gBAAgB;AAAA,IACpB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,QAAM,iBAA8B;AAAA,IAClC,aAAa,OAAO,YAAyB;AAC3C,aAAO;AAAA,QACL;AAAA,QACA,SAAS,QAAQ,QAAQ,MAAM;AAAA,QAC/B,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,EACF;AACA,QAAM,2BAAiD;AAAA,IACrD,IAAI,WAAiC,UAAwB;AAAA,IAE7D;AAAA,IACA,UAAU,WAA0C;AAClD,aAAO;AAAA,IACT;AAAA,EACF;AACA,QAAM,iBAAiB,QAAQ,OAAO,gBAAgB,wBAAwB;AAC9E,QAAM,aAAa,eAAe,YAAY;AAE9C,SAAO,cAAc,KAAK,CAAC,oBAAoB;AAC7C,WAAO,WAAW,WAAW,eAAe;AAAA,EAC9C,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import type { Pipeline } from "./Pipeline.js";
2
2
  import { StorageClient } from "./StorageClient.js";
3
- import type { ShareRestoreOptionalParams, ShareRestoreResponse } from "./generated/src/models/index.js";
3
+ import type { ShareRestoreOptionalParams, ShareRestoreResponse } from "./generated-classic-models.js";
4
4
  /**
5
5
  * ShareClientInternal is the thin wrapper for Share which contains internal helper methods.
6
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ShareClientInternal.d.ts","sourceRoot":"","sources":["../../src/ShareClientInternal.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAGzC;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,OAAO,CAAC,OAAO,CAAQ;gBAEX,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IAK9B,OAAO,CAAC,OAAO,GAAE,0BAA+B,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAG9F"}
1
+ {"version":3,"file":"ShareClientInternal.d.ts","sourceRoot":"","sources":["../../src/ShareClientInternal.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAIvC;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,OAAO,CAAC,OAAO,CAAkB;gBAErB,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IAK9B,OAAO,CAAC,OAAO,GAAE,0BAA+B,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAG9F"}
@@ -21,6 +21,7 @@ __export(ShareClientInternal_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(ShareClientInternal_exports);
23
23
  var import_StorageClient = require("./StorageClient.js");
24
+ var import_utils_common = require("./utils/utils.common.js");
24
25
  class ShareClientInternal extends import_StorageClient.StorageClient {
25
26
  context;
26
27
  constructor(url, pipeline) {
@@ -28,7 +29,7 @@ class ShareClientInternal extends import_StorageClient.StorageClient {
28
29
  this.context = this.storageClientContext.share;
29
30
  }
30
31
  async restore(options = {}) {
31
- return this.context.restore(options);
32
+ return (0, import_utils_common.adjustResponse)(await this.context.restore(options));
32
33
  }
33
34
  }
34
35
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/ShareClientInternal.ts"],
4
- "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Pipeline } from \"./Pipeline.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport type {\n ShareRestoreOptionalParams,\n ShareRestoreResponse,\n} from \"./generated/src/models/index.js\";\nimport type { Share } from \"./generated/src/operationsInterfaces/index.js\";\n\n/**\n * ShareClientInternal is the thin wrapper for Share which contains internal helper methods.\n */\nexport class ShareClientInternal extends StorageClient {\n private context: Share;\n\n constructor(url: string, pipeline: Pipeline) {\n super(url, pipeline);\n this.context = this.storageClientContext.share;\n }\n\n public async restore(options: ShareRestoreOptionalParams = {}): Promise<ShareRestoreResponse> {\n return this.context.restore(options);\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,2BAA8B;AAUvB,MAAM,4BAA4B,mCAAc;AAAA,EAC7C;AAAA,EAER,YAAY,KAAa,UAAoB;AAC3C,UAAM,KAAK,QAAQ;AACnB,SAAK,UAAU,KAAK,qBAAqB;AAAA,EAC3C;AAAA,EAEA,MAAa,QAAQ,UAAsC,CAAC,GAAkC;AAC5F,WAAO,KAAK,QAAQ,QAAQ,OAAO;AAAA,EACrC;AACF;",
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Pipeline } from \"./Pipeline.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport type {\n ShareRestoreOptionalParams,\n ShareRestoreResponse,\n} from \"./generated-classic-models.js\";\nimport type { ShareOperations } from \"./generated/index.js\";\nimport { adjustResponse } from \"./utils/utils.common.js\";\n\n/**\n * ShareClientInternal is the thin wrapper for Share which contains internal helper methods.\n */\nexport class ShareClientInternal extends StorageClient {\n private context: ShareOperations;\n\n constructor(url: string, pipeline: Pipeline) {\n super(url, pipeline);\n this.context = this.storageClientContext.share;\n }\n\n public async restore(options: ShareRestoreOptionalParams = {}): Promise<ShareRestoreResponse> {\n return adjustResponse(await this.context.restore(options));\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,2BAA8B;AAM9B,0BAA+B;AAKxB,MAAM,4BAA4B,mCAAc;AAAA,EAC7C;AAAA,EAER,YAAY,KAAa,UAAoB;AAC3C,UAAM,KAAK,QAAQ;AACnB,SAAK,UAAU,KAAK,qBAAqB;AAAA,EAC3C;AAAA,EAEA,MAAa,QAAQ,UAAsC,CAAC,GAAkC;AAC5F,eAAO,oCAAe,MAAM,KAAK,QAAQ,QAAQ,OAAO,CAAC;AAAA,EAC3D;AACF;",
6
6
  "names": []
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ShareServiceClient.d.ts","sourceRoot":"","sources":["../../src/ShareServiceClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EACV,qBAAqB,EAErB,mBAAmB,EACnB,mBAAmB,EACnB,4BAA4B,EAC5B,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,EACvB,uBAAuB,EAGvB,mCAAmC,EAGpC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,O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U,EAAE,mCAAmC,EAC/C,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,mCAAmC,CAAC;CAiEhD"}
@@ -185,10 +185,12 @@ class ShareServiceClient extends import_StorageClient.StorageClient {
185
185
  options,
186
186
  async (updatedOptions) => {
187
187
  return (0, import_utils_common.assertResponse)(
188
- await this.serviceContext.getProperties({
189
- ...updatedOptions,
190
- ...this.shareClientConfig
191
- })
188
+ (0, import_utils_common.adjustResponse)(
189
+ await this.serviceContext.getProperties({
190
+ ...updatedOptions,
191
+ ...this.shareClientConfig
192
+ })
193
+ )
192
194
  );
193
195
  }
194
196
  );
@@ -208,10 +210,12 @@ class ShareServiceClient extends import_StorageClient.StorageClient {
208
210
  options,
209
211
  async (updatedOptions) => {
210
212
  return (0, import_utils_common.assertResponse)(
211
- await this.serviceContext.setProperties(properties, {
212
- ...updatedOptions,
213
- ...this.shareClientConfig
214
- })
213
+ (0, import_utils_common.adjustResponse)(
214
+ await this.serviceContext.setProperties(properties, {
215
+ ...updatedOptions,
216
+ ...this.shareClientConfig
217
+ })
218
+ )
215
219
  );
216
220
  }
217
221
  );
@@ -429,11 +433,13 @@ class ShareServiceClient extends import_StorageClient.StorageClient {
429
433
  options,
430
434
  async (updatedOptions) => {
431
435
  const res = (0, import_utils_common.assertResponse)(
432
- await this.serviceContext.listSharesSegment({
433
- ...updatedOptions,
434
- ...this.shareClientConfig,
435
- marker
436
- })
436
+ (0, import_utils_common.adjustResponse)(
437
+ await this.serviceContext.listSharesSegment({
438
+ ...updatedOptions,
439
+ ...this.shareClientConfig,
440
+ marker
441
+ })
442
+ )
437
443
  );
438
444
  if (res.shareItems) {
439
445
  for (let i = 0; i < res.shareItems.length; i++) {
@@ -558,16 +564,18 @@ class ShareServiceClient extends import_StorageClient.StorageClient {
558
564
  getUserDelegationKeyOptions,
559
565
  async (updatedOptions) => {
560
566
  const response = (0, import_utils_common.assertResponse)(
561
- await this.serviceContext.getUserDelegationKey(
562
- {
563
- start: (0, import_utils_common.truncatedISO8061Date)(startsOn, false),
564
- expiry: (0, import_utils_common.truncatedISO8061Date)(expiresOn, false),
565
- delegatedUserTid: userDelegationTid
566
- },
567
- {
568
- abortSignal: options.abortSignal,
569
- tracingOptions: updatedOptions.tracingOptions
570
- }
567
+ (0, import_utils_common.adjustResponse)(
568
+ await this.serviceContext.getUserDelegationKey(
569
+ {
570
+ start: (0, import_utils_common.truncatedISO8061Date)(startsOn, false),
571
+ expiry: (0, import_utils_common.truncatedISO8061Date)(expiresOn, false),
572
+ delegatedUserTid: userDelegationTid
573
+ },
574
+ {
575
+ abortSignal: options.abortSignal,
576
+ tracingOptions: updatedOptions.tracingOptions
577
+ }
578
+ )
571
579
  )
572
580
  );
573
581
  const userDelegationKey = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/ShareServiceClient.ts"],
4
- "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type {\n FileServiceProperties,\n ListSharesIncludeType,\n ShareCreateResponse,\n ShareDeleteResponse,\n ServiceGetPropertiesResponse,\n ServiceSetPropertiesResponse,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel,\n SharePropertiesInternal,\n ServiceSetPropertiesHeaders,\n ServiceGetPropertiesHeaders,\n ServiceGetUserDelegationKeyResponse,\n ServiceGetUserDelegationKeyHeaders,\n UserDelegationKeyModel,\n} from \"./generatedModels.js\";\nimport type { ServiceGetUserDelegationKeyResponse as ServiceGetUserDelegationKeyResponseModel } from \"./generated/src/index.js\";\nimport type { Service } from \"./generated/src/operationsInterfaces/index.js\";\nimport type { Pipeline } from \"./Pipeline.js\";\nimport { isPipelineLike, newPipeline } from \"./Pipeline.js\";\nimport type { CommonOptions } from \"./StorageClient.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport { ShareClientInternal } from \"./ShareClientInternal.js\";\nimport type { ShareCreateOptions, ShareDeleteMethodOptions } from \"./Clients.js\";\nimport { ShareClient } from \"./Clients.js\";\nimport type { WithResponse } from \"./utils/utils.common.js\";\nimport {\n appendToURLPath,\n extractConnectionStringParts,\n assertResponse,\n removeEmptyString,\n truncatedISO8061Date,\n} from \"./utils/utils.common.js\";\nimport { Credential } from \"@azure/storage-common\";\nimport { StorageSharedKeyCredential } from \"@azure/storage-common\";\nimport { AnonymousCredential } from \"@azure/storage-common\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { isNodeLike } from \"@azure/core-util\";\nimport { tracingClient } from \"./utils/tracing.js\";\nimport type { ShareClientConfig, ShareClientOptions, ShareProtocols } from \"./models.js\";\nimport { toShareProtocols } from \"./models.js\";\nimport { AccountSASPermissions } from \"./AccountSASPermissions.js\";\nimport {\n generateAccountSASQueryParameters,\n generateAccountSASQueryParametersInternal,\n} from \"./AccountSASSignatureValues.js\";\nimport { AccountSASServices } from \"./AccountSASServices.js\";\nimport type { SASProtocol } from \"./SASQueryParameters.js\";\nimport type { SasIPRange } from \"./SasIPRange.js\";\nimport { appendToURLQuery } from \"./utils/utils.common.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\n\n/**\n * Options to configure Share - List Shares Segment operations.\n *\n * See:\n * - {@link ShareServiceClient.listSegments}\n * - {@link ShareServiceClient.listItems}\n * - {@link ShareServiceClient.listSharesSegment}\n */\ninterface ServiceListSharesSegmentOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Filters the results to return only entries whose\n * name begins with the specified prefix.\n */\n prefix?: string;\n /**\n * Specifies the maximum number of entries to\n * return. If the request does not specify maxResults, or specifies a value\n * greater than 5,000, the server will return up to 5,000 items.\n */\n maxResults?: number;\n\n /**\n * Include this parameter to\n * specify one or more datasets to include in the response.\n */\n include?: ListSharesIncludeType[];\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.listShares} operation.\n */\nexport interface ServiceListSharesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Filters the results to return only entries whose\n * name begins with the specified prefix.\n */\n prefix?: string;\n\n /**\n * Specifies that share snapshots should be included in the enumeration. Share Snapshots are listed from oldest to newest in the response.\n */\n includeMetadata?: boolean;\n\n /**\n * Specifies that share snapshot should be returned in the response.\n */\n includeSnapshots?: boolean;\n\n /**\n * Specifies that share soft deleted should be returned in the response.\n */\n includeDeleted?: boolean;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.getProperties} operation.\n */\nexport interface ServiceGetPropertiesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.setProperties} operation.\n */\nexport interface ServiceSetPropertiesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.undelete} operation.\n */\nexport interface ServiceUndeleteShareOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Properties of a share.\n */\nexport type ShareProperties = SharePropertiesInternal & {\n /**\n * The protocols that have been enabled on the share.\n */\n protocols?: ShareProtocols;\n};\n\n/**\n * A listed Azure Storage share item.\n */\nexport interface ShareItem {\n name: string;\n snapshot?: string;\n deleted?: boolean;\n version?: string;\n properties: ShareProperties;\n metadata?: { [propertyName: string]: string };\n}\n\n/**\n * An enumeration of shares.\n */\nexport interface ListSharesResponse {\n serviceEndpoint: string;\n prefix?: string;\n marker?: string;\n maxResults?: number;\n shareItems?: ShareItem[];\n continuationToken: string;\n}\n\n/**\n * Contains response data for the {@link ShareServiceClient.listShares} operation.\n */\nexport type ServiceListSharesSegmentResponse = WithResponse<\n ListSharesResponse & ServiceListSharesSegmentHeaders,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel\n>;\n\n/**\n * Options to configure {@link ShareServiceClient.generateAccountSasUrl} operation.\n */\nexport interface ServiceGenerateAccountSasUrlOptions {\n /**\n * The version of the service this SAS will target. If not specified, it will default to the version targeted by the\n * library.\n */\n version?: string;\n\n /**\n * Optional. SAS protocols allowed.\n */\n protocol?: SASProtocol;\n\n /**\n * Optional. When the SAS will take effect.\n */\n startsOn?: Date;\n /**\n * Optional. IP range allowed.\n */\n ipRange?: SasIPRange;\n}\n\n/**\n * Options to configure the Service - Get User Delegation Key.\n */\nexport interface ServiceGetUserDelegationKeyOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Parameters for getting user delegation key.\n */\nexport interface ShareGetUserDelegationKeyParameters {\n /**\n * The start time for the user delegation key. Must be within 7 days of the current time\n */\n startsOn: Date;\n /**\n * The end time for the user delegation key. Must be within 7 days of the current time\n */\n expiresOn: Date;\n /**\n * The tenant ID for the user delegation key.\n */\n delegatedUserTenantId: string;\n}\n\nfunction isShareGetUserDelegationKeyParameters(\n parameter: unknown,\n): parameter is ShareGetUserDelegationKeyParameters {\n if (!parameter || typeof parameter !== \"object\") {\n return false;\n }\n\n const castParameter = parameter as ShareGetUserDelegationKeyParameters;\n\n return castParameter.expiresOn instanceof Date;\n}\n\n/**\n * A ShareServiceClient represents a URL to the Azure Storage File service allowing you\n * to manipulate file shares.\n */\nexport class ShareServiceClient extends StorageClient {\n /**\n * serviceContext provided by protocol layer.\n */\n private serviceContext: Service;\n\n private shareClientConfig?: ShareClientConfig;\n\n /**\n *\n * Creates an instance of ShareServiceClient from connection string.\n *\n * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.\n * [ Note - Account connection string can only be used in NODE.JS runtime. ]\n * Account connection string example -\n * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`\n * SAS connection string example -\n * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`\n * @param options - Options to configure the HTTP pipeline.\n * @returns A new ShareServiceClient from the given connection string.\n */\n public static fromConnectionString(\n connectionString: string,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n ): ShareServiceClient {\n const extractedCreds = extractConnectionStringParts(connectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (isNodeLike) {\n const sharedKeyCredential = new StorageSharedKeyCredential(\n extractedCreds.accountName!,\n extractedCreds.accountKey,\n );\n const pipeline = newPipeline(sharedKeyCredential, options);\n return new ShareServiceClient(extractedCreds.url, pipeline, options);\n } else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n } else if (extractedCreds.kind === \"SASConnString\") {\n const pipeline = newPipeline(new AnonymousCredential(), options);\n return new ShareServiceClient(\n extractedCreds.url + \"?\" + extractedCreds.accountSas,\n pipeline,\n options,\n );\n } else {\n throw new Error(\n \"Connection string must be either an Account connection string or a SAS connection string\",\n );\n }\n }\n\n /**\n * Creates an instance of ShareServiceClient.\n *\n * @param url - A URL string pointing to Azure Storage file service, such as\n * \"https://myaccount.file.core.windows.net\". You can Append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.file.core.windows.net?sasString\".\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential, or TokenCredential,\n * If not specified, AnonymousCredential is used.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n\n constructor(\n url: string,\n credential?: Credential | TokenCredential,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n );\n /**\n * Creates an instance of ShareServiceClient.\n *\n * @param url - A URL string pointing to Azure Storage file service, such as\n * \"https://myaccount.file.core.windows.net\". You can Append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.file.core.windows.net?sasString\".\n * @param pipeline - Call newPipeline() to create a default\n * pipeline, or provide a customized pipeline.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n constructor(url: string, pipeline: Pipeline, options?: ShareClientConfig);\n constructor(\n url: string,\n credentialOrPipeline?: Credential | TokenCredential | Pipeline,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n ) {\n let pipeline: Pipeline;\n if (isPipelineLike(credentialOrPipeline)) {\n pipeline = credentialOrPipeline;\n } else if (\n credentialOrPipeline instanceof Credential ||\n isTokenCredential(credentialOrPipeline)\n ) {\n pipeline = newPipeline(credentialOrPipeline, options);\n } else {\n // The second parameter is undefined. Use anonymous credential.\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n\n super(url, pipeline);\n this.shareClientConfig = options;\n this.serviceContext = this.storageClientContext.service;\n }\n\n /**\n * Creates a ShareClient object.\n *\n * @param shareName - Name of a share.\n * @returns The ShareClient object for the given share name.\n *\n * Example usage:\n *\n * ```ts snippet:ReadmeSampleCreateShareClient\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * const shareName = \"<share name>\";\n * const shareClient = serviceClient.getShareClient(shareName);\n * await shareClient.create();\n * ```\n */\n public getShareClient(shareName: string): ShareClient {\n return new ShareClient(\n appendToURLPath(this.url, shareName),\n this.pipeline,\n this.shareClientConfig,\n );\n }\n\n /**\n * Creates a Share.\n *\n * @param shareName -\n * @param options -\n * @returns Share creation response and the corresponding share client.\n */\n public async createShare(\n shareName: string,\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ShareCreateOptions = {},\n ): Promise<{ shareCreateResponse: ShareCreateResponse; shareClient: ShareClient }> {\n return tracingClient.withSpan(\n \"ShareServiceClient-createShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(shareName);\n const shareCreateResponse = await shareClient.create(updatedOptions);\n return {\n shareCreateResponse,\n shareClient,\n };\n },\n );\n }\n\n /**\n * Deletes a Share.\n *\n * @param shareName -\n * @param options -\n * @returns Share deletion response and the corresponding share client.\n */\n public async deleteShare(\n shareName: string,\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ShareDeleteMethodOptions = {},\n ): Promise<ShareDeleteResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-deleteShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(shareName);\n return shareClient.delete(updatedOptions);\n },\n );\n }\n\n /**\n * Gets the properties of a storage account\u2019s file service, including properties\n * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @see https://learn.microsoft.com/rest/api/storageservices/get-file-service-properties\n *\n * @param options - Options to Get Properties operation.\n * @returns Response data for the Get Properties operation.\n */\n public async getProperties(\n options: ServiceGetPropertiesOptions = {},\n ): Promise<ServiceGetPropertiesResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-getProperties\",\n options,\n async (updatedOptions) => {\n return assertResponse<\n ServiceGetPropertiesHeaders & FileServiceProperties,\n ServiceGetPropertiesHeaders,\n FileServiceProperties\n >(\n await this.serviceContext.getProperties({\n ...updatedOptions,\n ...this.shareClientConfig,\n }),\n );\n },\n );\n }\n\n /**\n * Sets properties for a storage account\u2019s file service endpoint, including properties\n * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.\n * @see https://learn.microsoft.com/rest/api/storageservices/set-file-service-properties\n *\n * @param properties -\n * @param options - Options to Set Properties operation.\n * @returns Response data for the Set Properties operation.\n */\n public async setProperties(\n properties: FileServiceProperties,\n options: ServiceSetPropertiesOptions = {},\n ): Promise<ServiceSetPropertiesResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-setProperties\",\n options,\n async (updatedOptions) => {\n return assertResponse<ServiceSetPropertiesHeaders, ServiceSetPropertiesHeaders>(\n await this.serviceContext.setProperties(properties, {\n ...updatedOptions,\n ...this.shareClientConfig,\n }),\n );\n },\n );\n }\n\n /**\n * Returns an AsyncIterableIterator for {@link ServiceListSharesSegmentResponse} objects\n *\n * @param marker - A string value that identifies the portion of\n * the list of shares to be returned with the next listing operation. The\n * operation returns the ContinuationToken value within the response body if the\n * listing operation did not return all shares remaining to be listed\n * with the current page. The ContinuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to list shares operation.\n */\n private async *listSegments(\n marker?: string,\n options: ServiceListSharesSegmentOptions = {},\n ): AsyncIterableIterator<ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n let listSharesSegmentResponse;\n do {\n listSharesSegmentResponse = await this.listSharesSegment(marker, options);\n marker = listSharesSegmentResponse.continuationToken;\n yield await listSharesSegmentResponse;\n } while (marker);\n }\n\n /**\n * Returns an AsyncIterableIterator for share items\n *\n * @param options - Options to list shares operation.\n */\n private async *listItems(\n options: ServiceListSharesSegmentOptions = {},\n ): AsyncIterableIterator<ShareItem> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n let marker: string | undefined;\n for await (const segment of this.listSegments(marker, options)) {\n if (segment.shareItems) {\n yield* segment.shareItems;\n }\n }\n }\n\n /**\n * Returns an async iterable iterator to list all the shares\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the shares in pages.\n *\n * Example using `for await` syntax:\n *\n * ```ts snippet:ReadmeSampleListShares\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let i = 1;\n * for await (const share of serviceClient.listShares()) {\n * console.log(`Share${i++}: ${share.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```ts snippet:ReadmeSampleListShares_Iterator\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * const shareIter = serviceClient.listShares();\n * let i = 1;\n * let { value, done } = await shareIter.next();\n * while (!done) {\n * console.log(`Share ${i++}: ${value.name}`);\n * ({ value, done } = await shareIter.next());\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```ts snippet:ReadmeSampleListShares_ByPage\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let i = 1;\n * for await (const response of serviceClient.listShares().byPage({ maxPageSize: 20 })) {\n * console.log(`Page ${i++}:`);\n * for (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```ts snippet:ReadmeSampleListShares_Continuation\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let iterator = serviceClient.listShares().byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n *\n * for await (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n *\n * // Gets next marker\n * let marker = response.continuationToken;\n *\n * // Passing next marker as continuationToken\n * iterator = serviceClient.listShares().byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n *\n * for await (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n * ```\n *\n * @param options - Options to list shares operation.\n *\n * An asyncIterableIterator that supports paging.\n */\n public listShares(\n options: ServiceListSharesOptions = {},\n ): PagedAsyncIterableIterator<ShareItem, ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n const include: ListSharesIncludeType[] = [];\n if (options.includeMetadata) {\n include.push(\"metadata\");\n }\n if (options.includeSnapshots) {\n include.push(\"snapshots\");\n }\n if (options.includeDeleted) {\n include.push(\"deleted\");\n }\n\n const updatedOptions: ServiceListSharesSegmentOptions = {\n ...options,\n ...(include.length > 0 ? { include: include } : {}),\n };\n\n // AsyncIterableIterator to iterate over queues\n const iter = this.listItems(updatedOptions);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings: PageSettings = {}) => {\n return this.listSegments(removeEmptyString(settings.continuationToken), {\n maxResults: settings.maxPageSize,\n ...updatedOptions,\n });\n },\n };\n }\n\n /**\n * Gets the properties of a storage account's File service, including properties for Storage\n * Analytics metrics and CORS (Cross-Origin Resource Sharing) rules.\n *\n * @param marker - A string value that identifies the portion of\n * the list to be returned with the next list operation. The operation\n * returns a marker value within the response body if the list returned was\n * not complete. The marker value may then be used in a subsequent call to\n * request the next set of list items. The marker value is opaque to the\n * client.\n * @param options - Options to List Shares Segment operation.\n * @returns Response data for the List Shares Segment operation.\n */\n private async listSharesSegment(\n marker?: string,\n options: ServiceListSharesSegmentOptions = {},\n ): Promise<ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n return tracingClient.withSpan(\n \"ShareServiceClient-listSharesSegment\",\n options,\n async (updatedOptions) => {\n const res = assertResponse<\n ServiceListSharesSegmentHeaders & ListSharesResponseModel,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel\n >(\n await this.serviceContext.listSharesSegment({\n ...updatedOptions,\n ...this.shareClientConfig,\n marker,\n }),\n );\n\n // parse protocols\n if (res.shareItems) {\n for (let i = 0; i < res.shareItems.length; i++) {\n const protocolsStr = res.shareItems[i].properties.enabledProtocols;\n (res.shareItems[i].properties as any).protocols = toShareProtocols(protocolsStr);\n }\n }\n\n return res;\n },\n );\n }\n\n /**\n * Restores a previously deleted share.\n * This API is only functional if Share Soft Delete is enabled\n * for the storage account associated with the share.\n *\n * @param deletedShareName - The name of the previously deleted share.\n * @param deletedShareVersion - The version of the previously deleted share.\n * @param options - Options to Share undelete operation.\n * @returns Restored share.\n */\n public async undeleteShare(\n deletedShareName: string,\n deletedShareVersion: string,\n options: ServiceUndeleteShareOptions = {},\n ): Promise<ShareClient> {\n return tracingClient.withSpan(\n \"ShareServiceClient-undeleteShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(deletedShareName);\n await new ShareClientInternal(shareClient.url, this.pipeline).restore({\n ...updatedOptions,\n ...this.shareClientConfig,\n deletedShareName: deletedShareName,\n deletedShareVersion: deletedShareVersion,\n });\n return shareClient;\n },\n );\n }\n\n /**\n * Only available for ShareServiceClient constructed with a shared key credential.\n *\n * Generates an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateAccountSasUrl(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n const sas = generateAccountSASQueryParameters(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"f\").toString(),\n ...options,\n },\n this.credential,\n ).toString();\n\n return appendToURLQuery(this.url, sas);\n }\n\n /**\n * Only available for ShareServiceClient constructed with a shared key credential.\n *\n * Generates string to sign for an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateSasStringToSign(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n return generateAccountSASQueryParametersInternal(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"f\").toString(),\n ...options,\n },\n this.credential,\n ).stringToSign;\n }\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the File service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/get-user-delegation-key\n *\n * @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time\n * @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time\n */\n public async getUserDelegationKey(\n startsOn: Date,\n expiresOn: Date,\n options?: ServiceGetUserDelegationKeyOptions,\n ): Promise<ServiceGetUserDelegationKeyResponse>;\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the Blob service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/get-user-delegation-key\n *\n * @param parameters - Parameters to specific start time, expiry time and tenant id.\n */\n public async getUserDelegationKey(\n parameters: ShareGetUserDelegationKeyParameters,\n options?: ServiceGetUserDelegationKeyOptions,\n ): Promise<ServiceGetUserDelegationKeyResponse>;\n\n public async getUserDelegationKey(\n startsOnOrParam: Date | ShareGetUserDelegationKeyParameters,\n expiresOnOrOption: Date | ServiceGetUserDelegationKeyOptions | undefined,\n options: ServiceGetUserDelegationKeyOptions = {},\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n let startsOn = startsOnOrParam as Date;\n let expiresOn = expiresOnOrOption as Date;\n let userDelegationTid = undefined;\n let getUserDelegationKeyOptions = options as ServiceGetUserDelegationKeyOptions;\n if (isShareGetUserDelegationKeyParameters(startsOnOrParam)) {\n startsOn = startsOnOrParam.startsOn;\n expiresOn = startsOnOrParam.expiresOn;\n userDelegationTid = startsOnOrParam.delegatedUserTenantId;\n getUserDelegationKeyOptions = expiresOnOrOption as ServiceGetUserDelegationKeyOptions;\n }\n return tracingClient.withSpan(\n \"ShareServiceClient-getUserDelegationKey\",\n getUserDelegationKeyOptions,\n async (updatedOptions) => {\n const response = assertResponse<\n ServiceGetUserDelegationKeyResponseModel,\n ServiceGetUserDelegationKeyHeaders,\n UserDelegationKeyModel\n >(\n await this.serviceContext.getUserDelegationKey(\n {\n start: truncatedISO8061Date(startsOn, false),\n expiry: truncatedISO8061Date(expiresOn, false),\n delegatedUserTid: userDelegationTid,\n },\n {\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n },\n ),\n );\n\n const userDelegationKey = {\n signedObjectId: response.signedObjectId,\n signedTenantId: response.signedTenantId,\n signedStartsOn: new Date(response.signedStartsOn),\n signedExpiresOn: new Date(response.signedExpiresOn),\n signedService: response.signedService,\n signedVersion: response.signedVersion,\n signedDelegatedUserTenantId: response.signedDelegatedUserTenantId,\n value: response.value,\n };\n\n const res: ServiceGetUserDelegationKeyResponse = {\n _response: response._response,\n requestId: response.requestId,\n clientRequestId: response.clientRequestId,\n version: response.version,\n date: response.date,\n ...userDelegationKey,\n };\n\n return res;\n },\n );\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBA,sBAA4C;AAE5C,2BAA8B;AAC9B,iCAAoC;AAEpC,qBAA4B;AAE5B,0BAMO;AACP,4BAA2B;AAC3B,IAAAA,yBAA2C;AAC3C,IAAAA,yBAAoC;AAEpC,uBAA2B;AAC3B,qBAA8B;AAE9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,0BAAoB,gBAAgB;AACpC,oCAA8B;AAAA,IAChC;AACA,WAAO,6BAAc;AAAA,MACnB;AAAA,MACA;AAAA,MACA,OAAO,mBAAmB;AACxB,cAAM,eAAW;AAAA,UAKf,MAAM,KAAK,eAAe;AAAA,YACxB;AAAA,cACE,WAAO,0CAAqB,UAAU,KAAK;AAAA,cAC3C,YAAQ,0CAAqB,WAAW,KAAK;AAAA,cAC7C,kBAAkB;AAAA,YACpB;AAAA,YACA;AAAA,cACE,aAAa,QAAQ;AAAA,cACrB,gBAAgB,eAAe;AAAA,YACjC;AAAA,UACF;AAAA,QACF;AAEA,cAAM,oBAAoB;AAAA,UACxB,gBAAgB,SAAS;AAAA,UACzB,gBAAgB,SAAS;AAAA,UACzB,gBAAgB,IAAI,KAAK,SAAS,cAAc;AAAA,UAChD,iBAAiB,IAAI,KAAK,SAAS,eAAe;AAAA,UAClD,eAAe,SAAS;AAAA,UACxB,eAAe,SAAS;AAAA,UACxB,6BAA6B,SAAS;AAAA,UACtC,OAAO,SAAS;AAAA,QAClB;AAEA,cAAM,MAA2C;AAAA,UAC/C,WAAW,SAAS;AAAA,UACpB,WAAW,SAAS;AAAA,UACpB,iBAAiB,SAAS;AAAA,UAC1B,SAAS,SAAS;AAAA,UAClB,MAAM,SAAS;AAAA,UACf,GAAG;AAAA,QACL;AAEA,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type {\n FileServiceProperties,\n ListSharesIncludeType,\n ShareCreateResponse,\n ShareDeleteResponse,\n ServiceGetPropertiesResponse,\n ServiceSetPropertiesResponse,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel,\n SharePropertiesInternal,\n ServiceSetPropertiesHeaders,\n ServiceGetPropertiesHeaders,\n ServiceGetUserDelegationKeyResponse,\n ServiceGetUserDelegationKeyHeaders,\n} from \"./generatedModels.js\";\nimport type {\n ServiceOperations,\n UserDelegationKey as UserDelegationKeyInternal,\n} from \"./generated/index.js\";\nimport type { Pipeline } from \"./Pipeline.js\";\nimport { isPipelineLike, newPipeline } from \"./Pipeline.js\";\nimport type { CommonOptions } from \"./StorageClient.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport { ShareClientInternal } from \"./ShareClientInternal.js\";\nimport type { ShareCreateOptions, ShareDeleteMethodOptions } from \"./Clients.js\";\nimport { ShareClient } from \"./Clients.js\";\nimport type { WithResponse } from \"./utils/utils.common.js\";\nimport {\n appendToURLPath,\n extractConnectionStringParts,\n assertResponse,\n adjustResponse,\n removeEmptyString,\n truncatedISO8061Date,\n} from \"./utils/utils.common.js\";\nimport { Credential } from \"@azure/storage-common\";\nimport { StorageSharedKeyCredential } from \"@azure/storage-common\";\nimport { AnonymousCredential } from \"@azure/storage-common\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { isNodeLike } from \"@azure/core-util\";\nimport { tracingClient } from \"./utils/tracing.js\";\nimport type { ShareClientConfig, ShareClientOptions, ShareProtocols } from \"./models.js\";\nimport { toShareProtocols } from \"./models.js\";\nimport { AccountSASPermissions } from \"./AccountSASPermissions.js\";\nimport {\n generateAccountSASQueryParameters,\n generateAccountSASQueryParametersInternal,\n} from \"./AccountSASSignatureValues.js\";\nimport { AccountSASServices } from \"./AccountSASServices.js\";\nimport type { SASProtocol } from \"./SASQueryParameters.js\";\nimport type { SasIPRange } from \"./SasIPRange.js\";\nimport { appendToURLQuery } from \"./utils/utils.common.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\n\n/**\n * Options to configure Share - List Shares Segment operations.\n *\n * See:\n * - {@link ShareServiceClient.listSegments}\n * - {@link ShareServiceClient.listItems}\n * - {@link ShareServiceClient.listSharesSegment}\n */\ninterface ServiceListSharesSegmentOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Filters the results to return only entries whose\n * name begins with the specified prefix.\n */\n prefix?: string;\n /**\n * Specifies the maximum number of entries to\n * return. If the request does not specify maxResults, or specifies a value\n * greater than 5,000, the server will return up to 5,000 items.\n */\n maxResults?: number;\n\n /**\n * Include this parameter to\n * specify one or more datasets to include in the response.\n */\n include?: ListSharesIncludeType[];\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.listShares} operation.\n */\nexport interface ServiceListSharesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Filters the results to return only entries whose\n * name begins with the specified prefix.\n */\n prefix?: string;\n\n /**\n * Specifies that share snapshots should be included in the enumeration. Share Snapshots are listed from oldest to newest in the response.\n */\n includeMetadata?: boolean;\n\n /**\n * Specifies that share snapshot should be returned in the response.\n */\n includeSnapshots?: boolean;\n\n /**\n * Specifies that share soft deleted should be returned in the response.\n */\n includeDeleted?: boolean;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.getProperties} operation.\n */\nexport interface ServiceGetPropertiesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.setProperties} operation.\n */\nexport interface ServiceSetPropertiesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Options to configure the {@link ShareServiceClient.undelete} operation.\n */\nexport interface ServiceUndeleteShareOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Properties of a share.\n */\nexport type ShareProperties = SharePropertiesInternal & {\n /**\n * The protocols that have been enabled on the share.\n */\n protocols?: ShareProtocols;\n};\n\n/**\n * A listed Azure Storage share item.\n */\nexport interface ShareItem {\n name: string;\n snapshot?: string;\n deleted?: boolean;\n version?: string;\n properties: ShareProperties;\n metadata?: { [propertyName: string]: string };\n}\n\n/**\n * An enumeration of shares.\n */\nexport interface ListSharesResponse {\n serviceEndpoint: string;\n prefix?: string;\n marker?: string;\n maxResults?: number;\n shareItems?: ShareItem[];\n continuationToken: string;\n}\n\n/**\n * Contains response data for the {@link ShareServiceClient.listShares} operation.\n */\nexport type ServiceListSharesSegmentResponse = WithResponse<\n ListSharesResponse & ServiceListSharesSegmentHeaders,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel\n>;\n\n/**\n * Options to configure {@link ShareServiceClient.generateAccountSasUrl} operation.\n */\nexport interface ServiceGenerateAccountSasUrlOptions {\n /**\n * The version of the service this SAS will target. If not specified, it will default to the version targeted by the\n * library.\n */\n version?: string;\n\n /**\n * Optional. SAS protocols allowed.\n */\n protocol?: SASProtocol;\n\n /**\n * Optional. When the SAS will take effect.\n */\n startsOn?: Date;\n /**\n * Optional. IP range allowed.\n */\n ipRange?: SasIPRange;\n}\n\n/**\n * Options to configure the Service - Get User Delegation Key.\n */\nexport interface ServiceGetUserDelegationKeyOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Parameters for getting user delegation key.\n */\nexport interface ShareGetUserDelegationKeyParameters {\n /**\n * The start time for the user delegation key. Must be within 7 days of the current time\n */\n startsOn: Date;\n /**\n * The end time for the user delegation key. Must be within 7 days of the current time\n */\n expiresOn: Date;\n /**\n * The tenant ID for the user delegation key.\n */\n delegatedUserTenantId: string;\n}\n\nfunction isShareGetUserDelegationKeyParameters(\n parameter: unknown,\n): parameter is ShareGetUserDelegationKeyParameters {\n if (!parameter || typeof parameter !== \"object\") {\n return false;\n }\n\n const castParameter = parameter as ShareGetUserDelegationKeyParameters;\n\n return castParameter.expiresOn instanceof Date;\n}\n\n/**\n * A ShareServiceClient represents a URL to the Azure Storage File service allowing you\n * to manipulate file shares.\n */\nexport class ShareServiceClient extends StorageClient {\n /**\n * serviceContext provided by protocol layer.\n */\n private serviceContext: ServiceOperations;\n\n private shareClientConfig?: ShareClientConfig;\n\n /**\n *\n * Creates an instance of ShareServiceClient from connection string.\n *\n * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.\n * [ Note - Account connection string can only be used in NODE.JS runtime. ]\n * Account connection string example -\n * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`\n * SAS connection string example -\n * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`\n * @param options - Options to configure the HTTP pipeline.\n * @returns A new ShareServiceClient from the given connection string.\n */\n public static fromConnectionString(\n connectionString: string,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n ): ShareServiceClient {\n const extractedCreds = extractConnectionStringParts(connectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (isNodeLike) {\n const sharedKeyCredential = new StorageSharedKeyCredential(\n extractedCreds.accountName!,\n extractedCreds.accountKey,\n );\n const pipeline = newPipeline(sharedKeyCredential, options);\n return new ShareServiceClient(extractedCreds.url, pipeline, options);\n } else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n } else if (extractedCreds.kind === \"SASConnString\") {\n const pipeline = newPipeline(new AnonymousCredential(), options);\n return new ShareServiceClient(\n extractedCreds.url + \"?\" + extractedCreds.accountSas,\n pipeline,\n options,\n );\n } else {\n throw new Error(\n \"Connection string must be either an Account connection string or a SAS connection string\",\n );\n }\n }\n\n /**\n * Creates an instance of ShareServiceClient.\n *\n * @param url - A URL string pointing to Azure Storage file service, such as\n * \"https://myaccount.file.core.windows.net\". You can Append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.file.core.windows.net?sasString\".\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential, or TokenCredential,\n * If not specified, AnonymousCredential is used.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n\n constructor(\n url: string,\n credential?: Credential | TokenCredential,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n );\n /**\n * Creates an instance of ShareServiceClient.\n *\n * @param url - A URL string pointing to Azure Storage file service, such as\n * \"https://myaccount.file.core.windows.net\". You can Append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.file.core.windows.net?sasString\".\n * @param pipeline - Call newPipeline() to create a default\n * pipeline, or provide a customized pipeline.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n constructor(url: string, pipeline: Pipeline, options?: ShareClientConfig);\n constructor(\n url: string,\n credentialOrPipeline?: Credential | TokenCredential | Pipeline,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: ShareClientOptions,\n ) {\n let pipeline: Pipeline;\n if (isPipelineLike(credentialOrPipeline)) {\n pipeline = credentialOrPipeline;\n } else if (\n credentialOrPipeline instanceof Credential ||\n isTokenCredential(credentialOrPipeline)\n ) {\n pipeline = newPipeline(credentialOrPipeline, options);\n } else {\n // The second parameter is undefined. Use anonymous credential.\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n\n super(url, pipeline);\n this.shareClientConfig = options;\n this.serviceContext = this.storageClientContext.service;\n }\n\n /**\n * Creates a ShareClient object.\n *\n * @param shareName - Name of a share.\n * @returns The ShareClient object for the given share name.\n *\n * Example usage:\n *\n * ```ts snippet:ReadmeSampleCreateShareClient\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * const shareName = \"<share name>\";\n * const shareClient = serviceClient.getShareClient(shareName);\n * await shareClient.create();\n * ```\n */\n public getShareClient(shareName: string): ShareClient {\n return new ShareClient(\n appendToURLPath(this.url, shareName),\n this.pipeline,\n this.shareClientConfig,\n );\n }\n\n /**\n * Creates a Share.\n *\n * @param shareName -\n * @param options -\n * @returns Share creation response and the corresponding share client.\n */\n public async createShare(\n shareName: string,\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ShareCreateOptions = {},\n ): Promise<{ shareCreateResponse: ShareCreateResponse; shareClient: ShareClient }> {\n return tracingClient.withSpan(\n \"ShareServiceClient-createShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(shareName);\n const shareCreateResponse = await shareClient.create(updatedOptions);\n return {\n shareCreateResponse,\n shareClient,\n };\n },\n );\n }\n\n /**\n * Deletes a Share.\n *\n * @param shareName -\n * @param options -\n * @returns Share deletion response and the corresponding share client.\n */\n public async deleteShare(\n shareName: string,\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ShareDeleteMethodOptions = {},\n ): Promise<ShareDeleteResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-deleteShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(shareName);\n return shareClient.delete(updatedOptions);\n },\n );\n }\n\n /**\n * Gets the properties of a storage account\u2019s file service, including properties\n * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @see https://learn.microsoft.com/rest/api/storageservices/get-file-service-properties\n *\n * @param options - Options to Get Properties operation.\n * @returns Response data for the Get Properties operation.\n */\n public async getProperties(\n options: ServiceGetPropertiesOptions = {},\n ): Promise<ServiceGetPropertiesResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-getProperties\",\n options,\n async (updatedOptions) => {\n return assertResponse<\n ServiceGetPropertiesHeaders & FileServiceProperties,\n ServiceGetPropertiesHeaders,\n FileServiceProperties\n >(\n adjustResponse(\n await this.serviceContext.getProperties({\n ...updatedOptions,\n ...this.shareClientConfig,\n }),\n ),\n );\n },\n );\n }\n\n /**\n * Sets properties for a storage account\u2019s file service endpoint, including properties\n * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.\n * @see https://learn.microsoft.com/rest/api/storageservices/set-file-service-properties\n *\n * @param properties -\n * @param options - Options to Set Properties operation.\n * @returns Response data for the Set Properties operation.\n */\n public async setProperties(\n properties: FileServiceProperties,\n options: ServiceSetPropertiesOptions = {},\n ): Promise<ServiceSetPropertiesResponse> {\n return tracingClient.withSpan(\n \"ShareServiceClient-setProperties\",\n options,\n async (updatedOptions) => {\n return assertResponse<ServiceSetPropertiesHeaders, ServiceSetPropertiesHeaders>(\n adjustResponse(\n await this.serviceContext.setProperties(properties, {\n ...updatedOptions,\n ...this.shareClientConfig,\n }),\n ),\n );\n },\n );\n }\n\n /**\n * Returns an AsyncIterableIterator for {@link ServiceListSharesSegmentResponse} objects\n *\n * @param marker - A string value that identifies the portion of\n * the list of shares to be returned with the next listing operation. The\n * operation returns the ContinuationToken value within the response body if the\n * listing operation did not return all shares remaining to be listed\n * with the current page. The ContinuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to list shares operation.\n */\n private async *listSegments(\n marker?: string,\n options: ServiceListSharesSegmentOptions = {},\n ): AsyncIterableIterator<ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n let listSharesSegmentResponse;\n do {\n listSharesSegmentResponse = await this.listSharesSegment(marker, options);\n marker = listSharesSegmentResponse.continuationToken;\n yield await listSharesSegmentResponse;\n } while (marker);\n }\n\n /**\n * Returns an AsyncIterableIterator for share items\n *\n * @param options - Options to list shares operation.\n */\n private async *listItems(\n options: ServiceListSharesSegmentOptions = {},\n ): AsyncIterableIterator<ShareItem> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n let marker: string | undefined;\n for await (const segment of this.listSegments(marker, options)) {\n if (segment.shareItems) {\n yield* segment.shareItems;\n }\n }\n }\n\n /**\n * Returns an async iterable iterator to list all the shares\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the shares in pages.\n *\n * Example using `for await` syntax:\n *\n * ```ts snippet:ReadmeSampleListShares\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let i = 1;\n * for await (const share of serviceClient.listShares()) {\n * console.log(`Share${i++}: ${share.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```ts snippet:ReadmeSampleListShares_Iterator\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * const shareIter = serviceClient.listShares();\n * let i = 1;\n * let { value, done } = await shareIter.next();\n * while (!done) {\n * console.log(`Share ${i++}: ${value.name}`);\n * ({ value, done } = await shareIter.next());\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```ts snippet:ReadmeSampleListShares_ByPage\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let i = 1;\n * for await (const response of serviceClient.listShares().byPage({ maxPageSize: 20 })) {\n * console.log(`Page ${i++}:`);\n * for (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```ts snippet:ReadmeSampleListShares_Continuation\n * import { StorageSharedKeyCredential, ShareServiceClient } from \"@azure/storage-file-share\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n *\n * const credential = new StorageSharedKeyCredential(account, accountKey);\n * const serviceClient = new ShareServiceClient(\n * `https://${account}.file.core.windows.net`,\n * credential,\n * );\n *\n * let iterator = serviceClient.listShares().byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n *\n * for await (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n *\n * // Gets next marker\n * let marker = response.continuationToken;\n *\n * // Passing next marker as continuationToken\n * iterator = serviceClient.listShares().byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n *\n * for await (const share of response.shareItems || []) {\n * console.log(`\\tShare: ${share.name}`);\n * }\n * ```\n *\n * @param options - Options to list shares operation.\n *\n * An asyncIterableIterator that supports paging.\n */\n public listShares(\n options: ServiceListSharesOptions = {},\n ): PagedAsyncIterableIterator<ShareItem, ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n\n const include: ListSharesIncludeType[] = [];\n if (options.includeMetadata) {\n include.push(\"metadata\");\n }\n if (options.includeSnapshots) {\n include.push(\"snapshots\");\n }\n if (options.includeDeleted) {\n include.push(\"deleted\");\n }\n\n const updatedOptions: ServiceListSharesSegmentOptions = {\n ...options,\n ...(include.length > 0 ? { include: include } : {}),\n };\n\n // AsyncIterableIterator to iterate over queues\n const iter = this.listItems(updatedOptions);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings: PageSettings = {}) => {\n return this.listSegments(removeEmptyString(settings.continuationToken), {\n maxResults: settings.maxPageSize,\n ...updatedOptions,\n });\n },\n };\n }\n\n /**\n * Gets the properties of a storage account's File service, including properties for Storage\n * Analytics metrics and CORS (Cross-Origin Resource Sharing) rules.\n *\n * @param marker - A string value that identifies the portion of\n * the list to be returned with the next list operation. The operation\n * returns a marker value within the response body if the list returned was\n * not complete. The marker value may then be used in a subsequent call to\n * request the next set of list items. The marker value is opaque to the\n * client.\n * @param options - Options to List Shares Segment operation.\n * @returns Response data for the List Shares Segment operation.\n */\n private async listSharesSegment(\n marker?: string,\n options: ServiceListSharesSegmentOptions = {},\n ): Promise<ServiceListSharesSegmentResponse> {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n return tracingClient.withSpan(\n \"ShareServiceClient-listSharesSegment\",\n options,\n async (updatedOptions) => {\n const res = assertResponse<\n ServiceListSharesSegmentHeaders & ListSharesResponseModel,\n ServiceListSharesSegmentHeaders,\n ListSharesResponseModel\n >(\n adjustResponse(\n await this.serviceContext.listSharesSegment({\n ...updatedOptions,\n ...this.shareClientConfig,\n marker,\n }),\n ),\n );\n\n // parse protocols\n if (res.shareItems) {\n for (let i = 0; i < res.shareItems.length; i++) {\n const protocolsStr = res.shareItems[i].properties.enabledProtocols;\n (res.shareItems[i].properties as any).protocols = toShareProtocols(protocolsStr);\n }\n }\n\n return res;\n },\n );\n }\n\n /**\n * Restores a previously deleted share.\n * This API is only functional if Share Soft Delete is enabled\n * for the storage account associated with the share.\n *\n * @param deletedShareName - The name of the previously deleted share.\n * @param deletedShareVersion - The version of the previously deleted share.\n * @param options - Options to Share undelete operation.\n * @returns Restored share.\n */\n public async undeleteShare(\n deletedShareName: string,\n deletedShareVersion: string,\n options: ServiceUndeleteShareOptions = {},\n ): Promise<ShareClient> {\n return tracingClient.withSpan(\n \"ShareServiceClient-undeleteShare\",\n options,\n async (updatedOptions) => {\n const shareClient = this.getShareClient(deletedShareName);\n await new ShareClientInternal(shareClient.url, this.pipeline).restore({\n ...updatedOptions,\n ...this.shareClientConfig,\n deletedShareName: deletedShareName,\n deletedShareVersion: deletedShareVersion,\n });\n return shareClient;\n },\n );\n }\n\n /**\n * Only available for ShareServiceClient constructed with a shared key credential.\n *\n * Generates an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateAccountSasUrl(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n const sas = generateAccountSASQueryParameters(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"f\").toString(),\n ...options,\n },\n this.credential,\n ).toString();\n\n return appendToURLQuery(this.url, sas);\n }\n\n /**\n * Only available for ShareServiceClient constructed with a shared key credential.\n *\n * Generates string to sign for an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateSasStringToSign(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n return generateAccountSASQueryParametersInternal(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"f\").toString(),\n ...options,\n },\n this.credential,\n ).stringToSign;\n }\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the File service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/get-user-delegation-key\n *\n * @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time\n * @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time\n */\n public async getUserDelegationKey(\n startsOn: Date,\n expiresOn: Date,\n options?: ServiceGetUserDelegationKeyOptions,\n ): Promise<ServiceGetUserDelegationKeyResponse>;\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the Blob service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/get-user-delegation-key\n *\n * @param parameters - Parameters to specific start time, expiry time and tenant id.\n */\n public async getUserDelegationKey(\n parameters: ShareGetUserDelegationKeyParameters,\n options?: ServiceGetUserDelegationKeyOptions,\n ): Promise<ServiceGetUserDelegationKeyResponse>;\n\n public async getUserDelegationKey(\n startsOnOrParam: Date | ShareGetUserDelegationKeyParameters,\n expiresOnOrOption: Date | ServiceGetUserDelegationKeyOptions | undefined,\n options: ServiceGetUserDelegationKeyOptions = {},\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n let startsOn = startsOnOrParam as Date;\n let expiresOn = expiresOnOrOption as Date;\n let userDelegationTid = undefined;\n let getUserDelegationKeyOptions = options as ServiceGetUserDelegationKeyOptions;\n if (isShareGetUserDelegationKeyParameters(startsOnOrParam)) {\n startsOn = startsOnOrParam.startsOn;\n expiresOn = startsOnOrParam.expiresOn;\n userDelegationTid = startsOnOrParam.delegatedUserTenantId;\n getUserDelegationKeyOptions = expiresOnOrOption as ServiceGetUserDelegationKeyOptions;\n }\n return tracingClient.withSpan(\n \"ShareServiceClient-getUserDelegationKey\",\n getUserDelegationKeyOptions,\n async (updatedOptions) => {\n const response = assertResponse<\n ServiceGetUserDelegationKeyHeaders & UserDelegationKeyInternal,\n ServiceGetUserDelegationKeyHeaders,\n UserDelegationKeyInternal\n >(\n adjustResponse(\n await this.serviceContext.getUserDelegationKey(\n {\n start: truncatedISO8061Date(startsOn, false),\n expiry: truncatedISO8061Date(expiresOn, false),\n delegatedUserTid: userDelegationTid,\n },\n {\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n },\n ),\n ),\n );\n\n const userDelegationKey = {\n signedObjectId: response.signedObjectId,\n signedTenantId: response.signedTenantId,\n signedStartsOn: new Date(response.signedStartsOn),\n signedExpiresOn: new Date(response.signedExpiresOn),\n signedService: response.signedService,\n signedVersion: response.signedVersion,\n signedDelegatedUserTenantId: response.signedDelegatedUserTenantId,\n value: response.value,\n };\n\n const res: ServiceGetUserDelegationKeyResponse = {\n _response: response._response as any,\n requestId: response.requestId,\n clientRequestId: response.clientRequestId,\n version: response.version,\n date: response.date,\n ...userDelegationKey,\n };\n\n return res;\n },\n );\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBA,sBAA4C;AAE5C,2BAA8B;AAC9B,iCAAoC;AAEpC,qBAA4B;AAE5B,0BAOO;AACP,4BAA2B;AAC3B,IAAAA,yBAA2C;AAC3C,IAAAA,yBAAoC;AAEpC,uBAA2B;AAC3B,qBAA8B;AAE9B,oBAAiC;AACjC,mCAAsC;AACtC,uCAGO;AACP,gCAAmC;AAGnC,IAAAC,uBAAiC;AAEjC,uBAAkC;AAoMlC,SAAS,sCACP,WACkD;AAClD,MAAI,CAAC,aAAa,OAAO,cAAc,UAAU;AAC/C,WAAO;AAAA,EACT;AAEA,QAAM,gBAAgB;AAEtB,SAAO,cAAc,qBAAqB;AAC5C;AAMO,MAAM,2BAA2B,mCAAc;AAAA;AAAA;AAAA;AAAA,EAI5C;AAAA,EAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeR,OAAc,qBACZ,kBAGA,SACoB;AACpB,UAAM,qBAAiB,kDAA6B,gBAAgB;AACpE,QAAI,eAAe,SAAS,qBAAqB;AAC/C,UAAI,6BAAY;AACd,cAAM,sBAAsB,IAAI;AAAA,UAC9B,eAAe;AAAA,UACf,eAAe;AAAA,QACjB;AACA,cAAM,eAAW,6BAAY,qBAAqB,OAAO;AACzD,eAAO,IAAI,mBAAmB,eAAe,KAAK,UAAU,OAAO;AAAA,MACrE,OAAO;AACL,cAAM,IAAI,MAAM,oEAAoE;AAAA,MACtF;AAAA,IACF,WAAW,eAAe,SAAS,iBAAiB;AAClD,YAAM,eAAW,6BAAY,IAAI,2CAAoB,GAAG,OAAO;AAC/D,aAAO,IAAI;AAAA,QACT,eAA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;AAAA,UAClB,MAAM,SAAS;AAAA,UACf,GAAG;AAAA,QACL;AAEA,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACF;",
6
6
  "names": ["import_storage_common", "import_utils_common"]
7
7
  }
@@ -1,15 +1,25 @@
1
- import type { StorageClient as StorageClientContext } from "./generated/src/index.js";
2
- import type { Pipeline } from "./Pipeline.js";
1
+ import type { DirectoryOperations, FileOperations, ServiceOperations, ShareOperations } from "./generated/index.js";
2
+ import { FileClient } from "./generated/index.js";
3
+ import { Pipeline } from "./Pipeline.js";
3
4
  import type { OperationTracingOptions } from "@azure/core-tracing";
4
5
  import type { AnonymousCredential } from "@azure/storage-common";
5
6
  import type { StorageSharedKeyCredential } from "@azure/storage-common";
6
7
  import type { TokenCredential } from "@azure/core-auth";
8
+ import type { ExtendedServiceClientOptions } from "@azure/core-http-compat";
7
9
  /**
8
10
  * An interface for options common to every remote operation.
9
11
  */
10
12
  export interface CommonOptions {
11
13
  tracingOptions?: OperationTracingOptions;
12
14
  }
15
+ export declare class StorageClientContext {
16
+ client: FileClient;
17
+ service: ServiceOperations;
18
+ share: ShareOperations;
19
+ directory: DirectoryOperations;
20
+ file: FileOperations;
21
+ constructor(url: string, options?: ExtendedServiceClientOptions);
22
+ }
13
23
  /**
14
24
  * A StorageClient represents a base client class for ServiceClient, ContainerClient and etc.
15
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"StorageClient.d.ts","sourceRoot":"","sources":["../../src/StorageClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,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