@azure-tools/communication-short-codes 1.0.0-beta.4 → 1.0.0-beta.5

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 (312) hide show
  1. package/README.md +175 -156
  2. package/dist/browser/generated/src/index.d.ts +4 -0
  3. package/dist/browser/generated/src/index.d.ts.map +1 -0
  4. package/{dist-esm/src → dist/browser}/generated/src/index.js +3 -3
  5. package/dist/browser/generated/src/index.js.map +1 -0
  6. package/{types/communication-short-codes.d.ts → dist/browser/generated/src/models/index.d.ts} +422 -377
  7. package/dist/browser/generated/src/models/index.d.ts.map +1 -0
  8. package/dist/browser/generated/src/models/index.js.map +1 -0
  9. package/dist/browser/generated/src/models/mappers.d.ts +23 -0
  10. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
  11. package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +74 -39
  12. package/dist/browser/generated/src/models/mappers.js.map +1 -0
  13. package/dist/browser/generated/src/models/parameters.d.ts +19 -0
  14. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
  15. package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js +1 -1
  16. package/dist/browser/generated/src/models/parameters.js.map +1 -0
  17. package/dist/browser/generated/src/operations/index.d.ts +2 -0
  18. package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
  19. package/{dist-esm/src → dist/browser}/generated/src/operations/index.js +1 -1
  20. package/{dist-esm/src → dist/browser}/generated/src/operations/index.js.map +1 -1
  21. package/dist/browser/generated/src/operations/shortCodes.d.ts +143 -0
  22. package/dist/browser/generated/src/operations/shortCodes.d.ts.map +1 -0
  23. package/{dist-esm/src/generated/src/operations/shortCodesOperations.js → dist/browser/generated/src/operations/shortCodes.js} +146 -107
  24. package/dist/browser/generated/src/operations/shortCodes.js.map +1 -0
  25. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +2 -0
  26. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  27. package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/index.js +1 -1
  28. package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/index.js.map +1 -1
  29. package/dist/browser/generated/src/operationsInterfaces/shortCodes.d.ts +80 -0
  30. package/dist/browser/generated/src/operationsInterfaces/shortCodes.d.ts.map +1 -0
  31. package/{dist-esm/src/generated/src/operationsInterfaces/shortCodesOperations.js → dist/browser/generated/src/operationsInterfaces/shortCodes.js} +1 -1
  32. package/dist/browser/generated/src/operationsInterfaces/shortCodes.js.map +1 -0
  33. package/dist/browser/generated/src/shortCodesClient.d.ts +17 -0
  34. package/dist/browser/generated/src/shortCodesClient.d.ts.map +1 -0
  35. package/{dist-esm/src → dist/browser}/generated/src/shortCodesClient.js +14 -7
  36. package/dist/browser/generated/src/shortCodesClient.js.map +1 -0
  37. package/dist/browser/generated/src/tracing.d.ts +2 -0
  38. package/dist/browser/generated/src/tracing.d.ts.map +1 -0
  39. package/{dist-esm/src → dist/browser}/generated/src/tracing.js +1 -1
  40. package/{dist-esm/src → dist/browser}/generated/src/tracing.js.map +1 -1
  41. package/dist/browser/index.d.ts +4 -0
  42. package/dist/browser/index.d.ts.map +1 -0
  43. package/dist/browser/index.js +6 -0
  44. package/dist/browser/index.js.map +1 -0
  45. package/dist/browser/mappers.d.ts +2 -0
  46. package/dist/browser/mappers.d.ts.map +1 -0
  47. package/dist/browser/mappers.js +4 -0
  48. package/dist/browser/mappers.js.map +1 -0
  49. package/dist/browser/models.d.ts +34 -0
  50. package/dist/browser/models.d.ts.map +1 -0
  51. package/dist/browser/models.js +4 -0
  52. package/dist/browser/models.js.map +1 -0
  53. package/dist/browser/package.json +3 -0
  54. package/dist/browser/shortCodesClient.d.ts +31 -0
  55. package/dist/browser/shortCodesClient.d.ts.map +1 -0
  56. package/{dist-esm/src → dist/browser}/shortCodesClient.js +45 -18
  57. package/dist/browser/shortCodesClient.js.map +1 -0
  58. package/dist/browser/utils/constants.d.ts +2 -0
  59. package/dist/browser/utils/constants.d.ts.map +1 -0
  60. package/dist/browser/utils/constants.js +4 -0
  61. package/{dist-esm/src → dist/browser}/utils/constants.js.map +1 -1
  62. package/dist/browser/utils/customPipelinePolicies.d.ts +11 -0
  63. package/dist/browser/utils/customPipelinePolicies.d.ts.map +1 -0
  64. package/dist/browser/utils/customPipelinePolicies.js +26 -0
  65. package/dist/browser/utils/customPipelinePolicies.js.map +1 -0
  66. package/dist/browser/utils/index.d.ts +3 -0
  67. package/dist/browser/utils/index.d.ts.map +1 -0
  68. package/dist/browser/utils/index.js +5 -0
  69. package/dist/browser/utils/index.js.map +1 -0
  70. package/dist/browser/utils/logger.d.ts +5 -0
  71. package/dist/browser/utils/logger.d.ts.map +1 -0
  72. package/{dist-esm/src → dist/browser}/utils/logger.js +1 -1
  73. package/{dist-esm/src → dist/browser}/utils/logger.js.map +1 -1
  74. package/dist/commonjs/generated/src/index.d.ts +4 -0
  75. package/dist/commonjs/generated/src/index.d.ts.map +1 -0
  76. package/dist/commonjs/generated/src/index.js +17 -0
  77. package/dist/commonjs/generated/src/index.js.map +1 -0
  78. package/dist/commonjs/generated/src/models/index.d.ts +422 -0
  79. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
  80. package/dist/commonjs/generated/src/models/index.js +10 -0
  81. package/dist/commonjs/generated/src/models/index.js.map +1 -0
  82. package/dist/commonjs/generated/src/models/mappers.d.ts +23 -0
  83. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
  84. package/dist/commonjs/generated/src/models/mappers.js +846 -0
  85. package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
  86. package/dist/commonjs/generated/src/models/parameters.d.ts +19 -0
  87. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
  88. package/dist/commonjs/generated/src/models/parameters.js +146 -0
  89. package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
  90. package/dist/commonjs/generated/src/operations/index.d.ts +2 -0
  91. package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
  92. package/dist/commonjs/generated/src/operations/index.js +12 -0
  93. package/dist/commonjs/generated/src/operations/index.js.map +1 -0
  94. package/dist/commonjs/generated/src/operations/shortCodes.d.ts +143 -0
  95. package/dist/commonjs/generated/src/operations/shortCodes.d.ts.map +1 -0
  96. package/dist/commonjs/generated/src/operations/shortCodes.js +605 -0
  97. package/dist/commonjs/generated/src/operations/shortCodes.js.map +1 -0
  98. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +2 -0
  99. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  100. package/dist/commonjs/generated/src/operationsInterfaces/index.js +12 -0
  101. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
  102. package/dist/commonjs/generated/src/operationsInterfaces/shortCodes.d.ts +80 -0
  103. package/dist/commonjs/generated/src/operationsInterfaces/shortCodes.d.ts.map +1 -0
  104. package/dist/commonjs/generated/src/operationsInterfaces/shortCodes.js +10 -0
  105. package/dist/commonjs/generated/src/operationsInterfaces/shortCodes.js.map +1 -0
  106. package/dist/commonjs/generated/src/shortCodesClient.d.ts +17 -0
  107. package/dist/commonjs/generated/src/shortCodesClient.d.ts.map +1 -0
  108. package/dist/commonjs/generated/src/shortCodesClient.js +98 -0
  109. package/dist/commonjs/generated/src/shortCodesClient.js.map +1 -0
  110. package/dist/commonjs/generated/src/tracing.d.ts +2 -0
  111. package/dist/commonjs/generated/src/tracing.d.ts.map +1 -0
  112. package/dist/commonjs/generated/src/tracing.js +17 -0
  113. package/dist/commonjs/generated/src/tracing.js.map +1 -0
  114. package/dist/commonjs/index.d.ts +4 -0
  115. package/dist/commonjs/index.d.ts.map +1 -0
  116. package/dist/commonjs/index.js +9 -0
  117. package/dist/commonjs/index.js.map +1 -0
  118. package/dist/commonjs/mappers.d.ts +2 -0
  119. package/dist/commonjs/mappers.d.ts.map +1 -0
  120. package/dist/commonjs/mappers.js +11 -0
  121. package/dist/commonjs/mappers.js.map +1 -0
  122. package/dist/commonjs/models.d.ts +34 -0
  123. package/dist/commonjs/models.d.ts.map +1 -0
  124. package/dist/commonjs/models.js +5 -0
  125. package/dist/commonjs/models.js.map +1 -0
  126. package/dist/commonjs/package.json +3 -0
  127. package/dist/commonjs/shortCodesClient.d.ts +31 -0
  128. package/dist/commonjs/shortCodesClient.d.ts.map +1 -0
  129. package/dist/commonjs/shortCodesClient.js +141 -0
  130. package/dist/commonjs/shortCodesClient.js.map +1 -0
  131. package/dist/commonjs/tsdoc-metadata.json +11 -0
  132. package/dist/commonjs/utils/constants.d.ts +2 -0
  133. package/dist/commonjs/utils/constants.d.ts.map +1 -0
  134. package/dist/commonjs/utils/constants.js +7 -0
  135. package/dist/commonjs/utils/constants.js.map +1 -0
  136. package/dist/commonjs/utils/customPipelinePolicies.d.ts +11 -0
  137. package/dist/commonjs/utils/customPipelinePolicies.d.ts.map +1 -0
  138. package/dist/commonjs/utils/customPipelinePolicies.js +29 -0
  139. package/dist/commonjs/utils/customPipelinePolicies.js.map +1 -0
  140. package/dist/commonjs/utils/index.d.ts +3 -0
  141. package/dist/commonjs/utils/index.d.ts.map +1 -0
  142. package/dist/commonjs/utils/index.js +8 -0
  143. package/dist/commonjs/utils/index.js.map +1 -0
  144. package/dist/commonjs/utils/logger.d.ts +5 -0
  145. package/dist/commonjs/utils/logger.d.ts.map +1 -0
  146. package/dist/commonjs/utils/logger.js +11 -0
  147. package/dist/commonjs/utils/logger.js.map +1 -0
  148. package/dist/esm/generated/src/index.d.ts +4 -0
  149. package/dist/esm/generated/src/index.d.ts.map +1 -0
  150. package/dist/esm/generated/src/index.js +12 -0
  151. package/dist/esm/generated/src/index.js.map +1 -0
  152. package/dist/esm/generated/src/models/index.d.ts +422 -0
  153. package/dist/esm/generated/src/models/index.d.ts.map +1 -0
  154. package/dist/esm/generated/src/models/index.js +9 -0
  155. package/dist/esm/generated/src/models/index.js.map +1 -0
  156. package/dist/esm/generated/src/models/mappers.d.ts +23 -0
  157. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
  158. package/dist/esm/generated/src/models/mappers.js +843 -0
  159. package/dist/esm/generated/src/models/mappers.js.map +1 -0
  160. package/dist/esm/generated/src/models/parameters.d.ts +19 -0
  161. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
  162. package/dist/esm/generated/src/models/parameters.js +143 -0
  163. package/dist/esm/generated/src/models/parameters.js.map +1 -0
  164. package/dist/esm/generated/src/operations/index.d.ts +2 -0
  165. package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
  166. package/dist/esm/generated/src/operations/index.js +9 -0
  167. package/dist/esm/generated/src/operations/index.js.map +1 -0
  168. package/dist/esm/generated/src/operations/shortCodes.d.ts +143 -0
  169. package/dist/esm/generated/src/operations/shortCodes.d.ts.map +1 -0
  170. package/dist/esm/generated/src/operations/shortCodes.js +600 -0
  171. package/dist/esm/generated/src/operations/shortCodes.js.map +1 -0
  172. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +2 -0
  173. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  174. package/dist/esm/generated/src/operationsInterfaces/index.js +9 -0
  175. package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
  176. package/dist/esm/generated/src/operationsInterfaces/shortCodes.d.ts +80 -0
  177. package/dist/esm/generated/src/operationsInterfaces/shortCodes.d.ts.map +1 -0
  178. package/dist/esm/generated/src/operationsInterfaces/shortCodes.js +9 -0
  179. package/dist/esm/generated/src/operationsInterfaces/shortCodes.js.map +1 -0
  180. package/dist/esm/generated/src/shortCodesClient.d.ts +17 -0
  181. package/dist/esm/generated/src/shortCodesClient.d.ts.map +1 -0
  182. package/dist/esm/generated/src/shortCodesClient.js +93 -0
  183. package/dist/esm/generated/src/shortCodesClient.js.map +1 -0
  184. package/dist/esm/generated/src/tracing.d.ts +2 -0
  185. package/dist/esm/generated/src/tracing.d.ts.map +1 -0
  186. package/dist/esm/generated/src/tracing.js +14 -0
  187. package/dist/esm/generated/src/tracing.js.map +1 -0
  188. package/dist/esm/index.d.ts +4 -0
  189. package/dist/esm/index.d.ts.map +1 -0
  190. package/dist/esm/index.js +6 -0
  191. package/dist/esm/index.js.map +1 -0
  192. package/dist/esm/mappers.d.ts +2 -0
  193. package/dist/esm/mappers.d.ts.map +1 -0
  194. package/dist/esm/mappers.js +4 -0
  195. package/dist/esm/mappers.js.map +1 -0
  196. package/dist/esm/models.d.ts +34 -0
  197. package/dist/esm/models.d.ts.map +1 -0
  198. package/dist/esm/models.js +4 -0
  199. package/dist/esm/models.js.map +1 -0
  200. package/dist/esm/package.json +3 -0
  201. package/dist/esm/shortCodesClient.d.ts +31 -0
  202. package/dist/esm/shortCodesClient.d.ts.map +1 -0
  203. package/dist/esm/shortCodesClient.js +137 -0
  204. package/dist/esm/shortCodesClient.js.map +1 -0
  205. package/dist/esm/utils/constants.d.ts +2 -0
  206. package/dist/esm/utils/constants.d.ts.map +1 -0
  207. package/dist/esm/utils/constants.js +4 -0
  208. package/dist/esm/utils/constants.js.map +1 -0
  209. package/dist/esm/utils/customPipelinePolicies.d.ts +11 -0
  210. package/dist/esm/utils/customPipelinePolicies.d.ts.map +1 -0
  211. package/dist/esm/utils/customPipelinePolicies.js +26 -0
  212. package/dist/esm/utils/customPipelinePolicies.js.map +1 -0
  213. package/dist/esm/utils/index.d.ts +3 -0
  214. package/dist/esm/utils/index.d.ts.map +1 -0
  215. package/dist/esm/utils/index.js +5 -0
  216. package/dist/esm/utils/index.js.map +1 -0
  217. package/dist/esm/utils/logger.d.ts +5 -0
  218. package/dist/esm/utils/logger.d.ts.map +1 -0
  219. package/dist/esm/utils/logger.js +8 -0
  220. package/dist/esm/utils/logger.js.map +1 -0
  221. package/dist/react-native/generated/src/index.d.ts +4 -0
  222. package/dist/react-native/generated/src/index.d.ts.map +1 -0
  223. package/dist/react-native/generated/src/index.js +12 -0
  224. package/dist/react-native/generated/src/index.js.map +1 -0
  225. package/dist/react-native/generated/src/models/index.d.ts +422 -0
  226. package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
  227. package/dist/react-native/generated/src/models/index.js +9 -0
  228. package/dist/react-native/generated/src/models/index.js.map +1 -0
  229. package/dist/react-native/generated/src/models/mappers.d.ts +23 -0
  230. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
  231. package/dist/react-native/generated/src/models/mappers.js +843 -0
  232. package/dist/react-native/generated/src/models/mappers.js.map +1 -0
  233. package/dist/react-native/generated/src/models/parameters.d.ts +19 -0
  234. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
  235. package/dist/react-native/generated/src/models/parameters.js +143 -0
  236. package/dist/react-native/generated/src/models/parameters.js.map +1 -0
  237. package/dist/react-native/generated/src/operations/index.d.ts +2 -0
  238. package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
  239. package/dist/react-native/generated/src/operations/index.js +9 -0
  240. package/dist/react-native/generated/src/operations/index.js.map +1 -0
  241. package/dist/react-native/generated/src/operations/shortCodes.d.ts +143 -0
  242. package/dist/react-native/generated/src/operations/shortCodes.d.ts.map +1 -0
  243. package/dist/react-native/generated/src/operations/shortCodes.js +600 -0
  244. package/dist/react-native/generated/src/operations/shortCodes.js.map +1 -0
  245. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +2 -0
  246. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  247. package/dist/react-native/generated/src/operationsInterfaces/index.js +9 -0
  248. package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
  249. package/dist/react-native/generated/src/operationsInterfaces/shortCodes.d.ts +80 -0
  250. package/dist/react-native/generated/src/operationsInterfaces/shortCodes.d.ts.map +1 -0
  251. package/dist/react-native/generated/src/operationsInterfaces/shortCodes.js +9 -0
  252. package/dist/react-native/generated/src/operationsInterfaces/shortCodes.js.map +1 -0
  253. package/dist/react-native/generated/src/shortCodesClient.d.ts +17 -0
  254. package/dist/react-native/generated/src/shortCodesClient.d.ts.map +1 -0
  255. package/dist/react-native/generated/src/shortCodesClient.js +93 -0
  256. package/dist/react-native/generated/src/shortCodesClient.js.map +1 -0
  257. package/dist/react-native/generated/src/tracing.d.ts +2 -0
  258. package/dist/react-native/generated/src/tracing.d.ts.map +1 -0
  259. package/dist/react-native/generated/src/tracing.js +14 -0
  260. package/dist/react-native/generated/src/tracing.js.map +1 -0
  261. package/dist/react-native/index.d.ts +4 -0
  262. package/dist/react-native/index.d.ts.map +1 -0
  263. package/dist/react-native/index.js +6 -0
  264. package/dist/react-native/index.js.map +1 -0
  265. package/dist/react-native/mappers.d.ts +2 -0
  266. package/dist/react-native/mappers.d.ts.map +1 -0
  267. package/dist/react-native/mappers.js +4 -0
  268. package/dist/react-native/mappers.js.map +1 -0
  269. package/dist/react-native/models.d.ts +34 -0
  270. package/dist/react-native/models.d.ts.map +1 -0
  271. package/dist/react-native/models.js +4 -0
  272. package/dist/react-native/models.js.map +1 -0
  273. package/dist/react-native/package.json +3 -0
  274. package/dist/react-native/shortCodesClient.d.ts +31 -0
  275. package/dist/react-native/shortCodesClient.d.ts.map +1 -0
  276. package/dist/react-native/shortCodesClient.js +137 -0
  277. package/dist/react-native/shortCodesClient.js.map +1 -0
  278. package/dist/react-native/utils/constants.d.ts +2 -0
  279. package/dist/react-native/utils/constants.d.ts.map +1 -0
  280. package/dist/react-native/utils/constants.js +4 -0
  281. package/dist/react-native/utils/constants.js.map +1 -0
  282. package/dist/react-native/utils/customPipelinePolicies.d.ts +11 -0
  283. package/dist/react-native/utils/customPipelinePolicies.d.ts.map +1 -0
  284. package/dist/react-native/utils/customPipelinePolicies.js +26 -0
  285. package/dist/react-native/utils/customPipelinePolicies.js.map +1 -0
  286. package/dist/react-native/utils/index.d.ts +3 -0
  287. package/dist/react-native/utils/index.d.ts.map +1 -0
  288. package/dist/react-native/utils/index.js +5 -0
  289. package/dist/react-native/utils/index.js.map +1 -0
  290. package/dist/react-native/utils/logger.d.ts +5 -0
  291. package/dist/react-native/utils/logger.d.ts.map +1 -0
  292. package/dist/react-native/utils/logger.js +8 -0
  293. package/dist/react-native/utils/logger.js.map +1 -0
  294. package/package.json +88 -75
  295. package/dist/index.js +0 -1745
  296. package/dist/index.js.map +0 -1
  297. package/dist-esm/src/generated/src/index.js.map +0 -1
  298. package/dist-esm/src/generated/src/models/index.js.map +0 -1
  299. package/dist-esm/src/generated/src/models/mappers.js.map +0 -1
  300. package/dist-esm/src/generated/src/models/parameters.js.map +0 -1
  301. package/dist-esm/src/generated/src/operations/shortCodesOperations.js.map +0 -1
  302. package/dist-esm/src/generated/src/operationsInterfaces/shortCodesOperations.js.map +0 -1
  303. package/dist-esm/src/generated/src/shortCodesClient.js.map +0 -1
  304. package/dist-esm/src/index.js +0 -5
  305. package/dist-esm/src/index.js.map +0 -1
  306. package/dist-esm/src/models.js +0 -4
  307. package/dist-esm/src/models.js.map +0 -1
  308. package/dist-esm/src/shortCodesClient.js.map +0 -1
  309. package/dist-esm/src/utils/constants.js +0 -4
  310. package/dist-esm/src/utils/index.js +0 -5
  311. package/dist-esm/src/utils/index.js.map +0 -1
  312. /package/{dist-esm/src → dist/browser}/generated/src/models/index.js +0 -0
