@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
@@ -0,0 +1,747 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var operations_exports = {};
19
+ __export(operations_exports, {
20
+ $delete: () => $delete,
21
+ _$deleteDeserialize: () => _$deleteDeserialize,
22
+ _$deleteSend: () => _$deleteSend,
23
+ _downloadAudioDeserialize: () => _downloadAudioDeserialize,
24
+ _downloadAudioItemDeserialize: () => _downloadAudioItemDeserialize,
25
+ _downloadAudioItemSend: () => _downloadAudioItemSend,
26
+ _downloadAudioSend: () => _downloadAudioSend,
27
+ _downloadGeneratedAudioItemDeserialize: () => _downloadGeneratedAudioItemDeserialize,
28
+ _downloadGeneratedAudioItemSend: () => _downloadGeneratedAudioItemSend,
29
+ _getAudioDeserialize: () => _getAudioDeserialize,
30
+ _getAudioItemDeserialize: () => _getAudioItemDeserialize,
31
+ _getAudioItemSend: () => _getAudioItemSend,
32
+ _getAudioSend: () => _getAudioSend,
33
+ _getDeserialize: () => _getDeserialize,
34
+ _getGeneratedAudioItemDeserialize: () => _getGeneratedAudioItemDeserialize,
35
+ _getGeneratedAudioItemSend: () => _getGeneratedAudioItemSend,
36
+ _getItemDeserialize: () => _getItemDeserialize,
37
+ _getItemSend: () => _getItemSend,
38
+ _getResponseDeserialize: () => _getResponseDeserialize,
39
+ _getResponseSend: () => _getResponseSend,
40
+ _getSend: () => _getSend,
41
+ _listDeserialize: () => _listDeserialize,
42
+ _listItemsDeserialize: () => _listItemsDeserialize,
43
+ _listItemsSend: () => _listItemsSend,
44
+ _listResponseItemsDeserialize: () => _listResponseItemsDeserialize,
45
+ _listResponseItemsSend: () => _listResponseItemsSend,
46
+ _listResponsesDeserialize: () => _listResponsesDeserialize,
47
+ _listResponsesSend: () => _listResponsesSend,
48
+ _listSend: () => _listSend,
49
+ downloadAudio: () => downloadAudio,
50
+ downloadAudioItem: () => downloadAudioItem,
51
+ downloadGeneratedAudioItem: () => downloadGeneratedAudioItem,
52
+ get: () => get,
53
+ getAudio: () => getAudio,
54
+ getAudioItem: () => getAudioItem,
55
+ getGeneratedAudioItem: () => getGeneratedAudioItem,
56
+ getItem: () => getItem,
57
+ getResponse: () => getResponse,
58
+ list: () => list,
59
+ listItems: () => listItems,
60
+ listResponseItems: () => listResponseItems,
61
+ listResponses: () => listResponses
62
+ });
63
+ module.exports = __toCommonJS(operations_exports);
64
+ var import_models = require("../../../../models/models.js");
65
+ var import_pagingHelpers = require("../../../../static-helpers/pagingHelpers.js");
66
+ var import_get_binary_stream_response = require("../../../../static-helpers/serialization/get-binary-stream-response.js");
67
+ var import_urlTemplate = require("../../../../static-helpers/urlTemplate.js");
68
+ var import_core_client = require("@azure-rest/core-client");
69
+ function _downloadAudioSend(context, agentName, conversationId, options = { requestOptions: {} }) {
70
+ const foundryFeatures = "VoiceAgents=V1Preview";
71
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
72
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/audio/content{?api%2Dversion}",
73
+ {
74
+ agent_name: agentName,
75
+ conversation_id: conversationId,
76
+ "api%2Dversion": context.apiVersion ?? "v1"
77
+ },
78
+ {
79
+ allowReserved: options?.requestOptions?.skipUrlEncoding
80
+ }
81
+ );
82
+ return context.path(path).get({
83
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
84
+ headers: {
85
+ "foundry-features": foundryFeatures,
86
+ accept: "audio/wav",
87
+ ...options.requestOptions?.headers
88
+ }
89
+ });
90
+ }
91
+ async function _downloadAudioDeserialize(result) {
92
+ const expectedStatuses = ["200"];
93
+ if (!expectedStatuses.includes(result.status)) {
94
+ const error = (0, import_core_client.createRestError)(result);
95
+ if (result.body) {
96
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
97
+ }
98
+ throw error;
99
+ }
100
+ return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
101
+ }
102
+ async function downloadAudio(context, agentName, conversationId, options = { requestOptions: {} }) {
103
+ const streamableMethod = _downloadAudioSend(context, agentName, conversationId, options);
104
+ const result = await (0, import_get_binary_stream_response.getBinaryStreamResponse)(streamableMethod);
105
+ return _downloadAudioDeserialize(result);
106
+ }
107
+ function _getAudioSend(context, agentName, conversationId, options = { requestOptions: {} }) {
108
+ const foundryFeatures = "VoiceAgents=V1Preview";
109
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
110
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/audio{?api%2Dversion}",
111
+ {
112
+ agent_name: agentName,
113
+ conversation_id: conversationId,
114
+ "api%2Dversion": context.apiVersion ?? "v1"
115
+ },
116
+ {
117
+ allowReserved: options?.requestOptions?.skipUrlEncoding
118
+ }
119
+ );
120
+ return context.path(path).get({
121
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
122
+ headers: {
123
+ "foundry-features": foundryFeatures,
124
+ accept: "application/json",
125
+ ...options.requestOptions?.headers
126
+ }
127
+ });
128
+ }
129
+ async function _getAudioDeserialize(result) {
130
+ const expectedStatuses = ["200"];
131
+ if (!expectedStatuses.includes(result.status)) {
132
+ const error = (0, import_core_client.createRestError)(result);
133
+ if (result.body) {
134
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
135
+ }
136
+ throw error;
137
+ }
138
+ return (0, import_models.voiceRecordingDeserializer)(result.body);
139
+ }
140
+ async function getAudio(context, agentName, conversationId, options = { requestOptions: {} }) {
141
+ const result = await _getAudioSend(context, agentName, conversationId, options);
142
+ return _getAudioDeserialize(result);
143
+ }
144
+ function _downloadGeneratedAudioItemSend(context, agentName, conversationId, itemId, options = {
145
+ requestOptions: {}
146
+ }) {
147
+ const foundryFeatures = "VoiceAgents=V1Preview";
148
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
149
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}/audio/generated/content{?api%2Dversion}",
150
+ {
151
+ agent_name: agentName,
152
+ conversation_id: conversationId,
153
+ item_id: itemId,
154
+ "api%2Dversion": context.apiVersion ?? "v1"
155
+ },
156
+ {
157
+ allowReserved: options?.requestOptions?.skipUrlEncoding
158
+ }
159
+ );
160
+ return context.path(path).get({
161
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
162
+ headers: {
163
+ "foundry-features": foundryFeatures,
164
+ accept: "audio/wav",
165
+ ...options.requestOptions?.headers
166
+ }
167
+ });
168
+ }
169
+ async function _downloadGeneratedAudioItemDeserialize(result) {
170
+ const expectedStatuses = ["200"];
171
+ if (!expectedStatuses.includes(result.status)) {
172
+ const error = (0, import_core_client.createRestError)(result);
173
+ if (result.body) {
174
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
175
+ }
176
+ throw error;
177
+ }
178
+ return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
179
+ }
180
+ async function downloadGeneratedAudioItem(context, agentName, conversationId, itemId, options = {
181
+ requestOptions: {}
182
+ }) {
183
+ const streamableMethod = _downloadGeneratedAudioItemSend(
184
+ context,
185
+ agentName,
186
+ conversationId,
187
+ itemId,
188
+ options
189
+ );
190
+ const result = await (0, import_get_binary_stream_response.getBinaryStreamResponse)(streamableMethod);
191
+ return _downloadGeneratedAudioItemDeserialize(result);
192
+ }
193
+ function _getGeneratedAudioItemSend(context, agentName, conversationId, itemId, options = {
194
+ requestOptions: {}
195
+ }) {
196
+ const foundryFeatures = "VoiceAgents=V1Preview";
197
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
198
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}/audio/generated{?api%2Dversion}",
199
+ {
200
+ agent_name: agentName,
201
+ conversation_id: conversationId,
202
+ item_id: itemId,
203
+ "api%2Dversion": context.apiVersion ?? "v1"
204
+ },
205
+ {
206
+ allowReserved: options?.requestOptions?.skipUrlEncoding
207
+ }
208
+ );
209
+ return context.path(path).get({
210
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
211
+ headers: {
212
+ "foundry-features": foundryFeatures,
213
+ accept: "application/json",
214
+ ...options.requestOptions?.headers
215
+ }
216
+ });
217
+ }
218
+ async function _getGeneratedAudioItemDeserialize(result) {
219
+ const expectedStatuses = ["200"];
220
+ if (!expectedStatuses.includes(result.status)) {
221
+ const error = (0, import_core_client.createRestError)(result);
222
+ if (result.body) {
223
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
224
+ }
225
+ throw error;
226
+ }
227
+ return (0, import_models.voiceGeneratedAudioItemDeserializer)(result.body);
228
+ }
229
+ async function getGeneratedAudioItem(context, agentName, conversationId, itemId, options = {
230
+ requestOptions: {}
231
+ }) {
232
+ const result = await _getGeneratedAudioItemSend(
233
+ context,
234
+ agentName,
235
+ conversationId,
236
+ itemId,
237
+ options
238
+ );
239
+ return _getGeneratedAudioItemDeserialize(result);
240
+ }
241
+ function _downloadAudioItemSend(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
242
+ const foundryFeatures = "VoiceAgents=V1Preview";
243
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
244
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}/audio/content{?api%2Dversion}",
245
+ {
246
+ agent_name: agentName,
247
+ conversation_id: conversationId,
248
+ item_id: itemId,
249
+ "api%2Dversion": context.apiVersion ?? "v1"
250
+ },
251
+ {
252
+ allowReserved: options?.requestOptions?.skipUrlEncoding
253
+ }
254
+ );
255
+ return context.path(path).get({
256
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
257
+ headers: {
258
+ "foundry-features": foundryFeatures,
259
+ accept: "audio/wav",
260
+ ...options.requestOptions?.headers
261
+ }
262
+ });
263
+ }
264
+ async function _downloadAudioItemDeserialize(result) {
265
+ const expectedStatuses = ["200"];
266
+ if (!expectedStatuses.includes(result.status)) {
267
+ const error = (0, import_core_client.createRestError)(result);
268
+ if (result.body) {
269
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
270
+ }
271
+ throw error;
272
+ }
273
+ return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
274
+ }
275
+ async function downloadAudioItem(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
276
+ const streamableMethod = _downloadAudioItemSend(
277
+ context,
278
+ agentName,
279
+ conversationId,
280
+ itemId,
281
+ options
282
+ );
283
+ const result = await (0, import_get_binary_stream_response.getBinaryStreamResponse)(streamableMethod);
284
+ return _downloadAudioItemDeserialize(result);
285
+ }
286
+ function _getAudioItemSend(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
287
+ const foundryFeatures = "VoiceAgents=V1Preview";
288
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
289
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}/audio{?api%2Dversion}",
290
+ {
291
+ agent_name: agentName,
292
+ conversation_id: conversationId,
293
+ item_id: itemId,
294
+ "api%2Dversion": context.apiVersion ?? "v1"
295
+ },
296
+ {
297
+ allowReserved: options?.requestOptions?.skipUrlEncoding
298
+ }
299
+ );
300
+ return context.path(path).get({
301
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
302
+ headers: {
303
+ "foundry-features": foundryFeatures,
304
+ accept: "application/json",
305
+ ...options.requestOptions?.headers
306
+ }
307
+ });
308
+ }
309
+ async function _getAudioItemDeserialize(result) {
310
+ const expectedStatuses = ["200"];
311
+ if (!expectedStatuses.includes(result.status)) {
312
+ const error = (0, import_core_client.createRestError)(result);
313
+ if (result.body) {
314
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
315
+ }
316
+ throw error;
317
+ }
318
+ return (0, import_models.voiceAudioItemDeserializer)(result.body);
319
+ }
320
+ async function getAudioItem(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
321
+ const result = await _getAudioItemSend(context, agentName, conversationId, itemId, options);
322
+ return _getAudioItemDeserialize(result);
323
+ }
324
+ function _getItemSend(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
325
+ const foundryFeatures = "VoiceAgents=V1Preview";
326
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
327
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}{?api%2Dversion}",
328
+ {
329
+ agent_name: agentName,
330
+ conversation_id: conversationId,
331
+ item_id: itemId,
332
+ "api%2Dversion": context.apiVersion ?? "v1"
333
+ },
334
+ {
335
+ allowReserved: options?.requestOptions?.skipUrlEncoding
336
+ }
337
+ );
338
+ return context.path(path).get({
339
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
340
+ headers: {
341
+ "foundry-features": foundryFeatures,
342
+ accept: "application/json",
343
+ ...options.requestOptions?.headers
344
+ }
345
+ });
346
+ }
347
+ async function _getItemDeserialize(result) {
348
+ const expectedStatuses = ["200"];
349
+ if (!expectedStatuses.includes(result.status)) {
350
+ const error = (0, import_core_client.createRestError)(result);
351
+ if (result.body) {
352
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
353
+ }
354
+ throw error;
355
+ }
356
+ return (0, import_models.realtimeConversationItemUnionDeserializer)(result.body);
357
+ }
358
+ async function getItem(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
359
+ const result = await _getItemSend(context, agentName, conversationId, itemId, options);
360
+ return _getItemDeserialize(result);
361
+ }
362
+ function _listItemsSend(context, agentName, conversationId, options = { requestOptions: {} }) {
363
+ const foundryFeatures = "VoiceAgents=V1Preview";
364
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
365
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items{?limit,order,after,before,api%2Dversion}",
366
+ {
367
+ agent_name: agentName,
368
+ conversation_id: conversationId,
369
+ limit: options?.limit,
370
+ order: options?.order,
371
+ after: options?.after,
372
+ before: options?.before,
373
+ "api%2Dversion": context.apiVersion ?? "v1"
374
+ },
375
+ {
376
+ allowReserved: options?.requestOptions?.skipUrlEncoding
377
+ }
378
+ );
379
+ return context.path(path).get({
380
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
381
+ headers: {
382
+ "foundry-features": foundryFeatures,
383
+ accept: "application/json",
384
+ ...options.requestOptions?.headers
385
+ }
386
+ });
387
+ }
388
+ async function _listItemsDeserialize(result) {
389
+ const expectedStatuses = ["200"];
390
+ if (!expectedStatuses.includes(result.status)) {
391
+ const error = (0, import_core_client.createRestError)(result);
392
+ if (result.body) {
393
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
394
+ }
395
+ throw error;
396
+ }
397
+ return (0, import_models._agentsPagedResultRealtimeConversationItemDeserializer)(result.body);
398
+ }
399
+ function listItems(context, agentName, conversationId, options = { requestOptions: {} }) {
400
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
401
+ context,
402
+ () => _listItemsSend(context, agentName, conversationId, options),
403
+ _listItemsDeserialize,
404
+ ["200"],
405
+ {
406
+ itemName: "data",
407
+ apiVersion: context.apiVersion ?? "v1",
408
+ cursorFieldName: "last_id",
409
+ hasMoreFieldName: "has_more",
410
+ nextPageRequestOptions: {
411
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
412
+ headers: {
413
+ "foundry-features": "VoiceAgents=V1Preview",
414
+ ...options.requestOptions?.headers
415
+ }
416
+ }
417
+ }
418
+ );
419
+ }
420
+ function _listResponseItemsSend(context, agentName, conversationId, responseId, options = { requestOptions: {} }) {
421
+ const foundryFeatures = "VoiceAgents=V1Preview";
422
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
423
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/responses/{response_id}/items{?limit,order,after,before,api%2Dversion}",
424
+ {
425
+ agent_name: agentName,
426
+ conversation_id: conversationId,
427
+ response_id: responseId,
428
+ limit: options?.limit,
429
+ order: options?.order,
430
+ after: options?.after,
431
+ before: options?.before,
432
+ "api%2Dversion": context.apiVersion ?? "v1"
433
+ },
434
+ {
435
+ allowReserved: options?.requestOptions?.skipUrlEncoding
436
+ }
437
+ );
438
+ return context.path(path).get({
439
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
440
+ headers: {
441
+ "foundry-features": foundryFeatures,
442
+ accept: "application/json",
443
+ ...options.requestOptions?.headers
444
+ }
445
+ });
446
+ }
447
+ async function _listResponseItemsDeserialize(result) {
448
+ const expectedStatuses = ["200"];
449
+ if (!expectedStatuses.includes(result.status)) {
450
+ const error = (0, import_core_client.createRestError)(result);
451
+ if (result.body) {
452
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
453
+ }
454
+ throw error;
455
+ }
456
+ return (0, import_models._agentsPagedResultRealtimeConversationItemDeserializer)(result.body);
457
+ }
458
+ function listResponseItems(context, agentName, conversationId, responseId, options = { requestOptions: {} }) {
459
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
460
+ context,
461
+ () => _listResponseItemsSend(context, agentName, conversationId, responseId, options),
462
+ _listResponseItemsDeserialize,
463
+ ["200"],
464
+ {
465
+ itemName: "data",
466
+ apiVersion: context.apiVersion ?? "v1",
467
+ cursorFieldName: "last_id",
468
+ hasMoreFieldName: "has_more",
469
+ nextPageRequestOptions: {
470
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
471
+ headers: {
472
+ "foundry-features": "VoiceAgents=V1Preview",
473
+ ...options.requestOptions?.headers
474
+ }
475
+ }
476
+ }
477
+ );
478
+ }
479
+ function _getResponseSend(context, agentName, conversationId, responseId, options = { requestOptions: {} }) {
480
+ const foundryFeatures = "VoiceAgents=V1Preview";
481
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
482
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/responses/{response_id}{?api%2Dversion}",
483
+ {
484
+ agent_name: agentName,
485
+ conversation_id: conversationId,
486
+ response_id: responseId,
487
+ "api%2Dversion": context.apiVersion ?? "v1"
488
+ },
489
+ {
490
+ allowReserved: options?.requestOptions?.skipUrlEncoding
491
+ }
492
+ );
493
+ return context.path(path).get({
494
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
495
+ headers: {
496
+ "foundry-features": foundryFeatures,
497
+ accept: "application/json",
498
+ ...options.requestOptions?.headers
499
+ }
500
+ });
501
+ }
502
+ async function _getResponseDeserialize(result) {
503
+ const expectedStatuses = ["200"];
504
+ if (!expectedStatuses.includes(result.status)) {
505
+ const error = (0, import_core_client.createRestError)(result);
506
+ if (result.body) {
507
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
508
+ }
509
+ throw error;
510
+ }
511
+ return (0, import_models.voiceResponseDeserializer)(result.body);
512
+ }
513
+ async function getResponse(context, agentName, conversationId, responseId, options = { requestOptions: {} }) {
514
+ const result = await _getResponseSend(context, agentName, conversationId, responseId, options);
515
+ return _getResponseDeserialize(result);
516
+ }
517
+ function _listResponsesSend(context, agentName, conversationId, options = { requestOptions: {} }) {
518
+ const foundryFeatures = "VoiceAgents=V1Preview";
519
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
520
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/responses{?limit,order,after,before,api%2Dversion}",
521
+ {
522
+ agent_name: agentName,
523
+ conversation_id: conversationId,
524
+ limit: options?.limit,
525
+ order: options?.order,
526
+ after: options?.after,
527
+ before: options?.before,
528
+ "api%2Dversion": context.apiVersion ?? "v1"
529
+ },
530
+ {
531
+ allowReserved: options?.requestOptions?.skipUrlEncoding
532
+ }
533
+ );
534
+ return context.path(path).get({
535
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
536
+ headers: {
537
+ "foundry-features": foundryFeatures,
538
+ accept: "application/json",
539
+ ...options.requestOptions?.headers
540
+ }
541
+ });
542
+ }
543
+ async function _listResponsesDeserialize(result) {
544
+ const expectedStatuses = ["200"];
545
+ if (!expectedStatuses.includes(result.status)) {
546
+ const error = (0, import_core_client.createRestError)(result);
547
+ if (result.body) {
548
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
549
+ }
550
+ throw error;
551
+ }
552
+ return (0, import_models._agentsPagedResultVoiceResponseDeserializer)(result.body);
553
+ }
554
+ function listResponses(context, agentName, conversationId, options = { requestOptions: {} }) {
555
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
556
+ context,
557
+ () => _listResponsesSend(context, agentName, conversationId, options),
558
+ _listResponsesDeserialize,
559
+ ["200"],
560
+ {
561
+ itemName: "data",
562
+ apiVersion: context.apiVersion ?? "v1",
563
+ cursorFieldName: "last_id",
564
+ hasMoreFieldName: "has_more",
565
+ nextPageRequestOptions: {
566
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
567
+ headers: {
568
+ "foundry-features": "VoiceAgents=V1Preview",
569
+ ...options.requestOptions?.headers
570
+ }
571
+ }
572
+ }
573
+ );
574
+ }
575
+ function _$deleteSend(context, agentName, conversationId, options = { requestOptions: {} }) {
576
+ const foundryFeatures = "VoiceAgents=V1Preview";
577
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
578
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}{?api%2Dversion}",
579
+ {
580
+ agent_name: agentName,
581
+ conversation_id: conversationId,
582
+ "api%2Dversion": context.apiVersion ?? "v1"
583
+ },
584
+ {
585
+ allowReserved: options?.requestOptions?.skipUrlEncoding
586
+ }
587
+ );
588
+ return context.path(path).delete({
589
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
590
+ headers: { "foundry-features": foundryFeatures, ...options.requestOptions?.headers }
591
+ });
592
+ }
593
+ async function _$deleteDeserialize(result) {
594
+ const expectedStatuses = ["204"];
595
+ if (!expectedStatuses.includes(result.status)) {
596
+ const error = (0, import_core_client.createRestError)(result);
597
+ if (result.body) {
598
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
599
+ }
600
+ throw error;
601
+ }
602
+ return;
603
+ }
604
+ async function $delete(context, agentName, conversationId, options = { requestOptions: {} }) {
605
+ const result = await _$deleteSend(context, agentName, conversationId, options);
606
+ return _$deleteDeserialize(result);
607
+ }
608
+ function _getSend(context, agentName, conversationId, options = { requestOptions: {} }) {
609
+ const foundryFeatures = "VoiceAgents=V1Preview";
610
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
611
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}{?api%2Dversion}",
612
+ {
613
+ agent_name: agentName,
614
+ conversation_id: conversationId,
615
+ "api%2Dversion": context.apiVersion ?? "v1"
616
+ },
617
+ {
618
+ allowReserved: options?.requestOptions?.skipUrlEncoding
619
+ }
620
+ );
621
+ return context.path(path).get({
622
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
623
+ headers: {
624
+ "foundry-features": foundryFeatures,
625
+ accept: "application/json",
626
+ ...options.requestOptions?.headers
627
+ }
628
+ });
629
+ }
630
+ async function _getDeserialize(result) {
631
+ const expectedStatuses = ["200"];
632
+ if (!expectedStatuses.includes(result.status)) {
633
+ const error = (0, import_core_client.createRestError)(result);
634
+ if (result.body) {
635
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
636
+ }
637
+ throw error;
638
+ }
639
+ return (0, import_models.voiceConversationDeserializer)(result.body);
640
+ }
641
+ async function get(context, agentName, conversationId, options = { requestOptions: {} }) {
642
+ const result = await _getSend(context, agentName, conversationId, options);
643
+ return _getDeserialize(result);
644
+ }
645
+ function _listSend(context, agentName, options = { requestOptions: {} }) {
646
+ const foundryFeatures = "VoiceAgents=V1Preview";
647
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
648
+ "/agents/{agent_name}/endpoint/protocols/voice/conversations{?limit,order,after,before,api%2Dversion}",
649
+ {
650
+ agent_name: agentName,
651
+ limit: options?.limit,
652
+ order: options?.order,
653
+ after: options?.after,
654
+ before: options?.before,
655
+ "api%2Dversion": context.apiVersion ?? "v1"
656
+ },
657
+ {
658
+ allowReserved: options?.requestOptions?.skipUrlEncoding
659
+ }
660
+ );
661
+ return context.path(path).get({
662
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
663
+ headers: {
664
+ "foundry-features": foundryFeatures,
665
+ accept: "application/json",
666
+ ...options.requestOptions?.headers
667
+ }
668
+ });
669
+ }
670
+ async function _listDeserialize(result) {
671
+ const expectedStatuses = ["200"];
672
+ if (!expectedStatuses.includes(result.status)) {
673
+ const error = (0, import_core_client.createRestError)(result);
674
+ if (result.body) {
675
+ error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
676
+ }
677
+ throw error;
678
+ }
679
+ return (0, import_models._agentsPagedResultVoiceConversationDeserializer)(result.body);
680
+ }
681
+ function list(context, agentName, options = { requestOptions: {} }) {
682
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
683
+ context,
684
+ () => _listSend(context, agentName, options),
685
+ _listDeserialize,
686
+ ["200"],
687
+ {
688
+ itemName: "data",
689
+ apiVersion: context.apiVersion ?? "v1",
690
+ cursorFieldName: "last_id",
691
+ hasMoreFieldName: "has_more",
692
+ nextPageRequestOptions: {
693
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
694
+ headers: {
695
+ "foundry-features": "VoiceAgents=V1Preview",
696
+ ...options.requestOptions?.headers
697
+ }
698
+ }
699
+ }
700
+ );
701
+ }
702
+ // Annotate the CommonJS export names for ESM import in node:
703
+ 0 && (module.exports = {
704
+ $delete,
705
+ _$deleteDeserialize,
706
+ _$deleteSend,
707
+ _downloadAudioDeserialize,
708
+ _downloadAudioItemDeserialize,
709
+ _downloadAudioItemSend,
710
+ _downloadAudioSend,
711
+ _downloadGeneratedAudioItemDeserialize,
712
+ _downloadGeneratedAudioItemSend,
713
+ _getAudioDeserialize,
714
+ _getAudioItemDeserialize,
715
+ _getAudioItemSend,
716
+ _getAudioSend,
717
+ _getDeserialize,
718
+ _getGeneratedAudioItemDeserialize,
719
+ _getGeneratedAudioItemSend,
720
+ _getItemDeserialize,
721
+ _getItemSend,
722
+ _getResponseDeserialize,
723
+ _getResponseSend,
724
+ _getSend,
725
+ _listDeserialize,
726
+ _listItemsDeserialize,
727
+ _listItemsSend,
728
+ _listResponseItemsDeserialize,
729
+ _listResponseItemsSend,
730
+ _listResponsesDeserialize,
731
+ _listResponsesSend,
732
+ _listSend,
733
+ downloadAudio,
734
+ downloadAudioItem,
735
+ downloadGeneratedAudioItem,
736
+ get,
737
+ getAudio,
738
+ getAudioItem,
739
+ getGeneratedAudioItem,
740
+ getItem,
741
+ getResponse,
742
+ list,
743
+ listItems,
744
+ listResponseItems,
745
+ listResponses
746
+ });
747
+ //# sourceMappingURL=operations.js.map