@azure/ai-projects 2.6.0 → 2.7.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 (547) hide show
  1. package/README.md +62 -1
  2. package/dist/browser/aiProjectClient.d.ts +1 -0
  3. package/dist/browser/aiProjectClient.d.ts.map +1 -1
  4. package/dist/browser/aiProjectClient.js +16 -1
  5. package/dist/browser/aiProjectClient.js.map +1 -1
  6. package/dist/browser/api/agents/index.d.ts +1 -1
  7. package/dist/browser/api/agents/index.d.ts.map +1 -1
  8. package/dist/browser/api/agents/index.js.map +1 -1
  9. package/dist/browser/api/agents/options.d.ts +91 -1
  10. package/dist/browser/api/agents/options.d.ts.map +1 -1
  11. package/dist/browser/api/agents/options.js.map +1 -1
  12. package/dist/browser/api/aiProjectContext.d.ts +3 -0
  13. package/dist/browser/api/aiProjectContext.d.ts.map +1 -1
  14. package/dist/browser/api/aiProjectContext.js.map +1 -1
  15. package/dist/browser/api/beta/agents/index.d.ts +2 -2
  16. package/dist/browser/api/beta/agents/index.d.ts.map +1 -1
  17. package/dist/browser/api/beta/agents/index.js +1 -1
  18. package/dist/browser/api/beta/agents/index.js.map +1 -1
  19. package/dist/browser/api/beta/agents/operations.d.ts +9 -2
  20. package/dist/browser/api/beta/agents/operations.d.ts.map +1 -1
  21. package/dist/browser/api/beta/agents/operations.js +38 -1
  22. package/dist/browser/api/beta/agents/operations.js.map +1 -1
  23. package/dist/browser/api/beta/agents/options.d.ts +3 -0
  24. package/dist/browser/api/beta/agents/options.d.ts.map +1 -1
  25. package/dist/browser/api/beta/agents/options.js.map +1 -1
  26. package/dist/browser/api/beta/voiceAgents/conversations/index.d.ts +3 -0
  27. package/dist/browser/api/beta/voiceAgents/conversations/index.d.ts.map +1 -0
  28. package/dist/browser/api/beta/voiceAgents/conversations/index.js +4 -0
  29. package/dist/browser/api/beta/voiceAgents/conversations/index.js.map +1 -0
  30. package/dist/browser/api/beta/voiceAgents/conversations/operations.d.ts +140 -0
  31. package/dist/browser/api/beta/voiceAgents/conversations/operations.d.ts.map +1 -0
  32. package/dist/browser/api/beta/voiceAgents/conversations/operations.js +635 -0
  33. package/dist/browser/api/beta/voiceAgents/conversations/operations.js.map +1 -0
  34. package/dist/browser/api/beta/voiceAgents/conversations/options.d.ts +133 -0
  35. package/dist/browser/api/beta/voiceAgents/conversations/options.d.ts.map +1 -0
  36. package/dist/browser/api/beta/voiceAgents/conversations/options.js +4 -0
  37. package/dist/browser/api/beta/voiceAgents/conversations/options.js.map +1 -0
  38. package/dist/browser/api/beta/voiceAgents/telephony/index.d.ts +3 -0
  39. package/dist/browser/api/beta/voiceAgents/telephony/index.d.ts.map +1 -0
  40. package/dist/browser/api/beta/voiceAgents/telephony/index.js +4 -0
  41. package/dist/browser/api/beta/voiceAgents/telephony/index.js.map +1 -0
  42. package/dist/browser/api/beta/voiceAgents/telephony/operations.d.ts +62 -0
  43. package/dist/browser/api/beta/voiceAgents/telephony/operations.d.ts.map +1 -0
  44. package/dist/browser/api/beta/voiceAgents/telephony/operations.js +559 -0
  45. package/dist/browser/api/beta/voiceAgents/telephony/operations.js.map +1 -0
  46. package/dist/browser/api/beta/voiceAgents/telephony/options.d.ts +133 -0
  47. package/dist/browser/api/beta/voiceAgents/telephony/options.d.ts.map +1 -0
  48. package/dist/browser/api/beta/voiceAgents/telephony/options.js +4 -0
  49. package/dist/browser/api/beta/voiceAgents/telephony/options.js.map +1 -0
  50. package/dist/browser/api/datasets/operations.d.ts.map +1 -1
  51. package/dist/browser/api/datasets/operations.js +1 -3
  52. package/dist/browser/api/datasets/operations.js.map +1 -1
  53. package/dist/browser/api/toolboxes/index.d.ts +2 -2
  54. package/dist/browser/api/toolboxes/index.d.ts.map +1 -1
  55. package/dist/browser/api/toolboxes/index.js +1 -1
  56. package/dist/browser/api/toolboxes/index.js.map +1 -1
  57. package/dist/browser/api/toolboxes/operations.d.ts +6 -2
  58. package/dist/browser/api/toolboxes/operations.d.ts.map +1 -1
  59. package/dist/browser/api/toolboxes/operations.js +33 -0
  60. package/dist/browser/api/toolboxes/operations.js.map +1 -1
  61. package/dist/browser/api/toolboxes/options.d.ts +3 -0
  62. package/dist/browser/api/toolboxes/options.d.ts.map +1 -1
  63. package/dist/browser/api/toolboxes/options.js.map +1 -1
  64. package/dist/browser/classic/beta/agents/index.d.ts +8 -3
  65. package/dist/browser/classic/beta/agents/index.d.ts.map +1 -1
  66. package/dist/browser/classic/beta/agents/index.js +3 -4
  67. package/dist/browser/classic/beta/agents/index.js.map +1 -1
  68. package/dist/browser/classic/beta/index.d.ts +6 -1
  69. package/dist/browser/classic/beta/index.d.ts.map +1 -1
  70. package/dist/browser/classic/beta/index.js +4 -1
  71. package/dist/browser/classic/beta/index.js.map +1 -1
  72. package/dist/browser/classic/beta/voiceAgents/conversations/index.d.ts +115 -0
  73. package/dist/browser/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -0
  74. package/dist/browser/classic/beta/voiceAgents/conversations/index.js +25 -0
  75. package/dist/browser/classic/beta/voiceAgents/conversations/index.js.map +1 -0
  76. package/dist/browser/classic/beta/voiceAgents/index.d.ts +16 -0
  77. package/dist/browser/classic/beta/voiceAgents/index.d.ts.map +1 -0
  78. package/dist/browser/classic/beta/voiceAgents/index.js +16 -0
  79. package/dist/browser/classic/beta/voiceAgents/index.js.map +1 -0
  80. package/dist/browser/classic/beta/voiceAgents/telephony/index.d.ts +37 -0
  81. package/dist/browser/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -0
  82. package/dist/browser/classic/beta/voiceAgents/telephony/index.js +25 -0
  83. package/dist/browser/classic/beta/voiceAgents/telephony/index.js.map +1 -0
  84. package/dist/browser/classic/index.d.ts +3 -0
  85. package/dist/browser/classic/index.d.ts.map +1 -1
  86. package/dist/browser/classic/index.js.map +1 -1
  87. package/dist/browser/classic/toolboxes/index.d.ts +4 -2
  88. package/dist/browser/classic/toolboxes/index.d.ts.map +1 -1
  89. package/dist/browser/classic/toolboxes/index.js +2 -1
  90. package/dist/browser/classic/toolboxes/index.js.map +1 -1
  91. package/dist/browser/constants.d.ts +1 -1
  92. package/dist/browser/constants.js +1 -1
  93. package/dist/browser/constants.js.map +1 -1
  94. package/dist/browser/deprecate.interface.d.ts +16 -4
  95. package/dist/browser/deprecate.interface.d.ts.map +1 -1
  96. package/dist/browser/deprecate.interface.js.map +1 -1
  97. package/dist/browser/index.d.ts +15 -4
  98. package/dist/browser/index.d.ts.map +1 -1
  99. package/dist/browser/index.js +2 -0
  100. package/dist/browser/index.js.map +1 -1
  101. package/dist/browser/models/index.d.ts +2 -1
  102. package/dist/browser/models/index.d.ts.map +1 -1
  103. package/dist/browser/models/index.js.map +1 -1
  104. package/dist/browser/models/models.d.ts +4198 -28
  105. package/dist/browser/models/models.d.ts.map +1 -1
  106. package/dist/browser/models/models.js +4881 -22
  107. package/dist/browser/models/models.js.map +1 -1
  108. package/dist/browser/package.json +1 -1
  109. package/dist/browser/realtime/asyncQueue.d.ts +29 -0
  110. package/dist/browser/realtime/asyncQueue.d.ts.map +1 -0
  111. package/dist/browser/realtime/asyncQueue.js +105 -0
  112. package/dist/browser/realtime/asyncQueue.js.map +1 -0
  113. package/dist/browser/realtime/errors.d.ts +34 -0
  114. package/dist/browser/realtime/errors.d.ts.map +1 -0
  115. package/dist/browser/realtime/errors.js +40 -0
  116. package/dist/browser/realtime/errors.js.map +1 -0
  117. package/dist/browser/realtime/events.d.ts +24 -0
  118. package/dist/browser/realtime/events.d.ts.map +1 -0
  119. package/dist/browser/realtime/events.js +4 -0
  120. package/dist/browser/realtime/events.js.map +1 -0
  121. package/dist/browser/realtime/protocol.d.ts +7 -0
  122. package/dist/browser/realtime/protocol.d.ts.map +1 -0
  123. package/dist/browser/realtime/protocol.js +262 -0
  124. package/dist/browser/realtime/protocol.js.map +1 -0
  125. package/dist/browser/realtime/voiceAgentRealtimeClient.d.ts +145 -0
  126. package/dist/browser/realtime/voiceAgentRealtimeClient.d.ts.map +1 -0
  127. package/dist/browser/realtime/voiceAgentRealtimeClient.js +376 -0
  128. package/dist/browser/realtime/voiceAgentRealtimeClient.js.map +1 -0
  129. package/dist/browser/realtime/webSocketTransportLike.d.ts +44 -0
  130. package/dist/browser/realtime/webSocketTransportLike.d.ts.map +1 -0
  131. package/dist/browser/realtime/webSocketTransportLike.js +4 -0
  132. package/dist/browser/realtime/webSocketTransportLike.js.map +1 -0
  133. package/dist/browser/webSocketTransport.d.ts +31 -0
  134. package/dist/browser/webSocketTransport.d.ts.map +1 -0
  135. package/dist/browser/webSocketTransport.js +218 -0
  136. package/dist/browser/webSocketTransport.js.map +1 -0
  137. package/dist/commonjs/aiProjectClient.d.ts +1 -0
  138. package/dist/commonjs/aiProjectClient.d.ts.map +1 -1
  139. package/dist/commonjs/aiProjectClient.js +16 -1
  140. package/dist/commonjs/aiProjectClient.js.map +2 -2
  141. package/dist/commonjs/api/agents/index.d.ts +1 -1
  142. package/dist/commonjs/api/agents/index.d.ts.map +1 -1
  143. package/dist/commonjs/api/agents/index.js.map +1 -1
  144. package/dist/commonjs/api/agents/options.d.ts +91 -1
  145. package/dist/commonjs/api/agents/options.d.ts.map +1 -1
  146. package/dist/commonjs/api/agents/options.js.map +1 -1
  147. package/dist/commonjs/api/aiProjectContext.d.ts +3 -0
  148. package/dist/commonjs/api/aiProjectContext.d.ts.map +1 -1
  149. package/dist/commonjs/api/aiProjectContext.js.map +2 -2
  150. package/dist/commonjs/api/beta/agents/index.d.ts +2 -2
  151. package/dist/commonjs/api/beta/agents/index.d.ts.map +1 -1
  152. package/dist/commonjs/api/beta/agents/index.js +2 -0
  153. package/dist/commonjs/api/beta/agents/index.js.map +2 -2
  154. package/dist/commonjs/api/beta/agents/operations.d.ts +9 -2
  155. package/dist/commonjs/api/beta/agents/operations.d.ts.map +1 -1
  156. package/dist/commonjs/api/beta/agents/operations.js +43 -0
  157. package/dist/commonjs/api/beta/agents/operations.js.map +2 -2
  158. package/dist/commonjs/api/beta/agents/options.d.ts +3 -0
  159. package/dist/commonjs/api/beta/agents/options.d.ts.map +1 -1
  160. package/dist/commonjs/api/beta/agents/options.js.map +1 -1
  161. package/dist/commonjs/api/beta/voiceAgents/conversations/index.d.ts +3 -0
  162. package/dist/commonjs/api/beta/voiceAgents/conversations/index.d.ts.map +1 -0
  163. package/dist/commonjs/api/beta/voiceAgents/conversations/index.js +54 -0
  164. package/dist/commonjs/api/beta/voiceAgents/conversations/index.js.map +7 -0
  165. package/dist/commonjs/api/beta/voiceAgents/conversations/operations.d.ts +140 -0
  166. package/dist/commonjs/api/beta/voiceAgents/conversations/operations.d.ts.map +1 -0
  167. package/dist/commonjs/api/beta/voiceAgents/conversations/operations.js +747 -0
  168. package/dist/commonjs/api/beta/voiceAgents/conversations/operations.js.map +7 -0
  169. package/dist/commonjs/api/beta/voiceAgents/conversations/options.d.ts +133 -0
  170. package/dist/commonjs/api/beta/voiceAgents/conversations/options.d.ts.map +1 -0
  171. package/dist/commonjs/api/beta/voiceAgents/conversations/options.js +16 -0
  172. package/dist/commonjs/api/beta/voiceAgents/conversations/options.js.map +7 -0
  173. package/dist/commonjs/api/beta/voiceAgents/telephony/index.d.ts +3 -0
  174. package/dist/commonjs/api/beta/voiceAgents/telephony/index.d.ts.map +1 -0
  175. package/dist/commonjs/api/beta/voiceAgents/telephony/index.js +54 -0
  176. package/dist/commonjs/api/beta/voiceAgents/telephony/index.js.map +7 -0
  177. package/dist/commonjs/api/beta/voiceAgents/telephony/operations.d.ts +62 -0
  178. package/dist/commonjs/api/beta/voiceAgents/telephony/operations.d.ts.map +1 -0
  179. package/dist/commonjs/api/beta/voiceAgents/telephony/operations.js +683 -0
  180. package/dist/commonjs/api/beta/voiceAgents/telephony/operations.js.map +7 -0
  181. package/dist/commonjs/api/beta/voiceAgents/telephony/options.d.ts +133 -0
  182. package/dist/commonjs/api/beta/voiceAgents/telephony/options.d.ts.map +1 -0
  183. package/dist/commonjs/api/beta/voiceAgents/telephony/options.js +16 -0
  184. package/dist/commonjs/api/beta/voiceAgents/telephony/options.js.map +7 -0
  185. package/dist/commonjs/api/datasets/operations.d.ts.map +1 -1
  186. package/dist/commonjs/api/datasets/operations.js +0 -6
  187. package/dist/commonjs/api/datasets/operations.js.map +2 -2
  188. package/dist/commonjs/api/toolboxes/index.d.ts +2 -2
  189. package/dist/commonjs/api/toolboxes/index.d.ts.map +1 -1
  190. package/dist/commonjs/api/toolboxes/index.js +2 -0
  191. package/dist/commonjs/api/toolboxes/index.js.map +2 -2
  192. package/dist/commonjs/api/toolboxes/operations.d.ts +6 -2
  193. package/dist/commonjs/api/toolboxes/operations.d.ts.map +1 -1
  194. package/dist/commonjs/api/toolboxes/operations.js +42 -0
  195. package/dist/commonjs/api/toolboxes/operations.js.map +2 -2
  196. package/dist/commonjs/api/toolboxes/options.d.ts +3 -0
  197. package/dist/commonjs/api/toolboxes/options.d.ts.map +1 -1
  198. package/dist/commonjs/api/toolboxes/options.js.map +1 -1
  199. package/dist/commonjs/classic/beta/agents/index.d.ts +8 -3
  200. package/dist/commonjs/classic/beta/agents/index.d.ts.map +1 -1
  201. package/dist/commonjs/classic/beta/agents/index.js +3 -4
  202. package/dist/commonjs/classic/beta/agents/index.js.map +2 -2
  203. package/dist/commonjs/classic/beta/index.d.ts +6 -1
  204. package/dist/commonjs/classic/beta/index.d.ts.map +1 -1
  205. package/dist/commonjs/classic/beta/index.js +5 -2
  206. package/dist/commonjs/classic/beta/index.js.map +2 -2
  207. package/dist/commonjs/classic/beta/voiceAgents/conversations/index.d.ts +115 -0
  208. package/dist/commonjs/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -0
  209. package/dist/commonjs/classic/beta/voiceAgents/conversations/index.js +49 -0
  210. package/dist/commonjs/classic/beta/voiceAgents/conversations/index.js.map +7 -0
  211. package/dist/commonjs/classic/beta/voiceAgents/index.d.ts +16 -0
  212. package/dist/commonjs/classic/beta/voiceAgents/index.d.ts.map +1 -0
  213. package/dist/commonjs/classic/beta/voiceAgents/index.js +40 -0
  214. package/dist/commonjs/classic/beta/voiceAgents/index.js.map +7 -0
  215. package/dist/commonjs/classic/beta/voiceAgents/telephony/index.d.ts +37 -0
  216. package/dist/commonjs/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -0
  217. package/dist/commonjs/classic/beta/voiceAgents/telephony/index.js +49 -0
  218. package/dist/commonjs/classic/beta/voiceAgents/telephony/index.js.map +7 -0
  219. package/dist/commonjs/classic/index.d.ts +3 -0
  220. package/dist/commonjs/classic/index.d.ts.map +1 -1
  221. package/dist/commonjs/classic/index.js.map +1 -1
  222. package/dist/commonjs/classic/toolboxes/index.d.ts +4 -2
  223. package/dist/commonjs/classic/toolboxes/index.d.ts.map +1 -1
  224. package/dist/commonjs/classic/toolboxes/index.js +1 -0
  225. package/dist/commonjs/classic/toolboxes/index.js.map +2 -2
  226. package/dist/commonjs/constants.d.ts +1 -1
  227. package/dist/commonjs/constants.js +1 -1
  228. package/dist/commonjs/constants.js.map +1 -1
  229. package/dist/commonjs/deprecate.interface.d.ts +16 -4
  230. package/dist/commonjs/deprecate.interface.d.ts.map +1 -1
  231. package/dist/commonjs/deprecate.interface.js.map +1 -1
  232. package/dist/commonjs/index.d.ts +15 -4
  233. package/dist/commonjs/index.d.ts.map +1 -1
  234. package/dist/commonjs/index.js +14 -0
  235. package/dist/commonjs/index.js.map +2 -2
  236. package/dist/commonjs/models/index.d.ts +2 -1
  237. package/dist/commonjs/models/index.d.ts.map +1 -1
  238. package/dist/commonjs/models/index.js.map +1 -1
  239. package/dist/commonjs/models/models.d.ts +4198 -28
  240. package/dist/commonjs/models/models.d.ts.map +1 -1
  241. package/dist/commonjs/models/models.js +5809 -32
  242. package/dist/commonjs/models/models.js.map +2 -2
  243. package/dist/commonjs/package.json +1 -1
  244. package/dist/commonjs/realtime/asyncQueue.d.ts +29 -0
  245. package/dist/commonjs/realtime/asyncQueue.d.ts.map +1 -0
  246. package/dist/commonjs/realtime/asyncQueue.js +127 -0
  247. package/dist/commonjs/realtime/asyncQueue.js.map +7 -0
  248. package/dist/commonjs/realtime/errors.d.ts +34 -0
  249. package/dist/commonjs/realtime/errors.d.ts.map +1 -0
  250. package/dist/commonjs/realtime/errors.js +66 -0
  251. package/dist/commonjs/realtime/errors.js.map +7 -0
  252. package/dist/commonjs/realtime/events.d.ts +24 -0
  253. package/dist/commonjs/realtime/events.d.ts.map +1 -0
  254. package/dist/commonjs/realtime/events.js +16 -0
  255. package/dist/commonjs/realtime/events.js.map +7 -0
  256. package/dist/commonjs/realtime/protocol.d.ts +7 -0
  257. package/dist/commonjs/realtime/protocol.d.ts.map +1 -0
  258. package/dist/commonjs/realtime/protocol.js +297 -0
  259. package/dist/commonjs/realtime/protocol.js.map +7 -0
  260. package/dist/commonjs/realtime/voiceAgentRealtimeClient.d.ts +145 -0
  261. package/dist/commonjs/realtime/voiceAgentRealtimeClient.d.ts.map +1 -0
  262. package/dist/commonjs/realtime/voiceAgentRealtimeClient.js +443 -0
  263. package/dist/commonjs/realtime/voiceAgentRealtimeClient.js.map +7 -0
  264. package/dist/commonjs/realtime/webSocketTransportLike.d.ts +44 -0
  265. package/dist/commonjs/realtime/webSocketTransportLike.d.ts.map +1 -0
  266. package/dist/commonjs/realtime/webSocketTransportLike.js +16 -0
  267. package/dist/commonjs/realtime/webSocketTransportLike.js.map +7 -0
  268. package/dist/commonjs/tsdoc-metadata.json +1 -1
  269. package/dist/commonjs/webSocketTransport.d.ts +15 -0
  270. package/dist/commonjs/webSocketTransport.d.ts.map +1 -0
  271. package/dist/commonjs/webSocketTransport.js +232 -0
  272. package/dist/commonjs/webSocketTransport.js.map +7 -0
  273. package/dist/esm/aiProjectClient.d.ts +1 -0
  274. package/dist/esm/aiProjectClient.d.ts.map +1 -1
  275. package/dist/esm/aiProjectClient.js +16 -1
  276. package/dist/esm/aiProjectClient.js.map +1 -1
  277. package/dist/esm/api/agents/index.d.ts +1 -1
  278. package/dist/esm/api/agents/index.d.ts.map +1 -1
  279. package/dist/esm/api/agents/index.js.map +1 -1
  280. package/dist/esm/api/agents/options.d.ts +91 -1
  281. package/dist/esm/api/agents/options.d.ts.map +1 -1
  282. package/dist/esm/api/agents/options.js.map +1 -1
  283. package/dist/esm/api/aiProjectContext.d.ts +3 -0
  284. package/dist/esm/api/aiProjectContext.d.ts.map +1 -1
  285. package/dist/esm/api/aiProjectContext.js.map +1 -1
  286. package/dist/esm/api/beta/agents/index.d.ts +2 -2
  287. package/dist/esm/api/beta/agents/index.d.ts.map +1 -1
  288. package/dist/esm/api/beta/agents/index.js +1 -1
  289. package/dist/esm/api/beta/agents/index.js.map +1 -1
  290. package/dist/esm/api/beta/agents/operations.d.ts +9 -2
  291. package/dist/esm/api/beta/agents/operations.d.ts.map +1 -1
  292. package/dist/esm/api/beta/agents/operations.js +38 -1
  293. package/dist/esm/api/beta/agents/operations.js.map +1 -1
  294. package/dist/esm/api/beta/agents/options.d.ts +3 -0
  295. package/dist/esm/api/beta/agents/options.d.ts.map +1 -1
  296. package/dist/esm/api/beta/agents/options.js.map +1 -1
  297. package/dist/esm/api/beta/voiceAgents/conversations/index.d.ts +3 -0
  298. package/dist/esm/api/beta/voiceAgents/conversations/index.d.ts.map +1 -0
  299. package/dist/esm/api/beta/voiceAgents/conversations/index.js +4 -0
  300. package/dist/esm/api/beta/voiceAgents/conversations/index.js.map +1 -0
  301. package/dist/esm/api/beta/voiceAgents/conversations/operations.d.ts +140 -0
  302. package/dist/esm/api/beta/voiceAgents/conversations/operations.d.ts.map +1 -0
  303. package/dist/esm/api/beta/voiceAgents/conversations/operations.js +635 -0
  304. package/dist/esm/api/beta/voiceAgents/conversations/operations.js.map +1 -0
  305. package/dist/esm/api/beta/voiceAgents/conversations/options.d.ts +133 -0
  306. package/dist/esm/api/beta/voiceAgents/conversations/options.d.ts.map +1 -0
  307. package/dist/esm/api/beta/voiceAgents/conversations/options.js +4 -0
  308. package/dist/esm/api/beta/voiceAgents/conversations/options.js.map +1 -0
  309. package/dist/esm/api/beta/voiceAgents/telephony/index.d.ts +3 -0
  310. package/dist/esm/api/beta/voiceAgents/telephony/index.d.ts.map +1 -0
  311. package/dist/esm/api/beta/voiceAgents/telephony/index.js +4 -0
  312. package/dist/esm/api/beta/voiceAgents/telephony/index.js.map +1 -0
  313. package/dist/esm/api/beta/voiceAgents/telephony/operations.d.ts +62 -0
  314. package/dist/esm/api/beta/voiceAgents/telephony/operations.d.ts.map +1 -0
  315. package/dist/esm/api/beta/voiceAgents/telephony/operations.js +559 -0
  316. package/dist/esm/api/beta/voiceAgents/telephony/operations.js.map +1 -0
  317. package/dist/esm/api/beta/voiceAgents/telephony/options.d.ts +133 -0
  318. package/dist/esm/api/beta/voiceAgents/telephony/options.d.ts.map +1 -0
  319. package/dist/esm/api/beta/voiceAgents/telephony/options.js +4 -0
  320. package/dist/esm/api/beta/voiceAgents/telephony/options.js.map +1 -0
  321. package/dist/esm/api/datasets/operations.d.ts.map +1 -1
  322. package/dist/esm/api/datasets/operations.js +1 -3
  323. package/dist/esm/api/datasets/operations.js.map +1 -1
  324. package/dist/esm/api/toolboxes/index.d.ts +2 -2
  325. package/dist/esm/api/toolboxes/index.d.ts.map +1 -1
  326. package/dist/esm/api/toolboxes/index.js +1 -1
  327. package/dist/esm/api/toolboxes/index.js.map +1 -1
  328. package/dist/esm/api/toolboxes/operations.d.ts +6 -2
  329. package/dist/esm/api/toolboxes/operations.d.ts.map +1 -1
  330. package/dist/esm/api/toolboxes/operations.js +33 -0
  331. package/dist/esm/api/toolboxes/operations.js.map +1 -1
  332. package/dist/esm/api/toolboxes/options.d.ts +3 -0
  333. package/dist/esm/api/toolboxes/options.d.ts.map +1 -1
  334. package/dist/esm/api/toolboxes/options.js.map +1 -1
  335. package/dist/esm/classic/beta/agents/index.d.ts +8 -3
  336. package/dist/esm/classic/beta/agents/index.d.ts.map +1 -1
  337. package/dist/esm/classic/beta/agents/index.js +3 -4
  338. package/dist/esm/classic/beta/agents/index.js.map +1 -1
  339. package/dist/esm/classic/beta/index.d.ts +6 -1
  340. package/dist/esm/classic/beta/index.d.ts.map +1 -1
  341. package/dist/esm/classic/beta/index.js +4 -1
  342. package/dist/esm/classic/beta/index.js.map +1 -1
  343. package/dist/esm/classic/beta/voiceAgents/conversations/index.d.ts +115 -0
  344. package/dist/esm/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -0
  345. package/dist/esm/classic/beta/voiceAgents/conversations/index.js +25 -0
  346. package/dist/esm/classic/beta/voiceAgents/conversations/index.js.map +1 -0
  347. package/dist/esm/classic/beta/voiceAgents/index.d.ts +16 -0
  348. package/dist/esm/classic/beta/voiceAgents/index.d.ts.map +1 -0
  349. package/dist/esm/classic/beta/voiceAgents/index.js +16 -0
  350. package/dist/esm/classic/beta/voiceAgents/index.js.map +1 -0
  351. package/dist/esm/classic/beta/voiceAgents/telephony/index.d.ts +37 -0
  352. package/dist/esm/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -0
  353. package/dist/esm/classic/beta/voiceAgents/telephony/index.js +25 -0
  354. package/dist/esm/classic/beta/voiceAgents/telephony/index.js.map +1 -0
  355. package/dist/esm/classic/index.d.ts +3 -0
  356. package/dist/esm/classic/index.d.ts.map +1 -1
  357. package/dist/esm/classic/index.js.map +1 -1
  358. package/dist/esm/classic/toolboxes/index.d.ts +4 -2
  359. package/dist/esm/classic/toolboxes/index.d.ts.map +1 -1
  360. package/dist/esm/classic/toolboxes/index.js +2 -1
  361. package/dist/esm/classic/toolboxes/index.js.map +1 -1
  362. package/dist/esm/constants.d.ts +1 -1
  363. package/dist/esm/constants.js +1 -1
  364. package/dist/esm/constants.js.map +1 -1
  365. package/dist/esm/deprecate.interface.d.ts +16 -4
  366. package/dist/esm/deprecate.interface.d.ts.map +1 -1
  367. package/dist/esm/deprecate.interface.js.map +1 -1
  368. package/dist/esm/index.d.ts +15 -4
  369. package/dist/esm/index.d.ts.map +1 -1
  370. package/dist/esm/index.js +2 -0
  371. package/dist/esm/index.js.map +1 -1
  372. package/dist/esm/models/index.d.ts +2 -1
  373. package/dist/esm/models/index.d.ts.map +1 -1
  374. package/dist/esm/models/index.js.map +1 -1
  375. package/dist/esm/models/models.d.ts +4198 -28
  376. package/dist/esm/models/models.d.ts.map +1 -1
  377. package/dist/esm/models/models.js +4881 -22
  378. package/dist/esm/models/models.js.map +1 -1
  379. package/dist/esm/package.json +1 -1
  380. package/dist/esm/realtime/asyncQueue.d.ts +29 -0
  381. package/dist/esm/realtime/asyncQueue.d.ts.map +1 -0
  382. package/dist/esm/realtime/asyncQueue.js +105 -0
  383. package/dist/esm/realtime/asyncQueue.js.map +1 -0
  384. package/dist/esm/realtime/errors.d.ts +34 -0
  385. package/dist/esm/realtime/errors.d.ts.map +1 -0
  386. package/dist/esm/realtime/errors.js +40 -0
  387. package/dist/esm/realtime/errors.js.map +1 -0
  388. package/dist/esm/realtime/events.d.ts +24 -0
  389. package/dist/esm/realtime/events.d.ts.map +1 -0
  390. package/dist/esm/realtime/events.js +4 -0
  391. package/dist/esm/realtime/events.js.map +1 -0
  392. package/dist/esm/realtime/protocol.d.ts +7 -0
  393. package/dist/esm/realtime/protocol.d.ts.map +1 -0
  394. package/dist/esm/realtime/protocol.js +262 -0
  395. package/dist/esm/realtime/protocol.js.map +1 -0
  396. package/dist/esm/realtime/voiceAgentRealtimeClient.d.ts +145 -0
  397. package/dist/esm/realtime/voiceAgentRealtimeClient.d.ts.map +1 -0
  398. package/dist/esm/realtime/voiceAgentRealtimeClient.js +376 -0
  399. package/dist/esm/realtime/voiceAgentRealtimeClient.js.map +1 -0
  400. package/dist/esm/realtime/webSocketTransportLike.d.ts +44 -0
  401. package/dist/esm/realtime/webSocketTransportLike.d.ts.map +1 -0
  402. package/dist/esm/realtime/webSocketTransportLike.js +4 -0
  403. package/dist/esm/realtime/webSocketTransportLike.js.map +1 -0
  404. package/dist/esm/webSocketTransport.d.ts +15 -0
  405. package/dist/esm/webSocketTransport.d.ts.map +1 -0
  406. package/dist/esm/webSocketTransport.js +220 -0
  407. package/dist/esm/webSocketTransport.js.map +1 -0
  408. package/dist/react-native/aiProjectClient.d.ts +1 -0
  409. package/dist/react-native/aiProjectClient.d.ts.map +1 -1
  410. package/dist/react-native/aiProjectClient.js +16 -1
  411. package/dist/react-native/aiProjectClient.js.map +1 -1
  412. package/dist/react-native/api/agents/index.d.ts +1 -1
  413. package/dist/react-native/api/agents/index.d.ts.map +1 -1
  414. package/dist/react-native/api/agents/index.js.map +1 -1
  415. package/dist/react-native/api/agents/options.d.ts +91 -1
  416. package/dist/react-native/api/agents/options.d.ts.map +1 -1
  417. package/dist/react-native/api/agents/options.js.map +1 -1
  418. package/dist/react-native/api/aiProjectContext.d.ts +3 -0
  419. package/dist/react-native/api/aiProjectContext.d.ts.map +1 -1
  420. package/dist/react-native/api/aiProjectContext.js.map +1 -1
  421. package/dist/react-native/api/beta/agents/index.d.ts +2 -2
  422. package/dist/react-native/api/beta/agents/index.d.ts.map +1 -1
  423. package/dist/react-native/api/beta/agents/index.js +1 -1
  424. package/dist/react-native/api/beta/agents/index.js.map +1 -1
  425. package/dist/react-native/api/beta/agents/operations.d.ts +9 -2
  426. package/dist/react-native/api/beta/agents/operations.d.ts.map +1 -1
  427. package/dist/react-native/api/beta/agents/operations.js +38 -1
  428. package/dist/react-native/api/beta/agents/operations.js.map +1 -1
  429. package/dist/react-native/api/beta/agents/options.d.ts +3 -0
  430. package/dist/react-native/api/beta/agents/options.d.ts.map +1 -1
  431. package/dist/react-native/api/beta/agents/options.js.map +1 -1
  432. package/dist/react-native/api/beta/voiceAgents/conversations/index.d.ts +3 -0
  433. package/dist/react-native/api/beta/voiceAgents/conversations/index.d.ts.map +1 -0
  434. package/dist/react-native/api/beta/voiceAgents/conversations/index.js +4 -0
  435. package/dist/react-native/api/beta/voiceAgents/conversations/index.js.map +1 -0
  436. package/dist/react-native/api/beta/voiceAgents/conversations/operations.d.ts +140 -0
  437. package/dist/react-native/api/beta/voiceAgents/conversations/operations.d.ts.map +1 -0
  438. package/dist/react-native/api/beta/voiceAgents/conversations/operations.js +635 -0
  439. package/dist/react-native/api/beta/voiceAgents/conversations/operations.js.map +1 -0
  440. package/dist/react-native/api/beta/voiceAgents/conversations/options.d.ts +133 -0
  441. package/dist/react-native/api/beta/voiceAgents/conversations/options.d.ts.map +1 -0
  442. package/dist/react-native/api/beta/voiceAgents/conversations/options.js +4 -0
  443. package/dist/react-native/api/beta/voiceAgents/conversations/options.js.map +1 -0
  444. package/dist/react-native/api/beta/voiceAgents/telephony/index.d.ts +3 -0
  445. package/dist/react-native/api/beta/voiceAgents/telephony/index.d.ts.map +1 -0
  446. package/dist/react-native/api/beta/voiceAgents/telephony/index.js +4 -0
  447. package/dist/react-native/api/beta/voiceAgents/telephony/index.js.map +1 -0
  448. package/dist/react-native/api/beta/voiceAgents/telephony/operations.d.ts +62 -0
  449. package/dist/react-native/api/beta/voiceAgents/telephony/operations.d.ts.map +1 -0
  450. package/dist/react-native/api/beta/voiceAgents/telephony/operations.js +559 -0
  451. package/dist/react-native/api/beta/voiceAgents/telephony/operations.js.map +1 -0
  452. package/dist/react-native/api/beta/voiceAgents/telephony/options.d.ts +133 -0
  453. package/dist/react-native/api/beta/voiceAgents/telephony/options.d.ts.map +1 -0
  454. package/dist/react-native/api/beta/voiceAgents/telephony/options.js +4 -0
  455. package/dist/react-native/api/beta/voiceAgents/telephony/options.js.map +1 -0
  456. package/dist/react-native/api/datasets/operations.d.ts.map +1 -1
  457. package/dist/react-native/api/datasets/operations.js +1 -3
  458. package/dist/react-native/api/datasets/operations.js.map +1 -1
  459. package/dist/react-native/api/toolboxes/index.d.ts +2 -2
  460. package/dist/react-native/api/toolboxes/index.d.ts.map +1 -1
  461. package/dist/react-native/api/toolboxes/index.js +1 -1
  462. package/dist/react-native/api/toolboxes/index.js.map +1 -1
  463. package/dist/react-native/api/toolboxes/operations.d.ts +6 -2
  464. package/dist/react-native/api/toolboxes/operations.d.ts.map +1 -1
  465. package/dist/react-native/api/toolboxes/operations.js +33 -0
  466. package/dist/react-native/api/toolboxes/operations.js.map +1 -1
  467. package/dist/react-native/api/toolboxes/options.d.ts +3 -0
  468. package/dist/react-native/api/toolboxes/options.d.ts.map +1 -1
  469. package/dist/react-native/api/toolboxes/options.js.map +1 -1
  470. package/dist/react-native/classic/beta/agents/index.d.ts +8 -3
  471. package/dist/react-native/classic/beta/agents/index.d.ts.map +1 -1
  472. package/dist/react-native/classic/beta/agents/index.js +3 -4
  473. package/dist/react-native/classic/beta/agents/index.js.map +1 -1
  474. package/dist/react-native/classic/beta/index.d.ts +6 -1
  475. package/dist/react-native/classic/beta/index.d.ts.map +1 -1
  476. package/dist/react-native/classic/beta/index.js +4 -1
  477. package/dist/react-native/classic/beta/index.js.map +1 -1
  478. package/dist/react-native/classic/beta/voiceAgents/conversations/index.d.ts +115 -0
  479. package/dist/react-native/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -0
  480. package/dist/react-native/classic/beta/voiceAgents/conversations/index.js +25 -0
  481. package/dist/react-native/classic/beta/voiceAgents/conversations/index.js.map +1 -0
  482. package/dist/react-native/classic/beta/voiceAgents/index.d.ts +16 -0
  483. package/dist/react-native/classic/beta/voiceAgents/index.d.ts.map +1 -0
  484. package/dist/react-native/classic/beta/voiceAgents/index.js +16 -0
  485. package/dist/react-native/classic/beta/voiceAgents/index.js.map +1 -0
  486. package/dist/react-native/classic/beta/voiceAgents/telephony/index.d.ts +37 -0
  487. package/dist/react-native/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -0
  488. package/dist/react-native/classic/beta/voiceAgents/telephony/index.js +25 -0
  489. package/dist/react-native/classic/beta/voiceAgents/telephony/index.js.map +1 -0
  490. package/dist/react-native/classic/index.d.ts +3 -0
  491. package/dist/react-native/classic/index.d.ts.map +1 -1
  492. package/dist/react-native/classic/index.js.map +1 -1
  493. package/dist/react-native/classic/toolboxes/index.d.ts +4 -2
  494. package/dist/react-native/classic/toolboxes/index.d.ts.map +1 -1
  495. package/dist/react-native/classic/toolboxes/index.js +2 -1
  496. package/dist/react-native/classic/toolboxes/index.js.map +1 -1
  497. package/dist/react-native/constants.d.ts +1 -1
  498. package/dist/react-native/constants.js +1 -1
  499. package/dist/react-native/constants.js.map +1 -1
  500. package/dist/react-native/deprecate.interface.d.ts +16 -4
  501. package/dist/react-native/deprecate.interface.d.ts.map +1 -1
  502. package/dist/react-native/deprecate.interface.js.map +1 -1
  503. package/dist/react-native/index.d.ts +15 -4
  504. package/dist/react-native/index.d.ts.map +1 -1
  505. package/dist/react-native/index.js +2 -0
  506. package/dist/react-native/index.js.map +1 -1
  507. package/dist/react-native/models/index.d.ts +2 -1
  508. package/dist/react-native/models/index.d.ts.map +1 -1
  509. package/dist/react-native/models/index.js.map +1 -1
  510. package/dist/react-native/models/models.d.ts +4198 -28
  511. package/dist/react-native/models/models.d.ts.map +1 -1
  512. package/dist/react-native/models/models.js +4881 -22
  513. package/dist/react-native/models/models.js.map +1 -1
  514. package/dist/react-native/package.json +1 -1
  515. package/dist/react-native/realtime/asyncQueue.d.ts +29 -0
  516. package/dist/react-native/realtime/asyncQueue.d.ts.map +1 -0
  517. package/dist/react-native/realtime/asyncQueue.js +105 -0
  518. package/dist/react-native/realtime/asyncQueue.js.map +1 -0
  519. package/dist/react-native/realtime/errors.d.ts +34 -0
  520. package/dist/react-native/realtime/errors.d.ts.map +1 -0
  521. package/dist/react-native/realtime/errors.js +40 -0
  522. package/dist/react-native/realtime/errors.js.map +1 -0
  523. package/dist/react-native/realtime/events.d.ts +24 -0
  524. package/dist/react-native/realtime/events.d.ts.map +1 -0
  525. package/dist/react-native/realtime/events.js +4 -0
  526. package/dist/react-native/realtime/events.js.map +1 -0
  527. package/dist/react-native/realtime/protocol.d.ts +7 -0
  528. package/dist/react-native/realtime/protocol.d.ts.map +1 -0
  529. package/dist/react-native/realtime/protocol.js +262 -0
  530. package/dist/react-native/realtime/protocol.js.map +1 -0
  531. package/dist/react-native/realtime/voiceAgentRealtimeClient.d.ts +145 -0
  532. package/dist/react-native/realtime/voiceAgentRealtimeClient.d.ts.map +1 -0
  533. package/dist/react-native/realtime/voiceAgentRealtimeClient.js +376 -0
  534. package/dist/react-native/realtime/voiceAgentRealtimeClient.js.map +1 -0
  535. package/dist/react-native/realtime/webSocketTransportLike.d.ts +44 -0
  536. package/dist/react-native/realtime/webSocketTransportLike.d.ts.map +1 -0
  537. package/dist/react-native/realtime/webSocketTransportLike.js +4 -0
  538. package/dist/react-native/realtime/webSocketTransportLike.js.map +1 -0
  539. package/dist/react-native/webSocketTransport-browser.d.mts +31 -0
  540. package/dist/react-native/webSocketTransport-browser.d.mts.map +1 -0
  541. package/dist/react-native/webSocketTransport-browser.mjs +218 -0
  542. package/dist/react-native/webSocketTransport-browser.mjs.map +1 -0
  543. package/dist/react-native/webSocketTransport.d.ts +2 -0
  544. package/dist/react-native/webSocketTransport.d.ts.map +1 -0
  545. package/dist/react-native/webSocketTransport.js +6 -0
  546. package/dist/react-native/webSocketTransport.js.map +1 -0
  547. package/package.json +8 -6
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/agents/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n AgentState,\n AgentKind,\n AgentBlueprintReferenceUnion,\n AgentEndpointConfig,\n ActivityProtocolAccessBoundary,\n AgentCard,\n Microsoft365PermissionScopes,\n AgentDefinitionOptInKeys,\n PageOrder,\n DigitalWorkerType,\n} from \"../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface AgentsDeleteSessionFileOptionalParams extends OperationOptions {\n /** Whether to recursively delete directory contents. The service defaults to `false` if a value is not specified by the caller. */\n recursive?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsListSessionFilesOptionalParams extends OperationOptions {\n /** The directory path to list, relative to the session home directory. Defaults to the home directory if not provided. */\n path?: string;\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDownloadSessionFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsUploadSessionFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetMicrosoft365PublishDefaultsOptionalParams extends OperationOptions {\n /** When true, returns defaults for publishing the agent as an autopilot (digital worker) agent. */\n publishAsDigitalWorker?: boolean;\n}\n\n/** Optional parameters. */\nexport interface GetMicrosoft365PackageOptionalParams extends OperationOptions {\n /**\n * Display name used as the published Teams app name. When omitted, the agent name from the route is\n * used.\n */\n agentDisplayName?: string;\n /**\n * ARM resource id of the Azure Bot Service that fronts this agent in Microsoft Teams. Required for\n * workspaces on the default bot-based Teams backend; optional for workspaces on the API-based backend.\n * Must not be supplied when `publishAsAutopilot` is true.\n */\n botServiceArmId?: string;\n /**\n * When true, the agent is published as an autopilot (digital worker) agent: the bot id is taken from\n * the agent's blueprint identity and the generated Teams manifest is marked as a digital worker.\n */\n publishAsAutopilot?: boolean;\n /**\n * Activity-protocol access boundaries to apply to the agent when publishing as an autopilot agent.\n * An empty list clears the existing boundaries. When omitted, the existing boundaries are left\n * unchanged.\n */\n accessBoundaries?: ActivityProtocolAccessBoundary[];\n /**\n * Exact selection of delegated permission scopes to grant to the autopilot blueprint. May only be\n * supplied when `publishAsAutopilot` is true. When omitted or empty, the platform's default\n * permission set is used. Mandatory platform permissions are always granted and are not affected by\n * this value.\n */\n optionalPermissionScopes?: Microsoft365PermissionScopes[];\n /**\n * Controls how the published agent responds to Teams messages: when true it responds to all messages\n * on its surfaces, when false only when it is at-mentioned. When omitted, the agent's existing Teams\n * message-notification setting is left unchanged.\n */\n canRespondWithoutMention?: boolean;\n /**\n * App version (for example `1.2.3`) written into the Teams manifest. May contain only digits and\n * periods, must not start with `0`, and must end with a digit. When omitted, a platform default is\n * used.\n */\n appVersion?: string;\n /** Short, one-line description shown in the Teams app listing. */\n shortDescription?: string;\n /** Full description shown on the Teams app details page. */\n fullDescription?: string;\n /** Display name of the developer / publisher shown in the Teams app listing. */\n developerName?: string;\n /** Developer / publisher website URL shown in the Teams app listing. Must be an https URL. */\n developerWebsiteUrl?: string;\n /** Privacy policy URL shown in the Teams app listing. Must be an http or https URL. */\n privacyUrl?: string;\n /** Terms-of-use URL shown in the Teams app listing. */\n termsOfUseUrl?: string;\n /**\n * Optional base64-encoded PNG used as the color (full-bleed) icon in the Teams app package. Must be a\n * 192x192 PNG (perfect square, no border or rounded corners). Max 1 MB after decode. When omitted, the\n * platform default color icon is used.\n */\n colorIconBase64?: string;\n /**\n * Optional base64-encoded PNG used as the outline icon in the Teams app package. Must be a 32x32 PNG.\n * Max 1 MB after decode. When omitted, the platform default outline icon is used.\n */\n outlineIconBase64?: string;\n}\n\n/** Optional parameters. */\nexport interface PublishToMicrosoft365OptionalParams extends OperationOptions {\n /**\n * Display name used as the published Teams app name. When omitted, the agent name from the route is\n * used.\n */\n agentDisplayName?: string;\n /**\n * ARM resource id of the Azure Bot Service that fronts this agent in Microsoft Teams. Required for\n * workspaces on the default bot-based Teams backend; optional for workspaces on the API-based backend.\n * Must not be supplied when `publishAsAutopilot` is true.\n */\n botServiceArmId?: string;\n /**\n * When true, the agent is published as an autopilot (digital worker) agent: the bot id is taken from\n * the agent's blueprint identity and the generated Teams manifest is marked as a digital worker.\n */\n publishAsAutopilot?: boolean;\n /**\n * Activity-protocol access boundaries to apply to the agent when publishing as an autopilot agent.\n * An empty list clears the existing boundaries. When omitted, the existing boundaries are left\n * unchanged.\n */\n accessBoundaries?: ActivityProtocolAccessBoundary[];\n /**\n * Exact selection of delegated permission scopes to grant to the autopilot blueprint. May only be\n * supplied when `publishAsAutopilot` is true. When omitted or empty, the platform's default\n * permission set is used. Mandatory platform permissions are always granted and are not affected by\n * this value.\n */\n optionalPermissionScopes?: Microsoft365PermissionScopes[];\n /**\n * Controls how the published agent responds to Teams messages: when true it responds to all messages\n * on its surfaces, when false only when it is at-mentioned. When omitted, the agent's existing Teams\n * message-notification setting is left unchanged.\n */\n canRespondWithoutMention?: boolean;\n /**\n * App version (for example `1.2.3`) written into the Teams manifest. May contain only digits and\n * periods, must not start with `0`, and must end with a digit. When omitted, a platform default is\n * used.\n */\n appVersion?: string;\n /** Short, one-line description shown in the Teams app listing. */\n shortDescription?: string;\n /** Full description shown on the Teams app details page. */\n fullDescription?: string;\n /** Display name of the developer / publisher shown in the Teams app listing. */\n developerName?: string;\n /** Developer / publisher website URL shown in the Teams app listing. Must be an https URL. */\n developerWebsiteUrl?: string;\n /** Privacy policy URL shown in the Teams app listing. Must be an http or https URL. */\n privacyUrl?: string;\n /** Terms-of-use URL shown in the Teams app listing. */\n termsOfUseUrl?: string;\n /**\n * Optional base64-encoded PNG used as the color (full-bleed) icon in the Teams app package. Must be a\n * 192x192 PNG (perfect square, no border or rounded corners). Max 1 MB after decode. When omitted, the\n * platform default color icon is used.\n */\n colorIconBase64?: string;\n /**\n * Optional base64-encoded PNG used as the outline icon in the Teams app package. Must be a 32x32 PNG.\n * Max 1 MB after decode. When omitted, the platform default outline icon is used.\n */\n outlineIconBase64?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsGetSessionLogStreamOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsListSessionsOptionalParams extends OperationOptions {\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsStopSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsDeleteSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsGetSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsCreateSessionOptionalParams extends OperationOptions {\n /** Optional caller-provided session ID. If specified, it must be unique within the agent endpoint. Auto-generated if omitted. */\n agentSessionId?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDisableOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsEnableOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsDownloadAgentCodeOptionalParams extends OperationOptions {\n /**\n * The version of the agent whose code zip should be downloaded.\n * If omitted, the latest version's code zip is returned.\n */\n agentVersion?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateVersionFromCodeOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsUpdateAgentObjectOptionalParams extends OperationOptions {\n /** The endpoint configuration for the agent */\n agentEndpoint?: AgentEndpointConfig;\n /** Optional agent card for the agent */\n agentCard?: AgentCard;\n}\n\n/** Optional parameters. */\nexport type AgentsPatchAgentObjectOptionalParams = AgentsUpdateAgentObjectOptionalParams;\n\n/** Optional parameters. */\nexport interface AgentsListVersionsOptionalParams extends OperationOptions {\n /** Feature flag required to include draft agent versions. */\n foundryFeatures?: \"DraftAgents=V1Preview\";\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n /** Whether to include draft (candidate) versions in the response. */\n includeDrafts?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsDeleteVersionOptionalParams extends OperationOptions {\n /** For Hosted Agents, if `true`, force-deletes the version even if it has active sessions, cascading deletion to all associated sessions. The service defaults to `false` if a value is not specified by the caller. This value is not relevant for other Agent types. */\n force?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsGetVersionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsCreateAgentVersionFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateVersionOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n /** (Preview) The type of digital worker (previously known as `autopilot`). If omitted, it is not a digital worker. */\n digitalWorkerType?: DigitalWorkerType;\n /** (Preview) Whether this agent version is a draft (candidate) rather than a release. The service defaults to `false` if a value is not specified by the caller. Draft versions are recorded but excluded from default 'latest' resolution and are not auto-promoted. */\n draft?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsListOptionalParams extends OperationOptions {\n /** Filter agents by kind. If not provided, all agents are returned. */\n kind?: AgentKind;\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDeleteOptionalParams extends OperationOptions {\n /** For Hosted Agents, if `true`, force-deletes the agent even if its versions have active sessions, cascading deletion to all associated sessions. The service defaults to `false` if a value is not specified by the caller. This value is not relevant for other Agent types. */\n force?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsUpdateAgentFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateAgentFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsUpdateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /** The initial operational state of the agent. Defaults to 'enabled' if not specified. */\n state?: AgentState;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n /** (Preview) The type of digital worker (previously known as `autopilot`). If omitted, it is not a digital worker. */\n digitalWorkerType?: DigitalWorkerType;\n /** (Preview) Whether this agent version is a draft (candidate) rather than a release. The service defaults to `false` if a value is not specified by the caller. Draft versions are recorded but excluded from default 'latest' resolution and are not auto-promoted. */\n draft?: boolean;\n /** An optional endpoint configuration. If not specified, a default endpoint configuration will be set for the agent */\n agentEndpoint?: AgentEndpointConfig;\n /** Optional agent card for the agent */\n agentCard?: AgentCard;\n}\n\n/** Optional parameters. */\nexport interface AgentsGetOptionalParams extends OperationOptions {}\n"]}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/agents/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n AgentState,\n AgentKind,\n AgentBlueprintReferenceUnion,\n AgentEndpointConfig,\n ActivityProtocolAccessBoundary,\n AgentCard,\n Microsoft365PermissionScopes,\n TelephonyProvider,\n TelephonyBindingStatus,\n TelephonyCallStatus,\n AgentDefinitionOptInKeys,\n PageOrder,\n DigitalWorkerType,\n} from \"../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface AgentsDeleteSessionFileOptionalParams extends OperationOptions {\n /** Whether to recursively delete directory contents. The service defaults to `false` if a value is not specified by the caller. */\n recursive?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsListSessionFilesOptionalParams extends OperationOptions {\n /** The directory path to list, relative to the session home directory. Defaults to the home directory if not provided. */\n path?: string;\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDownloadSessionFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsUploadSessionFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsListTelephonyCallsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"VoiceAgents=V1Preview\";\n /** Filters calls by provider. */\n provider?: TelephonyProvider;\n /** Filters calls by lifecycle status. */\n status?: TelephonyCallStatus;\n /** Includes calls that started at or after this Unix timestamp in seconds. */\n startedAfter?: Date;\n /** Includes calls that started at or before this Unix timestamp in seconds. */\n startedBefore?: Date;\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDeleteTelephonyBindingOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"VoiceAgents=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface AgentsUpdateTelephonyBindingOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"VoiceAgents=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface AgentsGetTelephonyBindingOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"VoiceAgents=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface AgentsListTelephonyBindingsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"VoiceAgents=V1Preview\";\n /** Filters bindings by provider. */\n provider?: TelephonyProvider;\n /** Filters bindings by lifecycle status. */\n status?: TelephonyBindingStatus;\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateTelephonyBindingOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"VoiceAgents=V1Preview\";\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n repeatabilityRequestId?: string;\n /** Specifies the date and time at which the request was first created. */\n repeatabilityFirstSent?: Date;\n}\n\n/** Optional parameters. */\nexport interface GetMicrosoft365PublishDefaultsOptionalParams extends OperationOptions {\n /** When true, returns defaults for publishing the agent as an autopilot (digital worker) agent. */\n publishAsDigitalWorker?: boolean;\n}\n\n/** Optional parameters. */\nexport interface GetMicrosoft365PackageOptionalParams extends OperationOptions {\n /**\n * Display name used as the published Teams app name. When omitted, the agent name from the route is\n * used.\n */\n agentDisplayName?: string;\n /**\n * ARM resource id of the Azure Bot Service that fronts this agent in Microsoft Teams. Required for\n * workspaces on the default bot-based Teams backend; optional for workspaces on the API-based backend.\n * Must not be supplied when `publishAsAutopilot` is true.\n */\n botServiceArmId?: string;\n /**\n * When true, the agent is published as an autopilot (digital worker) agent: the bot id is taken from\n * the agent's blueprint identity and the generated Teams manifest is marked as a digital worker.\n */\n publishAsAutopilot?: boolean;\n /**\n * Activity-protocol access boundaries to apply to the agent when publishing as an autopilot agent.\n * An empty list clears the existing boundaries. When omitted, the existing boundaries are left\n * unchanged.\n */\n accessBoundaries?: ActivityProtocolAccessBoundary[];\n /**\n * Exact selection of delegated permission scopes to grant to the autopilot blueprint. May only be\n * supplied when `publishAsAutopilot` is true. When omitted or empty, the platform's default\n * permission set is used. Mandatory platform permissions are always granted and are not affected by\n * this value.\n */\n optionalPermissionScopes?: Microsoft365PermissionScopes[];\n /**\n * Controls how the published agent responds to Teams messages: when true it responds to all messages\n * on its surfaces, when false only when it is at-mentioned. When omitted, the agent's existing Teams\n * message-notification setting is left unchanged.\n */\n canRespondWithoutMention?: boolean;\n /**\n * App version (for example `1.2.3`) written into the Teams manifest. May contain only digits and\n * periods, must not start with `0`, and must end with a digit. When omitted, a platform default is\n * used.\n */\n appVersion?: string;\n /** Short, one-line description shown in the Teams app listing. */\n shortDescription?: string;\n /** Full description shown on the Teams app details page. */\n fullDescription?: string;\n /** Display name of the developer / publisher shown in the Teams app listing. */\n developerName?: string;\n /** Developer / publisher website URL shown in the Teams app listing. Must be an https URL. */\n developerWebsiteUrl?: string;\n /** Privacy policy URL shown in the Teams app listing. Must be an http or https URL. */\n privacyUrl?: string;\n /** Terms-of-use URL shown in the Teams app listing. */\n termsOfUseUrl?: string;\n /**\n * Optional base64-encoded PNG used as the color (full-bleed) icon in the Teams app package. Must be a\n * 192x192 PNG (perfect square, no border or rounded corners). Max 1 MB after decode. When omitted, the\n * platform default color icon is used.\n */\n colorIconBase64?: string;\n /**\n * Optional base64-encoded PNG used as the outline icon in the Teams app package. Must be a 32x32 PNG.\n * Max 1 MB after decode. When omitted, the platform default outline icon is used.\n */\n outlineIconBase64?: string;\n}\n\n/** Optional parameters. */\nexport interface PublishToMicrosoft365OptionalParams extends OperationOptions {\n /**\n * Display name used as the published Teams app name. When omitted, the agent name from the route is\n * used.\n */\n agentDisplayName?: string;\n /**\n * ARM resource id of the Azure Bot Service that fronts this agent in Microsoft Teams. Required for\n * workspaces on the default bot-based Teams backend; optional for workspaces on the API-based backend.\n * Must not be supplied when `publishAsAutopilot` is true.\n */\n botServiceArmId?: string;\n /**\n * When true, the agent is published as an autopilot (digital worker) agent: the bot id is taken from\n * the agent's blueprint identity and the generated Teams manifest is marked as a digital worker.\n */\n publishAsAutopilot?: boolean;\n /**\n * Activity-protocol access boundaries to apply to the agent when publishing as an autopilot agent.\n * An empty list clears the existing boundaries. When omitted, the existing boundaries are left\n * unchanged.\n */\n accessBoundaries?: ActivityProtocolAccessBoundary[];\n /**\n * Exact selection of delegated permission scopes to grant to the autopilot blueprint. May only be\n * supplied when `publishAsAutopilot` is true. When omitted or empty, the platform's default\n * permission set is used. Mandatory platform permissions are always granted and are not affected by\n * this value.\n */\n optionalPermissionScopes?: Microsoft365PermissionScopes[];\n /**\n * Controls how the published agent responds to Teams messages: when true it responds to all messages\n * on its surfaces, when false only when it is at-mentioned. When omitted, the agent's existing Teams\n * message-notification setting is left unchanged.\n */\n canRespondWithoutMention?: boolean;\n /**\n * App version (for example `1.2.3`) written into the Teams manifest. May contain only digits and\n * periods, must not start with `0`, and must end with a digit. When omitted, a platform default is\n * used.\n */\n appVersion?: string;\n /** Short, one-line description shown in the Teams app listing. */\n shortDescription?: string;\n /** Full description shown on the Teams app details page. */\n fullDescription?: string;\n /** Display name of the developer / publisher shown in the Teams app listing. */\n developerName?: string;\n /** Developer / publisher website URL shown in the Teams app listing. Must be an https URL. */\n developerWebsiteUrl?: string;\n /** Privacy policy URL shown in the Teams app listing. Must be an http or https URL. */\n privacyUrl?: string;\n /** Terms-of-use URL shown in the Teams app listing. */\n termsOfUseUrl?: string;\n /**\n * Optional base64-encoded PNG used as the color (full-bleed) icon in the Teams app package. Must be a\n * 192x192 PNG (perfect square, no border or rounded corners). Max 1 MB after decode. When omitted, the\n * platform default color icon is used.\n */\n colorIconBase64?: string;\n /**\n * Optional base64-encoded PNG used as the outline icon in the Teams app package. Must be a 32x32 PNG.\n * Max 1 MB after decode. When omitted, the platform default outline icon is used.\n */\n outlineIconBase64?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsGetSessionLogStreamOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsListSessionsOptionalParams extends OperationOptions {\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsStopSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsDeleteSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsGetSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsCreateSessionOptionalParams extends OperationOptions {\n /** Optional caller-provided session ID. If specified, it must be unique within the agent endpoint. Auto-generated if omitted. */\n agentSessionId?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDisableOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsEnableOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsDownloadAgentCodeOptionalParams extends OperationOptions {\n /**\n * The version of the agent whose code zip should be downloaded.\n * If omitted, the latest version's code zip is returned.\n */\n agentVersion?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateVersionFromCodeOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsUpdateAgentObjectOptionalParams extends OperationOptions {\n /** The endpoint configuration for the agent */\n agentEndpoint?: AgentEndpointConfig;\n /** Optional agent card for the agent */\n agentCard?: AgentCard;\n}\n\n/** Optional parameters. */\nexport type AgentsPatchAgentObjectOptionalParams = AgentsUpdateAgentObjectOptionalParams;\n\n/** Optional parameters. */\nexport interface AgentsListVersionsOptionalParams extends OperationOptions {\n /** Feature flag required to include draft agent versions. */\n foundryFeatures?: \"DraftAgents=V1Preview\";\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n /** Whether to include draft (candidate) versions in the response. */\n includeDrafts?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsDeleteVersionOptionalParams extends OperationOptions {\n /** For Hosted Agents, if `true`, force-deletes the version even if it has active sessions, cascading deletion to all associated sessions. The service defaults to `false` if a value is not specified by the caller. This value is not relevant for other Agent types. */\n force?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsGetVersionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsCreateAgentVersionFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateVersionOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n /** (Preview) The type of digital worker (previously known as `autopilot`). If omitted, it is not a digital worker. */\n digitalWorkerType?: DigitalWorkerType;\n /** (Preview) Whether this agent version is a draft (candidate) rather than a release. The service defaults to `false` if a value is not specified by the caller. Draft versions are recorded but excluded from default 'latest' resolution and are not auto-promoted. */\n draft?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsListOptionalParams extends OperationOptions {\n /** Filter agents by kind. If not provided, all agents are returned. */\n kind?: AgentKind;\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDeleteOptionalParams extends OperationOptions {\n /** For Hosted Agents, if `true`, force-deletes the agent even if its versions have active sessions, cascading deletion to all associated sessions. The service defaults to `false` if a value is not specified by the caller. This value is not relevant for other Agent types. */\n force?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsUpdateAgentFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateAgentFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsUpdateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /** The initial operational state of the agent. Defaults to 'enabled' if not specified. */\n state?: AgentState;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n /** (Preview) The type of digital worker (previously known as `autopilot`). If omitted, it is not a digital worker. */\n digitalWorkerType?: DigitalWorkerType;\n /** (Preview) Whether this agent version is a draft (candidate) rather than a release. The service defaults to `false` if a value is not specified by the caller. Draft versions are recorded but excluded from default 'latest' resolution and are not auto-promoted. */\n draft?: boolean;\n /** An optional endpoint configuration. If not specified, a default endpoint configuration will be set for the agent */\n agentEndpoint?: AgentEndpointConfig;\n /** Optional agent card for the agent */\n agentCard?: AgentCard;\n}\n\n/** Optional parameters. */\nexport interface AgentsGetOptionalParams extends OperationOptions {}\n"]}
@@ -2,6 +2,7 @@ import { KnownApiVersions } from "../models/models.js";
2
2
  import type { Client, ClientOptions } from "@azure-rest/core-client";
