@sinch/voice 1.4.3 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (573) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/models/index.d.ts +1 -0
  5. package/dist/models/index.js +24 -0
  6. package/dist/models/index.js.map +1 -1
  7. package/dist/models/v1/helper.js +0 -4
  8. package/dist/models/v1/helper.js.map +1 -1
  9. package/dist/models/v1/requests/calls/calls-request-data.d.ts +3 -3
  10. package/dist/models/v1/svaml-request-body/index.d.ts +1 -1
  11. package/dist/models/v1/svaml-request-body/svaml-request-body.d.ts +16 -1
  12. package/dist/models/v2/batch-details/batch-details.d.ts +17 -0
  13. package/dist/models/v2/batch-details/batch-details.js +3 -0
  14. package/dist/models/v2/batch-details/batch-details.js.map +1 -0
  15. package/dist/models/v2/batch-details/index.d.ts +1 -0
  16. package/dist/models/v2/batch-details/index.js +3 -0
  17. package/dist/models/v2/batch-details/index.js.map +1 -0
  18. package/dist/models/v2/batch-options/batch-options.d.ts +9 -0
  19. package/dist/models/v2/batch-options/batch-options.js +3 -0
  20. package/dist/models/v2/batch-options/batch-options.js.map +1 -0
  21. package/dist/models/v2/batch-options/index.d.ts +1 -0
  22. package/dist/models/v2/batch-options/index.js +3 -0
  23. package/dist/models/v2/batch-options/index.js.map +1 -0
  24. package/dist/models/v2/batch-request/batch-request.d.ts +16 -0
  25. package/dist/models/v2/batch-request/batch-request.js +3 -0
  26. package/dist/models/v2/batch-request/batch-request.js.map +1 -0
  27. package/dist/models/v2/batch-request/index.d.ts +1 -0
  28. package/dist/models/v2/batch-request/index.js +3 -0
  29. package/dist/models/v2/batch-request/index.js.map +1 -0
  30. package/dist/models/v2/batch-response/batch-response.d.ts +11 -0
  31. package/dist/models/v2/batch-response/batch-response.js +3 -0
  32. package/dist/models/v2/batch-response/batch-response.js.map +1 -0
  33. package/dist/models/v2/batch-response/index.d.ts +1 -0
  34. package/dist/models/v2/batch-response/index.js +3 -0
  35. package/dist/models/v2/batch-response/index.js.map +1 -0
  36. package/dist/models/v2/batch-stop-response/batch-stop-response.d.ts +9 -0
  37. package/dist/models/v2/batch-stop-response/batch-stop-response.js +3 -0
  38. package/dist/models/v2/batch-stop-response/batch-stop-response.js.map +1 -0
  39. package/dist/models/v2/batch-stop-response/index.d.ts +1 -0
  40. package/dist/models/v2/batch-stop-response/index.js +3 -0
  41. package/dist/models/v2/batch-stop-response/index.js.map +1 -0
  42. package/dist/models/v2/batch-summary/batch-summary.d.ts +23 -0
  43. package/dist/models/v2/batch-summary/batch-summary.js +3 -0
  44. package/dist/models/v2/batch-summary/batch-summary.js.map +1 -0
  45. package/dist/models/v2/batch-summary/index.d.ts +1 -0
  46. package/dist/models/v2/batch-summary/index.js +3 -0
  47. package/dist/models/v2/batch-summary/index.js.map +1 -0
  48. package/dist/models/v2/call/call.d.ts +103 -0
  49. package/dist/models/v2/call/call.js +3 -0
  50. package/dist/models/v2/call/call.js.map +1 -0
  51. package/dist/models/v2/call/index.d.ts +1 -0
  52. package/dist/models/v2/call/index.js +3 -0
  53. package/dist/models/v2/call/index.js.map +1 -0
  54. package/dist/models/v2/call-behaviors/call-behaviors.d.ts +34 -0
  55. package/dist/models/v2/call-behaviors/call-behaviors.js +3 -0
  56. package/dist/models/v2/call-behaviors/call-behaviors.js.map +1 -0
  57. package/dist/models/v2/call-behaviors/index.d.ts +1 -0
  58. package/dist/models/v2/call-behaviors/index.js +3 -0
  59. package/dist/models/v2/call-behaviors/index.js.map +1 -0
  60. package/dist/models/v2/call-destination/call-destination.d.ts +8 -0
  61. package/dist/models/v2/call-destination/call-destination.js +3 -0
  62. package/dist/models/v2/call-destination/call-destination.js.map +1 -0
  63. package/dist/models/v2/call-destination/index.d.ts +1 -0
  64. package/dist/models/v2/call-destination/index.js +3 -0
  65. package/dist/models/v2/call-destination/index.js.map +1 -0
  66. package/dist/models/v2/call-headers-inner/call-headers-inner.d.ts +10 -0
  67. package/dist/models/v2/call-headers-inner/call-headers-inner.js +8 -0
  68. package/dist/models/v2/call-headers-inner/call-headers-inner.js.map +1 -0
  69. package/dist/models/v2/call-headers-inner/index.d.ts +1 -0
  70. package/dist/models/v2/call-headers-inner/index.js +3 -0
  71. package/dist/models/v2/call-headers-inner/index.js.map +1 -0
  72. package/dist/models/v2/call-origin/call-origin.d.ts +6 -0
  73. package/dist/models/v2/call-origin/call-origin.js +3 -0
  74. package/dist/models/v2/call-origin/call-origin.js.map +1 -0
  75. package/dist/models/v2/call-origin/index.d.ts +1 -0
  76. package/dist/models/v2/call-origin/index.js +3 -0
  77. package/dist/models/v2/call-origin/index.js.map +1 -0
  78. package/dist/models/v2/call-patch-request/call-patch-request.d.ts +8 -0
  79. package/dist/models/v2/call-patch-request/call-patch-request.js +3 -0
  80. package/dist/models/v2/call-patch-request/call-patch-request.js.map +1 -0
  81. package/dist/models/v2/call-patch-request/index.d.ts +1 -0
  82. package/dist/models/v2/call-patch-request/index.js +3 -0
  83. package/dist/models/v2/call-patch-request/index.js.map +1 -0
  84. package/dist/models/v2/call-request/call-request.d.ts +8 -0
  85. package/dist/models/v2/call-request/call-request.js +3 -0
  86. package/dist/models/v2/call-request/call-request.js.map +1 -0
  87. package/dist/models/v2/call-request/index.d.ts +1 -0
  88. package/dist/models/v2/call-request/index.js +3 -0
  89. package/dist/models/v2/call-request/index.js.map +1 -0
  90. package/dist/models/v2/call-response/call-response.d.ts +13 -0
  91. package/dist/models/v2/call-response/call-response.js +3 -0
  92. package/dist/models/v2/call-response/call-response.js.map +1 -0
  93. package/dist/models/v2/call-response/index.d.ts +1 -0
  94. package/dist/models/v2/call-response/index.js +3 -0
  95. package/dist/models/v2/call-response/index.js.map +1 -0
  96. package/dist/models/v2/calls-list/calls-list.d.ts +14 -0
  97. package/dist/models/v2/calls-list/calls-list.js +3 -0
  98. package/dist/models/v2/calls-list/calls-list.js.map +1 -0
  99. package/dist/models/v2/calls-list/index.d.ts +1 -0
  100. package/dist/models/v2/calls-list/index.js +3 -0
  101. package/dist/models/v2/calls-list/index.js.map +1 -0
  102. package/dist/models/v2/create-service/create-service.d.ts +17 -0
  103. package/dist/models/v2/create-service/create-service.js +3 -0
  104. package/dist/models/v2/create-service/create-service.js.map +1 -0
  105. package/dist/models/v2/create-service/index.d.ts +1 -0
  106. package/dist/models/v2/create-service/index.js +3 -0
  107. package/dist/models/v2/create-service/index.js.map +1 -0
  108. package/dist/models/v2/describe-svaml-request/describe-svaml-request.d.ts +8 -0
  109. package/dist/models/v2/describe-svaml-request/describe-svaml-request.js +3 -0
  110. package/dist/models/v2/describe-svaml-request/describe-svaml-request.js.map +1 -0
  111. package/dist/models/v2/describe-svaml-request/index.d.ts +1 -0
  112. package/dist/models/v2/describe-svaml-request/index.js +3 -0
  113. package/dist/models/v2/describe-svaml-request/index.js.map +1 -0
  114. package/dist/models/v2/enums.d.ts +14 -0
  115. package/dist/models/v2/enums.js +3 -0
  116. package/dist/models/v2/enums.js.map +1 -0
  117. package/dist/models/v2/index.d.ts +60 -0
  118. package/dist/models/v2/index.js +77 -0
  119. package/dist/models/v2/index.js.map +1 -0
  120. package/dist/models/v2/menu-item/index.d.ts +1 -0
  121. package/dist/models/v2/menu-item/index.js +3 -0
  122. package/dist/models/v2/menu-item/index.js.map +1 -0
  123. package/dist/models/v2/menu-item/menu-item.d.ts +32 -0
  124. package/dist/models/v2/menu-item/menu-item.js +6 -0
  125. package/dist/models/v2/menu-item/menu-item.js.map +1 -0
  126. package/dist/models/v2/menu-prompt/index.d.ts +1 -0
  127. package/dist/models/v2/menu-prompt/index.js +3 -0
  128. package/dist/models/v2/menu-prompt/index.js.map +1 -0
  129. package/dist/models/v2/menu-prompt/menu-prompt.d.ts +10 -0
  130. package/dist/models/v2/menu-prompt/menu-prompt.js +3 -0
  131. package/dist/models/v2/menu-prompt/menu-prompt.js.map +1 -0
  132. package/dist/models/v2/message/index.d.ts +1 -0
  133. package/dist/models/v2/message/index.js +3 -0
  134. package/dist/models/v2/message/index.js.map +1 -0
  135. package/dist/models/v2/message/message.d.ts +6 -0
  136. package/dist/models/v2/message/message.js +3 -0
  137. package/dist/models/v2/message/message.js.map +1 -0
  138. package/dist/models/v2/money/index.d.ts +1 -0
  139. package/dist/models/v2/money/index.js +3 -0
  140. package/dist/models/v2/money/index.js.map +1 -0
  141. package/dist/models/v2/money/money.d.ts +9 -0
  142. package/dist/models/v2/money/money.js +3 -0
  143. package/dist/models/v2/money/money.js.map +1 -0
  144. package/dist/models/v2/pagination-links/index.d.ts +1 -0
  145. package/dist/models/v2/pagination-links/index.js +3 -0
  146. package/dist/models/v2/pagination-links/index.js.map +1 -0
  147. package/dist/models/v2/pagination-links/pagination-links.d.ts +22 -0
  148. package/dist/models/v2/pagination-links/pagination-links.js +3 -0
  149. package/dist/models/v2/pagination-links/pagination-links.js.map +1 -0
  150. package/dist/models/v2/pagination-meta/index.d.ts +1 -0
  151. package/dist/models/v2/pagination-meta/index.js +3 -0
  152. package/dist/models/v2/pagination-meta/index.js.map +1 -0
  153. package/dist/models/v2/pagination-meta/pagination-meta.d.ts +9 -0
  154. package/dist/models/v2/pagination-meta/pagination-meta.js +3 -0
  155. package/dist/models/v2/pagination-meta/pagination-meta.js.map +1 -0
  156. package/dist/models/v2/phone/index.d.ts +1 -0
  157. package/dist/models/v2/phone/index.js +3 -0
  158. package/dist/models/v2/phone/index.js.map +1 -0
  159. package/dist/models/v2/phone/phone.d.ts +11 -0
  160. package/dist/models/v2/phone/phone.js +3 -0
  161. package/dist/models/v2/phone/phone.js.map +1 -0
  162. package/dist/models/v2/phone-details/index.d.ts +1 -0
  163. package/dist/models/v2/phone-details/index.js +3 -0
  164. package/dist/models/v2/phone-details/index.js.map +1 -0
  165. package/dist/models/v2/phone-details/phone-details.d.ts +6 -0
  166. package/dist/models/v2/phone-details/phone-details.js +6 -0
  167. package/dist/models/v2/phone-details/phone-details.js.map +1 -0
  168. package/dist/models/v2/play/index.d.ts +1 -0
  169. package/dist/models/v2/play/index.js +3 -0
  170. package/dist/models/v2/play/index.js.map +1 -0
  171. package/dist/models/v2/play/play.d.ts +4 -0
  172. package/dist/models/v2/play/play.js +3 -0
  173. package/dist/models/v2/play/play.js.map +1 -0
  174. package/dist/models/v2/play-message/index.d.ts +1 -0
  175. package/dist/models/v2/play-message/index.js +3 -0
  176. package/dist/models/v2/play-message/index.js.map +1 -0
  177. package/dist/models/v2/play-message/play-message.d.ts +11 -0
  178. package/dist/models/v2/play-message/play-message.js +3 -0
  179. package/dist/models/v2/play-message/play-message.js.map +1 -0
  180. package/dist/models/v2/recording-destination-type/index.d.ts +1 -0
  181. package/dist/models/v2/recording-destination-type/index.js +3 -0
  182. package/dist/models/v2/recording-destination-type/index.js.map +1 -0
  183. package/dist/models/v2/recording-destination-type/recording-destination-type.d.ts +4 -0
  184. package/dist/models/v2/recording-destination-type/recording-destination-type.js +3 -0
  185. package/dist/models/v2/recording-destination-type/recording-destination-type.js.map +1 -0
  186. package/dist/models/v2/recording-format-type/index.d.ts +1 -0
  187. package/dist/models/v2/recording-format-type/index.js +3 -0
  188. package/dist/models/v2/recording-format-type/index.js.map +1 -0
  189. package/dist/models/v2/recording-format-type/recording-format-type.d.ts +4 -0
  190. package/dist/models/v2/recording-format-type/recording-format-type.js +3 -0
  191. package/dist/models/v2/recording-format-type/recording-format-type.js.map +1 -0
  192. package/dist/models/v2/recording-options/index.d.ts +1 -0
  193. package/dist/models/v2/recording-options/index.js +3 -0
  194. package/dist/models/v2/recording-options/index.js.map +1 -0
  195. package/dist/models/v2/recording-options/recording-options.d.ts +21 -0
  196. package/dist/models/v2/recording-options/recording-options.js +3 -0
  197. package/dist/models/v2/recording-options/recording-options.js.map +1 -0
  198. package/dist/models/v2/recording-type/index.d.ts +1 -0
  199. package/dist/models/v2/recording-type/index.js +3 -0
  200. package/dist/models/v2/recording-type/index.js.map +1 -0
  201. package/dist/models/v2/recording-type/recording-type.d.ts +4 -0
  202. package/dist/models/v2/recording-type/recording-type.js +3 -0
  203. package/dist/models/v2/recording-type/recording-type.js.map +1 -0
  204. package/dist/models/v2/requests/batches/batches-request-data.d.ts +21 -0
  205. package/dist/models/v2/requests/batches/batches-request-data.js +3 -0
  206. package/dist/models/v2/requests/batches/batches-request-data.js.map +1 -0
  207. package/dist/models/v2/requests/calls/calls-request-data.d.ts +87 -0
  208. package/dist/models/v2/requests/calls/calls-request-data.js +3 -0
  209. package/dist/models/v2/requests/calls/calls-request-data.js.map +1 -0
  210. package/dist/models/v2/requests/index.d.ts +5 -0
  211. package/dist/models/v2/requests/index.js +22 -0
  212. package/dist/models/v2/requests/index.js.map +1 -0
  213. package/dist/models/v2/requests/services/services-request-data.d.ts +37 -0
  214. package/dist/models/v2/requests/services/services-request-data.js +3 -0
  215. package/dist/models/v2/requests/services/services-request-data.js.map +1 -0
  216. package/dist/models/v2/requests/sessions/sessions-request-data.d.ts +4 -0
  217. package/dist/models/v2/requests/sessions/sessions-request-data.js +3 -0
  218. package/dist/models/v2/requests/sessions/sessions-request-data.js.map +1 -0
  219. package/dist/models/v2/requests/svaml/svaml-request-data.d.ts +10 -0
  220. package/dist/models/v2/requests/svaml/svaml-request-data.js +3 -0
  221. package/dist/models/v2/requests/svaml/svaml-request-data.js.map +1 -0
  222. package/dist/models/v2/say/index.d.ts +1 -0
  223. package/dist/models/v2/say/index.js +3 -0
  224. package/dist/models/v2/say/index.js.map +1 -0
  225. package/dist/models/v2/say/say.d.ts +9 -0
  226. package/dist/models/v2/say/say.js +3 -0
  227. package/dist/models/v2/say/say.js.map +1 -0
  228. package/dist/models/v2/say-message/index.d.ts +1 -0
  229. package/dist/models/v2/say-message/index.js +3 -0
  230. package/dist/models/v2/say-message/index.js.map +1 -0
  231. package/dist/models/v2/say-message/say-message.d.ts +11 -0
  232. package/dist/models/v2/say-message/say-message.js +3 -0
  233. package/dist/models/v2/say-message/say-message.js.map +1 -0
  234. package/dist/models/v2/service-list/index.d.ts +1 -0
  235. package/dist/models/v2/service-list/index.js +3 -0
  236. package/dist/models/v2/service-list/index.js.map +1 -0
  237. package/dist/models/v2/service-list/service-list.d.ts +14 -0
  238. package/dist/models/v2/service-list/service-list.js +3 -0
  239. package/dist/models/v2/service-list/service-list.js.map +1 -0
  240. package/dist/models/v2/service-response/index.d.ts +1 -0
  241. package/dist/models/v2/service-response/index.js +3 -0
  242. package/dist/models/v2/service-response/index.js.map +1 -0
  243. package/dist/models/v2/service-response/service-response.d.ts +29 -0
  244. package/dist/models/v2/service-response/service-response.js +3 -0
  245. package/dist/models/v2/service-response/service-response.js.map +1 -0
  246. package/dist/models/v2/service-short-response/index.d.ts +1 -0
  247. package/dist/models/v2/service-short-response/index.js +3 -0
  248. package/dist/models/v2/service-short-response/index.js.map +1 -0
  249. package/dist/models/v2/service-short-response/service-short-response.d.ts +26 -0
  250. package/dist/models/v2/service-short-response/service-short-response.js +3 -0
  251. package/dist/models/v2/service-short-response/service-short-response.js.map +1 -0
  252. package/dist/models/v2/session/index.d.ts +1 -0
  253. package/dist/models/v2/session/index.js +3 -0
  254. package/dist/models/v2/session/index.js.map +1 -0
  255. package/dist/models/v2/session/session.d.ts +26 -0
  256. package/dist/models/v2/session/session.js +3 -0
  257. package/dist/models/v2/session/session.js.map +1 -0
  258. package/dist/models/v2/session-state/index.d.ts +1 -0
  259. package/dist/models/v2/session-state/index.js +3 -0
  260. package/dist/models/v2/session-state/index.js.map +1 -0
  261. package/dist/models/v2/session-state/session-state.d.ts +11 -0
  262. package/dist/models/v2/session-state/session-state.js +3 -0
  263. package/dist/models/v2/session-state/session-state.js.map +1 -0
  264. package/dist/models/v2/sip/index.d.ts +1 -0
  265. package/dist/models/v2/sip/index.js +3 -0
  266. package/dist/models/v2/sip/index.js.map +1 -0
  267. package/dist/models/v2/sip/sip.d.ts +8 -0
  268. package/dist/models/v2/sip/sip.js +3 -0
  269. package/dist/models/v2/sip/sip.js.map +1 -0
  270. package/dist/models/v2/sip-call-headers-inner/index.d.ts +1 -0
  271. package/dist/models/v2/sip-call-headers-inner/index.js +3 -0
  272. package/dist/models/v2/sip-call-headers-inner/index.js.map +1 -0
  273. package/dist/models/v2/sip-call-headers-inner/sip-call-headers-inner.d.ts +8 -0
  274. package/dist/models/v2/sip-call-headers-inner/sip-call-headers-inner.js +6 -0
  275. package/dist/models/v2/sip-call-headers-inner/sip-call-headers-inner.js.map +1 -0
  276. package/dist/models/v2/sip-details/index.d.ts +1 -0
  277. package/dist/models/v2/sip-details/index.js +3 -0
  278. package/dist/models/v2/sip-details/index.js.map +1 -0
  279. package/dist/models/v2/sip-details/sip-details.d.ts +12 -0
  280. package/dist/models/v2/sip-details/sip-details.js +6 -0
  281. package/dist/models/v2/sip-details/sip-details.js.map +1 -0
  282. package/dist/models/v2/sip-from/index.d.ts +1 -0
  283. package/dist/models/v2/sip-from/index.js +3 -0
  284. package/dist/models/v2/sip-from/index.js.map +1 -0
  285. package/dist/models/v2/sip-from/sip-from.d.ts +8 -0
  286. package/dist/models/v2/sip-from/sip-from.js +3 -0
  287. package/dist/models/v2/sip-from/sip-from.js.map +1 -0
  288. package/dist/models/v2/sip-from-details/index.d.ts +1 -0
  289. package/dist/models/v2/sip-from-details/index.js +3 -0
  290. package/dist/models/v2/sip-from-details/index.js.map +1 -0
  291. package/dist/models/v2/sip-from-details/sip-from-details.d.ts +8 -0
  292. package/dist/models/v2/sip-from-details/sip-from-details.js +6 -0
  293. package/dist/models/v2/sip-from-details/sip-from-details.js.map +1 -0
  294. package/dist/models/v2/stream/index.d.ts +1 -0
  295. package/dist/models/v2/stream/index.js +3 -0
  296. package/dist/models/v2/stream/index.js.map +1 -0
  297. package/dist/models/v2/stream/stream.d.ts +11 -0
  298. package/dist/models/v2/stream/stream.js +3 -0
  299. package/dist/models/v2/stream/stream.js.map +1 -0
  300. package/dist/models/v2/stream-details/index.d.ts +1 -0
  301. package/dist/models/v2/stream-details/index.js +3 -0
  302. package/dist/models/v2/stream-details/index.js.map +1 -0
  303. package/dist/models/v2/stream-details/stream-details.d.ts +10 -0
  304. package/dist/models/v2/stream-details/stream-details.js +3 -0
  305. package/dist/models/v2/stream-details/stream-details.js.map +1 -0
  306. package/dist/models/v2/stream-options/index.d.ts +1 -0
  307. package/dist/models/v2/stream-options/index.js +3 -0
  308. package/dist/models/v2/stream-options/index.js.map +1 -0
  309. package/dist/models/v2/stream-options/stream-options.d.ts +10 -0
  310. package/dist/models/v2/stream-options/stream-options.js +3 -0
  311. package/dist/models/v2/stream-options/stream-options.js.map +1 -0
  312. package/dist/models/v2/svaml-commands/amd-command/amd-command.d.ts +10 -0
  313. package/dist/models/v2/svaml-commands/amd-command/amd-command.js +3 -0
  314. package/dist/models/v2/svaml-commands/amd-command/amd-command.js.map +1 -0
  315. package/dist/models/v2/svaml-commands/amd-command/amd-events.d.ts +14 -0
  316. package/dist/models/v2/svaml-commands/amd-command/amd-events.js +3 -0
  317. package/dist/models/v2/svaml-commands/amd-command/amd-events.js.map +1 -0
  318. package/dist/models/v2/svaml-commands/amd-command/index.d.ts +2 -0
  319. package/dist/models/v2/svaml-commands/amd-command/index.js +3 -0
  320. package/dist/models/v2/svaml-commands/amd-command/index.js.map +1 -0
  321. package/dist/models/v2/svaml-commands/answer-command/answer-command.d.ts +7 -0
  322. package/dist/models/v2/svaml-commands/answer-command/answer-command.js +3 -0
  323. package/dist/models/v2/svaml-commands/answer-command/answer-command.js.map +1 -0
  324. package/dist/models/v2/svaml-commands/answer-command/index.d.ts +1 -0
  325. package/dist/models/v2/svaml-commands/answer-command/index.js +3 -0
  326. package/dist/models/v2/svaml-commands/answer-command/index.js.map +1 -0
  327. package/dist/models/v2/svaml-commands/bridge-call-command/bridge-call-command.d.ts +11 -0
  328. package/dist/models/v2/svaml-commands/bridge-call-command/bridge-call-command.js +6 -0
  329. package/dist/models/v2/svaml-commands/bridge-call-command/bridge-call-command.js.map +1 -0
  330. package/dist/models/v2/svaml-commands/bridge-call-command/index.d.ts +1 -0
  331. package/dist/models/v2/svaml-commands/bridge-call-command/index.js +3 -0
  332. package/dist/models/v2/svaml-commands/bridge-call-command/index.js.map +1 -0
  333. package/dist/models/v2/svaml-commands/dial-command/call-events.d.ts +18 -0
  334. package/dist/models/v2/svaml-commands/dial-command/call-events.js +3 -0
  335. package/dist/models/v2/svaml-commands/dial-command/call-events.js.map +1 -0
  336. package/dist/models/v2/svaml-commands/dial-command/dial-command.d.ts +24 -0
  337. package/dist/models/v2/svaml-commands/dial-command/dial-command.js +6 -0
  338. package/dist/models/v2/svaml-commands/dial-command/dial-command.js.map +1 -0
  339. package/dist/models/v2/svaml-commands/dial-command/index.d.ts +2 -0
  340. package/dist/models/v2/svaml-commands/dial-command/index.js +3 -0
  341. package/dist/models/v2/svaml-commands/dial-command/index.js.map +1 -0
  342. package/dist/models/v2/svaml-commands/goto-menu-command/goto-menu-command.d.ts +9 -0
  343. package/dist/models/v2/svaml-commands/goto-menu-command/goto-menu-command.js +3 -0
  344. package/dist/models/v2/svaml-commands/goto-menu-command/goto-menu-command.js.map +1 -0
  345. package/dist/models/v2/svaml-commands/goto-menu-command/index.d.ts +1 -0
  346. package/dist/models/v2/svaml-commands/goto-menu-command/index.js +3 -0
  347. package/dist/models/v2/svaml-commands/goto-menu-command/index.js.map +1 -0
  348. package/dist/models/v2/svaml-commands/hangup-command/hangup-command.d.ts +11 -0
  349. package/dist/models/v2/svaml-commands/hangup-command/hangup-command.js +6 -0
  350. package/dist/models/v2/svaml-commands/hangup-command/hangup-command.js.map +1 -0
  351. package/dist/models/v2/svaml-commands/hangup-command/index.d.ts +1 -0
  352. package/dist/models/v2/svaml-commands/hangup-command/index.js +3 -0
  353. package/dist/models/v2/svaml-commands/hangup-command/index.js.map +1 -0
  354. package/dist/models/v2/svaml-commands/index.d.ts +14 -0
  355. package/dist/models/v2/svaml-commands/index.js +31 -0
  356. package/dist/models/v2/svaml-commands/index.js.map +1 -0
  357. package/dist/models/v2/svaml-commands/menu-command/index.d.ts +1 -0
  358. package/dist/models/v2/svaml-commands/menu-command/index.js +3 -0
  359. package/dist/models/v2/svaml-commands/menu-command/index.js.map +1 -0
  360. package/dist/models/v2/svaml-commands/menu-command/menu-command.d.ts +14 -0
  361. package/dist/models/v2/svaml-commands/menu-command/menu-command.js +3 -0
  362. package/dist/models/v2/svaml-commands/menu-command/menu-command.js.map +1 -0
  363. package/dist/models/v2/svaml-commands/messages-command/index.d.ts +2 -0
  364. package/dist/models/v2/svaml-commands/messages-command/index.js +3 -0
  365. package/dist/models/v2/svaml-commands/messages-command/index.js.map +1 -0
  366. package/dist/models/v2/svaml-commands/messages-command/message-events.d.ts +8 -0
  367. package/dist/models/v2/svaml-commands/messages-command/message-events.js +3 -0
  368. package/dist/models/v2/svaml-commands/messages-command/message-events.js.map +1 -0
  369. package/dist/models/v2/svaml-commands/messages-command/messages-command.d.ts +17 -0
  370. package/dist/models/v2/svaml-commands/messages-command/messages-command.js +6 -0
  371. package/dist/models/v2/svaml-commands/messages-command/messages-command.js.map +1 -0
  372. package/dist/models/v2/svaml-commands/pause-command/index.d.ts +1 -0
  373. package/dist/models/v2/svaml-commands/pause-command/index.js +3 -0
  374. package/dist/models/v2/svaml-commands/pause-command/index.js.map +1 -0
  375. package/dist/models/v2/svaml-commands/pause-command/pause-command.d.ts +9 -0
  376. package/dist/models/v2/svaml-commands/pause-command/pause-command.js +3 -0
  377. package/dist/models/v2/svaml-commands/pause-command/pause-command.js.map +1 -0
  378. package/dist/models/v2/svaml-commands/start-recording-command/index.d.ts +2 -0
  379. package/dist/models/v2/svaml-commands/start-recording-command/index.js +3 -0
  380. package/dist/models/v2/svaml-commands/start-recording-command/index.js.map +1 -0
  381. package/dist/models/v2/svaml-commands/start-recording-command/recording-events.d.ts +10 -0
  382. package/dist/models/v2/svaml-commands/start-recording-command/recording-events.js +3 -0
  383. package/dist/models/v2/svaml-commands/start-recording-command/recording-events.js.map +1 -0
  384. package/dist/models/v2/svaml-commands/start-recording-command/start-recording-command.d.ts +17 -0
  385. package/dist/models/v2/svaml-commands/start-recording-command/start-recording-command.js +6 -0
  386. package/dist/models/v2/svaml-commands/start-recording-command/start-recording-command.js.map +1 -0
  387. package/dist/models/v2/svaml-commands/stop-messages-command/index.d.ts +1 -0
  388. package/dist/models/v2/svaml-commands/stop-messages-command/index.js +3 -0
  389. package/dist/models/v2/svaml-commands/stop-messages-command/index.js.map +1 -0
  390. package/dist/models/v2/svaml-commands/stop-messages-command/stop-messages-command.d.ts +11 -0
  391. package/dist/models/v2/svaml-commands/stop-messages-command/stop-messages-command.js +6 -0
  392. package/dist/models/v2/svaml-commands/stop-messages-command/stop-messages-command.js.map +1 -0
  393. package/dist/models/v2/svaml-commands/stop-recording-command/index.d.ts +1 -0
  394. package/dist/models/v2/svaml-commands/stop-recording-command/index.js +3 -0
  395. package/dist/models/v2/svaml-commands/stop-recording-command/index.js.map +1 -0
  396. package/dist/models/v2/svaml-commands/stop-recording-command/stop-recording-command.d.ts +11 -0
  397. package/dist/models/v2/svaml-commands/stop-recording-command/stop-recording-command.js +6 -0
  398. package/dist/models/v2/svaml-commands/stop-recording-command/stop-recording-command.js.map +1 -0
  399. package/dist/models/v2/svaml-commands/svaml-command/index.d.ts +1 -0
  400. package/dist/models/v2/svaml-commands/svaml-command/index.js +3 -0
  401. package/dist/models/v2/svaml-commands/svaml-command/index.js.map +1 -0
  402. package/dist/models/v2/svaml-commands/svaml-command/svaml-command.d.ts +17 -0
  403. package/dist/models/v2/svaml-commands/svaml-command/svaml-command.js +3 -0
  404. package/dist/models/v2/svaml-commands/svaml-command/svaml-command.js.map +1 -0
  405. package/dist/models/v2/svaml-commands/webhook-command/index.d.ts +1 -0
  406. package/dist/models/v2/svaml-commands/webhook-command/index.js +3 -0
  407. package/dist/models/v2/svaml-commands/webhook-command/index.js.map +1 -0
  408. package/dist/models/v2/svaml-commands/webhook-command/webhook-command.d.ts +15 -0
  409. package/dist/models/v2/svaml-commands/webhook-command/webhook-command.js +6 -0
  410. package/dist/models/v2/svaml-commands/webhook-command/webhook-command.js.map +1 -0
  411. package/dist/models/v2/svaml-description-response/index.d.ts +1 -0
  412. package/dist/models/v2/svaml-description-response/index.js +3 -0
  413. package/dist/models/v2/svaml-description-response/index.js.map +1 -0
  414. package/dist/models/v2/svaml-description-response/svaml-description-response.d.ts +7 -0
  415. package/dist/models/v2/svaml-description-response/svaml-description-response.js +3 -0
  416. package/dist/models/v2/svaml-description-response/svaml-description-response.js.map +1 -0
  417. package/dist/models/v2/svaml-input/index.d.ts +1 -0
  418. package/dist/models/v2/svaml-input/index.js +3 -0
  419. package/dist/models/v2/svaml-input/index.js.map +1 -0
  420. package/dist/models/v2/svaml-input/svaml-input.d.ts +20 -0
  421. package/dist/models/v2/svaml-input/svaml-input.js +3 -0
  422. package/dist/models/v2/svaml-input/svaml-input.js.map +1 -0
  423. package/dist/models/v2/transcription-options/index.d.ts +1 -0
  424. package/dist/models/v2/transcription-options/index.js +3 -0
  425. package/dist/models/v2/transcription-options/index.js.map +1 -0
  426. package/dist/models/v2/transcription-options/transcription-options.d.ts +9 -0
  427. package/dist/models/v2/transcription-options/transcription-options.js +3 -0
  428. package/dist/models/v2/transcription-options/transcription-options.js.map +1 -0
  429. package/dist/models/v2/update-service/index.d.ts +1 -0
  430. package/dist/models/v2/update-service/index.js +3 -0
  431. package/dist/models/v2/update-service/index.js.map +1 -0
  432. package/dist/models/v2/update-service/update-service.d.ts +18 -0
  433. package/dist/models/v2/update-service/update-service.js +3 -0
  434. package/dist/models/v2/update-service/update-service.js.map +1 -0
  435. package/dist/models/v2/validate-svaml-request/index.d.ts +1 -0
  436. package/dist/models/v2/validate-svaml-request/index.js +3 -0
  437. package/dist/models/v2/validate-svaml-request/index.js.map +1 -0
  438. package/dist/models/v2/validate-svaml-request/validate-svaml-request.d.ts +18 -0
  439. package/dist/models/v2/validate-svaml-request/validate-svaml-request.js +3 -0
  440. package/dist/models/v2/validate-svaml-request/validate-svaml-request.js.map +1 -0
  441. package/dist/models/v2/validate-svaml-response/index.d.ts +1 -0
  442. package/dist/models/v2/validate-svaml-response/index.js +3 -0
  443. package/dist/models/v2/validate-svaml-response/index.js.map +1 -0
  444. package/dist/models/v2/validate-svaml-response/validate-svaml-response.d.ts +17 -0
  445. package/dist/models/v2/validate-svaml-response/validate-svaml-response.js +3 -0
  446. package/dist/models/v2/validate-svaml-response/validate-svaml-response.js.map +1 -0
  447. package/dist/models/v2/voice-relay/index.d.ts +1 -0
  448. package/dist/models/v2/voice-relay/index.js +3 -0
  449. package/dist/models/v2/voice-relay/index.js.map +1 -0
  450. package/dist/models/v2/voice-relay/voice-relay.d.ts +11 -0
  451. package/dist/models/v2/voice-relay/voice-relay.js +3 -0
  452. package/dist/models/v2/voice-relay/voice-relay.js.map +1 -0
  453. package/dist/models/v2/voice-relay-details/index.d.ts +1 -0
  454. package/dist/models/v2/voice-relay-details/index.js +3 -0
  455. package/dist/models/v2/voice-relay-details/index.js.map +1 -0
  456. package/dist/models/v2/voice-relay-details/voice-relay-details.d.ts +15 -0
  457. package/dist/models/v2/voice-relay-details/voice-relay-details.js +6 -0
  458. package/dist/models/v2/voice-relay-details/voice-relay-details.js.map +1 -0
  459. package/dist/models/v2/webhook-configuration/index.d.ts +1 -0
  460. package/dist/models/v2/webhook-configuration/index.js +3 -0
  461. package/dist/models/v2/webhook-configuration/index.js.map +1 -0
  462. package/dist/models/v2/webhook-configuration/webhook-configuration.d.ts +14 -0
  463. package/dist/models/v2/webhook-configuration/webhook-configuration.js +3 -0
  464. package/dist/models/v2/webhook-configuration/webhook-configuration.js.map +1 -0
  465. package/dist/models/v2/webhook-request/index.d.ts +1 -0
  466. package/dist/models/v2/webhook-request/index.js +3 -0
  467. package/dist/models/v2/webhook-request/index.js.map +1 -0
  468. package/dist/models/v2/webhook-request/webhook-request.d.ts +46 -0
  469. package/dist/models/v2/webhook-request/webhook-request.js +3 -0
  470. package/dist/models/v2/webhook-request/webhook-request.js.map +1 -0
  471. package/dist/models/v2/webhook-response/index.d.ts +1 -0
  472. package/dist/models/v2/webhook-response/index.js +3 -0
  473. package/dist/models/v2/webhook-response/index.js.map +1 -0
  474. package/dist/models/v2/webhook-response/webhook-response.d.ts +27 -0
  475. package/dist/models/v2/webhook-response/webhook-response.js +3 -0
  476. package/dist/models/v2/webhook-response/webhook-response.js.map +1 -0
  477. package/dist/rest/index.d.ts +1 -0
  478. package/dist/rest/index.js +1 -0
  479. package/dist/rest/index.js.map +1 -1
  480. package/dist/rest/v1/applications/applications-api.d.ts +2 -1
  481. package/dist/rest/v1/applications/applications-api.jest.fixture.js.map +1 -1
  482. package/dist/rest/v1/applications/applications-api.js +1 -0
  483. package/dist/rest/v1/applications/applications-api.js.map +1 -1
  484. package/dist/rest/v1/callbacks/callbacks-webhook.js +1 -2
  485. package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -1
  486. package/dist/rest/v1/callouts/callouts-api.d.ts +2 -1
  487. package/dist/rest/v1/callouts/callouts-api.jest.fixture.js.map +1 -1
  488. package/dist/rest/v1/callouts/callouts-api.js +1 -0
  489. package/dist/rest/v1/callouts/callouts-api.js.map +1 -1
  490. package/dist/rest/v1/calls/calls-api.d.ts +2 -1
  491. package/dist/rest/v1/calls/calls-api.jest.fixture.js.map +1 -1
  492. package/dist/rest/v1/calls/calls-api.js +1 -0
  493. package/dist/rest/v1/calls/calls-api.js.map +1 -1
  494. package/dist/rest/v1/conferences/conferences-api.d.ts +2 -1
  495. package/dist/rest/v1/conferences/conferences-api.jest.fixture.js.map +1 -1
  496. package/dist/rest/v1/conferences/conferences-api.js +1 -0
  497. package/dist/rest/v1/conferences/conferences-api.js.map +1 -1
  498. package/dist/rest/v1/lazy-voice-api-client.d.ts +10 -0
  499. package/dist/rest/v1/lazy-voice-api-client.js +38 -0
  500. package/dist/rest/v1/lazy-voice-api-client.js.map +1 -0
  501. package/dist/rest/v1/voice-domain-api.d.ts +15 -2
  502. package/dist/rest/v1/voice-domain-api.js +13 -2
  503. package/dist/rest/v1/voice-domain-api.js.map +1 -1
  504. package/dist/rest/v1/voice-service.d.ts +2 -68
  505. package/dist/rest/v1/voice-service.js +5 -137
  506. package/dist/rest/v1/voice-service.js.map +1 -1
  507. package/dist/rest/v2/batches/batches-api.d.ts +35 -0
  508. package/dist/rest/v2/batches/batches-api.jest.fixture.d.ts +20 -0
  509. package/dist/rest/v2/batches/batches-api.jest.fixture.js +25 -0
  510. package/dist/rest/v2/batches/batches-api.jest.fixture.js.map +1 -0
  511. package/dist/rest/v2/batches/batches-api.js +108 -0
  512. package/dist/rest/v2/batches/batches-api.js.map +1 -0
  513. package/dist/rest/v2/batches/index.d.ts +2 -0
  514. package/dist/rest/v2/batches/index.js +19 -0
  515. package/dist/rest/v2/batches/index.js.map +1 -0
  516. package/dist/rest/v2/callbacks/callbacks-webhook.d.ts +63 -0
  517. package/dist/rest/v2/callbacks/callbacks-webhook.jest.fixture.d.ts +17 -0
  518. package/dist/rest/v2/callbacks/callbacks-webhook.jest.fixture.js +21 -0
  519. package/dist/rest/v2/callbacks/callbacks-webhook.jest.fixture.js.map +1 -0
  520. package/dist/rest/v2/callbacks/callbacks-webhook.js +174 -0
  521. package/dist/rest/v2/callbacks/callbacks-webhook.js.map +1 -0
  522. package/dist/rest/v2/callbacks/index.d.ts +2 -0
  523. package/dist/rest/v2/callbacks/index.js +19 -0
  524. package/dist/rest/v2/callbacks/index.js.map +1 -0
  525. package/dist/rest/v2/calls/calls-api.d.ts +43 -0
  526. package/dist/rest/v2/calls/calls-api.jest.fixture.d.ts +25 -0
  527. package/dist/rest/v2/calls/calls-api.jest.fixture.js +29 -0
  528. package/dist/rest/v2/calls/calls-api.jest.fixture.js.map +1 -0
  529. package/dist/rest/v2/calls/calls-api.js +153 -0
  530. package/dist/rest/v2/calls/calls-api.js.map +1 -0
  531. package/dist/rest/v2/calls/index.d.ts +2 -0
  532. package/dist/rest/v2/calls/index.js +19 -0
  533. package/dist/rest/v2/calls/index.js.map +1 -0
  534. package/dist/rest/v2/index.d.ts +9 -0
  535. package/dist/rest/v2/index.js +38 -0
  536. package/dist/rest/v2/index.js.map +1 -0
  537. package/dist/rest/v2/services/index.d.ts +2 -0
  538. package/dist/rest/v2/services/index.js +19 -0
  539. package/dist/rest/v2/services/index.js.map +1 -0
  540. package/dist/rest/v2/services/services-api.d.ts +51 -0
  541. package/dist/rest/v2/services/services-api.jest.fixture.d.ts +25 -0
  542. package/dist/rest/v2/services/services-api.jest.fixture.js +29 -0
  543. package/dist/rest/v2/services/services-api.jest.fixture.js.map +1 -0
  544. package/dist/rest/v2/services/services-api.js +152 -0
  545. package/dist/rest/v2/services/services-api.js.map +1 -0
  546. package/dist/rest/v2/sessions/index.d.ts +2 -0
  547. package/dist/rest/v2/sessions/index.js +19 -0
  548. package/dist/rest/v2/sessions/index.js.map +1 -0
  549. package/dist/rest/v2/sessions/sessions-api.d.ts +13 -0
  550. package/dist/rest/v2/sessions/sessions-api.jest.fixture.d.ts +8 -0
  551. package/dist/rest/v2/sessions/sessions-api.jest.fixture.js +13 -0
  552. package/dist/rest/v2/sessions/sessions-api.jest.fixture.js.map +1 -0
  553. package/dist/rest/v2/sessions/sessions-api.js +34 -0
  554. package/dist/rest/v2/sessions/sessions-api.js.map +1 -0
  555. package/dist/rest/v2/svaml/index.d.ts +2 -0
  556. package/dist/rest/v2/svaml/index.js +19 -0
  557. package/dist/rest/v2/svaml/index.js.map +1 -0
  558. package/dist/rest/v2/svaml/svaml-api.d.ts +22 -0
  559. package/dist/rest/v2/svaml/svaml-api.jest.fixture.d.ts +12 -0
  560. package/dist/rest/v2/svaml/svaml-api.jest.fixture.js +17 -0
  561. package/dist/rest/v2/svaml/svaml-api.jest.fixture.js.map +1 -0
  562. package/dist/rest/v2/svaml/svaml-api.js +63 -0
  563. package/dist/rest/v2/svaml/svaml-api.js.map +1 -0
  564. package/dist/rest/v2/voice-v2-domain-api.d.ts +28 -0
  565. package/dist/rest/v2/voice-v2-domain-api.js +49 -0
  566. package/dist/rest/v2/voice-v2-domain-api.js.map +1 -0
  567. package/dist/rest/v2/voice-v2-service.d.ts +41 -0
  568. package/dist/rest/v2/voice-v2-service.js +82 -0
  569. package/dist/rest/v2/voice-v2-service.js.map +1 -0
  570. package/dist/rest/voice-service.d.ts +72 -0
  571. package/dist/rest/voice-service.js +122 -0
  572. package/dist/rest/voice-service.js.map +1 -0
  573. package/package.json +7 -4
