@azure/ai-projects 1.0.0-alpha.20250516.1 → 1.0.0-alpha.20250519.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/dist/browser/api/connections/operations.d.ts.map +1 -1
  2. package/dist/browser/api/connections/operations.js +1 -4
  3. package/dist/browser/api/connections/operations.js.map +1 -1
  4. package/dist/browser/api/connections/options.d.ts +0 -6
  5. package/dist/browser/api/connections/options.d.ts.map +1 -1
  6. package/dist/browser/api/connections/options.js.map +1 -1
  7. package/dist/browser/api/datasets/operations.d.ts +4 -4
  8. package/dist/browser/api/datasets/operations.d.ts.map +1 -1
  9. package/dist/browser/api/datasets/operations.js +18 -17
  10. package/dist/browser/api/datasets/operations.js.map +1 -1
  11. package/dist/browser/api/datasets/options.d.ts +0 -4
  12. package/dist/browser/api/datasets/options.d.ts.map +1 -1
  13. package/dist/browser/api/datasets/options.js +2 -0
  14. package/dist/browser/api/datasets/options.js.map +1 -1
  15. package/dist/browser/api/deployments/operations.d.ts.map +1 -1
  16. package/dist/browser/api/deployments/operations.js +1 -4
  17. package/dist/browser/api/deployments/operations.js.map +1 -1
  18. package/dist/browser/api/deployments/options.d.ts +0 -6
  19. package/dist/browser/api/deployments/options.d.ts.map +1 -1
  20. package/dist/browser/api/deployments/options.js.map +1 -1
  21. package/dist/browser/api/evaluations/index.d.ts +2 -2
  22. package/dist/browser/api/evaluations/index.d.ts.map +1 -1
  23. package/dist/browser/api/evaluations/index.js +1 -1
  24. package/dist/browser/api/evaluations/index.js.map +1 -1
  25. package/dist/browser/api/evaluations/operations.d.ts +4 -4
  26. package/dist/browser/api/evaluations/operations.d.ts.map +1 -1
  27. package/dist/browser/api/evaluations/operations.js +6 -9
  28. package/dist/browser/api/evaluations/operations.js.map +1 -1
  29. package/dist/browser/api/evaluations/options.d.ts +1 -7
  30. package/dist/browser/api/evaluations/options.d.ts.map +1 -1
  31. package/dist/browser/api/evaluations/options.js.map +1 -1
  32. package/dist/browser/api/indexes/operations.d.ts.map +1 -1
  33. package/dist/browser/api/indexes/operations.js +3 -5
  34. package/dist/browser/api/indexes/operations.js.map +1 -1
  35. package/dist/browser/api/indexes/options.d.ts +0 -4
  36. package/dist/browser/api/indexes/options.d.ts.map +1 -1
  37. package/dist/browser/api/indexes/options.js.map +1 -1
  38. package/dist/browser/api/redTeams/index.d.ts +2 -2
  39. package/dist/browser/api/redTeams/index.d.ts.map +1 -1
  40. package/dist/browser/api/redTeams/index.js +1 -1
  41. package/dist/browser/api/redTeams/index.js.map +1 -1
  42. package/dist/browser/api/redTeams/operations.d.ts +4 -4
  43. package/dist/browser/api/redTeams/operations.d.ts.map +1 -1
  44. package/dist/browser/api/redTeams/operations.js +7 -10
  45. package/dist/browser/api/redTeams/operations.js.map +1 -1
  46. package/dist/browser/api/redTeams/options.d.ts +1 -7
  47. package/dist/browser/api/redTeams/options.d.ts.map +1 -1
  48. package/dist/browser/api/redTeams/options.js.map +1 -1
  49. package/dist/browser/classic/datasets/index.d.ts +3 -3
  50. package/dist/browser/classic/datasets/index.d.ts.map +1 -1
  51. package/dist/browser/classic/datasets/index.js +3 -3
  52. package/dist/browser/classic/datasets/index.js.map +1 -1
  53. package/dist/browser/classic/evaluations/index.d.ts +2 -2
  54. package/dist/browser/classic/evaluations/index.d.ts.map +1 -1
  55. package/dist/browser/classic/evaluations/index.js +2 -2
  56. package/dist/browser/classic/evaluations/index.js.map +1 -1
  57. package/dist/browser/classic/redTeams/index.d.ts +2 -2
  58. package/dist/browser/classic/redTeams/index.d.ts.map +1 -1
  59. package/dist/browser/classic/redTeams/index.js +2 -2
  60. package/dist/browser/classic/redTeams/index.js.map +1 -1
  61. package/dist/browser/index.d.ts +3 -3
  62. package/dist/browser/index.d.ts.map +1 -1
  63. package/dist/browser/index.js.map +1 -1
  64. package/dist/browser/models/index.d.ts +1 -1
  65. package/dist/browser/models/index.d.ts.map +1 -1
  66. package/dist/browser/models/index.js.map +1 -1
  67. package/dist/browser/models/models.d.ts +39 -16
  68. package/dist/browser/models/models.d.ts.map +1 -1
  69. package/dist/browser/models/models.js +81 -20
  70. package/dist/browser/models/models.js.map +1 -1
  71. package/dist/commonjs/api/connections/operations.d.ts.map +1 -1
  72. package/dist/commonjs/api/connections/operations.js +1 -4
  73. package/dist/commonjs/api/connections/operations.js.map +1 -1
  74. package/dist/commonjs/api/connections/options.d.ts +0 -6
  75. package/dist/commonjs/api/connections/options.d.ts.map +1 -1
  76. package/dist/commonjs/api/connections/options.js.map +1 -1
  77. package/dist/commonjs/api/datasets/operations.d.ts +4 -4
  78. package/dist/commonjs/api/datasets/operations.d.ts.map +1 -1
  79. package/dist/commonjs/api/datasets/operations.js +17 -16
  80. package/dist/commonjs/api/datasets/operations.js.map +1 -1
  81. package/dist/commonjs/api/datasets/options.d.ts +0 -4
  82. package/dist/commonjs/api/datasets/options.d.ts.map +1 -1
  83. package/dist/commonjs/api/datasets/options.js +2 -0
  84. package/dist/commonjs/api/datasets/options.js.map +1 -1
  85. package/dist/commonjs/api/deployments/operations.d.ts.map +1 -1
  86. package/dist/commonjs/api/deployments/operations.js +1 -4
  87. package/dist/commonjs/api/deployments/operations.js.map +1 -1
  88. package/dist/commonjs/api/deployments/options.d.ts +0 -6
  89. package/dist/commonjs/api/deployments/options.d.ts.map +1 -1
  90. package/dist/commonjs/api/deployments/options.js.map +1 -1
  91. package/dist/commonjs/api/evaluations/index.d.ts +2 -2
  92. package/dist/commonjs/api/evaluations/index.d.ts.map +1 -1
  93. package/dist/commonjs/api/evaluations/index.js +2 -2
  94. package/dist/commonjs/api/evaluations/index.js.map +1 -1
  95. package/dist/commonjs/api/evaluations/operations.d.ts +4 -4
  96. package/dist/commonjs/api/evaluations/operations.d.ts.map +1 -1
  97. package/dist/commonjs/api/evaluations/operations.js +9 -12
  98. package/dist/commonjs/api/evaluations/operations.js.map +1 -1
  99. package/dist/commonjs/api/evaluations/options.d.ts +1 -7
  100. package/dist/commonjs/api/evaluations/options.d.ts.map +1 -1
  101. package/dist/commonjs/api/evaluations/options.js.map +1 -1
  102. package/dist/commonjs/api/indexes/operations.d.ts.map +1 -1
  103. package/dist/commonjs/api/indexes/operations.js +3 -5
  104. package/dist/commonjs/api/indexes/operations.js.map +1 -1
  105. package/dist/commonjs/api/indexes/options.d.ts +0 -4
  106. package/dist/commonjs/api/indexes/options.d.ts.map +1 -1
  107. package/dist/commonjs/api/indexes/options.js.map +1 -1
  108. package/dist/commonjs/api/redTeams/index.d.ts +2 -2
  109. package/dist/commonjs/api/redTeams/index.d.ts.map +1 -1
  110. package/dist/commonjs/api/redTeams/index.js +2 -2
  111. package/dist/commonjs/api/redTeams/index.js.map +1 -1
  112. package/dist/commonjs/api/redTeams/operations.d.ts +4 -4
  113. package/dist/commonjs/api/redTeams/operations.d.ts.map +1 -1
  114. package/dist/commonjs/api/redTeams/operations.js +10 -13
  115. package/dist/commonjs/api/redTeams/operations.js.map +1 -1
  116. package/dist/commonjs/api/redTeams/options.d.ts +1 -7
  117. package/dist/commonjs/api/redTeams/options.d.ts.map +1 -1
  118. package/dist/commonjs/api/redTeams/options.js.map +1 -1
  119. package/dist/commonjs/classic/datasets/index.d.ts +3 -3
  120. package/dist/commonjs/classic/datasets/index.d.ts.map +1 -1
  121. package/dist/commonjs/classic/datasets/index.js +3 -3
  122. package/dist/commonjs/classic/datasets/index.js.map +1 -1
  123. package/dist/commonjs/classic/evaluations/index.d.ts +2 -2
  124. package/dist/commonjs/classic/evaluations/index.d.ts.map +1 -1
  125. package/dist/commonjs/classic/evaluations/index.js +1 -1
  126. package/dist/commonjs/classic/evaluations/index.js.map +1 -1
  127. package/dist/commonjs/classic/redTeams/index.d.ts +2 -2
  128. package/dist/commonjs/classic/redTeams/index.d.ts.map +1 -1
  129. package/dist/commonjs/classic/redTeams/index.js +1 -1
  130. package/dist/commonjs/classic/redTeams/index.js.map +1 -1
  131. package/dist/commonjs/index.d.ts +3 -3
  132. package/dist/commonjs/index.d.ts.map +1 -1
  133. package/dist/commonjs/index.js.map +1 -1
  134. package/dist/commonjs/models/index.d.ts +1 -1
  135. package/dist/commonjs/models/index.d.ts.map +1 -1
  136. package/dist/commonjs/models/index.js.map +1 -1
  137. package/dist/commonjs/models/models.d.ts +39 -16
  138. package/dist/commonjs/models/models.d.ts.map +1 -1
  139. package/dist/commonjs/models/models.js +83 -21
  140. package/dist/commonjs/models/models.js.map +1 -1
  141. package/dist/commonjs/tsdoc-metadata.json +1 -1
  142. package/dist/esm/api/connections/operations.d.ts.map +1 -1
  143. package/dist/esm/api/connections/operations.js +1 -4
  144. package/dist/esm/api/connections/operations.js.map +1 -1
  145. package/dist/esm/api/connections/options.d.ts +0 -6
  146. package/dist/esm/api/connections/options.d.ts.map +1 -1
  147. package/dist/esm/api/connections/options.js.map +1 -1
  148. package/dist/esm/api/datasets/operations.d.ts +4 -4
  149. package/dist/esm/api/datasets/operations.d.ts.map +1 -1
  150. package/dist/esm/api/datasets/operations.js +18 -17
  151. package/dist/esm/api/datasets/operations.js.map +1 -1
  152. package/dist/esm/api/datasets/options.d.ts +0 -4
  153. package/dist/esm/api/datasets/options.d.ts.map +1 -1
  154. package/dist/esm/api/datasets/options.js +2 -0
  155. package/dist/esm/api/datasets/options.js.map +1 -1
  156. package/dist/esm/api/deployments/operations.d.ts.map +1 -1
  157. package/dist/esm/api/deployments/operations.js +1 -4
  158. package/dist/esm/api/deployments/operations.js.map +1 -1
  159. package/dist/esm/api/deployments/options.d.ts +0 -6
  160. package/dist/esm/api/deployments/options.d.ts.map +1 -1
  161. package/dist/esm/api/deployments/options.js.map +1 -1
  162. package/dist/esm/api/evaluations/index.d.ts +2 -2
  163. package/dist/esm/api/evaluations/index.d.ts.map +1 -1
  164. package/dist/esm/api/evaluations/index.js +1 -1
  165. package/dist/esm/api/evaluations/index.js.map +1 -1
  166. package/dist/esm/api/evaluations/operations.d.ts +4 -4
  167. package/dist/esm/api/evaluations/operations.d.ts.map +1 -1
  168. package/dist/esm/api/evaluations/operations.js +6 -9
  169. package/dist/esm/api/evaluations/operations.js.map +1 -1
  170. package/dist/esm/api/evaluations/options.d.ts +1 -7
  171. package/dist/esm/api/evaluations/options.d.ts.map +1 -1
  172. package/dist/esm/api/evaluations/options.js.map +1 -1
  173. package/dist/esm/api/indexes/operations.d.ts.map +1 -1
  174. package/dist/esm/api/indexes/operations.js +3 -5
  175. package/dist/esm/api/indexes/operations.js.map +1 -1
  176. package/dist/esm/api/indexes/options.d.ts +0 -4
  177. package/dist/esm/api/indexes/options.d.ts.map +1 -1
  178. package/dist/esm/api/indexes/options.js.map +1 -1
  179. package/dist/esm/api/redTeams/index.d.ts +2 -2
  180. package/dist/esm/api/redTeams/index.d.ts.map +1 -1
  181. package/dist/esm/api/redTeams/index.js +1 -1
  182. package/dist/esm/api/redTeams/index.js.map +1 -1
  183. package/dist/esm/api/redTeams/operations.d.ts +4 -4
  184. package/dist/esm/api/redTeams/operations.d.ts.map +1 -1
  185. package/dist/esm/api/redTeams/operations.js +7 -10
  186. package/dist/esm/api/redTeams/operations.js.map +1 -1
  187. package/dist/esm/api/redTeams/options.d.ts +1 -7
  188. package/dist/esm/api/redTeams/options.d.ts.map +1 -1
  189. package/dist/esm/api/redTeams/options.js.map +1 -1
  190. package/dist/esm/classic/datasets/index.d.ts +3 -3
  191. package/dist/esm/classic/datasets/index.d.ts.map +1 -1
  192. package/dist/esm/classic/datasets/index.js +3 -3
  193. package/dist/esm/classic/datasets/index.js.map +1 -1
  194. package/dist/esm/classic/evaluations/index.d.ts +2 -2
  195. package/dist/esm/classic/evaluations/index.d.ts.map +1 -1
  196. package/dist/esm/classic/evaluations/index.js +2 -2
  197. package/dist/esm/classic/evaluations/index.js.map +1 -1
  198. package/dist/esm/classic/redTeams/index.d.ts +2 -2
  199. package/dist/esm/classic/redTeams/index.d.ts.map +1 -1
  200. package/dist/esm/classic/redTeams/index.js +2 -2
  201. package/dist/esm/classic/redTeams/index.js.map +1 -1
  202. package/dist/esm/index.d.ts +3 -3
  203. package/dist/esm/index.d.ts.map +1 -1
  204. package/dist/esm/index.js.map +1 -1
  205. package/dist/esm/models/index.d.ts +1 -1
  206. package/dist/esm/models/index.d.ts.map +1 -1
  207. package/dist/esm/models/index.js.map +1 -1
  208. package/dist/esm/models/models.d.ts +39 -16
  209. package/dist/esm/models/models.d.ts.map +1 -1
  210. package/dist/esm/models/models.js +81 -20
  211. package/dist/esm/models/models.js.map +1 -1
  212. package/dist/react-native/api/connections/operations.d.ts.map +1 -1
  213. package/dist/react-native/api/connections/operations.js +1 -4
  214. package/dist/react-native/api/connections/operations.js.map +1 -1
  215. package/dist/react-native/api/connections/options.d.ts +0 -6
  216. package/dist/react-native/api/connections/options.d.ts.map +1 -1
  217. package/dist/react-native/api/connections/options.js.map +1 -1
  218. package/dist/react-native/api/datasets/operations.d.ts +4 -4
  219. package/dist/react-native/api/datasets/operations.d.ts.map +1 -1
  220. package/dist/react-native/api/datasets/operations.js +18 -17
  221. package/dist/react-native/api/datasets/operations.js.map +1 -1
  222. package/dist/react-native/api/datasets/options.d.ts +0 -4
  223. package/dist/react-native/api/datasets/options.d.ts.map +1 -1
  224. package/dist/react-native/api/datasets/options.js +2 -0
  225. package/dist/react-native/api/datasets/options.js.map +1 -1
  226. package/dist/react-native/api/deployments/operations.d.ts.map +1 -1
  227. package/dist/react-native/api/deployments/operations.js +1 -4
  228. package/dist/react-native/api/deployments/operations.js.map +1 -1
  229. package/dist/react-native/api/deployments/options.d.ts +0 -6
  230. package/dist/react-native/api/deployments/options.d.ts.map +1 -1
  231. package/dist/react-native/api/deployments/options.js.map +1 -1
  232. package/dist/react-native/api/evaluations/index.d.ts +2 -2
  233. package/dist/react-native/api/evaluations/index.d.ts.map +1 -1
  234. package/dist/react-native/api/evaluations/index.js +1 -1
  235. package/dist/react-native/api/evaluations/index.js.map +1 -1
  236. package/dist/react-native/api/evaluations/operations.d.ts +4 -4
  237. package/dist/react-native/api/evaluations/operations.d.ts.map +1 -1
  238. package/dist/react-native/api/evaluations/operations.js +6 -9
  239. package/dist/react-native/api/evaluations/operations.js.map +1 -1
  240. package/dist/react-native/api/evaluations/options.d.ts +1 -7
  241. package/dist/react-native/api/evaluations/options.d.ts.map +1 -1
  242. package/dist/react-native/api/evaluations/options.js.map +1 -1
  243. package/dist/react-native/api/indexes/operations.d.ts.map +1 -1
  244. package/dist/react-native/api/indexes/operations.js +3 -5
  245. package/dist/react-native/api/indexes/operations.js.map +1 -1
  246. package/dist/react-native/api/indexes/options.d.ts +0 -4
  247. package/dist/react-native/api/indexes/options.d.ts.map +1 -1
  248. package/dist/react-native/api/indexes/options.js.map +1 -1
  249. package/dist/react-native/api/redTeams/index.d.ts +2 -2
  250. package/dist/react-native/api/redTeams/index.d.ts.map +1 -1
  251. package/dist/react-native/api/redTeams/index.js +1 -1
  252. package/dist/react-native/api/redTeams/index.js.map +1 -1
  253. package/dist/react-native/api/redTeams/operations.d.ts +4 -4
  254. package/dist/react-native/api/redTeams/operations.d.ts.map +1 -1
  255. package/dist/react-native/api/redTeams/operations.js +7 -10
  256. package/dist/react-native/api/redTeams/operations.js.map +1 -1
  257. package/dist/react-native/api/redTeams/options.d.ts +1 -7
  258. package/dist/react-native/api/redTeams/options.d.ts.map +1 -1
  259. package/dist/react-native/api/redTeams/options.js.map +1 -1
  260. package/dist/react-native/classic/datasets/index.d.ts +3 -3
  261. package/dist/react-native/classic/datasets/index.d.ts.map +1 -1
  262. package/dist/react-native/classic/datasets/index.js +3 -3
  263. package/dist/react-native/classic/datasets/index.js.map +1 -1
  264. package/dist/react-native/classic/evaluations/index.d.ts +2 -2
  265. package/dist/react-native/classic/evaluations/index.d.ts.map +1 -1
  266. package/dist/react-native/classic/evaluations/index.js +2 -2
  267. package/dist/react-native/classic/evaluations/index.js.map +1 -1
  268. package/dist/react-native/classic/redTeams/index.d.ts +2 -2
  269. package/dist/react-native/classic/redTeams/index.d.ts.map +1 -1
  270. package/dist/react-native/classic/redTeams/index.js +2 -2
  271. package/dist/react-native/classic/redTeams/index.js.map +1 -1
  272. package/dist/react-native/index.d.ts +3 -3
  273. package/dist/react-native/index.d.ts.map +1 -1
  274. package/dist/react-native/index.js.map +1 -1
  275. package/dist/react-native/models/index.d.ts +1 -1
  276. package/dist/react-native/models/index.d.ts.map +1 -1
  277. package/dist/react-native/models/index.js.map +1 -1
  278. package/dist/react-native/models/models.d.ts +39 -16
  279. package/dist/react-native/models/models.d.ts.map +1 -1
  280. package/dist/react-native/models/models.js +81 -20
  281. package/dist/react-native/models/models.js.map +1 -1
  282. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,sEAAsE;AACtE,yDAAyD;AAqCzD,MAAM,UAAU,sBAAsB,CAAC,IAAS;IAC9C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;YAC9B,CAAC,CAAC,gCAAgC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACvD,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;KACrB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACnD,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;KACnB,CAAC;AACJ,CAAC;AAWD,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,QAAQ;YACX,OAAO,6BAA6B,CAAC,IAAyB,CAAC,CAAC;QAElE,KAAK,KAAK;YACR,OAAO,8BAA8B,CAAC,IAA0B,CAAC,CA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D,qCAAqC;AACrC,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,uCAAuC;IACvC,yCAAwB,CAAA;IACxB,+CAA+C;IAC/C,wDAAuC,CAAA;AACzC,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/naming-convention */\n\n/** Response from the list and get connections operations */\nexport interface Connection {\n /** The name of the resource */\n readonly name: string;\n /** Category of the connection */\n readonly type: ConnectionType;\n /** The connection URL to be used for this service */\n readonly target: string;\n /** Whether the connection is tagged as the default connection of its type */\n readonly isDefault: boolean;\n /** The credentials used by the connection */\n readonly credentials: BaseCredentialsUnion;\n /** Metadata of the connection */\n readonly metadata: Record<string, string>;\n}\n\n/** The Type (or category) of the connection */\nexport type ConnectionType =\n | \"AzureOpenAI\"\n | \"AzureBlob\"\n | \"AzureStorageAccount\"\n | \"CognitiveSearch\"\n | \"CosmosDB\"\n | \"ApiKey\"\n | \"AppConfig\"\n | \"AppInsights\"\n | \"CustomKeys\";\n\n/** A base class for connection credentials */\nexport interface BaseCredentials {\n /** The type of credential used by the connection */\n /** The discriminator possible values: ApiKey, AAD, CustomKeys, SAS, None */\n readonly type: CredentialType;\n}\n\nexport function connectionDeserializer(item: any): Connection {\n return {\n name: item[\"name\"],\n type: item[\"type\"],\n target: item[\"target\"],\n metadata: item[\"metadata\"],\n isDefault: item[\"isDefault\"],\n credentials: item[\"credentials\"]\n ? baseCredentialsUnionDeserializer(item[\"credentials\"])\n : { type: \"None\" },\n };\n}\n\nexport function baseCredentialsDeserializer(item: any): BaseCredentials {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Alias for BaseCredentialsUnion */\nexport type BaseCredentialsUnion =\n | ApiKeyCredentials\n | EntraIDCredentials\n | CustomCredential\n | SASCredentials\n | NoAuthenticationCredentials\n | BaseCredentials;\n\nexport function baseCredentialsUnionDeserializer(item: any): BaseCredentialsUnion {\n switch (item.type) {\n case \"ApiKey\":\n return apiKeyCredentialsDeserializer(item as ApiKeyCredentials);\n\n case \"AAD\":\n return entraIDCredentialsDeserializer(item as EntraIDCredentials);\n\n case \"CustomKeys\":\n return customCredentialDeserializer(item as CustomCredential);\n\n case \"SAS\":\n return sasCredentialsDeserializer(item as SASCredentials);\n\n case \"None\":\n return noAuthenticationCredentialsDeserializer(item as NoAuthenticationCredentials);\n\n default:\n return baseCredentialsDeserializer(item);\n }\n}\n\n/** The credential type used by the connection */\nexport type CredentialType = \"ApiKey\" | \"AAD\" | \"SAS\" | \"CustomKeys\" | \"None\";\n\n/** API Key Credential definition */\nexport interface ApiKeyCredentials extends BaseCredentials {\n /** The credentail type */\n readonly type: \"ApiKey\";\n /** API Key */\n readonly apiKey?: string;\n}\n\nexport function apiKeyCredentialsDeserializer(item: any): ApiKeyCredentials {\n return {\n type: item[\"type\"],\n apiKey: item[\"key\"],\n };\n}\n\n/** Entra ID credential definition */\nexport interface EntraIDCredentials extends BaseCredentials {\n /** The credential type */\n readonly type: \"AAD\";\n}\n\nexport function entraIDCredentialsDeserializer(item: any): EntraIDCredentials {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Custom credential definition */\nexport interface CustomCredential extends BaseCredentials {\n /** The credential type */\n readonly type: \"CustomKeys\";\n /** The credential type */\n readonly keys: Record<string, string>;\n}\n\nexport function customCredentialDeserializer(item: any): CustomCredential {\n return {\n type: item[\"type\"],\n keys: item[\"keys\"],\n };\n}\n\n/** Shared Access Signature (SAS) credential definition */\nexport interface SASCredentials extends BaseCredentials {\n /** The credential type */\n readonly type: \"SAS\";\n /** SAS token */\n readonly sasToken?: string;\n}\n\nexport function sasCredentialsDeserializer(item: any): SASCredentials {\n return {\n type: item[\"type\"],\n sasToken: item[\"SAS\"],\n };\n}\n\n/** Credentials that do not require authentication */\nexport interface NoAuthenticationCredentials extends BaseCredentials {\n /** The credential type */\n readonly type: \"None\";\n}\n\nexport function noAuthenticationCredentialsDeserializer(item: any): NoAuthenticationCredentials {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Paged collection of Connection items */\nexport interface _PagedConnection {\n /** The Connection items on this page */\n value: Connection[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedConnectionDeserializer(item: any): _PagedConnection {\n return {\n value: connectionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function connectionArrayDeserializer(result: Array<Connection>): any[] {\n return result.map((item) => {\n return connectionDeserializer(item);\n });\n}\n\n/** Evaluation Definition */\nexport interface Evaluation {\n /** Identifier of the evaluation. */\n readonly name: string;\n /** Data for evaluation. */\n data: InputDataUnion;\n /** Display Name for evaluation. It helps to find the evaluation easily in AI Foundry. It does not need to be unique. */\n displayName?: string;\n /** Description of the evaluation. It can be used to store additional information about the evaluation and is mutable. */\n description?: string;\n /** Status of the evaluation. It is set by service and is read-only. */\n readonly status?: string;\n /** Evaluation's tags. Unlike properties, tags are fully mutable. */\n tags?: Record<string, string>;\n /** Evaluation's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed. */\n properties?: Record<string, string>;\n /** Evaluators to be used for the evaluation. */\n evaluators: Record<string, EvaluatorConfiguration>;\n}\n\n/** optional id property for Evaluation, which shouldbe used for create operation */\nexport type EvaluationWithOptionalName = Omit<Evaluation, \"name\"> & { name?: string };\n\n// optional name property\nexport function evaluationSerializer(item: EvaluationWithOptionalName): any {\n return {\n data: inputDataUnionSerializer(item[\"data\"]),\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n properties: item[\"properties\"],\n evaluators: evaluatorConfigurationRecordSerializer(item[\"evaluators\"]),\n };\n}\n\nexport function evaluationDeserializer(item: any): Evaluation {\n return {\n name: item[\"id\"],\n data: inputDataUnionDeserializer(item[\"data\"]),\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n status: item[\"status\"],\n tags: item[\"tags\"],\n properties: item[\"properties\"],\n evaluators: evaluatorConfigurationRecordDeserializer(item[\"evaluators\"]),\n };\n}\n\n/** Abstract data class. */\nexport interface InputData {\n /** Type of the data */\n /** The discriminator possible values: dataset */\n type: string;\n}\n\nexport function inputDataSerializer(item: InputData): any {\n return { type: item[\"type\"] };\n}\n\nexport function inputDataDeserializer(item: any): InputData {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Alias for InputDataUnion */\nexport type InputDataUnion = InputDataset | InputData;\n\nexport function inputDataUnionSerializer(item: InputDataUnion): any {\n switch (item.type) {\n case \"dataset\":\n return inputDatasetSerializer(item as InputDataset);\n\n default:\n return inputDataSerializer(item);\n }\n}\n\nexport function inputDataUnionDeserializer(_item: any): InputDataUnion {\n const item = _item || {};\n\n switch (item.type) {\n case \"dataset\":\n return inputDatasetDeserializer(item as InputDataset);\n\n default:\n return inputDataDeserializer(item);\n }\n}\n\n/** Dataset as source for evaluation. */\nexport interface InputDataset extends InputData {\n /** Type of the data */\n type: \"dataset\";\n /** Evaluation input data */\n id: string;\n}\n\nexport function inputDatasetSerializer(item: InputDataset): any {\n return { type: item[\"type\"], id: item[\"id\"] };\n}\n\nexport function inputDatasetDeserializer(item: any): InputDataset {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n };\n}\n\nexport function evaluatorConfigurationRecordSerializer(\n item: Record<string, EvaluatorConfiguration>,\n): Record<string, any> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : evaluatorConfigurationSerializer(item[key]);\n });\n return result;\n}\n\nexport function evaluatorConfigurationRecordDeserializer(\n item: Record<string, any>,\n): Record<string, EvaluatorConfiguration> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : evaluatorConfigurationDeserializer(item[key]);\n });\n return result;\n}\n\n/** Evaluator Configuration */\nexport interface EvaluatorConfiguration {\n /** Identifier of the evaluator. */\n id: string;\n /** Initialization parameters of the evaluator. */\n initParams?: Record<string, any>;\n /** Data parameters of the evaluator. */\n dataMapping?: Record<string, string>;\n}\n\nexport function evaluatorConfigurationSerializer(item: EvaluatorConfiguration): any {\n return {\n id: item[\"id\"],\n initParams: item[\"initParams\"],\n dataMapping: item[\"dataMapping\"],\n };\n}\n\nexport function evaluatorConfigurationDeserializer(item: any): EvaluatorConfiguration {\n return {\n id: item[\"id\"],\n initParams: item[\"initParams\"],\n dataMapping: item[\"dataMapping\"],\n };\n}\n\n/** Paged collection of Evaluation items */\nexport interface _PagedEvaluation {\n /** The Evaluation items on this page */\n value: Evaluation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedEvaluationDeserializer(item: any): _PagedEvaluation {\n return {\n value: evaluationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function evaluationArraySerializer(result: Array<Evaluation>): any[] {\n return result.map((item) => {\n return evaluationSerializer(item);\n });\n}\n\nexport function evaluationArrayDeserializer(result: Array<Evaluation>): any[] {\n return result.map((item) => {\n return evaluationDeserializer(item);\n });\n}\n\n/** Evaluation request for agent run. */\nexport interface AgentEvaluationRequest {\n /** Identifier of the agent run. */\n runId: string;\n /** Identifier of the agent thread. This field is mandatory currently, but it will be optional in the future. */\n threadId?: string;\n /** Evaluators to be used for the evaluation. */\n evaluators: Record<string, EvaluatorConfiguration>;\n /** Sampling configuration for the evaluation. */\n samplingConfiguration?: AgentEvaluationSamplingConfiguration;\n /** Redaction configuration for the evaluation. */\n redactionConfiguration?: AgentEvaluationRedactionConfiguration;\n /** Pass the AppInsights connection string to the agent evaluation for the evaluation results and the errors logs. */\n appInsightsConnectionString: string;\n}\n\nexport function agentEvaluationRequestSerializer(item: AgentEvaluationRequest): any {\n return {\n runId: item[\"runId\"],\n threadId: item[\"threadId\"],\n evaluators: evaluatorConfigurationRecordSerializer(item[\"evaluators\"]),\n samplingConfiguration: !item[\"samplingConfiguration\"]\n ? item[\"samplingConfiguration\"]\n : agentEvaluationSamplingConfigurationSerializer(item[\"samplingConfiguration\"]),\n redactionConfiguration: !item[\"redactionConfiguration\"]\n ? item[\"redactionConfiguration\"]\n : agentEvaluationRedactionConfigurationSerializer(item[\"redactionConfiguration\"]),\n appInsightsConnectionString: item[\"appInsightsConnectionString\"],\n };\n}\n\n/** Definition for sampling strategy. */\nexport interface AgentEvaluationSamplingConfiguration {\n /** Name of the sampling strategy. */\n name: string;\n /** Percentage of sampling per hour (0-100). */\n samplingPercent: number;\n /** Maximum request rate per hour (0 to 1000). */\n maxRequestRate: number;\n}\n\nexport function agentEvaluationSamplingConfigurationSerializer(\n item: AgentEvaluationSamplingConfiguration,\n): any {\n return {\n name: item[\"name\"],\n samplingPercent: item[\"samplingPercent\"],\n maxRequestRate: item[\"maxRequestRate\"],\n };\n}\n\n/** The redaction configuration will allow the user to control what is redacted. */\nexport interface AgentEvaluationRedactionConfiguration {\n /** Redact score properties. If not specified, the default is to redact in production. */\n redactScoreProperties?: boolean;\n}\n\nexport function agentEvaluationRedactionConfigurationSerializer(\n item: AgentEvaluationRedactionConfiguration,\n): any {\n return { redactScoreProperties: item[\"redactScoreProperties\"] };\n}\n\n/** Evaluation response for agent evaluation run. */\nexport interface AgentEvaluation {\n /** Identifier of the agent evaluation run. */\n id: string;\n /** Status of the agent evaluation. Options: Running, Completed, Failed. */\n status: string;\n /** The reason of the request failure for the long running process, if applicable. */\n error?: string;\n /** The agent evaluation result. */\n result?: AgentEvaluationResult[];\n}\n\nexport function agentEvaluationDeserializer(item: any): AgentEvaluation {\n return {\n id: item[\"id\"],\n status: item[\"status\"],\n error: item[\"error\"],\n result: !item[\"result\"]\n ? item[\"result\"]\n : agentEvaluationResultArrayDeserializer(item[\"result\"]),\n };\n}\n\nexport function agentEvaluationResultArrayDeserializer(\n result: Array<AgentEvaluationResult>,\n): any[] {\n return result.map((item) => {\n return agentEvaluationResultDeserializer(item);\n });\n}\n\n/** Result for the agent evaluation evaluator run. */\nexport interface AgentEvaluationResult {\n /** Evaluator's name. This is the name of the evaluator that was used to evaluate the agent's completion. */\n evaluator: string;\n /** Score of the given evaluator. No restriction on range. */\n score: number;\n /** Status of the evaluator result. Options: Running, Completed, Failed, NotApplicable. */\n status: string;\n /** Reasoning for the evaluation result. */\n reason?: string;\n /** Version of the evaluator that was used to evaluate the agent's completion. */\n version?: string;\n /** The unique identifier of the thread. */\n threadId?: string;\n /** The unique identifier of the run. */\n runId: string;\n /** A string explaining why there was an error, if applicable. */\n error?: string;\n /** Additional properties relevant to the evaluator. These will differ between evaluators. */\n additionalDetails?: Record<string, string>;\n}\n\nexport function agentEvaluationResultDeserializer(item: any): AgentEvaluationResult {\n return {\n evaluator: item[\"evaluator\"],\n score: item[\"score\"],\n status: item[\"status\"],\n reason: item[\"reason\"],\n version: item[\"version\"],\n threadId: item[\"threadId\"],\n runId: item[\"runId\"],\n error: item[\"error\"],\n additionalDetails: item[\"additionalDetails\"],\n };\n}\n\n/** Paged collection of DatasetVersion items */\nexport interface _PagedDatasetVersion {\n /** The DatasetVersion items on this page */\n value: DatasetVersionUnion[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedDatasetVersionDeserializer(item: any): _PagedDatasetVersion {\n return {\n value: datasetVersionUnionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function datasetVersionUnionArraySerializer(result: Array<DatasetVersionUnion>): any[] {\n return result.map((item) => {\n return datasetVersionUnionSerializer(item);\n });\n}\n\nexport function datasetVersionUnionArrayDeserializer(result: Array<DatasetVersionUnion>): any[] {\n return result.map((item) => {\n return datasetVersionUnionDeserializer(item);\n });\n}\n\n/** DatasetVersion Definition */\nexport interface DatasetVersion {\n /** URI of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330 */\n dataUri: string;\n /** Dataset type */\n /** The discriminator possible values: uri_file, uri_folder */\n type: DatasetType;\n /** Indicates if dataset is reference only or managed by dataset service. If true, the underlying data will be deleted when the dataset version is deleted */\n readonly isReference?: boolean;\n /** Asset ID, a unique identifier for the asset */\n readonly id?: string;\n /** The name of the resource */\n readonly name: string;\n /** The version of the resource */\n readonly version: string;\n /** The asset description text. */\n description?: string;\n /** Tag dictionary. Tags can be added, removed, and updated. */\n tags?: Record<string, string>;\n}\n\nexport function datasetVersionSerializer(item: DatasetVersion): any {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\nexport function datasetVersionDeserializer(item: any): DatasetVersion {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n isReference: item[\"isReference\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\n/** Alias for DatasetVersionUnion */\nexport type DatasetVersionUnion = FileDatasetVersion | FolderDatasetVersion | DatasetVersion;\n\nexport function datasetVersionUnionSerializer(item: DatasetVersionUnion): any {\n switch (item.type) {\n case \"uri_file\":\n return fileDatasetVersionSerializer(item as FileDatasetVersion);\n\n case \"uri_folder\":\n return folderDatasetVersionSerializer(item as FolderDatasetVersion);\n\n default:\n return datasetVersionSerializer(item);\n }\n}\n\nexport function datasetVersionUnionDeserializer(item: any): DatasetVersionUnion {\n switch (item.type) {\n case \"uri_file\":\n return fileDatasetVersionDeserializer(item as FileDatasetVersion);\n\n case \"uri_folder\":\n return folderDatasetVersionDeserializer(item as FolderDatasetVersion);\n\n default:\n return datasetVersionDeserializer(item);\n }\n}\n\n/** Enum to determine the type of data. */\nexport type DatasetType = \"uri_file\" | \"uri_folder\";\n\n/** FileDatasetVersion Definition */\nexport interface FileDatasetVersion extends DatasetVersion {\n /** Dataset type */\n type: \"uri_file\";\n}\n\nexport function fileDatasetVersionSerializer(item: FileDatasetVersion): any {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\nexport function fileDatasetVersionDeserializer(item: any): FileDatasetVersion {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n isReference: item[\"isReference\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\n/** FileDatasetVersion Definition */\nexport interface FolderDatasetVersion extends DatasetVersion {\n /** Dataset type */\n type: \"uri_folder\";\n}\n\nexport function folderDatasetVersionSerializer(item: FolderDatasetVersion): any {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\nexport function folderDatasetVersionDeserializer(item: any): FolderDatasetVersion {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n isReference: item[\"isReference\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\n/** Represents a request for a pending upload. */\nexport interface PendingUploadRequest {\n /** If PendingUploadId is not provided, a random GUID will be used. */\n pendingUploadId?: string;\n /** Name of Azure blob storage connection to use for generating temporary SAS token */\n connectionName?: string;\n /** BlobReference is the only supported type. */\n pendingUploadType: \"BlobReference\";\n}\n\nexport function pendingUploadRequestSerializer(item: PendingUploadRequest): any {\n return {\n pendingUploadId: item[\"pendingUploadId\"],\n connectionName: item[\"connectionName\"],\n pendingUploadType: item[\"pendingUploadType\"],\n };\n}\n\n/** Represents the response for a pending upload request */\nexport interface PendingUploadResponse {\n /** Container-level read, write, list SAS. */\n blobReference: BlobReference;\n /** ID for this upload request. */\n pendingUploadId: string;\n /** Version of asset to be created if user did not specify version when initially creating upload */\n version?: string;\n /** BlobReference is the only supported type */\n pendingUploadType: \"BlobReference\";\n}\n\nexport function pendingUploadResponseDeserializer(item: any): PendingUploadResponse {\n return {\n blobReference: blobReferenceDeserializer(item[\"blobReference\"]),\n pendingUploadId: item[\"pendingUploadId\"],\n version: item[\"version\"],\n pendingUploadType: item[\"pendingUploadType\"],\n };\n}\n\n/** Blob reference details. */\nexport interface BlobReference {\n /** Blob URI path for client to upload data. Example: https://blob.windows.core.net/Container/Path */\n blobUri: string;\n /** ARM ID of the storage account to use. */\n storageAccountArmId: string;\n /** Credential info to access the storage account. */\n credential: SasCredential;\n}\n\nexport function blobReferenceDeserializer(item: any): BlobReference {\n return {\n blobUri: item[\"blobUri\"],\n storageAccountArmId: item[\"storageAccountArmId\"],\n credential: sasCredentialDeserializer(item[\"credential\"]),\n };\n}\n\n/** SAS Credential definition */\nexport interface SasCredential {\n /** SAS uri */\n readonly sasUri: string;\n /** Type of credential */\n readonly type: \"SAS\";\n}\n\nexport function sasCredentialDeserializer(item: any): SasCredential {\n return {\n sasUri: item[\"sasUri\"],\n type: item[\"type\"],\n };\n}\n\n/** model interface _GetCredentialsRequest */\nexport interface _GetCredentialsRequest {}\n\nexport function _getCredentialsRequestSerializer(item: _GetCredentialsRequest): any {\n return item;\n}\n\n/** Represents a reference to a blob for consumption */\nexport interface AssetCredentialResponse {\n /** Credential info to access the storage account. */\n blobReference: BlobReference;\n}\n\nexport function assetCredentialResponseDeserializer(item: any): AssetCredentialResponse {\n return {\n blobReference: blobReferenceDeserializer(item[\"blobReference\"]),\n };\n}\n\n/** Paged collection of Index items */\nexport interface _PagedIndex {\n /** The Index items on this page */\n value: IndexUnion[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedIndexDeserializer(item: any): _PagedIndex {\n return {\n value: indexUnionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function indexUnionArraySerializer(result: Array<IndexUnion>): any[] {\n return result.map((item) => {\n return indexUnionSerializer(item);\n });\n}\n\nexport function indexUnionArrayDeserializer(result: Array<IndexUnion>): any[] {\n return result.map((item) => {\n return indexUnionDeserializer(item);\n });\n}\n\n/** Index resource Definition */\nexport interface Index {\n /** Type of index */\n /** The discriminator possible values: AzureSearch, ManagedAzureSearch, CosmosDBNoSqlVectorStore */\n type: IndexType;\n /** Asset ID, a unique identifier for the asset */\n readonly id?: string;\n /** The name of the resource */\n readonly name: string;\n /** The version of the resource */\n readonly version: string;\n /** The asset description text. */\n description?: string;\n /** Tag dictionary. Tags can be added, removed, and updated. */\n tags?: Record<string, string>;\n}\n\nexport function indexSerializer(item: Index): any {\n return {\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\nexport function indexDeserializer(item: any): Index {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\n/** Alias for IndexUnion */\nexport type IndexUnion = AzureAISearchIndex | ManagedAzureAISearchIndex | CosmosDBIndex | Index;\n\nexport function indexUnionSerializer(item: IndexUnion): any {\n switch (item.type) {\n case \"AzureSearch\":\n return azureAISearchIndexSerializer(item as AzureAISearchIndex);\n\n case \"ManagedAzureSearch\":\n return managedAzureAISearchIndexSerializer(item as ManagedAzureAISearchIndex);\n\n case \"CosmosDBNoSqlVectorStore\":\n return cosmosDBIndexSerializer(item as CosmosDBIndex);\n\n default:\n return indexSerializer(item);\n }\n}\n\nexport function indexUnionDeserializer(item: any): IndexUnion {\n switch (item.type) {\n case \"AzureSearch\":\n return azureAISearchIndexDeserializer(item as AzureAISearchIndex);\n\n case \"ManagedAzureSearch\":\n return managedAzureAISearchIndexDeserializer(item as ManagedAzureAISearchIndex);\n\n case \"CosmosDBNoSqlVectorStore\":\n return cosmosDBIndexDeserializer(item as CosmosDBIndex);\n\n default:\n return indexDeserializer(item);\n }\n}\n\n/** Type of IndexType */\nexport type IndexType = \"AzureSearch\" | \"CosmosDBNoSqlVectorStore\" | \"ManagedAzureSearch\";\n\n/** Azure AI Search Index Definition */\nexport interface AzureAISearchIndex extends Index {\n /** Type of index */\n type: \"AzureSearch\";\n /** Name of connection to Azure AI Search */\n connectionName: string;\n /** Name of index in Azure AI Search resource to attach */\n indexName: string;\n}\n\nexport function azureAISearchIndexSerializer(item: AzureAISearchIndex): any {\n return {\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n connectionName: item[\"connectionName\"],\n indexName: item[\"indexName\"],\n };\n}\n\nexport function azureAISearchIndexDeserializer(item: any): AzureAISearchIndex {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n connectionName: item[\"connectionName\"],\n indexName: item[\"indexName\"],\n };\n}\n\n/** Managed Azure AI Search Index Definition */\nexport interface ManagedAzureAISearchIndex extends Index {\n /** Type of index */\n type: \"ManagedAzureSearch\";\n /** Vector store id of managed index */\n vectorStoreId: string;\n}\n\nexport function managedAzureAISearchIndexSerializer(item: ManagedAzureAISearchIndex): any {\n return {\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n vectorStoreId: item[\"vectorStoreId\"],\n };\n}\n\nexport function managedAzureAISearchIndexDeserializer(item: any): ManagedAzureAISearchIndex {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n vectorStoreId: item[\"vectorStoreId\"],\n };\n}\n\n/** CosmosDB Vector Store Index Definition */\nexport interface CosmosDBIndex extends Index {\n /** Type of index */\n type: \"CosmosDBNoSqlVectorStore\";\n /** Name of connection to CosmosDB */\n connectionName: string;\n /** Name of the CosmosDB Database */\n databaseName: string;\n /** Name of CosmosDB Container */\n containerName: string;\n /** Embedding model configuration */\n embeddingConfiguration: EmbeddingConfiguration;\n}\n\nexport function cosmosDBIndexSerializer(item: CosmosDBIndex): any {\n return {\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n connectionName: item[\"connectionName\"],\n databaseName: item[\"databaseName\"],\n containerName: item[\"containerName\"],\n embeddingConfiguration: embeddingConfigurationSerializer(item[\"embeddingConfiguration\"]),\n };\n}\n\nexport function cosmosDBIndexDeserializer(item: any): CosmosDBIndex {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n connectionName: item[\"connectionName\"],\n databaseName: item[\"databaseName\"],\n containerName: item[\"containerName\"],\n embeddingConfiguration: embeddingConfigurationDeserializer(item[\"embeddingConfiguration\"]),\n };\n}\n\n/** Embedding configuration class */\nexport interface EmbeddingConfiguration {\n /** Deployment name of embedding model. It can point to a model deployment either in the parent AIServices or a connection. */\n modelDeploymentName: string;\n /** Embedding field */\n embeddingField: string;\n}\n\nexport function embeddingConfigurationSerializer(item: EmbeddingConfiguration): any {\n return {\n modelDeploymentName: item[\"modelDeploymentName\"],\n embeddingField: item[\"embeddingField\"],\n };\n}\n\nexport function embeddingConfigurationDeserializer(item: any): EmbeddingConfiguration {\n return {\n modelDeploymentName: item[\"modelDeploymentName\"],\n embeddingField: item[\"embeddingField\"],\n };\n}\n\n/** Model Deployment Definition */\nexport interface Deployment {\n /** The type of the deployment */\n /** The discriminator possible values: ModelDeployment */\n type: DeploymentType;\n /** Name of the deployment */\n readonly name: string;\n}\n\nexport function deploymentDeserializer(item: any): Deployment {\n return {\n type: item[\"type\"],\n name: item[\"name\"],\n };\n}\n\n/** Alias for DeploymentUnion */\nexport type DeploymentUnion = ModelDeployment | Deployment;\n\nexport function deploymentUnionDeserializer(item: any): DeploymentUnion {\n switch (item.type) {\n case \"ModelDeployment\":\n return modelDeploymentDeserializer(item as ModelDeployment);\n\n default:\n return deploymentDeserializer(item);\n }\n}\n\n/** Type of DeploymentType */\nexport type DeploymentType = \"ModelDeployment\";\n\n/** Model Deployment Definition */\nexport interface ModelDeployment extends Deployment {\n /** The type of the deployment */\n type: \"ModelDeployment\";\n /** Publisher-specific name of the deployed model */\n readonly modelName: string;\n /** Publisher-specific version of the deployed model */\n readonly modelVersion: string;\n /** Name of the deployed model's publisher */\n readonly modelPublisher: string;\n /** Capabilities of deployed model */\n readonly capabilities: Record<string, string>;\n /** Sku of the model deployment */\n readonly sku: Sku;\n /** Name of the connection the deployment comes from */\n readonly connectionName?: string;\n}\n\nexport function modelDeploymentDeserializer(item: any): ModelDeployment {\n return {\n type: item[\"type\"],\n name: item[\"name\"],\n modelName: item[\"modelName\"],\n modelVersion: item[\"modelVersion\"],\n modelPublisher: item[\"modelPublisher\"],\n capabilities: item[\"capabilities\"],\n sku: skuDeserializer(item[\"sku\"]),\n connectionName: item[\"connectionName\"],\n };\n}\n\n/** Sku information */\nexport interface Sku {\n /** Sku capacity */\n capacity: number;\n /** Sku family */\n family: string;\n /** Sku name */\n name: string;\n /** Sku size */\n size: string;\n /** Sku tier */\n tier: string;\n}\n\nexport function skuDeserializer(item: any): Sku {\n return {\n capacity: item[\"capacity\"],\n family: item[\"family\"],\n name: item[\"name\"],\n size: item[\"size\"],\n tier: item[\"tier\"],\n };\n}\n\n/** Paged collection of Deployment items */\nexport interface _PagedDeployment {\n /** The Deployment items on this page */\n value: DeploymentUnion[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedDeploymentDeserializer(item: any): _PagedDeployment {\n return {\n value: deploymentUnionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function deploymentUnionArrayDeserializer(result: Array<DeploymentUnion>): any[] {\n return result.map((item) => {\n return deploymentUnionDeserializer(item);\n });\n}\n\n/** Red team details. */\nexport interface RedTeam {\n /** Identifier of the red team. */\n readonly id: string;\n /** Name of the red-team scan. */\n scanName?: string;\n /** Number of simulation rounds. */\n numTurns: number;\n /** List of attack strategies or nested lists of attack strategies. */\n attackStrategies: AttackStrategy[];\n /** Simulation-only or Simulation + Evaluation. Default false, if true the scan outputs conversation not evaluation result. */\n simulationOnly: boolean;\n /** List of risk categories to generate attack objectives for. */\n riskCategories: RiskCategory[];\n /** Application scenario for the red team operation, to generate scenario specific attacks. */\n applicationScenario?: string;\n /** Red team's tags. Unlike properties, tags are fully mutable. */\n tags?: Record<string, string>;\n /** Red team's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed. */\n properties?: Record<string, string>;\n /** Status of the red-team. It is set by service and is read-only. */\n readonly status?: string;\n /** Target configuration for the red-team run. */\n targetConfig: TargetConfigUnion;\n}\n\nexport function redTeamSerializer(item: RedTeam): any {\n return {\n scanName: item[\"scanName\"],\n numTurns: item[\"numTurns\"],\n attackStrategies: item[\"attackStrategies\"].map((p: any) => {\n return p;\n }),\n simulationOnly: item[\"simulationOnly\"],\n riskCategories: item[\"riskCategories\"].map((p: any) => {\n return p;\n }),\n applicationScenario: item[\"applicationScenario\"],\n tags: item[\"tags\"],\n properties: item[\"properties\"],\n targetConfig: targetConfigUnionSerializer(item[\"targetConfig\"]),\n };\n}\n\nexport function redTeamDeserializer(item: any): RedTeam {\n return {\n id: item[\"id\"],\n scanName: item[\"scanName\"],\n numTurns: item[\"numTurns\"],\n attackStrategies: item[\"attackStrategies\"].map((p: any) => {\n return p;\n }),\n simulationOnly: item[\"simulationOnly\"],\n riskCategories: item[\"riskCategories\"].map((p: any) => {\n return p;\n }),\n applicationScenario: item[\"applicationScenario\"],\n tags: item[\"tags\"],\n properties: item[\"properties\"],\n status: item[\"status\"],\n targetConfig: targetConfigUnionDeserializer(item[\"targetConfig\"]),\n };\n}\n\n/** Strategies for attacks. */\nexport type AttackStrategy =\n | \"easy\"\n | \"moderate\"\n | \"difficult\"\n | \"ascii_art\"\n | \"ascii_smuggler\"\n | \"atbash\"\n | \"base64\"\n | \"binary\"\n | \"caesar\"\n | \"character_space\"\n | \"jailbreak\"\n | \"ansii_attack\"\n | \"character_swap\"\n | \"suffix_append\"\n | \"string_join\"\n | \"unicode_confusable\"\n | \"unicode_substitution\"\n | \"diacritic\"\n | \"flip\"\n | \"leetspeak\"\n | \"rot13\"\n | \"morse\"\n | \"url\"\n | \"baseline\";\n/** Risk category for the attack objective. */\nexport type RiskCategory = \"HateUnfairness\" | \"Violence\" | \"Sexual\" | \"SelfHarm\";\n\n/** Abstract class for target configuration. */\nexport interface TargetConfig {\n /** Type of the model configuration. */\n /** The discriminator possible values: AzureOpenAIModel */\n type: string;\n}\n\nexport function targetConfigSerializer(item: TargetConfig): any {\n return { type: item[\"type\"] };\n}\n\nexport function targetConfigDeserializer(item: any): TargetConfig {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Alias for TargetConfigUnion */\nexport type TargetConfigUnion = AzureOpenAIModelConfiguration | TargetConfig;\n\nexport function targetConfigUnionSerializer(item: TargetConfigUnion): any {\n switch (item.type) {\n case \"AzureOpenAIModel\":\n return azureOpenAIModelConfigurationSerializer(item as AzureOpenAIModelConfiguration);\n\n default:\n return targetConfigSerializer(item);\n }\n}\n\nexport function targetConfigUnionDeserializer(item: any): TargetConfigUnion {\n switch (item.type) {\n case \"AzureOpenAIModel\":\n return azureOpenAIModelConfigurationDeserializer(item as AzureOpenAIModelConfiguration);\n\n default:\n return targetConfigDeserializer(item);\n }\n}\n\n/** Azure OpenAI model configuration. The API version would be selected by the service for querying the model. */\nexport interface AzureOpenAIModelConfiguration extends TargetConfig {\n /** Type of the model configuration. */\n readonly type: \"AzureOpenAIModel\";\n /** Deployment name for AOAI model. Example: gpt-4o if in AIServices or connection based `connection_name/deployment_name` (i.e. `my-aoai-connection/gpt-4o`. */\n modelDeploymentName: string;\n}\n\nexport function azureOpenAIModelConfigurationSerializer(item: AzureOpenAIModelConfiguration): any {\n return { modelDeploymentName: item[\"modelDeploymentName\"] };\n}\n\nexport function azureOpenAIModelConfigurationDeserializer(\n item: any,\n): AzureOpenAIModelConfiguration {\n return {\n type: item[\"type\"],\n modelDeploymentName: item[\"modelDeploymentName\"],\n };\n}\n\n/** Paged collection of RedTeam items */\nexport interface _PagedRedTeam {\n /** The RedTeam items on this page */\n value: RedTeam[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedRedTeamDeserializer(item: any): _PagedRedTeam {\n return {\n value: redTeamArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function redTeamArraySerializer(result: Array<RedTeam>): any[] {\n return result.map((item) => {\n return redTeamSerializer(item);\n });\n}\n\nexport function redTeamArrayDeserializer(result: Array<RedTeam>): any[] {\n return result.map((item) => {\n return redTeamDeserializer(item);\n });\n}\n\n/** The type of pending upload. */\nexport type PendingUploadType = \"None\" | \"BlobReference\";\n\n/** Azure AI Projects API versions */\nexport enum KnownVersions {\n /** Azure AI API version 2025-05-01. */\n V20250501 = \"2025-05-01\",\n /** Azure AI API version 2025-05-15-preview. */\n V20250515Preview = \"2025-05-15-preview\",\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,sEAAsE;AACtE,yDAAyD;AAuCzD,MAAM,UAAU,sBAAsB,CAAC,IAAS;IAC9C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;YAC9B,CAAC,CAAC,gCAAgC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACvD,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;KACrB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACnD,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;KACnB,CAAC;AACJ,CAAC;AAWD,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,QAAQ;YACX,OAAO,6BAA6B,CAAC,IAAyB,CAAC,CAAC;QAElE,KAAK,KAAK;YACR,OAAO,8BAA8B,CAAC,IAA0B,CAAC,CAAC;QAEpE,KAAK,YAAY;YAC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,EAAE,EAAE;QACzB,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC;AAKD,qCAAqC;AACrC,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,uCAAuC;IACvC,yCAAwB,CAAA;IACxB,+CAA+C;IAC/C,wDAAuC,CAAA;AACzC,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/naming-convention */\n\n/** Response from the list and get connections operations */\nexport interface Connection {\n /** The friendly name of the connection, provided by the user. */\n readonly name: string;\n /** A unique identifier for the connection, generated by the service */\n readonly id: string;\n /** Category of the connection */\n readonly type: ConnectionType;\n /** The connection URL to be used for this service */\n readonly target: string;\n /** Whether the connection is tagged as the default connection of its type */\n readonly isDefault: boolean;\n /** The credentials used by the connection */\n readonly credentials: BaseCredentialsUnion;\n /** Metadata of the connection */\n readonly metadata: Record<string, string>;\n}\n\n/** The Type (or category) of the connection */\nexport type ConnectionType =\n | \"AzureOpenAI\"\n | \"AzureBlob\"\n | \"AzureStorageAccount\"\n | \"CognitiveSearch\"\n | \"CosmosDB\"\n | \"ApiKey\"\n | \"AppConfig\"\n | \"AppInsights\"\n | \"CustomKeys\";\n\n/** A base class for connection credentials */\nexport interface BaseCredentials {\n /** The type of credential used by the connection */\n /** The discriminator possible values: ApiKey, AAD, CustomKeys, SAS, None */\n readonly type: CredentialType;\n}\n\nexport function connectionDeserializer(item: any): Connection {\n return {\n name: item[\"name\"],\n id: item[\"id\"],\n type: item[\"type\"],\n target: item[\"target\"],\n metadata: item[\"metadata\"],\n isDefault: item[\"isDefault\"],\n credentials: item[\"credentials\"]\n ? baseCredentialsUnionDeserializer(item[\"credentials\"])\n : { type: \"None\" },\n };\n}\n\nexport function baseCredentialsDeserializer(item: any): BaseCredentials {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Alias for BaseCredentialsUnion */\nexport type BaseCredentialsUnion =\n | ApiKeyCredentials\n | EntraIDCredentials\n | CustomCredential\n | SASCredentials\n | NoAuthenticationCredentials\n | BaseCredentials;\n\nexport function baseCredentialsUnionDeserializer(item: any): BaseCredentialsUnion {\n switch (item.type) {\n case \"ApiKey\":\n return apiKeyCredentialsDeserializer(item as ApiKeyCredentials);\n\n case \"AAD\":\n return entraIDCredentialsDeserializer(item as EntraIDCredentials);\n\n case \"CustomKeys\":\n return customCredentialDeserializer(item as CustomCredential);\n\n case \"SAS\":\n return sasCredentialsDeserializer(item as SASCredentials);\n\n case \"None\":\n return noAuthenticationCredentialsDeserializer(item as NoAuthenticationCredentials);\n\n default:\n return baseCredentialsDeserializer(item);\n }\n}\n\n/** The credential type used by the connection */\nexport type CredentialType = \"ApiKey\" | \"AAD\" | \"SAS\" | \"CustomKeys\" | \"None\";\n\n/** API Key Credential definition */\nexport interface ApiKeyCredentials extends BaseCredentials {\n /** The credentail type */\n readonly type: \"ApiKey\";\n /** API Key */\n readonly apiKey?: string;\n}\n\nexport function apiKeyCredentialsDeserializer(item: any): ApiKeyCredentials {\n return {\n type: item[\"type\"],\n apiKey: item[\"key\"],\n };\n}\n\n/** Entra ID credential definition */\nexport interface EntraIDCredentials extends BaseCredentials {\n /** The credential type */\n readonly type: \"AAD\";\n}\n\nexport function entraIDCredentialsDeserializer(item: any): EntraIDCredentials {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Custom credential definition */\nexport interface CustomCredential extends BaseCredentials {\n /** The credential type */\n readonly type: \"CustomKeys\";\n /** The credential type */\n readonly keys: Record<string, string>;\n}\n\nexport function customCredentialDeserializer(item: any): CustomCredential {\n return {\n type: item[\"type\"],\n keys: item[\"keys\"],\n };\n}\n\n/** Shared Access Signature (SAS) credential definition */\nexport interface SASCredentials extends BaseCredentials {\n /** The credential type */\n readonly type: \"SAS\";\n /** SAS token */\n readonly sasToken?: string;\n}\n\nexport function sasCredentialsDeserializer(item: any): SASCredentials {\n return {\n type: item[\"type\"],\n sasToken: item[\"SAS\"],\n };\n}\n\n/** Credentials that do not require authentication */\nexport interface NoAuthenticationCredentials extends BaseCredentials {\n /** The credential type */\n readonly type: \"None\";\n}\n\nexport function noAuthenticationCredentialsDeserializer(item: any): NoAuthenticationCredentials {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Paged collection of Connection items */\nexport interface _PagedConnection {\n /** The Connection items on this page */\n value: Connection[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedConnectionDeserializer(item: any): _PagedConnection {\n return {\n value: connectionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function connectionArrayDeserializer(result: Array<Connection>): any[] {\n return result.map((item) => {\n return connectionDeserializer(item);\n });\n}\n\n/** Evaluation Definition */\nexport interface Evaluation {\n /** Identifier of the evaluation. */\n readonly name: string;\n /** Data for evaluation. */\n data: InputDataUnion;\n /** Display Name for evaluation. It helps to find the evaluation easily in AI Foundry. It does not need to be unique. */\n displayName?: string;\n /** Description of the evaluation. It can be used to store additional information about the evaluation and is mutable. */\n description?: string;\n /** Status of the evaluation. It is set by service and is read-only. */\n readonly status?: string;\n /** Evaluation's tags. Unlike properties, tags are fully mutable. */\n tags?: Record<string, string>;\n /** Evaluation's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed. */\n properties?: Record<string, string>;\n /** Evaluators to be used for the evaluation. */\n evaluators: Record<string, EvaluatorConfiguration>;\n}\n\n/** optional id property for Evaluation, which shouldbe used for create operation */\nexport type EvaluationWithOptionalName = Omit<Evaluation, \"name\"> & { name?: string };\n\n// optional name property\nexport function evaluationSerializer(item: EvaluationWithOptionalName): any {\n return {\n data: inputDataUnionSerializer(item[\"data\"]),\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n properties: item[\"properties\"],\n evaluators: evaluatorConfigurationRecordSerializer(item[\"evaluators\"]),\n };\n}\n\nexport function evaluationDeserializer(item: any): Evaluation {\n return {\n name: item[\"id\"],\n data: inputDataUnionDeserializer(item[\"data\"]),\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n status: item[\"status\"],\n tags: item[\"tags\"],\n properties: item[\"properties\"],\n evaluators: evaluatorConfigurationRecordDeserializer(item[\"evaluators\"]),\n };\n}\n\n/** Abstract data class. */\nexport interface InputData {\n /** Type of the data */\n /** The discriminator possible values: dataset */\n type: string;\n}\n\nexport function inputDataSerializer(item: InputData): any {\n return { type: item[\"type\"] };\n}\n\nexport function inputDataDeserializer(item: any): InputData {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Alias for InputDataUnion */\nexport type InputDataUnion = InputDataset | InputData;\n\nexport function inputDataUnionSerializer(item: InputDataUnion): any {\n switch (item.type) {\n case \"dataset\":\n return inputDatasetSerializer(item as InputDataset);\n\n default:\n return inputDataSerializer(item);\n }\n}\n\nexport function inputDataUnionDeserializer(_item: any): InputDataUnion {\n const item = _item || {};\n\n switch (item.type) {\n case \"dataset\":\n return inputDatasetDeserializer(item as InputDataset);\n\n default:\n return inputDataDeserializer(item);\n }\n}\n\n/** Dataset as source for evaluation. */\nexport interface InputDataset extends InputData {\n /** Type of the data */\n type: \"dataset\";\n /** Evaluation input data */\n id: string;\n}\n\nexport function inputDatasetSerializer(item: InputDataset): any {\n return { type: item[\"type\"], id: item[\"id\"] };\n}\n\nexport function inputDatasetDeserializer(item: any): InputDataset {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n };\n}\n\nexport function evaluatorConfigurationRecordSerializer(\n item: Record<string, EvaluatorConfiguration>,\n): Record<string, any> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : evaluatorConfigurationSerializer(item[key]);\n });\n return result;\n}\n\nexport function evaluatorConfigurationRecordDeserializer(\n item: Record<string, any>,\n): Record<string, EvaluatorConfiguration> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : evaluatorConfigurationDeserializer(item[key]);\n });\n return result;\n}\n\n/** Evaluator Configuration */\nexport interface EvaluatorConfiguration {\n /** Identifier of the evaluator. */\n id: string;\n /** Initialization parameters of the evaluator. */\n initParams?: Record<string, any>;\n /** Data parameters of the evaluator. */\n dataMapping?: Record<string, string>;\n}\n\nexport function evaluatorConfigurationSerializer(item: EvaluatorConfiguration): any {\n return {\n id: item[\"id\"],\n initParams: item[\"initParams\"],\n dataMapping: item[\"dataMapping\"],\n };\n}\n\nexport function evaluatorConfigurationDeserializer(item: any): EvaluatorConfiguration {\n return {\n id: item[\"id\"],\n initParams: item[\"initParams\"],\n dataMapping: item[\"dataMapping\"],\n };\n}\n\n/** Paged collection of Evaluation items */\nexport interface _PagedEvaluation {\n /** The Evaluation items on this page */\n value: Evaluation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedEvaluationDeserializer(item: any): _PagedEvaluation {\n return {\n value: evaluationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function evaluationArraySerializer(result: Array<Evaluation>): any[] {\n return result.map((item) => {\n return evaluationSerializer(item);\n });\n}\n\nexport function evaluationArrayDeserializer(result: Array<Evaluation>): any[] {\n return result.map((item) => {\n return evaluationDeserializer(item);\n });\n}\n\n/** Evaluation request for agent run. */\nexport interface AgentEvaluationRequest {\n /** Identifier of the agent run. */\n runId: string;\n /** Identifier of the agent thread. This field is mandatory currently, but it will be optional in the future. */\n threadId?: string;\n /** Evaluators to be used for the evaluation. */\n evaluators: Record<string, EvaluatorConfiguration>;\n /** Sampling configuration for the evaluation. */\n samplingConfiguration?: AgentEvaluationSamplingConfiguration;\n /** Redaction configuration for the evaluation. */\n redactionConfiguration?: AgentEvaluationRedactionConfiguration;\n /** Pass the AppInsights connection string to the agent evaluation for the evaluation results and the errors logs. */\n appInsightsConnectionString: string;\n}\n\nexport function agentEvaluationRequestSerializer(item: AgentEvaluationRequest): any {\n return {\n runId: item[\"runId\"],\n threadId: item[\"threadId\"],\n evaluators: evaluatorConfigurationRecordSerializer(item[\"evaluators\"]),\n samplingConfiguration: !item[\"samplingConfiguration\"]\n ? item[\"samplingConfiguration\"]\n : agentEvaluationSamplingConfigurationSerializer(item[\"samplingConfiguration\"]),\n redactionConfiguration: !item[\"redactionConfiguration\"]\n ? item[\"redactionConfiguration\"]\n : agentEvaluationRedactionConfigurationSerializer(item[\"redactionConfiguration\"]),\n appInsightsConnectionString: item[\"appInsightsConnectionString\"],\n };\n}\n\n/** Definition for sampling strategy. */\nexport interface AgentEvaluationSamplingConfiguration {\n /** Name of the sampling strategy. */\n name: string;\n /** Percentage of sampling per hour (0-100). */\n samplingPercent: number;\n /** Maximum request rate per hour (0 to 1000). */\n maxRequestRate: number;\n}\n\nexport function agentEvaluationSamplingConfigurationSerializer(\n item: AgentEvaluationSamplingConfiguration,\n): any {\n return {\n name: item[\"name\"],\n samplingPercent: item[\"samplingPercent\"],\n maxRequestRate: item[\"maxRequestRate\"],\n };\n}\n\n/** The redaction configuration will allow the user to control what is redacted. */\nexport interface AgentEvaluationRedactionConfiguration {\n /** Redact score properties. If not specified, the default is to redact in production. */\n redactScoreProperties?: boolean;\n}\n\nexport function agentEvaluationRedactionConfigurationSerializer(\n item: AgentEvaluationRedactionConfiguration,\n): any {\n return { redactScoreProperties: item[\"redactScoreProperties\"] };\n}\n\n/** Evaluation response for agent evaluation run. */\nexport interface AgentEvaluation {\n /** Identifier of the agent evaluation run. */\n id: string;\n /** Status of the agent evaluation. Options: Running, Completed, Failed. */\n status: string;\n /** The reason of the request failure for the long running process, if applicable. */\n error?: string;\n /** The agent evaluation result. */\n result?: AgentEvaluationResult[];\n}\n\nexport function agentEvaluationDeserializer(item: any): AgentEvaluation {\n return {\n id: item[\"id\"],\n status: item[\"status\"],\n error: item[\"error\"],\n result: !item[\"result\"]\n ? item[\"result\"]\n : agentEvaluationResultArrayDeserializer(item[\"result\"]),\n };\n}\n\nexport function agentEvaluationResultArrayDeserializer(\n result: Array<AgentEvaluationResult>,\n): any[] {\n return result.map((item) => {\n return agentEvaluationResultDeserializer(item);\n });\n}\n\n/** Result for the agent evaluation evaluator run. */\nexport interface AgentEvaluationResult {\n /** Evaluator's name. This is the name of the evaluator that was used to evaluate the agent's completion. */\n evaluator: string;\n /** Identifier of the evaluator. */\n evaluatorId: string;\n /** Score of the given evaluator. No restriction on range. */\n score: number;\n /** Status of the evaluator result. Options: Running, Completed, Failed, NotApplicable. */\n status: string;\n /** Reasoning for the evaluation result. */\n reason?: string;\n /** Version of the evaluator that was used to evaluate the agent's completion. */\n version?: string;\n /** The unique identifier of the thread. */\n threadId?: string;\n /** The unique identifier of the run. */\n runId: string;\n /** A string explaining why there was an error, if applicable. */\n error?: string;\n /** Additional properties relevant to the evaluator. These will differ between evaluators. */\n additionalDetails?: Record<string, string>;\n}\n\nexport function agentEvaluationResultDeserializer(item: any): AgentEvaluationResult {\n return {\n evaluator: item[\"evaluator\"],\n evaluatorId: item[\"evaluatorId\"],\n score: item[\"score\"],\n status: item[\"status\"],\n reason: item[\"reason\"],\n version: item[\"version\"],\n threadId: item[\"threadId\"],\n runId: item[\"runId\"],\n error: item[\"error\"],\n additionalDetails: item[\"additionalDetails\"],\n };\n}\n\n/** Paged collection of DatasetVersion items */\nexport interface _PagedDatasetVersion {\n /** The DatasetVersion items on this page */\n value: DatasetVersionUnion[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedDatasetVersionDeserializer(item: any): _PagedDatasetVersion {\n return {\n value: datasetVersionUnionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function datasetVersionUnionArraySerializer(result: Array<DatasetVersionUnion>): any[] {\n return result.map((item) => {\n return datasetVersionUnionSerializer(item);\n });\n}\n\nexport function datasetVersionUnionArrayDeserializer(result: Array<DatasetVersionUnion>): any[] {\n return result.map((item) => {\n return datasetVersionUnionDeserializer(item);\n });\n}\n\n/** DatasetVersion Definition */\nexport interface DatasetVersion {\n /** URI of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330 */\n dataUri: string;\n /** Dataset type */\n /** The discriminator possible values: uri_file, uri_folder */\n type: DatasetType;\n /** Indicates if the dataset holds a reference to the storage, or the dataset manages storage itself. If true, the underlying data will not be deleted when the dataset version is deleted */\n readonly isReference?: boolean;\n /** The Azure Storage Account connection name. Required if startPendingUploadVersion was not called before creating the Dataset */\n connectionName?: string;\n /** Asset ID, a unique identifier for the asset */\n readonly id?: string;\n /** The name of the resource */\n readonly name: string;\n /** The version of the resource */\n readonly version: string;\n /** The asset description text. */\n description?: string;\n /** Tag dictionary. Tags can be added, removed, and updated. */\n tags?: Record<string, string>;\n}\n\nexport function datasetVersionSerializer(item: DatasetVersion): any {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n connectionName: item[\"connectionName\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\nexport function datasetVersionDeserializer(item: any): DatasetVersion {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n isReference: item[\"isReference\"],\n connectionName: item[\"connectionName\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\n/** Alias for DatasetVersionUnion */\nexport type DatasetVersionUnion = FileDatasetVersion | FolderDatasetVersion | DatasetVersion;\n\nexport function datasetVersionUnionSerializer(item: DatasetVersionUnion): any {\n switch (item.type) {\n case \"uri_file\":\n return fileDatasetVersionSerializer(item as FileDatasetVersion);\n\n case \"uri_folder\":\n return folderDatasetVersionSerializer(item as FolderDatasetVersion);\n\n default:\n return datasetVersionSerializer(item);\n }\n}\n\nexport function datasetVersionUnionDeserializer(item: any): DatasetVersionUnion {\n switch (item.type) {\n case \"uri_file\":\n return fileDatasetVersionDeserializer(item as FileDatasetVersion);\n\n case \"uri_folder\":\n return folderDatasetVersionDeserializer(item as FolderDatasetVersion);\n\n default:\n return datasetVersionDeserializer(item);\n }\n}\n\n/** Enum to determine the type of data. */\nexport type DatasetType = \"uri_file\" | \"uri_folder\";\n\n/** FileDatasetVersion Definition */\nexport interface FileDatasetVersion extends DatasetVersion {\n /** Dataset type */\n type: \"uri_file\";\n}\n\nexport function fileDatasetVersionSerializer(item: FileDatasetVersion): any {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n connectionName: item[\"connectionName\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\nexport function fileDatasetVersionDeserializer(item: any): FileDatasetVersion {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n isReference: item[\"isReference\"],\n connectionName: item[\"connectionName\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\n/** FileDatasetVersion Definition */\nexport interface FolderDatasetVersion extends DatasetVersion {\n /** Dataset type */\n type: \"uri_folder\";\n}\n\nexport function folderDatasetVersionSerializer(item: FolderDatasetVersion): any {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n connectionName: item[\"connectionName\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\nexport function folderDatasetVersionDeserializer(item: any): FolderDatasetVersion {\n return {\n dataUri: item[\"dataUri\"],\n type: item[\"type\"],\n isReference: item[\"isReference\"],\n connectionName: item[\"connectionName\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\n/** Represents a request for a pending upload. */\nexport interface PendingUploadRequest {\n /** If PendingUploadId is not provided, a random GUID will be used. */\n pendingUploadId?: string;\n /** Azure Storage Account connection name to use for generating temporary SAS token */\n connectionName?: string;\n /** BlobReference is the only supported type. */\n pendingUploadType: \"BlobReference\";\n}\n\nexport function pendingUploadRequestSerializer(item: PendingUploadRequest): any {\n return {\n pendingUploadId: item[\"pendingUploadId\"],\n connectionName: item[\"connectionName\"],\n pendingUploadType: item[\"pendingUploadType\"],\n };\n}\n\n/** Represents the response for a pending upload request */\nexport interface PendingUploadResponse {\n /** Container-level read, write, list SAS. */\n blobReference: BlobReference;\n /** ID for this upload request. */\n pendingUploadId: string;\n /** Version of asset to be created if user did not specify version when initially creating upload */\n version?: string;\n /** BlobReference is the only supported type */\n pendingUploadType: \"BlobReference\";\n}\n\nexport function pendingUploadResponseDeserializer(item: any): PendingUploadResponse {\n return {\n blobReference: blobReferenceDeserializer(item[\"blobReference\"]),\n pendingUploadId: item[\"pendingUploadId\"],\n version: item[\"version\"],\n pendingUploadType: item[\"pendingUploadType\"],\n };\n}\n\n/** Blob reference details. */\nexport interface BlobReference {\n /** Blob URI path for client to upload data. Example: https://blob.windows.core.net/Container/Path */\n blobUri: string;\n /** ARM ID of the storage account to use. */\n storageAccountArmId: string;\n /** Credential info to access the storage account. */\n credential: SasCredential;\n}\n\nexport function blobReferenceDeserializer(item: any): BlobReference {\n return {\n blobUri: item[\"blobUri\"],\n storageAccountArmId: item[\"storageAccountArmId\"],\n credential: sasCredentialDeserializer(item[\"credential\"]),\n };\n}\n\n/** SAS Credential definition */\nexport interface SasCredential {\n /** SAS uri */\n readonly sasUri: string;\n /** Type of credential */\n readonly type: \"SAS\";\n}\n\nexport function sasCredentialDeserializer(item: any): SasCredential {\n return {\n sasUri: item[\"sasUri\"],\n type: item[\"type\"],\n };\n}\n\n/** Represents a reference to a blob for consumption */\nexport interface AssetCredentialResponse {\n /** Credential info to access the storage account. */\n blobReference: BlobReference;\n}\n\nexport function assetCredentialResponseDeserializer(item: any): AssetCredentialResponse {\n return {\n blobReference: blobReferenceDeserializer(item[\"blobReference\"]),\n };\n}\n\n/** Paged collection of Index items */\nexport interface _PagedIndex {\n /** The Index items on this page */\n value: IndexUnion[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedIndexDeserializer(item: any): _PagedIndex {\n return {\n value: indexUnionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function indexUnionArraySerializer(result: Array<IndexUnion>): any[] {\n return result.map((item) => {\n return indexUnionSerializer(item);\n });\n}\n\nexport function indexUnionArrayDeserializer(result: Array<IndexUnion>): any[] {\n return result.map((item) => {\n return indexUnionDeserializer(item);\n });\n}\n\n/** Index resource Definition */\nexport interface Index {\n /** Type of index */\n /** The discriminator possible values: AzureSearch, ManagedAzureSearch, CosmosDBNoSqlVectorStore */\n type: IndexType;\n /** Asset ID, a unique identifier for the asset */\n readonly id?: string;\n /** The name of the resource */\n readonly name: string;\n /** The version of the resource */\n readonly version: string;\n /** The asset description text. */\n description?: string;\n /** Tag dictionary. Tags can be added, removed, and updated. */\n tags?: Record<string, string>;\n}\n\nexport function indexSerializer(item: Index): any {\n return {\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\nexport function indexDeserializer(item: any): Index {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n };\n}\n\n/** Alias for IndexUnion */\nexport type IndexUnion = AzureAISearchIndex | ManagedAzureAISearchIndex | CosmosDBIndex | Index;\n\nexport function indexUnionSerializer(item: IndexUnion): any {\n switch (item.type) {\n case \"AzureSearch\":\n return azureAISearchIndexSerializer(item as AzureAISearchIndex);\n\n case \"ManagedAzureSearch\":\n return managedAzureAISearchIndexSerializer(item as ManagedAzureAISearchIndex);\n\n case \"CosmosDBNoSqlVectorStore\":\n return cosmosDBIndexSerializer(item as CosmosDBIndex);\n\n default:\n return indexSerializer(item);\n }\n}\n\nexport function indexUnionDeserializer(item: any): IndexUnion {\n switch (item.type) {\n case \"AzureSearch\":\n return azureAISearchIndexDeserializer(item as AzureAISearchIndex);\n\n case \"ManagedAzureSearch\":\n return managedAzureAISearchIndexDeserializer(item as ManagedAzureAISearchIndex);\n\n case \"CosmosDBNoSqlVectorStore\":\n return cosmosDBIndexDeserializer(item as CosmosDBIndex);\n\n default:\n return indexDeserializer(item);\n }\n}\n\n/** Type of IndexType */\nexport type IndexType = \"AzureSearch\" | \"CosmosDBNoSqlVectorStore\" | \"ManagedAzureSearch\";\n\n/** Azure AI Search Index Definition */\nexport interface AzureAISearchIndex extends Index {\n /** Type of index */\n type: \"AzureSearch\";\n /** Name of connection to Azure AI Search */\n connectionName: string;\n /** Name of index in Azure AI Search resource to attach */\n indexName: string;\n /** Field mapping configuration */\n fieldMapping?: FieldMapping;\n}\n\nexport function azureAISearchIndexSerializer(item: AzureAISearchIndex): any {\n return {\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n connectionName: item[\"connectionName\"],\n indexName: item[\"indexName\"],\n fieldMapping: !item[\"fieldMapping\"]\n ? item[\"fieldMapping\"]\n : fieldMappingSerializer(item[\"fieldMapping\"]),\n };\n}\n\nexport function azureAISearchIndexDeserializer(item: any): AzureAISearchIndex {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n connectionName: item[\"connectionName\"],\n indexName: item[\"indexName\"],\n fieldMapping: !item[\"fieldMapping\"]\n ? item[\"fieldMapping\"]\n : fieldMappingDeserializer(item[\"fieldMapping\"]),\n };\n}\n\n/** Field mapping configuration class */\nexport interface FieldMapping {\n /** List of fields with text content */\n contentFields: string[];\n /** Path of file to be used as a source of text content */\n filepathField?: string;\n /** Field containing the title of the document */\n titleField?: string;\n /** Field containing the url of the document */\n urlField?: string;\n /** List of fields with vector content */\n vectorFields?: string[];\n /** List of fields with metadata content */\n metadataFields?: string[];\n}\n\nexport function fieldMappingSerializer(item: FieldMapping): any {\n return {\n contentFields: item[\"contentFields\"].map((p: any) => {\n return p;\n }),\n filepathField: item[\"filepathField\"],\n titleField: item[\"titleField\"],\n urlField: item[\"urlField\"],\n vectorFields: !item[\"vectorFields\"]\n ? item[\"vectorFields\"]\n : item[\"vectorFields\"].map((p: any) => {\n return p;\n }),\n metadataFields: !item[\"metadataFields\"]\n ? item[\"metadataFields\"]\n : item[\"metadataFields\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function fieldMappingDeserializer(item: any): FieldMapping {\n return {\n contentFields: item[\"contentFields\"].map((p: any) => {\n return p;\n }),\n filepathField: item[\"filepathField\"],\n titleField: item[\"titleField\"],\n urlField: item[\"urlField\"],\n vectorFields: !item[\"vectorFields\"]\n ? item[\"vectorFields\"]\n : item[\"vectorFields\"].map((p: any) => {\n return p;\n }),\n metadataFields: !item[\"metadataFields\"]\n ? item[\"metadataFields\"]\n : item[\"metadataFields\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** Managed Azure AI Search Index Definition */\nexport interface ManagedAzureAISearchIndex extends Index {\n /** Type of index */\n type: \"ManagedAzureSearch\";\n /** Vector store id of managed index */\n vectorStoreId: string;\n}\n\nexport function managedAzureAISearchIndexSerializer(item: ManagedAzureAISearchIndex): any {\n return {\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n vectorStoreId: item[\"vectorStoreId\"],\n };\n}\n\nexport function managedAzureAISearchIndexDeserializer(item: any): ManagedAzureAISearchIndex {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n vectorStoreId: item[\"vectorStoreId\"],\n };\n}\n\n/** CosmosDB Vector Store Index Definition */\nexport interface CosmosDBIndex extends Index {\n /** Type of index */\n type: \"CosmosDBNoSqlVectorStore\";\n /** Name of connection to CosmosDB */\n connectionName: string;\n /** Name of the CosmosDB Database */\n databaseName: string;\n /** Name of CosmosDB Container */\n containerName: string;\n /** Embedding model configuration */\n embeddingConfiguration: EmbeddingConfiguration;\n /** Field mapping configuration */\n fieldMapping: FieldMapping;\n}\n\nexport function cosmosDBIndexSerializer(item: CosmosDBIndex): any {\n return {\n type: item[\"type\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n connectionName: item[\"connectionName\"],\n databaseName: item[\"databaseName\"],\n containerName: item[\"containerName\"],\n embeddingConfiguration: embeddingConfigurationSerializer(item[\"embeddingConfiguration\"]),\n fieldMapping: fieldMappingSerializer(item[\"fieldMapping\"]),\n };\n}\n\nexport function cosmosDBIndexDeserializer(item: any): CosmosDBIndex {\n return {\n type: item[\"type\"],\n id: item[\"id\"],\n name: item[\"name\"],\n version: item[\"version\"],\n description: item[\"description\"],\n tags: item[\"tags\"],\n connectionName: item[\"connectionName\"],\n databaseName: item[\"databaseName\"],\n containerName: item[\"containerName\"],\n embeddingConfiguration: embeddingConfigurationDeserializer(item[\"embeddingConfiguration\"]),\n fieldMapping: fieldMappingDeserializer(item[\"fieldMapping\"]),\n };\n}\n\n/** Embedding configuration class */\nexport interface EmbeddingConfiguration {\n /** Deployment name of embedding model. It can point to a model deployment either in the parent AIServices or a connection. */\n modelDeploymentName: string;\n /** Embedding field */\n embeddingField: string;\n}\n\nexport function embeddingConfigurationSerializer(item: EmbeddingConfiguration): any {\n return {\n modelDeploymentName: item[\"modelDeploymentName\"],\n embeddingField: item[\"embeddingField\"],\n };\n}\n\nexport function embeddingConfigurationDeserializer(item: any): EmbeddingConfiguration {\n return {\n modelDeploymentName: item[\"modelDeploymentName\"],\n embeddingField: item[\"embeddingField\"],\n };\n}\n\n/** Model Deployment Definition */\nexport interface Deployment {\n /** The type of the deployment */\n /** The discriminator possible values: ModelDeployment */\n type: DeploymentType;\n /** Name of the deployment */\n readonly name: string;\n}\n\nexport function deploymentDeserializer(item: any): Deployment {\n return {\n type: item[\"type\"],\n name: item[\"name\"],\n };\n}\n\n/** Alias for DeploymentUnion */\nexport type DeploymentUnion = ModelDeployment | Deployment;\n\nexport function deploymentUnionDeserializer(item: any): DeploymentUnion {\n switch (item.type) {\n case \"ModelDeployment\":\n return modelDeploymentDeserializer(item as ModelDeployment);\n\n default:\n return deploymentDeserializer(item);\n }\n}\n\n/** Type of DeploymentType */\nexport type DeploymentType = \"ModelDeployment\";\n\n/** Model Deployment Definition */\nexport interface ModelDeployment extends Deployment {\n /** The type of the deployment */\n type: \"ModelDeployment\";\n /** Publisher-specific name of the deployed model */\n readonly modelName: string;\n /** Publisher-specific version of the deployed model */\n readonly modelVersion: string;\n /** Name of the deployed model's publisher */\n readonly modelPublisher: string;\n /** Capabilities of deployed model */\n readonly capabilities: Record<string, string>;\n /** Sku of the model deployment */\n readonly sku: Sku;\n /** Name of the connection the deployment comes from */\n readonly connectionName?: string;\n}\n\nexport function modelDeploymentDeserializer(item: any): ModelDeployment {\n return {\n type: item[\"type\"],\n name: item[\"name\"],\n modelName: item[\"modelName\"],\n modelVersion: item[\"modelVersion\"],\n modelPublisher: item[\"modelPublisher\"],\n capabilities: item[\"capabilities\"],\n sku: skuDeserializer(item[\"sku\"]),\n connectionName: item[\"connectionName\"],\n };\n}\n\n/** Sku information */\nexport interface Sku {\n /** Sku capacity */\n capacity: number;\n /** Sku family */\n family: string;\n /** Sku name */\n name: string;\n /** Sku size */\n size: string;\n /** Sku tier */\n tier: string;\n}\n\nexport function skuDeserializer(item: any): Sku {\n return {\n capacity: item[\"capacity\"],\n family: item[\"family\"],\n name: item[\"name\"],\n size: item[\"size\"],\n tier: item[\"tier\"],\n };\n}\n\n/** Paged collection of Deployment items */\nexport interface _PagedDeployment {\n /** The Deployment items on this page */\n value: DeploymentUnion[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedDeploymentDeserializer(item: any): _PagedDeployment {\n return {\n value: deploymentUnionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function deploymentUnionArrayDeserializer(result: Array<DeploymentUnion>): any[] {\n return result.map((item) => {\n return deploymentUnionDeserializer(item);\n });\n}\n\n/** Red team details. */\nexport interface RedTeam {\n /** Identifier of the red team run. */\n readonly name: string;\n /** Name of the red-team run. */\n displayName?: string;\n /** Number of simulation rounds. */\n numTurns?: number;\n /** List of attack strategies or nested lists of attack strategies. */\n attackStrategies?: AttackStrategy[];\n /** Simulation-only or Simulation + Evaluation. Default false, if true the scan outputs conversation not evaluation result. */\n simulationOnly?: boolean;\n /** List of risk categories to generate attack objectives for. */\n riskCategories?: RiskCategory[];\n /** Application scenario for the red team operation, to generate scenario specific attacks. */\n applicationScenario?: string;\n /** Red team's tags. Unlike properties, tags are fully mutable. */\n tags?: Record<string, string>;\n /** Red team's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed. */\n properties?: Record<string, string>;\n /** Status of the red-team. It is set by service and is read-only. */\n readonly status?: string;\n /** Target configuration for the red-team run. */\n target: TargetConfigUnion;\n}\n\nexport function redTeamSerializer(item: RedTeam): any {\n return {\n displayName: item[\"displayName\"],\n numTurns: item[\"numTurns\"],\n attackStrategies: !item[\"attackStrategies\"]\n ? item[\"attackStrategies\"]\n : item[\"attackStrategies\"].map((p: any) => {\n return p;\n }),\n simulationOnly: item[\"simulationOnly\"],\n riskCategories: !item[\"riskCategories\"]\n ? item[\"riskCategories\"]\n : item[\"riskCategories\"].map((p: any) => {\n return p;\n }),\n applicationScenario: item[\"applicationScenario\"],\n tags: item[\"tags\"],\n properties: item[\"properties\"],\n target: targetConfigUnionSerializer(item[\"target\"]),\n };\n}\n\nexport function redTeamDeserializer(item: any): RedTeam {\n return {\n name: item[\"id\"],\n displayName: item[\"displayName\"],\n numTurns: item[\"numTurns\"],\n attackStrategies: !item[\"attackStrategies\"]\n ? item[\"attackStrategies\"]\n : item[\"attackStrategies\"].map((p: any) => {\n return p;\n }),\n simulationOnly: item[\"simulationOnly\"],\n riskCategories: !item[\"riskCategories\"]\n ? item[\"riskCategories\"]\n : item[\"riskCategories\"].map((p: any) => {\n return p;\n }),\n applicationScenario: item[\"applicationScenario\"],\n tags: item[\"tags\"],\n properties: item[\"properties\"],\n status: item[\"status\"],\n target: targetConfigUnionDeserializer(item[\"target\"]),\n };\n}\n\n/** Strategies for attacks. */\nexport type AttackStrategy =\n | \"easy\"\n | \"moderate\"\n | \"difficult\"\n | \"ascii_art\"\n | \"ascii_smuggler\"\n | \"atbash\"\n | \"base64\"\n | \"binary\"\n | \"caesar\"\n | \"character_space\"\n | \"jailbreak\"\n | \"ansii_attack\"\n | \"character_swap\"\n | \"suffix_append\"\n | \"string_join\"\n | \"unicode_confusable\"\n | \"unicode_substitution\"\n | \"diacritic\"\n | \"flip\"\n | \"leetspeak\"\n | \"rot13\"\n | \"morse\"\n | \"url\"\n | \"baseline\";\n/** Risk category for the attack objective. */\nexport type RiskCategory = \"HateUnfairness\" | \"Violence\" | \"Sexual\" | \"SelfHarm\";\n\n/** Abstract class for target configuration. */\nexport interface TargetConfig {\n /** Type of the model configuration. */\n /** The discriminator possible values: AzureOpenAIModel */\n type: string;\n}\n\nexport function targetConfigSerializer(item: TargetConfig): any {\n return { type: item[\"type\"] };\n}\n\nexport function targetConfigDeserializer(item: any): TargetConfig {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Alias for TargetConfigUnion */\nexport type TargetConfigUnion = AzureOpenAIModelConfiguration | TargetConfig;\n\nexport function targetConfigUnionSerializer(item: TargetConfigUnion): any {\n switch (item.type) {\n case \"AzureOpenAIModel\":\n return azureOpenAIModelConfigurationSerializer(item as AzureOpenAIModelConfiguration);\n\n default:\n return targetConfigSerializer(item);\n }\n}\n\nexport function targetConfigUnionDeserializer(item: any): TargetConfigUnion {\n switch (item.type) {\n case \"AzureOpenAIModel\":\n return azureOpenAIModelConfigurationDeserializer(item as AzureOpenAIModelConfiguration);\n\n default:\n return targetConfigDeserializer(item);\n }\n}\n\n/** Azure OpenAI model configuration. The API version would be selected by the service for querying the model. */\nexport interface AzureOpenAIModelConfiguration extends TargetConfig {\n /** Type of the model configuration. */\n readonly type: \"AzureOpenAIModel\";\n /** Deployment name for AOAI model. Example: gpt-4o if in AIServices or connection based `connection_name/deployment_name` (i.e. `my-aoai-connection/gpt-4o`. */\n modelDeploymentName: string;\n}\n\nexport function azureOpenAIModelConfigurationSerializer(item: AzureOpenAIModelConfiguration): any {\n return { modelDeploymentName: item[\"modelDeploymentName\"] };\n}\n\nexport function azureOpenAIModelConfigurationDeserializer(\n item: any,\n): AzureOpenAIModelConfiguration {\n return {\n type: item[\"type\"],\n modelDeploymentName: item[\"modelDeploymentName\"],\n };\n}\n\n/** Paged collection of RedTeam items */\nexport interface _PagedRedTeam {\n /** The RedTeam items on this page */\n value: RedTeam[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _pagedRedTeamDeserializer(item: any): _PagedRedTeam {\n return {\n value: redTeamArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function redTeamArraySerializer(result: Array<RedTeam>): any[] {\n return result.map((item) => {\n return redTeamSerializer(item);\n });\n}\n\nexport function redTeamArrayDeserializer(result: Array<RedTeam>): any[] {\n return result.map((item) => {\n return redTeamDeserializer(item);\n });\n}\n\n/** The type of pending upload. */\nexport type PendingUploadType = \"None\" | \"BlobReference\";\n\n/** Azure AI Projects API versions */\nexport enum KnownVersions {\n /** Azure AI API version 2025-05-01. */\n V20250501 = \"2025-05-01\",\n /** Azure AI API version 2025-05-15-preview. */\n V20250515Preview = \"2025-05-15-preview\",\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/connections/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EACL,UAAU,EAEV,gBAAgB,EAEhB,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,6BAA6B,EAC7B,2CAA2C,EAC3C,4BAA4B,EAC7B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,6BAAsD,GAC9D,gBAAgB,CAyBlB;AAED,wBAAsB,gBAAgB,CAAC,MAAM,E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AC5B,OAAO,GAAE,4BAAqD,GAC7D,OAAO,CAAC,UAAU,CAAC,CAMrB;AAED;;;;;;;;GAQG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,cAAc,EAC9B,kBAAkB,GAAE,OAAe,GAClC,OAAO,CAAC,UAAU,CAAC,CAmBrB"}
