@sinch/sms 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/README.md +166 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.js +20 -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/api-batch-list/api-batch-list.d.ts +17 -0
  9. package/dist/models/v1/api-batch-list/api-batch-list.js +9 -0
  10. package/dist/models/v1/api-batch-list/api-batch-list.js.map +1 -0
  11. package/dist/models/v1/api-batch-list/index.d.ts +1 -0
  12. package/dist/models/v1/api-batch-list/index.js +3 -0
  13. package/dist/models/v1/api-batch-list/index.js.map +1 -0
  14. package/dist/models/v1/api-batch-list-batches-inner/api-batch-list-batches-inner.d.ts +10 -0
  15. package/dist/models/v1/api-batch-list-batches-inner/api-batch-list-batches-inner.js +9 -0
  16. package/dist/models/v1/api-batch-list-batches-inner/api-batch-list-batches-inner.js.map +1 -0
  17. package/dist/models/v1/api-batch-list-batches-inner/index.d.ts +1 -0
  18. package/dist/models/v1/api-batch-list-batches-inner/index.js +3 -0
  19. package/dist/models/v1/api-batch-list-batches-inner/index.js.map +1 -0
  20. package/dist/models/v1/api-inbound-list/api-inbound-list.d.ts +17 -0
  21. package/dist/models/v1/api-inbound-list/api-inbound-list.js +9 -0
  22. package/dist/models/v1/api-inbound-list/api-inbound-list.js.map +1 -0
  23. package/dist/models/v1/api-inbound-list/index.d.ts +1 -0
  24. package/dist/models/v1/api-inbound-list/index.js +3 -0
  25. package/dist/models/v1/api-inbound-list/index.js.map +1 -0
  26. package/dist/models/v1/api-mo-message/api-mo-message.d.ts +27 -0
  27. package/dist/models/v1/api-mo-message/api-mo-message.js +9 -0
  28. package/dist/models/v1/api-mo-message/api-mo-message.js.map +1 -0
  29. package/dist/models/v1/api-mo-message/index.d.ts +1 -0
  30. package/dist/models/v1/api-mo-message/index.js +3 -0
  31. package/dist/models/v1/api-mo-message/index.js.map +1 -0
  32. package/dist/models/v1/api-update-binary-mt-message/api-update-binary-mt-message.d.ts +30 -0
  33. package/dist/models/v1/api-update-binary-mt-message/api-update-binary-mt-message.js +3 -0
  34. package/dist/models/v1/api-update-binary-mt-message/api-update-binary-mt-message.js.map +1 -0
  35. package/dist/models/v1/api-update-binary-mt-message/index.d.ts +1 -0
  36. package/dist/models/v1/api-update-binary-mt-message/index.js +3 -0
  37. package/dist/models/v1/api-update-binary-mt-message/index.js.map +1 -0
  38. package/dist/models/v1/api-update-mms-mt-message/api-update-mms-mt-message.d.ts +34 -0
  39. package/dist/models/v1/api-update-mms-mt-message/api-update-mms-mt-message.js +9 -0
  40. package/dist/models/v1/api-update-mms-mt-message/api-update-mms-mt-message.js.map +1 -0
  41. package/dist/models/v1/api-update-mms-mt-message/index.d.ts +1 -0
  42. package/dist/models/v1/api-update-mms-mt-message/index.js +3 -0
  43. package/dist/models/v1/api-update-mms-mt-message/index.js.map +1 -0
  44. package/dist/models/v1/api-update-mt-message/api-update-mt-message.d.ts +24 -0
  45. package/dist/models/v1/api-update-mt-message/api-update-mt-message.js +3 -0
  46. package/dist/models/v1/api-update-mt-message/api-update-mt-message.js.map +1 -0
  47. package/dist/models/v1/api-update-mt-message/index.d.ts +1 -0
  48. package/dist/models/v1/api-update-mt-message/index.js +3 -0
  49. package/dist/models/v1/api-update-mt-message/index.js.map +1 -0
  50. package/dist/models/v1/api-update-text-mt-message/api-update-text-mt-message.d.ts +31 -0
  51. package/dist/models/v1/api-update-text-mt-message/api-update-text-mt-message.js +9 -0
  52. package/dist/models/v1/api-update-text-mt-message/api-update-text-mt-message.js.map +1 -0
  53. package/dist/models/v1/api-update-text-mt-message/index.d.ts +1 -0
  54. package/dist/models/v1/api-update-text-mt-message/index.js +3 -0
  55. package/dist/models/v1/api-update-text-mt-message/index.js.map +1 -0
  56. package/dist/models/v1/binary-request/binary-request.d.ts +42 -0
  57. package/dist/models/v1/binary-request/binary-request.js +3 -0
  58. package/dist/models/v1/binary-request/binary-request.js.map +1 -0
  59. package/dist/models/v1/binary-request/index.d.ts +1 -0
  60. package/dist/models/v1/binary-request/index.js +3 -0
  61. package/dist/models/v1/binary-request/index.js.map +1 -0
  62. package/dist/models/v1/binary-response/binary-response.d.ts +50 -0
  63. package/dist/models/v1/binary-response/binary-response.js +3 -0
  64. package/dist/models/v1/binary-response/binary-response.js.map +1 -0
  65. package/dist/models/v1/binary-response/index.d.ts +1 -0
  66. package/dist/models/v1/binary-response/index.js +3 -0
  67. package/dist/models/v1/binary-response/index.js.map +1 -0
  68. package/dist/models/v1/create-group-request/create-group-request.d.ts +17 -0
  69. package/dist/models/v1/create-group-request/create-group-request.js +9 -0
  70. package/dist/models/v1/create-group-request/create-group-request.js.map +1 -0
  71. package/dist/models/v1/create-group-request/index.d.ts +1 -0
  72. package/dist/models/v1/create-group-request/index.js +3 -0
  73. package/dist/models/v1/create-group-request/index.js.map +1 -0
  74. package/dist/models/v1/create-group-response/create-group-response.d.ts +23 -0
  75. package/dist/models/v1/create-group-response/create-group-response.js +9 -0
  76. package/dist/models/v1/create-group-response/create-group-response.js.map +1 -0
  77. package/dist/models/v1/create-group-response/index.d.ts +4 -0
  78. package/dist/models/v1/create-group-response/index.js +3 -0
  79. package/dist/models/v1/create-group-response/index.js.map +1 -0
  80. package/dist/models/v1/delivery-feedback-request/delivery-feedback-request.d.ts +10 -0
  81. package/dist/models/v1/delivery-feedback-request/delivery-feedback-request.js +9 -0
  82. package/dist/models/v1/delivery-feedback-request/delivery-feedback-request.js.map +1 -0
  83. package/dist/models/v1/delivery-feedback-request/index.d.ts +1 -0
  84. package/dist/models/v1/delivery-feedback-request/index.js +3 -0
  85. package/dist/models/v1/delivery-feedback-request/index.js.map +1 -0
  86. package/dist/models/v1/delivery-report/delivery-report.d.ts +20 -0
  87. package/dist/models/v1/delivery-report/delivery-report.js +9 -0
  88. package/dist/models/v1/delivery-report/delivery-report.js.map +1 -0
  89. package/dist/models/v1/delivery-report/index.d.ts +1 -0
  90. package/dist/models/v1/delivery-report/index.js +3 -0
  91. package/dist/models/v1/delivery-report/index.js.map +1 -0
  92. package/dist/models/v1/delivery-report-list/delivery-report-list.d.ts +17 -0
  93. package/dist/models/v1/delivery-report-list/delivery-report-list.js +9 -0
  94. package/dist/models/v1/delivery-report-list/delivery-report-list.js.map +1 -0
  95. package/dist/models/v1/delivery-report-list/index.d.ts +1 -0
  96. package/dist/models/v1/delivery-report-list/index.js +3 -0
  97. package/dist/models/v1/delivery-report-list/index.js.map +1 -0
  98. package/dist/models/v1/dry-run-request/dry-run-request.d.ts +11 -0
  99. package/dist/models/v1/dry-run-request/dry-run-request.js +9 -0
  100. package/dist/models/v1/dry-run-request/dry-run-request.js.map +1 -0
  101. package/dist/models/v1/dry-run-request/index.d.ts +1 -0
  102. package/dist/models/v1/dry-run-request/index.js +3 -0
  103. package/dist/models/v1/dry-run-request/index.js.map +1 -0
  104. package/dist/models/v1/dry-run-response/dry-run-response.d.ts +15 -0
  105. package/dist/models/v1/dry-run-response/dry-run-response.js +9 -0
  106. package/dist/models/v1/dry-run-response/dry-run-response.js.map +1 -0
  107. package/dist/models/v1/dry-run-response/index.d.ts +1 -0
  108. package/dist/models/v1/dry-run-response/index.js +3 -0
  109. package/dist/models/v1/dry-run-response/index.js.map +1 -0
  110. package/dist/models/v1/dry-run-response-per-recipient-inner/dry-run-response-per-recipient-inner.d.ts +12 -0
  111. package/dist/models/v1/dry-run-response-per-recipient-inner/dry-run-response-per-recipient-inner.js +9 -0
  112. package/dist/models/v1/dry-run-response-per-recipient-inner/dry-run-response-per-recipient-inner.js.map +1 -0
  113. package/dist/models/v1/dry-run-response-per-recipient-inner/index.d.ts +1 -0
  114. package/dist/models/v1/dry-run-response-per-recipient-inner/index.js +3 -0
  115. package/dist/models/v1/dry-run-response-per-recipient-inner/index.js.map +1 -0
  116. package/dist/models/v1/enums.d.ts +15 -0
  117. package/dist/models/v1/enums.js +3 -0
  118. package/dist/models/v1/enums.js.map +1 -0
  119. package/dist/models/v1/error-response-obj/error-response-obj.d.ts +12 -0
  120. package/dist/models/v1/error-response-obj/error-response-obj.js +9 -0
  121. package/dist/models/v1/error-response-obj/error-response-obj.js.map +1 -0
  122. package/dist/models/v1/error-response-obj/index.d.ts +1 -0
  123. package/dist/models/v1/error-response-obj/index.js +3 -0
  124. package/dist/models/v1/error-response-obj/index.js.map +1 -0
  125. package/dist/models/v1/group-auto-update/group-auto-update.d.ts +12 -0
  126. package/dist/models/v1/group-auto-update/group-auto-update.js +9 -0
  127. package/dist/models/v1/group-auto-update/group-auto-update.js.map +1 -0
  128. package/dist/models/v1/group-auto-update/index.d.ts +1 -0
  129. package/dist/models/v1/group-auto-update/index.js +3 -0
  130. package/dist/models/v1/group-auto-update/index.js.map +1 -0
  131. package/dist/models/v1/group-object-auto-update/group-object-auto-update.d.ts +16 -0
  132. package/dist/models/v1/group-object-auto-update/group-object-auto-update.js +9 -0
  133. package/dist/models/v1/group-object-auto-update/group-object-auto-update.js.map +1 -0
  134. package/dist/models/v1/group-object-auto-update/index.d.ts +1 -0
  135. package/dist/models/v1/group-object-auto-update/index.js +3 -0
  136. package/dist/models/v1/group-object-auto-update/index.js.map +1 -0
  137. package/dist/models/v1/group-object-auto-update-remove/group-object-auto-update-remove.d.ts +19 -0
  138. package/dist/models/v1/group-object-auto-update-remove/group-object-auto-update-remove.js +14 -0
  139. package/dist/models/v1/group-object-auto-update-remove/group-object-auto-update-remove.js.map +1 -0
  140. package/dist/models/v1/group-object-auto-update-remove/index.d.ts +1 -0
  141. package/dist/models/v1/group-object-auto-update-remove/index.js +3 -0
  142. package/dist/models/v1/group-object-auto-update-remove/index.js.map +1 -0
  143. package/dist/models/v1/inbound-message-response/inbound-message-response.d.ts +9 -0
  144. package/dist/models/v1/inbound-message-response/inbound-message-response.js +9 -0
  145. package/dist/models/v1/inbound-message-response/inbound-message-response.js.map +1 -0
  146. package/dist/models/v1/inbound-message-response/index.d.ts +1 -0
  147. package/dist/models/v1/inbound-message-response/index.js +3 -0
  148. package/dist/models/v1/inbound-message-response/index.js.map +1 -0
  149. package/dist/models/v1/index.d.ts +45 -0
  150. package/dist/models/v1/index.js +62 -0
  151. package/dist/models/v1/index.js.map +1 -0
  152. package/dist/models/v1/list-groups-response/index.d.ts +1 -0
  153. package/dist/models/v1/list-groups-response/index.js +3 -0
  154. package/dist/models/v1/list-groups-response/index.js.map +1 -0
  155. package/dist/models/v1/list-groups-response/list-groups-response.d.ts +17 -0
  156. package/dist/models/v1/list-groups-response/list-groups-response.js +9 -0
  157. package/dist/models/v1/list-groups-response/list-groups-response.js.map +1 -0
  158. package/dist/models/v1/media-body/index.d.ts +1 -0
  159. package/dist/models/v1/media-body/index.js +3 -0
  160. package/dist/models/v1/media-body/index.js.map +1 -0
  161. package/dist/models/v1/media-body/media-body.d.ts +15 -0
  162. package/dist/models/v1/media-body/media-body.js +9 -0
  163. package/dist/models/v1/media-body/media-body.js.map +1 -0
  164. package/dist/models/v1/media-request/index.d.ts +1 -0
  165. package/dist/models/v1/media-request/index.js +3 -0
  166. package/dist/models/v1/media-request/index.js.map +1 -0
  167. package/dist/models/v1/media-request/media-request.d.ts +39 -0
  168. package/dist/models/v1/media-request/media-request.js +9 -0
  169. package/dist/models/v1/media-request/media-request.js.map +1 -0
  170. package/dist/models/v1/media-response/index.d.ts +1 -0
  171. package/dist/models/v1/media-response/index.js +3 -0
  172. package/dist/models/v1/media-response/index.js.map +1 -0
  173. package/dist/models/v1/media-response/media-response.d.ts +44 -0
  174. package/dist/models/v1/media-response/media-response.js +9 -0
  175. package/dist/models/v1/media-response/media-response.js.map +1 -0
  176. package/dist/models/v1/message-delivery-status/index.d.ts +1 -0
  177. package/dist/models/v1/message-delivery-status/index.js +3 -0
  178. package/dist/models/v1/message-delivery-status/index.js.map +1 -0
  179. package/dist/models/v1/message-delivery-status/message-delivery-status.d.ts +20 -0
  180. package/dist/models/v1/message-delivery-status/message-delivery-status.js +9 -0
  181. package/dist/models/v1/message-delivery-status/message-delivery-status.js.map +1 -0
  182. package/dist/models/v1/mo-binary/index.d.ts +1 -0
  183. package/dist/models/v1/mo-binary/index.js +3 -0
  184. package/dist/models/v1/mo-binary/index.js.map +1 -0
  185. package/dist/models/v1/mo-binary/mo-binary.d.ts +16 -0
  186. package/dist/models/v1/mo-binary/mo-binary.js +9 -0
  187. package/dist/models/v1/mo-binary/mo-binary.js.map +1 -0
  188. package/dist/models/v1/mo-text/index.d.ts +1 -0
  189. package/dist/models/v1/mo-text/index.js +3 -0
  190. package/dist/models/v1/mo-text/index.js.map +1 -0
  191. package/dist/models/v1/mo-text/mo-text.d.ts +13 -0
  192. package/dist/models/v1/mo-text/mo-text.js +9 -0
  193. package/dist/models/v1/mo-text/mo-text.js.map +1 -0
  194. package/dist/models/v1/parameter-obj/index.d.ts +1 -0
  195. package/dist/models/v1/parameter-obj/index.js +3 -0
  196. package/dist/models/v1/parameter-obj/index.js.map +1 -0
  197. package/dist/models/v1/parameter-obj/parameter-obj.d.ts +14 -0
  198. package/dist/models/v1/parameter-obj/parameter-obj.js +9 -0
  199. package/dist/models/v1/parameter-obj/parameter-obj.js.map +1 -0
  200. package/dist/models/v1/parameter-obj-parameter-key/index.d.ts +1 -0
  201. package/dist/models/v1/parameter-obj-parameter-key/index.js +3 -0
  202. package/dist/models/v1/parameter-obj-parameter-key/index.js.map +1 -0
  203. package/dist/models/v1/parameter-obj-parameter-key/parameter-obj-parameter-key.d.ts +15 -0
  204. package/dist/models/v1/parameter-obj-parameter-key/parameter-obj-parameter-key.js +9 -0
  205. package/dist/models/v1/parameter-obj-parameter-key/parameter-obj-parameter-key.js.map +1 -0
  206. package/dist/models/v1/recipient-delivery-report/index.d.ts +1 -0
  207. package/dist/models/v1/recipient-delivery-report/index.js +3 -0
  208. package/dist/models/v1/recipient-delivery-report/index.js.map +1 -0
  209. package/dist/models/v1/recipient-delivery-report/recipient-delivery-report.d.ts +35 -0
  210. package/dist/models/v1/recipient-delivery-report/recipient-delivery-report.js +3 -0
  211. package/dist/models/v1/recipient-delivery-report/recipient-delivery-report.js.map +1 -0
  212. package/dist/models/v1/replace-group-request/index.d.ts +1 -0
  213. package/dist/models/v1/replace-group-request/index.js +3 -0
  214. package/dist/models/v1/replace-group-request/index.js.map +1 -0
  215. package/dist/models/v1/replace-group-request/replace-group-request.d.ts +12 -0
  216. package/dist/models/v1/replace-group-request/replace-group-request.js +9 -0
  217. package/dist/models/v1/replace-group-request/replace-group-request.js.map +1 -0
  218. package/dist/models/v1/send-sms-request/index.d.ts +1 -0
  219. package/dist/models/v1/send-sms-request/index.js +3 -0
  220. package/dist/models/v1/send-sms-request/index.js.map +1 -0
  221. package/dist/models/v1/send-sms-request/send-sms-request.d.ts +10 -0
  222. package/dist/models/v1/send-sms-request/send-sms-request.js +9 -0
  223. package/dist/models/v1/send-sms-request/send-sms-request.js.map +1 -0
  224. package/dist/models/v1/send-sms-response/index.d.ts +1 -0
  225. package/dist/models/v1/send-sms-response/index.js +3 -0
  226. package/dist/models/v1/send-sms-response/index.js.map +1 -0
  227. package/dist/models/v1/send-sms-response/send-sms-response.d.ts +12 -0
  228. package/dist/models/v1/send-sms-response/send-sms-response.js +9 -0
  229. package/dist/models/v1/send-sms-response/send-sms-response.js.map +1 -0
  230. package/dist/models/v1/text-request/index.d.ts +1 -0
  231. package/dist/models/v1/text-request/index.js +3 -0
  232. package/dist/models/v1/text-request/index.js.map +1 -0
  233. package/dist/models/v1/text-request/text-request.d.ts +43 -0
  234. package/dist/models/v1/text-request/text-request.js +9 -0
  235. package/dist/models/v1/text-request/text-request.js.map +1 -0
  236. package/dist/models/v1/text-response/index.d.ts +1 -0
  237. package/dist/models/v1/text-response/index.js +3 -0
  238. package/dist/models/v1/text-response/index.js.map +1 -0
  239. package/dist/models/v1/text-response/text-response.d.ts +51 -0
  240. package/dist/models/v1/text-response/text-response.js +9 -0
  241. package/dist/models/v1/text-response/text-response.js.map +1 -0
  242. package/dist/models/v1/update-batch-message-request/index.d.ts +1 -0
  243. package/dist/models/v1/update-batch-message-request/index.js +3 -0
  244. package/dist/models/v1/update-batch-message-request/index.js.map +1 -0
  245. package/dist/models/v1/update-batch-message-request/update-batch-message-request.d.ts +10 -0
  246. package/dist/models/v1/update-batch-message-request/update-batch-message-request.js +9 -0
  247. package/dist/models/v1/update-batch-message-request/update-batch-message-request.js.map +1 -0
  248. package/dist/models/v1/update-group-request/index.d.ts +1 -0
  249. package/dist/models/v1/update-group-request/index.js +3 -0
  250. package/dist/models/v1/update-group-request/index.js.map +1 -0
  251. package/dist/models/v1/update-group-request/update-group-request.d.ts +21 -0
  252. package/dist/models/v1/update-group-request/update-group-request.js +9 -0
  253. package/dist/models/v1/update-group-request/update-group-request.js.map +1 -0
  254. package/dist/models/v1/update-group-request-auto-update/index.d.ts +1 -0
  255. package/dist/models/v1/update-group-request-auto-update/index.js +3 -0
  256. package/dist/models/v1/update-group-request-auto-update/index.js.map +1 -0
  257. package/dist/models/v1/update-group-request-auto-update/update-group-request-auto-update.d.ts +16 -0
  258. package/dist/models/v1/update-group-request-auto-update/update-group-request-auto-update.js +9 -0
  259. package/dist/models/v1/update-group-request-auto-update/update-group-request-auto-update.js.map +1 -0
  260. package/dist/models/v1/update-group-request-auto-update-add/index.d.ts +1 -0
  261. package/dist/models/v1/update-group-request-auto-update-add/index.js +3 -0
  262. package/dist/models/v1/update-group-request-auto-update-add/index.js.map +1 -0
  263. package/dist/models/v1/update-group-request-auto-update-add/update-group-request-auto-update-add.d.ts +16 -0
  264. package/dist/models/v1/update-group-request-auto-update-add/update-group-request-auto-update-add.js +14 -0
  265. package/dist/models/v1/update-group-request-auto-update-add/update-group-request-auto-update-add.js.map +1 -0
  266. package/dist/models/v1/update-group-request-auto-update-remove/index.d.ts +1 -0
  267. package/dist/models/v1/update-group-request-auto-update-remove/index.js +3 -0
  268. package/dist/models/v1/update-group-request-auto-update-remove/index.js.map +1 -0
  269. package/dist/models/v1/update-group-request-auto-update-remove/update-group-request-auto-update-remove.d.ts +19 -0
  270. package/dist/models/v1/update-group-request-auto-update-remove/update-group-request-auto-update-remove.js +14 -0
  271. package/dist/models/v1/update-group-request-auto-update-remove/update-group-request-auto-update-remove.js.map +1 -0
  272. package/dist/rest/index.d.ts +1 -0
  273. package/dist/rest/index.js +18 -0
  274. package/dist/rest/index.js.map +1 -0
  275. package/dist/rest/v1/batches/batches-api.d.ts +114 -0
  276. package/dist/rest/v1/batches/batches-api.jest.fixture.d.ts +38 -0
  277. package/dist/rest/v1/batches/batches-api.jest.fixture.js +41 -0
  278. package/dist/rest/v1/batches/batches-api.jest.fixture.js.map +1 -0
  279. package/dist/rest/v1/batches/batches-api.js +213 -0
  280. package/dist/rest/v1/batches/batches-api.js.map +1 -0
  281. package/dist/rest/v1/batches/index.d.ts +1 -0
  282. package/dist/rest/v1/batches/index.js +18 -0
  283. package/dist/rest/v1/batches/index.js.map +1 -0
  284. package/dist/rest/v1/delivery-reports/delivery-reports-api.d.ts +63 -0
  285. package/dist/rest/v1/delivery-reports/delivery-reports-api.jest.fixture.d.ts +22 -0
  286. package/dist/rest/v1/delivery-reports/delivery-reports-api.jest.fixture.js +21 -0
  287. package/dist/rest/v1/delivery-reports/delivery-reports-api.jest.fixture.js.map +1 -0
  288. package/dist/rest/v1/delivery-reports/delivery-reports-api.js +94 -0
  289. package/dist/rest/v1/delivery-reports/delivery-reports-api.js.map +1 -0
  290. package/dist/rest/v1/delivery-reports/index.d.ts +1 -0
  291. package/dist/rest/v1/delivery-reports/index.js +18 -0
  292. package/dist/rest/v1/delivery-reports/index.js.map +1 -0
  293. package/dist/rest/v1/enums.d.ts +1 -0
  294. package/dist/rest/v1/enums.js +3 -0
  295. package/dist/rest/v1/enums.js.map +1 -0
  296. package/dist/rest/v1/fixtures.jest.d.ts +4 -0
  297. package/dist/rest/v1/fixtures.jest.js +12 -0
  298. package/dist/rest/v1/fixtures.jest.js.map +1 -0
  299. package/dist/rest/v1/groups/groups-api.d.ts +88 -0
  300. package/dist/rest/v1/groups/groups-api.jest.fixture.d.ts +34 -0
  301. package/dist/rest/v1/groups/groups-api.jest.fixture.js +37 -0
  302. package/dist/rest/v1/groups/groups-api.jest.fixture.js.map +1 -0
  303. package/dist/rest/v1/groups/groups-api.js +185 -0
  304. package/dist/rest/v1/groups/groups-api.js.map +1 -0
  305. package/dist/rest/v1/groups/index.d.ts +1 -0
  306. package/dist/rest/v1/groups/index.js +18 -0
  307. package/dist/rest/v1/groups/index.js.map +1 -0
  308. package/dist/rest/v1/inbounds/inbounds-api.d.ts +42 -0
  309. package/dist/rest/v1/inbounds/inbounds-api.jest.fixture.d.ts +16 -0
  310. package/dist/rest/v1/inbounds/inbounds-api.jest.fixture.js +17 -0
  311. package/dist/rest/v1/inbounds/inbounds-api.jest.fixture.js.map +1 -0
  312. package/dist/rest/v1/inbounds/inbounds-api.js +68 -0
  313. package/dist/rest/v1/inbounds/inbounds-api.js.map +1 -0
  314. package/dist/rest/v1/inbounds/index.d.ts +1 -0
  315. package/dist/rest/v1/inbounds/index.js +18 -0
  316. package/dist/rest/v1/inbounds/index.js.map +1 -0
  317. package/dist/rest/v1/index.d.ts +7 -0
  318. package/dist/rest/v1/index.js +24 -0
  319. package/dist/rest/v1/index.js.map +1 -0
  320. package/dist/rest/v1/sms-api.d.ts +26 -0
  321. package/dist/rest/v1/sms-api.js +89 -0
  322. package/dist/rest/v1/sms-api.js.map +1 -0
  323. package/dist/rest/v1/sms.d.ts +24 -0
  324. package/dist/rest/v1/sms.js +28 -0
  325. package/dist/rest/v1/sms.js.map +1 -0
  326. package/package.json +37 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbounds-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/inbounds/inbounds-api.jest.fixture.ts"],"names":[],"mappings":";;;AAIA,MAAa,kBAAkB;IAA/B;QAEE;;YAEI;QACG,SAAI,GAAwF,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7G;;YAEI;QACG,QAAG,GAC0B,IAAI,CAAC,EAAE,EAAE,CAAC;IAChD,CAAC;CAAA;AAXD,gDAWC"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InboundsApi = void 0;