@@ -0,0 +1,153 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CallsApi = void 0;
4
+ const crypto_1 = require("crypto");
5
+ const sdk_client_1 = require("@sinch/sdk-client");
6
+ const voice_v2_domain_api_1 = require("../voice-v2-domain-api");
7
+ class CallsApi extends voice_v2_domain_api_1.VoiceV2DomainApi {
8
+ /** @internal */
9
+ constructor(lazyClient) {
10
+ super(lazyClient, 'CallsApi');
11
+ }
12
+ /**
13
+ * Create and initiate an outbound voice call
14
+ * Create a new outbound call associated to the project's default service or to the service
15
+ * specified in the `serviceId` query parameter. For a batch of outbound call sessions, use
16
+ * `voice.v2.batches.start` instead.
17
+ * @param { CreateCallRequestData } data - The data to provide to the API call.
18
+ */
19
+ async start(data) {
20
+ const getParams = this.client.extractQueryParams(data, ['serviceId']);
21
+ const headers = {
22
+ 'Content-Type': 'application/json',
23
+ 'Accept': 'application/json',
24
+ 'Idempotency-Key': data['Idempotency-Key'] ?? (0, crypto_1.randomUUID)(),
25
+ };
26
+ const body = data['createCallRequestBody']
27
+ ? JSON.stringify(data['createCallRequestBody'])
28
+ : '{}';
29
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v2/projects/${this.client.apiClientOptions.projectId}/calls`;
30
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
31
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
32
+ return this.client.processCall({
33
+ url,
34
+ requestOptions,
35
+ apiName: this.apiName,
36
+ operationId: 'createCall',
37
+ });
38
+ }
39
+ /**
40
+ * List calls made with Sinch Voice API
41
+ * List and filter calls made with Sinch
42
+ * @param { ListCallsRequestData } data - The data to provide to the API call.
43
+ * @return {ApiListPromise<Call>}
44
+ */
45
+ list(data) {
46
+ const getParams = this.client.extractQueryParams(data ?? {}, [
47
+ 'serviceId',
48
+ 'from',
49
+ 'to',
50
+ 'callType',
51
+ 'startTime',
52
+ 'endTime',
53
+ 'callResult',
54
+ 'callReason',
55
+ 'pageSize',
56
+ 'page',
57
+ ]);
58
+ const headers = {
59
+ 'Content-Type': 'application/json',
60
+ 'Accept': 'application/json',
61
+ };
62
+ const body = '';
63
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v2/projects/${this.client.apiClientOptions.projectId}/calls`;
64
+ const requestOptionsPromise = this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
65
+ const operationProperties = {
66
+ pagination: sdk_client_1.PaginationEnum.PAGE_LINK,
67
+ apiName: this.apiName,
68
+ operationId: 'listCalls',
69
+ dataKey: 'calls',
70
+ };
71
+ // Create the promise containing the response wrapped as a PageResult
72
+ const listPromise = (0, sdk_client_1.buildPageResultPromise)(this.client, requestOptionsPromise, operationProperties);
73
+ // Add properties to the Promise to offer the possibility to use it as an iterator
74
+ Object.assign(listPromise, (0, sdk_client_1.createIteratorMethodsForPagination)(this.client, requestOptionsPromise, listPromise, operationProperties));
75
+ return listPromise;
76
+ }
77
+ /**
78
+ * Retrieve call details by call ID
79
+ * Retrieve detailed information about a specific call using its unique identifier.
80
+ * @param { GetCallByIdRequestData } data - The data to provide to the API call.
81
+ */
82
+ async get(data) {
83
+ const getParams = this.client.extractQueryParams(data, []);
84
+ const headers = {
85
+ 'Content-Type': 'application/json',
86
+ 'Accept': 'application/json',
87
+ };
88
+ const body = '';
89
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v2/projects/${this.client.apiClientOptions.projectId}/calls/${data['callId']}`;
90
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
91
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
92
+ return this.client.processCall({
93
+ url,
94
+ requestOptions,
95
+ apiName: this.apiName,
96
+ operationId: 'getCallById',
97
+ });
98
+ }
99
+ /**
100
+ * Patch an ongoing call by call ID
101
+ * Interact with an ongoing call by submitting a set of SVAML commands.
102
+ * Use this to force disconnect, play messages, bridge with another call, or perform other call control actions.
103
+ * @param { PatchCallByIdRequestData } data - The data to provide to the API call.
104
+ */
105
+ async interactByCallId(data) {
106
+ const getParams = this.client.extractQueryParams(data, []);
107
+ const headers = {
108
+ 'Content-Type': 'application/json',
109
+ 'Accept': 'application/json',
110
+ 'Idempotency-Key': data['Idempotency-Key'] ?? (0, crypto_1.randomUUID)(),
111
+ };
112
+ const body = data['callPatchRequestBody']
113
+ ? JSON.stringify(data['callPatchRequestBody'])
114
+ : '{}';
115
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v2/projects/${this.client.apiClientOptions.projectId}/calls/${data['callId']}`;
116
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'PATCH', getParams, headers, body || undefined);
117
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
118
+ return this.client.processCall({
119
+ url,
120
+ requestOptions,
121
+ apiName: this.apiName,
122
+ operationId: 'patchCallById',
123
+ });
124
+ }
125
+ /**
126
+ * Patch an ongoing call by session ID and call name
127
+ * Interact with an ongoing call identified by its session and call name by submitting a set of SVAML commands.
128
+ * Use this to force disconnect, play messages, bridge with another call, or perform other call control actions.
129
+ * @param { PatchCallBySessionAndNameRequestData } data - The data to provide to the API call.
130
+ */
131
+ async interactByCallName(data) {
132
+ const getParams = this.client.extractQueryParams(data, []);
133
+ const headers = {
134
+ 'Content-Type': 'application/json',
135
+ 'Accept': 'application/json',
136
+ 'Idempotency-Key': data['Idempotency-Key'] ?? (0, crypto_1.randomUUID)(),
137
+ };
138
+ const body = data['callPatchRequestBody']
139
+ ? JSON.stringify(data['callPatchRequestBody'])
140
+ : '{}';
141
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v2/projects/${this.client.apiClientOptions.projectId}/sessions/${data['sessionId']}/calls/${data['callName']}`;
142
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'PATCH', getParams, headers, body || undefined);
143
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
144
+ return this.client.processCall({
145
+ url,
146
+ requestOptions,
147
+ apiName: this.apiName,
148
+ operationId: 'patchCallBySessionAndName',
149
+ });
150
+ }
151
+ }
152
+ exports.CallsApi = CallsApi;
153
+ //# sourceMappingURL=calls-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calls-api.js","sourceRoot":"","sources":["../../../../src/rest/v2/calls/calls-api.ts"],"names":[],"mappings":";;;AAAA,mCAAoC;AACpC,kDAO2B;AAU3B,gEAA0D;AAG1D,cAAsB,SAAQ,sCAAgB;IAE5C,gBAAgB;IAChB,YAAY,UAAgC;QAC1C,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,KAAK,CAAC,IAA2B;QAC5C,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAwB,IAAI,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;QAC7F,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;YAC5B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAA,mBAAU,GAAE;SAC3D,CAAC;QAEF,MAAM,IAAI,GAAgB,IAAI,CAAC,uBAAuB,CAAC;YACrD,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;YAC/C,CAAC,CAAC,IAAI,CAAC;QACT,MAAM,WAAW,GACb,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,QAAQ,CAAC;QAE3G,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,M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E,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAA,mBAAU,GAAE;SAC3D,CAAC;QAEF,MAAM,IAAI,GAAgB,IAAI,CAAC,sBAAsB,CAAC;YACpD,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;YAC9C,CAAC,CAAC,IAAI,CAAC;QACT,MAAM,WAAW,GACb,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,aAAa,IAAI,CAAC,WAAW,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;QAE7J,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QAClG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAO;YACnC,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,2BAA2B;SACzC,CAAC,CAAC;IACL,CAAC;CAEF"}
@@ -0,0 +1,2 @@
1
+ export * from './calls-api';
2
+ export * from './calls-api.jest.fixture';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./calls-api"), exports);
18
+ __exportStar(require("./calls-api.jest.fixture"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v2/calls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2DAAyC"}
@@ -0,0 +1,9 @@
1
+ export * from './voice-v2-domain-api';
2
+ export * from './voice-v2-service';
3
+ export { CallsApi as VoiceV2CallsApi, CallsApiFixture as VoiceV2CallsApiFixture } from './calls';
4
+ export { BatchesApi as VoiceV2BatchesApi, BatchesApiFixture as VoiceV2BatchesApiFixture } from './batches';
5
+ export { SessionsApi as VoiceV2SessionsApi, SessionsApiFixture as VoiceV2SessionsApiFixture } from './sessions';
6
+ export { ServicesApi as VoiceV2ServicesApi, ServicesApiFixture as VoiceV2ServicesApiFixture } from './services';
7
+ export { SvamlApi as VoiceV2SvamlApi, SvamlApiFixture as VoiceV2SvamlApiFixture } from './svaml';
8
+ export { CallbackWebhooks as VoiceV2CallbackWebhooks, CallbackWebhooksFixture as VoiceV2CallbackWebhooksFixture, } from './callbacks';
9
+ export type { VoiceV2CallbackWebhooksParameters } from './callbacks';
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.VoiceV2CallbackWebhooksFixture = exports.VoiceV2CallbackWebhooks = exports.VoiceV2SvamlApiFixture = exports.VoiceV2SvamlApi = exports.VoiceV2ServicesApiFixture = exports.VoiceV2ServicesApi = exports.VoiceV2SessionsApiFixture = exports.VoiceV2SessionsApi = exports.VoiceV2BatchesApiFixture = exports.VoiceV2BatchesApi = exports.VoiceV2CallsApiFixture = exports.VoiceV2CallsApi = void 0;
18
+ __exportStar(require("./voice-v2-domain-api"), exports);
19
+ __exportStar(require("./voice-v2-service"), exports);
20
+ var calls_1 = require("./calls");
21
+ Object.defineProperty(exports, "VoiceV2CallsApi", { enumerable: true, get: function () { return calls_1.CallsApi; } });
22
+ Object.defineProperty(exports, "VoiceV2CallsApiFixture", { enumerable: true, get: function () { return calls_1.CallsApiFixture; } });
23
+ var batches_1 = require("./batches");
24
+ Object.defineProperty(exports, "VoiceV2BatchesApi", { enumerable: true, get: function () { return batches_1.BatchesApi; } });
25
+ Object.defineProperty(exports, "VoiceV2BatchesApiFixture", { enumerable: true, get: function () { return batches_1.BatchesApiFixture; } });
26
+ var sessions_1 = require("./sessions");
27
+ Object.defineProperty(exports, "VoiceV2SessionsApi", { enumerable: true, get: function () { return sessions_1.SessionsApi; } });
28
+ Object.defineProperty(exports, "VoiceV2SessionsApiFixture", { enumerable: true, get: function () { return sessions_1.SessionsApiFixture; } });
29
+ var services_1 = require("./services");
30
+ Object.defineProperty(exports, "VoiceV2ServicesApi", { enumerable: true, get: function () { return services_1.ServicesApi; } });
31
+ Object.defineProperty(exports, "VoiceV2ServicesApiFixture", { enumerable: true, get: function () { return services_1.ServicesApiFixture; } });
32
+ var svaml_1 = require("./svaml");
33
+ Object.defineProperty(exports, "VoiceV2SvamlApi", { enumerable: true, get: function () { return svaml_1.SvamlApi; } });
34
+ Object.defineProperty(exports, "VoiceV2SvamlApiFixture", { enumerable: true, get: function () { return svaml_1.SvamlApiFixture; } });
35
+ var callbacks_1 = require("./callbacks");
36
+ Object.defineProperty(exports, "VoiceV2CallbackWebhooks", { enumerable: true, get: function () { return callbacks_1.CallbackWebhooks; } });
37
+ Object.defineProperty(exports, "VoiceV2CallbackWebhooksFixture", { enumerable: true, get: function () { return callbacks_1.CallbackWebhooksFixture; } });
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/v2/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,qDAAmC;AACnC,iCAAiG;AAAxF,wGAAA,QAAQ,OAAmB;AAAE,+GAAA,eAAe,OAA0B;AAC/E,qCAA2G;AAAlG,4GAAA,UAAU,OAAqB;AAAE,mHAAA,iBAAiB,OAA4B;AACvF,uCAAgH;AAAvG,8GAAA,WAAW,OAAsB;AAAE,qHAAA,kBAAkB,OAA6B;AAC3F,uCAAgH;AAAvG,8GAAA,WAAW,OAAsB;AAAE,qHAAA,kBAAkB,OAA6B;AAC3F,iCAAiG;AAAxF,wGAAA,QAAQ,OAAmB;AAAE,+GAAA,eAAe,OAA0B;AAC/E,yCAGqB;AAFnB,oHAAA,gBAAgB,OAA2B;AAC3C,2HAAA,uBAAuB,OAAkC"}
@@ -0,0 +1,2 @@
1
+ export * from './services-api';
2
+ export * from './services-api.jest.fixture';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./services-api"), exports);
18
+ __exportStar(require("./services-api.jest.fixture"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v2/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8DAA4C"}
@@ -0,0 +1,51 @@
1
+ import { ApiListPromise } from '@sinch/sdk-client';
2
+ import { CreateServiceRequestData, DeleteServiceRequestData, GetServiceRequestData, ListServicesRequestData, ServiceResponse, ServiceShortResponse, UpdateServiceRequestData } from '../../../models/v2';
3
+ import { VoiceV2DomainApi } from '../voice-v2-domain-api';
4
+ import { LazyVoiceV2ApiClient } from '../voice-v2-service';
5
+ export declare class ServicesApi extends VoiceV2DomainApi {
6
+ /** @internal */
7
+ constructor(lazyClient: LazyVoiceV2ApiClient);
8
+ /**
9
+ * List all services of a project
10
+ * Retrieve a list of voice services in the specified project.
11
+ *
12
+ * Optionally:
13
+ * - Filter services by partial match on name or description (`filter`)
14
+ * - Return only the default service (`isDefault=true`)
15
+ * @param { ListServicesRequestData } data - The data to provide to the API call.
16
+ * @return {ApiListPromise<ServiceShortResponse>}
17
+ */
18
+ list(data?: ListServicesRequestData): ApiListPromise<ServiceShortResponse>;
19
+ /**
20
+ * Create a new voice service
21
+ * Creates a new voice service in the specified project.
22
+ * @param { CreateServiceRequestData } data - The data to provide to the API call.
23
+ */
24
+ create(data: CreateServiceRequestData): Promise<ServiceResponse>;
25
+ /**
26
+ * Retrieve a voice service by ID
27
+ * Retrieve the full details of a specific voice service by its `serviceId`.
28
+ * @param { GetServiceRequestData } data - The data to provide to the API call.
29
+ */
30
+ get(data: GetServiceRequestData): Promise<ServiceResponse>;
31
+ /**
32
+ * Update a voice service
33
+ * Updates an existing service resource with the provided properties. Only the fields included in
34
+ * the request body will be modified; omitted fields remain unchanged.
35
+ *
36
+ * To set a service as the default for the project, include `"isDefault": true` in the request.
37
+ * Each project can have only one default service. `"isDefault": false` is invalid and will not
38
+ * be accepted by the API.
39
+ * @param { UpdateServiceRequestData } data - The data to provide to the API call.
40
+ */
41
+ update(data: UpdateServiceRequestData): Promise<ServiceResponse>;
42
+ /**
43
+ * Delete a voice service by ID
44
+ * Deletes a service permanently.
45
+ *
46
+ * The default service cannot be deleted. To delete the current default service, a different
47
+ * service must first be designated as the default using the update endpoint.
48
+ * @param { DeleteServiceRequestData } data - The data to provide to the API call.
49
+ */
50
+ delete(data: DeleteServiceRequestData): Promise<void>;
51
+ }
@@ -0,0 +1,25 @@
1
+ import { ApiListPromise } from '@sinch/sdk-client';
2
+ import { ServicesApi } from './services-api';
3
+ import { CreateServiceRequestData, DeleteServiceRequestData, GetServiceRequestData, ListServicesRequestData, ServiceResponse, ServiceShortResponse, UpdateServiceRequestData } from '../../../models/v2';
4
+ export declare class ServicesApiFixture implements Partial<Readonly<ServicesApi>> {
5
+ /**
6
+ * Fixture associated to function list
7
+ */
8
+ list: jest.Mock<ApiListPromise<ServiceShortResponse>, [ListServicesRequestData]>;
9
+ /**
10
+ * Fixture associated to function create
11
+ */
12
+ create: jest.Mock<Promise<ServiceResponse>, [CreateServiceRequestData]>;
13
+ /**
14
+ * Fixture associated to function get
15
+ */
16
+ get: jest.Mock<Promise<ServiceResponse>, [GetServiceRequestData]>;
17
+ /**
18
+ * Fixture associated to function update
19
+ */
20
+ update: jest.Mock<Promise<ServiceResponse>, [UpdateServiceRequestData]>;
21
+ /**
22
+ * Fixture associated to function delete
23
+ */
24
+ delete: jest.Mock<Promise<void>, [DeleteServiceRequestData]>;
25
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServicesApiFixture = void 0;
4
+ class ServicesApiFixture {
5
+ constructor() {
6
+ /**
7
+ * Fixture associated to function list
8
+ */
9
+ this.list = jest.fn();
10
+ /**
11
+ * Fixture associated to function create
12
+ */
13
+ this.create = jest.fn();
14
+ /**
15
+ * Fixture associated to function get
16
+ */
17
+ this.get = jest.fn();
18
+ /**
19
+ * Fixture associated to function update
20
+ */
21
+ this.update = jest.fn();
22
+ /**
23
+ * Fixture associated to function delete
24
+ */
25
+ this.delete = jest.fn();
26
+ }
27
+ }
28
+ exports.ServicesApiFixture = ServicesApiFixture;
29
+ //# sourceMappingURL=services-api.jest.fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v2/services/services-api.jest.fixture.ts"],"names":[],"mappings":";;;AAYA;IAAA;QAEE;;WAEG;QACI,SAAI,GAA+E,IAAI,CAAC,EAAE,EAAE,CAAC;QACpG;;WAEG;QACI,WAAM,GAAoE,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3F;;WAEG;QACI,QAAG,GAAiE,IAAI,CAAC,EAAE,EAAE,CAAC;QACrF;;WAEG;QACI,WAAM,GAAoE,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3F;;WAEG;QACI,WAAM,GAAyD,IAAI,CAAC,EAAE,EAAE,CAAC;IAClF,CAAC;CAAA"}
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServicesApi = void 0;
4
+ const crypto_1 = require("crypto");
5
+ const sdk_client_1 = require("@sinch/sdk-client");
6
+ const voice_v2_domain_api_1 = require("../voice-v2-domain-api");
7
+ class ServicesApi extends voice_v2_domain_api_1.VoiceV2DomainApi {
8
+ /** @internal */
9
+ constructor(lazyClient) {
10
+ super(lazyClient, 'ServicesApi');
11
+ }
12
+ /**
13
+ * List all services of a project
14
+ * Retrieve a list of voice services in the specified project.
15
+ *
16
+ * Optionally:
17
+ * - Filter services by partial match on name or description (`filter`)
18
+ * - Return only the default service (`isDefault=true`)
19
+ * @param { ListServicesRequestData } data - The data to provide to the API call.
20
+ * @return {ApiListPromise<ServiceShortResponse>}
21
+ */
22
+ list(data) {
23
+ const getParams = this.client.extractQueryParams(data ?? {}, [
24
+ 'filter',
25
+ 'isDefault',
26
+ 'pageSize',
27
+ 'page',
28
+ ]);
29
+ const headers = {
30
+ 'Content-Type': 'application/json',
31
+ 'Accept': 'application/json',
32
+ };
33
+ const body = '';
34
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v2/projects/${this.client.apiClientOptions.projectId}/services`;
35
+ const requestOptionsPromise = this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
36
+ const operationProperties = {
37
+ pagination: sdk_client_1.PaginationEnum.PAGE_LINK,
38
+ apiName: this.apiName,
39
+ operationId: 'listServices',
40
+ dataKey: 'services',
41
+ };
42
+ // Create the promise containing the response wrapped as a PageResult
43
+ const listPromise = (0, sdk_client_1.buildPageResultPromise)(this.client, requestOptionsPromise, operationProperties);
44
+ // Add properties to the Promise to offer the possibility to use it as an iterator
45
+ Object.assign(listPromise, (0, sdk_client_1.createIteratorMethodsForPagination)(this.client, requestOptionsPromise, listPromise, operationProperties));
46
+ return listPromise;
47
+ }
48
+ /**
49
+ * Create a new voice service
50
+ * Creates a new voice service in the specified project.
51
+ * @param { CreateServiceRequestData } data - The data to provide to the API call.
52
+ */
53
+ async create(data) {
54
+ const getParams = this.client.extractQueryParams(data, []);
55
+ const headers = {
56
+ 'Content-Type': 'application/json',
57
+ 'Accept': 'application/json',
58
+ 'Idempotency-Key': data['Idempotency-Key'] ?? (0, crypto_1.randomUUID)(),
59
+ };
60
+ const body = data['createServiceRequestBody']
61
+ ? JSON.stringify(data['createServiceRequestBody'])
62
+ : '{}';
63
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v2/projects/${this.client.apiClientOptions.projectId}/services`;
64
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
65
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
66
+ return this.client.processCall({
67
+ url,
68
+ requestOptions,
69
+ apiName: this.apiName,
70
+ operationId: 'createService',
71
+ });
72
+ }
73
+ /**
74
+ * Retrieve a voice service by ID
75
+ * Retrieve the full details of a specific voice service by its `serviceId`.
76
+ * @param { GetServiceRequestData } data - The data to provide to the API call.
77
+ */
78
+ async get(data) {
79
+ const getParams = this.client.extractQueryParams(data, []);
80
+ const headers = {
81
+ 'Content-Type': 'application/json',
82
+ 'Accept': 'application/json',
83
+ };
84
+ const body = '';
85
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v2/projects/${this.client.apiClientOptions.projectId}/services/${data['serviceId']}`;
86
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
87
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
88
+ return this.client.processCall({
89
+ url,
90
+ requestOptions,
91
+ apiName: this.apiName,
92
+ operationId: 'getService',
93
+ });
94
+ }
95
+ /**
96
+ * Update a voice service
97
+ * Updates an existing service resource with the provided properties. Only the fields included in
98
+ * the request body will be modified; omitted fields remain unchanged.
99
+ *
100
+ * To set a service as the default for the project, include `"isDefault": true` in the request.
101
+ * Each project can have only one default service. `"isDefault": false` is invalid and will not
102
+ * be accepted by the API.
103
+ * @param { UpdateServiceRequestData } data - The data to provide to the API call.
104
+ */
105
+ async update(data) {
106
+ const getParams = this.client.extractQueryParams(data, []);
107
+ const headers = {
108
+ 'Content-Type': 'application/json',
109
+ 'Accept': 'application/json',
110
+ 'Idempotency-Key': data['Idempotency-Key'] ?? (0, crypto_1.randomUUID)(),
111
+ };
112
+ const body = data['updateServiceRequestBody']
113
+ ? JSON.stringify(data['updateServiceRequestBody'])
114
+ : '{}';
115
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v2/projects/${this.client.apiClientOptions.projectId}/services/${data['serviceId']}`;
116
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'PATCH', getParams, headers, body || undefined);
117
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
118
+ return this.client.processCall({
119
+ url,
120
+ requestOptions,
121
+ apiName: this.apiName,
122
+ operationId: 'updateService',
123
+ });
124
+ }
125
+ /**
126
+ * Delete a voice service by ID
127
+ * Deletes a service permanently.
128
+ *
129
+ * The default service cannot be deleted. To delete the current default service, a different
130
+ * service must first be designated as the default using the update endpoint.
131
+ * @param { DeleteServiceRequestData } data - The data to provide to the API call.
132
+ */
133
+ async delete(data) {
134
+ const getParams = this.client.extractQueryParams(data, []);
135
+ const headers = {
136
+ 'Content-Type': 'application/json',
137
+ 'Accept': 'application/json',
138
+ };
139
+ const body = '';
140
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v2/projects/${this.client.apiClientOptions.projectId}/services/${data['serviceId']}`;
141
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'DELETE', getParams, headers, body || undefined);
142
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
143
+ return this.client.processCall({
144
+ url,
145
+ requestOptions,
146
+ apiName: this.apiName,
147
+ operationId: 'deleteService',
148
+ });
149
+ }
150
+ }
151
+ exports.ServicesApi = ServicesApi;
152
+ //# sourceMappingURL=services-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services-api.js","sourceRoot":"","sources":["../../../../src/rest/v2/services/services-api.ts"],"names":[],"mappings":";;;AAAA,mCAAoC;AACpC,kDAO2B;AAU3B,gEAA0D;AAG1D,iBAAyB,SAAQ,sCAAgB;IAE/C,gBAAgB;IAChB,YAAY,UAAgC;QAC1C,KAAK,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACnC,CAAC;IAED;;;;;;;;;OASG;IACI,IAAI,CAAC,IAA8B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jest.fixture';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./sessions-api"), exports);
18
+ __exportStar(require("./sessions-api.jest.fixture"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v2/sessions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8DAA4C"}
@@ -0,0 +1,13 @@
1
+ import { GetSessionByIdRequestData, Session } from '../../../models/v2';
2
+ import { VoiceV2DomainApi } from '../voice-v2-domain-api';
3
+ import { LazyVoiceV2ApiClient } from '../voice-v2-service';
4
+ export declare class SessionsApi extends VoiceV2DomainApi {
5
+ /** @internal */
6
+ constructor(lazyClient: LazyVoiceV2ApiClient);
7
+ /**
8
+ * Get a session details by the session ID
9
+ * Retrieve detailed information about a specific session, including all associated calls and their current states. Sessions represent the complete interaction lifecycle and can contain multiple related calls.
10
+ * @param { GetSessionByIdRequestData } data - The data to provide to the API call.
11
+ */
12
+ get(data: GetSessionByIdRequestData): Promise<Session>;
13
+ }
@@ -0,0 +1,8 @@
1
+ import { SessionsApi } from './sessions-api';
2
+ import { GetSessionByIdRequestData, Session } from '../../../models/v2';
3
+ export declare class SessionsApiFixture implements Partial<Readonly<SessionsApi>> {
4
+ /**
5
+ * Fixture associated to function get
6
+ */
7
+ get: jest.Mock<Promise<Session>, [GetSessionByIdRequestData]>;
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SessionsApiFixture = void 0;
4
+ class SessionsApiFixture {
5
+ constructor() {
6
+ /**
7
+ * Fixture associated to function get
8
+ */
9
+ this.get = jest.fn();
10
+ }
11
+ }
12
+ exports.SessionsApiFixture = SessionsApiFixture;
13
+ //# sourceMappingURL=sessions-api.jest.fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessions-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v2/sessions/sessions-api.jest.fixture.ts"],"names":[],"mappings":";;;AAMA;IAAA;QAEE;;WAEG;QACI,QAAG,GAA6D,IAAI,CAAC,EAAE,EAAE,CAAC;IACnF,CAAC;CAAA"}