3
3
  import type { TokenCredential } from "@azure/core-auth";
4
4
  import type { GenAITracingOptions } from "../tracing/configuration.js";
5
+ import type { VoiceAgentRealtimeClientOptions } from "../realtime/voiceAgentRealtimeClient.js";
5
6
  export interface AIProjectContext extends Client {
6
7
  /** The API version to use for this operation. */
7
8
  /** Known values of {@link KnownApiVersions} that the service accepts. */
@@ -20,6 +21,8 @@ export interface AIProjectClientOptionalParams extends ClientOptions {
20
21
  * When omitted, no GenAI spans or metrics are emitted.
21
22
  */
22
23
  tracingOptions?: GenAITracingOptions;
24
+ /** Options applied to realtime voice-agent connections. */
25
+ realtimeOptions?: VoiceAgentRealtimeClientOptions;
23
26
  }
24
27
  export declare function createAIProject(endpoint: string, credential: TokenCredential, options?: AIProjectClientOptionalParams): AIProjectContext;
25
28
  //# sourceMappingURL=aiProjectContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aiProjectContext.d.ts","sourceRoot":"","sources":["../../../src/api/aiProjectContext.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,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SACzE;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,gBAAgB,CAAC,EAAE,CAAC;IAC7D,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAsB,CAAC;AACrF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownApiVersions } from \"../models/models.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { SDK_VERSION } from \"../constants.js\";\nimport type { GenAITracingOptions } from \"../tracing/configuration.js\";\n\nexport interface AIProjectContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownApiVersions} that the service accepts. */\n apiVersion: KnownApiVersions;\n /** The endpoint URL for this client. */\n endpoint: string;\n}\n\n/** Optional parameters for the client. */\nexport interface AIProjectClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownApiVersions} that the service accepts. */\n apiVersion?: KnownApiVersions;\n /**\n * Options for configuring GenAI tracing for this client instance.\n * When provided, GenAI tracing is enabled for all supported operations performed through this client.\n * When omitted, no GenAI spans or metrics are emitted.\n */\n tracingOptions?: GenAITracingOptions;\n}\n\nexport function createAIProject(\n endpoint: string,\n credential: TokenCredential,\n options: AIProjectClientOptionalParams = {},\n): AIProjectContext {\n const endpointUrl = options.endpoint ?? String(endpoint);\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-ai-projects/${SDK_VERSION}`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://ai.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion ?? KnownApiVersions.v1;\n return { ...clientContext, apiVersion, endpoint: endpointUrl } as AIProjectContext;\n}\n"]}
1
+ {"version":3,"file":"aiProjectContext.js","sourceRoot":"","sources":["../../../src/api/aiProjectContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AA2B9C,MAAM,UAAU,eAAe,CAC7B,QAAgB,EAChB,UAA2B,EAC3B,UAAyC,EAAE;IAE3C,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;IACzD,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,wBAAwB,WAAW,EAAE,CAAC;IAC5D,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,+BAA+B,CAAC;SACzE;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,gBAAgB,CAAC,EAAE,CAAC;IAC7D,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAsB,CAAC;AACrF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownApiVersions } from \"../models/models.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { SDK_VERSION } from \"../constants.js\";\nimport type { GenAITracingOptions } from \"../tracing/configuration.js\";\nimport type { VoiceAgentRealtimeClientOptions } from \"../realtime/voiceAgentRealtimeClient.js\";\n\nexport interface AIProjectContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownApiVersions} that the service accepts. */\n apiVersion: KnownApiVersions;\n /** The endpoint URL for this client. */\n endpoint: string;\n}\n\n/** Optional parameters for the client. */\nexport interface AIProjectClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownApiVersions} that the service accepts. */\n apiVersion?: KnownApiVersions;\n /**\n * Options for configuring GenAI tracing for this client instance.\n * When provided, GenAI tracing is enabled for all supported operations performed through this client.\n * When omitted, no GenAI spans or metrics are emitted.\n */\n tracingOptions?: GenAITracingOptions;\n /** Options applied to realtime voice-agent connections. */\n realtimeOptions?: VoiceAgentRealtimeClientOptions;\n}\n\nexport function createAIProject(\n endpoint: string,\n credential: TokenCredential,\n options: AIProjectClientOptionalParams = {},\n): AIProjectContext {\n const endpointUrl = options.endpoint ?? String(endpoint);\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-ai-projects/${SDK_VERSION}`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://ai.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion ?? KnownApiVersions.v1;\n return { ...clientContext, apiVersion, endpoint: endpointUrl } as AIProjectContext;\n}\n"]}
@@ -1,3 +1,3 @@
1
- export { deleteOptimizationJob, cancelOptimizationJob, listOptimizationJobs, getOptimizationJob, createOptimizationJob, } from "./operations.js";
2
- export type { BetaAgentsDeleteOptimizationJobOptionalParams, BetaAgentsCancelOptimizationJobOptionalParams, BetaAgentsListOptimizationJobsOptionalParams, BetaAgentsGetOptimizationJobOptionalParams, BetaAgentsCreateOptimizationJobOptionalParams, } from "./options.js";
1
+ export { deleteOptimizationJob, cancelOptimizationJob, listOptimizationJobs, getOptimizationJob, createOptimizationJob, createFromPrompt, } from "./operations.js";
2
+ export type { BetaAgentsDeleteOptimizationJobOptionalParams, BetaAgentsCancelOptimizationJobOptionalParams, BetaAgentsListOptimizationJobsOptionalParams, BetaAgentsGetOptimizationJobOptionalParams, BetaAgentsCreateOptimizationJobOptionalParams, BetaAgentsCreateFromPromptOptionalParams, } from "./options.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/agents/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,6CAA6C,EAC7C,6CAA6C,EAC7C,4CAA4C,EAC5C,0CAA0C,EAC1C,6CAA6C,GAC9C,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/agents/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,6CAA6C,EAC7C,6CAA6C,EAC7C,4CAA4C,EAC5C,0CAA0C,EAC1C,6CAA6C,EAC7C,wCAAwC,GACzC,MAAM,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- export { deleteOptimizationJob, cancelOptimizationJob, listOptimizationJobs, getOptimizationJob, createOptimizationJob, } from "./operations.js";
3
+ export { deleteOptimizationJob, cancelOptimizationJob, listOptimizationJobs, getOptimizationJob, createOptimizationJob, createFromPrompt, } from "./operations.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/beta/agents/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n deleteOptimizationJob,\n cancelOptimizationJob,\n listOptimizationJobs,\n getOptimizationJob,\n createOptimizationJob,\n} from \"./operations.js\";\nexport type {\n BetaAgentsDeleteOptimizationJobOptionalParams,\n BetaAgentsCancelOptimizationJobOptionalParams,\n BetaAgentsListOptimizationJobsOptionalParams,\n BetaAgentsGetOptimizationJobOptionalParams,\n BetaAgentsCreateOptimizationJobOptionalParams,\n} from \"./options.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/beta/agents/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n deleteOptimizationJob,\n cancelOptimizationJob,\n listOptimizationJobs,\n getOptimizationJob,\n createOptimizationJob,\n createFromPrompt,\n} from \"./operations.js\";\nexport type {\n BetaAgentsDeleteOptimizationJobOptionalParams,\n BetaAgentsCancelOptimizationJobOptionalParams,\n BetaAgentsListOptimizationJobsOptionalParams,\n BetaAgentsGetOptimizationJobOptionalParams,\n BetaAgentsCreateOptimizationJobOptionalParams,\n BetaAgentsCreateFromPromptOptionalParams,\n} from \"./options.js\";\n"]}
@@ -1,8 +1,8 @@
1
1
  import type { AIProjectContext as Client } from "../../index.js";
