@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
package/README.md CHANGED
@@ -62,6 +62,7 @@ The client library uses version `v1` of the Microsoft Foundry [data plane REST A
62
62
  - [Examples](#examples)
63
63
  - [Performing Responses operations using OpenAI client](#performing-responses-operations-using-openai-client)
64
64
  - [Performing Agent operations](#performing-agent-operations)
65
+ - [Voice Agent operations (preview)](#voice-agent-operations-preview)
65
66
  - [Using Agent tools](#using-agent-tools)
66
67
  - [Built-in Tools](#built-in-tools)
67
68
  - [Connection-Based Tools](#connection-based-tools)
@@ -144,7 +145,7 @@ for await (const rule of project.evaluationRules.list()) {
144
145
  }
145
146
  ```
146
147
 
147
- Preview operation groups include `.beta.agents`, `.beta.agentInsightMonitors`, `.beta.skills`, `.beta.memoryStores`, `.beta.routines`, `.beta.models`, `.beta.evaluationTaxonomies`, `.beta.evaluators`, `.beta.insights`, `.beta.schedules`, and `.beta.redTeams`.
148
+ Preview operation groups include `.beta.agents`, `.beta.agentInsightMonitors`, `.beta.voiceAgents`, `.beta.skills`, `.beta.memoryStores`, `.beta.routines`, `.beta.models`, `.beta.evaluationTaxonomies`, `.beta.evaluators`, `.beta.insights`, `.beta.schedules`, and `.beta.redTeams`.
148
149
 
149
150
  Use `.beta.agentInsightMonitors` to list the monitors that analyze your agents:
150
151
 
@@ -234,6 +235,66 @@ await project.agents.deleteVersion(agent.name, agent.version);
234
235
  console.log("Agent deleted");
235
236
  ```
236
237
 
238
+ ### Voice Agent operations (preview)
239
+
240
+ Voice Agents use the unified `project.agents` management surface and a bidirectional WebSocket
241
+ session exposed by `project.beta.voiceAgents.realtime`. The example below generates a Voice Agent, sends text, and
242
+ streams its response:
243
+
244
+ ```ts snippet:voiceAgent
245
+ const voiceAgentName = `voice-agent-${Date.now()}`;
246
+ const voiceAgent = await project.beta.agents.createFromPrompt({
247
+ kind: "voice",
248
+ name: voiceAgentName,
249
+ });
250
+ try {
251
+ const connection = await project.beta.voiceAgents.realtime.connect(voiceAgent.name);
252
+ try {
253
+ await connection.sendText("Hello. Please introduce yourself briefly.");
254
+ for await (const event of connection) {
255
+ // Voice agents speak their reply, so the text form of it streams as an audio transcript
256
+ // rather than as `response.output_text.delta`.
257
+ if (
258
+ event.type === "response.output_text.delta" ||
259
+ event.type === "response.output_audio_transcript.delta"
260
+ ) {
261
+ process.stdout.write(event.delta);
262
+ } else if (event.type === "unknown") {
263
+ // event.rawEvent preserves all wire fields; validate them before using them.
264
+ console.log(`Unrecognized server event: ${event.eventType}`);
265
+ } else if (event.type === "response.done") {
266
+ await connection.close();
267
+ }
268
+ }
269
+ } finally {
270
+ await connection.dispose();
271
+ }
272
+ } finally {
273
+ await project.agents.delete(voiceAgent.name, {
274
+ requestOptions: { headers: { "foundry-features": "VoiceAgents=V1Preview" } },
275
+ });
276
+ }
277
+ ```
278
+
279
+ The connection yields `VoiceAgentRealtimeEvent`: a known `VoiceAgentServerEvent` or a
280
+ `VoiceAgentUnknownEvent` with `type: "unknown"`. For unknown events, `eventType` retains the
281
+ original wire discriminator and `rawEvent` retains the complete parsed JSON payload, including
282
+ its original `type`. No known-event field validation or normalization is applied to that payload;
283
+ validate raw fields before using them and avoid logging sensitive payloads. Unknown events do not
284
+ disconnect the session, so subsequent events and sends continue normally. Known `event.type`
285
+ branches still narrow to their existing generated types. A handler accepting only
286
+ `VoiceAgentServerEvent` can be called after excluding `event.type === "unknown"`.
287
+
288
+ Malformed JSON, missing or invalid discriminators, and malformed known events still fail the
289
+ iteration with `VoiceAgentProtocolError`. Service `error` events remain typed events for the
290
+ caller to handle; this fallback does not change which outbound events `sendEvent()` supports.
291
+
292
+ Use `project.beta.voiceAgents.conversations` to inspect conversations for Voice Agents configured
293
+ with `store: true`. Pass `store` on `connect()` to override the persisted agent's setting for a
294
+ single session. If the target agent is disabled, the WebSocket handshake fails with `409 Conflict`
295
+ and `error.code = agent_disabled`. See the package samples for generated-agent lifecycle, local
296
+ function tools, and PCM audio streaming.
297
+
237
298
  ### Using Agent tools
238
299
 
239
300
  Agents can be enhanced with specialized tools for various capabilities. Tools are organized by their connection requirements:
@@ -75,6 +75,7 @@ export declare class AIProjectClient {
75
75
  * - skills
76
76
  * - routines
77
77
  * - models
78
+ * - realtime (voice-agent WebSocket connections)
78
79
  */
79
80
  readonly beta: BetaOperations;
80
81
  /** The operation groups for telemetry */
@@ -1 +1 @@
1
- {"version":3,"file":"aiProjectClient.d.ts","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAoB,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAEtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,g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C;IAChD,OAAO,CAAC,cAAc,CAAwB;gBAG5C,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC;IAuC7C,yCAAyC;IACzC,SAAgB,SAAS,EAAE,mBAAmB,CAAC;IAC/C,uCAAuC;IACvC,SAAgB,OAAO,EAAE,iBAAiB,CAAC;IAC3C,2CAA2C;IAC3C,SAAgB,WAAW,EAAE,qBAAqB,CAAC;IACnD,wCAAwC;IACxC,SAAgB,QAAQ,EAAE,kBAAkB,CAAC;IAC7C,2CAA2C;IAC3C,SAAgB,WAAW,EAAE,qBAAqB,CAAC;IACnD,+CAA+C;IAC/C,SAAgB,eAAe,EAAE,yBAAyB,CAAC;IAC3D,sCAAsC;IACtC,SAAgB,MAAM,EAAE,gBAAgB,CAAC;IACzC;;;;;;;;;;;;OAYG;IACH,SAAgB,IAAI,EAAE,cAAc,CAAC;IACrC,yCAAyC;IACzC,SAAgB,SAAS,EAAE,mBAAmB,CAAC;IAC/C;;;OAGG;IAEI,eAAe,CAAC,kBAAkB,CAAC,EAAE,iCAAiC,GAAG,MAAM;IA+DtF;;;OAGG;IACH,IAAW,QAAQ,IAAI,MAAM,CAE5B;CACF"}
@@ -19,6 +19,20 @@ import { getOpenAIDefaultHeaders } from "./util.js";
19
19
  import { KnownApiVersions } from "./models/models.js";
20
20
  import { getTracingFetch } from "./tracing/tracingFetch.js";
21
21
  import { resolveTracingConfig } from "./tracing/configuration.js";
22
+ /**
23
+ * Resolves the effective options for the realtime voice-agent client: explicit `realtimeOptions`
24
+ * values win, otherwise each falls back to its corresponding top-level client option so realtime
25
+ * connections stay consistent with the rest of the client by default.
26
+ */
27
+ function resolveRealtimeOptions(options, userAgentPrefix) {
28
+ const { realtimeOptions } = options;
29
+ return {
30
+ ...realtimeOptions,
31
+ apiVersion: realtimeOptions?.apiVersion ?? options.apiVersion,
32
+ credentialScopes: realtimeOptions?.credentialScopes ?? options.credentials?.scopes,
33
+ userAgentPrefix: realtimeOptions?.userAgentPrefix ?? userAgentPrefix,
34
+ };
35
+ }
22
36
  /**
23
37
  * The main client for the AIProjectClient service. It provides access to the various operations available in the service.
24
38
  * @class AIProjectClient
@@ -84,7 +98,7 @@ export class AIProjectClient {
84
98
  this.connections = _getConnectionsOperations(this._azureScopeClient);
85
99
  this.evaluationRules = _getEvaluationRulesOperations(this._azureScopeClient);
86
100
  this.agents = _getAgentsOperations(this._azureScopeClient, this._tracingConfig);
87
- this.beta = _getBetaOperations(this._cognitiveScopeClient);
101
+ this.beta = _getBetaOperations(this._cognitiveScopeClient, credential, options.endpoint ?? endpoint, resolveRealtimeOptions(options, prefixFromOptions));
88
102
  this.telemetry = _getTelemetryOperations(this.connections);
89
103
  }
90
104
  /** The operation groups for toolboxes */
@@ -112,6 +126,7 @@ export class AIProjectClient {
112
126
  * - skills
113
127
  * - routines
114
128
  * - models
129
+ * - realtime (voice-agent WebSocket connections)
115
130
  */
116
131
  beta;
117
132
  /** The operation groups for telemetry */
@@ -1 +1 @@
1
- {"version":3,"file":"aiProjectClient.js","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,iCAAiC;AAEjC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,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,gBAAgB,EAAE,eAAe,CACjD,CAAC;QAEF,2FAA2F;QAC3F,MAAM,YAAY,GAAG;YACnB,GAAG,CAAC,IAAI,EAAE,YAAY,IAAI,EAAE,CAAC;SAC9B,CAAC;QACF,IAAI,WAAW,EAAE,SAAS,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC;YAC3D,YAAY,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,gBAAgB,CAAC,EAAE,CAAC;QAChF,CAAC;QAED,2GAA2G;QAC3G,MAAM,EACJ,cAAc,EAAE,eAAe,EAC/B,OAAO,EAAE,eAAe,EACxB,YAAY,EAAE,aAAa,EAC3B,GAAG,QAAQ,EACZ,GAAG,IAAI,IAAI,EAAE,CAAC;QACf,MAAM,aAAa,GAA4C;YAC7D,GAAG,QAAQ;YACX,MAAM,EAAE,sBAAsB,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC;YACvD,OAAO;YACP,uBAAuB,EAAE,IAAI;YAC7B,cAAc,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;YAC7D,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;YAC7E,KAAK,EAAE,WAAW;SACnB,CAAC;QAEF,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,aAAa,CAAC,CAAC;QAC/C,OAAO,qBAAqB,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IAClF,CAAC;IACD;;;OAGG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/* eslint-disable tsdoc/syntax */\n\nimport OpenAI from \"openai\";\nimport { getBearerTokenProvider } from \"@azure/identity\";\nimport type { AIProjectContext, AIProjectClientOptionalParams } from \"./api/index.js\";\nimport { createAIProject } from \"./api/index.js\";\nimport type { AgentsOperations } from \"./classic/agents/index.js\";\nimport { _getAgentsOperations } from \"./classic/agents/index.js\";\nimport type { ToolboxesOperations } from \"./classic/toolboxes/index.js\";\nimport { _getToolboxesOperations } from \"./classic/toolboxes/index.js\";\nimport type { BetaOperations } from \"./classic/beta/index.js\";\nimport { _getBetaOperations } from \"./classic/beta/index.js\";\nimport type { ConnectionsOperations } from \"./classic/connections/index.js\";\nimport { _getConnectionsOperations } from \"./classic/connections/index.js\";\nimport type { DatasetsOperations } from \"./classic/datasets/index.js\";\nimport { _getDatasetsOperations } from \"./classic/datasets/index.js\";\nimport type { DeploymentsOperations } from \"./classic/deployments/index.js\";\nimport { _getDeploymentsOperations } from \"./classic/deployments/index.js\";\nimport type { EvaluationRulesOperations } from \"./classic/evaluationRules/index.js\";\nimport { _getEvaluationRulesOperations } from \"./classic/evaluationRules/index.js\";\nimport type { IndexesOperations } from \"./classic/indexes/index.js\";\nimport { _getIndexesOperations } from \"./classic/indexes/index.js\";\nimport type { TelemetryOperations } from \"./classic/telemetry/index.js\";\nimport { _getTelemetryOperations } from \"./classic/telemetry/index.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { overwriteOpenAIClient } from \"./overwriteOpenAIClient.js\";\nimport { getCustomFetch } from \"#platform/getCustomFetch\";\nimport { getOpenAIDefaultHeaders } from \"./util.js\";\nimport type { OpenAIClientOptionsWithAzureAgent } from \"./azureAgent.interface.js\";\nimport { KnownApiVersions } from \"./models/models.js\";\nimport { getTracingFetch } from \"./tracing/tracingFetch.js\";\nimport { resolveTracingConfig } from \"./tracing/configuration.js\";\nimport type { ResolvedTracingConfig } from \"./tracing/configuration.js\";\n\nexport type { AIProjectClientOptionalParams } from \"./api/aiProjectContext.js\";\n\n/**\n * The main client for the AIProjectClient service. It provides access to the various operations available in the service.\n * @class AIProjectClient\n * @extends {AIProjectContext}\n * @description The main client for the AIProjectClient\n * @constructor\n * @param {string} endpoint - The endpoint to use\n * @param {TokenCredential} credential - The credential to use\n * @param {AIProjectClientOptionalParams} [options] - Optional parameters for the client.\n * @property {DeploymentsOperations} deployments - The operation groups for deployments\n * @property {IndexesOperations} indexes - The operation groups for indexes\n * @property {DatasetsOperations} datasets - The operation groups for datasets\n * @property {ConnectionsOperations} connections - The operation groups for connections\n * @property {AgentsOperations} agents - The operation groups for agents\n * @property {ToolboxesOperations} toolboxes - The operation groups for toolboxes\n * @property {BetaOperations} beta - The operation groups for beta include beta features:\n * - Memory Stores\n * - Evaluators\n * - Evaluation Taxonomies\n * - Insights\n * - Schedules\n * - Red Teams\n * - agents\n * - skills\n * - routines\n * - models\n * @property {TelemetryOperations} telemetry - The operation groups for telemetry\n * @property {getEndpointUrl} getEndpointUrl - gets the endpoint of the client\n * @property {getOpenAIClient} getOpenAIClient - gets the OpenAI client with optional OpenAI client options\n */\nexport class AIProjectClient {\n private _cognitiveScopeClient: AIProjectContext;\n private _azureScopeClient: AIProjectContext;\n private _endpoint: string;\n private _credential: TokenCredential;\n private _options: AIProjectClientOptionalParams;\n private _tracingConfig: ResolvedTracingConfig;\n\n constructor(\n endpoint: string,\n credential: TokenCredential,\n options: AIProjectClientOptionalParams = {},\n ) {\n this._endpoint = endpoint;\n this._credential = credential;\n this._options = options;\n this._tracingConfig = resolveTracingConfig(options.tracingOptions);\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._cognitiveScopeClient = createAIProject(endpoint, this._credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n credentials: {\n ...options.credentials,\n scopes: [\"https://ai.azure.com/.default\"],\n },\n });\n this._azureScopeClient = createAIProject(endpoint, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n\n this.toolboxes = _getToolboxesOperations(this._cognitiveScopeClient);\n this.indexes = _getIndexesOperations(this._azureScopeClient);\n this.deployments = _getDeploymentsOperations(this._azureScopeClient);\n this.datasets = _getDatasetsOperations(this._azureScopeClient, this._options);\n this.connections = _getConnectionsOperations(this._azureScopeClient);\n this.evaluationRules = _getEvaluationRulesOperations(this._azureScopeClient);\n this.agents = _getAgentsOperations(this._azureScopeClient, this._tracingConfig);\n this.beta = _getBetaOperations(this._cognitiveScopeClient);\n this.telemetry = _getTelemetryOperations(this.connections);\n }\n\n /** The operation groups for toolboxes */\n public readonly toolboxes: ToolboxesOperations;\n /** The operation groups for indexes */\n public readonly indexes: IndexesOperations;\n /** The operation groups for deployments */\n public readonly deployments: DeploymentsOperations;\n /** The operation groups for datasets */\n public readonly datasets: DatasetsOperations;\n /** The operation groups for connections */\n public readonly connections: ConnectionsOperations;\n /** The operation groups for evaluationRules */\n public readonly evaluationRules: EvaluationRulesOperations;\n /** The operation groups for agents */\n public readonly agents: AgentsOperations;\n /** The operation groups for beta include beta features:\n * - Memory Stores\n * - Evaluators\n * - Evaluation Taxonomies\n * - Insights\n * - Schedules\n * - Red Teams\n * - agents\n * - skills\n * - routines\n * - models\n */\n public readonly beta: BetaOperations;\n /** The operation groups for telemetry */\n public readonly telemetry: TelemetryOperations;\n /**\n * gets the OpenAI client\n * @returns the OpenAI client\n */\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n public getOpenAIClient(optsWithAzureAgent?: OpenAIClientOptionsWithAzureAgent): OpenAI {\n const scope = \"https://ai.azure.com/.default\";\n const { azureConfig, ...opts } = optsWithAzureAgent || {};\n let customFetch: NonNullable<ConstructorParameters<typeof OpenAI>[0]>[\"fetch\"];\n\n if (\n this._options.additionalPolicies?.find((policy) => policy.policy.name === \"recording policy\")\n ) {\n customFetch = getCustomFetch(this._azureScopeClient.pipeline, this._options.httpClient);\n }\n\n // Wrap fetch with tracing to inject traceparent/tracestate headers\n customFetch = getTracingFetch(customFetch, this._tracingConfig);\n\n let baseURL: string;\n if (opts?.baseURL) {\n baseURL = opts.baseURL;\n } else if (azureConfig?.agentName) {\n if (!azureConfig.allowPreview) {\n throw new Error(\n \"Calling `getOpenAIClient` with an `agentName` requires you to set `allowPreview: true`\" +\n \"\\nwhen providing azureConfig. Note that preview features are under development and \" +\n \"\\nsubject to change. They should not be used in production environments.\",\n );\n }\n baseURL = `${this._endpoint}/agents/${azureConfig.agentName}/endpoint/protocols/openai`;\n } else {\n baseURL = `${this._endpoint}/openai/v1`;\n }\n\n const defaultHeaders = getOpenAIDefaultHeaders(\n opts?.defaultHeaders,\n this._options?.userAgentOptions?.userAgentPrefix,\n );\n\n // When targeting an agent endpoint, add api-version to defaultQuery if not already present\n const defaultQuery = {\n ...(opts?.defaultQuery || {}),\n };\n if (azureConfig?.agentName && !defaultQuery[\"api-version\"]) {\n defaultQuery[\"api-version\"] = this._options.apiVersion ?? KnownApiVersions.v1;\n }\n\n // Destructure opts to exclude defaultHeaders, baseURL, and defaultQuery, then override specific properties\n const {\n defaultHeaders: _ignoredHeaders,\n baseURL: _ignoredBaseURL,\n defaultQuery: _ignoredQuery,\n ...restOpts\n } = opts || {};\n const openAIOptions: ConstructorParameters<typeof OpenAI>[0] = {\n ...restOpts,\n apiKey: getBearerTokenProvider(this._credential, scope),\n baseURL,\n dangerouslyAllowBrowser: true,\n defaultHeaders: defaultHeaders.toJSON({ preserveCase: true }),\n defaultQuery: Object.keys(defaultQuery).length > 0 ? defaultQuery : undefined,\n fetch: customFetch,\n };\n\n const openaiClient = new OpenAI(openAIOptions);\n return overwriteOpenAIClient(openaiClient, this._endpoint, this._tracingConfig);\n }\n /**\n * gets the endpoint of the client\n * @returns the endpoint of the client\n */\n public get endpoint(): string {\n return this._endpoint;\n }\n}\n"]}
1
+ {"version":3,"file":"aiProjectClient.js","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,iCAAiC;AAEjC,OAAO,MAAM,MAAM,QAAQ,CA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GAA2G;QAC3G,MAAM,EACJ,cAAc,EAAE,eAAe,EAC/B,OAAO,EAAE,eAAe,EACxB,YAAY,EAAE,aAAa,EAC3B,GAAG,QAAQ,EACZ,GAAG,IAAI,IAAI,EAAE,CAAC;QACf,MAAM,aAAa,GAA4C;YAC7D,GAAG,QAAQ;YACX,MAAM,EAAE,sBAAsB,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC;YACvD,OAAO;YACP,uBAAuB,EAAE,IAAI;YAC7B,cAAc,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;YAC7D,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;YAC7E,KAAK,EAAE,WAAW;SACnB,CAAC;QAEF,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,aAAa,CAAC,CAAC;QAC/C,OAAO,qBAAqB,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IAClF,CAAC;IACD;;;OAGG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/* eslint-disable tsdoc/syntax */\n\nimport OpenAI from \"openai\";\nimport { getBearerTokenProvider } from \"@azure/identity\";\nimport type { AIProjectContext, AIProjectClientOptionalParams } from \"./api/index.js\";\nimport { createAIProject } from \"./api/index.js\";\nimport type { AgentsOperations } from \"./classic/agents/index.js\";\nimport { _getAgentsOperations } from \"./classic/agents/index.js\";\nimport type { ToolboxesOperations } from \"./classic/toolboxes/index.js\";\nimport { _getToolboxesOperations } from \"./classic/toolboxes/index.js\";\nimport type { BetaOperations } from \"./classic/beta/index.js\";\nimport { _getBetaOperations } from \"./classic/beta/index.js\";\nimport type { ConnectionsOperations } from \"./classic/connections/index.js\";\nimport { _getConnectionsOperations } from \"./classic/connections/index.js\";\nimport type { DatasetsOperations } from \"./classic/datasets/index.js\";\nimport { _getDatasetsOperations } from \"./classic/datasets/index.js\";\nimport type { DeploymentsOperations } from \"./classic/deployments/index.js\";\nimport { _getDeploymentsOperations } from \"./classic/deployments/index.js\";\nimport type { EvaluationRulesOperations } from \"./classic/evaluationRules/index.js\";\nimport { _getEvaluationRulesOperations } from \"./classic/evaluationRules/index.js\";\nimport type { IndexesOperations } from \"./classic/indexes/index.js\";\nimport { _getIndexesOperations } from \"./classic/indexes/index.js\";\nimport type { TelemetryOperations } from \"./classic/telemetry/index.js\";\nimport { _getTelemetryOperations } from \"./classic/telemetry/index.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { overwriteOpenAIClient } from \"./overwriteOpenAIClient.js\";\nimport { getCustomFetch } from \"#platform/getCustomFetch\";\nimport { getOpenAIDefaultHeaders } from \"./util.js\";\nimport type { OpenAIClientOptionsWithAzureAgent } from \"./azureAgent.interface.js\";\nimport { KnownApiVersions } from \"./models/models.js\";\nimport { getTracingFetch } from \"./tracing/tracingFetch.js\";\nimport { resolveTracingConfig } from \"./tracing/configuration.js\";\nimport type { ResolvedTracingConfig } from \"./tracing/configuration.js\";\nimport type { VoiceAgentRealtimeClientOptions } from \"./realtime/voiceAgentRealtimeClient.js\";\n\nexport type { AIProjectClientOptionalParams } from \"./api/aiProjectContext.js\";\n\n/**\n * Resolves the effective options for the realtime voice-agent client: explicit `realtimeOptions`\n * values win, otherwise each falls back to its corresponding top-level client option so realtime\n * connections stay consistent with the rest of the client by default.\n */\nfunction resolveRealtimeOptions(\n options: AIProjectClientOptionalParams,\n userAgentPrefix: string | undefined,\n): VoiceAgentRealtimeClientOptions {\n const { realtimeOptions } = options;\n return {\n ...realtimeOptions,\n apiVersion: realtimeOptions?.apiVersion ?? options.apiVersion,\n credentialScopes: realtimeOptions?.credentialScopes ?? options.credentials?.scopes,\n userAgentPrefix: realtimeOptions?.userAgentPrefix ?? userAgentPrefix,\n };\n}\n\n/**\n * The main client for the AIProjectClient service. It provides access to the various operations available in the service.\n * @class AIProjectClient\n * @extends {AIProjectContext}\n * @description The main client for the AIProjectClient\n * @constructor\n * @param {string} endpoint - The endpoint to use\n * @param {TokenCredential} credential - The credential to use\n * @param {AIProjectClientOptionalParams} [options] - Optional parameters for the client.\n * @property {DeploymentsOperations} deployments - The operation groups for deployments\n * @property {IndexesOperations} indexes - The operation groups for indexes\n * @property {DatasetsOperations} datasets - The operation groups for datasets\n * @property {ConnectionsOperations} connections - The operation groups for connections\n * @property {AgentsOperations} agents - The operation groups for agents\n * @property {ToolboxesOperations} toolboxes - The operation groups for toolboxes\n * @property {BetaOperations} beta - The operation groups for beta include beta features:\n * - Memory Stores\n * - Evaluators\n * - Evaluation Taxonomies\n * - Insights\n * - Schedules\n * - Red Teams\n * - agents\n * - skills\n * - routines\n * - models\n * @property {TelemetryOperations} telemetry - The operation groups for telemetry\n * @property {getEndpointUrl} getEndpointUrl - gets the endpoint of the client\n * @property {getOpenAIClient} getOpenAIClient - gets the OpenAI client with optional OpenAI client options\n */\nexport class AIProjectClient {\n private _cognitiveScopeClient: AIProjectContext;\n private _azureScopeClient: AIProjectContext;\n private _endpoint: string;\n private _credential: TokenCredential;\n private _options: AIProjectClientOptionalParams;\n private _tracingConfig: ResolvedTracingConfig;\n\n constructor(\n endpoint: string,\n credential: TokenCredential,\n options: AIProjectClientOptionalParams = {},\n ) {\n this._endpoint = endpoint;\n this._credential = credential;\n this._options = options;\n this._tracingConfig = resolveTracingConfig(options.tracingOptions);\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._cognitiveScopeClient = createAIProject(endpoint, this._credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n credentials: {\n ...options.credentials,\n scopes: [\"https://ai.azure.com/.default\"],\n },\n });\n this._azureScopeClient = createAIProject(endpoint, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n\n this.toolboxes = _getToolboxesOperations(this._cognitiveScopeClient);\n this.indexes = _getIndexesOperations(this._azureScopeClient);\n this.deployments = _getDeploymentsOperations(this._azureScopeClient);\n this.datasets = _getDatasetsOperations(this._azureScopeClient, this._options);\n this.connections = _getConnectionsOperations(this._azureScopeClient);\n this.evaluationRules = _getEvaluationRulesOperations(this._azureScopeClient);\n this.agents = _getAgentsOperations(this._azureScopeClient, this._tracingConfig);\n this.beta = _getBetaOperations(\n this._cognitiveScopeClient,\n credential,\n options.endpoint ?? endpoint,\n resolveRealtimeOptions(options, prefixFromOptions),\n );\n this.telemetry = _getTelemetryOperations(this.connections);\n }\n\n /** The operation groups for toolboxes */\n public readonly toolboxes: ToolboxesOperations;\n /** The operation groups for indexes */\n public readonly indexes: IndexesOperations;\n /** The operation groups for deployments */\n public readonly deployments: DeploymentsOperations;\n /** The operation groups for datasets */\n public readonly datasets: DatasetsOperations;\n /** The operation groups for connections */\n public readonly connections: ConnectionsOperations;\n /** The operation groups for evaluationRules */\n public readonly evaluationRules: EvaluationRulesOperations;\n /** The operation groups for agents */\n public readonly agents: AgentsOperations;\n /** The operation groups for beta include beta features:\n * - Memory Stores\n * - Evaluators\n * - Evaluation Taxonomies\n * - Insights\n * - Schedules\n * - Red Teams\n * - agents\n * - skills\n * - routines\n * - models\n * - realtime (voice-agent WebSocket connections)\n */\n public readonly beta: BetaOperations;\n /** The operation groups for telemetry */\n public readonly telemetry: TelemetryOperations;\n /**\n * gets the OpenAI client\n * @returns the OpenAI client\n */\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n public getOpenAIClient(optsWithAzureAgent?: OpenAIClientOptionsWithAzureAgent): OpenAI {\n const scope = \"https://ai.azure.com/.default\";\n const { azureConfig, ...opts } = optsWithAzureAgent || {};\n let customFetch: NonNullable<ConstructorParameters<typeof OpenAI>[0]>[\"fetch\"];\n\n if (\n this._options.additionalPolicies?.find((policy) => policy.policy.name === \"recording policy\")\n ) {\n customFetch = getCustomFetch(this._azureScopeClient.pipeline, this._options.httpClient);\n }\n\n // Wrap fetch with tracing to inject traceparent/tracestate headers\n customFetch = getTracingFetch(customFetch, this._tracingConfig);\n\n let baseURL: string;\n if (opts?.baseURL) {\n baseURL = opts.baseURL;\n } else if (azureConfig?.agentName) {\n if (!azureConfig.allowPreview) {\n throw new Error(\n \"Calling `getOpenAIClient` with an `agentName` requires you to set `allowPreview: true`\" +\n \"\\nwhen providing azureConfig. Note that preview features are under development and \" +\n \"\\nsubject to change. They should not be used in production environments.\",\n );\n }\n baseURL = `${this._endpoint}/agents/${azureConfig.agentName}/endpoint/protocols/openai`;\n } else {\n baseURL = `${this._endpoint}/openai/v1`;\n }\n\n const defaultHeaders = getOpenAIDefaultHeaders(\n opts?.defaultHeaders,\n this._options?.userAgentOptions?.userAgentPrefix,\n );\n\n // When targeting an agent endpoint, add api-version to defaultQuery if not already present\n const defaultQuery = {\n ...(opts?.defaultQuery || {}),\n };\n if (azureConfig?.agentName && !defaultQuery[\"api-version\"]) {\n defaultQuery[\"api-version\"] = this._options.apiVersion ?? KnownApiVersions.v1;\n }\n\n // Destructure opts to exclude defaultHeaders, baseURL, and defaultQuery, then override specific properties\n const {\n defaultHeaders: _ignoredHeaders,\n baseURL: _ignoredBaseURL,\n defaultQuery: _ignoredQuery,\n ...restOpts\n } = opts || {};\n const openAIOptions: ConstructorParameters<typeof OpenAI>[0] = {\n ...restOpts,\n apiKey: getBearerTokenProvider(this._credential, scope),\n baseURL,\n dangerouslyAllowBrowser: true,\n defaultHeaders: defaultHeaders.toJSON({ preserveCase: true }),\n defaultQuery: Object.keys(defaultQuery).length > 0 ? defaultQuery : undefined,\n fetch: customFetch,\n };\n\n const openaiClient = new OpenAI(openAIOptions);\n return overwriteOpenAIClient(openaiClient, this._endpoint, this._tracingConfig);\n }\n /**\n * gets the endpoint of the client\n * @returns the endpoint of the client\n */\n public get endpoint(): string {\n return this._endpoint;\n }\n}\n"]}
@@ -1,3 +1,3 @@
1
1
  export { deleteSessionFile, listSessionFiles, downloadSessionFile, uploadSessionFile, getMicrosoft365PublishDefaults, getMicrosoft365Package, publishToMicrosoft365, getSessionLogStream, listSessions, stopSession, deleteSession, getSession, createSession, disable, enable, downloadAgentCode, createVersionFromCode, updateAgentObject, patchAgentObject, listVersions, deleteVersion, getVersion, createAgentVersionFromManifest, createVersion, list, $delete, updateAgentFromManifest, createAgentFromManifest, update, create, get, } from "./operations.js";
2
- export type { AgentsDeleteSessionFileOptionalParams, AgentsListSessionFilesOptionalParams, AgentsDownloadSessionFileOptionalParams, AgentsUploadSessionFileOptionalParams, GetMicrosoft365PublishDefaultsOptionalParams, GetMicrosoft365PackageOptionalParams, PublishToMicrosoft365OptionalParams, AgentsGetSessionLogStreamOptionalParams, AgentsListSessionsOptionalParams, AgentsStopSessionOptionalParams, AgentsDeleteSessionOptionalParams, AgentsGetSessionOptionalParams, AgentsCreateSessionOptionalParams, AgentsDisableOptionalParams, AgentsEnableOptionalParams, AgentsDownloadAgentCodeOptionalParams, AgentsCreateVersionFromCodeOptionalParams, AgentsUpdateAgentObjectOptionalParams, AgentsPatchAgentObjectOptionalParams, AgentsListVersionsOptionalParams, AgentsDeleteVersionOptionalParams, AgentsGetVersionOptionalParams, AgentsCreateAgentVersionFromManifestOptionalParams, AgentsCreateVersionOptionalParams, AgentsListOptionalParams, AgentsDeleteOptionalParams, AgentsUpdateAgentFromManifestOptionalParams, AgentsCreateAgentFromManifestOptionalParams, AgentsUpdateOptionalParams, AgentsCreateOptionalParams, AgentsGetOptionalParams, } from "./options.js";
2
+ export type { AgentsDeleteSessionFileOptionalParams, AgentsListSessionFilesOptionalParams, AgentsDownloadSessionFileOptionalParams, AgentsUploadSessionFileOptionalParams, AgentsListTelephonyCallsOptionalParams, AgentsDeleteTelephonyBindingOptionalParams, AgentsUpdateTelephonyBindingOptionalParams, AgentsGetTelephonyBindingOptionalParams, AgentsListTelephonyBindingsOptionalParams, AgentsCreateTelephonyBindingOptionalParams, GetMicrosoft365PublishDefaultsOptionalParams, GetMicrosoft365PackageOptionalParams, PublishToMicrosoft365OptionalParams, AgentsGetSessionLogStreamOptionalParams, AgentsListSessionsOptionalParams, AgentsStopSessionOptionalParams, AgentsDeleteSessionOptionalParams, AgentsGetSessionOptionalParams, AgentsCreateSessionOptionalParams, AgentsDisableOptionalParams, AgentsEnableOptionalParams, AgentsDownloadAgentCodeOptionalParams, AgentsCreateVersionFromCodeOptionalParams, AgentsUpdateAgentObjectOptionalParams, AgentsPatchAgentObjectOptionalParams, AgentsListVersionsOptionalParams, AgentsDeleteVersionOptionalParams, AgentsGetVersionOptionalParams, AgentsCreateAgentVersionFromManifestOptionalParams, AgentsCreateVersionOptionalParams, AgentsListOptionalParams, AgentsDeleteOptionalParams, AgentsUpdateAgentFromManifestOptionalParams, AgentsCreateAgentFromManifestOptionalParams, AgentsUpdateOptionalParams, AgentsCreateOptionalParams, AgentsGetOptionalParams, } from "./options.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/agents/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,UAAU,EACV,aAAa,EACb,OAAO,EACP,MAAM,EACN,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,8BAA8B,EAC9B,aAAa,EACb,IAAI,EACJ,OAAO,EACP,uBAAuB,EACvB,uBAAuB,EACvB,MAAM,EACN,MAAM,EACN,GAAG,GACJ,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,qCAAqC,EACrC,oCAAoC,EACpC,uCAAuC,EACvC,qCAAqC,EACrC,4CAA4C,EAC5C,oCAAoC,EACpC,mCAAmC,EACnC,uCAAuC,EACvC,gCAAgC,EAChC,+BAA+B,EAC/B,iCAAiC,EACjC,8BAA8B,EAC9B,iCAAiC,EACjC,2BAA2B,EAC3B,0BAA0B,EAC1B,qCAAqC,EACrC,yCAAyC,EACzC,qCAAqC,EACrC,oCAAoC,EACpC,gCAAgC,EAChC,iCAAiC,EACjC,8BAA8B,EAC9B,kDAAkD,EAClD,iCAAiC,EACjC,wBAAwB,EACxB,0BAA0B,EAC1B,2CAA2C,EAC3C,2CAA2C,EAC3C,0BAA0B,EAC1B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/agents/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,UAAU,EACV,aAAa,EACb,OAAO,EACP,MAAM,EACN,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,8BAA8B,EAC9B,aAAa,EACb,IAAI,EACJ,OAAO,EACP,uBAAuB,EACvB,uBAAuB,EACvB,MAAM,EACN,MAAM,EACN,GAAG,GACJ,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,qCAAqC,EACrC,oCAAoC,EACpC,uCAAuC,EACvC,qCAAqC,EACrC,sCAAsC,EACtC,0CAA0C,EAC1C,0CAA0C,EAC1C,uCAAuC,EACvC,yCAAyC,EACzC,0CAA0C,EAC1C,4CAA4C,EAC5C,oCAAoC,EACpC,mCAAmC,EACnC,uCAAuC,EACvC,gCAAgC,EAChC,+BAA+B,EAC/B,iCAAiC,EACjC,8BAA8B,EAC9B,iCAAiC,EACjC,2BAA2B,EAC3B,0BAA0B,EAC1B,qCAAqC,EACrC,yCAAyC,EACzC,qCAAqC,EACrC,oCAAoC,EACpC,gCAAgC,EAChC,iCAAiC,EACjC,8BAA8B,EAC9B,kDAAkD,EAClD,iCAAiC,EACjC,wBAAwB,EACxB,0BAA0B,EAC1B,2CAA2C,EAC3C,2CAA2C,EAC3C,0BAA0B,EAC1B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/agents/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,UAAU,EACV,aAAa,EACb,OAAO,EACP,MAAM,EACN,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,8BAA8B,EAC9B,aAAa,EACb,IAAI,EACJ,OAAO,EACP,uBAAuB,EACvB,uBAAuB,EACvB,MAAM,EACN,MAAM,EACN,GAAG,GACJ,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n deleteSessionFile,\n listSessionFiles,\n downloadSessionFile,\n uploadSessionFile,\n getMicrosoft365PublishDefaults,\n getMicrosoft365Package,\n publishToMicrosoft365,\n getSessionLogStream,\n listSessions,\n stopSession,\n deleteSession,\n getSession,\n createSession,\n disable,\n enable,\n downloadAgentCode,\n createVersionFromCode,\n updateAgentObject,\n patchAgentObject,\n listVersions,\n deleteVersion,\n getVersion,\n createAgentVersionFromManifest,\n createVersion,\n list,\n $delete,\n updateAgentFromManifest,\n createAgentFromManifest,\n update,\n create,\n get,\n} from \"./operations.js\";\nexport type {\n AgentsDeleteSessionFileOptionalParams,\n AgentsListSessionFilesOptionalParams,\n AgentsDownloadSessionFileOptionalParams,\n AgentsUploadSessionFileOptionalParams,\n GetMicrosoft365PublishDefaultsOptionalParams,\n GetMicrosoft365PackageOptionalParams,\n PublishToMicrosoft365OptionalParams,\n AgentsGetSessionLogStreamOptionalParams,\n AgentsListSessionsOptionalParams,\n AgentsStopSessionOptionalParams,\n AgentsDeleteSessionOptionalParams,\n AgentsGetSessionOptionalParams,\n AgentsCreateSessionOptionalParams,\n AgentsDisableOptionalParams,\n AgentsEnableOptionalParams,\n AgentsDownloadAgentCodeOptionalParams,\n AgentsCreateVersionFromCodeOptionalParams,\n AgentsUpdateAgentObjectOptionalParams,\n AgentsPatchAgentObjectOptionalParams,\n AgentsListVersionsOptionalParams,\n AgentsDeleteVersionOptionalParams,\n AgentsGetVersionOptionalParams,\n AgentsCreateAgentVersionFromManifestOptionalParams,\n AgentsCreateVersionOptionalParams,\n AgentsListOptionalParams,\n AgentsDeleteOptionalParams,\n AgentsUpdateAgentFromManifestOptionalParams,\n AgentsCreateAgentFromManifestOptionalParams,\n AgentsUpdateOptionalParams,\n AgentsCreateOptionalParams,\n AgentsGetOptionalParams,\n} from \"./options.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/agents/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,UAAU,EACV,aAAa,EACb,OAAO,EACP,MAAM,EACN,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,8BAA8B,EAC9B,aAAa,EACb,IAAI,EACJ,OAAO,EACP,uBAAuB,EACvB,uBAAuB,EACvB,MAAM,EACN,MAAM,EACN,GAAG,GACJ,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n deleteSessionFile,\n listSessionFiles,\n downloadSessionFile,\n uploadSessionFile,\n getMicrosoft365PublishDefaults,\n getMicrosoft365Package,\n publishToMicrosoft365,\n getSessionLogStream,\n listSessions,\n stopSession,\n deleteSession,\n getSession,\n createSession,\n disable,\n enable,\n downloadAgentCode,\n createVersionFromCode,\n updateAgentObject,\n patchAgentObject,\n listVersions,\n deleteVersion,\n getVersion,\n createAgentVersionFromManifest,\n createVersion,\n list,\n $delete,\n updateAgentFromManifest,\n createAgentFromManifest,\n update,\n create,\n get,\n} from \"./operations.js\";\nexport type {\n AgentsDeleteSessionFileOptionalParams,\n AgentsListSessionFilesOptionalParams,\n AgentsDownloadSessionFileOptionalParams,\n AgentsUploadSessionFileOptionalParams,\n AgentsListTelephonyCallsOptionalParams,\n AgentsDeleteTelephonyBindingOptionalParams,\n AgentsUpdateTelephonyBindingOptionalParams,\n AgentsGetTelephonyBindingOptionalParams,\n AgentsListTelephonyBindingsOptionalParams,\n AgentsCreateTelephonyBindingOptionalParams,\n GetMicrosoft365PublishDefaultsOptionalParams,\n GetMicrosoft365PackageOptionalParams,\n PublishToMicrosoft365OptionalParams,\n AgentsGetSessionLogStreamOptionalParams,\n AgentsListSessionsOptionalParams,\n AgentsStopSessionOptionalParams,\n AgentsDeleteSessionOptionalParams,\n AgentsGetSessionOptionalParams,\n AgentsCreateSessionOptionalParams,\n AgentsDisableOptionalParams,\n AgentsEnableOptionalParams,\n AgentsDownloadAgentCodeOptionalParams,\n AgentsCreateVersionFromCodeOptionalParams,\n AgentsUpdateAgentObjectOptionalParams,\n AgentsPatchAgentObjectOptionalParams,\n AgentsListVersionsOptionalParams,\n AgentsDeleteVersionOptionalParams,\n AgentsGetVersionOptionalParams,\n AgentsCreateAgentVersionFromManifestOptionalParams,\n AgentsCreateVersionOptionalParams,\n AgentsListOptionalParams,\n AgentsDeleteOptionalParams,\n AgentsUpdateAgentFromManifestOptionalParams,\n AgentsCreateAgentFromManifestOptionalParams,\n AgentsUpdateOptionalParams,\n AgentsCreateOptionalParams,\n AgentsGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -1,4 +1,4 @@
1
- import type { AgentState, AgentKind, AgentBlueprintReferenceUnion, AgentEndpointConfig, ActivityProtocolAccessBoundary, AgentCard, Microsoft365PermissionScopes, AgentDefinitionOptInKeys, PageOrder, DigitalWorkerType } from "../../models/models.js";
1
+ import type { AgentState, AgentKind, AgentBlueprintReferenceUnion, AgentEndpointConfig, ActivityProtocolAccessBoundary, AgentCard, Microsoft365PermissionScopes, TelephonyProvider, TelephonyBindingStatus, TelephonyCallStatus, AgentDefinitionOptInKeys, PageOrder, DigitalWorkerType } from "../../models/models.js";
2
2
  import type { OperationOptions } from "@azure-rest/core-client";
3
3
  /** Optional parameters. */
4
4
  export interface AgentsDeleteSessionFileOptionalParams extends OperationOptions {
@@ -39,6 +39,96 @@ export interface AgentsDownloadSessionFileOptionalParams extends OperationOption
39
39
  export interface AgentsUploadSessionFileOptionalParams extends OperationOptions {
40
40
  }
41
41
  /** Optional parameters. */
42
+ export interface AgentsListTelephonyCallsOptionalParams extends OperationOptions {
43
+ /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
44
+ foundryFeatures?: "VoiceAgents=V1Preview";
45
+ /** Filters calls by provider. */
46
+ provider?: TelephonyProvider;
47
+ /** Filters calls by lifecycle status. */
48
+ status?: TelephonyCallStatus;
49
+ /** Includes calls that started at or after this Unix timestamp in seconds. */
50
+ startedAfter?: Date;
51
+ /** Includes calls that started at or before this Unix timestamp in seconds. */
52
+ startedBefore?: Date;
53
+ /**
54
+ * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the
55
+ * default is 20.
56
+ */
57
+ limit?: number;
58
+ /**
59
+ * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`
60
+ * for descending order.
61
+ */
62
+ order?: PageOrder;
63
+ /**
64
+ * A cursor for use in pagination. `after` is an object ID that defines your place in the list.
65
+ * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your
66
+ * subsequent call can include after=obj_foo in order to fetch the next page of the list.
67
+ */
68
+ after?: string;
69
+ /**
70
+ * A cursor for use in pagination. `before` is an object ID that defines your place in the list.
71
+ * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your
72
+ * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
73
+ */
74
+ before?: string;
75
+ }
76
+ /** Optional parameters. */
77
+ export interface AgentsDeleteTelephonyBindingOptionalParams extends OperationOptions {
78
+ /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
79
+ foundryFeatures?: "VoiceAgents=V1Preview";
80
+ }
81
+ /** Optional parameters. */
82
+ export interface AgentsUpdateTelephonyBindingOptionalParams extends OperationOptions {
83
+ /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
84
+ foundryFeatures?: "VoiceAgents=V1Preview";
85
+ }
86
+ /** Optional parameters. */
87
+ export interface AgentsGetTelephonyBindingOptionalParams extends OperationOptions {
88
+ /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
89
+ foundryFeatures?: "VoiceAgents=V1Preview";
90
+ }
91
+ /** Optional parameters. */
92
+ export interface AgentsListTelephonyBindingsOptionalParams extends OperationOptions {
93
+ /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
94
+ foundryFeatures?: "VoiceAgents=V1Preview";
95
+ /** Filters bindings by provider. */
96
+ provider?: TelephonyProvider;
97
+ /** Filters bindings by lifecycle status. */
98
+ status?: TelephonyBindingStatus;
99
+ /**
100
+ * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the
101
+ * default is 20.
102
+ */
103
+ limit?: number;
104
+ /**
105
+ * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`
106
+ * for descending order.
107
+ */
108
+ order?: PageOrder;
109
+ /**
110
+ * A cursor for use in pagination. `after` is an object ID that defines your place in the list.
111
+ * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your
112
+ * subsequent call can include after=obj_foo in order to fetch the next page of the list.
113
+ */
114
+ after?: string;
115
+ /**
116
+ * A cursor for use in pagination. `before` is an object ID that defines your place in the list.
117
+ * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your
118
+ * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
119
+ */
120
+ before?: string;
121
+ }
122
+ /** Optional parameters. */
123
+ export interface AgentsCreateTelephonyBindingOptionalParams extends OperationOptions {
124
+ /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
125
+ foundryFeatures?: "VoiceAgents=V1Preview";
126
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
127
+ repeatabilityRequestId?: string;
128
+ /** Specifies the date and time at which the request was first created. */
129
+ repeatabilityFirstSent?: Date;
130
+ }
131
+ /** Optional parameters. */
42
132
  export interface GetMicrosoft365PublishDefaultsOptionalParams extends OperationOptions {
43
133
  /** When true, returns defaults for publishing the agent as an autopilot (digital worker) agent. */
44
134
  publishAsDigitalWorker?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/agents/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,4BAA4B,EAC5B,mBAAmB,EACnB,8BAA8B,EAC9B,SAAS,EACT,4BAA4B,EAC5B,wBAAwB,EACxB,SAAS,EACT,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,2BAA2B;AAC3B,MAAM,WAAW,qCAAsC,SAAQ,gBAAgB;IAC7E,mIAAmI;IACnI,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,2BAA2B;AAC3B,MAAM,WAAW,oCAAqC,SAAQ,gBA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"","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,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC9C,iDAAiD;IACjD,yEAAyE;IACzE,UAAU,EAAE,gBAAgB,CAAC;IAC7B,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,0CAA0C;AAC1C,MAAM,WAAW,6BAA8B,SAAQ,aAAa;IAClE,iDAAiD;IACjD,yEAAyE;IACzE,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC,GAC1C,gBAAgB,CAkBlB"}
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,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAE/F,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC9C,iDAAiD;IACjD,yEAAyE;IACzE,UAAU,EAAE,gBAAgB,CAAC;IAC7B,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,0CAA0C;AAC1C,MAAM,WAAW,6BAA8B,SAAQ,aAAa;IAClE,iDAAiD;IACjD,yEAAyE;IACzE,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,+BAA+B,CAAC;CACnD;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC,GAC1C,gBAAgB,CAkBlB"}
@@ -1 +1 @@
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;AAwB9C,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\";\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"]}