@owbase/node 0.0.0-stage → 1.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 (640) hide show
  1. package/LICENSE +29 -0
  2. package/NOTICE +134 -0
  3. package/README.md +78 -2
  4. package/dist/client.d.mts +235 -0
  5. package/dist/client.d.ts +235 -0
  6. package/dist/client.js +710 -0
  7. package/dist/client.js.map +1 -0
  8. package/dist/client.mjs +700 -0
  9. package/dist/client.mjs.map +1 -0
  10. package/dist/enums/adapter.d.mts +6 -0
  11. package/dist/enums/adapter.d.ts +6 -0
  12. package/dist/enums/adapter.js +11 -0
  13. package/dist/enums/adapter.js.map +1 -0
  14. package/dist/enums/adapter.mjs +10 -0
  15. package/dist/enums/adapter.mjs.map +1 -0
  16. package/dist/enums/attribute-status.d.mts +9 -0
  17. package/dist/enums/attribute-status.d.ts +9 -0
  18. package/dist/enums/attribute-status.js +14 -0
  19. package/dist/enums/attribute-status.js.map +1 -0
  20. package/dist/enums/attribute-status.mjs +13 -0
  21. package/dist/enums/attribute-status.mjs.map +1 -0
  22. package/dist/enums/authentication-factor.d.mts +9 -0
  23. package/dist/enums/authentication-factor.d.ts +9 -0
  24. package/dist/enums/authentication-factor.js +14 -0
  25. package/dist/enums/authentication-factor.js.map +1 -0
  26. package/dist/enums/authentication-factor.mjs +13 -0
  27. package/dist/enums/authentication-factor.mjs.map +1 -0
  28. package/dist/enums/authenticator-type.d.mts +5 -0
  29. package/dist/enums/authenticator-type.d.ts +5 -0
  30. package/dist/enums/authenticator-type.js +10 -0
  31. package/dist/enums/authenticator-type.js.map +1 -0
  32. package/dist/enums/authenticator-type.mjs +9 -0
  33. package/dist/enums/authenticator-type.mjs.map +1 -0
  34. package/dist/enums/browser-permission.d.mts +24 -0
  35. package/dist/enums/browser-permission.d.ts +24 -0
  36. package/dist/enums/browser-permission.js +29 -0
  37. package/dist/enums/browser-permission.js.map +1 -0
  38. package/dist/enums/browser-permission.mjs +28 -0
  39. package/dist/enums/browser-permission.mjs.map +1 -0
  40. package/dist/enums/browser-theme.d.mts +6 -0
  41. package/dist/enums/browser-theme.d.ts +6 -0
  42. package/dist/enums/browser-theme.js +11 -0
  43. package/dist/enums/browser-theme.js.map +1 -0
  44. package/dist/enums/browser-theme.mjs +10 -0
  45. package/dist/enums/browser-theme.mjs.map +1 -0
  46. package/dist/enums/browser.d.mts +18 -0
  47. package/dist/enums/browser.d.ts +18 -0
  48. package/dist/enums/browser.js +23 -0
  49. package/dist/enums/browser.js.map +1 -0
  50. package/dist/enums/browser.mjs +22 -0
  51. package/dist/enums/browser.mjs.map +1 -0
  52. package/dist/enums/build-runtime.d.mts +102 -0
  53. package/dist/enums/build-runtime.d.ts +102 -0
  54. package/dist/enums/build-runtime.js +107 -0
  55. package/dist/enums/build-runtime.js.map +1 -0
  56. package/dist/enums/build-runtime.mjs +106 -0
  57. package/dist/enums/build-runtime.mjs.map +1 -0
  58. package/dist/enums/column-status.d.mts +9 -0
  59. package/dist/enums/column-status.d.ts +9 -0
  60. package/dist/enums/column-status.js +14 -0
  61. package/dist/enums/column-status.js.map +1 -0
  62. package/dist/enums/column-status.mjs +13 -0
  63. package/dist/enums/column-status.mjs.map +1 -0
  64. package/dist/enums/compression.d.mts +7 -0
  65. package/dist/enums/compression.d.ts +7 -0
  66. package/dist/enums/compression.js +12 -0
  67. package/dist/enums/compression.js.map +1 -0
  68. package/dist/enums/compression.mjs +11 -0
  69. package/dist/enums/compression.mjs.map +1 -0
  70. package/dist/enums/credit-card.d.mts +21 -0
  71. package/dist/enums/credit-card.d.ts +21 -0
  72. package/dist/enums/credit-card.js +26 -0
  73. package/dist/enums/credit-card.js.map +1 -0
  74. package/dist/enums/credit-card.mjs +25 -0
  75. package/dist/enums/credit-card.mjs.map +1 -0
  76. package/dist/enums/database-status.d.mts +7 -0
  77. package/dist/enums/database-status.d.ts +7 -0
  78. package/dist/enums/database-status.js +12 -0
  79. package/dist/enums/database-status.js.map +1 -0
  80. package/dist/enums/database-status.mjs +11 -0
  81. package/dist/enums/database-status.mjs.map +1 -0
  82. package/dist/enums/database-type.d.mts +8 -0
  83. package/dist/enums/database-type.d.ts +8 -0
  84. package/dist/enums/database-type.js +13 -0
  85. package/dist/enums/database-type.js.map +1 -0
  86. package/dist/enums/database-type.mjs +12 -0
  87. package/dist/enums/database-type.mjs.map +1 -0
  88. package/dist/enums/databases-index-type.d.mts +8 -0
  89. package/dist/enums/databases-index-type.d.ts +8 -0
  90. package/dist/enums/databases-index-type.js +13 -0
  91. package/dist/enums/databases-index-type.js.map +1 -0
  92. package/dist/enums/databases-index-type.mjs +12 -0
  93. package/dist/enums/databases-index-type.mjs.map +1 -0
  94. package/dist/enums/deployment-download-type.d.mts +6 -0
  95. package/dist/enums/deployment-download-type.d.ts +6 -0
  96. package/dist/enums/deployment-download-type.js +11 -0
  97. package/dist/enums/deployment-download-type.js.map +1 -0
  98. package/dist/enums/deployment-download-type.mjs +10 -0
  99. package/dist/enums/deployment-download-type.mjs.map +1 -0
  100. package/dist/enums/deployment-status.d.mts +10 -0
  101. package/dist/enums/deployment-status.d.ts +10 -0
  102. package/dist/enums/deployment-status.js +15 -0
  103. package/dist/enums/deployment-status.js.map +1 -0
  104. package/dist/enums/deployment-status.mjs +14 -0
  105. package/dist/enums/deployment-status.mjs.map +1 -0
  106. package/dist/enums/embedding-model.d.mts +6 -0
  107. package/dist/enums/embedding-model.d.ts +6 -0
  108. package/dist/enums/embedding-model.js +11 -0
  109. package/dist/enums/embedding-model.js.map +1 -0
  110. package/dist/enums/embedding-model.mjs +10 -0
  111. package/dist/enums/embedding-model.mjs.map +1 -0
  112. package/dist/enums/execution-method.d.mts +11 -0
  113. package/dist/enums/execution-method.d.ts +11 -0
  114. package/dist/enums/execution-method.js +16 -0
  115. package/dist/enums/execution-method.js.map +1 -0
  116. package/dist/enums/execution-method.mjs +15 -0
  117. package/dist/enums/execution-method.mjs.map +1 -0
  118. package/dist/enums/execution-resource-type.d.mts +6 -0
  119. package/dist/enums/execution-resource-type.d.ts +6 -0
  120. package/dist/enums/execution-resource-type.js +11 -0
  121. package/dist/enums/execution-resource-type.js.map +1 -0
  122. package/dist/enums/execution-resource-type.mjs +10 -0
  123. package/dist/enums/execution-resource-type.mjs.map +1 -0
  124. package/dist/enums/execution-status.d.mts +9 -0
  125. package/dist/enums/execution-status.d.ts +9 -0
  126. package/dist/enums/execution-status.js +14 -0
  127. package/dist/enums/execution-status.js.map +1 -0
  128. package/dist/enums/execution-status.mjs +13 -0
  129. package/dist/enums/execution-status.mjs.map +1 -0
  130. package/dist/enums/execution-trigger.d.mts +7 -0
  131. package/dist/enums/execution-trigger.d.ts +7 -0
  132. package/dist/enums/execution-trigger.js +12 -0
  133. package/dist/enums/execution-trigger.js.map +1 -0
  134. package/dist/enums/execution-trigger.mjs +11 -0
  135. package/dist/enums/execution-trigger.mjs.map +1 -0
  136. package/dist/enums/flag.d.mts +199 -0
  137. package/dist/enums/flag.d.ts +199 -0
  138. package/dist/enums/flag.js +204 -0
  139. package/dist/enums/flag.js.map +1 -0
  140. package/dist/enums/flag.mjs +203 -0
  141. package/dist/enums/flag.mjs.map +1 -0
  142. package/dist/enums/framework.d.mts +20 -0
  143. package/dist/enums/framework.d.ts +20 -0
  144. package/dist/enums/framework.js +25 -0
  145. package/dist/enums/framework.js.map +1 -0
  146. package/dist/enums/framework.mjs +24 -0
  147. package/dist/enums/framework.mjs.map +1 -0
  148. package/dist/enums/id-token-provider.d.mts +6 -0
  149. package/dist/enums/id-token-provider.d.ts +6 -0
  150. package/dist/enums/id-token-provider.js +11 -0
  151. package/dist/enums/id-token-provider.js.map +1 -0
  152. package/dist/enums/id-token-provider.mjs +10 -0
  153. package/dist/enums/id-token-provider.mjs.map +1 -0
  154. package/dist/enums/image-format.d.mts +11 -0
  155. package/dist/enums/image-format.d.ts +11 -0
  156. package/dist/enums/image-format.js +16 -0
  157. package/dist/enums/image-format.js.map +1 -0
  158. package/dist/enums/image-format.mjs +15 -0
  159. package/dist/enums/image-format.mjs.map +1 -0
  160. package/dist/enums/image-gravity.d.mts +14 -0
  161. package/dist/enums/image-gravity.d.ts +14 -0
  162. package/dist/enums/image-gravity.js +19 -0
  163. package/dist/enums/image-gravity.js.map +1 -0
  164. package/dist/enums/image-gravity.mjs +18 -0
  165. package/dist/enums/image-gravity.mjs.map +1 -0
  166. package/dist/enums/index-status.d.mts +9 -0
  167. package/dist/enums/index-status.d.ts +9 -0
  168. package/dist/enums/index-status.js +14 -0
  169. package/dist/enums/index-status.js.map +1 -0
  170. package/dist/enums/index-status.mjs +13 -0
  171. package/dist/enums/index-status.mjs.map +1 -0
  172. package/dist/enums/message-priority.d.mts +6 -0
  173. package/dist/enums/message-priority.d.ts +6 -0
  174. package/dist/enums/message-priority.js +11 -0
  175. package/dist/enums/message-priority.js.map +1 -0
  176. package/dist/enums/message-priority.mjs +10 -0
  177. package/dist/enums/message-priority.mjs.map +1 -0
  178. package/dist/enums/message-status.d.mts +9 -0
  179. package/dist/enums/message-status.d.ts +9 -0
  180. package/dist/enums/message-status.js +14 -0
  181. package/dist/enums/message-status.js.map +1 -0
  182. package/dist/enums/message-status.mjs +13 -0
  183. package/dist/enums/message-status.mjs.map +1 -0
  184. package/dist/enums/messaging-provider-type.d.mts +7 -0
  185. package/dist/enums/messaging-provider-type.d.ts +7 -0
  186. package/dist/enums/messaging-provider-type.js +12 -0
  187. package/dist/enums/messaging-provider-type.js.map +1 -0
  188. package/dist/enums/messaging-provider-type.mjs +11 -0
  189. package/dist/enums/messaging-provider-type.mjs.map +1 -0
  190. package/dist/enums/o-auth-2-auth-0-prompt.d.mts +7 -0
  191. package/dist/enums/o-auth-2-auth-0-prompt.d.ts +7 -0
  192. package/dist/enums/o-auth-2-auth-0-prompt.js +12 -0
  193. package/dist/enums/o-auth-2-auth-0-prompt.js.map +1 -0
  194. package/dist/enums/o-auth-2-auth-0-prompt.mjs +11 -0
  195. package/dist/enums/o-auth-2-auth-0-prompt.mjs.map +1 -0
  196. package/dist/enums/o-auth-2-discord-prompt.d.mts +6 -0
  197. package/dist/enums/o-auth-2-discord-prompt.d.ts +6 -0
  198. package/dist/enums/o-auth-2-discord-prompt.js +11 -0
  199. package/dist/enums/o-auth-2-discord-prompt.js.map +1 -0
  200. package/dist/enums/o-auth-2-discord-prompt.mjs +10 -0
  201. package/dist/enums/o-auth-2-discord-prompt.mjs.map +1 -0
  202. package/dist/enums/o-auth-2-github-prompt.d.mts +5 -0
  203. package/dist/enums/o-auth-2-github-prompt.d.ts +5 -0
  204. package/dist/enums/o-auth-2-github-prompt.js +10 -0
  205. package/dist/enums/o-auth-2-github-prompt.js.map +1 -0
  206. package/dist/enums/o-auth-2-github-prompt.mjs +9 -0
  207. package/dist/enums/o-auth-2-github-prompt.mjs.map +1 -0
  208. package/dist/enums/o-auth-2-google-prompt.d.mts +7 -0
  209. package/dist/enums/o-auth-2-google-prompt.d.ts +7 -0
  210. package/dist/enums/o-auth-2-google-prompt.js +12 -0
  211. package/dist/enums/o-auth-2-google-prompt.js.map +1 -0
  212. package/dist/enums/o-auth-2-google-prompt.mjs +11 -0
  213. package/dist/enums/o-auth-2-google-prompt.mjs.map +1 -0
  214. package/dist/enums/o-auth-2-kakao-prompt.d.mts +8 -0
  215. package/dist/enums/o-auth-2-kakao-prompt.d.ts +8 -0
  216. package/dist/enums/o-auth-2-kakao-prompt.js +13 -0
  217. package/dist/enums/o-auth-2-kakao-prompt.js.map +1 -0
  218. package/dist/enums/o-auth-2-kakao-prompt.mjs +12 -0
  219. package/dist/enums/o-auth-2-kakao-prompt.mjs.map +1 -0
  220. package/dist/enums/o-auth-2-microsoft-prompt.d.mts +8 -0
  221. package/dist/enums/o-auth-2-microsoft-prompt.d.ts +8 -0
  222. package/dist/enums/o-auth-2-microsoft-prompt.js +13 -0
  223. package/dist/enums/o-auth-2-microsoft-prompt.js.map +1 -0
  224. package/dist/enums/o-auth-2-microsoft-prompt.mjs +12 -0
  225. package/dist/enums/o-auth-2-microsoft-prompt.mjs.map +1 -0
  226. package/dist/enums/o-auth-2-oidc-prompt.d.mts +8 -0
  227. package/dist/enums/o-auth-2-oidc-prompt.d.ts +8 -0
  228. package/dist/enums/o-auth-2-oidc-prompt.js +13 -0
  229. package/dist/enums/o-auth-2-oidc-prompt.js.map +1 -0
  230. package/dist/enums/o-auth-2-oidc-prompt.mjs +12 -0
  231. package/dist/enums/o-auth-2-oidc-prompt.mjs.map +1 -0
  232. package/dist/enums/o-auth-2-okta-prompt.d.mts +7 -0
  233. package/dist/enums/o-auth-2-okta-prompt.d.ts +7 -0
  234. package/dist/enums/o-auth-2-okta-prompt.js +12 -0
  235. package/dist/enums/o-auth-2-okta-prompt.js.map +1 -0
  236. package/dist/enums/o-auth-2-okta-prompt.mjs +11 -0
  237. package/dist/enums/o-auth-2-okta-prompt.mjs.map +1 -0
  238. package/dist/enums/o-auth-2-salesforce-prompt.d.mts +6 -0
  239. package/dist/enums/o-auth-2-salesforce-prompt.d.ts +6 -0
  240. package/dist/enums/o-auth-2-salesforce-prompt.js +11 -0
  241. package/dist/enums/o-auth-2-salesforce-prompt.js.map +1 -0
  242. package/dist/enums/o-auth-2-salesforce-prompt.mjs +10 -0
  243. package/dist/enums/o-auth-2-salesforce-prompt.mjs.map +1 -0
  244. package/dist/enums/o-auth-2-zoho-prompt.d.mts +5 -0
  245. package/dist/enums/o-auth-2-zoho-prompt.d.ts +5 -0
  246. package/dist/enums/o-auth-2-zoho-prompt.js +10 -0
  247. package/dist/enums/o-auth-2-zoho-prompt.js.map +1 -0
  248. package/dist/enums/o-auth-2-zoho-prompt.mjs +9 -0
  249. package/dist/enums/o-auth-2-zoho-prompt.mjs.map +1 -0
  250. package/dist/enums/o-auth-provider.d.mts +53 -0
  251. package/dist/enums/o-auth-provider.d.ts +53 -0
  252. package/dist/enums/o-auth-provider.js +58 -0
  253. package/dist/enums/o-auth-provider.js.map +1 -0
  254. package/dist/enums/o-auth-provider.mjs +57 -0
  255. package/dist/enums/o-auth-provider.mjs.map +1 -0
  256. package/dist/enums/order-by.d.mts +6 -0
  257. package/dist/enums/order-by.d.ts +6 -0
  258. package/dist/enums/order-by.js +11 -0
  259. package/dist/enums/order-by.js.map +1 -0
  260. package/dist/enums/order-by.mjs +10 -0
  261. package/dist/enums/order-by.mjs.map +1 -0
  262. package/dist/enums/password-hash.d.mts +15 -0
  263. package/dist/enums/password-hash.d.ts +15 -0
  264. package/dist/enums/password-hash.js +20 -0
  265. package/dist/enums/password-hash.js.map +1 -0
  266. package/dist/enums/password-hash.mjs +19 -0
  267. package/dist/enums/password-hash.mjs.map +1 -0
  268. package/dist/enums/platform-type.d.mts +9 -0
  269. package/dist/enums/platform-type.d.ts +9 -0
  270. package/dist/enums/platform-type.js +14 -0
  271. package/dist/enums/platform-type.js.map +1 -0
  272. package/dist/enums/platform-type.mjs +13 -0
  273. package/dist/enums/platform-type.mjs.map +1 -0
  274. package/dist/enums/project-auth-method-id.d.mts +12 -0
  275. package/dist/enums/project-auth-method-id.d.ts +12 -0
  276. package/dist/enums/project-auth-method-id.js +17 -0
  277. package/dist/enums/project-auth-method-id.js.map +1 -0
  278. package/dist/enums/project-auth-method-id.mjs +16 -0
  279. package/dist/enums/project-auth-method-id.mjs.map +1 -0
  280. package/dist/enums/project-email-template-id.d.mts +13 -0
  281. package/dist/enums/project-email-template-id.d.ts +13 -0
  282. package/dist/enums/project-email-template-id.js +18 -0
  283. package/dist/enums/project-email-template-id.js.map +1 -0
  284. package/dist/enums/project-email-template-id.mjs +17 -0
  285. package/dist/enums/project-email-template-id.mjs.map +1 -0
  286. package/dist/enums/project-email-template-locale.d.mts +135 -0
  287. package/dist/enums/project-email-template-locale.d.ts +135 -0
  288. package/dist/enums/project-email-template-locale.js +140 -0
  289. package/dist/enums/project-email-template-locale.js.map +1 -0
  290. package/dist/enums/project-email-template-locale.mjs +139 -0
  291. package/dist/enums/project-email-template-locale.mjs.map +1 -0
  292. package/dist/enums/project-key-scopes.d.mts +109 -0
  293. package/dist/enums/project-key-scopes.d.ts +109 -0
  294. package/dist/enums/project-key-scopes.js +114 -0
  295. package/dist/enums/project-key-scopes.js.map +1 -0
  296. package/dist/enums/project-key-scopes.mjs +113 -0
  297. package/dist/enums/project-key-scopes.mjs.map +1 -0
  298. package/dist/enums/project-o-auth-2-auth-0-prompt.d.mts +7 -0
  299. package/dist/enums/project-o-auth-2-auth-0-prompt.d.ts +7 -0
  300. package/dist/enums/project-o-auth-2-auth-0-prompt.js +12 -0
  301. package/dist/enums/project-o-auth-2-auth-0-prompt.js.map +1 -0
  302. package/dist/enums/project-o-auth-2-auth-0-prompt.mjs +11 -0
  303. package/dist/enums/project-o-auth-2-auth-0-prompt.mjs.map +1 -0
  304. package/dist/enums/project-o-auth-2-discord-prompt.d.mts +6 -0
  305. package/dist/enums/project-o-auth-2-discord-prompt.d.ts +6 -0
  306. package/dist/enums/project-o-auth-2-discord-prompt.js +11 -0
  307. package/dist/enums/project-o-auth-2-discord-prompt.js.map +1 -0
  308. package/dist/enums/project-o-auth-2-discord-prompt.mjs +10 -0
  309. package/dist/enums/project-o-auth-2-discord-prompt.mjs.map +1 -0
  310. package/dist/enums/project-o-auth-2-git-hub-prompt.d.mts +5 -0
  311. package/dist/enums/project-o-auth-2-git-hub-prompt.d.ts +5 -0
  312. package/dist/enums/project-o-auth-2-git-hub-prompt.js +10 -0
  313. package/dist/enums/project-o-auth-2-git-hub-prompt.js.map +1 -0
  314. package/dist/enums/project-o-auth-2-git-hub-prompt.mjs +9 -0
  315. package/dist/enums/project-o-auth-2-git-hub-prompt.mjs.map +1 -0
  316. package/dist/enums/project-o-auth-2-google-prompt.d.mts +7 -0
  317. package/dist/enums/project-o-auth-2-google-prompt.d.ts +7 -0
  318. package/dist/enums/project-o-auth-2-google-prompt.js +12 -0
  319. package/dist/enums/project-o-auth-2-google-prompt.js.map +1 -0
  320. package/dist/enums/project-o-auth-2-google-prompt.mjs +11 -0
  321. package/dist/enums/project-o-auth-2-google-prompt.mjs.map +1 -0
  322. package/dist/enums/project-o-auth-2-kakao-prompt.d.mts +8 -0
  323. package/dist/enums/project-o-auth-2-kakao-prompt.d.ts +8 -0
  324. package/dist/enums/project-o-auth-2-kakao-prompt.js +13 -0
  325. package/dist/enums/project-o-auth-2-kakao-prompt.js.map +1 -0
  326. package/dist/enums/project-o-auth-2-kakao-prompt.mjs +12 -0
  327. package/dist/enums/project-o-auth-2-kakao-prompt.mjs.map +1 -0
  328. package/dist/enums/project-o-auth-2-microsoft-prompt.d.mts +8 -0
  329. package/dist/enums/project-o-auth-2-microsoft-prompt.d.ts +8 -0
  330. package/dist/enums/project-o-auth-2-microsoft-prompt.js +13 -0
  331. package/dist/enums/project-o-auth-2-microsoft-prompt.js.map +1 -0
  332. package/dist/enums/project-o-auth-2-microsoft-prompt.mjs +12 -0
  333. package/dist/enums/project-o-auth-2-microsoft-prompt.mjs.map +1 -0
  334. package/dist/enums/project-o-auth-2-oidc-prompt.d.mts +8 -0
  335. package/dist/enums/project-o-auth-2-oidc-prompt.d.ts +8 -0
  336. package/dist/enums/project-o-auth-2-oidc-prompt.js +13 -0
  337. package/dist/enums/project-o-auth-2-oidc-prompt.js.map +1 -0
  338. package/dist/enums/project-o-auth-2-oidc-prompt.mjs +12 -0
  339. package/dist/enums/project-o-auth-2-oidc-prompt.mjs.map +1 -0
  340. package/dist/enums/project-o-auth-2-okta-prompt.d.mts +7 -0
  341. package/dist/enums/project-o-auth-2-okta-prompt.d.ts +7 -0
  342. package/dist/enums/project-o-auth-2-okta-prompt.js +12 -0
  343. package/dist/enums/project-o-auth-2-okta-prompt.js.map +1 -0
  344. package/dist/enums/project-o-auth-2-okta-prompt.mjs +11 -0
  345. package/dist/enums/project-o-auth-2-okta-prompt.mjs.map +1 -0
  346. package/dist/enums/project-o-auth-2-salesforce-prompt.d.mts +6 -0
  347. package/dist/enums/project-o-auth-2-salesforce-prompt.d.ts +6 -0
  348. package/dist/enums/project-o-auth-2-salesforce-prompt.js +11 -0
  349. package/dist/enums/project-o-auth-2-salesforce-prompt.js.map +1 -0
  350. package/dist/enums/project-o-auth-2-salesforce-prompt.mjs +10 -0
  351. package/dist/enums/project-o-auth-2-salesforce-prompt.mjs.map +1 -0
  352. package/dist/enums/project-o-auth-2-zoho-prompt.d.mts +5 -0
  353. package/dist/enums/project-o-auth-2-zoho-prompt.d.ts +5 -0
  354. package/dist/enums/project-o-auth-2-zoho-prompt.js +10 -0
  355. package/dist/enums/project-o-auth-2-zoho-prompt.js.map +1 -0
  356. package/dist/enums/project-o-auth-2-zoho-prompt.mjs +9 -0
  357. package/dist/enums/project-o-auth-2-zoho-prompt.mjs.map +1 -0
  358. package/dist/enums/project-o-auth-provider-id.d.mts +53 -0
  359. package/dist/enums/project-o-auth-provider-id.d.ts +53 -0
  360. package/dist/enums/project-o-auth-provider-id.js +58 -0
  361. package/dist/enums/project-o-auth-provider-id.js.map +1 -0
  362. package/dist/enums/project-o-auth-provider-id.mjs +57 -0
  363. package/dist/enums/project-o-auth-provider-id.mjs.map +1 -0
  364. package/dist/enums/project-policy-id.d.mts +21 -0
  365. package/dist/enums/project-policy-id.d.ts +21 -0
  366. package/dist/enums/project-policy-id.js +26 -0
  367. package/dist/enums/project-policy-id.js.map +1 -0
  368. package/dist/enums/project-policy-id.mjs +25 -0
  369. package/dist/enums/project-policy-id.mjs.map +1 -0
  370. package/dist/enums/project-protocol-id.d.mts +7 -0
  371. package/dist/enums/project-protocol-id.d.ts +7 -0
  372. package/dist/enums/project-protocol-id.js +12 -0
  373. package/dist/enums/project-protocol-id.js.map +1 -0
  374. package/dist/enums/project-protocol-id.mjs +11 -0
  375. package/dist/enums/project-protocol-id.mjs.map +1 -0
  376. package/dist/enums/project-service-id.d.mts +22 -0
  377. package/dist/enums/project-service-id.d.ts +22 -0
  378. package/dist/enums/project-service-id.js +27 -0
  379. package/dist/enums/project-service-id.js.map +1 -0
  380. package/dist/enums/project-service-id.mjs +26 -0
  381. package/dist/enums/project-service-id.mjs.map +1 -0
  382. package/dist/enums/project-smtp-secure.d.mts +6 -0
  383. package/dist/enums/project-smtp-secure.d.ts +6 -0
  384. package/dist/enums/project-smtp-secure.js +11 -0
  385. package/dist/enums/project-smtp-secure.js.map +1 -0
  386. package/dist/enums/project-smtp-secure.mjs +10 -0
  387. package/dist/enums/project-smtp-secure.mjs.map +1 -0
  388. package/dist/enums/proxy-resource-type.d.mts +6 -0
  389. package/dist/enums/proxy-resource-type.d.ts +6 -0
  390. package/dist/enums/proxy-resource-type.js +11 -0
  391. package/dist/enums/proxy-resource-type.js.map +1 -0
  392. package/dist/enums/proxy-resource-type.mjs +10 -0
  393. package/dist/enums/proxy-resource-type.mjs.map +1 -0
  394. package/dist/enums/proxy-rule-deployment-resource-type.d.mts +6 -0
  395. package/dist/enums/proxy-rule-deployment-resource-type.d.ts +6 -0
  396. package/dist/enums/proxy-rule-deployment-resource-type.js +11 -0
  397. package/dist/enums/proxy-rule-deployment-resource-type.js.map +1 -0
  398. package/dist/enums/proxy-rule-deployment-resource-type.mjs +10 -0
  399. package/dist/enums/proxy-rule-deployment-resource-type.mjs.map +1 -0
  400. package/dist/enums/proxy-rule-status.d.mts +7 -0
  401. package/dist/enums/proxy-rule-status.d.ts +7 -0
  402. package/dist/enums/proxy-rule-status.js +12 -0
  403. package/dist/enums/proxy-rule-status.js.map +1 -0
  404. package/dist/enums/proxy-rule-status.mjs +11 -0
  405. package/dist/enums/proxy-rule-status.mjs.map +1 -0
  406. package/dist/enums/region.d.mts +5 -0
  407. package/dist/enums/region.d.ts +5 -0
  408. package/dist/enums/region.js +10 -0
  409. package/dist/enums/region.js.map +1 -0
  410. package/dist/enums/region.mjs +9 -0
  411. package/dist/enums/region.mjs.map +1 -0
  412. package/dist/enums/relation-mutate.d.mts +7 -0
  413. package/dist/enums/relation-mutate.d.ts +7 -0
  414. package/dist/enums/relation-mutate.js +12 -0
  415. package/dist/enums/relation-mutate.js.map +1 -0
  416. package/dist/enums/relation-mutate.mjs +11 -0
  417. package/dist/enums/relation-mutate.mjs.map +1 -0
  418. package/dist/enums/relationship-type.d.mts +8 -0
  419. package/dist/enums/relationship-type.d.ts +8 -0
  420. package/dist/enums/relationship-type.js +13 -0
  421. package/dist/enums/relationship-type.js.map +1 -0
  422. package/dist/enums/relationship-type.mjs +12 -0
  423. package/dist/enums/relationship-type.mjs.map +1 -0
  424. package/dist/enums/runtime.d.mts +102 -0
  425. package/dist/enums/runtime.d.ts +102 -0
  426. package/dist/enums/runtime.js +107 -0
  427. package/dist/enums/runtime.js.map +1 -0
  428. package/dist/enums/runtime.mjs +106 -0
  429. package/dist/enums/runtime.mjs.map +1 -0
  430. package/dist/enums/smtp-encryption.d.mts +7 -0
  431. package/dist/enums/smtp-encryption.d.ts +7 -0
  432. package/dist/enums/smtp-encryption.js +12 -0
  433. package/dist/enums/smtp-encryption.js.map +1 -0
  434. package/dist/enums/smtp-encryption.mjs +11 -0
  435. package/dist/enums/smtp-encryption.mjs.map +1 -0
  436. package/dist/enums/status-code.d.mts +8 -0
  437. package/dist/enums/status-code.d.ts +8 -0
  438. package/dist/enums/status-code.js +13 -0
  439. package/dist/enums/status-code.js.map +1 -0
  440. package/dist/enums/status-code.mjs +12 -0
  441. package/dist/enums/status-code.mjs.map +1 -0
  442. package/dist/enums/tables-db-index-type.d.mts +8 -0
  443. package/dist/enums/tables-db-index-type.d.ts +8 -0
  444. package/dist/enums/tables-db-index-type.js +13 -0
  445. package/dist/enums/tables-db-index-type.js.map +1 -0
  446. package/dist/enums/tables-db-index-type.mjs +12 -0
  447. package/dist/enums/tables-db-index-type.mjs.map +1 -0
  448. package/dist/enums/template-reference-type.d.mts +7 -0
  449. package/dist/enums/template-reference-type.d.ts +7 -0
  450. package/dist/enums/template-reference-type.js +12 -0
  451. package/dist/enums/template-reference-type.js.map +1 -0
  452. package/dist/enums/template-reference-type.mjs +11 -0
  453. package/dist/enums/template-reference-type.mjs.map +1 -0
  454. package/dist/enums/timezone.d.mts +423 -0
  455. package/dist/enums/timezone.d.ts +423 -0
  456. package/dist/enums/timezone.js +428 -0
  457. package/dist/enums/timezone.js.map +1 -0
  458. package/dist/enums/timezone.mjs +427 -0
  459. package/dist/enums/timezone.mjs.map +1 -0
  460. package/dist/enums/vcs-reference-type.d.mts +7 -0
  461. package/dist/enums/vcs-reference-type.d.ts +7 -0
  462. package/dist/enums/vcs-reference-type.js +12 -0
  463. package/dist/enums/vcs-reference-type.js.map +1 -0
  464. package/dist/enums/vcs-reference-type.mjs +11 -0
  465. package/dist/enums/vcs-reference-type.mjs.map +1 -0
  466. package/dist/id.d.mts +22 -0
  467. package/dist/id.d.ts +22 -0
  468. package/dist/id.js +45 -0
  469. package/dist/id.js.map +1 -0
  470. package/dist/id.mjs +44 -0
  471. package/dist/id.mjs.map +1 -0
  472. package/dist/index.d.mts +106 -0
  473. package/dist/index.d.ts +106 -0
  474. package/dist/index.js +533 -0
  475. package/dist/index.js.map +1 -0
  476. package/dist/index.mjs +104 -0
  477. package/dist/index.mjs.map +1 -0
  478. package/dist/inputFile.d.mts +21 -0
  479. package/dist/inputFile.d.ts +21 -0
  480. package/dist/inputFile.js +133 -0
  481. package/dist/inputFile.js.map +1 -0
  482. package/dist/inputFile.mjs +132 -0
  483. package/dist/inputFile.mjs.map +1 -0
  484. package/dist/models.d.mts +6790 -0
  485. package/dist/models.d.ts +6790 -0
  486. package/dist/models.js +4 -0
  487. package/dist/models.js.map +1 -0
  488. package/dist/models.mjs +3 -0
  489. package/dist/models.mjs.map +1 -0
  490. package/dist/operator.d.mts +181 -0
  491. package/dist/operator.d.ts +181 -0
  492. package/dist/operator.js +271 -0
  493. package/dist/operator.js.map +1 -0
  494. package/dist/operator.mjs +269 -0
  495. package/dist/operator.mjs.map +1 -0
  496. package/dist/permission.d.mts +45 -0
  497. package/dist/permission.d.ts +45 -0
  498. package/dist/permission.js +56 -0
  499. package/dist/permission.js.map +1 -0
  500. package/dist/permission.mjs +55 -0
  501. package/dist/permission.mjs.map +1 -0
  502. package/dist/query.d.mts +467 -0
  503. package/dist/query.d.ts +467 -0
  504. package/dist/query.js +517 -0
  505. package/dist/query.js.map +1 -0
  506. package/dist/query.mjs +512 -0
  507. package/dist/query.mjs.map +1 -0
  508. package/dist/role.d.mts +72 -0
  509. package/dist/role.d.ts +72 -0
  510. package/dist/role.js +96 -0
  511. package/dist/role.js.map +1 -0
  512. package/dist/role.mjs +95 -0
  513. package/dist/role.mjs.map +1 -0
  514. package/dist/services/account.d.mts +1349 -0
  515. package/dist/services/account.d.ts +1349 -0
  516. package/dist/services/account.js +1891 -0
  517. package/dist/services/account.js.map +1 -0
  518. package/dist/services/account.mjs +1890 -0
  519. package/dist/services/account.mjs.map +1 -0
  520. package/dist/services/advisor.d.mts +154 -0
  521. package/dist/services/advisor.d.ts +154 -0
  522. package/dist/services/advisor.js +155 -0
  523. package/dist/services/advisor.js.map +1 -0
  524. package/dist/services/advisor.mjs +154 -0
  525. package/dist/services/advisor.mjs.map +1 -0
  526. package/dist/services/avatars.d.mts +424 -0
  527. package/dist/services/avatars.d.ts +424 -0
  528. package/dist/services/avatars.js +553 -0
  529. package/dist/services/avatars.js.map +1 -0
  530. package/dist/services/avatars.mjs +552 -0
  531. package/dist/services/avatars.mjs.map +1 -0
  532. package/dist/services/databases.d.mts +2424 -0
  533. package/dist/services/databases.d.ts +2424 -0
  534. package/dist/services/databases.js +3878 -0
  535. package/dist/services/databases.js.map +1 -0
  536. package/dist/services/databases.mjs +3877 -0
  537. package/dist/services/databases.mjs.map +1 -0
  538. package/dist/services/embeddings.d.mts +62 -0
  539. package/dist/services/embeddings.d.ts +62 -0
  540. package/dist/services/embeddings.js +44 -0
  541. package/dist/services/embeddings.js.map +1 -0
  542. package/dist/services/embeddings.mjs +43 -0
  543. package/dist/services/embeddings.mjs.map +1 -0
  544. package/dist/services/functions.d.mts +831 -0
  545. package/dist/services/functions.d.ts +831 -0
  546. package/dist/services/functions.js +1258 -0
  547. package/dist/services/functions.js.map +1 -0
  548. package/dist/services/functions.mjs +1257 -0
  549. package/dist/services/functions.mjs.map +1 -0
  550. package/dist/services/graphql.d.mts +75 -0
  551. package/dist/services/graphql.d.ts +75 -0
  552. package/dist/services/graphql.js +67 -0
  553. package/dist/services/graphql.js.map +1 -0
  554. package/dist/services/graphql.mjs +66 -0
  555. package/dist/services/graphql.mjs.map +1 -0
  556. package/dist/services/locale.d.mts +179 -0
  557. package/dist/services/locale.d.ts +179 -0
  558. package/dist/services/locale.js +183 -0
  559. package/dist/services/locale.js.map +1 -0
  560. package/dist/services/locale.mjs +182 -0
  561. package/dist/services/locale.mjs.map +1 -0
  562. package/dist/services/messaging.d.mts +2042 -0
  563. package/dist/services/messaging.d.ts +2042 -0
  564. package/dist/services/messaging.js +3148 -0
  565. package/dist/services/messaging.js.map +1 -0
  566. package/dist/services/messaging.mjs +3147 -0
  567. package/dist/services/messaging.mjs.map +1 -0
  568. package/dist/services/organization.d.mts +278 -0
  569. package/dist/services/organization.d.ts +278 -0
  570. package/dist/services/organization.js +368 -0
  571. package/dist/services/organization.js.map +1 -0
  572. package/dist/services/organization.mjs +367 -0
  573. package/dist/services/organization.mjs.map +1 -0
  574. package/dist/services/presences.d.mts +181 -0
  575. package/dist/services/presences.d.ts +181 -0
  576. package/dist/services/presences.js +220 -0
  577. package/dist/services/presences.js.map +1 -0
  578. package/dist/services/presences.mjs +219 -0
  579. package/dist/services/presences.mjs.map +1 -0
  580. package/dist/services/project.d.mts +2689 -0
  581. package/dist/services/project.d.ts +2689 -0
  582. package/dist/services/project.js +3753 -0
  583. package/dist/services/project.js.map +1 -0
  584. package/dist/services/project.mjs +3752 -0
  585. package/dist/services/project.mjs.map +1 -0
  586. package/dist/services/proxy.d.mts +234 -0
  587. package/dist/services/proxy.d.ts +234 -0
  588. package/dist/services/proxy.js +287 -0
  589. package/dist/services/proxy.js.map +1 -0
  590. package/dist/services/proxy.mjs +286 -0
  591. package/dist/services/proxy.mjs.map +1 -0
  592. package/dist/services/sites.d.mts +799 -0
  593. package/dist/services/sites.d.ts +799 -0
  594. package/dist/services/sites.js +1181 -0
  595. package/dist/services/sites.js.map +1 -0
  596. package/dist/services/sites.mjs +1180 -0
  597. package/dist/services/sites.mjs.map +1 -0
  598. package/dist/services/storage.d.mts +456 -0
  599. package/dist/services/storage.d.ts +456 -0
  600. package/dist/services/storage.js +617 -0
  601. package/dist/services/storage.js.map +1 -0
  602. package/dist/services/storage.mjs +616 -0
  603. package/dist/services/storage.mjs.map +1 -0
  604. package/dist/services/tables-db.d.mts +2353 -0
  605. package/dist/services/tables-db.d.ts +2353 -0
  606. package/dist/services/tables-db.js +3550 -0
  607. package/dist/services/tables-db.js.map +1 -0
  608. package/dist/services/tables-db.mjs +3549 -0
  609. package/dist/services/tables-db.mjs.map +1 -0
  610. package/dist/services/teams.d.mts +372 -0
  611. package/dist/services/teams.d.ts +372 -0
  612. package/dist/services/teams.js +482 -0
  613. package/dist/services/teams.js.map +1 -0
  614. package/dist/services/teams.mjs +481 -0
  615. package/dist/services/teams.mjs.map +1 -0
  616. package/dist/services/tokens.d.mts +150 -0
  617. package/dist/services/tokens.d.ts +150 -0
  618. package/dist/services/tokens.js +165 -0
  619. package/dist/services/tokens.js.map +1 -0
  620. package/dist/services/tokens.mjs +164 -0
  621. package/dist/services/tokens.mjs.map +1 -0
  622. package/dist/services/users.d.mts +1308 -0
  623. package/dist/services/users.d.ts +1308 -0
  624. package/dist/services/users.js +1897 -0
  625. package/dist/services/users.js.map +1 -0
  626. package/dist/services/users.mjs +1896 -0
  627. package/dist/services/users.mjs.map +1 -0
  628. package/dist/services/webhooks.d.mts +202 -0
  629. package/dist/services/webhooks.d.ts +202 -0
  630. package/dist/services/webhooks.js +277 -0
  631. package/dist/services/webhooks.js.map +1 -0
  632. package/dist/services/webhooks.mjs +276 -0
  633. package/dist/services/webhooks.mjs.map +1 -0
  634. package/dist/topic.d.mts +36 -0
  635. package/dist/topic.d.ts +36 -0
  636. package/dist/topic.js +86 -0
  637. package/dist/topic.js.map +1 -0
  638. package/dist/topic.mjs +84 -0
  639. package/dist/topic.mjs.map +1 -0
  640. package/package.json +82 -5
