@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
package/README.md ADDED
@@ -0,0 +1,136 @@
1
+ # Sinch Voice SDK for Node.js
2
+
3
+ This package contains the Sinch Voice SDK for Node.js for use with [Sinch APIs](https://developers.sinch.com/). To use it, you will need a Sinch account. Please [sign up](https://dashboard.sinch.com/signup) or [log in](https://dashboard.sinch.com/login) if you already have one.
4
+
5
+ <span style="color:red; font-weight:bold">Warning:</span>
6
+ **This SDK is currently available for preview purposes only. It should not be used in production environments.**
7
+
8
+
9
+ ## Installation
10
+
11
+ We recommend to use this SDK as part of the `@sinch/sdk-core` package as it will take care about the authentication plugins to use.
12
+
13
+ However, it's still possible to use this SDK standalone is you need to access the Verification API only.
14
+
15
+ ### With NPM
16
+
17
+ ```bash
18
+ npm install @sinch/voice
19
+ ```
20
+
21
+ ### With Yarn
22
+
23
+ ```bash
24
+ yarn add @sinch/voice
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ ### Credentials
30
+
31
+ The `Voice` API uses the Application Signed Request to authenticate against the server. You will need to provide the following credentials:
32
+ - applicationKey: one of the application keys that can be found in [Apps section](https://dashboard.sinch.com/voice/apps) of the Voice dashboard
33
+ - applicationSecret: the corresponding secret that can be found at the same place
34
+
35
+ ### As part of the Sinch SDK
36
+
37
+ If you are using this SDK as part of the Sinch SDK (`@sinch/sdk-core`) you can access it as the `voice` property of the client that you would have instantiated.
38
+
39
+ ```typescript
40
+ import {
41
+ TtsCalloutRequestData,
42
+ GetCalloutResponseObj,
43
+ SinchClient,
44
+ SinchClientParameters,
45
+ } from '@sinch/sdk-core';
46
+
47
+ const credentials: SinchClientParameters = {
48
+ applicationKey: 'APPLICATION_ID',
49
+ applicationSecret: 'APPLICATION_SECRET',
50
+ };
51
+ const sinch = new SinchClient(credentials);
52
+
53
+ const requestData: TtsCalloutRequestData = {
54
+ ttsCalloutRequestBody: {
55
+ method: 'ttsCallout',
56
+ ttsCallout: {
57
+ destination: {
58
+ type: 'number',
59
+ endpoint: '+14045005000',
60
+ },
61
+ cli: '+14045001000',
62
+ locale: 'en-US',
63
+ text: 'Hello, this is a call from Sinch.',
64
+ },
65
+ },
66
+ };
67
+
68
+ // Access the 'voice' domain registered on the Sinch Client
69
+ const calloutResponse: GetCalloutResponseObj
70
+ = await sinch.voice.callouts.tts(requestData);
71
+ ```
72
+
73
+ ### Standalone
74
+
75
+ The SDK can be used standalone if you need to use only the Voice APIs.
76
+
77
+ ```typescript
78
+ import {
79
+ SinchClientParameters
80
+ } from '@sinch/sdk-client';
81
+ import {
82
+ TtsCalloutRequestData,
83
+ GetCalloutResponseObj,
84
+ Voice,
85
+ } from '@sinch/voice';
86
+
87
+ const credentials: SinchClientParameters = {
88
+ applicationKey: 'APPLICATION_ID',
89
+ applicationSecret: 'APPLICATION_SECRET',
90
+ };
91
+
92
+ // Declare the 'verification' in a standalone way
93
+ const voice = new Voice(credentials);
94
+
95
+ const requestData: TtsCalloutRequestData = {
96
+ ttsCalloutRequestBody: {
97
+ method: 'ttsCallout',
98
+ ttsCallout: {
99
+ destination: {
100
+ type: 'number',
101
+ endpoint: '+14045005000',
102
+ },
103
+ cli: '+14045001000',
104
+ locale: 'en-US',
105
+ text: 'Hello, this is a call from Sinch.',
106
+ },
107
+ },
108
+ };
109
+
110
+ // Use the standalone declaration of the 'verification' domain
111
+ const calloutResponse: GetCalloutResponseObj
112
+ = await voice.callouts.tts(requestData);
113
+ ```
114
+
115
+ ## Promises
116
+
117
+ All the methods that interact with the Sinch APIs use Promises. You can use `await` in an `async` method to wait for the response or you can resolve them yourself with `then()` / `catch()`.
118
+
119
+ ```typescript
120
+ // Method 1: Wait for the Promise to complete
121
+ let calloutResponse: GetCalloutResponseObj;
122
+ try {
123
+ calloutResponse = await sinch.voice.callouts.tts(requestData);
124
+ console.log(`callId = ${response.callId}`);
125
+ } catch (error: any) {
126
+ console.error(`ERROR ${error.statusCode}: Impossible to make a TTS callout to the number ${requestData.ttsCalloutRequestBody.ttsCallout.destination.endpoint}`);
127
+ }
128
+
129
+ // Method 2: Resolve the promise
130
+ sinch.voice.callouts.tts(requestData)
131
+ .then(response => console.log(`callId = ${response.callId}`))
132
+ .catch(error => console.error(`ERROR ${error.statusCode}: Impossible to make a TTS call out to the number ${requestData.ttsCalloutRequestBody.ttsCallout.destination.endpoint}`));
133
+ ```
134
+
135
+ ## Contact
136
+ Developer Experience team: [devexp@sinch.com](mailto:devexp@sinch.com)
@@ -0,0 +1,2 @@
1
+ export * from './models';
2
+ export * from './rest';
package/dist/index.js ADDED
@@ -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("./models"), exports);
18
+ __exportStar(require("./rest"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB"}
@@ -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/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Model: AceRequest
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ import { AceRequestAmd } from '../ace-request-amd';
8
+ /**
9
+ * The request body of an Answered Call Event.
10
+ */
11
+ export interface AceRequest {
12
+ /** Must have the value `ace`. */
13
+ event?: 'ace';
14
+ /** The unique ID assigned to this call. */
15
+ callid?: string;
16
+ /** The timestamp in UTC format. */
17
+ timestamp?: Date;
18
+ /** The current API version. */
19
+ version?: number;
20
+ /** A string that can be used to pass custom information related to the call. */
21
+ custom?: string;
22
+ /** @see AceRequestAmd */
23
+ amd?: AceRequestAmd;
24
+ /** The unique application key. You can find it in the Sinch [dashboard](https://dashboard.sinch.com/voice/apps). */
25
+ applicationKey?: string;
26
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: AceRequest
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=ace-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ace-request.js","sourceRoot":"","sources":["../../../../src/models/v1/ace-request/ace-request.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { AceRequest } from './ace-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/ace-request/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Model: AceRequestAmd
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ /**
8
+ * If [Answering Machine Detection](/docs/voice/api-reference/amd_v2) (AMD) is enabled, this object contains information about whether the call was answered by a machine.
9
+ */
10
+ export interface AceRequestAmd {
11
+ /** The determination by the system of who answered the call. */
12
+ status?: string;
13
+ /** The reason that the system used to determine who answered the call. */
14
+ reason?: string;
15
+ /** The length of the call. */
16
+ duration?: number;
17
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: AceRequestAmd
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=ace-request-amd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ace-request-amd.js","sourceRoot":"","sources":["../../../../src/models/v1/ace-request-amd/ace-request-amd.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { AceRequestAmd } from './ace-request-amd';
@@ -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/ace-request-amd/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { SvamlActionHangup } from '../svaml-action-hangup';
2
+ import { SvamlActionConnectConf } from '../svaml-action-connect-conf';
3
+ import { SvamlActionRunMenu } from '../svaml-action-run-menu';
4
+ import { SvamlActionContinue } from '../svaml-action-continue';
5
+ import { SvamlInstructionPlayFiles } from '../svaml-instruction-play-files';
6
+ import { SvamlInstructionSay } from '../svaml-instruction-say';
7
+ import { SvamlInstructionSetCookie } from '../svaml-instruction-set-cookie';
8
+ import { SvamlInstructionStartRecording } from '../svaml-instruction-start-recording';
9
+ export type AceSvamlAction = SvamlActionHangup | SvamlActionContinue | SvamlActionConnectConf | SvamlActionRunMenu;
10
+ export type AceSvamlInstruction = SvamlInstructionPlayFiles | SvamlInstructionSay | SvamlInstructionSetCookie | SvamlInstructionStartRecording;
11
+ export interface AceResponse {
12
+ /** The collection of instructions that can perform various tasks during the call. You can include as many instructions as necessary. */
13
+ instructions?: AceSvamlInstruction[];
14
+ /** @see SvamlAction */
15
+ action?: AceSvamlAction;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ace-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ace-response.js","sourceRoot":"","sources":["../../../../src/models/v1/ace-response/ace-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { AceResponse, AceSvamlAction } from './ace-response';
@@ -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/ace-response/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Model: AssignNumbers
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ export interface AssignNumbers {
8
+ /** The phone number or list of numbers in E.164 format. */
9
+ numbers?: string[];
10
+ /** indicates the application where the number(s) will be assigned. If empty, the application key that is used to sign the request will be used. */
11
+ applicationkey?: string;
12
+ /** indicates the DID capability that needs to be assigned to the chosen application. Valid values are 'voice' and 'sms'. 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: AssignNumbers
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=assign-numbers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assign-numbers.js","sourceRoot":"","sources":["../../../../src/models/v1/assign-numbers/assign-numbers.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { AssignNumbers } from './assign-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/assign-numbers/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Model: CallHeader
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ /**
8
+ * Call Headers can be used to pass custom data from a Sinch SDK client to another, or specified in an ICE response to be made available to the receiving client. Further, if Call Headers is specified they will be available in ICE and DICE events.
9
+ */
10
+ export interface CallHeader {
11
+ /** The call header key of the key value pair. */
12
+ key?: string;
13
+ /** The call header value of the key value pair. */
14
+ value?: string;
15
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: CallHeader
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=call-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"call-header.js","sourceRoot":"","sources":["../../../../src/models/v1/call-header/call-header.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { CallHeader } from './call-header';
@@ -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/call-header/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Model: CalloutRequest
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ import { ConferenceCalloutRequest } from '../conference-callout-request';
8
+ import { CustomCalloutRequest } from '../custom-callout-request';
9
+ import { TtsCalloutRequest } from '../tts-callout-request';
10
+ /**
11
+ * Currently three types of callouts are supported: conference callouts, text-to-speech callouts and custom callouts. The custom callout is the most flexible, but text-to-speech and conference callouts are more convenient.
12
+ */
13
+ export interface CalloutRequest {
14
+ /** Sets the type of callout. */
15
+ method: MethodEnum;
16
+ /** @see ConferenceCalloutRequest */
17
+ conferenceCallout?: ConferenceCalloutRequest;
18
+ /** @see TtsCalloutRequest */
19
+ ttsCallout?: TtsCalloutRequest;
20
+ /** @see CustomCalloutRequest */
21
+ customCallout?: CustomCalloutRequest;
22
+ }
23
+ export type MethodEnum = 'conferenceCallout' | 'ttsCallout' | 'customCallout';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: CalloutRequest
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=callout-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callout-request.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-request/callout-request.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { CalloutRequest } from './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/callout-request/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Model: ConferenceCalloutRequest
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ import { ConferenceCalloutRequestConferenceDtmfOptions } from '../conference-callout-request-conference-dtmf-options';
8
+ import { Destination } from '../destination';
9
+ /**
10
+ * The conference callout calls a phone number or a user. When the call is answered, it's connected to a conference room.
11
+ */
12
+ export interface ConferenceCalloutRequest {
13
+ /** 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. */
14
+ cli?: string;
15
+ /** @see Destination */
16
+ destination: Destination;
17
+ /** The conferenceId of the conference to which you want the callee to join. If the conferenceId doesn't exist a conference room will be created. */
18
+ conferenceId: string;
19
+ /** @see ConferenceCalloutRequestConferenceDtmfOptions */
20
+ conferenceDtmfOptions?: ConferenceCalloutRequestConferenceDtmfOptions;
21
+ /** 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. 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. */
22
+ dtmf?: string;
23
+ maxDuration?: number;
24
+ /** 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.<br><b>Note </b> if the call is towards an InApp destination `type:` `username`, then no ACE will be issued when the call is connected, even if `enableAce` is present in the callout request. */
25
+ enableAce?: boolean;
26
+ /** 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.<br><b>Note</b> if the call is towards an InApp destination `type:` `username`, then no DICE will be issued at the end of the call, even if `enableDice` is present in the callout request. */
27
+ enableDice?: boolean;
28
+ /** If `enablePie` is set to true and the application has a callback URL specified, you will receive a PIE callback after a `runMenu` action, with the information of the action that the user took. If it's set to false, no PIE event will be sent to your backend. */
29
+ enablePie?: boolean;
30
+ /** The voice and language you want to use for the prompts. 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/) */
31
+ locale?: string;
32
+ /** The text that will be spoken as a greeting. */
33
+ greeting?: string;
34
+ /** Means "music-on-hold." It's an optional parameter that specifies what the first participant should listen to while they're alone in the conference, waiting for other participants to join. It can take one of these pre-defined values:<ul><li>`ring` (progress tone)</li><li>`music1` (music file)</li><li>`music2` (music file)</li><li>`music3` (music file)</li></ul></br>If no “music-on-hold” is specified, the user will only hear silence. */
35
+ mohClass?: string;
36
+ /** Used to input custom data. */
37
+ custom?: string;
38
+ /** can be either “pstn” for PSTN endpoint or “mxp” for data (app or web) clients. */
39
+ domain?: string;
40
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: ConferenceCalloutRequest
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=conference-callout-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conference-callout-request.js","sourceRoot":"","sources":["../../../../src/models/v1/conference-callout-request/conference-callout-request.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { ConferenceCalloutRequest } from './conference-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/conference-callout-request/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Model: ConferenceCalloutRequestConferenceDtmfOptions
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ /**
8
+ * Options to control how DTMF signals are used by the participant in the conference. For information on how to use this feature, read more [here](../../../conference-dtmf).
9
+ */
10
+ export interface ConferenceCalloutRequestConferenceDtmfOptions {
11
+ /** Determines what DTMF mode the participant will use in the call. */
12
+ mode?: string;
13
+ /** The maximum number of accepted digits before sending the collected input via a PIE callback. The default value is `1`. If the value is greater than `1`, the PIE callback is triggered by one of the three following events: - No additional digit is entered before the `timeoutMills` timeout period has elapsed. - The `#` character is entered. - The maximum number of digits has been entered. */
14
+ maxDigits?: number;
15
+ /** The number of milliseconds that the system will wait between entered digits before triggering the PIE callback. The default value is `3000`. */
16
+ timeoutMills?: number;
17
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: ConferenceCalloutRequestConferenceDtmfOptions
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=conference-callout-request-conference-dtmf-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conference-callout-request-conference-dtmf-options.js","sourceRoot":"","sources":["../../../../src/models/v1/conference-callout-request-conference-dtmf-options/conference-callout-request-conference-dtmf-options.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1 @@
1
+ export type { ConferenceCalloutRequestConferenceDtmfOptions, } from './conference-callout-request-conference-dtmf-options';
@@ -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/conference-callout-request-conference-dtmf-options/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Model: CustomCalloutRequest
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ import { Destination } from '../destination';
8
+ /**
9
+ * The custom callout, the server initiates a call from the servers that can be controlled by specifying how the call should progress at each call event.
10
+ */
11
+ export interface CustomCalloutRequest {
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 virtual number, it 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 used to input custom data. */
19
+ custom?: string;
20
+ /** The maximum amount of time in seconds that the call will last. */
21
+ maxDuration?: number;
22
+ /** You can use inline SVAML to replace a callback URL when using custom callouts. Ensure that the JSON object is escaped correctly. If inline ICE SVAML is passed, exclude *cli* and *destination* properties from the *customCallout* request body. Example: ```"{"action":{"name":"connectPstn","number":"46000000001","maxDuration":90}}"``` */
23
+ ice?: string;
24
+ /** You can use inline SVAML to replace a callback URL when using custom callouts. Ensure that the JSON object is escaped correctly. Example: ```"{"action": {"name": "RunMenu","locale": "en-US","menus": [{"id": "main","mainPrompt": "#tts[ Welcome to the main menu. Press 1 for a callback or 2 for a cancel</speak>]","timeoutMills": 5000,"options": [ {"dtmf": "1","action": "return(callback)"}, {"dtmf": "2","action": "return(cancel)"}]}]}}"``` */
25
+ ace?: string;
26
+ /** <b>Note:</b> PIE callbacks are not available for DATA Calls; only PSTN and SIP calls. You can use inline SVAML to replace a callback URL when using custom callouts. Ensure that the JSON object is escaped correctly. A PIE event will contain a value chosen from an IVR choice. Usually a PIE event wil contain a URL to a callback sever that will receive the choice and be able to parse it. This could result in further SVAML or some other application logic function. Example: ```"https://your-application-server-host/application"``` */
27
+ pie?: string;
28
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Model: CustomCalloutRequest
4
+ *
5
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
+ *
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=custom-callout-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-callout-request.js","sourceRoot":"","sources":["../../../../src/models/v1/custom-callout-request/custom-callout-request.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}