2
- import type { AgentOptimizationJob, AgentOptimizationJobListItem, AgentOptimizationJobResult, _AgentsPagedResultAgentOptimizationJobListItem } from "../../../models/models.js";
2
+ import type { AgentOptimizationJob, AgentOptimizationJobListItem, AgentOptimizationJobResult, _AgentsPagedResultAgentOptimizationJobListItem, Agent, GenerateAgentRequest } from "../../../models/models.js";
3
3
  import type { PagedAsyncIterableIterator } from "@azure/core-paging";
4
4
  import type { JobPoller } from "../../../static-helpers/pollingHelpers.js";
5
- import type { BetaAgentsDeleteOptimizationJobOptionalParams, BetaAgentsCancelOptimizationJobOptionalParams, BetaAgentsListOptimizationJobsOptionalParams, BetaAgentsGetOptimizationJobOptionalParams, BetaAgentsCreateOptimizationJobOptionalParams } from "./options.js";
5
+ import type { BetaAgentsDeleteOptimizationJobOptionalParams, BetaAgentsCancelOptimizationJobOptionalParams, BetaAgentsListOptimizationJobsOptionalParams, BetaAgentsGetOptimizationJobOptionalParams, BetaAgentsCreateOptimizationJobOptionalParams, BetaAgentsCreateFromPromptOptionalParams } from "./options.js";
6
6
  import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
