@sinch/voice 0.0.1

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 (458) hide show
  1. package/README.md +136 -0
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +19 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/models/index.d.ts +1 -0
  6. package/dist/models/index.js +18 -0
  7. package/dist/models/index.js.map +1 -0
  8. package/dist/models/v1/ace-request/ace-request.d.ts +26 -0
  9. package/dist/models/v1/ace-request/ace-request.js +9 -0
  10. package/dist/models/v1/ace-request/ace-request.js.map +1 -0
  11. package/dist/models/v1/ace-request/index.d.ts +1 -0
  12. package/dist/models/v1/ace-request/index.js +3 -0
  13. package/dist/models/v1/ace-request/index.js.map +1 -0
  14. package/dist/models/v1/ace-request-amd/ace-request-amd.d.ts +17 -0
  15. package/dist/models/v1/ace-request-amd/ace-request-amd.js +9 -0
  16. package/dist/models/v1/ace-request-amd/ace-request-amd.js.map +1 -0
  17. package/dist/models/v1/ace-request-amd/index.d.ts +1 -0
  18. package/dist/models/v1/ace-request-amd/index.js +3 -0
  19. package/dist/models/v1/ace-request-amd/index.js.map +1 -0
  20. package/dist/models/v1/ace-response/ace-response.d.ts +16 -0
  21. package/dist/models/v1/ace-response/ace-response.js +3 -0
  22. package/dist/models/v1/ace-response/ace-response.js.map +1 -0
  23. package/dist/models/v1/ace-response/index.d.ts +1 -0
  24. package/dist/models/v1/ace-response/index.js +3 -0
  25. package/dist/models/v1/ace-response/index.js.map +1 -0
  26. package/dist/models/v1/assign-numbers/assign-numbers.d.ts +15 -0
  27. package/dist/models/v1/assign-numbers/assign-numbers.js +9 -0
  28. package/dist/models/v1/assign-numbers/assign-numbers.js.map +1 -0
  29. package/dist/models/v1/assign-numbers/index.d.ts +1 -0
  30. package/dist/models/v1/assign-numbers/index.js +3 -0
  31. package/dist/models/v1/assign-numbers/index.js.map +1 -0
  32. package/dist/models/v1/call-header/call-header.d.ts +15 -0
  33. package/dist/models/v1/call-header/call-header.js +9 -0
  34. package/dist/models/v1/call-header/call-header.js.map +1 -0
  35. package/dist/models/v1/call-header/index.d.ts +1 -0
  36. package/dist/models/v1/call-header/index.js +3 -0
  37. package/dist/models/v1/call-header/index.js.map +1 -0
  38. package/dist/models/v1/callout-request/callout-request.d.ts +23 -0
  39. package/dist/models/v1/callout-request/callout-request.js +9 -0
  40. package/dist/models/v1/callout-request/callout-request.js.map +1 -0
  41. package/dist/models/v1/callout-request/index.d.ts +1 -0
  42. package/dist/models/v1/callout-request/index.js +3 -0
  43. package/dist/models/v1/callout-request/index.js.map +1 -0
  44. package/dist/models/v1/conference-callout-request/conference-callout-request.d.ts +40 -0
  45. package/dist/models/v1/conference-callout-request/conference-callout-request.js +9 -0
  46. package/dist/models/v1/conference-callout-request/conference-callout-request.js.map +1 -0
  47. package/dist/models/v1/conference-callout-request/index.d.ts +1 -0
  48. package/dist/models/v1/conference-callout-request/index.js +3 -0
  49. package/dist/models/v1/conference-callout-request/index.js.map +1 -0
  50. package/dist/models/v1/conference-callout-request-conference-dtmf-options/conference-callout-request-conference-dtmf-options.d.ts +17 -0
  51. package/dist/models/v1/conference-callout-request-conference-dtmf-options/conference-callout-request-conference-dtmf-options.js +9 -0
  52. package/dist/models/v1/conference-callout-request-conference-dtmf-options/conference-callout-request-conference-dtmf-options.js.map +1 -0
  53. package/dist/models/v1/conference-callout-request-conference-dtmf-options/index.d.ts +1 -0
  54. package/dist/models/v1/conference-callout-request-conference-dtmf-options/index.js +3 -0
  55. package/dist/models/v1/conference-callout-request-conference-dtmf-options/index.js.map +1 -0
  56. package/dist/models/v1/custom-callout-request/custom-callout-request.d.ts +28 -0
  57. package/dist/models/v1/custom-callout-request/custom-callout-request.js +9 -0
  58. package/dist/models/v1/custom-callout-request/custom-callout-request.js.map +1 -0
  59. package/dist/models/v1/custom-callout-request/index.d.ts +1 -0
  60. package/dist/models/v1/custom-callout-request/index.js +3 -0
  61. package/dist/models/v1/custom-callout-request/index.js.map +1 -0
  62. package/dist/models/v1/destination/destination.d.ts +16 -0
  63. package/dist/models/v1/destination/destination.js +9 -0
  64. package/dist/models/v1/destination/destination.js.map +1 -0
  65. package/dist/models/v1/destination/index.d.ts +1 -0
  66. package/dist/models/v1/destination/index.js +3 -0
  67. package/dist/models/v1/destination/index.js.map +1 -0
  68. package/dist/models/v1/dice-request/dice-request.d.ts +44 -0
  69. package/dist/models/v1/dice-request/dice-request.js +9 -0
  70. package/dist/models/v1/dice-request/dice-request.js.map +1 -0
  71. package/dist/models/v1/dice-request/index.d.ts +1 -0
  72. package/dist/models/v1/dice-request/index.js +3 -0
  73. package/dist/models/v1/dice-request/index.js.map +1 -0
  74. package/dist/models/v1/dice-request-debit/dice-request-debit.d.ts +15 -0
  75. package/dist/models/v1/dice-request-debit/dice-request-debit.js +9 -0
  76. package/dist/models/v1/dice-request-debit/dice-request-debit.js.map +1 -0
  77. package/dist/models/v1/dice-request-debit/index.d.ts +1 -0
  78. package/dist/models/v1/dice-request-debit/index.js +3 -0
  79. package/dist/models/v1/dice-request-debit/index.js.map +1 -0
  80. package/dist/models/v1/dice-request-user-rate/dice-request-user-rate.d.ts +15 -0
  81. package/dist/models/v1/dice-request-user-rate/dice-request-user-rate.js +9 -0
  82. package/dist/models/v1/dice-request-user-rate/dice-request-user-rate.js.map +1 -0
  83. package/dist/models/v1/dice-request-user-rate/index.d.ts +1 -0
  84. package/dist/models/v1/dice-request-user-rate/index.js +3 -0
  85. package/dist/models/v1/dice-request-user-rate/index.js.map +1 -0
  86. package/dist/models/v1/enums.d.ts +11 -0
  87. package/dist/models/v1/enums.js +3 -0
  88. package/dist/models/v1/enums.js.map +1 -0
  89. package/dist/models/v1/get-call-response-obj/get-call-response-obj.d.ts +59 -0
  90. package/dist/models/v1/get-call-response-obj/get-call-response-obj.js +3 -0
  91. package/dist/models/v1/get-call-response-obj/get-call-response-obj.js.map +1 -0
  92. package/dist/models/v1/get-call-response-obj/index.d.ts +1 -0
  93. package/dist/models/v1/get-call-response-obj/index.js +3 -0
  94. package/dist/models/v1/get-call-response-obj/index.js.map +1 -0
  95. package/dist/models/v1/get-callbacks/get-callbacks.d.ts +11 -0
  96. package/dist/models/v1/get-callbacks/get-callbacks.js +9 -0
  97. package/dist/models/v1/get-callbacks/get-callbacks.js.map +1 -0
  98. package/dist/models/v1/get-callbacks/index.d.ts +1 -0
  99. package/dist/models/v1/get-callbacks/index.js +3 -0
  100. package/dist/models/v1/get-callbacks/index.js.map +1 -0
  101. package/dist/models/v1/get-callbacks-url/get-callbacks-url.d.ts +15 -0
  102. package/dist/models/v1/get-callbacks-url/get-callbacks-url.js +9 -0
  103. package/dist/models/v1/get-callbacks-url/get-callbacks-url.js.map +1 -0
  104. package/dist/models/v1/get-callbacks-url/index.d.ts +1 -0
  105. package/dist/models/v1/get-callbacks-url/index.js +3 -0
  106. package/dist/models/v1/get-callbacks-url/index.js.map +1 -0
  107. package/dist/models/v1/get-callout-response-obj/get-callout-response-obj.d.ts +13 -0
  108. package/dist/models/v1/get-callout-response-obj/get-callout-response-obj.js +9 -0
  109. package/dist/models/v1/get-callout-response-obj/get-callout-response-obj.js.map +1 -0
  110. package/dist/models/v1/get-callout-response-obj/index.d.ts +1 -0
  111. package/dist/models/v1/get-callout-response-obj/index.js +3 -0
  112. package/dist/models/v1/get-callout-response-obj/index.js.map +1 -0
  113. package/dist/models/v1/get-conference-info-response/get-conference-info-response.d.ts +14 -0
  114. package/dist/models/v1/get-conference-info-response/get-conference-info-response.js +9 -0
  115. package/dist/models/v1/get-conference-info-response/get-conference-info-response.js.map +1 -0
  116. package/dist/models/v1/get-conference-info-response/index.d.ts +1 -0
  117. package/dist/models/v1/get-conference-info-response/index.js +3 -0
  118. package/dist/models/v1/get-conference-info-response/index.js.map +1 -0
  119. package/dist/models/v1/get-conference-info-response-participants-inner/get-conference-info-response-participants-inner.d.ts +16 -0
  120. package/dist/models/v1/get-conference-info-response-participants-inner/get-conference-info-response-participants-inner.js +9 -0
  121. package/dist/models/v1/get-conference-info-response-participants-inner/get-conference-info-response-participants-inner.js.map +1 -0
  122. package/dist/models/v1/get-conference-info-response-participants-inner/index.d.ts +1 -0
  123. package/dist/models/v1/get-conference-info-response-participants-inner/index.js +3 -0
  124. package/dist/models/v1/get-conference-info-response-participants-inner/index.js.map +1 -0
  125. package/dist/models/v1/get-numbers-response-obj/get-numbers-response-obj.d.ts +11 -0
  126. package/dist/models/v1/get-numbers-response-obj/get-numbers-response-obj.js +9 -0
  127. package/dist/models/v1/get-numbers-response-obj/get-numbers-response-obj.js.map +1 -0
  128. package/dist/models/v1/get-numbers-response-obj/index.d.ts +1 -0
  129. package/dist/models/v1/get-numbers-response-obj/index.js +3 -0
  130. package/dist/models/v1/get-numbers-response-obj/index.js.map +1 -0
  131. package/dist/models/v1/get-numbers-response-obj-numbers-inner/get-numbers-response-obj-numbers-inner.d.ts +15 -0
  132. package/dist/models/v1/get-numbers-response-obj-numbers-inner/get-numbers-response-obj-numbers-inner.js +9 -0
  133. package/dist/models/v1/get-numbers-response-obj-numbers-inner/get-numbers-response-obj-numbers-inner.js.map +1 -0
  134. package/dist/models/v1/get-numbers-response-obj-numbers-inner/index.d.ts +1 -0
  135. package/dist/models/v1/get-numbers-response-obj-numbers-inner/index.js +3 -0
  136. package/dist/models/v1/get-numbers-response-obj-numbers-inner/index.js.map +1 -0
  137. package/dist/models/v1/get-query-number/get-query-number.d.ts +13 -0
  138. package/dist/models/v1/get-query-number/get-query-number.js +9 -0
  139. package/dist/models/v1/get-query-number/get-query-number.js.map +1 -0
  140. package/dist/models/v1/get-query-number/index.d.ts +1 -0
  141. package/dist/models/v1/get-query-number/index.js +3 -0
  142. package/dist/models/v1/get-query-number/index.js.map +1 -0
  143. package/dist/models/v1/get-query-number-number-item/get-query-number-number-item.d.ts +23 -0
  144. package/dist/models/v1/get-query-number-number-item/get-query-number-number-item.js +9 -0
  145. package/dist/models/v1/get-query-number-number-item/get-query-number-number-item.js.map +1 -0
  146. package/dist/models/v1/get-query-number-number-item/index.d.ts +1 -0
  147. package/dist/models/v1/get-query-number-number-item/index.js +3 -0
  148. package/dist/models/v1/get-query-number-number-item/index.js.map +1 -0
  149. package/dist/models/v1/get-query-number-number-item-rate/get-query-number-number-item-rate.d.ts +15 -0
  150. package/dist/models/v1/get-query-number-number-item-rate/get-query-number-number-item-rate.js +9 -0
  151. package/dist/models/v1/get-query-number-number-item-rate/get-query-number-number-item-rate.js.map +1 -0
  152. package/dist/models/v1/get-query-number-number-item-rate/index.d.ts +1 -0
  153. package/dist/models/v1/get-query-number-number-item-rate/index.js +3 -0
  154. package/dist/models/v1/get-query-number-number-item-rate/index.js.map +1 -0
  155. package/dist/models/v1/get-recording-file-info/get-recording-file-info.d.ts +13 -0
  156. package/dist/models/v1/get-recording-file-info/get-recording-file-info.js +9 -0
  157. package/dist/models/v1/get-recording-file-info/get-recording-file-info.js.map +1 -0
  158. package/dist/models/v1/get-recording-file-info/index.d.ts +1 -0
  159. package/dist/models/v1/get-recording-file-info/index.js +3 -0
  160. package/dist/models/v1/get-recording-file-info/index.js.map +1 -0
  161. package/dist/models/v1/ice-request/ice-request.d.ts +44 -0
  162. package/dist/models/v1/ice-request/ice-request.js +9 -0
  163. package/dist/models/v1/ice-request/ice-request.js.map +1 -0
  164. package/dist/models/v1/ice-request/index.d.ts +1 -0
  165. package/dist/models/v1/ice-request/index.js +3 -0
  166. package/dist/models/v1/ice-request/index.js.map +1 -0
  167. package/dist/models/v1/ice-request-to/ice-request-to.d.ts +15 -0
  168. package/dist/models/v1/ice-request-to/ice-request-to.js +9 -0
  169. package/dist/models/v1/ice-request-to/ice-request-to.js.map +1 -0
  170. package/dist/models/v1/ice-request-to/index.d.ts +1 -0
  171. package/dist/models/v1/ice-request-to/index.js +3 -0
  172. package/dist/models/v1/ice-request-to/index.js.map +1 -0
  173. package/dist/models/v1/ice-request-user-rate/ice-request-user-rate.d.ts +15 -0
  174. package/dist/models/v1/ice-request-user-rate/ice-request-user-rate.js +9 -0
  175. package/dist/models/v1/ice-request-user-rate/ice-request-user-rate.js.map +1 -0
  176. package/dist/models/v1/ice-request-user-rate/index.d.ts +1 -0
  177. package/dist/models/v1/ice-request-user-rate/index.js +3 -0
  178. package/dist/models/v1/ice-request-user-rate/index.js.map +1 -0
  179. package/dist/models/v1/ice-response/ice-response.d.ts +21 -0
  180. package/dist/models/v1/ice-response/ice-response.js +3 -0
  181. package/dist/models/v1/ice-response/ice-response.js.map +1 -0
  182. package/dist/models/v1/ice-response/index.d.ts +1 -0
  183. package/dist/models/v1/ice-response/index.js +3 -0
  184. package/dist/models/v1/ice-response/index.js.map +1 -0
  185. package/dist/models/v1/index.d.ts +65 -0
  186. package/dist/models/v1/index.js +82 -0
  187. package/dist/models/v1/index.js.map +1 -0
  188. package/dist/models/v1/manage-conference-participant-request/index.d.ts +1 -0
  189. package/dist/models/v1/manage-conference-participant-request/index.js +3 -0
  190. package/dist/models/v1/manage-conference-participant-request/index.js.map +1 -0
  191. package/dist/models/v1/manage-conference-participant-request/manage-conference-participant-request.d.ts +17 -0
  192. package/dist/models/v1/manage-conference-participant-request/manage-conference-participant-request.js +9 -0
  193. package/dist/models/v1/manage-conference-participant-request/manage-conference-participant-request.js.map +1 -0
  194. package/dist/models/v1/menu/index.d.ts +1 -0
  195. package/dist/models/v1/menu/index.js +3 -0
  196. package/dist/models/v1/menu/index.js.map +1 -0
  197. package/dist/models/v1/menu/menu.d.ts +28 -0
  198. package/dist/models/v1/menu/menu.js +9 -0
  199. package/dist/models/v1/menu/menu.js.map +1 -0
  200. package/dist/models/v1/notify-error-request/index.d.ts +1 -0
  201. package/dist/models/v1/notify-error-request/index.js +3 -0
  202. package/dist/models/v1/notify-error-request/index.js.map +1 -0
  203. package/dist/models/v1/notify-error-request/notify-error-request.d.ts +27 -0
  204. package/dist/models/v1/notify-error-request/notify-error-request.js +9 -0
  205. package/dist/models/v1/notify-error-request/notify-error-request.js.map +1 -0
  206. package/dist/models/v1/notify-request/index.d.ts +1 -0
  207. package/dist/models/v1/notify-request/index.js +3 -0
  208. package/dist/models/v1/notify-request/index.js.map +1 -0
  209. package/dist/models/v1/notify-request/notify-request.d.ts +21 -0
  210. package/dist/models/v1/notify-request/notify-request.js +9 -0
  211. package/dist/models/v1/notify-request/notify-request.js.map +1 -0
  212. package/dist/models/v1/option/index.d.ts +1 -0
  213. package/dist/models/v1/option/index.js +3 -0
  214. package/dist/models/v1/option/index.js.map +1 -0
  215. package/dist/models/v1/option/option.d.ts +15 -0
  216. package/dist/models/v1/option/option.js +9 -0
  217. package/dist/models/v1/option/option.js.map +1 -0
  218. package/dist/models/v1/pie-request/index.d.ts +1 -0
  219. package/dist/models/v1/pie-request/index.js +3 -0
  220. package/dist/models/v1/pie-request/index.js.map +1 -0
  221. package/dist/models/v1/pie-request/pie-request.d.ts +26 -0
  222. package/dist/models/v1/pie-request/pie-request.js +9 -0
  223. package/dist/models/v1/pie-request/pie-request.js.map +1 -0
  224. package/dist/models/v1/pie-request-menu-result/index.d.ts +1 -0
  225. package/dist/models/v1/pie-request-menu-result/index.js +3 -0
  226. package/dist/models/v1/pie-request-menu-result/index.js.map +1 -0
  227. package/dist/models/v1/pie-request-menu-result/pie-request-menu-result.d.ts +19 -0
  228. package/dist/models/v1/pie-request-menu-result/pie-request-menu-result.js +9 -0
  229. package/dist/models/v1/pie-request-menu-result/pie-request-menu-result.js.map +1 -0
  230. package/dist/models/v1/pie-response/index.d.ts +1 -0
  231. package/dist/models/v1/pie-response/index.js +3 -0
  232. package/dist/models/v1/pie-response/index.js.map +1 -0
  233. package/dist/models/v1/pie-response/pie-response.d.ts +19 -0
  234. package/dist/models/v1/pie-response/pie-response.js +3 -0
  235. package/dist/models/v1/pie-response/pie-response.js.map +1 -0
  236. package/dist/models/v1/svaml-action/index.d.ts +1 -0
  237. package/dist/models/v1/svaml-action/index.js +3 -0
  238. package/dist/models/v1/svaml-action/index.js.map +1 -0
  239. package/dist/models/v1/svaml-action/svaml-action.d.ts +18 -0
  240. package/dist/models/v1/svaml-action/svaml-action.js +9 -0
  241. package/dist/models/v1/svaml-action/svaml-action.js.map +1 -0
  242. package/dist/models/v1/svaml-action-connect-conf/index.d.ts +1 -0
  243. package/dist/models/v1/svaml-action-connect-conf/index.js +3 -0
  244. package/dist/models/v1/svaml-action-connect-conf/index.js.map +1 -0
  245. package/dist/models/v1/svaml-action-connect-conf/svaml-action-connect-conf.d.ts +20 -0
  246. package/dist/models/v1/svaml-action-connect-conf/svaml-action-connect-conf.js +9 -0
  247. package/dist/models/v1/svaml-action-connect-conf/svaml-action-connect-conf.js.map +1 -0
  248. package/dist/models/v1/svaml-action-connect-conf-conference-dtmf-options/index.d.ts +1 -0
  249. package/dist/models/v1/svaml-action-connect-conf-conference-dtmf-options/index.js +3 -0
  250. package/dist/models/v1/svaml-action-connect-conf-conference-dtmf-options/index.js.map +1 -0
  251. package/dist/models/v1/svaml-action-connect-conf-conference-dtmf-options/svaml-action-connect-conf-conference-dtmf-options.d.ts +17 -0
  252. package/dist/models/v1/svaml-action-connect-conf-conference-dtmf-options/svaml-action-connect-conf-conference-dtmf-options.js +9 -0
  253. package/dist/models/v1/svaml-action-connect-conf-conference-dtmf-options/svaml-action-connect-conf-conference-dtmf-options.js.map +1 -0
  254. package/dist/models/v1/svaml-action-connect-mxp/index.d.ts +1 -0
  255. package/dist/models/v1/svaml-action-connect-mxp/index.js +3 -0
  256. package/dist/models/v1/svaml-action-connect-mxp/index.js.map +1 -0
  257. package/dist/models/v1/svaml-action-connect-mxp/svaml-action-connect-mxp.d.ts +19 -0
  258. package/dist/models/v1/svaml-action-connect-mxp/svaml-action-connect-mxp.js +9 -0
  259. package/dist/models/v1/svaml-action-connect-mxp/svaml-action-connect-mxp.js.map +1 -0
  260. package/dist/models/v1/svaml-action-connect-mxp-destination/index.d.ts +1 -0
  261. package/dist/models/v1/svaml-action-connect-mxp-destination/index.js +3 -0
  262. package/dist/models/v1/svaml-action-connect-mxp-destination/index.js.map +1 -0
  263. package/dist/models/v1/svaml-action-connect-mxp-destination/svaml-action-connect-mxp-destination.d.ts +15 -0
  264. package/dist/models/v1/svaml-action-connect-mxp-destination/svaml-action-connect-mxp-destination.js +9 -0
  265. package/dist/models/v1/svaml-action-connect-mxp-destination/svaml-action-connect-mxp-destination.js.map +1 -0
  266. package/dist/models/v1/svaml-action-connect-pstn/index.d.ts +1 -0
  267. package/dist/models/v1/svaml-action-connect-pstn/index.js +3 -0
  268. package/dist/models/v1/svaml-action-connect-pstn/index.js.map +1 -0
  269. package/dist/models/v1/svaml-action-connect-pstn/svaml-action-connect-pstn.d.ts +32 -0
  270. package/dist/models/v1/svaml-action-connect-pstn/svaml-action-connect-pstn.js +9 -0
  271. package/dist/models/v1/svaml-action-connect-pstn/svaml-action-connect-pstn.js.map +1 -0
  272. package/dist/models/v1/svaml-action-connect-pstn-amd/index.d.ts +1 -0
  273. package/dist/models/v1/svaml-action-connect-pstn-amd/index.js +3 -0
  274. package/dist/models/v1/svaml-action-connect-pstn-amd/index.js.map +1 -0
  275. package/dist/models/v1/svaml-action-connect-pstn-amd/svaml-action-connect-pstn-amd.d.ts +13 -0
  276. package/dist/models/v1/svaml-action-connect-pstn-amd/svaml-action-connect-pstn-amd.js +9 -0
  277. package/dist/models/v1/svaml-action-connect-pstn-amd/svaml-action-connect-pstn-amd.js.map +1 -0
  278. package/dist/models/v1/svaml-action-connect-sip/index.d.ts +1 -0
  279. package/dist/models/v1/svaml-action-connect-sip/index.js +3 -0
  280. package/dist/models/v1/svaml-action-connect-sip/index.js.map +1 -0
  281. package/dist/models/v1/svaml-action-connect-sip/svaml-action-connect-sip.d.ts +29 -0
  282. package/dist/models/v1/svaml-action-connect-sip/svaml-action-connect-sip.js +9 -0
  283. package/dist/models/v1/svaml-action-connect-sip/svaml-action-connect-sip.js.map +1 -0
  284. package/dist/models/v1/svaml-action-connect-sip-destination/index.d.ts +1 -0
  285. package/dist/models/v1/svaml-action-connect-sip-destination/index.js +3 -0
  286. package/dist/models/v1/svaml-action-connect-sip-destination/index.js.map +1 -0
  287. package/dist/models/v1/svaml-action-connect-sip-destination/svaml-action-connect-sip-destination.d.ts +13 -0
  288. package/dist/models/v1/svaml-action-connect-sip-destination/svaml-action-connect-sip-destination.js +9 -0
  289. package/dist/models/v1/svaml-action-connect-sip-destination/svaml-action-connect-sip-destination.js.map +1 -0
  290. package/dist/models/v1/svaml-action-continue/index.d.ts +1 -0
  291. package/dist/models/v1/svaml-action-continue/index.js +3 -0
  292. package/dist/models/v1/svaml-action-continue/index.js.map +1 -0
  293. package/dist/models/v1/svaml-action-continue/svaml-action-continue.d.ts +13 -0
  294. package/dist/models/v1/svaml-action-continue/svaml-action-continue.js +9 -0
  295. package/dist/models/v1/svaml-action-continue/svaml-action-continue.js.map +1 -0
  296. package/dist/models/v1/svaml-action-hangup/index.d.ts +1 -0
  297. package/dist/models/v1/svaml-action-hangup/index.js +3 -0
  298. package/dist/models/v1/svaml-action-hangup/index.js.map +1 -0
  299. package/dist/models/v1/svaml-action-hangup/svaml-action-hangup.d.ts +13 -0
  300. package/dist/models/v1/svaml-action-hangup/svaml-action-hangup.js +9 -0
  301. package/dist/models/v1/svaml-action-hangup/svaml-action-hangup.js.map +1 -0
  302. package/dist/models/v1/svaml-action-park/index.d.ts +1 -0
  303. package/dist/models/v1/svaml-action-park/index.js +3 -0
  304. package/dist/models/v1/svaml-action-park/index.js.map +1 -0
  305. package/dist/models/v1/svaml-action-park/svaml-action-park.d.ts +21 -0
  306. package/dist/models/v1/svaml-action-park/svaml-action-park.js +9 -0
  307. package/dist/models/v1/svaml-action-park/svaml-action-park.js.map +1 -0
  308. package/dist/models/v1/svaml-action-run-menu/index.d.ts +1 -0
  309. package/dist/models/v1/svaml-action-run-menu/index.js +3 -0
  310. package/dist/models/v1/svaml-action-run-menu/index.js.map +1 -0
  311. package/dist/models/v1/svaml-action-run-menu/svaml-action-run-menu.d.ts +24 -0
  312. package/dist/models/v1/svaml-action-run-menu/svaml-action-run-menu.js +9 -0
  313. package/dist/models/v1/svaml-action-run-menu/svaml-action-run-menu.js.map +1 -0
  314. package/dist/models/v1/svaml-instruction/index.d.ts +1 -0
  315. package/dist/models/v1/svaml-instruction/index.js +3 -0
  316. package/dist/models/v1/svaml-instruction/index.js.map +1 -0
  317. package/dist/models/v1/svaml-instruction/svaml-instruction.d.ts +17 -0
  318. package/dist/models/v1/svaml-instruction/svaml-instruction.js +9 -0
  319. package/dist/models/v1/svaml-instruction/svaml-instruction.js.map +1 -0
  320. package/dist/models/v1/svaml-instruction-answer/index.d.ts +1 -0
  321. package/dist/models/v1/svaml-instruction-answer/index.js +3 -0
  322. package/dist/models/v1/svaml-instruction-answer/index.js.map +1 -0
  323. package/dist/models/v1/svaml-instruction-answer/svaml-instruction-answer.d.ts +13 -0
  324. package/dist/models/v1/svaml-instruction-answer/svaml-instruction-answer.js +9 -0
  325. package/dist/models/v1/svaml-instruction-answer/svaml-instruction-answer.js.map +1 -0
  326. package/dist/models/v1/svaml-instruction-play-files/index.d.ts +1 -0
  327. package/dist/models/v1/svaml-instruction-play-files/index.js +3 -0
  328. package/dist/models/v1/svaml-instruction-play-files/index.js.map +1 -0
  329. package/dist/models/v1/svaml-instruction-play-files/svaml-instruction-play-files.d.ts +17 -0
  330. package/dist/models/v1/svaml-instruction-play-files/svaml-instruction-play-files.js +9 -0
  331. package/dist/models/v1/svaml-instruction-play-files/svaml-instruction-play-files.js.map +1 -0
  332. package/dist/models/v1/svaml-instruction-say/index.d.ts +1 -0
  333. package/dist/models/v1/svaml-instruction-say/index.js +3 -0
  334. package/dist/models/v1/svaml-instruction-say/index.js.map +1 -0
  335. package/dist/models/v1/svaml-instruction-say/svaml-instruction-say.d.ts +17 -0
  336. package/dist/models/v1/svaml-instruction-say/svaml-instruction-say.js +9 -0
  337. package/dist/models/v1/svaml-instruction-say/svaml-instruction-say.js.map +1 -0
  338. package/dist/models/v1/svaml-instruction-send-dtmf/index.d.ts +1 -0
  339. package/dist/models/v1/svaml-instruction-send-dtmf/index.js +3 -0
  340. package/dist/models/v1/svaml-instruction-send-dtmf/index.js.map +1 -0
  341. package/dist/models/v1/svaml-instruction-send-dtmf/svaml-instruction-send-dtmf.d.ts +15 -0
  342. package/dist/models/v1/svaml-instruction-send-dtmf/svaml-instruction-send-dtmf.js +9 -0
  343. package/dist/models/v1/svaml-instruction-send-dtmf/svaml-instruction-send-dtmf.js.map +1 -0
  344. package/dist/models/v1/svaml-instruction-set-cookie/index.d.ts +1 -0
  345. package/dist/models/v1/svaml-instruction-set-cookie/index.js +3 -0
  346. package/dist/models/v1/svaml-instruction-set-cookie/index.js.map +1 -0
  347. package/dist/models/v1/svaml-instruction-set-cookie/svaml-instruction-set-cookie.d.ts +17 -0
  348. package/dist/models/v1/svaml-instruction-set-cookie/svaml-instruction-set-cookie.js +9 -0
  349. package/dist/models/v1/svaml-instruction-set-cookie/svaml-instruction-set-cookie.js.map +1 -0
  350. package/dist/models/v1/svaml-instruction-start-recording/index.d.ts +1 -0
  351. package/dist/models/v1/svaml-instruction-start-recording/index.js +3 -0
  352. package/dist/models/v1/svaml-instruction-start-recording/index.js.map +1 -0
  353. package/dist/models/v1/svaml-instruction-start-recording/svaml-instruction-start-recording.d.ts +31 -0
  354. package/dist/models/v1/svaml-instruction-start-recording/svaml-instruction-start-recording.js +9 -0
  355. package/dist/models/v1/svaml-instruction-start-recording/svaml-instruction-start-recording.js.map +1 -0
  356. package/dist/models/v1/svaml-instruction-stop-recording/index.d.ts +1 -0
  357. package/dist/models/v1/svaml-instruction-stop-recording/index.js +3 -0
  358. package/dist/models/v1/svaml-instruction-stop-recording/index.js.map +1 -0
  359. package/dist/models/v1/svaml-instruction-stop-recording/svaml-instruction-stop-recording.d.ts +13 -0
  360. package/dist/models/v1/svaml-instruction-stop-recording/svaml-instruction-stop-recording.js +9 -0
  361. package/dist/models/v1/svaml-instruction-stop-recording/svaml-instruction-stop-recording.js.map +1 -0
  362. package/dist/models/v1/svaml-request-body/index.d.ts +1 -0
  363. package/dist/models/v1/svaml-request-body/index.js +3 -0
  364. package/dist/models/v1/svaml-request-body/index.js.map +1 -0
  365. package/dist/models/v1/svaml-request-body/svaml-request-body.d.ts +17 -0
  366. package/dist/models/v1/svaml-request-body/svaml-request-body.js +9 -0
  367. package/dist/models/v1/svaml-request-body/svaml-request-body.js.map +1 -0
  368. package/dist/models/v1/tts-callout-request/index.d.ts +1 -0
  369. package/dist/models/v1/tts-callout-request/index.js +3 -0
  370. package/dist/models/v1/tts-callout-request/index.js.map +1 -0
  371. package/dist/models/v1/tts-callout-request/tts-callout-request.d.ts +35 -0
  372. package/dist/models/v1/tts-callout-request/tts-callout-request.js +9 -0
  373. package/dist/models/v1/tts-callout-request/tts-callout-request.js.map +1 -0
  374. package/dist/models/v1/unassign-numbers/index.d.ts +1 -0
  375. package/dist/models/v1/unassign-numbers/index.js +3 -0
  376. package/dist/models/v1/unassign-numbers/index.js.map +1 -0
  377. package/dist/models/v1/unassign-numbers/unassign-numbers.d.ts +15 -0
  378. package/dist/models/v1/unassign-numbers/unassign-numbers.js +9 -0
  379. package/dist/models/v1/unassign-numbers/unassign-numbers.js.map +1 -0
  380. package/dist/models/v1/update-callbacks/index.d.ts +1 -0
  381. package/dist/models/v1/update-callbacks/index.js +3 -0
  382. package/dist/models/v1/update-callbacks/index.js.map +1 -0
  383. package/dist/models/v1/update-callbacks/update-callbacks.d.ts +11 -0
  384. package/dist/models/v1/update-callbacks/update-callbacks.js +9 -0
  385. package/dist/models/v1/update-callbacks/update-callbacks.js.map +1 -0
  386. package/dist/models/v1/update-callbacks-url/index.d.ts +1 -0
  387. package/dist/models/v1/update-callbacks-url/index.js +3 -0
  388. package/dist/models/v1/update-callbacks-url/index.js.map +1 -0
  389. package/dist/models/v1/update-callbacks-url/update-callbacks-url.d.ts +15 -0
  390. package/dist/models/v1/update-callbacks-url/update-callbacks-url.js +9 -0
  391. package/dist/models/v1/update-callbacks-url/update-callbacks-url.js.map +1 -0
  392. package/dist/models/v1/voice-error/index.d.ts +1 -0
  393. package/dist/models/v1/voice-error/index.js +3 -0
  394. package/dist/models/v1/voice-error/index.js.map +1 -0
  395. package/dist/models/v1/voice-error/voice-error.d.ts +16 -0
  396. package/dist/models/v1/voice-error/voice-error.js +9 -0
  397. package/dist/models/v1/voice-error/voice-error.js.map +1 -0
  398. package/dist/rest/index.d.ts +1 -0
  399. package/dist/rest/index.js +18 -0
  400. package/dist/rest/index.js.map +1 -0
  401. package/dist/rest/v1/applications/applications-api.d.ts +71 -0
  402. package/dist/rest/v1/applications/applications-api.jest.fixture.d.ts +29 -0
  403. package/dist/rest/v1/applications/applications-api.jest.fixture.js +33 -0
  404. package/dist/rest/v1/applications/applications-api.jest.fixture.js.map +1 -0
  405. package/dist/rest/v1/applications/applications-api.js +164 -0
  406. package/dist/rest/v1/applications/applications-api.js.map +1 -0
  407. package/dist/rest/v1/applications/index.d.ts +2 -0
  408. package/dist/rest/v1/applications/index.js +19 -0
  409. package/dist/rest/v1/applications/index.js.map +1 -0
  410. package/dist/rest/v1/callbacks/callbacks-webhook.d.ts +3 -0
  411. package/dist/rest/v1/callbacks/callbacks-webhook.js +25 -0
  412. package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -0
  413. package/dist/rest/v1/callbacks/index.d.ts +1 -0
  414. package/dist/rest/v1/callbacks/index.js +18 -0
  415. package/dist/rest/v1/callbacks/index.js.map +1 -0
  416. package/dist/rest/v1/callouts/callouts-api.d.ts +53 -0
  417. package/dist/rest/v1/callouts/callouts-api.jest.fixture.d.ts +17 -0
  418. package/dist/rest/v1/callouts/callouts-api.jest.fixture.js +21 -0
  419. package/dist/rest/v1/callouts/callouts-api.jest.fixture.js.map +1 -0
  420. package/dist/rest/v1/callouts/callouts-api.js +88 -0
  421. package/dist/rest/v1/callouts/callouts-api.js.map +1 -0
  422. package/dist/rest/v1/callouts/index.d.ts +2 -0
  423. package/dist/rest/v1/callouts/index.js +19 -0
  424. package/dist/rest/v1/callouts/index.js.map +1 -0
  425. package/dist/rest/v1/calls/calls-api.d.ts +48 -0
  426. package/dist/rest/v1/calls/calls-api.jest.fixture.d.ts +17 -0
  427. package/dist/rest/v1/calls/calls-api.jest.fixture.js +21 -0
  428. package/dist/rest/v1/calls/calls-api.jest.fixture.js.map +1 -0
  429. package/dist/rest/v1/calls/calls-api.js +88 -0
  430. package/dist/rest/v1/calls/calls-api.js.map +1 -0
  431. package/dist/rest/v1/calls/index.d.ts +2 -0
  432. package/dist/rest/v1/calls/index.js +19 -0
  433. package/dist/rest/v1/calls/index.js.map +1 -0
  434. package/dist/rest/v1/conferences/conferences-api.d.ts +57 -0
  435. package/dist/rest/v1/conferences/conferences-api.jest.fixture.d.ts +21 -0
  436. package/dist/rest/v1/conferences/conferences-api.jest.fixture.js +25 -0
  437. package/dist/rest/v1/conferences/conferences-api.jest.fixture.js.map +1 -0
  438. package/dist/rest/v1/conferences/conferences-api.js +113 -0
  439. package/dist/rest/v1/conferences/conferences-api.js.map +1 -0
  440. package/dist/rest/v1/conferences/index.d.ts +2 -0
  441. package/dist/rest/v1/conferences/index.js +19 -0
  442. package/dist/rest/v1/conferences/index.js.map +1 -0
  443. package/dist/rest/v1/enums.d.ts +1 -0
  444. package/dist/rest/v1/enums.js +3 -0
  445. package/dist/rest/v1/enums.js.map +1 -0
  446. package/dist/rest/v1/fixtures.jest.d.ts +4 -0
  447. package/dist/rest/v1/fixtures.jest.js +12 -0
  448. package/dist/rest/v1/fixtures.jest.js.map +1 -0
  449. package/dist/rest/v1/index.d.ts +7 -0
  450. package/dist/rest/v1/index.js +24 -0
  451. package/dist/rest/v1/index.js.map +1 -0
  452. package/dist/rest/v1/voice-api.d.ts +31 -0
  453. package/dist/rest/v1/voice-api.js +91 -0
  454. package/dist/rest/v1/voice-api.js.map +1 -0
  455. package/dist/rest/v1/voice.d.ts +25 -0
  456. package/dist/rest/v1/voice.js +31 -0
  457. package/dist/rest/v1/voice.js.map +1 -0
  458. package/package.json +37 -0
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicationsApi = void 0;
4
+ const voice_api_1 = require("../voice-api");
5
+ class ApplicationsApi extends voice_api_1.VoiceApi {
6
+ /**
7
+ * Initialize your interface
8
+ *
9
+ * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
10
+ */
11
+ constructor(sinchClientParameters) {
12
+ super(sinchClientParameters, 'ApplicationsApi');
13
+ }
14
+ /**
15
+ * Query number
16
+ * Returns information about the requested number.
17
+ * @param { QueryNumberRequestData } data - The data to provide to the API call.
18
+ */
19
+ async queryNumber(data) {
20
+ this.client = this.getSinchClient();
21
+ const getParams = this.client.extractQueryParams(data, []);
22
+ const headers = {
23
+ 'Content-Type': 'application/json',
24
+ 'Accept': 'application/json',
25
+ };
26
+ const body = '';
27
+ // Remove the spaces in the phone number in order to not have inconsistencies in the way the URL is encoded in the SDK and server side when calculating the request signature
28
+ const path = `/v1/calling/query/number/${data['number'].split(" ").join("")}`;
29
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
30
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
31
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
32
+ return this.client.processCall({
33
+ url,
34
+ requestOptions,
35
+ apiName: this.apiName,
36
+ operationId: 'QueryNumber',
37
+ });
38
+ }
39
+ /**
40
+ * Get Callback URLs
41
+ * Returns any callback URLs configured for the specified application.
42
+ * @param { GetCallbackURLsRequestData } data - The data to provide to the API call.
43
+ */
44
+ async getCallbackURLs(data) {
45
+ this.client = this.getSinchClient();
46
+ const getParams = this.client.extractQueryParams(data, []);
47
+ const headers = {
48
+ 'Content-Type': 'application/json',
49
+ 'Accept': 'application/json',
50
+ };
51
+ const body = '';
52
+ const path = `/v1/configuration/callbacks/applications/${data['applicationkey']}`;
53
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
54
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
55
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
56
+ return this.client.processCall({
57
+ url,
58
+ requestOptions,
59
+ apiName: this.apiName,
60
+ operationId: 'GetCallbackURLs',
61
+ });
62
+ }
63
+ /**
64
+ * Get Numbers
65
+ * Get information about your numbers. It returns a list of numbers that you own, as well as their capability (voice or SMS). For the ones that are assigned to an app, it returns the application key of the app.
66
+ * @param { GetNumbersRequestData } data - The data to provide to the API call.
67
+ */
68
+ async getNumbers(data) {
69
+ this.client = this.getSinchClient();
70
+ const getParams = this.client.extractQueryParams(data, []);
71
+ const headers = {
72
+ 'Content-Type': 'application/json',
73
+ 'Accept': 'application/json',
74
+ };
75
+ const body = '';
76
+ const path = `/v1/configuration/numbers`;
77
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
78
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
79
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
80
+ return this.client.processCall({
81
+ url,
82
+ requestOptions,
83
+ apiName: this.apiName,
84
+ operationId: 'GetNumbers',
85
+ });
86
+ }
87
+ /**
88
+ * Un-assign number
89
+ * Un-assign a number from an application.
90
+ * @param { UnassignNumberRequestData } data - The data to provide to the API call.
91
+ */
92
+ async unassignNumber(data) {
93
+ this.client = this.getSinchClient();
94
+ const getParams = this.client.extractQueryParams(data, []);
95
+ const headers = {
96
+ 'Content-Type': 'application/json',
97
+ 'Accept': 'application/json',
98
+ };
99
+ const body = data['unassignNumbersRequestBody']
100
+ ? JSON.stringify(data['unassignNumbersRequestBody']) : '{}';
101
+ const path = `/v1/configuration/numbers`;
102
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
103
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'DELETE', getParams, headers, body || undefined, path);
104
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
105
+ return this.client.processCall({
106
+ url,
107
+ requestOptions,
108
+ apiName: this.apiName,
109
+ operationId: 'UnassignNumber',
110
+ });
111
+ }
112
+ /**
113
+ * Update Callbacks
114
+ * Update the configured callback URLs for the specified application.
115
+ * @param { UpdateCallbackURLsRequestData } data - The data to provide to the API call.
116
+ */
117
+ async updateCallbackURLs(data) {
118
+ this.client = this.getSinchClient();
119
+ const getParams = this.client.extractQueryParams(data, []);
120
+ const headers = {
121
+ 'Content-Type': 'application/json',
122
+ 'Accept': 'application/json',
123
+ };
124
+ const body = data['updateCallbacksRequestBody']
125
+ ? JSON.stringify(data['updateCallbacksRequestBody']) : '{}';
126
+ const path = `/v1/configuration/callbacks/applications/${data['applicationkey']}`;
127
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
128
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined, path);
129
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
130
+ return this.client.processCall({
131
+ url,
132
+ requestOptions,
133
+ apiName: this.apiName,
134
+ operationId: 'UpdateCallbackURLs',
135
+ });
136
+ }
137
+ /**
138
+ * Update Numbers
139
+ * Assign a number or a list of numbers to an application.
140
+ * @param { AssignNumbersRequestData } data - The data to provide to the API call.
141
+ */
142
+ async assignNumbers(data) {
143
+ this.client = this.getSinchClient();
144
+ const getParams = this.client.extractQueryParams(data, []);
145
+ const headers = {
146
+ 'Content-Type': 'application/json',
147
+ 'Accept': 'application/json',
148
+ };
149
+ const body = data['assignNumbersRequestBody']
150
+ ? JSON.stringify(data['assignNumbersRequestBody']) : '{}';
151
+ const path = `/v1/configuration/numbers`;
152
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
153
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined, path);
154
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
155
+ return this.client.processCall({
156
+ url,
157
+ requestOptions,
158
+ apiName: this.apiName,
159
+ operationId: 'UpdateNumbers',
160
+ });
161
+ }
162
+ }
163
+ exports.ApplicationsApi = ApplicationsApi;
164
+ //# sourceMappingURL=applications-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/applications/applications-api.ts"],"names":[],"mappings":";;;AAYA,4CAAwC;AA2BxC,MAAa,eAAgB,SAAQ,oBAAQ;IAE3C;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;IAClD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,WAAW,CAAC,IAA4B;QACnD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAyB,IAAI,EAAE,EAAa,CAAC,CAAC;QAC9F,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,EAAE,CAAC;QAC7B,6KAA6K;QAC7K,MAAM,IAAI,GAAG,4BAA4B,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;QAC9E,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GACd,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,CAAC,CAAC;QACxG,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,CAAiB;YAC7C,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,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EAAE,eAAe;SAC7B,CAAC,CAAC;IACL,CAAC;CAEF;AA7LD,0CA6LC"}
@@ -0,0 +1,2 @@
1
+ export * from './applications-api';
2
+ export * from './applications-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("./applications-api"), exports);
18
+ __exportStar(require("./applications-api.jest.fixture"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/applications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,kEAAgD"}
@@ -0,0 +1,3 @@
1
+ import { AceRequest, DiceRequest, IceRequest, NotifyRequest, PieRequest } from '../../../models';
2
+ export type VoiceCallback = IceRequest | AceRequest | DiceRequest | PieRequest | NotifyRequest;
3
+ export declare const parseVoiceEventNotification: (eventBody: any) => VoiceCallback;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseVoiceEventNotification = void 0;
4
+ const parseVoiceEventNotification = (eventBody) => {
5
+ if (eventBody.event) {
6
+ switch (eventBody.event) {
7
+ case 'ice':
8
+ return eventBody;
9
+ case 'ace':
10
+ return eventBody;
11
+ case 'dice':
12
+ return eventBody;
13
+ case 'pie':
14
+ return eventBody;
15
+ case 'notify':
16
+ return eventBody;
17
+ default:
18
+ throw new Error(`Unknown Voice event type: ${eventBody.event}`);
19
+ }
20
+ }
21
+ console.log(eventBody);
22
+ throw new Error('Unknown Voice event');
23
+ };
24
+ exports.parseVoiceEventNotification = parseVoiceEventNotification;
25
+ //# sourceMappingURL=callbacks-webhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callbacks-webhook.js","sourceRoot":"","sources":["../../../../src/rest/v1/callbacks/callbacks-webhook.ts"],"names":[],"mappings":";;;AAIO,MAAM,2BAA2B,GAAG,CAAC,SAAc,EAAiB,EAAE;IAC3E,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;QACpB,QAAQ,SAAS,CAAC,KAAK,EAAE,CAAC;YAC1B,KAAK,KAAK;gBACR,OAAO,SAAuB,CAAC;YACjC,KAAK,KAAK;gBACR,OAAO,SAAuB,CAAC;YACjC,KAAK,MAAM;gBACT,OAAO,SAAwB,CAAC;YAClC,KAAK,KAAK;gBACR,OAAO,SAAuB,CAAC;YACjC,KAAK,QAAQ;gBACX,OAAO,SAA0B,CAAC;YACpC;gBACE,MAAM,IAAI,KAAK,CAAC,6BAA6B,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC;QAClE,CAAC;IACH,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACvB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;AACzC,CAAC,CAAC;AAnBW,QAAA,2BAA2B,+BAmBtC"}
@@ -0,0 +1 @@
1
+ export * from './callbacks-webhook';
@@ -0,0 +1,18 @@
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("./callbacks-webhook"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/callbacks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -0,0 +1,53 @@
1
+ import { ConferenceCalloutRequest, CustomCalloutRequest, GetCalloutResponseObj, TtsCalloutRequest } from '../../../models';
2
+ import { SinchClientParameters } from '@sinch/sdk-client';
3
+ import { VoiceApi } from '../voice-api';
4
+ export interface TtsCalloutRequestData {
5
+ 'ttsCalloutRequestBody': {
6
+ /** Type of callout. */
7
+ method: 'ttsCallout';
8
+ /** @see TtsCalloutRequest */
9
+ ttsCallout: TtsCalloutRequest;
10
+ };
11
+ }
12
+ export interface ConferenceCalloutRequestData {
13
+ 'conferenceCalloutRequestBody': {
14
+ /** Type of callout. */
15
+ method: 'conferenceCallout';
16
+ /** @see ConferenceCalloutRequest */
17
+ conferenceCallout: ConferenceCalloutRequest;
18
+ };
19
+ }
20
+ export interface CustomCalloutRequestData {
21
+ 'customCalloutRequestBody': {
22
+ /** Type of callout. */
23
+ method: 'customCallout';
24
+ /** @see CustomCalloutRequest */
25
+ customCallout: CustomCalloutRequest;
26
+ };
27
+ }
28
+ export declare class CalloutsApi extends VoiceApi {
29
+ /**
30
+ * Initialize your interface
31
+ *
32
+ * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
33
+ */
34
+ constructor(sinchClientParameters: SinchClientParameters);
35
+ /**
36
+ * TTS Callout Request
37
+ * Makes a text-to-speech callout to a phone number.
38
+ * @param { TtsCalloutRequestData } data - The data to provide to the API call.
39
+ */
40
+ tts(data: TtsCalloutRequestData): Promise<GetCalloutResponseObj>;
41
+ /**
42
+ * Conference Callout Request
43
+ * Makes a conference callout to a phone number.
44
+ * @param { ConferenceCalloutRequestData } data - The data to provide to the API call.
45
+ */
46
+ conference(data: ConferenceCalloutRequestData): Promise<GetCalloutResponseObj>;
47
+ /**
48
+ * Custom Callout Request
49
+ * Makes a conference callout to a phone number.
50
+ * @param { CustomCalloutRequestData } data - The data to provide to the API call.
51
+ */
52
+ custom(data: CustomCalloutRequestData): Promise<GetCalloutResponseObj>;
53
+ }
@@ -0,0 +1,17 @@
1
+ /// <reference types="jest" />
2
+ import { GetCalloutResponseObj } from '../../../models';
3
+ import { CalloutsApi, ConferenceCalloutRequestData, CustomCalloutRequestData, TtsCalloutRequestData } from './callouts-api';
4
+ export declare class CalloutsApiFixture implements Partial<Readonly<CalloutsApi>> {
5
+ /**
6
+ * Fixture associated to function tts
7
+ */
8
+ tts: jest.Mock<Promise<GetCalloutResponseObj>, [TtsCalloutRequestData]>;
9
+ /**
10
+ * Fixture associated to function tts
11
+ */
12
+ conference: jest.Mock<Promise<GetCalloutResponseObj>, [ConferenceCalloutRequestData]>;
13
+ /**
14
+ * Fixture associated to function tts
15
+ */
16
+ custom: jest.Mock<Promise<GetCalloutResponseObj>, [CustomCalloutRequestData]>;
17
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CalloutsApiFixture = void 0;
4
+ class CalloutsApiFixture {
5
+ constructor() {
6
+ /**
7
+ * Fixture associated to function tts
8
+ */
9
+ this.tts = jest.fn();
10
+ /**
11
+ * Fixture associated to function tts
12
+ */
13
+ this.conference = jest.fn();
14
+ /**
15
+ * Fixture associated to function tts
16
+ */
17
+ this.custom = jest.fn();
18
+ }
19
+ }
20
+ exports.CalloutsApiFixture = CalloutsApiFixture;
21
+ //# sourceMappingURL=callouts-api.jest.fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callouts-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/callouts/callouts-api.jest.fixture.ts"],"names":[],"mappings":";;;AAQA,MAAa,kBAAkB;IAA/B;QAEE;;WAEG;QACI,QAAG,GAAuE,IAAI,CAAC,EAAE,EAAE,CAAC;QAE3F;;WAEG;QACI,eAAU,GAA8E,IAAI,CAAC,EAAE,EAAE,CAAC;QAEzG;;WAEG;QACI,WAAM,GAA0E,IAAI,CAAC,EAAE,EAAE,CAAC;IACnG,CAAC;CAAA;AAhBD,gDAgBC"}
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CalloutsApi = void 0;
4
+ const voice_api_1 = require("../voice-api");
5
+ class CalloutsApi extends voice_api_1.VoiceApi {
6
+ /**
7
+ * Initialize your interface
8
+ *
9
+ * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
10
+ */
11
+ constructor(sinchClientParameters) {
12
+ super(sinchClientParameters, 'CalloutsApi');
13
+ }
14
+ /**
15
+ * TTS Callout Request
16
+ * Makes a text-to-speech callout to a phone number.
17
+ * @param { TtsCalloutRequestData } data - The data to provide to the API call.
18
+ */
19
+ async tts(data) {
20
+ this.client = this.getSinchClient();
21
+ const getParams = this.client.extractQueryParams(data, []);
22
+ const headers = {
23
+ 'Content-Type': 'application/json',
24
+ 'Accept': 'application/json',
25
+ };
26
+ const body = data['ttsCalloutRequestBody'] ? JSON.stringify(data['ttsCalloutRequestBody']) : '{}';
27
+ const path = `/calling/v1/callouts`;
28
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
29
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body, path);
30
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
31
+ return this.client.processCall({
32
+ url,
33
+ requestOptions,
34
+ apiName: this.apiName,
35
+ operationId: 'Callouts',
36
+ });
37
+ }
38
+ /**
39
+ * Conference Callout Request
40
+ * Makes a conference callout to a phone number.
41
+ * @param { ConferenceCalloutRequestData } data - The data to provide to the API call.
42
+ */
43
+ async conference(data) {
44
+ this.client = this.getSinchClient();
45
+ const getParams = this.client.extractQueryParams(data, []);
46
+ const headers = {
47
+ 'Content-Type': 'application/json',
48
+ 'Accept': 'application/json',
49
+ };
50
+ const body = data['conferenceCalloutRequestBody'] ? JSON.stringify(data['conferenceCalloutRequestBody']) : '{}';
51
+ const path = `/calling/v1/callouts`;
52
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
53
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body, path);
54
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
55
+ return this.client.processCall({
56
+ url,
57
+ requestOptions,
58
+ apiName: this.apiName,
59
+ operationId: 'Callouts',
60
+ });
61
+ }
62
+ /**
63
+ * Custom Callout Request
64
+ * Makes a conference callout to a phone number.
65
+ * @param { CustomCalloutRequestData } data - The data to provide to the API call.
66
+ */
67
+ async custom(data) {
68
+ this.client = this.getSinchClient();
69
+ const getParams = this.client.extractQueryParams(data, []);
70
+ const headers = {
71
+ 'Content-Type': 'application/json',
72
+ 'Accept': 'application/json',
73
+ };
74
+ const body = data['customCalloutRequestBody'] ? JSON.stringify(data['customCalloutRequestBody']) : '{}';
75
+ const path = `/calling/v1/callouts`;
76
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
77
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body, path);
78
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
79
+ return this.client.processCall({
80
+ url,
81
+ requestOptions,
82
+ apiName: this.apiName,
83
+ operationId: 'Callouts',
84
+ });
85
+ }
86
+ }
87
+ exports.CalloutsApi = CalloutsApi;
88
+ //# sourceMappingUR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AAa,CAAC,CAAC;QAChG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GACN,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/F,MAAM,IAAI,GAAG,sBAAsB,CAAC;QACpC,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC7G,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,CAAwB;YACpD,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,UAAU;SACxB,CAAC,CAAC;IACL,CAAC;CAEF;AAjGD,kCAiGC"}
@@ -0,0 +1,2 @@
1
+ export * from './callouts-api';
2
+ export * from './callouts-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("./callouts-api"), exports);
18
+ __exportStar(require("./callouts-api.jest.fixture"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/callouts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8DAA4C"}
@@ -0,0 +1,48 @@
1
+ import { GetCallResponseObj, SVAMLRequestBody } from '../../../models';
2
+ import { SinchClientParameters } from '@sinch/sdk-client';
3
+ import { VoiceApi } from '../voice-api';
4
+ export type CallLegEnum = 'caller' | 'callee' | 'both';
5
+ export interface GetCallResultRequestData {
6
+ /** The unique identifier of the call. This value is generated by the system. */
7
+ 'callId': string;
8
+ }
9
+ export interface ManageWithCallLegRequestData {
10
+ /** The unique identifier of the call. This value is generated by the system. */
11
+ 'callId': string;
12
+ /** Specifies which part of the call will be managed. This option is used only by the `PlayFiles` and `Say` instructions to indicate which channel the sound will be played on. Valid options are `caller`, `callee` or `both`. If not specified, the default value is `caller`.</br><Warning>The `callLeg` identifier is ignored for calls that are part of a conference and calls initiated using the Callout API.</Warning> */
13
+ 'callLeg': CallLegEnum;
14
+ /** */
15
+ 'svamlRequestBody'?: SVAMLRequestBody;
16
+ }
17
+ export interface UpdateCallRequestData {
18
+ /** The unique identifier of the call. This value is generated by the system. */
19
+ 'callId': string;
20
+ /** */
21
+ 'svamlRequestBody'?: SVAMLRequestBody;
22
+ }
23
+ export declare class CallsApi extends VoiceApi {
24
+ /**
25
+ * Initialize your interface
26
+ *
27
+ * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
28
+ */
29
+ constructor(sinchClientParameters: SinchClientParameters);
30
+ /**
31
+ * Get information about a call
32
+ * You can retrieve information about an ongoing or completed call using a call ID. You can find the call ID of an ongoing call by viewing the response object from a callout request. You can find the call ID of a completed call by looking at your call logs in your Sinch [Dashboard](https://dashboard.sinch.com/voice/logs). Note: You can only use this method for calls that terminate to PSTN or SIP networks from an In-app call.
33
+ * @param { GetCallResultRequestData } data - The data to provide to the API call.
34
+ */
35
+ get(data: GetCallResultRequestData): Promise<GetCallResponseObj>;
36
+ /**
37
+ * Manage Call with &#x60;callLeg&#x60;
38
+ * This method is used to manage ongoing, connected calls. This method is only used when using the &#x60;PlayFiles&#x60; and &#x60;Say&#x60; instructions in the request body. This method uses SVAML in the request body to perform various tasks related to the call. For more information about SVAML, see the [Callback API](/docs/voice/api-reference/svaml/) documentation. Note: You can only use this method for calls that originate from or terminate to PSTN or SIP networks.
39
+ * @param { ManageWithCallLegRequestData } data - The data to provide to the API call.
40
+ */
41
+ manageWithCallLeg(data: ManageWithCallLegRequestData): Promise<void>;
42
+ /**
43
+ * Update a call in progress
44
+ * This method is used to manage ongoing, connected calls. This method uses SVAML in the request body to perform various tasks related to the call. For more information about SVAML, see the [Callback API](/docs/voice/api-reference/svaml/) documentation. This method can only be used for calls that originate from or terminate to PSTN or SIP networks.
45
+ * @param { UpdateCallRequestData } data - The data to provide to the API call.
46
+ */
47
+ update(data: UpdateCallRequestData): Promise<void>;
48
+ }
@@ -0,0 +1,17 @@
1
+ /// <reference types="jest" />
2
+ import { GetCallResponseObj } from '../../../models';
3
+ import { CallsApi, GetCallResultRequestData, ManageWithCallLegRequestData, UpdateCallRequestData } from './calls-api';
4
+ export declare class CallsApiFixture implements Partial<Readonly<CallsApi>> {
5
+ /**
6
+ * Fixture associated to function getCallResult
7
+ */
8
+ get: jest.Mock<Promise<GetCallResponseObj>, [GetCallResultRequestData]>;
9
+ /**
10
+ * Fixture associated to function manageCallWithCallLeg
11
+ */
12
+ manageWithCallLeg: jest.Mock<Promise<void>, [ManageWithCallLegRequestData]>;
13
+ /**
14
+ * Fixture associated to function updateCall
15
+ */
16
+ update: jest.Mock<Promise<void>, [UpdateCallRequestData]>;
17
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CallsApiFixture = void 0;
4
+ class CallsApiFixture {
5
+ constructor() {
6
+ /**
7
+ * Fixture associated to function getCallResult
8
+ */
9
+ this.get = jest.fn();
10
+ /**
11
+ * Fixture associated to function manageCallWithCallLeg
12
+ */
13
+ this.manageWithCallLeg = jest.fn();
14
+ /**
15
+ * Fixture associated to function updateCall
16
+ */
17
+ this.update = jest.fn();
18
+ }
19
+ }
20
+ exports.CallsApiFixture = CallsApiFixture;
21
+ //# sourceMappingURL=calls-api.jest.fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calls-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/calls/calls-api.jest.fixture.ts"],"names":[],"mappings":";;;AAGA,MAAa,eAAe;IAA5B;QAEE;;WAEG;QACI,QAAG,GAAuE,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3F;;WAEG;QACI,sBAAiB,GAA6D,IAAI,CAAC,EAAE,EAAE,CAAC;QAC/F;;WAEG;QACI,WAAM,GAAsD,IAAI,CAAC,EAAE,EAAE,CAAC;IAC/E,CAAC;CAAA;AAdD,0CAcC"}