@azure/ai-projects 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. package/README.md +23 -4
  2. package/dist/browser/api/agents/index.d.ts +2 -2
  3. package/dist/browser/api/agents/index.d.ts.map +1 -1
  4. package/dist/browser/api/agents/index.js +1 -1
  5. package/dist/browser/api/agents/index.js.map +1 -1
  6. package/dist/browser/api/agents/operations.d.ts +23 -2
  7. package/dist/browser/api/agents/operations.d.ts.map +1 -1
  8. package/dist/browser/api/agents/operations.js +178 -58
  9. package/dist/browser/api/agents/operations.js.map +1 -1
  10. package/dist/browser/api/agents/options.d.ts +153 -2
  11. package/dist/browser/api/agents/options.d.ts.map +1 -1
  12. package/dist/browser/api/agents/options.js.map +1 -1
  13. package/dist/browser/api/beta/agentInsightMonitors/index.d.ts +3 -0
  14. package/dist/browser/api/beta/agentInsightMonitors/index.d.ts.map +1 -0
  15. package/dist/browser/api/beta/agentInsightMonitors/index.js +4 -0
  16. package/dist/browser/api/beta/agentInsightMonitors/index.js.map +1 -0
  17. package/dist/browser/api/beta/agentInsightMonitors/operations.d.ts +59 -0
  18. package/dist/browser/api/beta/agentInsightMonitors/operations.d.ts.map +1 -0
  19. package/dist/browser/api/beta/agentInsightMonitors/operations.js +519 -0
  20. package/dist/browser/api/beta/agentInsightMonitors/operations.js.map +1 -0
  21. package/dist/browser/api/beta/agentInsightMonitors/options.d.ts +86 -0
  22. package/dist/browser/api/beta/agentInsightMonitors/options.d.ts.map +1 -0
  23. package/dist/browser/api/beta/agentInsightMonitors/options.js +4 -0
  24. package/dist/browser/api/beta/agentInsightMonitors/options.js.map +1 -0
  25. package/dist/browser/api/beta/agents/operations.d.ts +10 -10
  26. package/dist/browser/api/beta/agents/operations.d.ts.map +1 -1
  27. package/dist/browser/api/beta/agents/operations.js +6 -6
  28. package/dist/browser/api/beta/agents/operations.js.map +1 -1
  29. package/dist/browser/api/beta/datasets/operations.d.ts +1 -1
  30. package/dist/browser/api/beta/datasets/operations.d.ts.map +1 -1
  31. package/dist/browser/api/beta/datasets/operations.js.map +1 -1
  32. package/dist/browser/api/beta/models/options.d.ts +1 -1
  33. package/dist/browser/api/beta/models/options.d.ts.map +1 -1
  34. package/dist/browser/api/beta/models/options.js.map +1 -1
  35. package/dist/browser/api/beta/routines/operations.d.ts +3 -3
  36. package/dist/browser/api/beta/routines/operations.d.ts.map +1 -1
  37. package/dist/browser/api/beta/routines/operations.js +24 -23
  38. package/dist/browser/api/beta/routines/operations.js.map +1 -1
  39. package/dist/browser/api/beta/routines/options.d.ts +23 -15
  40. package/dist/browser/api/beta/routines/options.d.ts.map +1 -1
  41. package/dist/browser/api/beta/routines/options.js.map +1 -1
  42. package/dist/browser/classic/agents/index.d.ts +17 -2
  43. package/dist/browser/classic/agents/index.d.ts.map +1 -1
  44. package/dist/browser/classic/agents/index.js +4 -1
  45. package/dist/browser/classic/agents/index.js.map +1 -1
  46. package/dist/browser/classic/beta/agentInsightMonitors/index.d.ts +36 -0
  47. package/dist/browser/classic/beta/agentInsightMonitors/index.d.ts.map +1 -0
  48. package/dist/browser/classic/beta/agentInsightMonitors/index.js +26 -0
  49. package/dist/browser/classic/beta/agentInsightMonitors/index.js.map +1 -0
  50. package/dist/browser/classic/beta/agents/index.d.ts +5 -5
  51. package/dist/browser/classic/beta/agents/index.d.ts.map +1 -1
  52. package/dist/browser/classic/beta/agents/index.js.map +1 -1
  53. package/dist/browser/classic/beta/index.d.ts +3 -0
  54. package/dist/browser/classic/beta/index.d.ts.map +1 -1
  55. package/dist/browser/classic/beta/index.js +3 -0
  56. package/dist/browser/classic/beta/index.js.map +1 -1
  57. package/dist/browser/classic/beta/routines/index.d.ts +1 -1
  58. package/dist/browser/classic/beta/routines/index.d.ts.map +1 -1
  59. package/dist/browser/classic/beta/routines/index.js.map +1 -1
  60. package/dist/browser/constants.d.ts +1 -1
  61. package/dist/browser/constants.js +1 -1
  62. package/dist/browser/constants.js.map +1 -1
  63. package/dist/browser/index.d.ts +7 -4
  64. package/dist/browser/index.d.ts.map +1 -1
  65. package/dist/browser/index.js.map +1 -1
  66. package/dist/browser/models/index.d.ts +2 -1
  67. package/dist/browser/models/index.d.ts.map +1 -1
  68. package/dist/browser/models/index.js.map +1 -1
  69. package/dist/browser/models/models.d.ts +822 -102
  70. package/dist/browser/models/models.d.ts.map +1 -1
  71. package/dist/browser/models/models.js +885 -82
  72. package/dist/browser/models/models.js.map +1 -1
  73. package/dist/browser/package.json +6 -1
  74. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -1
  75. package/dist/browser/static-helpers/pagingHelpers.js +3 -0
  76. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  77. package/dist/browser/static-helpers/pollingHelpers.d.ts +20 -0
  78. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -1
  79. package/dist/browser/static-helpers/pollingHelpers.js +26 -12
  80. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  81. package/dist/browser/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
  82. package/dist/browser/static-helpers/serialization/get-binary-stream-response.js +12 -0
  83. package/dist/browser/static-helpers/serialization/get-binary-stream-response.js.map +1 -1
  84. package/dist/browser/static-helpers/serialization/parse-json-object.d.ts +2 -0
  85. package/dist/browser/static-helpers/serialization/parse-json-object.d.ts.map +1 -0
  86. package/dist/browser/static-helpers/serialization/parse-json-object.js +14 -0
  87. package/dist/browser/static-helpers/serialization/parse-json-object.js.map +1 -0
  88. package/dist/browser/tracing/agentTracing.d.ts +16 -0
  89. package/dist/browser/tracing/agentTracing.d.ts.map +1 -0
  90. package/dist/browser/tracing/agentTracing.js +61 -0
  91. package/dist/browser/tracing/agentTracing.js.map +1 -0
  92. package/dist/browser/tracing/configuration.d.ts.map +1 -1
  93. package/dist/browser/tracing/configuration.js +8 -5
  94. package/dist/browser/tracing/configuration.js.map +1 -1
  95. package/dist/commonjs/api/agents/index.d.ts +2 -2
  96. package/dist/commonjs/api/agents/index.d.ts.map +1 -1
  97. package/dist/commonjs/api/agents/index.js +6 -0
  98. package/dist/commonjs/api/agents/index.js.map +2 -2
  99. package/dist/commonjs/api/agents/operations.d.ts +23 -2
  100. package/dist/commonjs/api/agents/operations.d.ts.map +1 -1
  101. package/dist/commonjs/api/agents/operations.js +185 -67
  102. package/dist/commonjs/api/agents/operations.js.map +2 -2
  103. package/dist/commonjs/api/agents/options.d.ts +153 -2
  104. package/dist/commonjs/api/agents/options.d.ts.map +1 -1
  105. package/dist/commonjs/api/agents/options.js.map +1 -1
  106. package/dist/commonjs/api/beta/agentInsightMonitors/index.d.ts +3 -0
  107. package/dist/commonjs/api/beta/agentInsightMonitors/index.d.ts.map +1 -0
  108. package/dist/commonjs/api/beta/agentInsightMonitors/index.js +52 -0
  109. package/dist/commonjs/api/beta/agentInsightMonitors/index.js.map +7 -0
  110. package/dist/commonjs/api/beta/agentInsightMonitors/operations.d.ts +59 -0
  111. package/dist/commonjs/api/beta/agentInsightMonitors/operations.d.ts.map +1 -0
  112. package/dist/commonjs/api/beta/agentInsightMonitors/operations.js +678 -0
  113. package/dist/commonjs/api/beta/agentInsightMonitors/operations.js.map +7 -0
  114. package/dist/commonjs/api/beta/agentInsightMonitors/options.d.ts +86 -0
  115. package/dist/commonjs/api/beta/agentInsightMonitors/options.d.ts.map +1 -0
  116. package/dist/commonjs/api/beta/agentInsightMonitors/options.js +16 -0
  117. package/dist/commonjs/api/beta/agentInsightMonitors/options.js.map +7 -0
  118. package/dist/commonjs/api/beta/agents/operations.d.ts +10 -10
  119. package/dist/commonjs/api/beta/agents/operations.d.ts.map +1 -1
  120. package/dist/commonjs/api/beta/agents/operations.js +5 -5
  121. package/dist/commonjs/api/beta/agents/operations.js.map +2 -2
  122. package/dist/commonjs/api/beta/datasets/operations.d.ts +1 -1
  123. package/dist/commonjs/api/beta/datasets/operations.d.ts.map +1 -1
  124. package/dist/commonjs/api/beta/datasets/operations.js.map +1 -1
  125. package/dist/commonjs/api/beta/models/options.d.ts +1 -1
  126. package/dist/commonjs/api/beta/models/options.d.ts.map +1 -1
  127. package/dist/commonjs/api/beta/models/options.js.map +1 -1
  128. package/dist/commonjs/api/beta/routines/operations.d.ts +3 -3
  129. package/dist/commonjs/api/beta/routines/operations.d.ts.map +1 -1
  130. package/dist/commonjs/api/beta/routines/operations.js +23 -24
  131. package/dist/commonjs/api/beta/routines/operations.js.map +2 -2
  132. package/dist/commonjs/api/beta/routines/options.d.ts +23 -15
  133. package/dist/commonjs/api/beta/routines/options.d.ts.map +1 -1
  134. package/dist/commonjs/api/beta/routines/options.js.map +1 -1
  135. package/dist/commonjs/classic/agents/index.d.ts +17 -2
  136. package/dist/commonjs/classic/agents/index.d.ts.map +1 -1
  137. package/dist/commonjs/classic/agents/index.js +3 -0
  138. package/dist/commonjs/classic/agents/index.js.map +2 -2
  139. package/dist/commonjs/classic/beta/agentInsightMonitors/index.d.ts +36 -0
  140. package/dist/commonjs/classic/beta/agentInsightMonitors/index.d.ts.map +1 -0
  141. package/dist/commonjs/classic/beta/agentInsightMonitors/index.js +50 -0
  142. package/dist/commonjs/classic/beta/agentInsightMonitors/index.js.map +7 -0
  143. package/dist/commonjs/classic/beta/agents/index.d.ts +5 -5
  144. package/dist/commonjs/classic/beta/agents/index.d.ts.map +1 -1
  145. package/dist/commonjs/classic/beta/agents/index.js.map +1 -1
  146. package/dist/commonjs/classic/beta/index.d.ts +3 -0
  147. package/dist/commonjs/classic/beta/index.d.ts.map +1 -1
  148. package/dist/commonjs/classic/beta/index.js +4 -1
  149. package/dist/commonjs/classic/beta/index.js.map +2 -2
  150. package/dist/commonjs/classic/beta/routines/index.d.ts +1 -1
  151. package/dist/commonjs/classic/beta/routines/index.d.ts.map +1 -1
  152. package/dist/commonjs/classic/beta/routines/index.js.map +1 -1
  153. package/dist/commonjs/constants.d.ts +1 -1
  154. package/dist/commonjs/constants.js +1 -1
  155. package/dist/commonjs/constants.js.map +1 -1
  156. package/dist/commonjs/index.d.ts +7 -4
  157. package/dist/commonjs/index.d.ts.map +1 -1
  158. package/dist/commonjs/index.js.map +2 -2
  159. package/dist/commonjs/models/index.d.ts +2 -1
  160. package/dist/commonjs/models/index.d.ts.map +1 -1
  161. package/dist/commonjs/models/index.js.map +1 -1
  162. package/dist/commonjs/models/models.d.ts +822 -102
  163. package/dist/commonjs/models/models.d.ts.map +1 -1
  164. package/dist/commonjs/models/models.js +1028 -171
  165. package/dist/commonjs/models/models.js.map +2 -2
  166. package/dist/commonjs/package.json +6 -1
  167. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -1
  168. package/dist/commonjs/static-helpers/pagingHelpers.js +3 -0
  169. package/dist/commonjs/static-helpers/pagingHelpers.js.map +2 -2
  170. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +20 -0
  171. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -1
  172. package/dist/commonjs/static-helpers/pollingHelpers.js +29 -8
  173. package/dist/commonjs/static-helpers/pollingHelpers.js.map +2 -2
  174. package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
  175. package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.js +15 -0
  176. package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.js.map +2 -2
  177. package/dist/commonjs/static-helpers/serialization/parse-json-object.d.ts +2 -0
  178. package/dist/commonjs/static-helpers/serialization/parse-json-object.d.ts.map +1 -0
  179. package/dist/commonjs/static-helpers/serialization/parse-json-object.js +35 -0
  180. package/dist/commonjs/static-helpers/serialization/parse-json-object.js.map +7 -0
  181. package/dist/commonjs/tracing/agentTracing.d.ts +16 -0
  182. package/dist/commonjs/tracing/agentTracing.d.ts.map +1 -0
  183. package/dist/commonjs/tracing/agentTracing.js +74 -0
  184. package/dist/commonjs/tracing/agentTracing.js.map +7 -0
  185. package/dist/commonjs/tracing/configuration.d.ts.map +1 -1
  186. package/dist/commonjs/tracing/configuration.js +14 -4
  187. package/dist/commonjs/tracing/configuration.js.map +2 -2
  188. package/dist/esm/api/agents/index.d.ts +2 -2
  189. package/dist/esm/api/agents/index.d.ts.map +1 -1
  190. package/dist/esm/api/agents/index.js +1 -1
  191. package/dist/esm/api/agents/index.js.map +1 -1
  192. package/dist/esm/api/agents/operations.d.ts +23 -2
  193. package/dist/esm/api/agents/operations.d.ts.map +1 -1
  194. package/dist/esm/api/agents/operations.js +178 -58
  195. package/dist/esm/api/agents/operations.js.map +1 -1
  196. package/dist/esm/api/agents/options.d.ts +153 -2
  197. package/dist/esm/api/agents/options.d.ts.map +1 -1
  198. package/dist/esm/api/agents/options.js.map +1 -1
  199. package/dist/esm/api/beta/agentInsightMonitors/index.d.ts +3 -0
  200. package/dist/esm/api/beta/agentInsightMonitors/index.d.ts.map +1 -0
  201. package/dist/esm/api/beta/agentInsightMonitors/index.js +4 -0
  202. package/dist/esm/api/beta/agentInsightMonitors/index.js.map +1 -0
  203. package/dist/esm/api/beta/agentInsightMonitors/operations.d.ts +59 -0
  204. package/dist/esm/api/beta/agentInsightMonitors/operations.d.ts.map +1 -0
  205. package/dist/esm/api/beta/agentInsightMonitors/operations.js +519 -0
  206. package/dist/esm/api/beta/agentInsightMonitors/operations.js.map +1 -0
  207. package/dist/esm/api/beta/agentInsightMonitors/options.d.ts +86 -0
  208. package/dist/esm/api/beta/agentInsightMonitors/options.d.ts.map +1 -0
  209. package/dist/esm/api/beta/agentInsightMonitors/options.js +4 -0
  210. package/dist/esm/api/beta/agentInsightMonitors/options.js.map +1 -0
  211. package/dist/esm/api/beta/agents/operations.d.ts +10 -10
  212. package/dist/esm/api/beta/agents/operations.d.ts.map +1 -1
  213. package/dist/esm/api/beta/agents/operations.js +6 -6
  214. package/dist/esm/api/beta/agents/operations.js.map +1 -1
  215. package/dist/esm/api/beta/datasets/operations.d.ts +1 -1
  216. package/dist/esm/api/beta/datasets/operations.d.ts.map +1 -1
  217. package/dist/esm/api/beta/datasets/operations.js.map +1 -1
  218. package/dist/esm/api/beta/models/options.d.ts +1 -1
  219. package/dist/esm/api/beta/models/options.d.ts.map +1 -1
  220. package/dist/esm/api/beta/models/options.js.map +1 -1
  221. package/dist/esm/api/beta/routines/operations.d.ts +3 -3
  222. package/dist/esm/api/beta/routines/operations.d.ts.map +1 -1
  223. package/dist/esm/api/beta/routines/operations.js +24 -23
  224. package/dist/esm/api/beta/routines/operations.js.map +1 -1
  225. package/dist/esm/api/beta/routines/options.d.ts +23 -15
  226. package/dist/esm/api/beta/routines/options.d.ts.map +1 -1
  227. package/dist/esm/api/beta/routines/options.js.map +1 -1
  228. package/dist/esm/classic/agents/index.d.ts +17 -2
  229. package/dist/esm/classic/agents/index.d.ts.map +1 -1
  230. package/dist/esm/classic/agents/index.js +4 -1
  231. package/dist/esm/classic/agents/index.js.map +1 -1
  232. package/dist/esm/classic/beta/agentInsightMonitors/index.d.ts +36 -0
  233. package/dist/esm/classic/beta/agentInsightMonitors/index.d.ts.map +1 -0
  234. package/dist/esm/classic/beta/agentInsightMonitors/index.js +26 -0
  235. package/dist/esm/classic/beta/agentInsightMonitors/index.js.map +1 -0
  236. package/dist/esm/classic/beta/agents/index.d.ts +5 -5
  237. package/dist/esm/classic/beta/agents/index.d.ts.map +1 -1
  238. package/dist/esm/classic/beta/agents/index.js.map +1 -1
  239. package/dist/esm/classic/beta/index.d.ts +3 -0
  240. package/dist/esm/classic/beta/index.d.ts.map +1 -1
  241. package/dist/esm/classic/beta/index.js +3 -0
  242. package/dist/esm/classic/beta/index.js.map +1 -1
  243. package/dist/esm/classic/beta/routines/index.d.ts +1 -1
  244. package/dist/esm/classic/beta/routines/index.d.ts.map +1 -1
  245. package/dist/esm/classic/beta/routines/index.js.map +1 -1
  246. package/dist/esm/constants.d.ts +1 -1
  247. package/dist/esm/constants.js +1 -1
  248. package/dist/esm/constants.js.map +1 -1
  249. package/dist/esm/index.d.ts +7 -4
  250. package/dist/esm/index.d.ts.map +1 -1
  251. package/dist/esm/index.js.map +1 -1
  252. package/dist/esm/models/index.d.ts +2 -1
  253. package/dist/esm/models/index.d.ts.map +1 -1
  254. package/dist/esm/models/index.js.map +1 -1
  255. package/dist/esm/models/models.d.ts +822 -102
  256. package/dist/esm/models/models.d.ts.map +1 -1
  257. package/dist/esm/models/models.js +885 -82
  258. package/dist/esm/models/models.js.map +1 -1
  259. package/dist/esm/package.json +6 -1
  260. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -1
  261. package/dist/esm/static-helpers/pagingHelpers.js +3 -0
  262. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  263. package/dist/esm/static-helpers/pollingHelpers.d.ts +20 -0
  264. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -1
  265. package/dist/esm/static-helpers/pollingHelpers.js +26 -12
  266. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
  267. package/dist/esm/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
  268. package/dist/esm/static-helpers/serialization/get-binary-stream-response.js +15 -0
  269. package/dist/esm/static-helpers/serialization/get-binary-stream-response.js.map +1 -1
  270. package/dist/esm/static-helpers/serialization/parse-json-object.d.ts +2 -0
  271. package/dist/esm/static-helpers/serialization/parse-json-object.d.ts.map +1 -0
  272. package/dist/esm/static-helpers/serialization/parse-json-object.js +14 -0
  273. package/dist/esm/static-helpers/serialization/parse-json-object.js.map +1 -0
  274. package/dist/esm/tracing/agentTracing.d.ts +16 -0
  275. package/dist/esm/tracing/agentTracing.d.ts.map +1 -0
  276. package/dist/esm/tracing/agentTracing.js +61 -0
  277. package/dist/esm/tracing/agentTracing.js.map +1 -0
  278. package/dist/esm/tracing/configuration.d.ts.map +1 -1
  279. package/dist/esm/tracing/configuration.js +8 -5
  280. package/dist/esm/tracing/configuration.js.map +1 -1
  281. package/dist/react-native/api/agents/index.d.ts +2 -2
  282. package/dist/react-native/api/agents/index.d.ts.map +1 -1
  283. package/dist/react-native/api/agents/index.js +1 -1
  284. package/dist/react-native/api/agents/index.js.map +1 -1
  285. package/dist/react-native/api/agents/operations.d.ts +23 -2
  286. package/dist/react-native/api/agents/operations.d.ts.map +1 -1
  287. package/dist/react-native/api/agents/operations.js +178 -58
  288. package/dist/react-native/api/agents/operations.js.map +1 -1
  289. package/dist/react-native/api/agents/options.d.ts +153 -2
  290. package/dist/react-native/api/agents/options.d.ts.map +1 -1
  291. package/dist/react-native/api/agents/options.js.map +1 -1
  292. package/dist/react-native/api/beta/agentInsightMonitors/index.d.ts +3 -0
  293. package/dist/react-native/api/beta/agentInsightMonitors/index.d.ts.map +1 -0
  294. package/dist/react-native/api/beta/agentInsightMonitors/index.js +4 -0
  295. package/dist/react-native/api/beta/agentInsightMonitors/index.js.map +1 -0
  296. package/dist/react-native/api/beta/agentInsightMonitors/operations.d.ts +59 -0
  297. package/dist/react-native/api/beta/agentInsightMonitors/operations.d.ts.map +1 -0
  298. package/dist/react-native/api/beta/agentInsightMonitors/operations.js +519 -0
  299. package/dist/react-native/api/beta/agentInsightMonitors/operations.js.map +1 -0
  300. package/dist/react-native/api/beta/agentInsightMonitors/options.d.ts +86 -0
  301. package/dist/react-native/api/beta/agentInsightMonitors/options.d.ts.map +1 -0
  302. package/dist/react-native/api/beta/agentInsightMonitors/options.js +4 -0
  303. package/dist/react-native/api/beta/agentInsightMonitors/options.js.map +1 -0
  304. package/dist/react-native/api/beta/agents/operations.d.ts +10 -10
  305. package/dist/react-native/api/beta/agents/operations.d.ts.map +1 -1
  306. package/dist/react-native/api/beta/agents/operations.js +6 -6
  307. package/dist/react-native/api/beta/agents/operations.js.map +1 -1
  308. package/dist/react-native/api/beta/datasets/operations.d.ts +1 -1
  309. package/dist/react-native/api/beta/datasets/operations.d.ts.map +1 -1
  310. package/dist/react-native/api/beta/datasets/operations.js.map +1 -1
  311. package/dist/react-native/api/beta/models/options.d.ts +1 -1
  312. package/dist/react-native/api/beta/models/options.d.ts.map +1 -1
  313. package/dist/react-native/api/beta/models/options.js.map +1 -1
  314. package/dist/react-native/api/beta/routines/operations.d.ts +3 -3
  315. package/dist/react-native/api/beta/routines/operations.d.ts.map +1 -1
  316. package/dist/react-native/api/beta/routines/operations.js +24 -23
  317. package/dist/react-native/api/beta/routines/operations.js.map +1 -1
  318. package/dist/react-native/api/beta/routines/options.d.ts +23 -15
  319. package/dist/react-native/api/beta/routines/options.d.ts.map +1 -1
  320. package/dist/react-native/api/beta/routines/options.js.map +1 -1
  321. package/dist/react-native/classic/agents/index.d.ts +17 -2
  322. package/dist/react-native/classic/agents/index.d.ts.map +1 -1
  323. package/dist/react-native/classic/agents/index.js +4 -1
  324. package/dist/react-native/classic/agents/index.js.map +1 -1
  325. package/dist/react-native/classic/beta/agentInsightMonitors/index.d.ts +36 -0
  326. package/dist/react-native/classic/beta/agentInsightMonitors/index.d.ts.map +1 -0
  327. package/dist/react-native/classic/beta/agentInsightMonitors/index.js +26 -0
  328. package/dist/react-native/classic/beta/agentInsightMonitors/index.js.map +1 -0
  329. package/dist/react-native/classic/beta/agents/index.d.ts +5 -5
  330. package/dist/react-native/classic/beta/agents/index.d.ts.map +1 -1
  331. package/dist/react-native/classic/beta/agents/index.js.map +1 -1
  332. package/dist/react-native/classic/beta/index.d.ts +3 -0
  333. package/dist/react-native/classic/beta/index.d.ts.map +1 -1
  334. package/dist/react-native/classic/beta/index.js +3 -0
  335. package/dist/react-native/classic/beta/index.js.map +1 -1
  336. package/dist/react-native/classic/beta/routines/index.d.ts +1 -1
  337. package/dist/react-native/classic/beta/routines/index.d.ts.map +1 -1
  338. package/dist/react-native/classic/beta/routines/index.js.map +1 -1
  339. package/dist/react-native/constants.d.ts +1 -1
  340. package/dist/react-native/constants.js +1 -1
  341. package/dist/react-native/constants.js.map +1 -1
  342. package/dist/react-native/index.d.ts +7 -4
  343. package/dist/react-native/index.d.ts.map +1 -1
  344. package/dist/react-native/index.js.map +1 -1
  345. package/dist/react-native/models/index.d.ts +2 -1
  346. package/dist/react-native/models/index.d.ts.map +1 -1
  347. package/dist/react-native/models/index.js.map +1 -1
  348. package/dist/react-native/models/models.d.ts +822 -102
  349. package/dist/react-native/models/models.d.ts.map +1 -1
  350. package/dist/react-native/models/models.js +885 -82
  351. package/dist/react-native/models/models.js.map +1 -1
  352. package/dist/react-native/package.json +6 -1
  353. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -1
  354. package/dist/react-native/static-helpers/pagingHelpers.js +3 -0
  355. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
  356. package/dist/react-native/static-helpers/pollingHelpers.d.ts +20 -0
  357. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -1
  358. package/dist/react-native/static-helpers/pollingHelpers.js +26 -12
  359. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
  360. package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.d.mts.map +1 -1
  361. package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.mjs +12 -0
  362. package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.mjs.map +1 -1
  363. package/dist/react-native/static-helpers/serialization/parse-json-object.d.ts +2 -0
  364. package/dist/react-native/static-helpers/serialization/parse-json-object.d.ts.map +1 -0
  365. package/dist/react-native/static-helpers/serialization/parse-json-object.js +14 -0
  366. package/dist/react-native/static-helpers/serialization/parse-json-object.js.map +1 -0
  367. package/dist/react-native/tracing/agentTracing.d.ts +16 -0
  368. package/dist/react-native/tracing/agentTracing.d.ts.map +1 -0
  369. package/dist/react-native/tracing/agentTracing.js +61 -0
  370. package/dist/react-native/tracing/agentTracing.js.map +1 -0
  371. package/dist/react-native/tracing/configuration.d.ts.map +1 -1
  372. package/dist/react-native/tracing/configuration.js +8 -5
  373. package/dist/react-native/tracing/configuration.js.map +1 -1
  374. package/package.json +10 -9
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { apiErrorResponseDeserializer, routineTriggerUnionRecordSerializer, routineActionUnionSerializer, routineDeserializer, _agentsPagedResultRoutineRunDeserializer, routineDispatchPayloadUnionSerializer, dispatchRoutineResponseDeserializer, } from "../../../models/models.js";
3
+ import { apiErrorResponseDeserializer, routineTriggerUnionRecordSerializer, routineActionUnionSerializer, routineAuthorizationSerializer, routineDeserializer, _pagedResultWithNextLinkRoutineDeserializer, _pagedResultWithNextLinkRoutineRunDeserializer, routineDispatchPayloadUnionSerializer, dispatchRoutineResponseDeserializer, } from "../../../models/models.js";
4
4
  import { buildPagedAsyncIterator } from "../../../static-helpers/pagingHelpers.js";