7
7
  export declare function _deleteOptimizationJobSend(context: Client, jobId: string, options?: BetaAgentsDeleteOptimizationJobOptionalParams): StreamableMethod;
8
8
  export declare function _deleteOptimizationJobDeserialize(result: PathUncheckedResponse): Promise<void>;
@@ -24,4 +24,11 @@ export declare function _createOptimizationJobSend(context: Client, job: AgentOp
24
24
  export declare function _createOptimizationJobDeserialize(result: PathUncheckedResponse): Promise<AgentOptimizationJobResult>;
25
25
  /** Create an optimization job. Returns the queued job. Honours `Operation-Id` for idempotent retry. */
26
26
  export declare function createOptimizationJob(context: Client, job: AgentOptimizationJob, options?: BetaAgentsCreateOptimizationJobOptionalParams): JobPoller<AgentOptimizationJobResult>;
27
+ export declare function _createFromPromptSend(context: Client, body: GenerateAgentRequest, options?: BetaAgentsCreateFromPromptOptionalParams): StreamableMethod;
28
+ export declare function _createFromPromptDeserialize(result: PathUncheckedResponse): Promise<Agent>;
29
+ /**
30
+ * Generates and creates an agent from kind-specific high-level inputs.
31
+ * The generated definition remains fully editable through the standard agent versioning operations.
32
+ */
33
+ export declare function createFromPrompt(context: Client, body: GenerateAgentRequest, options?: BetaAgentsCreateFromPromptOptionalParams): Promise<Agent>;
27
34
  //# sourceMappingURL=operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/agents/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EACV,oBAAoB,EACpB,4BAA4B,EAC5B,0BAA0B,EAC1B,8CAA8C,EAC/C,MAAM,2BAA2B,CAAC;AAQnC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAAE,SAAS,EAAE,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1D;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,0CAAmE,GAC3E,gBAAgB,CAmBlB;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAY/B;AAED,qCAAqC;AACrC,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,0CAAmE,GAC3E,OAAO,CAAC,oBAAoB,CAAC,CAG/B;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,oBAAoB,EACzB,OAAO,GAAE,6CAAsE,GAC9E,gBAAgB,CAsBlB;AAED,wBAAsB,iCAAiC,CACrD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,0BAA0B,CAAC,CAmBrC;AAED,uGAAuG;AACvG,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,oBAAoB,EACzB,OAAO,GAAE,6CAAsE,GAC9E,SAAS,CAAC,0BAA0B,CAAC,CAavC"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/agents/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EACV,oBAAoB,EACpB,4BAA4B,EAC5B,0BAA0B,EAC1B,8CAA8C,EAC9C,KAAK,EACL,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AAUnC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAG3E,OAAO,KAAK,EACV,6CAA6C,EAC7C,6CAA6C,EAC7C,4CAA4C,EAC5C,0CAA0C,EAC1C,6CAA6C,EAC7C,wCAA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CAmBlB;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAY/B;AAED,qCAAqC;AACrC,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,0CAAmE,GAC3E,OAAO,CAAC,oBAAoB,CAAC,CAG/B;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,oBAAoB,EACzB,OAAO,GAAE,6CAAsE,GAC9E,gBAAgB,CAsBlB;AAED,wBAAsB,iCAAiC,CACrD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,0BAA0B,CAAC,CAmBrC;AAED,uGAAuG;AACvG,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,oBAAoB,EACzB,OAAO,GAAE,6CAAsE,GAC9E,SAAS,CAAC,0BAA0B,CAAC,CAavC;AAED,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,oBAAoB,EAC1B,OAAO,GAAE,wCAAiE,GACzE,gBAAgB,CAsBlB;AAED,wBAAsB,4BAA4B,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,KAAK,CAAC,CAYhG;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,oBAAoB,EAC1B,OAAO,GAAE,wCAAiE,GACzE,OAAO,CAAC,KAAK,CAAC,CAGhB"}
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { apiErrorResponseDeserializer, agentOptimizationJobSerializer, agentOptimizationJobDeserializer, agentOptimizationJobResultDeserializer, _agentsPagedResultAgentOptimizationJobListItemDeserializer, } from "../../../models/models.js";
3
+ import { apiErrorResponseDeserializer, agentOptimizationJobSerializer, agentOptimizationJobDeserializer, agentOptimizationJobResultDeserializer, _agentsPagedResultAgentOptimizationJobListItemDeserializer, agentDeserializer, generateAgentRequestSerializer, } from "../../../models/models.js";
4
4
  import { buildPagedAsyncIterator } from "../../../static-helpers/pagingHelpers.js";
5
5
  import { getJobPoller } from "../../../static-helpers/pollingHelpers.js";
6
6
  import { expandUrlTemplate } from "../../../static-helpers/urlTemplate.js";
@@ -185,4 +185,41 @@ export function createOptimizationJob(context, job, options = { requestOptions:
185
185
  },
186
186
  });