@@ -7,13 +7,10 @@ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js"
7
7
  import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
8
8
  export function _listSend(context, options = { requestOptions: {} }) {
9
9
  var _a, _b;
10
- const path = expandUrlTemplate("/connections{?api-version,connectionType,defaultConnection,top,skip,maxpagesize}", {
10
+ const path = expandUrlTemplate("/connections{?api-version,connectionType,defaultConnection}", {
11
11
  "api-version": context.apiVersion,
12
12
  connectionType: options === null || options === void 0 ? void 0 : options.connectionType,
13
13
  defaultConnection: options === null || options === void 0 ? void 0 : options.defaultConnection,
14
- top: options === null || options === void 0 ? void 0 : options.top,
15
- skip: options === null || options === void 0 ? void 0 : options.skip,
16
- maxpagesize: options === null || options === void 0 ? void 0 : options.maxpagesize,
17
14
  }, {
18
15
  allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
19
16
  });
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/connections/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAEL,sBAAsB,EAEtB,4BAA4B,GAE7B,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAyC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AAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,sBAAsB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC;AAED,0EAA0E;AAC1E,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,IAAY,EACZ,kBAA4B,EAC5B,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,IAAI,kBAAkB,EAAE,CAAC;QACvB,OAAO,kBAAkB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACtD,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,OAAe,EACf,cAA8B,EAC9B,qBAA8B,KAAK;;IAEnC,MAAM,WAAW,GAAG;QAClB,cAAc;QACd,iBAAiB,EAAE,IAAI;KACxB,CAAC;IAEF,0EAA0E;IAC1E,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;;QAE/C,oCAAoC;QACpC,KAA+B,eAAA,gBAAA,cAAA,WAAW,CAAA,iBAAA,2FAAE,CAAC;YAAd,2BAAW;YAAX,WAAW;YAA/B,MAAM,UAAU,KAAA,CAAA;YACzB,IAAI,kBAAkB,EAAE,CAAC;gBACvB,oEAAoE;gBACpE,OAAO,kBAAkB,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC;YACD,OAAO,UAAU,CAAC;QACpB,CAAC;;;;;;;;;IAED,MAAM,IAAI,KAAK,CAAC,yCAAyC,cAAc,GAAG,CAAC,CAAC;AAC9E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AIProjectContext as Client } from \"../index.js\";\nimport {\n Connection,\n connectionDeserializer,\n _PagedConnection,\n _pagedConnectionDeserializer,\n ConnectionType,\n} from \"../../models/models.js\";\nimport {\n ConnectionsListOptionalParams,\n ConnectionsGetWithCredentialsOptionalParams,\n ConnectionsGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: ConnectionsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections{?api-version,connectionType,defaultConnection,top,skip,maxpagesize}\",\n {\n \"api-version\": context.apiVersion,\n connectionType: options?.connectionType,\n defaultConnection: options?.defaultConnection,\n top: options?.top,\n skip: options?.skip,\n maxpagesize: options?.maxpagesize,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_PagedConnection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _pagedConnectionDeserializer(result.body);\n}\n\n/** List all connections in the project, without populating connection credentials */\nexport function list(\n context: Client,\n options: ConnectionsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Connection> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getWithCredentialsSend(\n context: Client,\n name: string,\n options: ConnectionsGetWithCredentialsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections/{name}/getConnectionWithCredentials{?api-version}\",\n {\n name: name,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getWithCredentialsDeserialize(\n result: PathUncheckedResponse,\n): Promise<Connection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return connectionDeserializer(result.body);\n}\n\n/** Get a connection by name, with its connection credentials */\nexport async function getWithCredentials(\n context: Client,\n name: string,\n options: ConnectionsGetWithCredentialsOptionalParams = { requestOptions: {} },\n): Promise<Connection> {\n const result = await _getWithCredentialsSend(context, name, options);\n return _getWithCredentialsDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n name: string,\n options: ConnectionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections/{name}{?api-version}\",\n {\n name: name,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Connection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return connectionDeserializer(result.body);\n}\n\n/** Get a connection by name, without populating connection credentials */\nexport async function get(\n context: Client,\n name: string,\n includeCredentials?: boolean,\n options: ConnectionsGetOptionalParams = { requestOptions: {} },\n): Promise<Connection> {\n if (includeCredentials) {\n return getWithCredentials(context, name, options);\n }\n const result = await _getSend(context, name, options);\n return _getDeserialize(result);\n}\n\n/**\n * Get the default connection for a given connection type.\n *\n * @param context - The AIProjectContext client\n * @param connectionType - The type of the connection. Required.\n * @param includeCredentials - Whether to include credentials in the response. Default is false.\n * @returns A Connection object\n * @throws Error if no default connection is found for the given type.\n */\nexport async function getDefault(\n context: Client,\n connectionType: ConnectionType,\n includeCredentials: boolean = false,\n): Promise<Connection> {\n const listOptions = {\n connectionType,\n defaultConnection: true,\n };\n\n // Use the list function to find default connections of the specified type\n const connections = list(context, listOptions);\n\n // Find the first default connection\n for await (const connection of connections) {\n if (includeCredentials) {\n // If credentials are requested, get the connection with credentials\n return getWithCredentials(context, connection.name);\n }\n return connection;\n }\n\n throw new Error(`No default connection found for type: ${connectionType}.`);\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/connections/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAEL,sBAAsB,EAEtB,4BAA4B,GAE7B,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE/D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,6DAA6D,EAC7D;QACE,aAAa,EAAE,OAAO,CAAC,UAAU;QACjC,cAAc,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc;QACvC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB;KAC9C,EACD;QACE,aAAa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AC;IACtD,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,OAAe,EACf,cAA8B,EAC9B,qBAA8B,KAAK;;IAEnC,MAAM,WAAW,GAAG;QAClB,cAAc;QACd,iBAAiB,EAAE,IAAI;KACxB,CAAC;IAEF,0EAA0E;IAC1E,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;;QAE/C,oCAAoC;QACpC,KAA+B,eAAA,gBAAA,cAAA,WAAW,CAAA,iBAAA,2FAAE,CAAC;YAAd,2BAAW;YAAX,WAAW;YAA/B,MAAM,UAAU,KAAA,CAAA;YACzB,IAAI,kBAAkB,EAAE,CAAC;gBACvB,oEAAoE;gBACpE,OAAO,kBAAkB,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC;YACD,OAAO,UAAU,CAAC;QACpB,CAAC;;;;;;;;;IAED,MAAM,IAAI,KAAK,CAAC,yCAAyC,cAAc,GAAG,CAAC,CAAC;AAC9E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AIProjectContext as Client } from \"../index.js\";\nimport {\n Connection,\n connectionDeserializer,\n _PagedConnection,\n _pagedConnectionDeserializer,\n ConnectionType,\n} from \"../../models/models.js\";\nimport {\n ConnectionsListOptionalParams,\n ConnectionsGetWithCredentialsOptionalParams,\n ConnectionsGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: ConnectionsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections{?api-version,connectionType,defaultConnection}\",\n {\n \"api-version\": context.apiVersion,\n connectionType: options?.connectionType,\n defaultConnection: options?.defaultConnection,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_PagedConnection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _pagedConnectionDeserializer(result.body);\n}\n\n/** List all connections in the project, without populating connection credentials */\nexport function list(\n context: Client,\n options: ConnectionsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Connection> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getWithCredentialsSend(\n context: Client,\n name: string,\n options: ConnectionsGetWithCredentialsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections/{name}/getConnectionWithCredentials{?api-version}\",\n {\n name: name,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getWithCredentialsDeserialize(\n result: PathUncheckedResponse,\n): Promise<Connection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return connectionDeserializer(result.body);\n}\n\n/** Get a connection by name, with its connection credentials */\nexport async function getWithCredentials(\n context: Client,\n name: string,\n options: ConnectionsGetWithCredentialsOptionalParams = { requestOptions: {} },\n): Promise<Connection> {\n const result = await _getWithCredentialsSend(context, name, options);\n return _getWithCredentialsDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n name: string,\n options: ConnectionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections/{name}{?api-version}\",\n {\n name: name,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Connection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return connectionDeserializer(result.body);\n}\n\n/** Get a connection by name, without populating connection credentials */\nexport async function get(\n context: Client,\n name: string,\n includeCredentials?: boolean,\n options: ConnectionsGetOptionalParams = { requestOptions: {} },\n): Promise<Connection> {\n if (includeCredentials) {\n return getWithCredentials(context, name, options);\n }\n const result = await _getSend(context, name, options);\n return _getDeserialize(result);\n}\n\n/**\n * Get the default connection for a given connection type.\n *\n * @param context - The AIProjectContext client\n * @param connectionType - The type of the connection. Required.\n * @param includeCredentials - Whether to include credentials in the response. Default is false.\n * @returns A Connection object\n * @throws Error if no default connection is found for the given type.\n */\nexport async function getDefault(\n context: Client,\n connectionType: ConnectionType,\n includeCredentials: boolean = false,\n): Promise<Connection> {\n const listOptions = {\n connectionType,\n defaultConnection: true,\n };\n\n // Use the list function to find default connections of the specified type\n const connections = list(context, listOptions);\n\n // Find the first default connection\n for await (const connection of connections) {\n if (includeCredentials) {\n // If credentials are requested, get the connection with credentials\n return getWithCredentials(context, connection.name);\n }\n return connection;\n }\n\n throw new Error(`No default connection found for type: ${connectionType}.`);\n}\n"]}
@@ -6,12 +6,6 @@ export interface ConnectionsListOptionalParams extends OperationOptions {
6
6
  connectionType?: ConnectionType;
7
7
  /** List connections that are default connections */
8
8
  defaultConnection?: boolean;
9
- /** The number of result items to return. */
10
- top?: number;
11
- /** The number of result items to skip. */
12
- skip?: number;
13
- /** The maximum number of result items per page. */
14
- maxpagesize?: number;
15
9
  /** An opaque, globally-unique, client-generated string identifier for the request. */
16
10
  clientRequestId?: string;
17
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/connections/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACrE,6CAA6C;IAC7C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4CAA4C;IAC5C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,2BAA2B;AAC3B,MAAM,WAAW,2CAA4C,SAAQ,gBAAgB;IACnF,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;IACpE,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/connections/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACrE,6CAA6C;IAC7C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,2BAA2B;AAC3B,MAAM,WAAW,2CAA4C,SAAQ,gBAAgB;IACnF,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;IACpE,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/connections/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ConnectionType } from \"../../models/models.js\";\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface ConnectionsListOptionalParams extends OperationOptions {\n /** List connections of this specific type */\n connectionType?: ConnectionType;\n /** List connections that are default connections */\n defaultConnection?: boolean;\n /** The number of result items to return. */\n top?: number;\n /** The number of result items to skip. */\n skip?: number;\n /** The maximum number of result items per page. */\n maxpagesize?: number;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface ConnectionsGetWithCredentialsOptionalParams extends OperationOptions {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface ConnectionsGetOptionalParams extends OperationOptions {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n"]}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/connections/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ConnectionType } from \"../../models/models.js\";\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface ConnectionsListOptionalParams extends OperationOptions {\n /** List connections of this specific type */\n connectionType?: ConnectionType;\n /** List connections that are default connections */\n defaultConnection?: boolean;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface ConnectionsGetWithCredentialsOptionalParams extends OperationOptions {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface ConnectionsGetOptionalParams extends OperationOptions {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n"]}
@@ -3,16 +3,16 @@ import { _PagedDatasetVersion, DatasetVersionUnion, PendingUploadRequest, Pendin
3
3
  import { DatasetsGetCredentialsOptionalParams, DatasetsPendingUploadOptionalParams, DatasetsCreateOrUpdateOptionalParams, DatasetsDeleteOptionalParams, DatasetsGetOptionalParams, DatasetsListOptionalParams, DatasetsListVersionsOptionalParams } from "./options.js";
4
4
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
- export declare function _getCredentialsSend(context: Client, name: string, version: string, body: Record<string, any>, options?: DatasetsGetCredentialsOptionalParams): StreamableMethod;
6
+ export declare function _getCredentialsSend(context: Client, name: string, version: string, options?: DatasetsGetCredentialsOptionalParams): StreamableMethod;
7
7
  export declare function _getCredentialsDeserialize(result: PathUncheckedResponse): Promise<AssetCredentialResponse>;
8
8
  /** Get the SAS credential to access the storage account associated with a Dataset version. */
9
- export declare function getCredentials(context: Client, name: string, version: string, body: Record<string, any>, options?: DatasetsGetCredentialsOptionalParams): Promise<AssetCredentialResponse>;
9
+ export declare function getCredentials(context: Client, name: string, version: string, options?: DatasetsGetCredentialsOptionalParams): Promise<AssetCredentialResponse>;
10
10
  export declare function _pendingUploadSend(context: Client, name: string, version: string, body: PendingUploadRequest, options?: DatasetsPendingUploadOptionalParams): StreamableMethod;
11
11
  export declare function _pendingUploadDeserialize(result: PathUncheckedResponse): Promise<PendingUploadResponse>;
12
12
  /** Start a new or get an existing pending upload of a dataset for a specific version. */
13
13
  export declare function pendingUpload(context: Client, name: string, version: string, body: PendingUploadRequest, options?: DatasetsPendingUploadOptionalParams): Promise<PendingUploadResponse>;
14
- export declare function uploadFile(context: Client, name: string, version: string, filePath: string): Promise<DatasetVersionUnion>;
15
- export declare function uploadFolder(context: Client, name: string, version: string, folderPath: string): Promise<DatasetVersionUnion>;
14
+ export declare function uploadFile(context: Client, name: string, version: string, filePath: string, connectionName?: string): Promise<DatasetVersionUnion>;
15
+ export declare function uploadFolder(context: Client, name: string, version: string, folderPath: string, connectionName?: string): Promise<DatasetVersionUnion>;
16
16
  export declare function _createOrUpdateSend(context: Client, name: string, version: string, body: DatasetVersionUnion, options?: DatasetsCreateOrUpdateOptionalParams): StreamableMethod;
17
17
  export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<DatasetVersionUnion>;
18
18
  /** Create a new or update an existing DatasetVersion with the given version id */
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/datasets/operations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EACL,oBAAoB,EAIpB,mBAAmB,EACnB,oBAAoB,EAEpB,qBAAqB,EAGrB,uBAAuB,EAExB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1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C,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAOjG;AAED,qDAAqD;AACrD,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,yBAAkD,GAC1D,OAAO,CAAC,mBAAmB,CAAC,CAG9B;AAED,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0BAAmD,GAC3D,gBAAgB,CAkBlB;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAO/B;AAED,qDAAqD;AACrD,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0BAAmD,GAC3D,0BAA0B,CAAC,mBAAmB,CAAC,CAQjD;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,kCAA2D,GACnE,gBAAgB,CAmBlB;AAED,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAO/B;AAED,oDAAoD;AACpD,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,kCAA2D,GACnE,0BAA0B,CAAC,mBAAmB,CAAC,CAQjD"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/datasets/operations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EACL,oBAAoB,EAIpB,mBAAmB,EACnB,oBAAoB,EAEpB,qBAAqB,EAErB,uBAAuB,EAExB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,4BAA4B,EAC5B,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qB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAOjG;AAED,qDAAqD;AACrD,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,yBAAkD,GAC1D,OAAO,CAAC,mBAAmB,CAAC,CAG9B;AAED,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0BAAmD,GAC3D,gBAAgB,CAiBlB;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAO/B;AAED,qDAAqD;AACrD,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0BAAmD,GAC3D,0BAA0B,CAAC,mBAAmB,CAAC,CAQjD;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,kCAA2D,GACnE,gBAAgB,CAkBlB;AAED,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAO/B;AAED,oDAAoD;AACpD,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,kCAA2D,GACnE,0BAA0B,CAAC,mBAAmB,CAAC,CAQjD"}
@@ -3,12 +3,12 @@
3
3
  /* eslint-disable tsdoc/syntax */