5
5
  import { expandUrlTemplate } from "../../../static-helpers/urlTemplate.js";
6
6
  import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
@@ -15,7 +15,7 @@ export function _dispatchSend(context, routineName, options = { requestOptions:
15
15
  ...operationOptionsToRequestParameters(options),
16
16
  contentType: "application/json",
17
17
  headers: {
18
- "foundry-features": "Routines=V1Preview",
18
+ "foundry-features": "Routines=V2Preview",
19
19
  accept: "application/json",
20
20
  ...options.requestOptions?.headers,
21
21
  },
@@ -43,14 +43,13 @@ export async function dispatch(context, routineName, options = { requestOptions:
43
43
  return _dispatchDeserialize(result);
44
44
  }
45
45
  export function _listRunsSend(context, routineName, options = { requestOptions: {} }) {
46
- const foundryFeatures = "Routines=V1Preview";
47
- const path = expandUrlTemplate("/routines/{routine_name}/runs{?filter,limit,after,before,order,api-version}", {
46
+ const foundryFeatures = "Routines=V2Preview";
47
+ const path = expandUrlTemplate("/routines/{routine_name}/runs{?filter,limit,after,order,api-version}", {
48
48
  routine_name: routineName,
49
49
  filter: options?.filter,
50
50
  limit: options?.limit,
51
51
  order: options?.order,
52
52
  after: options?.after,
53
- before: options?.before,
54
53
  "api-version": context.apiVersion,
55
54
  }, {
56
55
  allowReserved: options?.requestOptions?.skipUrlEncoding,
@@ -73,22 +72,23 @@ export async function _listRunsDeserialize(result) {
73
72
  }
74
73
  throw error;
75
74
  }
76
- return _agentsPagedResultRoutineRunDeserializer(result.body);
75
+ return _pagedResultWithNextLinkRoutineRunDeserializer(result.body);
77
76
  }
78
77
  /** Returns prior runs recorded for the specified routine. */
79
78
  export function listRuns(context, routineName, options = { requestOptions: {} }) {
80
79
  return buildPagedAsyncIterator(context, () => _listRunsSend(context, routineName, options), _listRunsDeserialize, ["200"], {
81
80
  itemName: "data",
81
+ nextLinkName: "next_link",
82
82
  apiVersion: context.apiVersion,
83
83
  nextPageRequestOptions: {
84
84
  headers: {
85
- "foundry-features": "Routines=V1Preview",
85
+ "foundry-features": "Routines=V2Preview",
86
86
  },
87
87
  },
88
88
  });
89
89
  }
90
90
  export function _$deleteSend(context, routineName, options = { requestOptions: {} }) {
91
- const foundryFeatures = "Routines=V1Preview";
91
+ const foundryFeatures = "Routines=V2Preview";
92
92
  const path = expandUrlTemplate("/routines/{routine_name}{?api-version}", {
93
93
  routine_name: routineName,
94
94
  "api-version": context.apiVersion,
@@ -120,10 +120,9 @@ export async function $delete(context, routineName, options = { requestOptions:
120
120
  return _$deleteDeserialize(result);
121
121
  }
122
122
  export function _listSend(context, options = { requestOptions: {} }) {
123
- const path = expandUrlTemplate("/routines{?limit,after,before,order,api-version}", {
123
+ const path = expandUrlTemplate("/routines{?limit,after,order,api-version}", {
124
124
  limit: options?.limit,
125
125
  after: options?.after,
126
- before: options?.before,
127
126
  order: options?.order,
128
127
  "api-version": context.apiVersion,
129
128
  }, {
@@ -132,7 +131,7 @@ export function _listSend(context, options = { requestOptions: {} }) {
132
131
  return context.path(path).get({
133
132
  ...operationOptionsToRequestParameters(options),
134
133
  headers: {
135
- "foundry-features": "Routines=V1Preview",
134
+ "foundry-features": "Routines=V2Preview",
136
135
  accept: "application/json",
137
136
  ...options.requestOptions?.headers,
138
137
  },
@@ -147,20 +146,19 @@ export async function _listDeserialize(result) {
147
146
  }
148
147
  throw error;
149
148
  }
150
- const body = result.body;
151
- return {
152
- data: (body["value"] ?? body["data"] ?? []).map((item) => routineDeserializer(item)),
153
- first_id: body["first_id"],
154
- last_id: body["last_id"],
155
- has_more: body["has_more"] ?? false,
156
- };
149
+ return _pagedResultWithNextLinkRoutineDeserializer(result.body);
157
150
  }
158
151
  /** Returns the routines available in the current project. */
159
152
  export function list(context, options = { requestOptions: {} }) {
160
153
  return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], {
161
154
  itemName: "data",
162
- nextLinkName: "nextLink",
155
+ nextLinkName: "next_link",
163
156
  apiVersion: context.apiVersion,
157
+ nextPageRequestOptions: {
158
+ headers: {
159
+ "foundry-features": "Routines=V2Preview",
160
+ },
161
+ },
164
162
  });
165
163
  }
166
164
  export function _disableSend(context, routineName, options = { requestOptions: {} }) {
@@ -173,7 +171,7 @@ export function _disableSend(context, routineName, options = { requestOptions: {
173
171
  return context.path(path).post({
174
172
  ...operationOptionsToRequestParameters(options),
175
173
  headers: {
176
- "foundry-features": "Routines=V1Preview",
174
+ "foundry-features": "Routines=V2Preview",
177
175
  accept: "application/json",
178
176
  ...options.requestOptions?.headers,
179
177
  },
@@ -205,7 +203,7 @@ export function _enableSend(context, routineName, options = { requestOptions: {}
205
203
  return context.path(path).post({
206
204
  ...operationOptionsToRequestParameters(options),
207
205
  headers: {
208
- "foundry-features": "Routines=V1Preview",
206
+ "foundry-features": "Routines=V2Preview",
209
207
  accept: "application/json",
210
208
  ...options.requestOptions?.headers,
211
209
  },
@@ -237,7 +235,7 @@ export function _getSend(context, routineName, options = { requestOptions: {} })
237
235
  return context.path(path).get({
238
236
  ...operationOptionsToRequestParameters(options),
239
237
  headers: {
240
- "foundry-features": "Routines=V1Preview",
238
+ "foundry-features": "Routines=V2Preview",
241
239
  accept: "application/json",
242
240
  ...options.requestOptions?.headers,
243
241
  },
@@ -260,7 +258,7 @@ export async function get(context, routineName, options = { requestOptions: {} }
260
258
  return _getDeserialize(result);
261
259
  }
262
260
  export function _createOrUpdateSend(context, routineName, options = { requestOptions: {} }) {
263
- const foundryFeatures = "Routines=V1Preview";
261
+ const foundryFeatures = "Routines=V2Preview";
264
262
  const path = expandUrlTemplate("/routines/{routine_name}{?api-version}", {
265
263
  routine_name: routineName,
266
264
  "api-version": context.apiVersion,
@@ -282,6 +280,9 @@ export function _createOrUpdateSend(context, routineName, options = { requestOpt
282
280
  ? options?.triggers
283
281
  : routineTriggerUnionRecordSerializer(options?.triggers),
284
282
  action: !options?.action ? options?.action : routineActionUnionSerializer(options?.action),
283
+ authorization: !options?.authorization
284
+ ? options?.authorization
285
+ : routineAuthorizationSerializer(options?.authorization),
285
286
  },
286
287
  });
287
288
  }
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../src/api/beta/routines/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EACL,4BAA4B,EAC5B,mCAAmC,EACnC,4BAA4B,EAC5B,mBAAmB,EAEnB,wCAAwC,EACxC,qCAAqC,EACrC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAY3E,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,aAAa,CAC3B,OAAe,EACf,WAAmB,EACnB,UAA8C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEpE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,uDAAuD,EACvD;QACE,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,OAAO,CAAC,UAAU;KAClC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE;YACP,kBAAkB,EAAE,oBAAoB;YACxC,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAA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AC5C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext as Client } from \"../../index.js\";\nimport type {\n Routine,\n _AgentsPagedResultRoutine,\n _AgentsPagedResultRoutineRun,\n RoutineRun,\n DispatchRoutineResponse,\n} from \"../../../models/models.js\";\nimport {\n apiErrorResponseDeserializer,\n routineTriggerUnionRecordSerializer,\n routineActionUnionSerializer,\n routineDeserializer,\n _agentsPagedResultRoutineDeserializer,\n _agentsPagedResultRoutineRunDeserializer,\n routineDispatchPayloadUnionSerializer,\n dispatchRoutineResponseDeserializer,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../../static-helpers/urlTemplate.js\";\nimport type {\n BetaRoutinesDispatchOptionalParams,\n BetaRoutinesListRunsOptionalParams,\n BetaRoutinesDeleteOptionalParams,\n BetaRoutinesListOptionalParams,\n BetaRoutinesDisableOptionalParams,\n BetaRoutinesEnableOptionalParams,\n BetaRoutinesGetOptionalParams,\n BetaRoutinesCreateOrUpdateOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _dispatchSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDispatchOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:dispatch_async{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n \"foundry-features\": \"Routines=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n payload: !options?.payload\n ? options?.payload\n : routineDispatchPayloadUnionSerializer(options?.payload),\n },\n });\n}\n\nexport async function _dispatchDeserialize(\n result: PathUncheckedResponse,\n): Promise<DispatchRoutineResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return dispatchRoutineResponseDeserializer(result.body);\n}\n\n/** Queues an asynchronous dispatch for the specified routine. */\nexport async function dispatch(\n context: Client,\n routineName: string,\n options: BetaRoutinesDispatchOptionalParams = { requestOptions: {} },\n): Promise<DispatchRoutineResponse> {\n const result = await _dispatchSend(context, routineName, options);\n return _dispatchDeserialize(result);\n}\n\nexport function _listRunsSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesListRunsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V1Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}/runs{?filter,limit,after,before,order,api-version}\",\n {\n routine_name: routineName,\n filter: options?.filter,\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\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 \"foundry-features\": foundryFeatures,\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listRunsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultRoutineRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _agentsPagedResultRoutineRunDeserializer(result.body);\n}\n\n/** Returns prior runs recorded for the specified routine. */\nexport function listRuns(\n context: Client,\n routineName: string,\n options: BetaRoutinesListRunsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<RoutineRun> {\n return buildPagedAsyncIterator(\n context,\n () => _listRunsSend(context, routineName, options),\n _listRunsDeserialize,\n [\"200\"],\n {\n itemName: \"data\",\n apiVersion: context.apiVersion,\n nextPageRequestOptions: {\n headers: {\n \"foundry-features\": \"Routines=V1Preview\",\n },\n },\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V1Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": foundryFeatures,\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes the specified routine. */\nexport async function $delete(\n context: Client,\n routineName: string,\n options: BetaRoutinesDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, routineName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n options: BetaRoutinesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines{?limit,after,before,order,api-version}\",\n {\n limit: options?.limit,\n after: options?.after,\n before: options?.before,\n order: options?.order,\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 \"foundry-features\": \"Routines=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultRoutine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n const body = result.body;\n return {\n data: (body[\"value\"] ?? body[\"data\"] ?? []).map((item: any) => routineDeserializer(item)),\n first_id: body[\"first_id\"],\n last_id: body[\"last_id\"],\n has_more: body[\"has_more\"] ?? false,\n };\n}\n\n/** Returns the routines available in the current project. */\nexport function list(\n context: Client,\n options: BetaRoutinesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Routine> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"data\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion,\n },\n );\n}\n\nexport function _disableSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDisableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:disable{?api-version}\",\n {\n routine_name: routineName,\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 \"foundry-features\": \"Routines=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _disableDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Disables the specified routine so it no longer runs. */\nexport async function disable(\n context: Client,\n routineName: string,\n options: BetaRoutinesDisableOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _disableSend(context, routineName, options);\n return _disableDeserialize(result);\n}\n\nexport function _enableSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesEnableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:enable{?api-version}\",\n {\n routine_name: routineName,\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 \"foundry-features\": \"Routines=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _enableDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Enables the specified routine so it can be dispatched. */\nexport async function enable(\n context: Client,\n routineName: string,\n options: BetaRoutinesEnableOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _enableSend(context, routineName, options);\n return _enableDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\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 \"foundry-features\": \"Routines=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Retrieves the specified routine and its current configuration. */\nexport async function get(\n context: Client,\n routineName: string,\n options: BetaRoutinesGetOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _getSend(context, routineName, options);\n return _getDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V1Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n \"foundry-features\": foundryFeatures,\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n description: options?.description,\n enabled: options?.enabled,\n triggers: !options?.triggers\n ? options?.triggers\n : routineTriggerUnionRecordSerializer(options?.triggers),\n action: !options?.action ? options?.action : routineActionUnionSerializer(options?.action),\n },\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Creates a new routine or replaces an existing routine with the supplied definition. */\nexport async function createOrUpdate(\n context: Client,\n routineName: string,\n options: BetaRoutinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _createOrUpdateSend(context, routineName, options);\n return _createOrUpdateDeserialize(result);\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../src/api/beta/routines/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EACL,4BAA4B,EAC5B,mCAAmC,EACnC,4BAA4B,EAC5B,8BAA8B,EAC9B,mBAAmB,EACnB,2CAA2C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CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,4BAA4B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AAED,0FAA0F;AAC1F,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,OAAe,EACf,WAAmB,EACnB,UAAoD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE1E,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACxE,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAC;AAC5C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext as Client } from \"../../index.js\";\nimport type {\n Routine,\n _PagedResultWithNextLinkRoutine,\n _PagedResultWithNextLinkRoutineRun,\n RoutineRun,\n DispatchRoutineResponse,\n} from \"../../../models/models.js\";\nimport {\n apiErrorResponseDeserializer,\n routineTriggerUnionRecordSerializer,\n routineActionUnionSerializer,\n routineAuthorizationSerializer,\n routineDeserializer,\n _pagedResultWithNextLinkRoutineDeserializer,\n _pagedResultWithNextLinkRoutineRunDeserializer,\n routineDispatchPayloadUnionSerializer,\n dispatchRoutineResponseDeserializer,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../../static-helpers/urlTemplate.js\";\nimport type {\n BetaRoutinesDispatchOptionalParams,\n BetaRoutinesListRunsOptionalParams,\n BetaRoutinesDeleteOptionalParams,\n BetaRoutinesListOptionalParams,\n BetaRoutinesDisableOptionalParams,\n BetaRoutinesEnableOptionalParams,\n BetaRoutinesGetOptionalParams,\n BetaRoutinesCreateOrUpdateOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _dispatchSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDispatchOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:dispatch_async{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n \"foundry-features\": \"Routines=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n payload: !options?.payload\n ? options?.payload\n : routineDispatchPayloadUnionSerializer(options?.payload),\n },\n });\n}\n\nexport async function _dispatchDeserialize(\n result: PathUncheckedResponse,\n): Promise<DispatchRoutineResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return dispatchRoutineResponseDeserializer(result.body);\n}\n\n/** Queues an asynchronous dispatch for the specified routine. */\nexport async function dispatch(\n context: Client,\n routineName: string,\n options: BetaRoutinesDispatchOptionalParams = { requestOptions: {} },\n): Promise<DispatchRoutineResponse> {\n const result = await _dispatchSend(context, routineName, options);\n return _dispatchDeserialize(result);\n}\n\nexport function _listRunsSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesListRunsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V2Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}/runs{?filter,limit,after,order,api-version}\",\n {\n routine_name: routineName,\n filter: options?.filter,\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\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 \"foundry-features\": foundryFeatures,\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listRunsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PagedResultWithNextLinkRoutineRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _pagedResultWithNextLinkRoutineRunDeserializer(result.body);\n}\n\n/** Returns prior runs recorded for the specified routine. */\nexport function listRuns(\n context: Client,\n routineName: string,\n options: BetaRoutinesListRunsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<RoutineRun> {\n return buildPagedAsyncIterator(\n context,\n () => _listRunsSend(context, routineName, options),\n _listRunsDeserialize,\n [\"200\"],\n {\n itemName: \"data\",\n nextLinkName: \"next_link\",\n apiVersion: context.apiVersion,\n nextPageRequestOptions: {\n headers: {\n \"foundry-features\": \"Routines=V2Preview\",\n },\n },\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V2Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": foundryFeatures,\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes the specified routine. */\nexport async function $delete(\n context: Client,\n routineName: string,\n options: BetaRoutinesDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, routineName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n options: BetaRoutinesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines{?limit,after,order,api-version}\",\n {\n limit: options?.limit,\n after: options?.after,\n order: options?.order,\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 \"foundry-features\": \"Routines=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PagedResultWithNextLinkRoutine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _pagedResultWithNextLinkRoutineDeserializer(result.body);\n}\n\n/** Returns the routines available in the current project. */\nexport function list(\n context: Client,\n options: BetaRoutinesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Routine> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"data\",\n nextLinkName: \"next_link\",\n apiVersion: context.apiVersion,\n nextPageRequestOptions: {\n headers: {\n \"foundry-features\": \"Routines=V2Preview\",\n },\n },\n },\n );\n}\n\nexport function _disableSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesDisableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:disable{?api-version}\",\n {\n routine_name: routineName,\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 \"foundry-features\": \"Routines=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _disableDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Disables the specified routine so it no longer runs. */\nexport async function disable(\n context: Client,\n routineName: string,\n options: BetaRoutinesDisableOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _disableSend(context, routineName, options);\n return _disableDeserialize(result);\n}\n\nexport function _enableSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesEnableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}:enable{?api-version}\",\n {\n routine_name: routineName,\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 \"foundry-features\": \"Routines=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _enableDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Enables the specified routine so it can be dispatched. */\nexport async function enable(\n context: Client,\n routineName: string,\n options: BetaRoutinesEnableOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _enableSend(context, routineName, options);\n return _enableDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\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 \"foundry-features\": \"Routines=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Retrieves the specified routine and its current configuration. */\nexport async function get(\n context: Client,\n routineName: string,\n options: BetaRoutinesGetOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _getSend(context, routineName, options);\n return _getDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n routineName: string,\n options: BetaRoutinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"Routines=V2Preview\";\n const path = expandUrlTemplate(\n \"/routines/{routine_name}{?api-version}\",\n {\n routine_name: routineName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n \"foundry-features\": foundryFeatures,\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n description: options?.description,\n enabled: options?.enabled,\n triggers: !options?.triggers\n ? options?.triggers\n : routineTriggerUnionRecordSerializer(options?.triggers),\n action: !options?.action ? options?.action : routineActionUnionSerializer(options?.action),\n authorization: !options?.authorization\n ? options?.authorization\n : routineAuthorizationSerializer(options?.authorization),\n },\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Routine> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return routineDeserializer(result.body);\n}\n\n/** Creates a new routine or replaces an existing routine with the supplied definition. */\nexport async function createOrUpdate(\n context: Client,\n routineName: string,\n options: BetaRoutinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<Routine> {\n const result = await _createOrUpdateSend(context, routineName, options);\n return _createOrUpdateDeserialize(result);\n}\n"]}
@@ -1,64 +1,70 @@
1
- import type { RoutineTriggerUnion, RoutineActionUnion, RoutineDispatchPayloadUnion } from "../../../models/models.js";
1
+ import type { RoutineTriggerUnion, RoutineActionUnion, RoutineAuthorization, RoutineDispatchPayloadUnion } from "../../../models/models.js";
2
2
  import type { OperationOptions } from "@azure-rest/core-client";
3
3
  /** Optional parameters. */
4
4
  export interface BetaRoutinesDispatchOptionalParams extends OperationOptions {
5
5
  /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
6
- foundryFeatures?: "Routines=V1Preview";
6
+ foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
7
7
  /** A direct action-input override sent downstream when testing a routine. */
8
8
  payload?: RoutineDispatchPayloadUnion;
9
9
  }
10
10
  /** Optional parameters. */
11
11
  export interface BetaRoutinesListRunsOptionalParams extends OperationOptions {
12
12
  /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
13
- foundryFeatures?: "Routines=V1Preview";
13
+ foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
14
14
  /** An optional MLflow search-runs filter expression applied within the routine's experiment. */
15
15
  filter?: string;
16
16
  /** The maximum number of runs to return. */
17
17
  limit?: number;
18
- /** An opaque cursor returned as last_id by the previous list-runs response. */
18
+ /** An opaque continuation token identifying where to resume the list. Prefer following the `next_link` returned by the previous response, which embeds this value. */
19
19
  after?: string;
20
- /** Unsupported. Reserved for future backward pagination support. */
20
+ /** Unsupported. Reserved for backward compatibility. */
21
21
  before?: string;
22
- /** The ordering direction. Supported values are asc and desc. */
22
+ /**
23
+ * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc`
24
+ * for descending order.
25
+ */
23
26
  order?: string;
24
27
  }
25
28
  /** Optional parameters. */
26
29
  export interface BetaRoutinesDeleteOptionalParams extends OperationOptions {
27
30
  /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
28
- foundryFeatures?: "Routines=V1Preview";
31
+ foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
29
32
  }
30
33
  /** Optional parameters. */
31
34
  export interface BetaRoutinesListOptionalParams extends OperationOptions {
32
35
  /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
33
- foundryFeatures?: "Routines=V1Preview";
36
+ foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
34
37
  /** The maximum number of routines to return. */
35
38
  limit?: number;
36
- /** An opaque cursor returned as last_id by the previous list response. */
39
+ /** An opaque continuation token identifying where to resume the list. Prefer following the `next_link` returned by the previous response, which embeds this value. */
37
40
  after?: string;
38
- /** Unsupported. Reserved for future backward pagination support. */
41
+ /** Unsupported. Reserved for backward compatibility. */
39
42
  before?: string;
40
- /** The ordering direction. Supported values are asc and desc. */
43
+ /**
44
+ * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc`
45
+ * for descending order.
46
+ */
41
47
  order?: string;
42
48
  }
43
49
  /** Optional parameters. */
44
50
  export interface BetaRoutinesDisableOptionalParams extends OperationOptions {
45
51
  /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
46
- foundryFeatures?: "Routines=V1Preview";
52
+ foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
47
53
  }
48
54
  /** Optional parameters. */
49
55
  export interface BetaRoutinesEnableOptionalParams extends OperationOptions {
50
56
  /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
51
- foundryFeatures?: "Routines=V1Preview";
57
+ foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
52
58
  }
53
59
  /** Optional parameters. */
54
60
  export interface BetaRoutinesGetOptionalParams extends OperationOptions {
55
61
  /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
56
- foundryFeatures?: "Routines=V1Preview";
62
+ foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
57
63
  }
58
64
  /** Optional parameters. */
59
65
  export interface BetaRoutinesCreateOrUpdateOptionalParams extends OperationOptions {
60
66
  /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
61
- foundryFeatures?: "Routines=V1Preview";
67
+ foundryFeatures?: "Routines=V1Preview" | "Routines=V2Preview";
62
68
  /** A human-readable description of the routine. */
63
69
  description?: string;
64
70
  /** Whether the routine is enabled. */
@@ -67,5 +73,7 @@ export interface BetaRoutinesCreateOrUpdateOptionalParams extends OperationOptio
67
73
  triggers?: Record<string, RoutineTriggerUnion>;
68
74
  /** The action executed when the routine fires. */
69
75
  action?: RoutineActionUnion;
76
+ /** Optional authorization configuration for dispatching a newly created routine. Ignored when updating an existing routine. */
77
+ authorization?: RoutineAuthorization;
70
78
  }
71
79
  //# sourceMappingURL=options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/routines/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,2BAA2B;AAC3B,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;IAC1E,6GAA6G;IAC7G,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,6EAA6E;IAC7E,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACvC;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],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RoutineTriggerUnion,\n RoutineActionUnion,\n RoutineDispatchPayloadUnion,\n} from \"../../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface BetaRoutinesDispatchOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\";\n /** A direct action-input override sent downstream when testing a routine. */\n payload?: RoutineDispatchPayloadUnion;\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesListRunsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\";\n /** An optional MLflow search-runs filter expression applied within the routine's experiment. */\n filter?: string;\n /** The maximum number of runs to return. */\n limit?: number;\n /** An opaque cursor returned as last_id by the previous list-runs response. */\n after?: string;\n /** Unsupported. Reserved for future backward pagination support. */\n before?: string;\n /** The ordering direction. Supported values are asc and desc. */\n order?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesDeleteOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesListOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\";\n /** The maximum number of routines to return. */\n limit?: number;\n /** An opaque cursor returned as last_id by the previous list response. */\n after?: string;\n /** Unsupported. Reserved for future backward pagination support. */\n before?: string;\n /** The ordering direction. Supported values are asc and desc. */\n order?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesDisableOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesEnableOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesGetOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesCreateOrUpdateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\";\n /** A human-readable description of the routine. */\n description?: string;\n /** Whether the routine is enabled. */\n enabled?: boolean;\n /** The triggers configured for the routine. In v1, exactly one trigger entry is supported. */\n triggers?: Record<string, RoutineTriggerUnion>;\n /** The action executed when the routine fires. */\n action?: RoutineActionUnion;\n}\n"]}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../src/api/beta/routines/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RoutineTriggerUnion,\n RoutineActionUnion,\n RoutineAuthorization,\n RoutineDispatchPayloadUnion,\n} from \"../../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface BetaRoutinesDispatchOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n /** A direct action-input override sent downstream when testing a routine. */\n payload?: RoutineDispatchPayloadUnion;\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesListRunsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n /** An optional MLflow search-runs filter expression applied within the routine's experiment. */\n filter?: string;\n /** The maximum number of runs to return. */\n limit?: number;\n /** An opaque continuation token identifying where to resume the list. Prefer following the `next_link` returned by the previous response, which embeds this value. */\n after?: string;\n /** Unsupported. Reserved for backward compatibility. */\n before?: string;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc`\n * for descending order.\n */\n order?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesDeleteOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesListOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n /** The maximum number of routines to return. */\n limit?: number;\n /** An opaque continuation token identifying where to resume the list. Prefer following the `next_link` returned by the previous response, which embeds this value. */\n after?: string;\n /** Unsupported. Reserved for backward compatibility. */\n before?: string;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc`\n * for descending order.\n */\n order?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesDisableOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesEnableOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesGetOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaRoutinesCreateOrUpdateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Routines=V1Preview\" | \"Routines=V2Preview\";\n /** A human-readable description of the routine. */\n description?: string;\n /** Whether the routine is enabled. */\n enabled?: boolean;\n /** The triggers configured for the routine. In v1, exactly one trigger entry is supported. */\n triggers?: Record<string, RoutineTriggerUnion>;\n /** The action executed when the routine fires. */\n action?: RoutineActionUnion;\n /** Optional authorization configuration for dispatching a newly created routine. Ignored when updating an existing routine. */\n authorization?: RoutineAuthorization;\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import type { AIProjectContext } from "../../api/aiProjectContext.js";
2
2
  import type { ResolvedTracingConfig } from "../../tracing/configuration.js";
3
- import type { AgentsDeleteSessionFileOptionalParams, AgentsListSessionFilesOptionalParams, AgentsDownloadSessionFileOptionalParams, AgentsUploadSessionFileOptionalParams, AgentsGetSessionLogStreamOptionalParams, AgentsListSessionsOptionalParams, AgentsStopSessionOptionalParams, AgentsDeleteSessionOptionalParams, AgentsGetSessionOptionalParams, AgentsCreateSessionOptionalParams, AgentsDisableOptionalParams, AgentsEnableOptionalParams, AgentsDownloadAgentCodeOptionalParams, AgentsCreateVersionFromCodeOptionalParams, AgentsUpdateAgentObjectOptionalParams, AgentsPatchAgentObjectOptionalParams, AgentsListVersionsOptionalParams, AgentsDeleteVersionOptionalParams, AgentsGetVersionOptionalParams, AgentsCreateAgentVersionFromManifestOptionalParams, AgentsCreateVersionOptionalParams, AgentsListOptionalParams, AgentsDeleteOptionalParams, AgentsUpdateAgentFromManifestOptionalParams, AgentsCreateAgentFromManifestOptionalParams, AgentsUpdateOptionalParams, AgentsCreateOptionalParams, AgentsGetOptionalParams } from "../../api/agents/options.js";
4
- import type { Agent, AgentVersion, AgentDefinitionUnion, DeleteAgentResponse, DeleteAgentVersionResponse, CreateAgentVersionFromCodeContent, VersionIndicatorUnion, AgentSessionResource, SessionFileWriteResponse, SessionDirectoryEntry, AgentsDownloadSessionFileResponse, AgentsDownloadAgentCodeResponse } from "../../models/models.js";
3
+ import type { AgentsDeleteSessionFileOptionalParams, AgentsListSessionFilesOptionalParams, AgentsDownloadSessionFileOptionalParams, AgentsUploadSessionFileOptionalParams, GetMicrosoft365PublishDefaultsOptionalParams, GetMicrosoft365PackageOptionalParams, PublishToMicrosoft365OptionalParams, AgentsGetSessionLogStreamOptionalParams, AgentsListSessionsOptionalParams, AgentsStopSessionOptionalParams, AgentsDeleteSessionOptionalParams, AgentsGetSessionOptionalParams, AgentsCreateSessionOptionalParams, AgentsDisableOptionalParams, AgentsEnableOptionalParams, AgentsDownloadAgentCodeOptionalParams, AgentsCreateVersionFromCodeOptionalParams, AgentsUpdateAgentObjectOptionalParams, AgentsPatchAgentObjectOptionalParams, AgentsListVersionsOptionalParams, AgentsDeleteVersionOptionalParams, AgentsGetVersionOptionalParams, AgentsCreateAgentVersionFromManifestOptionalParams, AgentsCreateVersionOptionalParams, AgentsListOptionalParams, AgentsDeleteOptionalParams, AgentsUpdateAgentFromManifestOptionalParams, AgentsCreateAgentFromManifestOptionalParams, AgentsUpdateOptionalParams, AgentsCreateOptionalParams, AgentsGetOptionalParams } from "../../api/agents/options.js";
4
+ import type { Agent, AgentVersion, AgentDefinitionUnion, DeleteAgentResponse, DeleteAgentVersionResponse, CreateAgentVersionFromCodeContent, VersionIndicatorUnion, AgentSessionResource, SessionFileWriteResponse, SessionDirectoryEntry, AgentsDownloadSessionFileResponse, Microsoft365PublishDefaults, Microsoft365PublishScope, GetMicrosoft365PackageResponse, Microsoft365PublishResponse, AgentsDownloadAgentCodeResponse } from "../../models/models.js";
5
5
  import type { PagedAsyncIterableIterator } from "@azure/core-paging";
6
6
  /** Interface representing a Agents operations. */
7
7
  export interface AgentsOperations {
@@ -25,6 +25,21 @@ export interface AgentsOperations {
25
25
  * The service stores the file relative to the session home directory and rejects payloads larger than 50 MB.
26
26
  */
27
27
  uploadSessionFile: (agentName: string, sessionId: string, path: string, content: Uint8Array, options?: AgentsUploadSessionFileOptionalParams) => Promise<SessionFileWriteResponse>;
28
+ /**
29
+ * Returns default and previously-published values used to pre-populate a Microsoft 365 publish
30
+ * request for a Foundry agent.
31
+ */
32
+ getMicrosoft365PublishDefaults: (agentName: string, options?: GetMicrosoft365PublishDefaultsOptionalParams) => Promise<Microsoft365PublishDefaults>;
33
+ /**
34
+ * Generates the Microsoft Teams app package (zip) for a Foundry agent from the supplied publish
35
+ * request, without publishing it. Returns the app package as `application/zip`.
36
+ */
37
+ getMicrosoft365Package: (agentName: string, publishScope: Microsoft365PublishScope, options?: GetMicrosoft365PackageOptionalParams) => Promise<GetMicrosoft365PackageResponse>;
38
+ /**
39
+ * Publishes a Foundry agent to Microsoft 365 / Microsoft Teams and returns the published title and
40
+ * Teams app ids.
41
+ */
42
+ publishToMicrosoft365: (agentName: string, publishScope: Microsoft365PublishScope, options?: PublishToMicrosoft365OptionalParams) => Promise<Microsoft365PublishResponse>;
28
43
  /**
29
44
  * Streams console logs (stdout / stderr) for a specific hosted agent session
30
45
  * as a Server-Sent Events (SSE) stream.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/agents/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AA+B5E,OAAO,KAAK,EACV,qCAAqC,EACrC,oCAAoC,EACpC,uCAAuC,EACvC,qCAAqC,EACrC,uCAAuC,EACvC,gCAAgC,EAChC,+BAA+B,EAC/B,iCAAiC,EACjC,8BAA8B,EAC9B,iCAAiC,EACjC,2BAA2B,EAC3B,0BAA0B,EAC1B,qCAAqC,EACrC,yCAAyC,EACzC,qCAAqC,EACrC,oCAAoC,EACpC,gCAAgC,EAChC,iCAAiC,EACjC,8BAA8B,EAC9B,kDAAkD,EAClD,iCAAiC,EACjC,wBAAwB,EACxB,0BAA0B,EAC1B,2CAA2C,EAC3C,2CAA2C,EAC3C,0BAA0B,EAC1B,0BAA0B,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CAAC,MAAM,EAAE,OAAO,CAAC,EACxC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,KAAK,CAAC,CAAC;IAClB;;;OAGG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,oBAAoB,EAChC,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,KAAK,CAAC,CAAC;IAClB,yBAAyB;IACzB,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,oBAAoB,EAChC,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,KAAK,CAAC,CAAC;IAClB,wCAAwC;IACxC,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,KAAK,CAAC,CAAC;IAClB,2BAA2B;IAC3B,GAAG,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,uBAAuB,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;CAC/E;AAoLD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,gBAAgB,EACzB,aAAa,CAAC,EAAE,qBAAqB,GACpC,gBAAgB,CAIlB"}
@@ -1,12 +1,15 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { deleteSessionFile, listSessionFiles, downloadSessionFile, uploadSessionFile, getSessionLogStream, listSessions, stopSession, deleteSession, getSession, createSession, disable, enable, downloadAgentCode, createVersionFromCode, updateAgentObject, patchAgentObject, listVersions, deleteVersion, getVersion, createAgentVersionFromManifest, createVersion, list, $delete, updateAgentFromManifest, createAgentFromManifest, update, create, get, } from "../../api/agents/operations.js";
3
+ import { deleteSessionFile, listSessionFiles, downloadSessionFile, uploadSessionFile, getMicrosoft365PublishDefaults, getMicrosoft365Package, publishToMicrosoft365, getSessionLogStream, listSessions, stopSession, deleteSession, getSession, createSession, disable, enable, downloadAgentCode, createVersionFromCode, updateAgentObject, patchAgentObject, listVersions, deleteVersion, getVersion, createAgentVersionFromManifest, createVersion, list, $delete, updateAgentFromManifest, createAgentFromManifest, update, create, get, } from "../../api/agents/operations.js";
4
4
  function _getAgents(context, tracingConfig) {
5
5
  return {
6
6
  deleteSessionFile: (agentName, sessionId, path, options) => deleteSessionFile(context, agentName, sessionId, path, options),
7
7
  listSessionFiles: (agentName, sessionId, options) => listSessionFiles(context, agentName, sessionId, options),
8
8
  downloadSessionFile: (agentName, sessionId, path, options) => downloadSessionFile(context, agentName, sessionId, path, options),
9
9
  uploadSessionFile: (agentName, sessionId, path, content, options) => uploadSessionFile(context, agentName, sessionId, path, content, options),
10
+ getMicrosoft365PublishDefaults: (agentName, options) => getMicrosoft365PublishDefaults(context, agentName, options),
11
+ getMicrosoft365Package: (agentName, publishScope, options) => getMicrosoft365Package(context, agentName, publishScope, options),
12
+ publishToMicrosoft365: (agentName, publishScope, options) => publishToMicrosoft365(context, agentName, publishScope, options),
10
13
  getSessionLogStream: (agentName, agentVersion, sessionId, options) => getSessionLogStream(context, agentName, agentVersion, sessionId, options),
11
14
  listSessions: (agentName, options) => listSessions(context, agentName, options),
12
15
  stopSession: (agentName, sessionId, options) => stopSession(context, agentName, sessionId, options),