@@ -0,0 +1,2042 @@
1
+ import { Client } from '../client.js';
2
+ import { Models } from '../models.js';
3
+ import { MessagePriority } from '../enums/message-priority.js';
4
+ import { SmtpEncryption } from '../enums/smtp-encryption.js';
5
+ import 'undici';
6
+ import '../query.js';
7
+ import '../enums/database-type.js';
8
+ import '../enums/database-status.js';
9
+ import '../enums/attribute-status.js';
10
+ import '../enums/column-status.js';
11
+ import '../enums/index-status.js';
12
+ import '../enums/deployment-status.js';
13
+ import '../enums/execution-resource-type.js';
14
+ import '../enums/execution-trigger.js';
15
+ import '../enums/execution-status.js';
16
+ import '../enums/project-auth-method-id.js';
17
+ import '../enums/project-service-id.js';
18
+ import '../enums/project-protocol-id.js';
19
+ import '../enums/o-auth-2-github-prompt.js';
20
+ import '../enums/o-auth-2-discord-prompt.js';
21
+ import '../enums/o-auth-2-google-prompt.js';
22
+ import '../enums/o-auth-2-zoho-prompt.js';
23
+ import '../enums/o-auth-2-salesforce-prompt.js';
24
+ import '../enums/o-auth-2-auth-0-prompt.js';
25
+ import '../enums/o-auth-2-oidc-prompt.js';
26
+ import '../enums/o-auth-2-okta-prompt.js';
27
+ import '../enums/o-auth-2-microsoft-prompt.js';
28
+ import '../enums/o-auth-2-kakao-prompt.js';
29
+ import '../enums/platform-type.js';
30
+ import '../enums/proxy-rule-deployment-resource-type.js';
31
+ import '../enums/proxy-rule-status.js';
32
+ import '../enums/message-status.js';
33
+
34
+ declare class Messaging {
35
+ client: Client;
36
+ constructor(client: Client);
37
+ /**
38
+ * Get a list of all messages from the current Owbase project.
39
+ *
40
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType, users, targets
41
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
42
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
43
+ * @throws {OwbaseException}
44
+ * @returns {Promise<Models.MessageList>}
45
+ */
46
+ listMessages(params?: {
47
+ queries?: string[];
48
+ search?: string;
49
+ total?: boolean;
50
+ }): Promise<Models.MessageList>;
51
+ /**
52
+ * Get a list of all messages from the current Owbase project.
53
+ *
54
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType, users, targets
55
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
56
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
57
+ * @throws {OwbaseException}
58
+ * @returns {Promise<Models.MessageList>}
59
+ * @deprecated Use the object parameter style method for a better developer experience.
60
+ */
61
+ listMessages(queries?: string[], search?: string, total?: boolean): Promise<Models.MessageList>;
62
+ /**
63
+ * Create a new email message.
64
+ *
65
+ * @param {string} params.messageId - Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
66
+ * @param {string} params.subject - Email Subject.
67
+ * @param {string} params.content - Email Content.
68
+ * @param {string[]} params.topics - List of Topic IDs.
69
+ * @param {string[]} params.users - List of User IDs.
70
+ * @param {string[]} params.targets - List of Targets IDs.
71
+ * @param {string[]} params.cc - Array of target IDs to be added as CC.
72
+ * @param {string[]} params.bcc - Array of target IDs to be added as BCC.
73
+ * @param {string[]} params.attachments - Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
74
+ * @param {string} params.replyToEmail - Email address to reply to. If not set, defaults to the sender email address.
75
+ * @param {string} params.replyToName - Name of the reply to recipient. If not set, defaults to the sender name.
76
+ * @param {boolean} params.draft - Is message a draft
77
+ * @param {boolean} params.html - Is content of type HTML
78
+ * @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
79
+ * @throws {OwbaseException}
80
+ * @returns {Promise<Models.Message>}
81
+ */
82
+ createEmail(params: {
83
+ messageId: string;
84
+ subject: string;
85
+ content: string;
86
+ topics?: string[];
87
+ users?: string[];
88
+ targets?: string[];
89
+ cc?: string[];
90
+ bcc?: string[];
91
+ attachments?: string[];
92
+ replyToEmail?: string;
93
+ replyToName?: string;
94
+ draft?: boolean;
95
+ html?: boolean;
96
+ scheduledAt?: string;
97
+ }): Promise<Models.Message>;
98
+ /**
99
+ * Create a new email message.
100
+ *
101
+ * @param {string} messageId - Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
102
+ * @param {string} subject - Email Subject.
103
+ * @param {string} content - Email Content.
104
+ * @param {string[]} topics - List of Topic IDs.
105
+ * @param {string[]} users - List of User IDs.
106
+ * @param {string[]} targets - List of Targets IDs.
107
+ * @param {string[]} cc - Array of target IDs to be added as CC.
108
+ * @param {string[]} bcc - Array of target IDs to be added as BCC.
109
+ * @param {string[]} attachments - Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
110
+ * @param {string} replyToEmail - Email address to reply to. If not set, defaults to the sender email address.
111
+ * @param {string} replyToName - Name of the reply to recipient. If not set, defaults to the sender name.
112
+ * @param {boolean} draft - Is message a draft
113
+ * @param {boolean} html - Is content of type HTML
114
+ * @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
115
+ * @throws {OwbaseException}
116
+ * @returns {Promise<Models.Message>}
117
+ * @deprecated Use the object parameter style method for a better developer experience.
118
+ */
119
+ createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], attachments?: string[], replyToEmail?: string, replyToName?: string, draft?: boolean, html?: boolean, scheduledAt?: string): Promise<Models.Message>;
120
+ /**
121
+ * Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
122
+ *
123
+ *
124
+ * @param {string} params.messageId - Message ID.
125
+ * @param {string} params.subject - Email Subject.
126
+ * @param {string} params.content - Email Content.
127
+ * @param {string[]} params.topics - List of Topic IDs.
128
+ * @param {string[]} params.users - List of User IDs.
129
+ * @param {string[]} params.targets - List of Targets IDs.
130
+ * @param {string[]} params.cc - Array of target IDs to be added as CC.
131
+ * @param {string[]} params.bcc - Array of target IDs to be added as BCC.
132
+ * @param {string[]} params.attachments - Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
133
+ * @param {string} params.replyToEmail - Email address to reply to. Pass an empty string to restore the provider or sender default.
134
+ * @param {string} params.replyToName - Name of the reply to recipient. Pass an empty string to restore the provider or sender default.
135
+ * @param {boolean} params.draft - Is message a draft
136
+ * @param {boolean} params.html - Is content of type HTML
137
+ * @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
138
+ * @throws {OwbaseException}
139
+ * @returns {Promise<Models.Message>}
140
+ */
141
+ updateEmail(params: {
142
+ messageId: string;
143
+ subject?: string;
144
+ content?: string;
145
+ topics?: string[];
146
+ users?: string[];
147
+ targets?: string[];
148
+ cc?: string[];
149
+ bcc?: string[];
150
+ attachments?: string[];
151
+ replyToEmail?: string;
152
+ replyToName?: string;
153
+ draft?: boolean;
154
+ html?: boolean;
155
+ scheduledAt?: string;
156
+ }): Promise<Models.Message>;
157
+ /**
158
+ * Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
159
+ *
160
+ *
161
+ * @param {string} messageId - Message ID.
162
+ * @param {string} subject - Email Subject.
163
+ * @param {string} content - Email Content.
164
+ * @param {string[]} topics - List of Topic IDs.
165
+ * @param {string[]} users - List of User IDs.
166
+ * @param {string[]} targets - List of Targets IDs.
167
+ * @param {string[]} cc - Array of target IDs to be added as CC.
168
+ * @param {string[]} bcc - Array of target IDs to be added as BCC.
169
+ * @param {string[]} attachments - Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
170
+ * @param {string} replyToEmail - Email address to reply to. Pass an empty string to restore the provider or sender default.
171
+ * @param {string} replyToName - Name of the reply to recipient. Pass an empty string to restore the provider or sender default.
172
+ * @param {boolean} draft - Is message a draft
173
+ * @param {boolean} html - Is content of type HTML
174
+ * @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
175
+ * @throws {OwbaseException}
176
+ * @returns {Promise<Models.Message>}
177
+ * @deprecated Use the object parameter style method for a better developer experience.
178
+ */
179
+ updateEmail(messageId: string, subject?: string, content?: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], attachments?: string[], replyToEmail?: string, replyToName?: string, draft?: boolean, html?: boolean, scheduledAt?: string): Promise<Models.Message>;
180
+ /**
181
+ * Create a new push notification.
182
+ *
183
+ * @param {string} params.messageId - Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
184
+ * @param {string} params.title - Title for push notification.
185
+ * @param {string} params.body - Body for push notification.
186
+ * @param {string[]} params.topics - List of Topic IDs.
187
+ * @param {string[]} params.users - List of User IDs.
188
+ * @param {string[]} params.targets - List of Targets IDs.
189
+ * @param {object} params.data - Additional key-value pair data for push notification.
190
+ * @param {string} params.action - Action for push notification.
191
+ * @param {string} params.image - Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Owbase Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
192
+ * @param {string} params.icon - Icon for push notification. Available only for Android and Web Platform.
193
+ * @param {string} params.sound - Sound for push notification. Available only for Android and iOS Platform.
194
+ * @param {string} params.color - Color for push notification. Available only for Android Platform.
195
+ * @param {string} params.tag - Tag for push notification. Available only for Android Platform.
196
+ * @param {number} params.badge - Badge for push notification. Available only for iOS Platform.
197
+ * @param {boolean} params.draft - Is message a draft
198
+ * @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
199
+ * @param {boolean} params.contentAvailable - If set to true, the notification will be delivered in the background. Available only for iOS Platform.
200
+ * @param {boolean} params.critical - If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.
201
+ * @param {MessagePriority} params.priority - Set the notification priority. "normal" will consider device state and may not deliver notifications immediately. "high" will always attempt to immediately deliver the notification.
202
+ * @param {string} params.channelId - ID of the notification channel to deliver the notification on. The app must have already created a channel with this ID, otherwise the channel from the app manifest is used. Available only for Android Platform.
203
+ * @throws {OwbaseException}
204
+ * @returns {Promise<Models.Message>}
205
+ */
206
+ createPush(params: {
207
+ messageId: string;
208
+ title?: string;
209
+ body?: string;
210
+ topics?: string[];
211
+ users?: string[];
212
+ targets?: string[];
213
+ data?: object;
214
+ action?: string;
215
+ image?: string;
216
+ icon?: string;
217
+ sound?: string;
218
+ color?: string;
219
+ tag?: string;
220
+ badge?: number;
221
+ draft?: boolean;
222
+ scheduledAt?: string;
223
+ contentAvailable?: boolean;
224
+ critical?: boolean;
225
+ priority?: MessagePriority;
226
+ channelId?: string;
227
+ }): Promise<Models.Message>;
228
+ /**
229
+ * Create a new push notification.
230
+ *
231
+ * @param {string} messageId - Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
232
+ * @param {string} title - Title for push notification.
233
+ * @param {string} body - Body for push notification.
234
+ * @param {string[]} topics - List of Topic IDs.
235
+ * @param {string[]} users - List of User IDs.
236
+ * @param {string[]} targets - List of Targets IDs.
237
+ * @param {object} data - Additional key-value pair data for push notification.
238
+ * @param {string} action - Action for push notification.
239
+ * @param {string} image - Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Owbase Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
240
+ * @param {string} icon - Icon for push notification. Available only for Android and Web Platform.
241
+ * @param {string} sound - Sound for push notification. Available only for Android and iOS Platform.
242
+ * @param {string} color - Color for push notification. Available only for Android Platform.
243
+ * @param {string} tag - Tag for push notification. Available only for Android Platform.
244
+ * @param {number} badge - Badge for push notification. Available only for iOS Platform.
245
+ * @param {boolean} draft - Is message a draft
246
+ * @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
247
+ * @param {boolean} contentAvailable - If set to true, the notification will be delivered in the background. Available only for iOS Platform.
248
+ * @param {boolean} critical - If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.
249
+ * @param {MessagePriority} priority - Set the notification priority. "normal" will consider device state and may not deliver notifications immediately. "high" will always attempt to immediately deliver the notification.
250
+ * @param {string} channelId - ID of the notification channel to deliver the notification on. The app must have already created a channel with this ID, otherwise the channel from the app manifest is used. Available only for Android Platform.
251
+ * @throws {OwbaseException}
252
+ * @returns {Promise<Models.Message>}
253
+ * @deprecated Use the object parameter style method for a better developer experience.
254
+ */
255
+ createPush(messageId: string, title?: string, body?: string, topics?: string[], users?: string[], targets?: string[], data?: object, action?: string, image?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, draft?: boolean, scheduledAt?: string, contentAvailable?: boolean, critical?: boolean, priority?: MessagePriority, channelId?: string): Promise<Models.Message>;
256
+ /**
257
+ * Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
258
+ *
259
+ *
260
+ * @param {string} params.messageId - Message ID.
261
+ * @param {string} params.title - Title for push notification.
262
+ * @param {string} params.body - Body for push notification.
263
+ * @param {string[]} params.topics - List of Topic IDs.
264
+ * @param {string[]} params.users - List of User IDs.
265
+ * @param {string[]} params.targets - List of Targets IDs.
266
+ * @param {object} params.data - Additional Data for push notification.
267
+ * @param {string} params.action - Action for push notification.
268
+ * @param {string} params.image - Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Owbase Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
269
+ * @param {string} params.icon - Icon for push notification. Available only for Android and Web platforms.
270
+ * @param {string} params.sound - Sound for push notification. Available only for Android and iOS platforms.
271
+ * @param {string} params.color - Color for push notification. Available only for Android platforms.
272
+ * @param {string} params.tag - Tag for push notification. Available only for Android platforms.
273
+ * @param {number} params.badge - Badge for push notification. Available only for iOS platforms.
274
+ * @param {boolean} params.draft - Is message a draft
275
+ * @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
276
+ * @param {boolean} params.contentAvailable - If set to true, the notification will be delivered in the background. Available only for iOS Platform.
277
+ * @param {boolean} params.critical - If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.
278
+ * @param {MessagePriority} params.priority - Set the notification priority. "normal" will consider device battery state and may send notifications later. "high" will always attempt to immediately deliver the notification.
279
+ * @param {string} params.channelId - ID of the notification channel to deliver the notification on. The app must have already created a channel with this ID, otherwise the channel from the app manifest is used. Pass an empty string to clear it. Available only for Android platforms.
280
+ * @throws {OwbaseException}
281
+ * @returns {Promise<Models.Message>}
282
+ */
283
+ updatePush(params: {
284
+ messageId: string;
285
+ title?: string;
286
+ body?: string;
287
+ topics?: string[];
288
+ users?: string[];
289
+ targets?: string[];
290
+ data?: object;
291
+ action?: string;
292
+ image?: string;
293
+ icon?: string;
294
+ sound?: string;
295
+ color?: string;
296
+ tag?: string;
297
+ badge?: number;
298
+ draft?: boolean;
299
+ scheduledAt?: string;
300
+ contentAvailable?: boolean;
301
+ critical?: boolean;
302
+ priority?: MessagePriority;
303
+ channelId?: string;
304
+ }): Promise<Models.Message>;
305
+ /**
306
+ * Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
307
+ *
308
+ *
309
+ * @param {string} messageId - Message ID.
310
+ * @param {string} title - Title for push notification.
311
+ * @param {string} body - Body for push notification.
312
+ * @param {string[]} topics - List of Topic IDs.
313
+ * @param {string[]} users - List of User IDs.
314
+ * @param {string[]} targets - List of Targets IDs.
315
+ * @param {object} data - Additional Data for push notification.
316
+ * @param {string} action - Action for push notification.
317
+ * @param {string} image - Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Owbase Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
318
+ * @param {string} icon - Icon for push notification. Available only for Android and Web platforms.
319
+ * @param {string} sound - Sound for push notification. Available only for Android and iOS platforms.
320
+ * @param {string} color - Color for push notification. Available only for Android platforms.
321
+ * @param {string} tag - Tag for push notification. Available only for Android platforms.
322
+ * @param {number} badge - Badge for push notification. Available only for iOS platforms.
323
+ * @param {boolean} draft - Is message a draft
324
+ * @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
325
+ * @param {boolean} contentAvailable - If set to true, the notification will be delivered in the background. Available only for iOS Platform.
326
+ * @param {boolean} critical - If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.
327
+ * @param {MessagePriority} priority - Set the notification priority. "normal" will consider device battery state and may send notifications later. "high" will always attempt to immediately deliver the notification.
328
+ * @param {string} channelId - ID of the notification channel to deliver the notification on. The app must have already created a channel with this ID, otherwise the channel from the app manifest is used. Pass an empty string to clear it. Available only for Android platforms.
329
+ * @throws {OwbaseException}
330
+ * @returns {Promise<Models.Message>}
331
+ * @deprecated Use the object parameter style method for a better developer experience.
332
+ */
333
+ updatePush(messageId: string, title?: string, body?: string, topics?: string[], users?: string[], targets?: string[], data?: object, action?: string, image?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, draft?: boolean, scheduledAt?: string, contentAvailable?: boolean, critical?: boolean, priority?: MessagePriority, channelId?: string): Promise<Models.Message>;
334
+ /**
335
+ * Create a new SMS message.
336
+ *
337
+ * @param {string} params.messageId - Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
338
+ * @param {string} params.content - SMS Content.
339
+ * @param {string[]} params.topics - List of Topic IDs.
340
+ * @param {string[]} params.users - List of User IDs.
341
+ * @param {string[]} params.targets - List of Targets IDs.
342
+ * @param {boolean} params.draft - Is message a draft
343
+ * @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
344
+ * @throws {OwbaseException}
345
+ * @returns {Promise<Models.Message>}
346
+ * @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.createSMS` instead.
347
+ */
348
+ createSms(params: {
349
+ messageId: string;
350
+ content: string;
351
+ topics?: string[];
352
+ users?: string[];
353
+ targets?: string[];
354
+ draft?: boolean;
355
+ scheduledAt?: string;
356
+ }): Promise<Models.Message>;
357
+ /**
358
+ * Create a new SMS message.
359
+ *
360
+ * @param {string} messageId - Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
361
+ * @param {string} content - SMS Content.
362
+ * @param {string[]} topics - List of Topic IDs.
363
+ * @param {string[]} users - List of User IDs.
364
+ * @param {string[]} targets - List of Targets IDs.
365
+ * @param {boolean} draft - Is message a draft
366
+ * @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
367
+ * @throws {OwbaseException}
368
+ * @returns {Promise<Models.Message>}
369
+ * @deprecated Use the object parameter style method for a better developer experience.
370
+ */
371
+ createSms(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
372
+ /**
373
+ * Create a new SMS message.
374
+ *
375
+ * @param {string} params.messageId - Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
376
+ * @param {string} params.content - SMS Content.
377
+ * @param {string[]} params.topics - List of Topic IDs.
378
+ * @param {string[]} params.users - List of User IDs.
379
+ * @param {string[]} params.targets - List of Targets IDs.
380
+ * @param {boolean} params.draft - Is message a draft
381
+ * @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
382
+ * @throws {OwbaseException}
383
+ * @returns {Promise<Models.Message>}
384
+ */
385
+ createSMS(params: {
386
+ messageId: string;
387
+ content: string;
388
+ topics?: string[];
389
+ users?: string[];
390
+ targets?: string[];
391
+ draft?: boolean;
392
+ scheduledAt?: string;
393
+ }): Promise<Models.Message>;
394
+ /**
395
+ * Create a new SMS message.
396
+ *
397
+ * @param {string} messageId - Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
398
+ * @param {string} content - SMS Content.
399
+ * @param {string[]} topics - List of Topic IDs.
400
+ * @param {string[]} users - List of User IDs.
401
+ * @param {string[]} targets - List of Targets IDs.
402
+ * @param {boolean} draft - Is message a draft
403
+ * @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
404
+ * @throws {OwbaseException}
405
+ * @returns {Promise<Models.Message>}
406
+ * @deprecated Use the object parameter style method for a better developer experience.
407
+ */
408
+ createSMS(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
409
+ /**
410
+ * Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
411
+ *
412
+ *
413
+ * @param {string} params.messageId - Message ID.
414
+ * @param {string} params.content - Email Content.
415
+ * @param {string[]} params.topics - List of Topic IDs.
416
+ * @param {string[]} params.users - List of User IDs.
417
+ * @param {string[]} params.targets - List of Targets IDs.
418
+ * @param {boolean} params.draft - Is message a draft
419
+ * @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
420
+ * @throws {OwbaseException}
421
+ * @returns {Promise<Models.Message>}
422
+ * @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.updateSMS` instead.
423
+ */
424
+ updateSms(params: {
425
+ messageId: string;
426
+ content?: string;
427
+ topics?: string[];
428
+ users?: string[];
429
+ targets?: string[];
430
+ draft?: boolean;
431
+ scheduledAt?: string;
432
+ }): Promise<Models.Message>;
433
+ /**
434
+ * Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
435
+ *
436
+ *
437
+ * @param {string} messageId - Message ID.
438
+ * @param {string} content - Email Content.
439
+ * @param {string[]} topics - List of Topic IDs.
440
+ * @param {string[]} users - List of User IDs.
441
+ * @param {string[]} targets - List of Targets IDs.
442
+ * @param {boolean} draft - Is message a draft
443
+ * @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
444
+ * @throws {OwbaseException}
445
+ * @returns {Promise<Models.Message>}
446
+ * @deprecated Use the object parameter style method for a better developer experience.
447
+ */
448
+ updateSms(messageId: string, content?: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
449
+ /**
450
+ * Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
451
+ *
452
+ *
453
+ * @param {string} params.messageId - Message ID.
454
+ * @param {string} params.content - Email Content.
455
+ * @param {string[]} params.topics - List of Topic IDs.
456
+ * @param {string[]} params.users - List of User IDs.
457
+ * @param {string[]} params.targets - List of Targets IDs.
458
+ * @param {boolean} params.draft - Is message a draft
459
+ * @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
460
+ * @throws {OwbaseException}
461
+ * @returns {Promise<Models.Message>}
462
+ */
463
+ updateSMS(params: {
464
+ messageId: string;
465
+ content?: string;
466
+ topics?: string[];
467
+ users?: string[];
468
+ targets?: string[];
469
+ draft?: boolean;
470
+ scheduledAt?: string;
471
+ }): Promise<Models.Message>;
472
+ /**
473
+ * Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
474
+ *
475
+ *
476
+ * @param {string} messageId - Message ID.
477
+ * @param {string} content - Email Content.
478
+ * @param {string[]} topics - List of Topic IDs.
479
+ * @param {string[]} users - List of User IDs.
480
+ * @param {string[]} targets - List of Targets IDs.
481
+ * @param {boolean} draft - Is message a draft
482
+ * @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
483
+ * @throws {OwbaseException}
484
+ * @returns {Promise<Models.Message>}
485
+ * @deprecated Use the object parameter style method for a better developer experience.
486
+ */
487
+ updateSMS(messageId: string, content?: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
488
+ /**
489
+ * Get a message by its unique ID.
490
+ *
491
+ *
492
+ * @param {string} params.messageId - Message ID.
493
+ * @throws {OwbaseException}
494
+ * @returns {Promise<Models.Message>}
495
+ */
496
+ getMessage(params: {
497
+ messageId: string;
498
+ }): Promise<Models.Message>;
499
+ /**
500
+ * Get a message by its unique ID.
501
+ *
502
+ *
503
+ * @param {string} messageId - Message ID.
504
+ * @throws {OwbaseException}
505
+ * @returns {Promise<Models.Message>}
506
+ * @deprecated Use the object parameter style method for a better developer experience.
507
+ */
508
+ getMessage(messageId: string): Promise<Models.Message>;
509
+ /**
510
+ * Delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.
511
+ *
512
+ * @param {string} params.messageId - Message ID.
513
+ * @throws {OwbaseException}
514
+ * @returns {Promise<{}>}
515
+ */
516
+ delete(params: {
517
+ messageId: string;
518
+ }): Promise<{}>;
519
+ /**
520
+ * Delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.
521
+ *
522
+ * @param {string} messageId - Message ID.
523
+ * @throws {OwbaseException}
524
+ * @returns {Promise<{}>}
525
+ * @deprecated Use the object parameter style method for a better developer experience.
526
+ */
527
+ delete(messageId: string): Promise<{}>;
528
+ /**
529
+ * Get a list of the targets associated with a message.
530
+ *
531
+ * @param {string} params.messageId - Message ID.
532
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType
533
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
534
+ * @throws {OwbaseException}
535
+ * @returns {Promise<Models.TargetList>}
536
+ */
537
+ listTargets(params: {
538
+ messageId: string;
539
+ queries?: string[];
540
+ total?: boolean;
541
+ }): Promise<Models.TargetList>;
542
+ /**
543
+ * Get a list of the targets associated with a message.
544
+ *
545
+ * @param {string} messageId - Message ID.
546
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType
547
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
548
+ * @throws {OwbaseException}
549
+ * @returns {Promise<Models.TargetList>}
550
+ * @deprecated Use the object parameter style method for a better developer experience.
551
+ */
552
+ listTargets(messageId: string, queries?: string[], total?: boolean): Promise<Models.TargetList>;
553
+ /**
554
+ * Get a list of all providers from the current Owbase project.
555
+ *
556
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
557
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
558
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
559
+ * @throws {OwbaseException}
560
+ * @returns {Promise<Models.ProviderList>}
561
+ */
562
+ listProviders(params?: {
563
+ queries?: string[];
564
+ search?: string;
565
+ total?: boolean;
566
+ }): Promise<Models.ProviderList>;
567
+ /**
568
+ * Get a list of all providers from the current Owbase project.
569
+ *
570
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
571
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
572
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
573
+ * @throws {OwbaseException}
574
+ * @returns {Promise<Models.ProviderList>}
575
+ * @deprecated Use the object parameter style method for a better developer experience.
576
+ */
577
+ listProviders(queries?: string[], search?: string, total?: boolean): Promise<Models.ProviderList>;
578
+ /**
579
+ * Create a new Apple Push Notification service provider.
580
+ *
581
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
582
+ * @param {string} params.name - Provider name.
583
+ * @param {string} params.authKey - APNS authentication key.
584
+ * @param {string} params.authKeyId - APNS authentication key ID.
585
+ * @param {string} params.teamId - APNS team ID.
586
+ * @param {string} params.bundleId - APNS bundle ID.
587
+ * @param {boolean} params.sandbox - Use APNS sandbox environment.
588
+ * @param {boolean} params.enabled - Set as enabled.
589
+ * @throws {OwbaseException}
590
+ * @returns {Promise<Models.Provider>}
591
+ * @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.createAPNSProvider` instead.
592
+ */
593
+ createApnsProvider(params: {
594
+ providerId: string;
595
+ name: string;
596
+ authKey?: string;
597
+ authKeyId?: string;
598
+ teamId?: string;
599
+ bundleId?: string;
600
+ sandbox?: boolean;
601
+ enabled?: boolean;
602
+ }): Promise<Models.Provider>;
603
+ /**
604
+ * Create a new Apple Push Notification service provider.
605
+ *
606
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
607
+ * @param {string} name - Provider name.
608
+ * @param {string} authKey - APNS authentication key.
609
+ * @param {string} authKeyId - APNS authentication key ID.
610
+ * @param {string} teamId - APNS team ID.
611
+ * @param {string} bundleId - APNS bundle ID.
612
+ * @param {boolean} sandbox - Use APNS sandbox environment.
613
+ * @param {boolean} enabled - Set as enabled.
614
+ * @throws {OwbaseException}
615
+ * @returns {Promise<Models.Provider>}
616
+ * @deprecated Use the object parameter style method for a better developer experience.
617
+ */
618
+ createApnsProvider(providerId: string, name: string, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean, enabled?: boolean): Promise<Models.Provider>;
619
+ /**
620
+ * Create a new Apple Push Notification service provider.
621
+ *
622
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
623
+ * @param {string} params.name - Provider name.
624
+ * @param {string} params.authKey - APNS authentication key.
625
+ * @param {string} params.authKeyId - APNS authentication key ID.
626
+ * @param {string} params.teamId - APNS team ID.
627
+ * @param {string} params.bundleId - APNS bundle ID.
628
+ * @param {boolean} params.sandbox - Use APNS sandbox environment.
629
+ * @param {boolean} params.enabled - Set as enabled.
630
+ * @throws {OwbaseException}
631
+ * @returns {Promise<Models.Provider>}
632
+ */
633
+ createAPNSProvider(params: {
634
+ providerId: string;
635
+ name: string;
636
+ authKey?: string;
637
+ authKeyId?: string;
638
+ teamId?: string;
639
+ bundleId?: string;
640
+ sandbox?: boolean;
641
+ enabled?: boolean;
642
+ }): Promise<Models.Provider>;
643
+ /**
644
+ * Create a new Apple Push Notification service provider.
645
+ *
646
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
647
+ * @param {string} name - Provider name.
648
+ * @param {string} authKey - APNS authentication key.
649
+ * @param {string} authKeyId - APNS authentication key ID.
650
+ * @param {string} teamId - APNS team ID.
651
+ * @param {string} bundleId - APNS bundle ID.
652
+ * @param {boolean} sandbox - Use APNS sandbox environment.
653
+ * @param {boolean} enabled - Set as enabled.
654
+ * @throws {OwbaseException}
655
+ * @returns {Promise<Models.Provider>}
656
+ * @deprecated Use the object parameter style method for a better developer experience.
657
+ */
658
+ createAPNSProvider(providerId: string, name: string, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean, enabled?: boolean): Promise<Models.Provider>;
659
+ /**
660
+ * Update a Apple Push Notification service provider by its unique ID.
661
+ *
662
+ * @param {string} params.providerId - Provider ID.
663
+ * @param {string} params.name - Provider name.
664
+ * @param {boolean} params.enabled - Set as enabled.
665
+ * @param {string} params.authKey - APNS authentication key.
666
+ * @param {string} params.authKeyId - APNS authentication key ID.
667
+ * @param {string} params.teamId - APNS team ID.
668
+ * @param {string} params.bundleId - APNS bundle ID.
669
+ * @param {boolean} params.sandbox - Use APNS sandbox environment.
670
+ * @throws {OwbaseException}
671
+ * @returns {Promise<Models.Provider>}
672
+ * @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.updateAPNSProvider` instead.
673
+ */
674
+ updateApnsProvider(params: {
675
+ providerId: string;
676
+ name?: string;
677
+ enabled?: boolean;
678
+ authKey?: string;
679
+ authKeyId?: string;
680
+ teamId?: string;
681
+ bundleId?: string;
682
+ sandbox?: boolean;
683
+ }): Promise<Models.Provider>;
684
+ /**
685
+ * Update a Apple Push Notification service provider by its unique ID.
686
+ *
687
+ * @param {string} providerId - Provider ID.
688
+ * @param {string} name - Provider name.
689
+ * @param {boolean} enabled - Set as enabled.
690
+ * @param {string} authKey - APNS authentication key.
691
+ * @param {string} authKeyId - APNS authentication key ID.
692
+ * @param {string} teamId - APNS team ID.
693
+ * @param {string} bundleId - APNS bundle ID.
694
+ * @param {boolean} sandbox - Use APNS sandbox environment.
695
+ * @throws {OwbaseException}
696
+ * @returns {Promise<Models.Provider>}
697
+ * @deprecated Use the object parameter style method for a better developer experience.
698
+ */
699
+ updateApnsProvider(providerId: string, name?: string, enabled?: boolean, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean): Promise<Models.Provider>;
700
+ /**
701
+ * Update a Apple Push Notification service provider by its unique ID.
702
+ *
703
+ * @param {string} params.providerId - Provider ID.
704
+ * @param {string} params.name - Provider name.
705
+ * @param {boolean} params.enabled - Set as enabled.
706
+ * @param {string} params.authKey - APNS authentication key.
707
+ * @param {string} params.authKeyId - APNS authentication key ID.
708
+ * @param {string} params.teamId - APNS team ID.
709
+ * @param {string} params.bundleId - APNS bundle ID.
710
+ * @param {boolean} params.sandbox - Use APNS sandbox environment.
711
+ * @throws {OwbaseException}
712
+ * @returns {Promise<Models.Provider>}
713
+ */
714
+ updateAPNSProvider(params: {
715
+ providerId: string;
716
+ name?: string;
717
+ enabled?: boolean;
718
+ authKey?: string;
719
+ authKeyId?: string;
720
+ teamId?: string;
721
+ bundleId?: string;
722
+ sandbox?: boolean;
723
+ }): Promise<Models.Provider>;
724
+ /**
725
+ * Update a Apple Push Notification service provider by its unique ID.
726
+ *
727
+ * @param {string} providerId - Provider ID.
728
+ * @param {string} name - Provider name.
729
+ * @param {boolean} enabled - Set as enabled.
730
+ * @param {string} authKey - APNS authentication key.
731
+ * @param {string} authKeyId - APNS authentication key ID.
732
+ * @param {string} teamId - APNS team ID.
733
+ * @param {string} bundleId - APNS bundle ID.
734
+ * @param {boolean} sandbox - Use APNS sandbox environment.
735
+ * @throws {OwbaseException}
736
+ * @returns {Promise<Models.Provider>}
737
+ * @deprecated Use the object parameter style method for a better developer experience.
738
+ */
739
+ updateAPNSProvider(providerId: string, name?: string, enabled?: boolean, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean): Promise<Models.Provider>;
740
+ /**
741
+ * Create a new Firebase Cloud Messaging provider.
742
+ *
743
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
744
+ * @param {string} params.name - Provider name.
745
+ * @param {object} params.serviceAccountJSON - FCM service account JSON.
746
+ * @param {boolean} params.enabled - Set as enabled.
747
+ * @throws {OwbaseException}
748
+ * @returns {Promise<Models.Provider>}
749
+ * @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.createFCMProvider` instead.
750
+ */
751
+ createFcmProvider(params: {
752
+ providerId: string;
753
+ name: string;
754
+ serviceAccountJSON?: object;
755
+ enabled?: boolean;
756
+ }): Promise<Models.Provider>;
757
+ /**
758
+ * Create a new Firebase Cloud Messaging provider.
759
+ *
760
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
761
+ * @param {string} name - Provider name.
762
+ * @param {object} serviceAccountJSON - FCM service account JSON.
763
+ * @param {boolean} enabled - Set as enabled.
764
+ * @throws {OwbaseException}
765
+ * @returns {Promise<Models.Provider>}
766
+ * @deprecated Use the object parameter style method for a better developer experience.
767
+ */
768
+ createFcmProvider(providerId: string, name: string, serviceAccountJSON?: object, enabled?: boolean): Promise<Models.Provider>;
769
+ /**
770
+ * Create a new Firebase Cloud Messaging provider.
771
+ *
772
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
773
+ * @param {string} params.name - Provider name.
774
+ * @param {object} params.serviceAccountJSON - FCM service account JSON.
775
+ * @param {boolean} params.enabled - Set as enabled.
776
+ * @throws {OwbaseException}
777
+ * @returns {Promise<Models.Provider>}
778
+ */
779
+ createFCMProvider(params: {
780
+ providerId: string;
781
+ name: string;
782
+ serviceAccountJSON?: object;
783
+ enabled?: boolean;
784
+ }): Promise<Models.Provider>;
785
+ /**
786
+ * Create a new Firebase Cloud Messaging provider.
787
+ *
788
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
789
+ * @param {string} name - Provider name.
790
+ * @param {object} serviceAccountJSON - FCM service account JSON.
791
+ * @param {boolean} enabled - Set as enabled.
792
+ * @throws {OwbaseException}
793
+ * @returns {Promise<Models.Provider>}
794
+ * @deprecated Use the object parameter style method for a better developer experience.
795
+ */
796
+ createFCMProvider(providerId: string, name: string, serviceAccountJSON?: object, enabled?: boolean): Promise<Models.Provider>;
797
+ /**
798
+ * Update a Firebase Cloud Messaging provider by its unique ID.
799
+ *
800
+ * @param {string} params.providerId - Provider ID.
801
+ * @param {string} params.name - Provider name.
802
+ * @param {boolean} params.enabled - Set as enabled.
803
+ * @param {object} params.serviceAccountJSON - FCM service account JSON.
804
+ * @throws {OwbaseException}
805
+ * @returns {Promise<Models.Provider>}
806
+ * @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.updateFCMProvider` instead.
807
+ */
808
+ updateFcmProvider(params: {
809
+ providerId: string;
810
+ name?: string;
811
+ enabled?: boolean;
812
+ serviceAccountJSON?: object;
813
+ }): Promise<Models.Provider>;
814
+ /**
815
+ * Update a Firebase Cloud Messaging provider by its unique ID.
816
+ *
817
+ * @param {string} providerId - Provider ID.
818
+ * @param {string} name - Provider name.
819
+ * @param {boolean} enabled - Set as enabled.
820
+ * @param {object} serviceAccountJSON - FCM service account JSON.
821
+ * @throws {OwbaseException}
822
+ * @returns {Promise<Models.Provider>}
823
+ * @deprecated Use the object parameter style method for a better developer experience.
824
+ */
825
+ updateFcmProvider(providerId: string, name?: string, enabled?: boolean, serviceAccountJSON?: object): Promise<Models.Provider>;
826
+ /**
827
+ * Update a Firebase Cloud Messaging provider by its unique ID.
828
+ *
829
+ * @param {string} params.providerId - Provider ID.
830
+ * @param {string} params.name - Provider name.
831
+ * @param {boolean} params.enabled - Set as enabled.
832
+ * @param {object} params.serviceAccountJSON - FCM service account JSON.
833
+ * @throws {OwbaseException}
834
+ * @returns {Promise<Models.Provider>}
835
+ */
836
+ updateFCMProvider(params: {
837
+ providerId: string;
838
+ name?: string;
839
+ enabled?: boolean;
840
+ serviceAccountJSON?: object;
841
+ }): Promise<Models.Provider>;
842
+ /**
843
+ * Update a Firebase Cloud Messaging provider by its unique ID.
844
+ *
845
+ * @param {string} providerId - Provider ID.
846
+ * @param {string} name - Provider name.
847
+ * @param {boolean} enabled - Set as enabled.
848
+ * @param {object} serviceAccountJSON - FCM service account JSON.
849
+ * @throws {OwbaseException}
850
+ * @returns {Promise<Models.Provider>}
851
+ * @deprecated Use the object parameter style method for a better developer experience.
852
+ */
853
+ updateFCMProvider(providerId: string, name?: string, enabled?: boolean, serviceAccountJSON?: object): Promise<Models.Provider>;
854
+ /**
855
+ * Create a new Mailgun provider.
856
+ *
857
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
858
+ * @param {string} params.name - Provider name.
859
+ * @param {string} params.apiKey - Mailgun API Key.
860
+ * @param {string} params.domain - Mailgun Domain.
861
+ * @param {boolean} params.isEuRegion - Set as EU region.
862
+ * @param {string} params.fromName - Sender Name.
863
+ * @param {string} params.fromEmail - Sender email address.
864
+ * @param {string} params.replyToName - Name set in the reply to field for the mail. Default value is sender name. Reply to name must have reply to email as well.
865
+ * @param {string} params.replyToEmail - Email set in the reply to field for the mail. Default value is sender email. Reply to email must have reply to name as well.
866
+ * @param {boolean} params.enabled - Set as enabled.
867
+ * @throws {OwbaseException}
868
+ * @returns {Promise<Models.Provider>}
869
+ */
870
+ createMailgunProvider(params: {
871
+ providerId: string;
872
+ name: string;
873
+ apiKey?: string;
874
+ domain?: string;
875
+ isEuRegion?: boolean;
876
+ fromName?: string;
877
+ fromEmail?: string;
878
+ replyToName?: string;
879
+ replyToEmail?: string;
880
+ enabled?: boolean;
881
+ }): Promise<Models.Provider>;
882
+ /**
883
+ * Create a new Mailgun provider.
884
+ *
885
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
886
+ * @param {string} name - Provider name.
887
+ * @param {string} apiKey - Mailgun API Key.
888
+ * @param {string} domain - Mailgun Domain.
889
+ * @param {boolean} isEuRegion - Set as EU region.
890
+ * @param {string} fromName - Sender Name.
891
+ * @param {string} fromEmail - Sender email address.
892
+ * @param {string} replyToName - Name set in the reply to field for the mail. Default value is sender name. Reply to name must have reply to email as well.
893
+ * @param {string} replyToEmail - Email set in the reply to field for the mail. Default value is sender email. Reply to email must have reply to name as well.
894
+ * @param {boolean} enabled - Set as enabled.
895
+ * @throws {OwbaseException}
896
+ * @returns {Promise<Models.Provider>}
897
+ * @deprecated Use the object parameter style method for a better developer experience.
898
+ */
899
+ createMailgunProvider(providerId: string, name: string, apiKey?: string, domain?: string, isEuRegion?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
900
+ /**
901
+ * Update a Mailgun provider by its unique ID.
902
+ *
903
+ * @param {string} params.providerId - Provider ID.
904
+ * @param {string} params.name - Provider name.
905
+ * @param {string} params.apiKey - Mailgun API Key.
906
+ * @param {string} params.domain - Mailgun Domain.
907
+ * @param {boolean} params.isEuRegion - Set as EU region.
908
+ * @param {boolean} params.enabled - Set as enabled.
909
+ * @param {string} params.fromName - Sender Name.
910
+ * @param {string} params.fromEmail - Sender email address.
911
+ * @param {string} params.replyToName - Name set in the reply to field for the mail. Default value is sender name.
912
+ * @param {string} params.replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
913
+ * @throws {OwbaseException}
914
+ * @returns {Promise<Models.Provider>}
915
+ */
916
+ updateMailgunProvider(params: {
917
+ providerId: string;
918
+ name?: string;
919
+ apiKey?: string;
920
+ domain?: string;
921
+ isEuRegion?: boolean;
922
+ enabled?: boolean;
923
+ fromName?: string;
924
+ fromEmail?: string;
925
+ replyToName?: string;
926
+ replyToEmail?: string;
927
+ }): Promise<Models.Provider>;
928
+ /**
929
+ * Update a Mailgun provider by its unique ID.
930
+ *
931
+ * @param {string} providerId - Provider ID.
932
+ * @param {string} name - Provider name.
933
+ * @param {string} apiKey - Mailgun API Key.
934
+ * @param {string} domain - Mailgun Domain.
935
+ * @param {boolean} isEuRegion - Set as EU region.
936
+ * @param {boolean} enabled - Set as enabled.
937
+ * @param {string} fromName - Sender Name.
938
+ * @param {string} fromEmail - Sender email address.
939
+ * @param {string} replyToName - Name set in the reply to field for the mail. Default value is sender name.
940
+ * @param {string} replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
941
+ * @throws {OwbaseException}
942
+ * @returns {Promise<Models.Provider>}
943
+ * @deprecated Use the object parameter style method for a better developer experience.
944
+ */
945
+ updateMailgunProvider(providerId: string, name?: string, apiKey?: string, domain?: string, isEuRegion?: boolean, enabled?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
946
+ /**
947
+ * Create a new MSG91 provider.
948
+ *
949
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
950
+ * @param {string} params.name - Provider name.
951
+ * @param {string} params.templateId - Msg91 template ID
952
+ * @param {string} params.senderId - Msg91 sender ID.
953
+ * @param {string} params.authKey - Msg91 auth key.
954
+ * @param {boolean} params.enabled - Set as enabled.
955
+ * @throws {OwbaseException}
956
+ * @returns {Promise<Models.Provider>}
957
+ */
958
+ createMsg91Provider(params: {
959
+ providerId: string;
960
+ name: string;
961
+ templateId?: string;
962
+ senderId?: string;
963
+ authKey?: string;
964
+ enabled?: boolean;
965
+ }): Promise<Models.Provider>;
966
+ /**
967
+ * Create a new MSG91 provider.
968
+ *
969
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
970
+ * @param {string} name - Provider name.
971
+ * @param {string} templateId - Msg91 template ID
972
+ * @param {string} senderId - Msg91 sender ID.
973
+ * @param {string} authKey - Msg91 auth key.
974
+ * @param {boolean} enabled - Set as enabled.
975
+ * @throws {OwbaseException}
976
+ * @returns {Promise<Models.Provider>}
977
+ * @deprecated Use the object parameter style method for a better developer experience.
978
+ */
979
+ createMsg91Provider(providerId: string, name: string, templateId?: string, senderId?: string, authKey?: string, enabled?: boolean): Promise<Models.Provider>;
980
+ /**
981
+ * Update a MSG91 provider by its unique ID.
982
+ *
983
+ * @param {string} params.providerId - Provider ID.
984
+ * @param {string} params.name - Provider name.
985
+ * @param {boolean} params.enabled - Set as enabled.
986
+ * @param {string} params.templateId - Msg91 template ID.
987
+ * @param {string} params.senderId - Msg91 sender ID.
988
+ * @param {string} params.authKey - Msg91 auth key.
989
+ * @throws {OwbaseException}
990
+ * @returns {Promise<Models.Provider>}
991
+ */
992
+ updateMsg91Provider(params: {
993
+ providerId: string;
994
+ name?: string;
995
+ enabled?: boolean;
996
+ templateId?: string;
997
+ senderId?: string;
998
+ authKey?: string;
999
+ }): Promise<Models.Provider>;
1000
+ /**
1001
+ * Update a MSG91 provider by its unique ID.
1002
+ *
1003
+ * @param {string} providerId - Provider ID.
1004
+ * @param {string} name - Provider name.
1005
+ * @param {boolean} enabled - Set as enabled.
1006
+ * @param {string} templateId - Msg91 template ID.
1007
+ * @param {string} senderId - Msg91 sender ID.
1008
+ * @param {string} authKey - Msg91 auth key.
1009
+ * @throws {OwbaseException}
1010
+ * @returns {Promise<Models.Provider>}
1011
+ * @deprecated Use the object parameter style method for a better developer experience.
1012
+ */
1013
+ updateMsg91Provider(providerId: string, name?: string, enabled?: boolean, templateId?: string, senderId?: string, authKey?: string): Promise<Models.Provider>;
1014
+ /**
1015
+ * Create a new Resend provider.
1016
+ *
1017
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1018
+ * @param {string} params.name - Provider name.
1019
+ * @param {string} params.apiKey - Resend API key.
1020
+ * @param {string} params.fromName - Sender Name.
1021
+ * @param {string} params.fromEmail - Sender email address.
1022
+ * @param {string} params.replyToName - Name set in the reply to field for the mail. Default value is sender name.
1023
+ * @param {string} params.replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1024
+ * @param {boolean} params.enabled - Set as enabled.
1025
+ * @throws {OwbaseException}
1026
+ * @returns {Promise<Models.Provider>}
1027
+ */
1028
+ createResendProvider(params: {
1029
+ providerId: string;
1030
+ name: string;
1031
+ apiKey?: string;
1032
+ fromName?: string;
1033
+ fromEmail?: string;
1034
+ replyToName?: string;
1035
+ replyToEmail?: string;
1036
+ enabled?: boolean;
1037
+ }): Promise<Models.Provider>;
1038
+ /**
1039
+ * Create a new Resend provider.
1040
+ *
1041
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1042
+ * @param {string} name - Provider name.
1043
+ * @param {string} apiKey - Resend API key.
1044
+ * @param {string} fromName - Sender Name.
1045
+ * @param {string} fromEmail - Sender email address.
1046
+ * @param {string} replyToName - Name set in the reply to field for the mail. Default value is sender name.
1047
+ * @param {string} replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1048
+ * @param {boolean} enabled - Set as enabled.
1049
+ * @throws {OwbaseException}
1050
+ * @returns {Promise<Models.Provider>}
1051
+ * @deprecated Use the object parameter style method for a better developer experience.
1052
+ */
1053
+ createResendProvider(providerId: string, name: string, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
1054
+ /**
1055
+ * Update a Resend provider by its unique ID.
1056
+ *
1057
+ * @param {string} params.providerId - Provider ID.
1058
+ * @param {string} params.name - Provider name.
1059
+ * @param {boolean} params.enabled - Set as enabled.
1060
+ * @param {string} params.apiKey - Resend API key.
1061
+ * @param {string} params.fromName - Sender Name.
1062
+ * @param {string} params.fromEmail - Sender email address.
1063
+ * @param {string} params.replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1064
+ * @param {string} params.replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1065
+ * @throws {OwbaseException}
1066
+ * @returns {Promise<Models.Provider>}
1067
+ */
1068
+ updateResendProvider(params: {
1069
+ providerId: string;
1070
+ name?: string;
1071
+ enabled?: boolean;
1072
+ apiKey?: string;
1073
+ fromName?: string;
1074
+ fromEmail?: string;
1075
+ replyToName?: string;
1076
+ replyToEmail?: string;
1077
+ }): Promise<Models.Provider>;
1078
+ /**
1079
+ * Update a Resend provider by its unique ID.
1080
+ *
1081
+ * @param {string} providerId - Provider ID.
1082
+ * @param {string} name - Provider name.
1083
+ * @param {boolean} enabled - Set as enabled.
1084
+ * @param {string} apiKey - Resend API key.
1085
+ * @param {string} fromName - Sender Name.
1086
+ * @param {string} fromEmail - Sender email address.
1087
+ * @param {string} replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1088
+ * @param {string} replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1089
+ * @throws {OwbaseException}
1090
+ * @returns {Promise<Models.Provider>}
1091
+ * @deprecated Use the object parameter style method for a better developer experience.
1092
+ */
1093
+ updateResendProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
1094
+ /**
1095
+ * Create a new Sendgrid provider.
1096
+ *
1097
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1098
+ * @param {string} params.name - Provider name.
1099
+ * @param {string} params.apiKey - Sendgrid API key.
1100
+ * @param {string} params.fromName - Sender Name.
1101
+ * @param {string} params.fromEmail - Sender email address.
1102
+ * @param {string} params.replyToName - Name set in the reply to field for the mail. Default value is sender name.
1103
+ * @param {string} params.replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1104
+ * @param {boolean} params.enabled - Set as enabled.
1105
+ * @throws {OwbaseException}
1106
+ * @returns {Promise<Models.Provider>}
1107
+ */
1108
+ createSendgridProvider(params: {
1109
+ providerId: string;
1110
+ name: string;
1111
+ apiKey?: string;
1112
+ fromName?: string;
1113
+ fromEmail?: string;
1114
+ replyToName?: string;
1115
+ replyToEmail?: string;
1116
+ enabled?: boolean;
1117
+ }): Promise<Models.Provider>;
1118
+ /**
1119
+ * Create a new Sendgrid provider.
1120
+ *
1121
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1122
+ * @param {string} name - Provider name.
1123
+ * @param {string} apiKey - Sendgrid API key.
1124
+ * @param {string} fromName - Sender Name.
1125
+ * @param {string} fromEmail - Sender email address.
1126
+ * @param {string} replyToName - Name set in the reply to field for the mail. Default value is sender name.
1127
+ * @param {string} replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1128
+ * @param {boolean} enabled - Set as enabled.
1129
+ * @throws {OwbaseException}
1130
+ * @returns {Promise<Models.Provider>}
1131
+ * @deprecated Use the object parameter style method for a better developer experience.
1132
+ */
1133
+ createSendgridProvider(providerId: string, name: string, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
1134
+ /**
1135
+ * Update a Sendgrid provider by its unique ID.
1136
+ *
1137
+ * @param {string} params.providerId - Provider ID.
1138
+ * @param {string} params.name - Provider name.
1139
+ * @param {boolean} params.enabled - Set as enabled.
1140
+ * @param {string} params.apiKey - Sendgrid API key.
1141
+ * @param {string} params.fromName - Sender Name.
1142
+ * @param {string} params.fromEmail - Sender email address.
1143
+ * @param {string} params.replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1144
+ * @param {string} params.replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1145
+ * @throws {OwbaseException}
1146
+ * @returns {Promise<Models.Provider>}
1147
+ */
1148
+ updateSendgridProvider(params: {
1149
+ providerId: string;
1150
+ name?: string;
1151
+ enabled?: boolean;
1152
+ apiKey?: string;
1153
+ fromName?: string;
1154
+ fromEmail?: string;
1155
+ replyToName?: string;
1156
+ replyToEmail?: string;
1157
+ }): Promise<Models.Provider>;
1158
+ /**
1159
+ * Update a Sendgrid provider by its unique ID.
1160
+ *
1161
+ * @param {string} providerId - Provider ID.
1162
+ * @param {string} name - Provider name.
1163
+ * @param {boolean} enabled - Set as enabled.
1164
+ * @param {string} apiKey - Sendgrid API key.
1165
+ * @param {string} fromName - Sender Name.
1166
+ * @param {string} fromEmail - Sender email address.
1167
+ * @param {string} replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1168
+ * @param {string} replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1169
+ * @throws {OwbaseException}
1170
+ * @returns {Promise<Models.Provider>}
1171
+ * @deprecated Use the object parameter style method for a better developer experience.
1172
+ */
1173
+ updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
1174
+ /**
1175
+ * Create a new Amazon SES provider.
1176
+ *
1177
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1178
+ * @param {string} params.name - Provider name.
1179
+ * @param {string} params.accessKey - AWS access key ID.
1180
+ * @param {string} params.secretKey - AWS secret access key.
1181
+ * @param {string} params.region - AWS region, for example us-east-1.
1182
+ * @param {string} params.fromName - Sender Name.
1183
+ * @param {string} params.fromEmail - Sender email address.
1184
+ * @param {string} params.replyToName - Name set in the reply to field for the mail. Default value is sender name.
1185
+ * @param {string} params.replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1186
+ * @param {boolean} params.enabled - Set as enabled.
1187
+ * @throws {OwbaseException}
1188
+ * @returns {Promise<Models.Provider>}
1189
+ */
1190
+ createSesProvider(params: {
1191
+ providerId: string;
1192
+ name: string;
1193
+ accessKey?: string;
1194
+ secretKey?: string;
1195
+ region?: string;
1196
+ fromName?: string;
1197
+ fromEmail?: string;
1198
+ replyToName?: string;
1199
+ replyToEmail?: string;
1200
+ enabled?: boolean;
1201
+ }): Promise<Models.Provider>;
1202
+ /**
1203
+ * Create a new Amazon SES provider.
1204
+ *
1205
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1206
+ * @param {string} name - Provider name.
1207
+ * @param {string} accessKey - AWS access key ID.
1208
+ * @param {string} secretKey - AWS secret access key.
1209
+ * @param {string} region - AWS region, for example us-east-1.
1210
+ * @param {string} fromName - Sender Name.
1211
+ * @param {string} fromEmail - Sender email address.
1212
+ * @param {string} replyToName - Name set in the reply to field for the mail. Default value is sender name.
1213
+ * @param {string} replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1214
+ * @param {boolean} enabled - Set as enabled.
1215
+ * @throws {OwbaseException}
1216
+ * @returns {Promise<Models.Provider>}
1217
+ * @deprecated Use the object parameter style method for a better developer experience.
1218
+ */
1219
+ createSesProvider(providerId: string, name: string, accessKey?: string, secretKey?: string, region?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
1220
+ /**
1221
+ * Update an Amazon SES provider by its unique ID.
1222
+ *
1223
+ * @param {string} params.providerId - Provider ID.
1224
+ * @param {string} params.name - Provider name.
1225
+ * @param {boolean} params.enabled - Set as enabled.
1226
+ * @param {string} params.accessKey - AWS access key ID.
1227
+ * @param {string} params.secretKey - AWS secret access key.
1228
+ * @param {string} params.region - AWS region, for example us-east-1.
1229
+ * @param {string} params.fromName - Sender Name.
1230
+ * @param {string} params.fromEmail - Sender email address.
1231
+ * @param {string} params.replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1232
+ * @param {string} params.replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1233
+ * @throws {OwbaseException}
1234
+ * @returns {Promise<Models.Provider>}
1235
+ */
1236
+ updateSesProvider(params: {
1237
+ providerId: string;
1238
+ name?: string;
1239
+ enabled?: boolean;
1240
+ accessKey?: string;
1241
+ secretKey?: string;
1242
+ region?: string;
1243
+ fromName?: string;
1244
+ fromEmail?: string;
1245
+ replyToName?: string;
1246
+ replyToEmail?: string;
1247
+ }): Promise<Models.Provider>;
1248
+ /**
1249
+ * Update an Amazon SES provider by its unique ID.
1250
+ *
1251
+ * @param {string} providerId - Provider ID.
1252
+ * @param {string} name - Provider name.
1253
+ * @param {boolean} enabled - Set as enabled.
1254
+ * @param {string} accessKey - AWS access key ID.
1255
+ * @param {string} secretKey - AWS secret access key.
1256
+ * @param {string} region - AWS region, for example us-east-1.
1257
+ * @param {string} fromName - Sender Name.
1258
+ * @param {string} fromEmail - Sender email address.
1259
+ * @param {string} replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1260
+ * @param {string} replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1261
+ * @throws {OwbaseException}
1262
+ * @returns {Promise<Models.Provider>}
1263
+ * @deprecated Use the object parameter style method for a better developer experience.
1264
+ */
1265
+ updateSesProvider(providerId: string, name?: string, enabled?: boolean, accessKey?: string, secretKey?: string, region?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
1266
+ /**
1267
+ * Create a new SMTP provider.
1268
+ *
1269
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1270
+ * @param {string} params.name - Provider name.
1271
+ * @param {string} params.host - SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.
1272
+ * @param {number} params.port - The default SMTP server port.
1273
+ * @param {string} params.username - Authentication username.
1274
+ * @param {string} params.password - Authentication password.
1275
+ * @param {SmtpEncryption} params.encryption - Encryption type. Can be omitted, 'ssl', or 'tls'
1276
+ * @param {boolean} params.autoTLS - Enable SMTP AutoTLS feature.
1277
+ * @param {string} params.mailer - The value to use for the X-Mailer header.
1278
+ * @param {string} params.fromName - Sender Name.
1279
+ * @param {string} params.fromEmail - Sender email address.
1280
+ * @param {string} params.replyToName - Name set in the reply to field for the mail. Default value is sender name.
1281
+ * @param {string} params.replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1282
+ * @param {boolean} params.enabled - Set as enabled.
1283
+ * @throws {OwbaseException}
1284
+ * @returns {Promise<Models.Provider>}
1285
+ * @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.createSMTPProvider` instead.
1286
+ */
1287
+ createSmtpProvider(params: {
1288
+ providerId: string;
1289
+ name: string;
1290
+ host: string;
1291
+ port?: number;
1292
+ username?: string;
1293
+ password?: string;
1294
+ encryption?: SmtpEncryption;
1295
+ autoTLS?: boolean;
1296
+ mailer?: string;
1297
+ fromName?: string;
1298
+ fromEmail?: string;
1299
+ replyToName?: string;
1300
+ replyToEmail?: string;
1301
+ enabled?: boolean;
1302
+ }): Promise<Models.Provider>;
1303
+ /**
1304
+ * Create a new SMTP provider.
1305
+ *
1306
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1307
+ * @param {string} name - Provider name.
1308
+ * @param {string} host - SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.
1309
+ * @param {number} port - The default SMTP server port.
1310
+ * @param {string} username - Authentication username.
1311
+ * @param {string} password - Authentication password.
1312
+ * @param {SmtpEncryption} encryption - Encryption type. Can be omitted, 'ssl', or 'tls'
1313
+ * @param {boolean} autoTLS - Enable SMTP AutoTLS feature.
1314
+ * @param {string} mailer - The value to use for the X-Mailer header.
1315
+ * @param {string} fromName - Sender Name.
1316
+ * @param {string} fromEmail - Sender email address.
1317
+ * @param {string} replyToName - Name set in the reply to field for the mail. Default value is sender name.
1318
+ * @param {string} replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1319
+ * @param {boolean} enabled - Set as enabled.
1320
+ * @throws {OwbaseException}
1321
+ * @returns {Promise<Models.Provider>}
1322
+ * @deprecated Use the object parameter style method for a better developer experience.
1323
+ */
1324
+ createSmtpProvider(providerId: string, name: string, host: string, port?: number, username?: string, password?: string, encryption?: SmtpEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
1325
+ /**
1326
+ * Create a new SMTP provider.
1327
+ *
1328
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1329
+ * @param {string} params.name - Provider name.
1330
+ * @param {string} params.host - SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.
1331
+ * @param {number} params.port - The default SMTP server port.
1332
+ * @param {string} params.username - Authentication username.
1333
+ * @param {string} params.password - Authentication password.
1334
+ * @param {SmtpEncryption} params.encryption - Encryption type. Can be omitted, 'ssl', or 'tls'
1335
+ * @param {boolean} params.autoTLS - Enable SMTP AutoTLS feature.
1336
+ * @param {string} params.mailer - The value to use for the X-Mailer header.
1337
+ * @param {string} params.fromName - Sender Name.
1338
+ * @param {string} params.fromEmail - Sender email address.
1339
+ * @param {string} params.replyToName - Name set in the reply to field for the mail. Default value is sender name.
1340
+ * @param {string} params.replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1341
+ * @param {boolean} params.enabled - Set as enabled.
1342
+ * @throws {OwbaseException}
1343
+ * @returns {Promise<Models.Provider>}
1344
+ */
1345
+ createSMTPProvider(params: {
1346
+ providerId: string;
1347
+ name: string;
1348
+ host: string;
1349
+ port?: number;
1350
+ username?: string;
1351
+ password?: string;
1352
+ encryption?: SmtpEncryption;
1353
+ autoTLS?: boolean;
1354
+ mailer?: string;
1355
+ fromName?: string;
1356
+ fromEmail?: string;
1357
+ replyToName?: string;
1358
+ replyToEmail?: string;
1359
+ enabled?: boolean;
1360
+ }): Promise<Models.Provider>;
1361
+ /**
1362
+ * Create a new SMTP provider.
1363
+ *
1364
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1365
+ * @param {string} name - Provider name.
1366
+ * @param {string} host - SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.
1367
+ * @param {number} port - The default SMTP server port.
1368
+ * @param {string} username - Authentication username.
1369
+ * @param {string} password - Authentication password.
1370
+ * @param {SmtpEncryption} encryption - Encryption type. Can be omitted, 'ssl', or 'tls'
1371
+ * @param {boolean} autoTLS - Enable SMTP AutoTLS feature.
1372
+ * @param {string} mailer - The value to use for the X-Mailer header.
1373
+ * @param {string} fromName - Sender Name.
1374
+ * @param {string} fromEmail - Sender email address.
1375
+ * @param {string} replyToName - Name set in the reply to field for the mail. Default value is sender name.
1376
+ * @param {string} replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1377
+ * @param {boolean} enabled - Set as enabled.
1378
+ * @throws {OwbaseException}
1379
+ * @returns {Promise<Models.Provider>}
1380
+ * @deprecated Use the object parameter style method for a better developer experience.
1381
+ */
1382
+ createSMTPProvider(providerId: string, name: string, host: string, port?: number, username?: string, password?: string, encryption?: SmtpEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
1383
+ /**
1384
+ * Update a SMTP provider by its unique ID.
1385
+ *
1386
+ * @param {string} params.providerId - Provider ID.
1387
+ * @param {string} params.name - Provider name.
1388
+ * @param {string} params.host - SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.
1389
+ * @param {number} params.port - SMTP port.
1390
+ * @param {string} params.username - Authentication username.
1391
+ * @param {string} params.password - Authentication password.
1392
+ * @param {SmtpEncryption} params.encryption - Encryption type. Can be 'ssl' or 'tls'
1393
+ * @param {boolean} params.autoTLS - Enable SMTP AutoTLS feature.
1394
+ * @param {string} params.mailer - The value to use for the X-Mailer header.
1395
+ * @param {string} params.fromName - Sender Name.
1396
+ * @param {string} params.fromEmail - Sender email address.
1397
+ * @param {string} params.replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1398
+ * @param {string} params.replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1399
+ * @param {boolean} params.enabled - Set as enabled.
1400
+ * @throws {OwbaseException}
1401
+ * @returns {Promise<Models.Provider>}
1402
+ * @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.updateSMTPProvider` instead.
1403
+ */
1404
+ updateSmtpProvider(params: {
1405
+ providerId: string;
1406
+ name?: string;
1407
+ host?: string;
1408
+ port?: number;
1409
+ username?: string;
1410
+ password?: string;
1411
+ encryption?: SmtpEncryption;
1412
+ autoTLS?: boolean;
1413
+ mailer?: string;
1414
+ fromName?: string;
1415
+ fromEmail?: string;
1416
+ replyToName?: string;
1417
+ replyToEmail?: string;
1418
+ enabled?: boolean;
1419
+ }): Promise<Models.Provider>;
1420
+ /**
1421
+ * Update a SMTP provider by its unique ID.
1422
+ *
1423
+ * @param {string} providerId - Provider ID.
1424
+ * @param {string} name - Provider name.
1425
+ * @param {string} host - SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.
1426
+ * @param {number} port - SMTP port.
1427
+ * @param {string} username - Authentication username.
1428
+ * @param {string} password - Authentication password.
1429
+ * @param {SmtpEncryption} encryption - Encryption type. Can be 'ssl' or 'tls'
1430
+ * @param {boolean} autoTLS - Enable SMTP AutoTLS feature.
1431
+ * @param {string} mailer - The value to use for the X-Mailer header.
1432
+ * @param {string} fromName - Sender Name.
1433
+ * @param {string} fromEmail - Sender email address.
1434
+ * @param {string} replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1435
+ * @param {string} replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1436
+ * @param {boolean} enabled - Set as enabled.
1437
+ * @throws {OwbaseException}
1438
+ * @returns {Promise<Models.Provider>}
1439
+ * @deprecated Use the object parameter style method for a better developer experience.
1440
+ */
1441
+ updateSmtpProvider(providerId: string, name?: string, host?: string, port?: number, username?: string, password?: string, encryption?: SmtpEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
1442
+ /**
1443
+ * Update a SMTP provider by its unique ID.
1444
+ *
1445
+ * @param {string} params.providerId - Provider ID.
1446
+ * @param {string} params.name - Provider name.
1447
+ * @param {string} params.host - SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.
1448
+ * @param {number} params.port - SMTP port.
1449
+ * @param {string} params.username - Authentication username.
1450
+ * @param {string} params.password - Authentication password.
1451
+ * @param {SmtpEncryption} params.encryption - Encryption type. Can be 'ssl' or 'tls'
1452
+ * @param {boolean} params.autoTLS - Enable SMTP AutoTLS feature.
1453
+ * @param {string} params.mailer - The value to use for the X-Mailer header.
1454
+ * @param {string} params.fromName - Sender Name.
1455
+ * @param {string} params.fromEmail - Sender email address.
1456
+ * @param {string} params.replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1457
+ * @param {string} params.replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1458
+ * @param {boolean} params.enabled - Set as enabled.
1459
+ * @throws {OwbaseException}
1460
+ * @returns {Promise<Models.Provider>}
1461
+ */
1462
+ updateSMTPProvider(params: {
1463
+ providerId: string;
1464
+ name?: string;
1465
+ host?: string;
1466
+ port?: number;
1467
+ username?: string;
1468
+ password?: string;
1469
+ encryption?: SmtpEncryption;
1470
+ autoTLS?: boolean;
1471
+ mailer?: string;
1472
+ fromName?: string;
1473
+ fromEmail?: string;
1474
+ replyToName?: string;
1475
+ replyToEmail?: string;
1476
+ enabled?: boolean;
1477
+ }): Promise<Models.Provider>;
1478
+ /**
1479
+ * Update a SMTP provider by its unique ID.
1480
+ *
1481
+ * @param {string} providerId - Provider ID.
1482
+ * @param {string} name - Provider name.
1483
+ * @param {string} host - SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.
1484
+ * @param {number} port - SMTP port.
1485
+ * @param {string} username - Authentication username.
1486
+ * @param {string} password - Authentication password.
1487
+ * @param {SmtpEncryption} encryption - Encryption type. Can be 'ssl' or 'tls'
1488
+ * @param {boolean} autoTLS - Enable SMTP AutoTLS feature.
1489
+ * @param {string} mailer - The value to use for the X-Mailer header.
1490
+ * @param {string} fromName - Sender Name.
1491
+ * @param {string} fromEmail - Sender email address.
1492
+ * @param {string} replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1493
+ * @param {string} replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1494
+ * @param {boolean} enabled - Set as enabled.
1495
+ * @throws {OwbaseException}
1496
+ * @returns {Promise<Models.Provider>}
1497
+ * @deprecated Use the object parameter style method for a better developer experience.
1498
+ */
1499
+ updateSMTPProvider(providerId: string, name?: string, host?: string, port?: number, username?: string, password?: string, encryption?: SmtpEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
1500
+ /**
1501
+ * Create a new Telesign provider.
1502
+ *
1503
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1504
+ * @param {string} params.name - Provider name.
1505
+ * @param {string} params.from - Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1506
+ * @param {string} params.customerId - Telesign customer ID.
1507
+ * @param {string} params.apiKey - Telesign API key.
1508
+ * @param {boolean} params.enabled - Set as enabled.
1509
+ * @throws {OwbaseException}
1510
+ * @returns {Promise<Models.Provider>}
1511
+ */
1512
+ createTelesignProvider(params: {
1513
+ providerId: string;
1514
+ name: string;
1515
+ from?: string;
1516
+ customerId?: string;
1517
+ apiKey?: string;
1518
+ enabled?: boolean;
1519
+ }): Promise<Models.Provider>;
1520
+ /**
1521
+ * Create a new Telesign provider.
1522
+ *
1523
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1524
+ * @param {string} name - Provider name.
1525
+ * @param {string} from - Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1526
+ * @param {string} customerId - Telesign customer ID.
1527
+ * @param {string} apiKey - Telesign API key.
1528
+ * @param {boolean} enabled - Set as enabled.
1529
+ * @throws {OwbaseException}
1530
+ * @returns {Promise<Models.Provider>}
1531
+ * @deprecated Use the object parameter style method for a better developer experience.
1532
+ */
1533
+ createTelesignProvider(providerId: string, name: string, from?: string, customerId?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider>;
1534
+ /**
1535
+ * Update a Telesign provider by its unique ID.
1536
+ *
1537
+ * @param {string} params.providerId - Provider ID.
1538
+ * @param {string} params.name - Provider name.
1539
+ * @param {boolean} params.enabled - Set as enabled.
1540
+ * @param {string} params.customerId - Telesign customer ID.
1541
+ * @param {string} params.apiKey - Telesign API key.
1542
+ * @param {string} params.from - Sender number.
1543
+ * @throws {OwbaseException}
1544
+ * @returns {Promise<Models.Provider>}
1545
+ */
1546
+ updateTelesignProvider(params: {
1547
+ providerId: string;
1548
+ name?: string;
1549
+ enabled?: boolean;
1550
+ customerId?: string;
1551
+ apiKey?: string;
1552
+ from?: string;
1553
+ }): Promise<Models.Provider>;
1554
+ /**
1555
+ * Update a Telesign provider by its unique ID.
1556
+ *
1557
+ * @param {string} providerId - Provider ID.
1558
+ * @param {string} name - Provider name.
1559
+ * @param {boolean} enabled - Set as enabled.
1560
+ * @param {string} customerId - Telesign customer ID.
1561
+ * @param {string} apiKey - Telesign API key.
1562
+ * @param {string} from - Sender number.
1563
+ * @throws {OwbaseException}
1564
+ * @returns {Promise<Models.Provider>}
1565
+ * @deprecated Use the object parameter style method for a better developer experience.
1566
+ */
1567
+ updateTelesignProvider(providerId: string, name?: string, enabled?: boolean, customerId?: string, apiKey?: string, from?: string): Promise<Models.Provider>;
1568
+ /**
1569
+ * Create a new Textmagic provider.
1570
+ *
1571
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1572
+ * @param {string} params.name - Provider name.
1573
+ * @param {string} params.from - Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1574
+ * @param {string} params.username - Textmagic username.
1575
+ * @param {string} params.apiKey - Textmagic apiKey.
1576
+ * @param {boolean} params.enabled - Set as enabled.
1577
+ * @throws {OwbaseException}
1578
+ * @returns {Promise<Models.Provider>}
1579
+ */
1580
+ createTextmagicProvider(params: {
1581
+ providerId: string;
1582
+ name: string;
1583
+ from?: string;
1584
+ username?: string;
1585
+ apiKey?: string;
1586
+ enabled?: boolean;
1587
+ }): Promise<Models.Provider>;
1588
+ /**
1589
+ * Create a new Textmagic provider.
1590
+ *
1591
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1592
+ * @param {string} name - Provider name.
1593
+ * @param {string} from - Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1594
+ * @param {string} username - Textmagic username.
1595
+ * @param {string} apiKey - Textmagic apiKey.
1596
+ * @param {boolean} enabled - Set as enabled.
1597
+ * @throws {OwbaseException}
1598
+ * @returns {Promise<Models.Provider>}
1599
+ * @deprecated Use the object parameter style method for a better developer experience.
1600
+ */
1601
+ createTextmagicProvider(providerId: string, name: string, from?: string, username?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider>;
1602
+ /**
1603
+ * Update a Textmagic provider by its unique ID.
1604
+ *
1605
+ * @param {string} params.providerId - Provider ID.
1606
+ * @param {string} params.name - Provider name.
1607
+ * @param {boolean} params.enabled - Set as enabled.
1608
+ * @param {string} params.username - Textmagic username.
1609
+ * @param {string} params.apiKey - Textmagic apiKey.
1610
+ * @param {string} params.from - Sender number.
1611
+ * @throws {OwbaseException}
1612
+ * @returns {Promise<Models.Provider>}
1613
+ */
1614
+ updateTextmagicProvider(params: {
1615
+ providerId: string;
1616
+ name?: string;
1617
+ enabled?: boolean;
1618
+ username?: string;
1619
+ apiKey?: string;
1620
+ from?: string;
1621
+ }): Promise<Models.Provider>;
1622
+ /**
1623
+ * Update a Textmagic provider by its unique ID.
1624
+ *
1625
+ * @param {string} providerId - Provider ID.
1626
+ * @param {string} name - Provider name.
1627
+ * @param {boolean} enabled - Set as enabled.
1628
+ * @param {string} username - Textmagic username.
1629
+ * @param {string} apiKey - Textmagic apiKey.
1630
+ * @param {string} from - Sender number.
1631
+ * @throws {OwbaseException}
1632
+ * @returns {Promise<Models.Provider>}
1633
+ * @deprecated Use the object parameter style method for a better developer experience.
1634
+ */
1635
+ updateTextmagicProvider(providerId: string, name?: string, enabled?: boolean, username?: string, apiKey?: string, from?: string): Promise<Models.Provider>;
1636
+ /**
1637
+ * Create a new Twilio provider.
1638
+ *
1639
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1640
+ * @param {string} params.name - Provider name.
1641
+ * @param {string} params.from - Sender phone number or alphanumeric sender ID. Format phone numbers with a leading '+' and a country code, e.g., +16175551212.
1642
+ * @param {string} params.accountSid - Twilio account secret ID.
1643
+ * @param {string} params.authToken - Twilio authentication token.
1644
+ * @param {boolean} params.enabled - Set as enabled.
1645
+ * @throws {OwbaseException}
1646
+ * @returns {Promise<Models.Provider>}
1647
+ */
1648
+ createTwilioProvider(params: {
1649
+ providerId: string;
1650
+ name: string;
1651
+ from?: string;
1652
+ accountSid?: string;
1653
+ authToken?: string;
1654
+ enabled?: boolean;
1655
+ }): Promise<Models.Provider>;
1656
+ /**
1657
+ * Create a new Twilio provider.
1658
+ *
1659
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1660
+ * @param {string} name - Provider name.
1661
+ * @param {string} from - Sender phone number or alphanumeric sender ID. Format phone numbers with a leading '+' and a country code, e.g., +16175551212.
1662
+ * @param {string} accountSid - Twilio account secret ID.
1663
+ * @param {string} authToken - Twilio authentication token.
1664
+ * @param {boolean} enabled - Set as enabled.
1665
+ * @throws {OwbaseException}
1666
+ * @returns {Promise<Models.Provider>}
1667
+ * @deprecated Use the object parameter style method for a better developer experience.
1668
+ */
1669
+ createTwilioProvider(providerId: string, name: string, from?: string, accountSid?: string, authToken?: string, enabled?: boolean): Promise<Models.Provider>;
1670
+ /**
1671
+ * Update a Twilio provider by its unique ID.
1672
+ *
1673
+ * @param {string} params.providerId - Provider ID.
1674
+ * @param {string} params.name - Provider name.
1675
+ * @param {boolean} params.enabled - Set as enabled.
1676
+ * @param {string} params.accountSid - Twilio account secret ID.
1677
+ * @param {string} params.authToken - Twilio authentication token.
1678
+ * @param {string} params.from - Sender phone number or alphanumeric sender ID. Format phone numbers with a leading '+' and a country code, e.g., +16175551212.
1679
+ * @throws {OwbaseException}
1680
+ * @returns {Promise<Models.Provider>}
1681
+ */
1682
+ updateTwilioProvider(params: {
1683
+ providerId: string;
1684
+ name?: string;
1685
+ enabled?: boolean;
1686
+ accountSid?: string;
1687
+ authToken?: string;
1688
+ from?: string;
1689
+ }): Promise<Models.Provider>;
1690
+ /**
1691
+ * Update a Twilio provider by its unique ID.
1692
+ *
1693
+ * @param {string} providerId - Provider ID.
1694
+ * @param {string} name - Provider name.
1695
+ * @param {boolean} enabled - Set as enabled.
1696
+ * @param {string} accountSid - Twilio account secret ID.
1697
+ * @param {string} authToken - Twilio authentication token.
1698
+ * @param {string} from - Sender phone number or alphanumeric sender ID. Format phone numbers with a leading '+' and a country code, e.g., +16175551212.
1699
+ * @throws {OwbaseException}
1700
+ * @returns {Promise<Models.Provider>}
1701
+ * @deprecated Use the object parameter style method for a better developer experience.
1702
+ */
1703
+ updateTwilioProvider(providerId: string, name?: string, enabled?: boolean, accountSid?: string, authToken?: string, from?: string): Promise<Models.Provider>;
1704
+ /**
1705
+ * Create a new Vonage provider.
1706
+ *
1707
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1708
+ * @param {string} params.name - Provider name.
1709
+ * @param {string} params.from - Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1710
+ * @param {string} params.apiKey - Vonage API key.
1711
+ * @param {string} params.apiSecret - Vonage API secret.
1712
+ * @param {boolean} params.enabled - Set as enabled.
1713
+ * @throws {OwbaseException}
1714
+ * @returns {Promise<Models.Provider>}
1715
+ */
1716
+ createVonageProvider(params: {
1717
+ providerId: string;
1718
+ name: string;
1719
+ from?: string;
1720
+ apiKey?: string;
1721
+ apiSecret?: string;
1722
+ enabled?: boolean;
1723
+ }): Promise<Models.Provider>;
1724
+ /**
1725
+ * Create a new Vonage provider.
1726
+ *
1727
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1728
+ * @param {string} name - Provider name.
1729
+ * @param {string} from - Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1730
+ * @param {string} apiKey - Vonage API key.
1731
+ * @param {string} apiSecret - Vonage API secret.
1732
+ * @param {boolean} enabled - Set as enabled.
1733
+ * @throws {OwbaseException}
1734
+ * @returns {Promise<Models.Provider>}
1735
+ * @deprecated Use the object parameter style method for a better developer experience.
1736
+ */
1737
+ createVonageProvider(providerId: string, name: string, from?: string, apiKey?: string, apiSecret?: string, enabled?: boolean): Promise<Models.Provider>;
1738
+ /**
1739
+ * Update a Vonage provider by its unique ID.
1740
+ *
1741
+ * @param {string} params.providerId - Provider ID.
1742
+ * @param {string} params.name - Provider name.
1743
+ * @param {boolean} params.enabled - Set as enabled.
1744
+ * @param {string} params.apiKey - Vonage API key.
1745
+ * @param {string} params.apiSecret - Vonage API secret.
1746
+ * @param {string} params.from - Sender number.
1747
+ * @throws {OwbaseException}
1748
+ * @returns {Promise<Models.Provider>}
1749
+ */
1750
+ updateVonageProvider(params: {
1751
+ providerId: string;
1752
+ name?: string;
1753
+ enabled?: boolean;
1754
+ apiKey?: string;
1755
+ apiSecret?: string;
1756
+ from?: string;
1757
+ }): Promise<Models.Provider>;
1758
+ /**
1759
+ * Update a Vonage provider by its unique ID.
1760
+ *
1761
+ * @param {string} providerId - Provider ID.
1762
+ * @param {string} name - Provider name.
1763
+ * @param {boolean} enabled - Set as enabled.
1764
+ * @param {string} apiKey - Vonage API key.
1765
+ * @param {string} apiSecret - Vonage API secret.
1766
+ * @param {string} from - Sender number.
1767
+ * @throws {OwbaseException}
1768
+ * @returns {Promise<Models.Provider>}
1769
+ * @deprecated Use the object parameter style method for a better developer experience.
1770
+ */
1771
+ updateVonageProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, apiSecret?: string, from?: string): Promise<Models.Provider>;
1772
+ /**
1773
+ * Get a provider by its unique ID.
1774
+ *
1775
+ *
1776
+ * @param {string} params.providerId - Provider ID.
1777
+ * @throws {OwbaseException}
1778
+ * @returns {Promise<Models.Provider>}
1779
+ */
1780
+ getProvider(params: {
1781
+ providerId: string;
1782
+ }): Promise<Models.Provider>;
1783
+ /**
1784
+ * Get a provider by its unique ID.
1785
+ *
1786
+ *
1787
+ * @param {string} providerId - Provider ID.
1788
+ * @throws {OwbaseException}
1789
+ * @returns {Promise<Models.Provider>}
1790
+ * @deprecated Use the object parameter style method for a better developer experience.
1791
+ */
1792
+ getProvider(providerId: string): Promise<Models.Provider>;
1793
+ /**
1794
+ * Delete a provider by its unique ID.
1795
+ *
1796
+ * @param {string} params.providerId - Provider ID.
1797
+ * @throws {OwbaseException}
1798
+ * @returns {Promise<{}>}
1799
+ */
1800
+ deleteProvider(params: {
1801
+ providerId: string;
1802
+ }): Promise<{}>;
1803
+ /**
1804
+ * Delete a provider by its unique ID.
1805
+ *
1806
+ * @param {string} providerId - Provider ID.
1807
+ * @throws {OwbaseException}
1808
+ * @returns {Promise<{}>}
1809
+ * @deprecated Use the object parameter style method for a better developer experience.
1810
+ */
1811
+ deleteProvider(providerId: string): Promise<{}>;
1812
+ /**
1813
+ * Get a list of all topics from the current Owbase project.
1814
+ *
1815
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, description, emailTotal, smsTotal, pushTotal
1816
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
1817
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
1818
+ * @throws {OwbaseException}
1819
+ * @returns {Promise<Models.TopicList>}
1820
+ */
1821
+ listTopics(params?: {
1822
+ queries?: string[];
1823
+ search?: string;
1824
+ total?: boolean;
1825
+ }): Promise<Models.TopicList>;
1826
+ /**
1827
+ * Get a list of all topics from the current Owbase project.
1828
+ *
1829
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, description, emailTotal, smsTotal, pushTotal
1830
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
1831
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
1832
+ * @throws {OwbaseException}
1833
+ * @returns {Promise<Models.TopicList>}
1834
+ * @deprecated Use the object parameter style method for a better developer experience.
1835
+ */
1836
+ listTopics(queries?: string[], search?: string, total?: boolean): Promise<Models.TopicList>;
1837
+ /**
1838
+ * Create a new topic.
1839
+ *
1840
+ * @param {string} params.topicId - Topic ID. Choose a custom Topic ID or a new Topic ID.
1841
+ * @param {string} params.name - Topic Name.
1842
+ * @param {string[]} params.subscribe - An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
1843
+ * @param {number} params.qos - MQTT delivery quality of service for this topic. 0 is fire-and-forget (delivered only to clients connected at publish time). 1 persists each message and replays it when a client reconnects without having acknowledged it. Null lets the subscriber choose.
1844
+ * @param {number} params.expiry - Message retention in seconds for offline delivery. Max 7 days (604800).
1845
+ * @throws {OwbaseException}
1846
+ * @returns {Promise<Models.Topic>}
1847
+ */
1848
+ createTopic(params: {
1849
+ topicId: string;
1850
+ name: string;
1851
+ subscribe?: string[];
1852
+ qos?: number;
1853
+ expiry?: number;
1854
+ }): Promise<Models.Topic>;
1855
+ /**
1856
+ * Create a new topic.
1857
+ *
1858
+ * @param {string} topicId - Topic ID. Choose a custom Topic ID or a new Topic ID.
1859
+ * @param {string} name - Topic Name.
1860
+ * @param {string[]} subscribe - An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
1861
+ * @param {number} qos - MQTT delivery quality of service for this topic. 0 is fire-and-forget (delivered only to clients connected at publish time). 1 persists each message and replays it when a client reconnects without having acknowledged it. Null lets the subscriber choose.
1862
+ * @param {number} expiry - Message retention in seconds for offline delivery. Max 7 days (604800).
1863
+ * @throws {OwbaseException}
1864
+ * @returns {Promise<Models.Topic>}
1865
+ * @deprecated Use the object parameter style method for a better developer experience.
1866
+ */
1867
+ createTopic(topicId: string, name: string, subscribe?: string[], qos?: number, expiry?: number): Promise<Models.Topic>;
1868
+ /**
1869
+ * Get a topic by its unique ID.
1870
+ *
1871
+ *
1872
+ * @param {string} params.topicId - Topic ID.
1873
+ * @throws {OwbaseException}
1874
+ * @returns {Promise<Models.Topic>}
1875
+ */
1876
+ getTopic(params: {
1877
+ topicId: string;
1878
+ }): Promise<Models.Topic>;
1879
+ /**
1880
+ * Get a topic by its unique ID.
1881
+ *
1882
+ *
1883
+ * @param {string} topicId - Topic ID.
1884
+ * @throws {OwbaseException}
1885
+ * @returns {Promise<Models.Topic>}
1886
+ * @deprecated Use the object parameter style method for a better developer experience.
1887
+ */
1888
+ getTopic(topicId: string): Promise<Models.Topic>;
1889
+ /**
1890
+ * Update a topic by its unique ID.
1891
+ *
1892
+ *
1893
+ * @param {string} params.topicId - Topic ID.
1894
+ * @param {string} params.name - Topic Name.
1895
+ * @param {string[]} params.subscribe - An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
1896
+ * @param {number} params.qos - MQTT delivery quality of service for this topic. 0 is fire-and-forget (delivered only to clients connected at publish time). 1 persists each message and replays it when a client reconnects without having acknowledged it. Null lets the subscriber choose.
1897
+ * @param {number} params.expiry - Message retention in seconds for offline delivery. Max 7 days (604800).
1898
+ * @throws {OwbaseException}
1899
+ * @returns {Promise<Models.Topic>}
1900
+ */
1901
+ updateTopic(params: {
1902
+ topicId: string;
1903
+ name?: string;
1904
+ subscribe?: string[];
1905
+ qos?: number;
1906
+ expiry?: number;
1907
+ }): Promise<Models.Topic>;
1908
+ /**
1909
+ * Update a topic by its unique ID.
1910
+ *
1911
+ *
1912
+ * @param {string} topicId - Topic ID.
1913
+ * @param {string} name - Topic Name.
1914
+ * @param {string[]} subscribe - An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
1915
+ * @param {number} qos - MQTT delivery quality of service for this topic. 0 is fire-and-forget (delivered only to clients connected at publish time). 1 persists each message and replays it when a client reconnects without having acknowledged it. Null lets the subscriber choose.
1916
+ * @param {number} expiry - Message retention in seconds for offline delivery. Max 7 days (604800).
1917
+ * @throws {OwbaseException}
1918
+ * @returns {Promise<Models.Topic>}
1919
+ * @deprecated Use the object parameter style method for a better developer experience.
1920
+ */
1921
+ updateTopic(topicId: string, name?: string, subscribe?: string[], qos?: number, expiry?: number): Promise<Models.Topic>;
1922
+ /**
1923
+ * Delete a topic by its unique ID.
1924
+ *
1925
+ * @param {string} params.topicId - Topic ID.
1926
+ * @throws {OwbaseException}
1927
+ * @returns {Promise<{}>}
1928
+ */
1929
+ deleteTopic(params: {
1930
+ topicId: string;
1931
+ }): Promise<{}>;
1932
+ /**
1933
+ * Delete a topic by its unique ID.
1934
+ *
1935
+ * @param {string} topicId - Topic ID.
1936
+ * @throws {OwbaseException}
1937
+ * @returns {Promise<{}>}
1938
+ * @deprecated Use the object parameter style method for a better developer experience.
1939
+ */
1940
+ deleteTopic(topicId: string): Promise<{}>;
1941
+ /**
1942
+ * Get a list of all subscribers from the current Owbase project.
1943
+ *
1944
+ * @param {string} params.topicId - Topic ID. The topic ID subscribed to.
1945
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: targetId, topicId, userId, providerType
1946
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
1947
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
1948
+ * @throws {OwbaseException}
1949
+ * @returns {Promise<Models.SubscriberList>}
1950
+ */
1951
+ listSubscribers(params: {
1952
+ topicId: string;
1953
+ queries?: string[];
1954
+ search?: string;
1955
+ total?: boolean;
1956
+ }): Promise<Models.SubscriberList>;
1957
+ /**
1958
+ * Get a list of all subscribers from the current Owbase project.
1959
+ *
1960
+ * @param {string} topicId - Topic ID. The topic ID subscribed to.
1961
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: targetId, topicId, userId, providerType
1962
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
1963
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
1964
+ * @throws {OwbaseException}
1965
+ * @returns {Promise<Models.SubscriberList>}
1966
+ * @deprecated Use the object parameter style method for a better developer experience.
1967
+ */
1968
+ listSubscribers(topicId: string, queries?: string[], search?: string, total?: boolean): Promise<Models.SubscriberList>;
1969
+ /**
1970
+ * Create a new subscriber.
1971
+ *
1972
+ * @param {string} params.topicId - Topic ID. The topic ID to subscribe to.
1973
+ * @param {string} params.subscriberId - Subscriber ID. Choose a custom Subscriber ID or a new Subscriber ID.
1974
+ * @param {string} params.targetId - Target ID. The target ID to link to the specified Topic ID.
1975
+ * @throws {OwbaseException}
1976
+ * @returns {Promise<Models.Subscriber>}
1977
+ */
1978
+ createSubscriber(params: {
1979
+ topicId: string;
1980
+ subscriberId: string;
1981
+ targetId: string;
1982
+ }): Promise<Models.Subscriber>;
1983
+ /**
1984
+ * Create a new subscriber.
1985
+ *
1986
+ * @param {string} topicId - Topic ID. The topic ID to subscribe to.
1987
+ * @param {string} subscriberId - Subscriber ID. Choose a custom Subscriber ID or a new Subscriber ID.
1988
+ * @param {string} targetId - Target ID. The target ID to link to the specified Topic ID.
1989
+ * @throws {OwbaseException}
1990
+ * @returns {Promise<Models.Subscriber>}
1991
+ * @deprecated Use the object parameter style method for a better developer experience.
1992
+ */
1993
+ createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber>;
1994
+ /**
1995
+ * Get a subscriber by its unique ID.
1996
+ *
1997
+ *
1998
+ * @param {string} params.topicId - Topic ID. The topic ID subscribed to.
1999
+ * @param {string} params.subscriberId - Subscriber ID.
2000
+ * @throws {OwbaseException}
2001
+ * @returns {Promise<Models.Subscriber>}
2002
+ */
2003
+ getSubscriber(params: {
2004
+ topicId: string;
2005
+ subscriberId: string;
2006
+ }): Promise<Models.Subscriber>;
2007
+ /**
2008
+ * Get a subscriber by its unique ID.
2009
+ *
2010
+ *
2011
+ * @param {string} topicId - Topic ID. The topic ID subscribed to.
2012
+ * @param {string} subscriberId - Subscriber ID.
2013
+ * @throws {OwbaseException}
2014
+ * @returns {Promise<Models.Subscriber>}
2015
+ * @deprecated Use the object parameter style method for a better developer experience.
2016
+ */
2017
+ getSubscriber(topicId: string, subscriberId: string): Promise<Models.Subscriber>;
2018
+ /**
2019
+ * Delete a subscriber by its unique ID.
2020
+ *
2021
+ * @param {string} params.topicId - Topic ID. The topic ID subscribed to.
2022
+ * @param {string} params.subscriberId - Subscriber ID.
2023
+ * @throws {OwbaseException}
2024
+ * @returns {Promise<{}>}
2025
+ */
2026
+ deleteSubscriber(params: {
2027
+ topicId: string;
2028
+ subscriberId: string;
2029
+ }): Promise<{}>;
2030
+ /**
2031
+ * Delete a subscriber by its unique ID.
2032
+ *
2033
+ * @param {string} topicId - Topic ID. The topic ID subscribed to.
2034
+ * @param {string} subscriberId - Subscriber ID.
2035
+ * @throws {OwbaseException}
2036
+ * @returns {Promise<{}>}
2037
+ * @deprecated Use the object parameter style method for a better developer experience.
2038
+ */
2039
+ deleteSubscriber(topicId: string, subscriberId: string): Promise<{}>;
2040
+ }
2041
+
2042
+ export { Messaging };