4
4
  import * as fs from "fs";
5
5
  import * as nodePath from "path";
6
- import { _pagedDatasetVersionDeserializer, datasetVersionUnionSerializer, datasetVersionUnionDeserializer, pendingUploadRequestSerializer, pendingUploadResponseDeserializer, _getCredentialsRequestSerializer, assetCredentialResponseDeserializer, } from "../../models/models.js";
6
+ import { _pagedDatasetVersionDeserializer, datasetVersionUnionSerializer, datasetVersionUnionDeserializer, pendingUploadRequestSerializer, pendingUploadResponseDeserializer, assetCredentialResponseDeserializer, } from "../../models/models.js";
7
7
  import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
8
8
  import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
9
9
  import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
10
10
  import { ContainerClient } from "@azure/storage-blob";
11
- export function _getCredentialsSend(context, name, version, body, options = { requestOptions: {} }) {
11
+ export function _getCredentialsSend(context, name, version, options = { requestOptions: {} }) {
12
12
  var _a, _b;
13
13
  const path = expandUrlTemplate("/datasets/{name}/versions/{version}/credentials{?api-version}", {
14
14
  name: name,
@@ -17,7 +17,7 @@ export function _getCredentialsSend(context, name, version, body, options = { re
17
17
  }, {
18
18
  allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
19
19
  });
20
- return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: _getCredentialsRequestSerializer(body) }));
20
+ return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
21
21
  }
