@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,31 @@
1
+ /**
2
+ * Model: SvamlInstructionStartRecording
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ /**
8
+ * Starts a recording of the call.
9
+ */
10
+ export interface SvamlInstructionStartRecording {
11
+ /** The `name` property. Must have the value `startRecording`. */
12
+ name: 'startRecording';
13
+ /** An object that specifies details about the recording. For more details, see [Recording Options](../../recording/#recording-options). */
14
+ options?: StartRecordingOptions;
15
+ }
16
+ export interface StartRecordingOptions {
17
+ /** Where the recording file should be stored. Sinch supports Amazon S3 and Microsoft Azure Blob Storage */
18
+ destinationUrl: string;
19
+ /** Specifies the information required for the Sinch platform to authenticate and/or authorize in the destination service in order to be able to store the file. */
20
+ credentials: string;
21
+ /** An optional property that specifies the format of the recording file. Default value is "mp3". */
22
+ format?: string;
23
+ /** An optional property that specifies if Sinch should send your backend events when the call recording is finished and when the file is available in the destination URL specified. Default value is “true” */
24
+ notificationEvents?: boolean;
25
+ /** */
26
+ transcriptionOptions?: TranscriptionOptions;
27
+ }
28
+ export interface TranscriptionOptions {
29
+ enabled?: boolean;
30
+ locale?: string;
31
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: SvamlInstructionStartRecording
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=svaml-instruction-start-recording.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svaml-instruction-start-recording.js","sourceRoot":"","sources":["../../../../src/models/v1/svaml-instruction-start-recording/svaml-instruction-start-recording.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { SvamlInstructionStopRecording } from './svaml-instruction-stop-recording';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/svaml-instruction-stop-recording/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Model: SvamlInstructionStopRecording
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ /**
8
+ * Stops the recording of the call.
9
+ */
10
+ export interface SvamlInstructionStopRecording {
11
+ /** The `name` property. Must have the value `stopRecording`. */
12
+ name: 'stopRecording';
13
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: SvamlInstructionStopRecording
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=svaml-instruction-stop-recording.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svaml-instruction-stop-recording.js","sourceRoot":"","sources":["../../../../src/models/v1/svaml-instruction-stop-recording/svaml-instruction-stop-recording.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { SVAMLRequestBody } from './svaml-request-body';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/svaml-request-body/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Model: SVAMLRequestBody
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ import { SvamlAction } from '../svaml-action';
8
+ import { SvamlInstruction } from '../svaml-instruction';
9
+ /**
10
+ * SVAML is a call control markup language. When a server receives a callback event from the Sinch platform, it can respond with a SVAML object to control the voice call. The following is an example of a SVAML object type and its contents.
11
+ */
12
+ export interface SVAMLRequestBody {
13
+ /** The collection of instructions that can perform various tasks during the call. You can include as many instructions as necessary. */
14
+ instructions?: SvamlInstruction[];
15
+ /** @see SvamlAction */
16
+ action?: SvamlAction;
17
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: SVAMLRequestBody
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=svaml-request-body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svaml-request-body.js","sourceRoot":"","sources":["../../../../src/models/v1/svaml-request-body/svaml-request-body.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { TtsCalloutRequest } from './tts-callout-request';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/tts-callout-request/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Model: TtsCalloutRequest
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ import { Destination } from '../destination';
8
+ /**
9
+ * The text-to-speech callout calls a phone number and plays a synthesized text messages or pre-recorded sound files.
10
+ */
11
+ export interface TtsCalloutRequest {
12
+ /** The number that will be displayed as the incoming caller. To set your own CLI, you may use your verified number or your Dashboard number. The number must be in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format. */
13
+ cli?: string;
14
+ /** @see Destination */
15
+ destination: Destination;
16
+ /** When the destination picks up, this DTMF tones will be played to the callee. Valid characters in the string are "0"-"9", "#", and "w". A "w" will render a 500 ms pause. For example, "ww1234#w#" will render a 1s pause, the DTMF tones "1", "2", "3", "4" and "#" followed by a 0.5s pause and finally the DTMF tone for "#". This can be used if the callout destination for instance require a conference PIN code or an extension to be entered. */
17
+ dtmf?: string;
18
+ /** Can be either `pstn` for PSTN endpoint or `mxp` for data (app or web) clients. */
19
+ domain?: DomainEnum;
20
+ /** Can be used to input custom data. */
21
+ custom?: string;
22
+ /** The voice and language you want to use for the text-to-speech message. This can either be defined by the ISO 639 locale and language code or by specifying a particular voice. Supported languages and voices are detailed [here](../../../voice-locales/). */
23
+ locale?: string;
24
+ /** The text that will be spoken in the text-to-speech message. _Every application's default maximum characters allowed in text-to-speech is 600 characters. Contact support if you wish this limit to be changed._ */
25
+ text?: string;
26
+ /** An advanced alternative to using ```text```. __TTS__ _Text To Speech:_ The equivalent of text but within the prompt property. Example: _```#tts[Hello from Sinch]```_ __TTS with SSML__ _Text To Speech with Speech Synthesis Markup Language (SSML)._ This is an XML-based markup language for assisting the generation of synthetic speech in the Web and other applications. AWS Polly supports a sub-set of SSML. This allows us to use SSML-enhanced text for additional control over how Polly generates speech from the text. Details and examples of supported tags are [here](https://docs.aws.amazon.com/polly/latest/dg/supportedtags.html) __Externally hosted media:__ Provide a URL to your own hosted media. Please check [here](../../../supported-audio-formats/#limits) to read about audio content type and usage limits. _Every application's default maximum allowed in TTS or TTS SSML is 600 characters. Contact support if you wish this limit to be changed._ _Several prompts can be used, separated by a semi-colon_ ```;``` Example: _```#tts[Hello from Sinch];#ssml[<speak><break time="250ms"/>Have a great day!</speak>]```_ */
27
+ prompts?: string;
28
+ /** If `enableAce` is set to `true` and the application has a callback URL specified, you will receive an ACE callback when the call is answered. When the callback is received, your platform must respond with a svamlet, containing the “connectconf” action in order to add the call to a conference or create the conference if it's the first call. If it's set to `false`, no ACE event will be sent to your backend. */
29
+ enableAce?: boolean;
30
+ /** If `enableDice` is set to `true` and the application has a callback URL specified, you will receive a DiCE callback when the call is disconnected. If it's set to `false`, no DiCE event will be sent to your backend. */
31
+ enableDice?: boolean;
32
+ /** <b>Note:</b> PIE callbacks are not available for DATA Calls; only PSTN and SIP calls. If `enablePie` is set to `true` and the application has a callback URL specified, you will receive a PIE callback after the `runMenu` action executes and after the configured menu timeout has elapsed with no input. If it's set to `false`, no PIE events will be sent to your backend. */
33
+ enablePie?: boolean;
34
+ }
35
+ export type DomainEnum = 'pstn' | 'mxp';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: TtsCalloutRequest
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=tts-callout-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tts-callout-request.js","sourceRoot":"","sources":["../../../../src/models/v1/tts-callout-request/tts-callout-request.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { UnassignNumbers } from './unassign-numbers';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/unassign-numbers/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Model: UnassignNumbers
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ export interface UnassignNumbers {
8
+ /** The phone number in E.164 format (https://en.wikipedia.org/wiki/E.164) */
9
+ number?: string;
10
+ /** Indicates the application where the number(s) was assigned. If empty, the application key that is used to sign the request will be used. */
11
+ applicationkey?: string;
12
+ /** (optional) indicates the DID capability that was assigned to the chosen application. Please note that the DID needs to support the selected capability. */
13
+ capability?: CapabilityEnum;
14
+ }
15
+ export type CapabilityEnum = 'voice' | 'sms';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: UnassignNumbers
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=unassign-numbers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unassign-numbers.js","sourceRoot":"","sources":["../../../../src/models/v1/unassign-numbers/unassign-numbers.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { UpdateCallbacks } from './update-callbacks';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/update-callbacks/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Model: UpdateCallbacks
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ import { UpdateCallbacksUrl } from '../update-callbacks-url';
8
+ export interface UpdateCallbacks {
9
+ /** @see UpdateCallbacksUrl */
10
+ url?: UpdateCallbacksUrl;
11
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: UpdateCallbacks
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=update-callbacks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-callbacks.js","sourceRoot":"","sources":["../../../../src/models/v1/update-callbacks/update-callbacks.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { UpdateCallbacksUrl } from './update-callbacks-url';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/update-callbacks-url/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Model: UpdateCallbacksUrl
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ /**
8
+ * Contains primary and or fallback callback URLs
9
+ */
10
+ export interface UpdateCallbacksUrl {
11
+ /** Your primary callback URL */
12
+ primary?: string;
13
+ /** Your fallback callback URL */
14
+ fallback?: string;
15
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: UpdateCallbacksUrl
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=update-callbacks-url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-callbacks-url.js","sourceRoot":"","sources":["../../../../src/models/v1/update-callbacks-url/update-callbacks-url.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { VoiceError } from './voice-error';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/voice-error/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Model: VerificationError
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ export interface VoiceError {
8
+ /** A summary of the HTTP error code and error type. */
9
+ status?: string;
10
+ /** The HTTP error code. */
11
+ errorCode?: string;
12
+ /** A simple description of the cause of the error. */
13
+ message?: string;
14
+ /** If applicable, a reference ID for support to use with diagnosing the error. */
15
+ reference?: string;
16
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: VerificationError
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=voice-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-error.js","sourceRoot":"","sources":["../../../../src/models/v1/voice-error/voice-error.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export * from './v1';
@@ -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("./v1"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rest/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB"}
@@ -0,0 +1,71 @@
1
+ import { GetCallbacks, GetNumbersResponseObj, GetQueryNumber, UnassignNumbers, UpdateCallbacks, AssignNumbers } from '../../../models';
2
+ import { SinchClientParameters } from '@sinch/sdk-client';
3
+ import { VoiceApi } from '../voice-api';
4
+ export interface QueryNumberRequestData {
5
+ /** The phone number you want to query. */
6
+ 'number': string;
7
+ }
8
+ export interface GetCallbackURLsRequestData {
9
+ /** The unique identifying key of the application. */
10
+ 'applicationkey': string;
11
+ }
12
+ export interface GetNumbersRequestData {
13
+ }
14
+ export interface UnassignNumberRequestData {
15
+ /** */
16
+ 'unassignNumbersRequestBody'?: UnassignNumbers;
17
+ }
18
+ export interface UpdateCallbackURLsRequestData {
19
+ /** The unique identifying key of the application. */
20
+ 'applicationkey': string;
21
+ /** */
22
+ 'updateCallbacksRequestBody'?: UpdateCallbacks;
23
+ }
24
+ export interface AssignNumbersRequestData {
25
+ /** */
26
+ 'assignNumbersRequestBody'?: AssignNumbers;
27
+ }
28
+ export declare class ApplicationsApi 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
+ * Query number
37
+ * Returns information about the requested number.
38
+ * @param { QueryNumberRequestData } data - The data to provide to the API call.
39
+ */
40
+ queryNumber(data: QueryNumberRequestData): Promise<GetQueryNumber>;
41
+ /**
42
+ * Get Callback URLs
43
+ * Returns any callback URLs configured for the specified application.
44
+ * @param { GetCallbackURLsRequestData } data - The data to provide to the API call.
45
+ */
46
+ getCallbackURLs(data: GetCallbackURLsRequestData): Promise<GetCallbacks>;
47
+ /**
48
+ * Get Numbers
49
+ * 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.
50
+ * @param { GetNumbersRequestData } data - The data to provide to the API call.
51
+ */
52
+ getNumbers(data: GetNumbersRequestData): Promise<GetNumbersResponseObj>;
53
+ /**
54
+ * Un-assign number
55
+ * Un-assign a number from an application.
56
+ * @param { UnassignNumberRequestData } data - The data to provide to the API call.
57
+ */
58
+ unassignNumber(data: UnassignNumberRequestData): Promise<void>;
59
+ /**
60
+ * Update Callbacks
61
+ * Update the configured callback URLs for the specified application.
62
+ * @param { UpdateCallbackURLsRequestData } data - The data to provide to the API call.
63
+ */
64
+ updateCallbackURLs(data: UpdateCallbackURLsRequestData): Promise<void>;
65
+ /**
66
+ * Update Numbers
67
+ * Assign a number or a list of numbers to an application.
68
+ * @param { AssignNumbersRequestData } data - The data to provide to the API call.
69
+ */
70
+ assignNumbers(data: AssignNumbersRequestData): Promise<void>;
71
+ }
@@ -0,0 +1,29 @@
1
+ /// <reference types="jest" />
2
+ import { GetCallbacks, GetNumbersResponseObj, GetQueryNumber } from '../../../models';
3
+ import { ApplicationsApi, QueryNumberRequestData, GetCallbackURLsRequestData, GetNumbersRequestData, UnassignNumberRequestData, UpdateCallbackURLsRequestData, AssignNumbersRequestData } from './applications-api';
4
+ export declare class ApplicationsApiFixture implements Partial<Readonly<ApplicationsApi>> {
5
+ /**
6
+ * Fixture associated to function queryNumber
7
+ */
8
+ queryNumber: jest.Mock<Promise<GetQueryNumber>, [QueryNumberRequestData]>;
9
+ /**
10
+ * Fixture associated to function getCallbackURLs
11
+ */
12
+ getCallbackURLs: jest.Mock<Promise<GetCallbacks>, [GetCallbackURLsRequestData]>;
13
+ /**
14
+ * Fixture associated to function getNumbers
15
+ */
16
+ getNumbers: jest.Mock<Promise<GetNumbersResponseObj>, [GetNumbersRequestData]>;
17
+ /**
18
+ * Fixture associated to function unassignNumber
19
+ */
20
+ unassignNumber: jest.Mock<Promise<void>, [UnassignNumberRequestData]>;
21
+ /**
22
+ * Fixture associated to function updateCallbackURLs
23
+ */
24
+ updateCallbackURLs: jest.Mock<Promise<void>, [UpdateCallbackURLsRequestData]>;
25
+ /**
26
+ * Fixture associated to function assignNumbers
27
+ */
28
+ assignNumbers: jest.Mock<Promise<void>, [AssignNumbersRequestData]>;
29
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicationsApiFixture = void 0;
4
+ class ApplicationsApiFixture {
5
+ constructor() {
6
+ /**
7
+ * Fixture associated to function queryNumber
8
+ */
9
+ this.queryNumber = jest.fn();
10
+ /**
11
+ * Fixture associated to function getCallbackURLs
12
+ */
13
+ this.getCallbackURLs = jest.fn();
14
+ /**
15
+ * Fixture associated to function getNumbers
16
+ */
17
+ this.getNumbers = jest.fn();
18
+ /**
19
+ * Fixture associated to function unassignNumber
20
+ */
21
+ this.unassignNumber = jest.fn();
22
+ /**
23
+ * Fixture associated to function updateCallbackURLs
24
+ */
25
+ this.updateCallbackURLs = jest.fn();
26
+ /**
27
+ * Fixture associated to function assignNumbers
28
+ */
29
+ this.assignNumbers = jest.fn();
30
+ }
31
+ }
32
+ exports.ApplicationsApiFixture = ApplicationsApiFixture;
33
+ //# sourceMappingURL=applications-api.jest.fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/applications/applications-api.jest.fixture.ts"],"names":[],"mappings":";;;AAGA,MAAa,sBAAsB;IAAnC;QAEE;;WAEG;QACI,gBAAW,GAAiE,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7F;;WAEG;QACI,oBAAe,GAAmE,IAAI,CAAC,EAAE,EAAE,CAAC;QACnG;;WAEG;QACI,eAAU,GAAuE,IAAI,CAAC,EAAE,EAAE,CAAC;QAClG;;WAEG;QACI,mBAAc,GAA0D,IAAI,CAAC,EAAE,EAAE,CAAC;QACzF;;WAEG;QACI,uBAAkB,GAA8D,IAAI,CAAC,EAAE,EAAE,CAAC;QACjG;;WAEG;QACI,kBAAa,GAAyD,IAAI,CAAC,EAAE,EAAE,CAAC;IACzF,CAAC;CAAA;AA1BD,wDA0BC"}