@@ -1,377 +1,422 @@
1
- /// <reference lib="esnext.asynciterable" />
2
-
3
- import { CommonClientOptions } from '@azure/core-client';
4
- import * as coreClient from '@azure/core-client';
5
- import { KeyCredential } from '@azure/core-auth';
6
- import { OperationOptions } from '@azure/core-client';
7
- import { PagedAsyncIterableIterator } from '@azure/core-paging';
8
- import { TokenCredential } from '@azure/core-auth';
9
-
10
- /** Defines values for AttachmentType. */
11
- export declare type AttachmentType = "callToAction" | "termsOfService" | "privacyPolicy" | "other";
12
-
13
- /** Defines values for BillingFrequency. */
14
- export declare type BillingFrequency = "monthly" | "once";
15
-
16
- /** Defines values for CallToActionType. */
17
- export declare type CallToActionType = "website" | "pointOfSale" | "sms" | "interactiveVoiceResponse";
18
-
19
- export declare interface CompanyInformation {
20
- /** Legal entity name for customer submitting Program Brief. */
21
- name?: string;
22
- /** Company URL for customer submitting Program Brief. */
23
- url?: string;
24
- /** Company's address for the customer submitting the Program Brief. */
25
- address?: string;
26
- /** Contact Information */
27
- contactInformation?: ContactInformation;
28
- /** Customer Care Information */
29
- customerCareInformation?: CustomerCareInformation;
30
- }
31
-
32
- /** Contact Information */
33
- export declare interface ContactInformation {
34
- /** Name of authorized user for purposes of submitting the Program Brief. */
35
- name?: string;
36
- /** Contact phone number for the authorized user for the customer. Use E164 format. e.g. +14086111111. */
37
- phone?: string;
38
- /** Contact email address number for the authorized user for the customer. */
39
- email?: string;
40
- }
41
-
42
- /** Customer Care Information */
43
- export declare interface CustomerCareInformation {
44
- /** Customer support phone number for the customer submitting the Program Brief. Use E164 format. e.g. +18005551212 */
45
- tollFreeNumber?: string;
46
- /** Customer support email address for the customer submitting the Program Brief. */
47
- email?: string;
48
- }
49
-
50
- /**
51
- * Additional options for the delete US Program Brief request.
52
- */
53
- export declare interface DeleteUSProgramBriefOptions extends OperationOptions {
54
- }
55
-
56
- /** Defines values for FileType. */
57
- export declare type FileType = "png" | "jpg" | "jpeg" | "pdf";
58
-
59
- /**
60
- * Additional options for the Get US Program Brief request.
61
- */
62
- export declare interface GetUSProgramBriefOptions extends OperationOptions {
63
- }
64
-
65
- /**
66
- * Additional options for the List Short Codes request.
67
- */
68
- export declare interface ListShortCodesOptions extends ShortCodesGetShortCodesOptionalParams {
69
- }
70
-
71
- /**
72
- * Additional options for the List US Program Brief request.
73
- */
74
- export declare interface ListUSProgramBriefsOptions extends OperationOptions {
75
- }
76
-
77
- /** Defines values for MessageContentType. */
78
- export declare type MessageContentType = "accountNotificationInformationalAlerts" | "ageGatedContent" | "chatConversationalMessaging" | "deliveryNotification" | "donationsPledge" | "education" | "fraudAlerts" | "loanArrangement" | "loyaltyProgram" | "marketingAndPromotion" | "mmsPicture" | "mmsVideo" | "oneTimePasswordOrMultiFactorAuthentication" | "political" | "publicServiceAnnouncements" | "securityAlerts" | "socialMedia" | "sweepstakesOrContest" | "votingOrPolling" | "other";
79
-
80
- export declare interface MessageDetails {
81
- /** Applicable message protocol used in the program e.g. SMS or MMS. */
82
- supportedProtocol?: MessageProtocol;
83
- /** Indicates the nature of the messaging associated with the program e.g. 'subscription', 'transaction'. */
84
- recurrence?: Recurrence;
85
- /**
86
- * Message text for mobile terminated message associated with HELP keyword
87
- * e.g 'This is the HELP message test.'.
88
- */
89
- helpAnswerToUser?: string;
90
- /**
91
- * "Message text for mobile terminated message associated with STOP keyword
92
- * e.g. 'This is the STOP message test.'.
93
- */
94
- optOutAnswerToUser?: string;
95
- optInMessageToUser?: string;
96
- /** Keyword used to confirm double Opt-In method e.g. 'JOIN'. */
97
- optInAnswerFromUser?: string;
98
- optInConfirmationMessageToUser?: string;
99
- /** Describes directionality e.g. oneWay or twoWay */
100
- directionality?: MessageDirectionality;
101
- /** Provides message exchange examples from and to end user for each supported message content type. */
102
- useCases?: UseCase[];
103
- }
104
-
105
- /** Defines values for MessageDirection. */
106
- export declare type MessageDirection = "toUser" | "fromUser";
107
-
108
- /** Defines values for MessageDirectionality. */
109
- export declare type MessageDirectionality = "oneWay" | "twoWay";
110
-
111
- /** Represents a message example to be sent from or to the end user. */
112
- export declare interface MessageExample {
113
- /** Indicates whether the message example is supposed to be sent to or from the end user e.g. toUser */
114
- direction?: MessageDirection;
115
- /** Actual example text for the message e.g. 'Want me to notify you when package in the way?' */
116
- text?: string;
117
- }
118
-
119
- /** A sequence of example messages to and from the end user. */
120
- export declare interface MessageExampleSequence {
121
- /** Example messages to be sent to and from the end user. */
122
- messages?: MessageExample[];
123
- }
124
-
125
- /** Defines values for MessageProtocol. */
126
- export declare type MessageProtocol = "sms" | "mms";
127
-
128
- /** Defines values for NumberType. */
129
- export declare type NumberType = "shortCode" | "alphaId";
130
-
131
- /** A File Attachment for a Program Brief */
132
- export declare interface ProgramBriefAttachment {
133
- /** Program Brief Attachment Id. */
134
- id: string;
135
- /**
136
- * Attachment type describing the purpose of the attachment
137
- * e.g. 'callToAction', 'termsOfService'
138
- */
139
- type: AttachmentType;
140
- /**
141
- * The name of the file being attached
142
- * e.g. 'myFile01'
143
- */
144
- fileName: string;
145
- /** File size in bytes. */
146
- fileSizeInBytes?: number;
147
- /**
148
- * The type of file being attached
149
- * e.g. 'pdf', 'jpg', 'png'
150
- */
151
- fileType: FileType;
152
- /** File content as base 64 encoded string */
153
- fileContentBase64: string;
154
- }
155
-
156
- /** A summary of Program Brief File Attachment data */
157
- export declare interface ProgramBriefAttachmentSummary {
158
- /** Program Brief Attachment Id. */
159
- id?: string;
160
- /**
161
- * Attachment type describing the purpose of the attachment
162
- * e.g. 'callToAction', 'termsOfService'
163
- */
164
- type?: AttachmentType;
165
- /**
166
- * The name of the attached file
167
- * e.g. 'myFile01'
168
- */
169
- fileName?: string;
170
- }
171
-
172
- /** Defines values for ProgramBriefStatus. */
173
- export declare type ProgramBriefStatus = "submitted" | "approved" | "submitNewVanityNumbers" | "updateProgramBrief" | "draft" | "denied";
174
-
175
- export declare interface ProgramDetails {
176
- /** Set to true if the request is for a vanity number. */
177
- isVanity?: boolean;
178
- /**
179
- * Priority ordered list of preferred vanity numbers.
180
- * Vanity numbers should be 5 or 6 digit when number type is ShortCode.
181
- * e.g. 555555, 222222.
182
- */
183
- preferredVanityNumbers?: string[];
184
- /** Type for desired numbers e.g. 'shortCode' or 'alphaId'. */
185
- numberType?: NumberType;
186
- /** Indicates whether the number will be used for political campaigns or not. */
187
- isPoliticalCampaign?: boolean;
188
- /**
189
- * A program name that indicates the purpose of filling the Program Brief and how the number will be used for messaging.
190
- * e.g. 'CONTOSO Shipping'
191
- */
192
- name?: string;
193
- /** Describes how and why the number will be used for messaging as part of the program. */
194
- description?: string;
195
- /** URL for the program or company. */
196
- url?: string;
197
- /** Indicates how the consumer can sign up to the program e.g. 'website', 'pointOfSale' and/or 'sms'. */
198
- callToActionTypes?: CallToActionType[];
199
- /** URL for "call to action" image for the program. */
200
- callToActionUrl?: string;
201
- /** Call to action text. To be provided when InteractiveVoiceResponse is specified as call to action type */
202
- callToAction?: string;
203
- /** URL for program terms of service. */
204
- termsOfServiceUrl?: string;
205
- /** URL for privacy policy. */
206
- privacyPolicyUrl?: string;
207
- /**
208
- * Date in which SMS messages will start to be sent out.
209
- * Should follow ISO 8601 internet format for datetimes.
210
- * e.g. 2021-08-17T22:02:51.316Z, 2021-08-17T16:39:57-08:00, etc.
211
- */
212
- expectedDateOfService?: Date;
213
- }
214
-
215
- /** Defines values for Recurrence. */
216
- export declare type Recurrence = "subscription" | "transaction";
217
-
218
- /** Holds a note about a Program Brief that has gone thru stages of review process. */
219
- export declare interface ReviewNote {
220
- /** Note related to a Program Brief that may imply changes needed from the client. */
221
- message?: string;
222
- /** Date and time when the note was added to the Program Brief. */
223
- date?: Date;
224
- }
225
-
226
- /** Represents a number, ShortCode or AlphaId, acquired in a given country. */
227
- export declare interface ShortCode {
228
- /** The value of the ShortCode or the alpha numeric e.g. '555555', 'CONTOSO', etc. */
229
- number?: string;
230
- /** The type of number e.g. 'ShortCode', 'AlphaId'. */
231
- numberType?: NumberType;
232
- /** ISO 3166 2-char code representing the country e.g. 'US'. */
233
- countryCode?: string;
234
- /** Program Brief Name. */
235
- programBriefIds?: string[];
236
- /** Date in which number was purchased. */
237
- purchaseDate?: Date;
238
- }
239
-
240
- /** The incurred cost for a single short code. */
241
- export declare interface ShortCodeCost {
242
- /** The cost amount. */
243
- amount: number;
244
- /** The ISO 4217 currency code for the cost amount, e.g. USD. */
245
- currencyCode: string;
246
- /** The frequency with which the cost gets billed. */
247
- billingFrequency: BillingFrequency;
248
- }
249
-
250
- export declare class ShortCodesClient {
251
- /**
252
- * A reference to the auto-generated ShortCodes HTTP client.
253
- */
254
- private readonly client;
255
- constructor(connectionString: string, options?: ShortCodesClientOptions);
256
- constructor(endpoint: string, credential: KeyCredential, options?: ShortCodesClientOptions);
257
- constructor(endpoint: string, credential: TokenCredential, options?: ShortCodesClientOptions);
258
- listShortCodes(options?: ListShortCodesOptions): PagedAsyncIterableIterator<ShortCode>;
259
- upsertUSProgramBrief(programBriefId: string, options?: ShortCodesUpsertUSProgramBriefOptionalParams): Promise<USProgramBrief>;
260
- deleteUSProgramBrief(programBriefId: string, options?: DeleteUSProgramBriefOptions): Promise<void>;
261
- getUSProgramBrief(programBriefId: string, options?: GetUSProgramBriefOptions): Promise<USProgramBrief>;
262
- listUSProgramBriefs(options?: ListUSProgramBriefsOptions): PagedAsyncIterableIterator<USProgramBrief>;
263
- submitUSProgramBrief(programBriefId: string, options?: SubmitUSProgramBriefOptions): Promise<USProgramBrief>;
264
- getUSProgramBriefAttachment(programBriefId: string, attachmentId: string, options?: ShortCodesGetUSProgramBriefAttachmentOptionalParams): Promise<ProgramBriefAttachment>;
265
- listUSProgramBriefAttachments(programBriefId: string, options?: ShortCodesGetUSProgramBriefAttachmentsOptionalParams): PagedAsyncIterableIterator<ProgramBriefAttachment>;
266
- deleteUSProgramBriefAttachment(programBriefId: string, attachmentId: string, options?: ShortCodesDeleteUSProgramBriefAttachmentOptionalParams): Promise<void>;
267
- createOrReplaceUSProgramBriefAttachment(programBriefId: string, attachmentId: string, fileName: string, fileType: FileType, fileContent: string, attachmentType: AttachmentType, options?: ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams): Promise<ProgramBriefAttachment>;
268
- }
269
-
270
- /**
271
- * Client options used to configure the ShortCodesClient API requests.
272
- */
273
- export declare interface ShortCodesClientOptions extends CommonClientOptions {
274
- }
275
-
276
- /** Optional parameters. */
277
- export declare interface ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams extends coreClient.OperationOptions {
278
- /** File size in bytes. */
279
- fileSizeInBytes?: number;
280
- }
281
-
282
- /** Optional parameters. */
283
- export declare interface ShortCodesDeleteUSProgramBriefAttachmentOptionalParams extends coreClient.OperationOptions {
284
- }
285
-
286
- /** Optional parameters. */
287
- export declare interface ShortCodesGetShortCodesOptionalParams extends coreClient.OperationOptions {
288
- /** An optional parameter for how many entries to skip, for pagination purposes. */
289
- skip?: number;
290
- /** An optional parameter for how many entries to return, for pagination purposes. */
291
- top?: number;
292
- }
293
-
294
- /** Optional parameters. */
295
- export declare interface ShortCodesGetUSProgramBriefAttachmentOptionalParams extends coreClient.OperationOptions {
296
- }
297
-
298
- /** Optional parameters. */
299
- export declare interface ShortCodesGetUSProgramBriefAttachmentsOptionalParams extends coreClient.OperationOptions {
300
- /** An optional parameter for how many entries to skip, for pagination purposes. */
301
- skip?: number;
302
- /** An optional parameter for how many entries to return, for pagination purposes. */
303
- top?: number;
304
- }
305
-
306
- /** Optional parameters. */
307
- export declare interface ShortCodesUpsertUSProgramBriefOptionalParams extends coreClient.OperationOptions {
308
- /** Data to create new a Program Brief or fields to update an existing Program Brief */
309
- body?: USProgramBrief;
310
- }
311
-
312
- /**
313
- * Additional options for the Submit US Program Brief request.
314
- */
315
- export declare interface SubmitUSProgramBriefOptions extends OperationOptions {
316
- }
317
-
318
- export declare interface TrafficDetails {
319
- /** Estimated total messages per month. */
320
- totalMonthlyVolume?: number;
321
- /** Estimated number of Mobile-Originated messages likely to be received from a user per month. */
322
- monthlyAverageMessagesFromUser?: number;
323
- /** Estimated number of Mobile-Terminated messages likely to be sent per user per month. */
324
- monthlyAverageMessagesToUser?: number;
325
- /** Indicates if the nature of the messaging traffic will be bursty. */
326
- isSpiky?: boolean;
327
- /**
328
- * If isSpiky=true, then explain additional details about the traffic pattern
329
- * e.g. 'Higher traffic expected during holiday season and Black Friday.'.
330
- */
331
- spikeDetails?: string;
332
- /** Numbers of days in which is expected to start sending messages from the short code. */
333
- estimatedRampUpTimeInDays?: number;
334
- }
335
-
336
- /** Describes a messaging use case for a given content type by providing example messages. */
337
- export declare interface UseCase {
338
- /** Indicates the messaging content type used in the program e.g. 'accountNotificationInformationalAlerts', 'chatConversationalMessaging', 'mmsVideo', 'socialMedia'. */
339
- contentType?: MessageContentType;
340
- /** Indicates the messaging content type used in the program whenever it is not any of the pre-defined content types */
341
- customContentType?: string;
342
- /** Example messages to be sent to and from the end user for the indicated content type. */
343
- examples?: MessageExampleSequence[];
344
- }
345
-
346
- /**
347
- * Represents a US Program Brief for acquiring a short code in the United States.
348
- * A Program Brief provides vital information to the carriers about a messaging program or campaign that would be associated with a short code or alpha sender number.
349
- * A Program Brief also provides specifics about the use case, the purpose and the consumer experience receiving the message.
350
- */
351
- export declare interface USProgramBrief {
352
- /** Program Brief Id. */
353
- id: string;
354
- /** Program Brief status e.g. 'submitted', 'approved', etc */
355
- status?: ProgramBriefStatus;
356
- /** Number provisioned for the Program Brief e.g. 555555, 'CONTOSO' */
357
- number?: string;
358
- /**
359
- * Notes added to the Program Brief after being reviewed to help customer understand
360
- * review results and necessary follow up actions.
361
- */
362
- reviewNotes?: ReviewNote[];
363
- /** Represents the costs tied to the number. */
364
- costs?: ShortCodeCost[];
365
- /** Date and time when the Program Brief was submitted. */
366
- submissionDate?: Date;
367
- /** Last date and time when the Program Brief status was updated. */
368
- statusUpdatedDate?: Date;
369
- programDetails?: ProgramDetails;
370
- companyInformation?: CompanyInformation;
371
- messageDetails?: MessageDetails;
372
- trafficDetails?: TrafficDetails;
373
- /** A list of summarized data of attachments currently added to the Program Brief */
374
- attachments?: ProgramBriefAttachmentSummary[];
375
- }
376
-
377
- export { }
1
+ import * as coreClient from "@azure/core-client";
2
+ /** A wrapper for a list of short code entities. */
3
+ export interface AcquiredShortCodes {
4
+ /** List of short codes. */
5
+ shortCodes?: ShortCode[];
6
+ /** Represents the URL link to the next page. */
7
+ nextLink?: string;
8
+ }
9
+ /** Represents a ShortCode acquired in a given country. */
10
+ export interface ShortCode {
11
+ /** The value of the ShortCode e.g. '555555'. */
12
+ value?: string;
13
+ /** ISO 3166 2-char code representing the country e.g. 'US'. */
14
+ countryCode?: string;
15
+ /** Program Brief Name. */
16
+ programBriefIds?: string[];
17
+ /** Date in which number was purchased. */
18
+ purchaseDate?: Date;
19
+ }
20
+ /** The Communication Services error. */
21
+ export interface CommunicationErrorResponse {
22
+ /** The Communication Services error. */
23
+ error: CommunicationError;
24
+ }
25
+ /** The Communication Services error. */
26
+ export interface CommunicationError {
27
+ /** The error code. */
28
+ code: string;
29
+ /** The error message. */
30
+ message: string;
31
+ /**
32
+ * The error target.
33
+ * NOTE: This property will not be serialized. It can only be populated by the server.
34
+ */
35
+ readonly target?: string;
36
+ /**
37
+ * Further details about specific errors that led to this error.
38
+ * NOTE: This property will not be serialized. It can only be populated by the server.
39
+ */
40
+ readonly details?: CommunicationError[];
41
+ /**
42
+ * The inner error if any.
43
+ * NOTE: This property will not be serialized. It can only be populated by the server.
44
+ */
45
+ readonly innerError?: CommunicationError;
46
+ }
47
+ /** A wrapper for a list of short code costs entities. */
48
+ export interface ShortCodeCosts {
49
+ /** List of short code costs. */
50
+ costs?: ShortCodeCost[];
51
+ /** Represents the URL link to the next page of short code results. */
52
+ nextLink?: string;
53
+ }
54
+ /** The incurred cost for a single short code. */
55
+ export interface ShortCodeCost {
56
+ /** The cost amount. */
57
+ amount?: number;
58
+ /** The ISO 4217 currency code for the cost amount, e.g. USD. */
59
+ currencyCode?: string;
60
+ /** The ISO 3166-2 code of the phone number's country, e.g. US. */
61
+ countryCode?: string;
62
+ /** Indicate whether a shortcode is vanity. */
63
+ isVanityShortCode?: boolean;
64
+ /** The frequency with which the cost gets billed. */
65
+ billingFrequency?: BillingFrequency;
66
+ }
67
+ /**
68
+ * Represents a US Program Brief for acquiring a short code in the United States.
69
+ * A Program Brief provides vital information to the carriers about a messaging program or campaign that would be associated with a short code or alpha sender number.
70
+ * A Program Brief also provides specifics about the use case, the purpose and the consumer experience receiving the message.
71
+ */
72
+ export interface USProgramBrief {
73
+ /** Program Brief Id. */
74
+ id: string;
75
+ /** Program Brief status e.g. 'submitted', 'approved', etc */
76
+ status?: ProgramBriefStatus;
77
+ /** Number provisioned for the Program Brief e.g. 555555, 'CONTOSO' */
78
+ number?: string;
79
+ /**
80
+ * Notes added to the Program Brief after being reviewed to help customer understand
81
+ * review results and necessary follow up actions.
82
+ */
83
+ reviewNotes?: ReviewNote[];
84
+ /** Represents the costs tied to the number. */
85
+ costs?: ShortCodeCost[];
86
+ /** Date and time when the Program Brief was submitted. */
87
+ submissionDate?: Date;
88
+ /** Last date and time when the Program Brief status was updated. */
89
+ statusUpdatedDate?: Date;
90
+ programDetails?: ProgramDetails;
91
+ companyInformation?: CompanyInformation;
92
+ messageDetails?: MessageDetails;
93
+ trafficDetails?: TrafficDetails;
94
+ /** A list of summarized data of attachments currently added to the Program Brief */
95
+ attachments?: ProgramBriefAttachmentSummary[];
96
+ }
97
+ /** Holds a note about a Program Brief that has gone thru stages of review process. */
98
+ export interface ReviewNote {
99
+ /** Note related to a Program Brief that may imply changes needed from the client. */
100
+ message?: string;
101
+ /** Date and time when the note was added to the Program Brief. */
102
+ date?: Date;
103
+ }
104
+ export interface ProgramDetails {
105
+ /** Set to true if the request is for a vanity number. */
106
+ isVanity?: boolean;
107
+ /**
108
+ * Priority ordered list of preferred vanity numbers.
109
+ * Vanity numbers should be 5 or 6 digit when number type is ShortCode.
110
+ * e.g. 555555, 222222.
111
+ */
112
+ preferredVanityNumbers?: string[];
113
+ /** Type for desired numbers e.g. 'shortCode' or 'alphaId'. */
114
+ numberType?: NumberType;
115
+ /** Indicates whether the number will be used for political campaigns or not. */
116
+ isPoliticalCampaign?: boolean;
117
+ /**
118
+ * A program name that indicates the purpose of filling the Program Brief and how the number will be used for messaging.
119
+ * e.g. 'CONTOSO Shipping'
120
+ */
121
+ name?: string;
122
+ /** Describes how and why the number will be used for messaging as part of the program. */
123
+ description?: string;
124
+ /** URL for the program or company. */
125
+ url?: string;
126
+ /** Indicates how the consumer can sign up to the program e.g. 'website', 'pointOfSale' and/or 'sms'. */
127
+ callToActionTypes?: CallToActionType[];
128
+ /** URL for "call to action" image for the program. */
129
+ callToActionUrl?: string;
130
+ /** Call to action text. To be provided when InteractiveVoiceResponse is specified as call to action type */
131
+ callToAction?: string;
132
+ /** URL for program terms of service. */
133
+ termsOfServiceUrl?: string;
134
+ /** URL for privacy policy. */
135
+ privacyPolicyUrl?: string;
136
+ /**
137
+ * Date in which SMS messages will start to be sent out.
138
+ * Should follow ISO 8601 internet format for datetimes.
139
+ * e.g. 2021-08-17T22:02:51.316Z, 2021-08-17T16:39:57-08:00, etc.
140
+ */
141
+ expectedDateOfService?: Date;
142
+ }
143
+ export interface CompanyInformation {
144
+ /** Legal entity name for customer submitting Program Brief. */
145
+ name?: string;
146
+ /** Company URL for customer submitting Program Brief. */
147
+ url?: string;
148
+ /** Company's address for the customer submitting the Program Brief. */
149
+ address?: string;
150
+ /** Contact Information */
151
+ contactInformation?: ContactInformation;
152
+ /** Customer Care Information */
153
+ customerCareInformation?: CustomerCareInformation;
154
+ }
155
+ /** Contact Information */
156
+ export interface ContactInformation {
157
+ /** Name of authorized user for purposes of submitting the Program Brief. */
158
+ name?: string;
159
+ /** Contact phone number for the authorized user for the customer. Use E164 format. e.g. +14086111111. */
160
+ phone?: string;
161
+ /** Contact email address number for the authorized user for the customer. */
162
+ email?: string;
163
+ }
164
+ /** Customer Care Information */
165
+ export interface CustomerCareInformation {
166
+ /** Customer support phone number for the customer submitting the Program Brief. Use E164 format. e.g. +18005551212 */
167
+ tollFreeNumber?: string;
168
+ /** Customer support email address for the customer submitting the Program Brief. */
169
+ email?: string;
170
+ }
171
+ export interface MessageDetails {
172
+ /** Applicable message protocol used in the program e.g. SMS or MMS. */
173
+ supportedProtocol?: MessageProtocol;
174
+ /** Indicates the nature of the messaging associated with the program e.g. 'subscription', 'transaction'. */
175
+ recurrence?: Recurrence;
176
+ /**
177
+ * Message text for mobile terminated message associated with HELP keyword
178
+ * e.g 'This is the HELP message test.'.
179
+ */
180
+ helpAnswerToUser?: string;
181
+ /**
182
+ * "Message text for mobile terminated message associated with STOP keyword
183
+ * e.g. 'This is the STOP message test.'.
184
+ */
185
+ optOutAnswerToUser?: string;
186
+ optInMessageToUser?: string;
187
+ /** Keyword used to confirm double Opt-In method e.g. 'JOIN'. */
188
+ optInAnswerFromUser?: string;
189
+ optInConfirmationMessageToUser?: string;
190
+ /** Describes directionality e.g. oneWay or twoWay */
191
+ directionality?: MessageDirectionality;
192
+ /** Provides message exchange examples from and to end user for each supported message content type. */
193
+ useCases?: UseCase[];
194
+ }
195
+ /** Describes a messaging use case for a given content type by providing example messages. */
196
+ export interface UseCase {
197
+ /** Indicates the messaging content type used in the program e.g. 'accountNotificationInformationalAlerts', 'chatConversationalMessaging', 'mmsVideo', 'socialMedia'. */
198
+ contentType?: MessageContentType;
199
+ /** Indicates the messaging content type used in the program whenever it is not any of the pre-defined content types */
200
+ customContentType?: string;
201
+ /** Example messages to be sent to and from the end user for the indicated content type. */
202
+ examples?: MessageExampleSequence[];
203
+ }
204
+ /** A sequence of example messages to and from the end user. */
205
+ export interface MessageExampleSequence {
206
+ /** Example messages to be sent to and from the end user. */
207
+ messages?: MessageExample[];
208
+ }
209
+ /** Represents a message example to be sent from or to the end user. */
210
+ export interface MessageExample {
211
+ /** Indicates whether the message example is supposed to be sent to or from the end user e.g. toUser */
212
+ direction?: MessageDirection;
213
+ /** Actual example text for the message e.g. 'Want me to notify you when package in the way?' */
214
+ text?: string;
215
+ }
216
+ export interface TrafficDetails {
217
+ /** Estimated total messages per month. */
218
+ totalMonthlyVolume?: number;
219
+ /** Estimated number of Mobile-Originated messages likely to be received from a user per month. */
220
+ monthlyAverageMessagesFromUser?: number;
221
+ /** Estimated number of Mobile-Terminated messages likely to be sent per user per month. */
222
+ monthlyAverageMessagesToUser?: number;
223
+ /** Indicates if the nature of the messaging traffic will be bursty. */
224
+ isSpiky?: boolean;
225
+ /**
226
+ * If isSpiky=true, then explain additional details about the traffic pattern
227
+ * e.g. 'Higher traffic expected during holiday season and Black Friday.'.
228
+ */
229
+ spikeDetails?: string;
230
+ /** Numbers of days in which is expected to start sending messages from the short code. */
231
+ estimatedRampUpTimeInDays?: number;
232
+ }
233
+ /** A summary of Program Brief File Attachment data */
234
+ export interface ProgramBriefAttachmentSummary {
235
+ /** Program Brief Attachment Id. */
236
+ id?: string;
237
+ /**
238
+ * Attachment type describing the purpose of the attachment
239
+ * e.g. 'callToAction', 'termsOfService'
240
+ */
241
+ type?: AttachmentType;
242
+ /**
243
+ * The name of the attached file
244
+ * e.g. 'myFile01'
245
+ */
246
+ fileName?: string;
247
+ }
248
+ /** A wrapper for a list of USProgramBrief entities. */
249
+ export interface USProgramBriefs {
250
+ /** List of Program Briefs. */
251
+ programBriefs?: USProgramBrief[];
252
+ /** Represents the URL link to the next page. */
253
+ nextLink?: string;
254
+ }
255
+ /** A File Attachment for a Program Brief */
256
+ export interface ProgramBriefAttachment {
257
+ /** Program Brief Attachment Id. */
258
+ id: string;
259
+ /**
260
+ * Attachment type describing the purpose of the attachment
261
+ * e.g. 'callToAction', 'termsOfService'
262
+ */
263
+ type: AttachmentType;
264
+ /**
265
+ * The name of the file being attached
266
+ * e.g. 'myFile01'
267
+ */
268
+ fileName: string;
269
+ /** File size in bytes. */
270
+ fileSizeInBytes?: number;
271
+ /**
272
+ * The type of file being attached
273
+ * e.g. 'pdf', 'jpg', 'png'
274
+ */
275
+ fileType: FileType;
276
+ /** File content as base 64 encoded string */
277
+ fileContentBase64: string;
278
+ }
279
+ /** A wrapper for a list of ProgramBriefAttachment entities. */
280
+ export interface ProgramBriefAttachments {
281
+ /** List of Program Brief attachments. */
282
+ attachments?: ProgramBriefAttachment[];
283
+ /** Represents the URL link to the next page. */
284
+ nextLink?: string;
285
+ }
286
+ /** Defines values for BillingFrequency. */
287
+ export type BillingFrequency = "monthly" | "once";
288
+ /** Defines values for ProgramBriefStatus. */
289
+ export type ProgramBriefStatus = "submitted" | "approved" | "submitNewVanityNumbers" | "updateProgramBrief" | "draft" | "denied";
290
+ /** Defines values for NumberType. */
291
+ export type NumberType = "shortCode" | "alphaId";
292
+ /** Defines values for CallToActionType. */
293
+ export type CallToActionType = "website" | "pointOfSale" | "sms" | "interactiveVoiceResponse";
294
+ /** Defines values for MessageProtocol. */
295
+ export type MessageProtocol = "sms" | "mms";
296
+ /** Defines values for Recurrence. */
297
+ export type Recurrence = "subscription" | "transaction";
298
+ /** Defines values for MessageDirectionality. */
299
+ export type MessageDirectionality = "oneWay" | "twoWay";
300
+ /** Defines values for MessageContentType. */
301
+ export type MessageContentType = "accountNotificationInformationalAlerts" | "ageGatedContent" | "chatConversationalMessaging" | "deliveryNotification" | "donationsPledge" | "education" | "fraudAlerts" | "loanArrangement" | "loyaltyProgram" | "marketingAndPromotion" | "mmsPicture" | "mmsVideo" | "oneTimePasswordOrMultiFactorAuthentication" | "political" | "publicServiceAnnouncements" | "securityAlerts" | "socialMedia" | "sweepstakesOrContest" | "votingOrPolling" | "other";
302
+ /** Defines values for MessageDirection. */
303
+ export type MessageDirection = "toUser" | "fromUser";
304
+ /** Defines values for AttachmentType. */
305
+ export type AttachmentType = "callToAction" | "termsOfService" | "privacyPolicy" | "other";
306
+ /** Defines values for FileType. */
307
+ export type FileType = "png" | "jpg" | "jpeg" | "pdf";
308
+ /** Optional parameters. */
309
+ export interface ShortCodesGetShortCodesOptionalParams extends coreClient.OperationOptions {
310
+ /** An optional parameter for how many entries to skip, for pagination purposes. */
311
+ skip?: number;
312
+ /** An optional parameter for how many entries to return, for pagination purposes. */
313
+ top?: number;
314
+ }
315
+ /** Contains response data for the getShortCodes operation. */
316
+ export type ShortCodesGetShortCodesResponse = AcquiredShortCodes;
317
+ /** Optional parameters. */
318
+ export interface ShortCodesGetCostsOptionalParams extends coreClient.OperationOptions {
319
+ /** The number of items to skip in the result set (default: 0). */
320
+ skip?: number;
321
+ /** The maximum number of items to return in the result set (default: 100). */
322
+ top?: number;
323
+ }
324
+ /** Contains response data for the getCosts operation. */
325
+ export type ShortCodesGetCostsResponse = ShortCodeCosts;
326
+ /** Optional parameters. */
327
+ export interface ShortCodesUpsertUSProgramBriefOptionalParams extends coreClient.OperationOptions {
328
+ /** Data to create new a Program Brief or fields to update an existing Program Brief */
329
+ body?: USProgramBrief;
330
+ }
331
+ /** Contains response data for the upsertUSProgramBrief operation. */
332
+ export type ShortCodesUpsertUSProgramBriefResponse = USProgramBrief;
333
+ /** Optional parameters. */
334
+ export interface ShortCodesDeleteUSProgramBriefOptionalParams extends coreClient.OperationOptions {
335
+ }
336
+ /** Optional parameters. */
337
+ export interface ShortCodesGetUSProgramBriefOptionalParams extends coreClient.OperationOptions {
338
+ }
339
+ /** Contains response data for the getUSProgramBrief operation. */
340
+ export type ShortCodesGetUSProgramBriefResponse = USProgramBrief;
341
+ /** Optional parameters. */
342
+ export interface ShortCodesSubmitUSProgramBriefOptionalParams extends coreClient.OperationOptions {
343
+ }
344
+ /** Contains response data for the submitUSProgramBrief operation. */
345
+ export type ShortCodesSubmitUSProgramBriefResponse = USProgramBrief;
346
+ /** Optional parameters. */
347
+ export interface ShortCodesGetUSProgramBriefsOptionalParams extends coreClient.OperationOptions {
348
+ /** An optional parameter for how many entries to skip, for pagination purposes. */
349
+ skip?: number;
350
+ /** An optional parameter for how many entries to return, for pagination purposes. */
351
+ top?: number;
352
+ }
353
+ /** Contains response data for the getUSProgramBriefs operation. */
354
+ export type ShortCodesGetUSProgramBriefsResponse = USProgramBriefs;
355
+ /** Optional parameters. */
356
+ export interface ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams extends coreClient.OperationOptions {
357
+ /** File size in bytes. */
358
+ fileSizeInBytes?: number;
359
+ }
360
+ /** Contains response data for the createOrReplaceUSProgramBriefAttachment operation. */
361
+ export type ShortCodesCreateOrReplaceUSProgramBriefAttachmentResponse = ProgramBriefAttachment;
362
+ /** Optional parameters. */
363
+ export interface ShortCodesGetUSProgramBriefAttachmentOptionalParams extends coreClient.OperationOptions {
364
+ }
365
+ /** Contains response data for the getUSProgramBriefAttachment operation. */
366
+ export type ShortCodesGetUSProgramBriefAttachmentResponse = ProgramBriefAttachment;
367
+ /** Optional parameters. */
368
+ export interface ShortCodesDeleteUSProgramBriefAttachmentOptionalParams extends coreClient.OperationOptions {
369
+ }
370
+ /** Optional parameters. */
371
+ export interface ShortCodesGetUSProgramBriefAttachmentsOptionalParams extends coreClient.OperationOptions {
372
+ /** An optional parameter for how many entries to skip, for pagination purposes. */
373
+ skip?: number;
374
+ /** An optional parameter for how many entries to return, for pagination purposes. */
375
+ top?: number;
376
+ }
377
+ /** Contains response data for the getUSProgramBriefAttachments operation. */
378
+ export type ShortCodesGetUSProgramBriefAttachmentsResponse = ProgramBriefAttachments;
379
+ /** Optional parameters. */
380
+ export interface ShortCodesGetShortCodesNextOptionalParams extends coreClient.OperationOptions {
381
+ /** An optional parameter for how many entries to skip, for pagination purposes. */
382
+ skip?: number;
383
+ /** An optional parameter for how many entries to return, for pagination purposes. */
384
+ top?: number;
385
+ }
386
+ /** Contains response data for the getShortCodesNext operation. */
387
+ export type ShortCodesGetShortCodesNextResponse = AcquiredShortCodes;
388
+ /** Optional parameters. */
389
+ export interface ShortCodesGetCostsNextOptionalParams extends coreClient.OperationOptions {
390
+ /** The number of items to skip in the result set (default: 0). */
391
+ skip?: number;
392
+ /** The maximum number of items to return in the result set (default: 100). */
393
+ top?: number;
394
+ }
395
+ /** Contains response data for the getCostsNext operation. */
396
+ export type ShortCodesGetCostsNextResponse = ShortCodeCosts;
397
+ /** Optional parameters. */
398
+ export interface ShortCodesGetUSProgramBriefsNextOptionalParams extends coreClient.OperationOptions {
399
+ /** An optional parameter for how many entries to skip, for pagination purposes. */
400
+ skip?: number;
401
+ /** An optional parameter for how many entries to return, for pagination purposes. */
402
+ top?: number;
403
+ }
404
+ /** Contains response data for the getUSProgramBriefsNext operation. */
405
+ export type ShortCodesGetUSProgramBriefsNextResponse = USProgramBriefs;
406
+ /** Optional parameters. */
407
+ export interface ShortCodesGetUSProgramBriefAttachmentsNextOptionalParams extends coreClient.OperationOptions {
408
+ /** An optional parameter for how many entries to skip, for pagination purposes. */
409
+ skip?: number;
410
+ /** An optional parameter for how many entries to return, for pagination purposes. */
411
+ top?: number;
412
+ }
413
+ /** Contains response data for the getUSProgramBriefAttachmentsNext operation. */
414
+ export type ShortCodesGetUSProgramBriefAttachmentsNextResponse = ProgramBriefAttachments;
415
+ /** Optional parameters. */
416
+ export interface ShortCodesClientOptionalParams extends coreClient.ServiceClientOptions {
417
+ /** Api Version */
418
+ apiVersion?: string;
419
+ /** Overrides client endpoint. */
420
+ endpoint?: string;
421
+ }
422
+ //# sourceMappingURL=index.d.ts.map