22
22
  export async function _getCredentialsDeserialize(result) {
23
23
  const expectedStatuses = ["200"];
@@ -27,8 +27,8 @@ export async function _getCredentialsDeserialize(result) {
27
27
  return assetCredentialResponseDeserializer(result.body);
28
28
  }
29
29
  /** Get the SAS credential to access the storage account associated with a Dataset version. */
30
- export async function getCredentials(context, name, version, body, options = { requestOptions: {} }) {
31
- const result = await _getCredentialsSend(context, name, version, body, options);
30
+ export async function getCredentials(context, name, version, options = { requestOptions: {} }) {
31
+ const result = await _getCredentialsSend(context, name, version, options);
32
32
  return _getCredentialsDeserialize(result);
33
33
  }
34
34
  export function _pendingUploadSend(context, name, version, body, options = { requestOptions: {} }) {
@@ -55,11 +55,14 @@ export async function pendingUpload(context, name, version, body, options = { re
55
55
  return _pendingUploadDeserialize(result);
56
56
  }
57
57
  // Internal helper method to create a new dataset and return a ContainerClient from azure-storage-blob package, to the dataset's blob storage.
58
- async function createDatasetAndGetItsContainer(context, name, version) {
58
+ async function createDatasetAndGetItsContainer(context, name, version,
59
+ // Optional connection name for the storage account to be used
60
+ connectionName) {
59
61
  var _a;
60
62
  // Start a pending upload to get the container URL with SAS token
61
63
  const pendingUploadResponse = await pendingUpload(context, name, version, {
62
64
  pendingUploadType: "BlobReference",
65
+ connectionName,
63
66
  });
64
67
  const blobReference = pendingUploadResponse.blobReference;
65
68
  // Validate the response
@@ -83,13 +86,13 @@ async function createDatasetAndGetItsContainer(context, name, version) {
83
86
  console.debug(`[createDatasetAndGetItsContainer] blobReference.credential.sasUri = ${blobReference.credential.sasUri}`);
84
87
  console.debug(`[createDatasetAndGetItsContainer] blobReference.credential.type = ${blobReference.credential.type}`);
85
88
  // Create container client from the blob URI (which includes the SAS token)
86
- const containerClient = new ContainerClient(blobReference.blobUri);
89
+ const containerClient = new ContainerClient(blobReference.credential.sasUri);
87
90
  return {
88
91
  containerClient,
89
92
  version,
90
93
  };
91
94
  }
92
- export async function uploadFile(context, name, version, filePath) {
95
+ export async function uploadFile(context, name, version, filePath, connectionName) {
93
96
  // if file does not exist
94
97
  const fileExists = fs.existsSync(filePath);
95
98
  if (!fileExists) {
@@ -100,11 +103,11 @@ export async function uploadFile(context, name, version, filePath) {
100
103
  if (isDirectory) {
101
104
  throw new Error(`The provided file is actually a folder. Use method uploadFolder instead`);
102
105
  }
103
- const { containerClient, version: outputVersion } = await createDatasetAndGetItsContainer(context, name, version);
106
+ const { containerClient, version: outputVersion } = await createDatasetAndGetItsContainer(context, name, version, connectionName);
104
107
  // file name as blob name
105
108
  const blobName = nodePath.basename(filePath);
106
109
  const blockBlobClient = containerClient.getBlockBlobClient(blobName);
107
- await blockBlobClient.uploadFile(filePath);
110
+ await blockBlobClient.uploadStream(fs.createReadStream(filePath));
108
111
  const datasetVersion = await createOrUpdate(context, name, outputVersion, {
109
112
  name: name,
110
113
  version: outputVersion,
@@ -113,7 +116,7 @@ export async function uploadFile(context, name, version, filePath) {
113
116
  });
114
117
  return datasetVersion;
115
118
  }
116
- export async function uploadFolder(context, name, version, folderPath) {
119
+ export async function uploadFolder(context, name, version, folderPath, connectionName) {
117
120
  // Check if the folder exists
118
121
  const folderExists = fs.existsSync(folderPath);
119
122
  if (!folderExists) {
@@ -124,7 +127,7 @@ export async function uploadFolder(context, name, version, folderPath) {
124
127
  if (isFile) {
125
128
  throw new Error(`The provided path is actually a file. Use method uploadFile instead`);
126
129
  }
127
- const { containerClient, version: outputVersion } = await createDatasetAndGetItsContainer(context, name, version);
130
+ const { containerClient, version: outputVersion } = await createDatasetAndGetItsContainer(context, name, version, connectionName);
128
131
  // Helper function to recursively get all files in a directory
129
132
  async function getAllFiles(dir, fileList = []) {
130
133
  const files = await fs.promises.readdir(dir);
@@ -175,7 +178,7 @@ export function _createOrUpdateSend(context, name, version, body, options = { re
175
178
  }, {
176
179
  allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
177
180
  });
178
- return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: datasetVersionUnionSerializer(body) }));
181
+ return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/merge-patch+json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: datasetVersionUnionSerializer(body) }));
179
182
  }
180
183
  export async function _createOrUpdateDeserialize(result) {
181
184
  const expectedStatuses = ["201", "200"];
@@ -242,9 +245,8 @@ export async function get(context, name, version, options = { requestOptions: {}
242
245
  }
243
246
  export function _listSend(context, options = { requestOptions: {} }) {
244
247
  var _a, _b;
245
- const path = expandUrlTemplate("/datasets{?api-version,continuationToken}", {
248
+ const path = expandUrlTemplate("/datasets{?api-version}", {
246
249
  "api-version": context.apiVersion,
247
- continuationToken: options === null || options === void 0 ? void 0 : options.continuationToken,
248
250
  }, {
249
251
  allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
250
252
  });
@@ -263,10 +265,9 @@ export function list(context, options = { requestOptions: {} }) {
263
265
  }
264
266
  export function _listVersionsSend(context, name, options = { requestOptions: {} }) {
265
267
  var _a, _b;
266
- const path = expandUrlTemplate("/datasets/{name}/versions{?api-version,continuationToken}", {
268
+ const path = expandUrlTemplate("/datasets/{name}/versions{?api-version}", {
267
269
  name: name,
268
270
  "api-version": context.apiVersion,
269
- continuationToken: options === null || options === void 0 ? void 0 : options.continuationToken,
270
271
  }, {
271
272
  allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
272
273
  });