4
+ const sdk_client_1 = require("@sinch/sdk-client");
5
+ const sms_api_1 = require("../sms-api");
6
+ class InboundsApi extends sms_api_1.SmsApi {
7
+ /**
8
+ * Initialize your interface
9
+ *
10
+ * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
11
+ */
12
+ constructor(sinchClientParameters) {
13
+ super(sinchClientParameters, 'InboundsApi');
14
+ }
15
+ /**
16
+ * List incoming messages
17
+ * With the list operation, you can list all inbound messages that you have received. This operation supports pagination. Inbounds are returned in reverse chronological order.
18
+ * @param { ListInboundMessagesRequestData } data - The data to provide to the API call.
19
+ * @return {ApiListPromise<InboundMessageResponse>}
20
+ */
21
+ list(data) {
22
+ this.client = this.getSinchClient();
23
+ const getParams = this.client.extractQueryParams(data, ['page', 'page_size', 'to', 'start_date', 'end_date', 'client_reference']);
24
+ const headers = {
25
+ 'Content-Type': 'application/json',
26
+ 'Accept': 'application/json',
27
+ };
28
+ const body = '';
29
+ const basePathUrl = `${this.client.apiClientOptions.basePath}/xms/v1/${this.client.apiClientOptions.projectId}/inbounds`;
30
+ const requestOptionsPromise = this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
31
+ const operationProperties = {
32
+ pagination: sdk_client_1.PaginationEnum.PAGE,
33
+ apiName: this.apiName,
34
+ operationId: 'ListInboundMessages',
35
+ dataKey: 'inbounds',
36
+ };
37
+ // Create the promise containing the response wrapped as a PageResult
38
+ const listPromise = (0, sdk_client_1.buildPageResultPromise)(this.client, requestOptionsPromise, operationProperties);
39
+ // Add properties to the Promise to offer the possibility to use it as an iterator
40
+ Object.assign(listPromise, (0, sdk_client_1.createIteratorMethodsForPagination)(this.client, requestOptionsPromise, listPromise, operationProperties));
41
+ return listPromise;
42
+ }
43
+ /**
44
+ * Retrieve inbound message
45
+ * This operation retrieves a specific inbound message with the provided inbound ID.
46
+ * @param { GetInboundMessageRequestData } data - The data to provide to the API call.
47
+ */
48
+ async get(data) {
49
+ this.client = this.getSinchClient();
50
+ const getParams = this.client.extractQueryParams(data, []);
51
+ const headers = {
52
+ 'Content-Type': 'application/json',
53
+ 'Accept': 'application/json',
54
+ };
55
+ const body = '';
56
+ const basePathUrl = `${this.client.apiClientOptions.basePath}/xms/v1/${this.client.apiClientOptions.projectId}/inbounds/${data['inbound_id']}`;
57
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
58
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
59
+ return this.client.processCall({
60
+ url,
61
+ requestOptions,
62
+ apiName: this.apiName,
63
+ operationId: 'RetrieveInboundMessage',
64
+ });
65
+ }
66
+ }
67
+ exports.InboundsApi = InboundsApi;
68
+ //# sourceMappingURL=inbounds-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbounds-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/inbounds/inbounds-api.ts"],"names":[],"mappings":";;;AAGA,kDAQ2B;AAC3B,wCAAoC;AAqBpC,MAAa,WAAY,SAAQ,gBAAM;IAErC;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACI,IAAI,CAAC,IAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAC9C,IAAI,EACJ,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAC1E,CAAC;QACF,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAA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Q,WAAW,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,aAAa,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QAE/I,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QAChG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAyB;YACrD,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,wBAAwB;SACtC,CAAC,CAAC;IACL,CAAC;CAEF;AArFD,kCAqFC"}
@@ -0,0 +1 @@
1
+ export * from './inbounds-api';
@@ -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("./inbounds-api"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/inbounds/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -0,0 +1,7 @@
1
+ export * from './batches';
2
+ export * from './delivery-reports';
3
+ export * from './groups';
4
+ export * from './inbounds';
5
+ export * from './enums';
6
+ export * from './fixtures.jest';
7
+ export * from './sms';
@@ -0,0 +1,24 @@
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("./batches"), exports);
18
+ __exportStar(require("./delivery-reports"), exports);
19
+ __exportStar(require("./groups"), exports);
20
+ __exportStar(require("./inbounds"), exports);
21
+ __exportStar(require("./enums"), exports);
22
+ __exportStar(require("./fixtures.jest"), exports);
23
+ __exportStar(require("./sms"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,qDAAmC;AACnC,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,wCAAsB"}
@@ -0,0 +1,26 @@
1
+ import { Api, ApiClient, SinchClientParameters, UnifiedCredentials, ServicePlanIdCredentials } from '@sinch/sdk-client';
2
+ export declare class SmsApi implements Api {
3
+ readonly apiName: string;
4
+ client?: ApiClient;
5
+ private sinchClientParameters;
6
+ constructor(sinchClientParameters: SinchClientParameters, apiName: string);
7
+ /**
8
+ * Update the default basePath for the API
9
+ * @param {string} basePath - The new base path to use for the APIs.
10
+ */
11
+ setBasePath(basePath: string): void;
12
+ /**
13
+ * Updates the credentials used to authenticate API requests
14
+ * @param {UnifiedCredentials | ServicePlanIdCredentials} credentials
15
+ */
16
+ setCredentials(credentials: UnifiedCredentials | ServicePlanIdCredentials): void;
17
+ private resetApiClient;
18
+ /**
19
+ * Checks the configuration parameters are ok and initialize the API client. Once initialized, the same instance will
20
+ * be returned for the subsequent API calls (singleton pattern)
21
+ * @return {ApiClient} the API Client or throws an error in case the configuration parameters are not ok
22
+ * @private
23
+ */
24
+ getSinchClient(): ApiClient;
25
+ private buildApiClientOptions;
26
+ }
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SmsApi = void 0;
4
+ const sdk_client_1 = require("@sinch/sdk-client");
5
+ class SmsApi {
6
+ constructor(sinchClientParameters, apiName) {
7
+ this.sinchClientParameters = sinchClientParameters;
8
+ this.apiName = apiName;
9
+ }
10
+ /**
11
+ * Update the default basePath for the API
12
+ * @param {string} basePath - The new base path to use for the APIs.
13
+ */
14
+ setBasePath(basePath) {
15
+ this.client = this.getSinchClient();
16
+ this.client.apiClientOptions.basePath = basePath;
17
+ }
18
+ /**
19
+ * Updates the credentials used to authenticate API requests
20
+ * @param {UnifiedCredentials | ServicePlanIdCredentials} credentials
21
+ */
22
+ setCredentials(credentials) {
23
+ const parametersBackup = { ...this.sinchClientParameters };
24
+ this.sinchClientParameters = {
25
+ ...parametersBackup,
26
+ ...credentials,
27
+ };
28
+ this.resetApiClient();
29
+ try {
30
+ this.getSinchClient();
31
+ }
32
+ catch (error) {
33
+ console.error('Impossible to assign the new credentials to the SMS API');
34
+ this.sinchClientParameters = parametersBackup;
35
+ throw error;
36
+ }
37
+ }
38
+ resetApiClient() {
39
+ this.client = undefined;
40
+ }
41
+ /**
42
+ * Checks the configuration parameters are ok and initialize the API client. Once initialized, the same instance will
43
+ * be returned for the subsequent API calls (singleton pattern)
44
+ * @return {ApiClient} the API Client or throws an error in case the configuration parameters are not ok
45
+ * @private
46
+ */
47
+ getSinchClient() {
48
+ if (!this.client) {
49
+ const region = this.sinchClientParameters.region || sdk_client_1.Region.UNITED_STATES;
50
+ const apiClientOptions = this.buildApiClientOptions(this.sinchClientParameters, region);
51
+ const basePath = `https://${apiClientOptions.useServicePlanId ? '' : 'zt.'}${region}.sms.api.sinch.com`;
52
+ this.client = new sdk_client_1.ApiFetchClient(apiClientOptions);
53
+ this.client.apiClientOptions.basePath = basePath;
54
+ }
55
+ return this.client;
56
+ }
57
+ buildApiClientOptions(params, region) {
58
+ let apiClientOptions;
59
+ // Check the region: if US or EU, try to use the OAuth2 authentication with the access key / secret under the project Id
60
+ if (!params.forceServicePlanIdUsageForSmsApi
61
+ && (region === sdk_client_1.Region.UNITED_STATES || region === sdk_client_1.Region.EUROPE)) {
62
+ // Let's check the required parameters for OAuth2 authentication
63
+ if (params.projectId && params.keyId && params.keySecret) {
64
+ apiClientOptions = {
65
+ projectId: params.projectId,
66
+ requestPlugins: [new sdk_client_1.Oauth2TokenRequest(params.keyId, params.keySecret)],
67
+ useServicePlanId: false,
68
+ };
69
+ }
70
+ }
71
+ if (!apiClientOptions) {
72
+ // The API client options couldn't be initialized for with the projectId unified authentication.
73
+ // Let's try with the servicePlanId
74
+ if (params.servicePlanId && params.apiToken) {
75
+ apiClientOptions = {
76
+ projectId: params.servicePlanId,
77
+ requestPlugins: [new sdk_client_1.ApiTokenRequest(params.apiToken)],
78
+ useServicePlanId: true,
79
+ };
80
+ }
81
+ }
82
+ if (!apiClientOptions) {
83
+ throw new Error('Invalid parameters for the SMS API: check your configuration');
84
+ }
85
+ return apiClientOptions;
86
+ }
87
+ }
88
+ exports.SmsApi = SmsApi;
89
+ //# sourceMappingURL=sms-api.js.map
@@ -0,0 +1 @@
1
+ {"version":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B,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAClF,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF;AA1FD,wBA0FC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Domain: sms
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ import { SinchClientParameters } from '@sinch/sdk-client';
8
+ import { GroupsApi } from './groups';
9
+ import { DeliveryReportsApi } from './delivery-reports';
10
+ import { BatchesApi } from './batches';
11
+ import { InboundsApi } from './inbounds';
12
+ export declare class Sms {
13
+ readonly groups: GroupsApi;
14
+ readonly deliveryReports: DeliveryReportsApi;
15
+ readonly batches: BatchesApi;
16
+ readonly inbounds: InboundsApi;
17
+ constructor(params: SinchClientParameters);
18
+ /**
19
+ * Update the default basePath for each API
20
+ *
21
+ * @param {string} basePath - The new base path to use for all the APIs.
22
+ */
23
+ setBasePath(basePath: string): void;
24
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Sms = void 0;
4
+ const groups_1 = require("./groups");
5
+ const delivery_reports_1 = require("./delivery-reports");
6
+ const batches_1 = require("./batches");
7
+ const inbounds_1 = require("./inbounds");
8
+ class Sms {
9
+ constructor(params) {
10
+ this.groups = new groups_1.GroupsApi(params);
11
+ this.deliveryReports = new delivery_reports_1.DeliveryReportsApi(params);
12
+ this.batches = new batches_1.BatchesApi(params);
13
+ this.inbounds = new inbounds_1.InboundsApi(params);
14
+ }
15
+ /**
16
+ * Update the default basePath for each API
17
+ *
18
+ * @param {string} basePath - The new base path to use for all the APIs.
19
+ */
20
+ setBasePath(basePath) {
21
+ this.groups.setBasePath(basePath);
22
+ this.deliveryReports.setBasePath(basePath);
23
+ this.batches.setBasePath(basePath);
24
+ this.inbounds.setBasePath(basePath);
25
+ }
26
+ }
27
+ exports.Sms = Sms;
28
+ //# sourceMappingURL=sms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sms.js","sourceRoot":"","sources":["../../../src/rest/v1/sms.ts"],"names":[],"mappings":";;;AASA,qCAAqC;AACrC,yDAAwD;AACxD,uCAAuC;AACvC,yCAAyC;AAEzC,MAAa,GAAG;IAMd,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,IAAI,kBAAS,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,IAAI,qCAAkB,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,OAAO,GAAG,IAAI,oBAAU,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,IAAI,sBAAW,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED;;;;OAIG;IACI,WAAW,CAAC,QAAgB;QACjC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAClC,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;CACF;AAxBD,kBAwBC"}
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@sinch/sms",
3
+ "version": "0.0.0",
4
+ "description": "Sinch SMS API",
5
+ "homepage": "",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": ""
9
+ },
10
+ "license": "Apache-2.0",
11
+ "author": "Sinch",
12
+ "main": "dist/index.js",
13
+ "types": "dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.js"
18
+ }
19
+ },
20
+ "directories": {
21
+ "src": "dist",
22
+ "test": "tests"
23
+ },
24
+ "files": ["/dist"],
25
+ "scripts": {
26
+ "build": "yarn run clean && yarn run compile",
27
+ "clean": "rimraf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
28
+ "compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests tsconfig.build.tsbuildinfo"
29
+ },
30
+ "dependencies": {
31
+ "@sinch/sdk-client": "^0.0.0"
32
+ },
33
+ "devDependencies": {},
34
+ "publishConfig": {
35
+ "directory": "dist"
36
+ }
37
+ }