187
187
  }
188
+ export function _createFromPromptSend(context, body, options = { requestOptions: {} }) {
189
+ const foundryFeatures = "VoiceAgents=V1Preview";
190
+ const path = expandUrlTemplate("/agents:generate{?api%2Dversion}", {
191
+ "api%2Dversion": context.apiVersion ?? "v1",
192
+ }, {
193
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
194
+ });
195
+ return context.path(path).post({
196
+ ...operationOptionsToRequestParameters(options),
197
+ contentType: "application/json",
198
+ headers: {
199
+ "foundry-features": foundryFeatures,
200
+ accept: "application/json",
201
+ ...options.requestOptions?.headers,
202
+ },
203
+ body: generateAgentRequestSerializer(body),
204
+ });
205
+ }
206
+ export async function _createFromPromptDeserialize(result) {
207
+ const expectedStatuses = ["200"];
208
+ if (!expectedStatuses.includes(result.status)) {
209
+ const error = createRestError(result);
210
+ if (result.body) {
211
+ error.details = apiErrorResponseDeserializer(result.body);
212
+ }
213
+ throw error;
214
+ }
215
+ return agentDeserializer(result.body);
216
+ }
217
+ /**
218
+ * Generates and creates an agent from kind-specific high-level inputs.
219
+ * The generated definition remains fully editable through the standard agent versioning operations.
220
+ */
221
+ export async function createFromPrompt(context, body, options = { requestOptions: {} }) {
222
+ const result = await _createFromPromptSend(context, body, options);
223
+ return _createFromPromptDeserialize(result);
224
+ }
188
225
  //# sourceMappingURL=operations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../src/api/beta/agents/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAS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,CAAC;QAC3E,sBAAsB,EAAE,oBAAoB;QAC5C,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI;QACtC,WAAW,EAAE;YACX,GAAG,OAAO,EAAE,cAAc,EAAE,OAAO;YACnC,kBAAkB,EAAE,8BAA8B;SACnD;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext as Client } from \"../../index.js\";\nimport type {\n AgentOptimizationJob,\n AgentOptimizationJobListItem,\n AgentOptimizationJobResult,\n _AgentsPagedResultAgentOptimizationJobListItem,\n} from \"../../../models/models.js\";\nimport {\n apiErrorResponseDeserializer,\n agentOptimizationJobSerializer,\n agentOptimizationJobDeserializer,\n agentOptimizationJobResultDeserializer,\n _agentsPagedResultAgentOptimizationJobListItemDeserializer,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../../static-helpers/pagingHelpers.js\";\nimport type { JobPoller } from \"../../../static-helpers/pollingHelpers.js\";\nimport { getJobPoller } from \"../../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../../static-helpers/urlTemplate.js\";\nimport type {\n BetaAgentsDeleteOptimizationJobOptionalParams,\n BetaAgentsCancelOptimizationJobOptionalParams,\n BetaAgentsListOptimizationJobsOptionalParams,\n BetaAgentsGetOptimizationJobOptionalParams,\n BetaAgentsCreateOptimizationJobOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _deleteOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsDeleteOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"AgentsOptimization=V2Preview\";\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\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 _deleteOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): 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/** Delete the job and its candidate artifacts. Cancels first if non-terminal. */\nexport async function deleteOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsDeleteOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _deleteOptimizationJobSend(context, jobId, options);\n return _deleteOptimizationJobDeserialize(result);\n}\n\nexport function _cancelOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsCancelOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}:cancel{?api-version}\",\n {\n jobId: jobId,\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\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _cancelOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<AgentOptimizationJob> {\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 agentOptimizationJobDeserializer(result.body);\n}\n\n/** Request cancellation of a running or queued job. Returns an error if the job is already in a terminal state. */\nexport async function cancelOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsCancelOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<AgentOptimizationJob> {\n const result = await _cancelOptimizationJobSend(context, jobId, options);\n return _cancelOptimizationJobDeserialize(result);\n}\n\nexport function _listOptimizationJobsSend(\n context: Client,\n options: BetaAgentsListOptimizationJobsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs{?limit,order,after,before,status,agent_name,api-version}\",\n {\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n status: options?.status,\n agent_name: options?.agentName,\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\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listOptimizationJobsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultAgentOptimizationJobListItem> {\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 _agentsPagedResultAgentOptimizationJobListItemDeserializer(result.body);\n}\n\n/** List optimization jobs. Supports cursor pagination and optional status / agent_name filters. */\nexport function listOptimizationJobs(\n context: Client,\n options: BetaAgentsListOptimizationJobsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<AgentOptimizationJobListItem> {\n return buildPagedAsyncIterator(\n context,\n () => _listOptimizationJobsSend(context, options),\n _listOptimizationJobsDeserialize,\n [\"200\"],\n { itemName: \"data\", apiVersion: context.apiVersion },\n );\n}\n\nexport function _getOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsGetOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\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\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<AgentOptimizationJob> {\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 agentOptimizationJobDeserializer(result.body);\n}\n\n/** Get an optimization job by id. */\nexport async function getOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsGetOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<AgentOptimizationJob> {\n const result = await _getOptimizationJobSend(context, jobId, options);\n return _getOptimizationJobDeserialize(result);\n}\n\nexport function _createOptimizationJobSend(\n context: Client,\n job: AgentOptimizationJob,\n options: BetaAgentsCreateOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"AgentsOptimization=V2Preview\";\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs{?api-version}\",\n {\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\": foundryFeatures,\n ...(options?.operationId !== undefined ? { \"operation-id\": options?.operationId } : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: agentOptimizationJobSerializer(job),\n });\n}\n\nexport async function _createOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<AgentOptimizationJobResult> {\n const expectedStatuses = [\"201\", \"200\", \"202\"];\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 if (result?.body?.result === undefined) {\n throw createRestError(\n `Expected a result in the response at position \"result.body.result\"`,\n result,\n );\n }\n\n return agentOptimizationJobResultDeserializer(result.body.result);\n}\n\n/** Create an optimization job. Returns the queued job. Honours `Operation-Id` for idempotent retry. */\nexport function createOptimizationJob(\n context: Client,\n job: AgentOptimizationJob,\n options: BetaAgentsCreateOptimizationJobOptionalParams = { requestOptions: {} },\n): JobPoller<AgentOptimizationJobResult> {\n // CUSTOMIZATION: SDK-IMPROVEMENT: `getJobPoller` exposes the queued job id on the poller state.\n return getJobPoller(context, _createOptimizationJobDeserialize, [\"201\", \"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _createOptimizationJobSend(context, job, options),\n resourceLocationConfig: \"operation-location\",\n apiVersion: context.apiVersion ?? \"v1\",\n pollHeaders: {\n ...options?.requestOptions?.headers,\n \"foundry-features\": \"AgentsOptimization=V2Preview\",\n },\n });\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../src/api/beta/agents/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,gCAAgC,EAChC,sCAAsC,EACtC,0DAA0D,EAC1D,iBAAiB,EACjB,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAEnF,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAU3E,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,0BAA0B,CACxC,OAAe,EACf,KAAa,EACb,UAAyD,EAAE,cAAc,EAAE,EA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,CAAC,UAAU,IAAI,IAAI;KAC5C,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,eAAe;YACnC,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;QACD,IAAI,EAAE,8BAA8B,CAAC,IAAI,CAAC;KAC3C,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,MAA6B;IAC9E,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,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,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAe,EACf,IAA0B,EAC1B,UAAoD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE1E,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACnE,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAC;AAC9C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext as Client } from \"../../index.js\";\nimport type {\n AgentOptimizationJob,\n AgentOptimizationJobListItem,\n AgentOptimizationJobResult,\n _AgentsPagedResultAgentOptimizationJobListItem,\n Agent,\n GenerateAgentRequest,\n} from \"../../../models/models.js\";\nimport {\n apiErrorResponseDeserializer,\n agentOptimizationJobSerializer,\n agentOptimizationJobDeserializer,\n agentOptimizationJobResultDeserializer,\n _agentsPagedResultAgentOptimizationJobListItemDeserializer,\n agentDeserializer,\n generateAgentRequestSerializer,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../../static-helpers/pagingHelpers.js\";\nimport type { JobPoller } from \"../../../static-helpers/pollingHelpers.js\";\nimport { getJobPoller } from \"../../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../../static-helpers/urlTemplate.js\";\nimport type {\n BetaAgentsDeleteOptimizationJobOptionalParams,\n BetaAgentsCancelOptimizationJobOptionalParams,\n BetaAgentsListOptimizationJobsOptionalParams,\n BetaAgentsGetOptimizationJobOptionalParams,\n BetaAgentsCreateOptimizationJobOptionalParams,\n BetaAgentsCreateFromPromptOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _deleteOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsDeleteOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"AgentsOptimization=V2Preview\";\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\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 _deleteOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): 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/** Delete the job and its candidate artifacts. Cancels first if non-terminal. */\nexport async function deleteOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsDeleteOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _deleteOptimizationJobSend(context, jobId, options);\n return _deleteOptimizationJobDeserialize(result);\n}\n\nexport function _cancelOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsCancelOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}:cancel{?api-version}\",\n {\n jobId: jobId,\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\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _cancelOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<AgentOptimizationJob> {\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 agentOptimizationJobDeserializer(result.body);\n}\n\n/** Request cancellation of a running or queued job. Returns an error if the job is already in a terminal state. */\nexport async function cancelOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsCancelOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<AgentOptimizationJob> {\n const result = await _cancelOptimizationJobSend(context, jobId, options);\n return _cancelOptimizationJobDeserialize(result);\n}\n\nexport function _listOptimizationJobsSend(\n context: Client,\n options: BetaAgentsListOptimizationJobsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs{?limit,order,after,before,status,agent_name,api-version}\",\n {\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n status: options?.status,\n agent_name: options?.agentName,\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\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listOptimizationJobsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultAgentOptimizationJobListItem> {\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 _agentsPagedResultAgentOptimizationJobListItemDeserializer(result.body);\n}\n\n/** List optimization jobs. Supports cursor pagination and optional status / agent_name filters. */\nexport function listOptimizationJobs(\n context: Client,\n options: BetaAgentsListOptimizationJobsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<AgentOptimizationJobListItem> {\n return buildPagedAsyncIterator(\n context,\n () => _listOptimizationJobsSend(context, options),\n _listOptimizationJobsDeserialize,\n [\"200\"],\n { itemName: \"data\", apiVersion: context.apiVersion },\n );\n}\n\nexport function _getOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsGetOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\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\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<AgentOptimizationJob> {\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 agentOptimizationJobDeserializer(result.body);\n}\n\n/** Get an optimization job by id. */\nexport async function getOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsGetOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<AgentOptimizationJob> {\n const result = await _getOptimizationJobSend(context, jobId, options);\n return _getOptimizationJobDeserialize(result);\n}\n\nexport function _createOptimizationJobSend(\n context: Client,\n job: AgentOptimizationJob,\n options: BetaAgentsCreateOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"AgentsOptimization=V2Preview\";\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs{?api-version}\",\n {\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\": foundryFeatures,\n ...(options?.operationId !== undefined ? { \"operation-id\": options?.operationId } : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: agentOptimizationJobSerializer(job),\n });\n}\n\nexport async function _createOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<AgentOptimizationJobResult> {\n const expectedStatuses = [\"201\", \"200\", \"202\"];\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 if (result?.body?.result === undefined) {\n throw createRestError(\n `Expected a result in the response at position \"result.body.result\"`,\n result,\n );\n }\n\n return agentOptimizationJobResultDeserializer(result.body.result);\n}\n\n/** Create an optimization job. Returns the queued job. Honours `Operation-Id` for idempotent retry. */\nexport function createOptimizationJob(\n context: Client,\n job: AgentOptimizationJob,\n options: BetaAgentsCreateOptimizationJobOptionalParams = { requestOptions: {} },\n): JobPoller<AgentOptimizationJobResult> {\n // CUSTOMIZATION: SDK-IMPROVEMENT: `getJobPoller` exposes the queued job id on the poller state.\n return getJobPoller(context, _createOptimizationJobDeserialize, [\"201\", \"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _createOptimizationJobSend(context, job, options),\n resourceLocationConfig: \"operation-location\",\n apiVersion: context.apiVersion ?? \"v1\",\n pollHeaders: {\n ...options?.requestOptions?.headers,\n \"foundry-features\": \"AgentsOptimization=V2Preview\",\n },\n });\n}\n\nexport function _createFromPromptSend(\n context: Client,\n body: GenerateAgentRequest,\n options: BetaAgentsCreateFromPromptOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"VoiceAgents=V1Preview\";\n\n const path = expandUrlTemplate(\n \"/agents:generate{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"v1\",\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\": foundryFeatures,\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: generateAgentRequestSerializer(body),\n });\n}\n\nexport async function _createFromPromptDeserialize(result: PathUncheckedResponse): Promise<Agent> {\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 agentDeserializer(result.body);\n}\n\n/**\n * Generates and creates an agent from kind-specific high-level inputs.\n * The generated definition remains fully editable through the standard agent versioning operations.\n */\nexport async function createFromPrompt(\n context: Client,\n body: GenerateAgentRequest,\n options: BetaAgentsCreateFromPromptOptionalParams = { requestOptions: {} },\n): Promise<Agent> {\n const result = await _createFromPromptSend(context, body, options);\n return _createFromPromptDeserialize(result);\n}\n"]}
@@ -55,4 +55,7 @@ export interface BetaAgentsCreateOptimizationJobOptionalParams extends Operation
55
55
  /** Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. */
56
56
  operationId?: string;
57
57
  }
58
+ /** Optional parameters. */
59
+ export interface BetaAgentsCreateFromPromptOptionalParams extends OperationOptions {
60
+ }
58
61
  //# sourceMappingURL=options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/agents/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;IACrF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAED,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;IACrF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAED,2BAA2B;AAC3B,MAAM,WAAW,4CAA6C,SAAQ,gBAAgB;IACpF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,2BAA2B;AAC3B,MAAM,WAAW,0CAA2C,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C7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAED,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;IACrF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD,kHAAkH;IAClH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,2BAA2B;AAC3B,MAAM,WAAW,wCAAyC,SAAQ,gBAAgB;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../src/api/beta/agents/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { JobStatus, PageOrder } from \"../../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface BetaAgentsDeleteOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsCancelOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsListOptimizationJobsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n /** Filter to jobs in this lifecycle state. */\n status?: JobStatus;\n /** Filter to jobs targeting this agent name. */\n agentName?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsGetOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsCreateOptimizationJobOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n /** Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. */\n operationId?: string;\n}\n"]}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../src/api/beta/agents/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { JobStatus, PageOrder } from \"../../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface BetaAgentsDeleteOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsCancelOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsListOptimizationJobsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\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?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n /** Filter to jobs in this lifecycle state. */\n status?: JobStatus;\n /** Filter to jobs targeting this agent name. */\n agentName?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsGetOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsCreateOptimizationJobOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n /** Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. */\n operationId?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsCreateFromPromptOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,3 @@
1
+ export { downloadAudio, getAudio, downloadGeneratedAudioItem, getGeneratedAudioItem, downloadAudioItem, getAudioItem, getItem, listItems, listResponseItems, getResponse, listResponses, $delete, get, list, } from "./operations.js";
2
+ export type { BetaVoiceAgentsConversationsDownloadAudioOptionalParams, BetaVoiceAgentsConversationsGetAudioOptionalParams, BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams, BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams, BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams, BetaVoiceAgentsConversationsGetAudioItemOptionalParams, BetaVoiceAgentsConversationsGetItemOptionalParams, BetaVoiceAgentsConversationsListItemsOptionalParams, BetaVoiceAgentsConversationsListResponseItemsOptionalParams, BetaVoiceAgentsConversationsGetResponseOptionalParams, BetaVoiceAgentsConversationsListResponsesOptionalParams, BetaVoiceAgentsConversationsDeleteOptionalParams, BetaVoiceAgentsConversationsGetOptionalParams, BetaVoiceAgentsConversationsListOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/beta/voiceAgents/conversations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EACb,QAAQ,EACR,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,EACP,GAAG,EACH,IAAI,GACL,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,uDAAuD,EACvD,kDAAkD,EAClD,oEAAoE,EACpE,+DAA+D,EAC/D,2DAA2D,EAC3D,sDAAsD,EACtD,iDAAiD,EACjD,mDAAmD,EACnD,2DAA2D,EAC3D,qDAAqD,EACrD,uDAAuD,EACvD,gDAAgD,EAChD,6CAA6C,EAC7C,8CAA8C,GAC/C,MAAM,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { downloadAudio, getAudio, downloadGeneratedAudioItem, getGeneratedAudioItem, downloadAudioItem, getAudioItem, getItem, listItems, listResponseItems, getResponse, listResponses, $delete, get, list, } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/beta/voiceAgents/conversations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,EACP,GAAG,EACH,IAAI,GACL,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n downloadAudio,\n getAudio,\n downloadGeneratedAudioItem,\n getGeneratedAudioItem,\n downloadAudioItem,\n getAudioItem,\n getItem,\n listItems,\n listResponseItems,\n getResponse,\n listResponses,\n $delete,\n get,\n list,\n} from \"./operations.js\";\nexport type {\n BetaVoiceAgentsConversationsDownloadAudioOptionalParams,\n BetaVoiceAgentsConversationsGetAudioOptionalParams,\n BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams,\n BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams,\n BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams,\n BetaVoiceAgentsConversationsGetAudioItemOptionalParams,\n BetaVoiceAgentsConversationsGetItemOptionalParams,\n BetaVoiceAgentsConversationsListItemsOptionalParams,\n BetaVoiceAgentsConversationsListResponseItemsOptionalParams,\n BetaVoiceAgentsConversationsGetResponseOptionalParams,\n BetaVoiceAgentsConversationsListResponsesOptionalParams,\n BetaVoiceAgentsConversationsDeleteOptionalParams,\n BetaVoiceAgentsConversationsGetOptionalParams,\n BetaVoiceAgentsConversationsListOptionalParams,\n} from \"./options.js\";\n"]}
@@ -0,0 +1,140 @@
1
+ import type { AIProjectContext as Client } from "../../../index.js";
2
+ import type { _AgentsPagedResultVoiceConversation, VoiceConversation, _AgentsPagedResultVoiceResponse, VoiceResponse, RealtimeConversationItemUnion, _AgentsPagedResultRealtimeConversationItem, VoiceAudioItem, VoiceGeneratedAudioItem, VoiceRecording, BetaVoiceAgentsConversationsDownloadAudioResponse, BetaVoiceAgentsConversationsDownloadGeneratedAudioItemResponse, BetaVoiceAgentsConversationsDownloadAudioItemResponse } from "../../../../models/models.js";
3
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
4
+ import type { BetaVoiceAgentsConversationsDownloadAudioOptionalParams, BetaVoiceAgentsConversationsGetAudioOptionalParams, BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams, BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams, BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams, BetaVoiceAgentsConversationsGetAudioItemOptionalParams, BetaVoiceAgentsConversationsGetItemOptionalParams, BetaVoiceAgentsConversationsListItemsOptionalParams, BetaVoiceAgentsConversationsListResponseItemsOptionalParams, BetaVoiceAgentsConversationsGetResponseOptionalParams, BetaVoiceAgentsConversationsListResponsesOptionalParams, BetaVoiceAgentsConversationsDeleteOptionalParams, BetaVoiceAgentsConversationsGetOptionalParams, BetaVoiceAgentsConversationsListOptionalParams } from "./options.js";
5
+ import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ export declare function _downloadAudioSend(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsDownloadAudioOptionalParams): StreamableMethod;
7
+ export declare function _downloadAudioDeserialize(result: PathUncheckedResponse & BetaVoiceAgentsConversationsDownloadAudioResponse): Promise<BetaVoiceAgentsConversationsDownloadAudioResponse>;
8
+ /**
9
+ * Streams the whole-call merged stereo recording as a WAV (`audio/wav`) byte stream through the service
10
+ * (no SAS URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS)
11
+ * recordings the bytes are not proxied — the caller must download directly from customer storage using the
12
+ * `blob_uri` returned by the metadata route — so this route returns `409 Conflict` for BYOS recordings.
13
+ * While the conversation is `in_progress`, this route returns retriable `409 Conflict` with
14
+ * `error.code = recording_not_ready` and a `Retry-After` header when retry guidance is available. When the
15
+ * conversation is `failed`, it returns terminal `409 Conflict` with `error.code = recording_unavailable`.
16
+ * For a `completed` conversation, content is available subject to the existing BYOS behavior. A conversation
17
+ * without persisted audio (`store = false`) returns `404`.
18
+ */
19
+ export declare function downloadAudio(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsDownloadAudioOptionalParams): Promise<BetaVoiceAgentsConversationsDownloadAudioResponse>;
20
+ export declare function _getAudioSend(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsGetAudioOptionalParams): StreamableMethod;
21
+ export declare function _getAudioDeserialize(result: PathUncheckedResponse): Promise<VoiceRecording>;
22
+ /**
23
+ * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio
24
+ * on the right). The common metadata (format, sample rate, channels, channel layout, duration) is returned
25
+ * for both Foundry-managed and bring-your-own-storage (BYOS) recordings; for BYOS the response additionally
26
+ * includes `blob_uri`, the URI of the recording in the customer's own storage (no SAS) that the customer downloads
27
+ * with their own credentials. The recording is built once from the per-turn segments after persistence
28
+ * finalization succeeds. While the conversation is `in_progress`, this route returns retriable `409 Conflict`
29
+ * with `error.code = recording_not_ready` and a `Retry-After` header when retry guidance is available. When the
30
+ * conversation is `failed`, it returns terminal `409 Conflict` with `error.code = recording_unavailable`.
31
+ * For a `completed` conversation, metadata is available subject to the existing BYOS behavior. Requires the
32
+ * conversation to have persisted audio (`store = true`); otherwise returns `404`.
33
+ */
34
+ export declare function getAudio(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsGetAudioOptionalParams): Promise<VoiceRecording>;
35
+ export declare function _downloadGeneratedAudioItemSend(context: Client, agentName: string, conversationId: string, itemId: string, options?: BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams): StreamableMethod;
36
+ export declare function _downloadGeneratedAudioItemDeserialize(result: PathUncheckedResponse & BetaVoiceAgentsConversationsDownloadGeneratedAudioItemResponse): Promise<BetaVoiceAgentsConversationsDownloadGeneratedAudioItemResponse>;
37
+ /**
38
+ * Streams a conversation item's generated audio as a WAV (`audio/wav`) byte stream through the service. This
39
+ * subordinate artifact exists only when playback was interrupted and the service rendered more audio than the
40
+ * listener heard, including when the response ends as cancelled. This route serves Foundry-managed storage only.
41
+ * For bring-your-own-storage (BYOS) recordings the bytes are not proxied, so this route returns `409 Conflict`.
42
+ * Returns `404` when the conversation or item was not persisted, or when no generated audio exists beyond the
43
+ * heard segment.
44
+ */
45
+ export declare function downloadGeneratedAudioItem(context: Client, agentName: string, conversationId: string, itemId: string, options?: BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams): Promise<BetaVoiceAgentsConversationsDownloadGeneratedAudioItemResponse>;
46
+ export declare function _getGeneratedAudioItemSend(context: Client, agentName: string, conversationId: string, itemId: string, options?: BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams): StreamableMethod;
47
+ export declare function _getGeneratedAudioItemDeserialize(result: PathUncheckedResponse): Promise<VoiceGeneratedAudioItem>;
48
+ /**
49
+ * Returns metadata for a conversation item's generated audio. This subordinate artifact is separate from the
50
+ * canonical heard-audio segment and exists only when playback was interrupted and the service rendered more audio
51
+ * than the listener heard, including when the response ends as cancelled. Returns `404` when the conversation or
52
+ * item was not persisted, or when no generated audio exists beyond the heard segment.
53
+ */
54
+ export declare function getGeneratedAudioItem(context: Client, agentName: string, conversationId: string, itemId: string, options?: BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams): Promise<VoiceGeneratedAudioItem>;
55
+ export declare function _downloadAudioItemSend(context: Client, agentName: string, conversationId: string, itemId: string, options?: BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams): StreamableMethod;
56
+ export declare function _downloadAudioItemDeserialize(result: PathUncheckedResponse & BetaVoiceAgentsConversationsDownloadAudioItemResponse): Promise<BetaVoiceAgentsConversationsDownloadAudioItemResponse>;
57
+ /**
58
+ * Streams a single conversation item's audio as a WAV (`audio/wav`) byte stream through the service (no SAS
59
+ * URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) recordings the
60
+ * bytes are not proxied — the caller must download directly from customer storage using the `blob_uri`
61
+ * returned by the item's `/audio` metadata route — so this route returns `409 Conflict` for BYOS recordings.
62
+ * Returns `404` when the conversation, item, or its audio was not persisted (`store = false`).
63
+ */
64
+ export declare function downloadAudioItem(context: Client, agentName: string, conversationId: string, itemId: string, options?: BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams): Promise<BetaVoiceAgentsConversationsDownloadAudioItemResponse>;
65
+ export declare function _getAudioItemSend(context: Client, agentName: string, conversationId: string, itemId: string, options?: BetaVoiceAgentsConversationsGetAudioItemOptionalParams): StreamableMethod;
66
+ export declare function _getAudioItemDeserialize(result: PathUncheckedResponse): Promise<VoiceAudioItem>;
67
+ /**
68
+ * Returns metadata for a single conversation item's audio segment, including the common playback facts
69
+ * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and
70
+ * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI
71
+ * of the recording in the customer's own storage (no SAS) that the customer downloads with their own credentials.
72
+ * Requires the conversation to have persisted audio (`store = true`); returns `404` when the conversation,
73
+ * item, or its audio was not persisted.
74
+ */
75
+ export declare function getAudioItem(context: Client, agentName: string, conversationId: string, itemId: string, options?: BetaVoiceAgentsConversationsGetAudioItemOptionalParams): Promise<VoiceAudioItem>;
76
+ export declare function _getItemSend(context: Client, agentName: string, conversationId: string, itemId: string, options?: BetaVoiceAgentsConversationsGetItemOptionalParams): StreamableMethod;
77
+ export declare function _getItemDeserialize(result: PathUncheckedResponse): Promise<RealtimeConversationItemUnion>;
78
+ /**
79
+ * Retrieves a single item from the specified conversation by its id, including its transcript. An
80
+ * `input_audio`/`output_audio` content part indicates that audio is available for the item; the canonical per-item
81
+ * audio metadata is the `/items/{item_id}/audio` resource, and the bytes are streamed by
82
+ * `/items/{item_id}/audio/content`. Returns `404` when the conversation or item was not persisted
83
+ * (`store = false`).
84
+ */
85
+ export declare function getItem(context: Client, agentName: string, conversationId: string, itemId: string, options?: BetaVoiceAgentsConversationsGetItemOptionalParams): Promise<RealtimeConversationItemUnion>;
86
+ export declare function _listItemsSend(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsListItemsOptionalParams): StreamableMethod;
87
+ export declare function _listItemsDeserialize(result: PathUncheckedResponse): Promise<_AgentsPagedResultRealtimeConversationItem>;
88
+ /**
89
+ * Returns a paged collection of items — the complete ordered conversation history, including user input,
90
+ * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the
91
+ * conversation was not persisted (`store = false`).
92
+ */
93
+ export declare function listItems(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsListItemsOptionalParams): PagedAsyncIterableIterator<RealtimeConversationItemUnion>;
94
+ export declare function _listResponseItemsSend(context: Client, agentName: string, conversationId: string, responseId: string, options?: BetaVoiceAgentsConversationsListResponseItemsOptionalParams): StreamableMethod;
95
+ export declare function _listResponseItemsDeserialize(result: PathUncheckedResponse): Promise<_AgentsPagedResultRealtimeConversationItem>;
96
+ /**
97
+ * Returns a paged collection of the output items produced by a specific response (the response's output
98
+ * projection). For the complete ordered conversation history — including user input and client-created
99
+ * tool outputs — use the conversation items route instead. Returns `404` when the conversation or
100
+ * response was not persisted (`store = false`).
101
+ */
102
+ export declare function listResponseItems(context: Client, agentName: string, conversationId: string, responseId: string, options?: BetaVoiceAgentsConversationsListResponseItemsOptionalParams): PagedAsyncIterableIterator<RealtimeConversationItemUnion>;
103
+ export declare function _getResponseSend(context: Client, agentName: string, conversationId: string, responseId: string, options?: BetaVoiceAgentsConversationsGetResponseOptionalParams): StreamableMethod;
104
+ export declare function _getResponseDeserialize(result: PathUncheckedResponse): Promise<VoiceResponse>;
105
+ /**
106
+ * Retrieves a single response from the specified conversation by its id, including its `output` items,
107
+ * `usage`, and status. Returns `404` when the conversation or response was not persisted (`store = false`).
108
+ */
109
+ export declare function getResponse(context: Client, agentName: string, conversationId: string, responseId: string, options?: BetaVoiceAgentsConversationsGetResponseOptionalParams): Promise<VoiceResponse>;
110
+ export declare function _listResponsesSend(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsListResponsesOptionalParams): StreamableMethod;
111
+ export declare function _listResponsesDeserialize(result: PathUncheckedResponse): Promise<_AgentsPagedResultVoiceResponse>;
112
+ /**
113
+ * Returns a paged collection of the responses (model inference turns) recorded for the specified
114
+ * conversation. The per-response `output` projection may be omitted here; use the response-items route
115
+ * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`).
116
+ */
117
+ export declare function listResponses(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsListResponsesOptionalParams): PagedAsyncIterableIterator<VoiceResponse>;
118
+ export declare function _$deleteSend(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsDeleteOptionalParams): StreamableMethod;
119
+ export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
120
+ /**
121
+ * Deletes a conversation and all of its stored data — responses, items, and any audio (cascade). This is
122
+ * the customer's explicit data-deletion control for voice conversations.
123
+ */
124
+ export declare function $delete(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsDeleteOptionalParams): Promise<void>;
125
+ export declare function _getSend(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsGetOptionalParams): StreamableMethod;
126
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<VoiceConversation>;
127
+ /**
128
+ * Retrieves a single conversation recorded for the specified voice agent endpoint by its id.
129
+ * Returns `404` when the conversation was not persisted (`store = false`) or does not exist.
130
+ */
131
+ export declare function get(context: Client, agentName: string, conversationId: string, options?: BetaVoiceAgentsConversationsGetOptionalParams): Promise<VoiceConversation>;
132
+ export declare function _listSend(context: Client, agentName: string, options?: BetaVoiceAgentsConversationsListOptionalParams): StreamableMethod;
133
+ export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_AgentsPagedResultVoiceConversation>;
134
+ /**
135
+ * Returns the conversations persisted for the specified voice agent endpoint.
136
+ * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the
137
+ * agent definition or enabled by the WebSocket session override.
138
+ */
139
+ export declare function list(context: Client, agentName: string, options?: BetaVoiceAgentsConversationsListOptionalParams): PagedAsyncIterableIterator<VoiceConversation>;
140
+ //# sourceMappingURL=operations.d.ts.map