@trycourier/courier 6.0.1 → 6.0.3

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 (517) hide show
  1. package/Client.d.ts +8 -8
  2. package/Client.js +16 -16
  3. package/README.md +112 -110
  4. package/api/resources/audiences/client/Client.d.ts +5 -5
  5. package/api/resources/audiences/client/Client.js +7 -7
  6. package/api/resources/audiences/client/requests/{ListAudienceMembersRequest.d.ts → AudienceMembersListParams.d.ts} +1 -2
  7. package/{dist/api/resources/audiences/types/AudienceRequest.d.ts → api/resources/audiences/client/requests/AudienceUpdateParams.d.ts} +2 -4
  8. package/api/resources/audiences/client/requests/{ListAudiencesRequest.d.ts → AudiencesListParams.d.ts} +1 -2
  9. package/api/resources/audiences/client/requests/index.d.ts +3 -2
  10. package/api/resources/audiences/types/{AudiencePutResponse.d.ts → AudienceUpdateResponse.d.ts} +1 -1
  11. package/api/resources/audiences/types/BaseFilterConfig.d.ts +1 -4
  12. package/api/resources/audiences/types/index.d.ts +1 -2
  13. package/api/resources/audiences/types/index.js +1 -2
  14. package/api/resources/auditEvents/client/Client.d.ts +2 -2
  15. package/api/resources/auditEvents/client/Client.js +3 -3
  16. package/api/resources/auditEvents/client/requests/ListAuditEventsRequest.d.ts +0 -1
  17. package/api/resources/authTokens/client/Client.d.ts +3 -3
  18. package/api/resources/authTokens/client/Client.js +2 -2
  19. package/api/resources/authTokens/client/index.d.ts +1 -1
  20. package/api/resources/authTokens/client/index.js +15 -0
  21. package/api/resources/authTokens/{types/AuthIssueTokenParameters.d.ts → client/requests/IssueTokenParams.d.ts} +2 -2
  22. package/api/resources/authTokens/client/requests/index.d.ts +1 -0
  23. package/api/resources/authTokens/types/{AuthIssueTokenResponse.d.ts → IssueTokenResponse.d.ts} +1 -1
  24. package/api/resources/authTokens/types/index.d.ts +1 -2
  25. package/api/resources/authTokens/types/index.js +1 -2
  26. package/api/resources/automations/client/Client.d.ts +3 -3
  27. package/api/resources/automations/client/Client.js +6 -5
  28. package/api/resources/brands/client/Client.d.ts +6 -2
  29. package/api/resources/brands/client/Client.js +49 -5
  30. package/api/resources/brands/{types/BrandPutParameters.d.ts → client/requests/BrandUpdateParameters.d.ts} +3 -4
  31. package/api/resources/brands/client/requests/index.d.ts +1 -0
  32. package/api/resources/brands/types/index.d.ts +0 -1
  33. package/api/resources/brands/types/index.js +0 -1
  34. package/api/resources/bulk/client/Client.d.ts +4 -4
  35. package/api/resources/bulk/client/Client.js +8 -9
  36. package/api/resources/bulk/client/index.d.ts +1 -1
  37. package/api/resources/bulk/client/index.js +15 -0
  38. package/{dist/api/resources/bulk/types → api/resources/bulk/client/requests}/BulkCreateJobParams.d.ts +1 -1
  39. package/api/resources/bulk/client/requests/index.d.ts +1 -0
  40. package/api/resources/bulk/types/BulkIngestUsersParams.d.ts +0 -1
  41. package/api/resources/bulk/types/InboundBulkContentMessage.d.ts +15 -0
  42. package/api/resources/bulk/types/InboundBulkMessage.d.ts +2 -2
  43. package/api/resources/bulk/types/InboundBulkMessageV1.d.ts +23 -0
  44. package/api/resources/bulk/types/InboundBulkMessageV2.d.ts +16 -0
  45. package/api/resources/bulk/types/InboundBulkTemplateMessage.d.ts +11 -0
  46. package/api/resources/bulk/types/index.d.ts +4 -4
  47. package/api/resources/bulk/types/index.js +4 -4
  48. package/api/resources/index.d.ts +7 -4
  49. package/api/resources/index.js +8 -5
  50. package/api/resources/lists/client/Client.d.ts +14 -6
  51. package/api/resources/lists/client/Client.js +99 -13
  52. package/api/resources/lists/client/requests/GetAllListsRequest.d.ts +0 -1
  53. package/api/resources/lists/client/requests/GetListRequest.d.ts +0 -1
  54. package/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +0 -2
  55. package/api/resources/messages/client/Client.d.ts +2 -2
  56. package/api/resources/messages/client/Client.js +8 -8
  57. package/api/resources/messages/client/requests/ListMessagesRequest.d.ts +1 -1
  58. package/api/resources/notifications/client/Client.d.ts +29 -0
  59. package/api/resources/notifications/client/Client.js +392 -0
  60. package/api/resources/notifications/client/index.d.ts +1 -0
  61. package/api/resources/notifications/client/index.js +17 -0
  62. package/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.d.ts +8 -0
  63. package/api/resources/{bulk/types/BulkRunJobParams.d.ts → notifications/client/requests/NotificationListParams.d.ts} +2 -2
  64. package/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.d.ts +8 -0
  65. package/api/resources/notifications/client/requests/SubmissionChecksReplaceParams.d.ts +7 -0
  66. package/api/resources/notifications/client/requests/index.d.ts +4 -0
  67. package/api/resources/notifications/types/BaseCheck.d.ts +9 -0
  68. package/api/resources/notifications/types/BlockType.d.ts +15 -0
  69. package/api/resources/notifications/types/BlockType.js +17 -0
  70. package/api/resources/{tokenManagement/types/PatchUserTokenOpts.d.ts → notifications/types/Check.d.ts} +2 -2
  71. package/api/resources/notifications/types/CheckStatus.d.ts +9 -0
  72. package/api/resources/notifications/types/CheckStatus.js +11 -0
  73. package/api/resources/notifications/types/MessageRouting.d.ts +8 -0
  74. package/api/resources/notifications/types/MessageRoutingChannel.d.ts +5 -0
  75. package/api/resources/notifications/types/MessageRoutingMethod.d.ts +8 -0
  76. package/api/resources/notifications/types/MessageRoutingMethod.js +10 -0
  77. package/api/resources/notifications/types/Notification.d.ts +9 -0
  78. package/api/resources/notifications/types/NotificationBlock.d.ts +13 -0
  79. package/api/resources/notifications/types/NotificationChannel.d.ts +11 -0
  80. package/api/resources/notifications/types/NotificationChannelContent.d.ts +7 -0
  81. package/api/resources/notifications/types/NotificationContent.d.ts +5 -0
  82. package/api/resources/notifications/types/NotificationContentHierarchy.d.ts +7 -0
  83. package/api/resources/notifications/types/NotificationGetContentResponse.d.ts +9 -0
  84. package/api/resources/notifications/types/NotificationListResponse.d.ts +8 -0
  85. package/api/resources/notifications/types/SubmissionChecksGetResponse.d.ts +7 -0
  86. package/api/resources/notifications/types/SubmissionChecksReplaceResponse.d.ts +7 -0
  87. package/api/resources/notifications/types/index.d.ts +17 -0
  88. package/api/resources/notifications/types/index.js +33 -0
  89. package/api/resources/profiles/client/Client.d.ts +2 -3
  90. package/api/resources/profiles/client/Client.js +8 -9
  91. package/api/resources/send/types/BaseMessage.d.ts +1 -8
  92. package/api/resources/send/types/Channel.d.ts +0 -4
  93. package/api/resources/send/types/ContentMessage.d.ts +2 -2
  94. package/api/resources/send/types/ElementalChannelNode.d.ts +0 -4
  95. package/api/resources/send/types/ElementalMetaNode.d.ts +0 -1
  96. package/api/resources/send/types/ElementalTextNode.d.ts +0 -1
  97. package/api/resources/send/types/MessageContext.d.ts +0 -1
  98. package/api/resources/send/types/MessageProvidersType.d.ts +0 -1
  99. package/api/resources/send/types/Routing.d.ts +0 -2
  100. package/api/resources/send/types/TemplateMessage.d.ts +2 -1
  101. package/api/resources/send/types/UserRecipient.d.ts +0 -1
  102. package/api/resources/templates/client/Client.d.ts +2 -2
  103. package/api/resources/templates/client/Client.js +2 -2
  104. package/api/resources/tenants/client/Client.d.ts +9 -3
  105. package/api/resources/tenants/client/Client.js +130 -2
  106. package/api/resources/tenants/client/index.d.ts +1 -1
  107. package/api/resources/tenants/client/index.js +15 -0
  108. package/{dist/api/resources/tenants/types/CreateOrReplaceTenantRequest.d.ts → api/resources/tenants/client/requests/TenantCreateOrReplaceParams.d.ts} +7 -7
  109. package/api/resources/tenants/client/requests/index.d.ts +1 -0
  110. package/api/resources/tenants/types/{CreateOrReplaceTenantResponse.d.ts → Tenant.d.ts} +3 -3
  111. package/api/resources/tenants/types/TenantListResponse.d.ts +21 -0
  112. package/api/resources/tenants/types/index.d.ts +2 -2
  113. package/api/resources/tenants/types/index.js +2 -2
  114. package/api/resources/translations/client/Client.d.ts +2 -2
  115. package/api/resources/translations/client/Client.js +3 -3
  116. package/api/resources/users/client/Client.d.ts +28 -0
  117. package/api/resources/users/client/Client.js +27 -0
  118. package/api/resources/users/client/index.js +2 -0
  119. package/api/resources/users/index.d.ts +2 -0
  120. package/api/resources/users/index.js +18 -0
  121. package/api/resources/users/resources/index.d.ts +8 -0
  122. package/api/resources/users/resources/index.js +37 -0
  123. package/api/resources/users/resources/preferences/client/Client.d.ts +36 -0
  124. package/api/resources/{userPreferences → users/resources/preferences}/client/Client.js +14 -14
  125. package/api/resources/users/resources/preferences/client/index.d.ts +1 -0
  126. package/api/resources/users/resources/preferences/client/index.js +17 -0
  127. package/api/resources/{userPreferences/types/UpdateSubscriptionTopicRequest.d.ts → users/resources/preferences/client/requests/UserPreferencesUpdateParams.d.ts} +3 -3
  128. package/api/resources/users/resources/preferences/client/requests/index.d.ts +1 -0
  129. package/api/resources/users/resources/preferences/client/requests/index.js +2 -0
  130. package/api/resources/{userPreferences → users/resources/preferences}/types/TopicPreference.d.ts +1 -1
  131. package/api/resources/users/resources/preferences/types/UserPreferencesGetResponse.d.ts +7 -0
  132. package/api/resources/{userPreferences/types/UserPreferences.d.ts → users/resources/preferences/types/UserPreferencesListResponse.d.ts} +3 -3
  133. package/{dist/api/resources/userPreferences/types/UpdateSubscriptionTopicResponse.d.ts → api/resources/users/resources/preferences/types/UserPreferencesUpdateResponse.d.ts} +1 -1
  134. package/api/resources/users/resources/preferences/types/index.d.ts +4 -0
  135. package/{dist/api/resources/userPreferences → api/resources/users/resources/preferences}/types/index.js +3 -3
  136. package/api/resources/users/resources/tenants/client/Client.d.ts +45 -0
  137. package/api/resources/users/resources/tenants/client/Client.js +254 -0
  138. package/api/resources/users/resources/tenants/client/index.d.ts +1 -0
  139. package/api/resources/users/resources/tenants/client/index.js +17 -0
  140. package/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.d.ts +7 -0
  141. package/api/resources/users/resources/tenants/client/requests/AddUserToSingleTenantsParams.d.ts +7 -0
  142. package/api/resources/users/resources/tenants/client/requests/ListTenantsForUserParams.d.ts +14 -0
  143. package/api/resources/users/resources/tenants/client/requests/index.d.ts +3 -0
  144. package/api/resources/users/resources/tenants/client/requests/index.js +2 -0
  145. package/api/resources/users/resources/tenants/types/AddUserToSingleTenantsParamsProfile.d.ts +14 -0
  146. package/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.d.ts +23 -0
  147. package/api/resources/users/resources/tenants/types/UserTenantAssociation.d.ts +8 -0
  148. package/api/resources/users/resources/tenants/types/index.d.ts +3 -0
  149. package/api/resources/users/resources/tenants/types/index.js +19 -0
  150. package/api/resources/users/resources/tokens/client/Client.d.ts +46 -0
  151. package/api/resources/{tokenManagement → users/resources/tokens}/client/Client.js +14 -14
  152. package/api/resources/users/resources/tokens/client/index.js +2 -0
  153. package/api/resources/{tokenManagement → users/resources/tokens}/types/GetAllTokensResponse.d.ts +2 -2
  154. package/api/resources/users/resources/tokens/types/GetUserTokenResponse.d.ts +9 -0
  155. package/api/resources/users/resources/tokens/types/PatchUserTokenOpts.d.ts +7 -0
  156. package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/PutUserTokenOpts.d.ts +2 -2
  157. package/api/resources/{tokenManagement → users/resources/tokens}/types/PutUserTokensOpts.d.ts +2 -2
  158. package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/UserToken.d.ts +5 -5
  159. package/api/types/SendMessageResponse.d.ts +0 -1
  160. package/core/fetcher/APIResponse.d.ts +1 -0
  161. package/core/fetcher/Fetcher.d.ts +1 -4
  162. package/core/fetcher/Fetcher.js +52 -31
  163. package/core/fetcher/getHeader.d.ts +1 -0
  164. package/core/fetcher/getHeader.js +12 -0
  165. package/core/fetcher/index.d.ts +1 -0
  166. package/core/fetcher/index.js +3 -1
  167. package/dist/Client.d.ts +8 -8
  168. package/dist/Client.js +16 -16
  169. package/dist/api/resources/audiences/client/Client.d.ts +5 -5
  170. package/dist/api/resources/audiences/client/Client.js +7 -7
  171. package/dist/api/resources/audiences/client/requests/{ListAudienceMembersRequest.d.ts → AudienceMembersListParams.d.ts} +1 -2
  172. package/{api/resources/audiences/types/AudienceRequest.d.ts → dist/api/resources/audiences/client/requests/AudienceUpdateParams.d.ts} +2 -4
  173. package/dist/api/resources/audiences/client/requests/{ListAudiencesRequest.d.ts → AudiencesListParams.d.ts} +1 -2
  174. package/dist/api/resources/audiences/client/requests/index.d.ts +3 -2
  175. package/dist/api/resources/audiences/types/{AudiencePutResponse.d.ts → AudienceUpdateResponse.d.ts} +1 -1
  176. package/dist/api/resources/audiences/types/AudienceUpdateResponse.js +5 -0
  177. package/dist/api/resources/audiences/types/BaseFilterConfig.d.ts +1 -4
  178. package/dist/api/resources/audiences/types/index.d.ts +1 -2
  179. package/dist/api/resources/audiences/types/index.js +1 -2
  180. package/dist/api/resources/auditEvents/client/Client.d.ts +2 -2
  181. package/dist/api/resources/auditEvents/client/Client.js +3 -3
  182. package/dist/api/resources/auditEvents/client/requests/ListAuditEventsRequest.d.ts +0 -1
  183. package/dist/api/resources/authTokens/client/Client.d.ts +3 -3
  184. package/dist/api/resources/authTokens/client/Client.js +2 -2
  185. package/dist/api/resources/authTokens/client/index.d.ts +1 -1
  186. package/dist/api/resources/authTokens/client/index.js +15 -0
  187. package/dist/api/resources/authTokens/{types/AuthIssueTokenParameters.d.ts → client/requests/IssueTokenParams.d.ts} +2 -2
  188. package/dist/api/resources/authTokens/client/requests/IssueTokenParams.js +5 -0
  189. package/dist/api/resources/authTokens/client/requests/index.d.ts +1 -0
  190. package/dist/api/resources/authTokens/client/requests/index.js +2 -0
  191. package/dist/api/resources/authTokens/types/{AuthIssueTokenResponse.d.ts → IssueTokenResponse.d.ts} +1 -1
  192. package/dist/api/resources/authTokens/types/IssueTokenResponse.js +5 -0
  193. package/dist/api/resources/authTokens/types/index.d.ts +1 -2
  194. package/dist/api/resources/authTokens/types/index.js +1 -2
  195. package/dist/api/resources/automations/client/Client.d.ts +3 -3
  196. package/dist/api/resources/automations/client/Client.js +6 -5
  197. package/dist/api/resources/brands/client/Client.d.ts +6 -2
  198. package/dist/api/resources/brands/client/Client.js +49 -5
  199. package/dist/api/resources/brands/{types/BrandPutParameters.d.ts → client/requests/BrandUpdateParameters.d.ts} +3 -4
  200. package/dist/api/resources/brands/client/requests/BrandUpdateParameters.js +5 -0
  201. package/dist/api/resources/brands/client/requests/index.d.ts +1 -0
  202. package/dist/api/resources/brands/types/index.d.ts +0 -1
  203. package/dist/api/resources/brands/types/index.js +0 -1
  204. package/dist/api/resources/bulk/client/Client.d.ts +4 -4
  205. package/dist/api/resources/bulk/client/Client.js +8 -9
  206. package/dist/api/resources/bulk/client/index.d.ts +1 -1
  207. package/dist/api/resources/bulk/client/index.js +15 -0
  208. package/{api/resources/bulk/types → dist/api/resources/bulk/client/requests}/BulkCreateJobParams.d.ts +1 -1
  209. package/dist/api/resources/bulk/client/requests/BulkCreateJobParams.js +5 -0
  210. package/dist/api/resources/bulk/client/requests/index.d.ts +1 -0
  211. package/dist/api/resources/bulk/client/requests/index.js +2 -0
  212. package/dist/api/resources/bulk/types/BulkIngestUsersParams.d.ts +0 -1
  213. package/dist/api/resources/bulk/types/InboundBulkContentMessage.d.ts +15 -0
  214. package/dist/api/resources/bulk/types/InboundBulkContentMessage.js +5 -0
  215. package/dist/api/resources/bulk/types/InboundBulkMessage.d.ts +2 -2
  216. package/dist/api/resources/bulk/types/InboundBulkMessageV1.d.ts +23 -0
  217. package/dist/api/resources/bulk/types/InboundBulkMessageV1.js +5 -0
  218. package/dist/api/resources/bulk/types/InboundBulkMessageV2.d.ts +16 -0
  219. package/dist/api/resources/bulk/types/InboundBulkMessageV2.js +5 -0
  220. package/dist/api/resources/bulk/types/InboundBulkTemplateMessage.d.ts +11 -0
  221. package/dist/api/resources/bulk/types/InboundBulkTemplateMessage.js +5 -0
  222. package/dist/api/resources/bulk/types/index.d.ts +4 -4
  223. package/dist/api/resources/bulk/types/index.js +4 -4
  224. package/dist/api/resources/index.d.ts +7 -4
  225. package/dist/api/resources/index.js +8 -5
  226. package/dist/api/resources/lists/client/Client.d.ts +14 -6
  227. package/dist/api/resources/lists/client/Client.js +99 -13
  228. package/dist/api/resources/lists/client/requests/GetAllListsRequest.d.ts +0 -1
  229. package/dist/api/resources/lists/client/requests/GetListRequest.d.ts +0 -1
  230. package/dist/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +0 -2
  231. package/dist/api/resources/messages/client/Client.d.ts +2 -2
  232. package/dist/api/resources/messages/client/Client.js +8 -8
  233. package/dist/api/resources/messages/client/requests/ListMessagesRequest.d.ts +1 -1
  234. package/dist/api/resources/notifications/client/Client.d.ts +29 -0
  235. package/dist/api/resources/notifications/client/Client.js +392 -0
  236. package/dist/api/resources/notifications/client/index.d.ts +1 -0
  237. package/dist/api/resources/notifications/client/index.js +17 -0
  238. package/dist/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.d.ts +8 -0
  239. package/dist/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.js +5 -0
  240. package/dist/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -0
  241. package/dist/api/resources/notifications/client/requests/NotificationListParams.js +5 -0
  242. package/dist/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.d.ts +8 -0
  243. package/dist/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.js +5 -0
  244. package/dist/api/resources/notifications/client/requests/SubmissionChecksReplaceParams.d.ts +7 -0
  245. package/dist/api/resources/notifications/client/requests/SubmissionChecksReplaceParams.js +5 -0
  246. package/dist/api/resources/notifications/client/requests/index.d.ts +4 -0
  247. package/dist/api/resources/notifications/client/requests/index.js +2 -0
  248. package/dist/api/resources/notifications/index.d.ts +2 -0
  249. package/dist/api/resources/notifications/index.js +18 -0
  250. package/dist/api/resources/notifications/types/BaseCheck.d.ts +9 -0
  251. package/dist/api/resources/notifications/types/BaseCheck.js +5 -0
  252. package/dist/api/resources/notifications/types/BlockType.d.ts +15 -0
  253. package/dist/api/resources/notifications/types/BlockType.js +17 -0
  254. package/dist/api/resources/{tokenManagement/types/PatchUserTokenOpts.d.ts → notifications/types/Check.d.ts} +2 -2
  255. package/dist/api/resources/notifications/types/Check.js +5 -0
  256. package/dist/api/resources/notifications/types/CheckStatus.d.ts +9 -0
  257. package/dist/api/resources/notifications/types/CheckStatus.js +11 -0
  258. package/dist/api/resources/notifications/types/MessageRouting.d.ts +8 -0
  259. package/dist/api/resources/notifications/types/MessageRouting.js +5 -0
  260. package/dist/api/resources/notifications/types/MessageRoutingChannel.d.ts +5 -0
  261. package/dist/api/resources/notifications/types/MessageRoutingChannel.js +5 -0
  262. package/dist/api/resources/notifications/types/MessageRoutingMethod.d.ts +8 -0
  263. package/dist/api/resources/notifications/types/MessageRoutingMethod.js +10 -0
  264. package/dist/api/resources/notifications/types/Notification.d.ts +9 -0
  265. package/dist/api/resources/notifications/types/Notification.js +5 -0
  266. package/dist/api/resources/notifications/types/NotificationBlock.d.ts +13 -0
  267. package/dist/api/resources/notifications/types/NotificationBlock.js +5 -0
  268. package/dist/api/resources/notifications/types/NotificationChannel.d.ts +11 -0
  269. package/dist/api/resources/notifications/types/NotificationChannel.js +5 -0
  270. package/dist/api/resources/notifications/types/NotificationChannelContent.d.ts +7 -0
  271. package/dist/api/resources/notifications/types/NotificationChannelContent.js +5 -0
  272. package/dist/api/resources/notifications/types/NotificationContent.d.ts +5 -0
  273. package/dist/api/resources/notifications/types/NotificationContent.js +5 -0
  274. package/dist/api/resources/notifications/types/NotificationContentHierarchy.d.ts +7 -0
  275. package/dist/api/resources/notifications/types/NotificationContentHierarchy.js +5 -0
  276. package/dist/api/resources/notifications/types/NotificationGetContentResponse.d.ts +9 -0
  277. package/dist/api/resources/notifications/types/NotificationGetContentResponse.js +5 -0
  278. package/dist/api/resources/notifications/types/NotificationListResponse.d.ts +8 -0
  279. package/dist/api/resources/notifications/types/NotificationListResponse.js +5 -0
  280. package/dist/api/resources/notifications/types/SubmissionChecksGetResponse.d.ts +7 -0
  281. package/dist/api/resources/notifications/types/SubmissionChecksGetResponse.js +5 -0
  282. package/dist/api/resources/notifications/types/SubmissionChecksReplaceResponse.d.ts +7 -0
  283. package/dist/api/resources/notifications/types/SubmissionChecksReplaceResponse.js +5 -0
  284. package/dist/api/resources/notifications/types/index.d.ts +17 -0
  285. package/dist/api/resources/notifications/types/index.js +33 -0
  286. package/dist/api/resources/profiles/client/Client.d.ts +2 -3
  287. package/dist/api/resources/profiles/client/Client.js +8 -9
  288. package/dist/api/resources/send/types/BaseMessage.d.ts +1 -8
  289. package/dist/api/resources/send/types/Channel.d.ts +0 -4
  290. package/dist/api/resources/send/types/ContentMessage.d.ts +2 -2
  291. package/dist/api/resources/send/types/ElementalChannelNode.d.ts +0 -4
  292. package/dist/api/resources/send/types/ElementalMetaNode.d.ts +0 -1
  293. package/dist/api/resources/send/types/ElementalTextNode.d.ts +0 -1
  294. package/dist/api/resources/send/types/MessageContext.d.ts +0 -1
  295. package/dist/api/resources/send/types/MessageProvidersType.d.ts +0 -1
  296. package/dist/api/resources/send/types/Routing.d.ts +0 -2
  297. package/dist/api/resources/send/types/TemplateMessage.d.ts +2 -1
  298. package/dist/api/resources/send/types/UserRecipient.d.ts +0 -1
  299. package/dist/api/resources/templates/client/Client.d.ts +2 -2
  300. package/dist/api/resources/templates/client/Client.js +2 -2
  301. package/dist/api/resources/tenants/client/Client.d.ts +9 -3
  302. package/dist/api/resources/tenants/client/Client.js +130 -2
  303. package/dist/api/resources/tenants/client/index.d.ts +1 -1
  304. package/dist/api/resources/tenants/client/index.js +15 -0
  305. package/{api/resources/tenants/types/CreateOrReplaceTenantRequest.d.ts → dist/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.d.ts} +7 -7
  306. package/dist/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.js +5 -0
  307. package/dist/api/resources/tenants/client/requests/index.d.ts +1 -0
  308. package/dist/api/resources/tenants/client/requests/index.js +2 -0
  309. package/dist/api/resources/tenants/types/{CreateOrReplaceTenantResponse.d.ts → Tenant.d.ts} +3 -3
  310. package/dist/api/resources/tenants/types/Tenant.js +5 -0
  311. package/dist/api/resources/tenants/types/TenantListResponse.d.ts +21 -0
  312. package/dist/api/resources/tenants/types/TenantListResponse.js +5 -0
  313. package/dist/api/resources/tenants/types/index.d.ts +2 -2
  314. package/dist/api/resources/tenants/types/index.js +2 -2
  315. package/dist/api/resources/translations/client/Client.d.ts +2 -2
  316. package/dist/api/resources/translations/client/Client.js +3 -3
  317. package/dist/api/resources/users/client/Client.d.ts +28 -0
  318. package/dist/api/resources/users/client/Client.js +27 -0
  319. package/dist/api/resources/users/client/index.js +2 -0
  320. package/dist/api/resources/users/index.d.ts +2 -0
  321. package/dist/api/resources/users/index.js +18 -0
  322. package/dist/api/resources/users/resources/index.d.ts +8 -0
  323. package/dist/api/resources/users/resources/index.js +37 -0
  324. package/dist/api/resources/users/resources/preferences/client/Client.d.ts +36 -0
  325. package/dist/api/resources/{userPreferences → users/resources/preferences}/client/Client.js +14 -14
  326. package/dist/api/resources/users/resources/preferences/client/index.d.ts +1 -0
  327. package/dist/api/resources/users/resources/preferences/client/index.js +17 -0
  328. package/dist/api/resources/{userPreferences/types/UpdateSubscriptionTopicRequest.d.ts → users/resources/preferences/client/requests/UserPreferencesUpdateParams.d.ts} +3 -3
  329. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.js +5 -0
  330. package/dist/api/resources/users/resources/preferences/client/requests/index.d.ts +1 -0
  331. package/dist/api/resources/users/resources/preferences/client/requests/index.js +2 -0
  332. package/dist/api/resources/users/resources/preferences/index.d.ts +2 -0
  333. package/dist/api/resources/users/resources/preferences/index.js +18 -0
  334. package/dist/api/resources/{userPreferences → users/resources/preferences}/types/TopicPreference.d.ts +1 -1
  335. package/dist/api/resources/users/resources/preferences/types/TopicPreference.js +5 -0
  336. package/dist/api/resources/users/resources/preferences/types/UserPreferencesGetResponse.d.ts +7 -0
  337. package/dist/api/resources/users/resources/preferences/types/UserPreferencesGetResponse.js +5 -0
  338. package/dist/api/resources/{userPreferences/types/UserPreferences.d.ts → users/resources/preferences/types/UserPreferencesListResponse.d.ts} +3 -3
  339. package/dist/api/resources/users/resources/preferences/types/UserPreferencesListResponse.js +5 -0
  340. package/{api/resources/userPreferences/types/UpdateSubscriptionTopicResponse.d.ts → dist/api/resources/users/resources/preferences/types/UserPreferencesUpdateResponse.d.ts} +1 -1
  341. package/dist/api/resources/users/resources/preferences/types/UserPreferencesUpdateResponse.js +5 -0
  342. package/dist/api/resources/users/resources/preferences/types/index.d.ts +4 -0
  343. package/{api/resources/userPreferences → dist/api/resources/users/resources/preferences}/types/index.js +3 -3
  344. package/dist/api/resources/users/resources/tenants/client/Client.d.ts +45 -0
  345. package/dist/api/resources/users/resources/tenants/client/Client.js +254 -0
  346. package/dist/api/resources/users/resources/tenants/client/index.d.ts +1 -0
  347. package/dist/api/resources/users/resources/tenants/client/index.js +17 -0
  348. package/dist/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.d.ts +7 -0
  349. package/dist/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.js +5 -0
  350. package/dist/api/resources/users/resources/tenants/client/requests/AddUserToSingleTenantsParams.d.ts +7 -0
  351. package/dist/api/resources/users/resources/tenants/client/requests/AddUserToSingleTenantsParams.js +5 -0
  352. package/dist/api/resources/users/resources/tenants/client/requests/ListTenantsForUserParams.d.ts +14 -0
  353. package/dist/api/resources/users/resources/tenants/client/requests/ListTenantsForUserParams.js +5 -0
  354. package/dist/api/resources/users/resources/tenants/client/requests/index.d.ts +3 -0
  355. package/dist/api/resources/users/resources/tenants/client/requests/index.js +2 -0
  356. package/dist/api/resources/users/resources/tenants/index.d.ts +2 -0
  357. package/dist/api/resources/users/resources/tenants/index.js +18 -0
  358. package/dist/api/resources/users/resources/tenants/types/AddUserToSingleTenantsParamsProfile.d.ts +14 -0
  359. package/dist/api/resources/users/resources/tenants/types/AddUserToSingleTenantsParamsProfile.js +5 -0
  360. package/dist/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.d.ts +23 -0
  361. package/dist/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.js +5 -0
  362. package/dist/api/resources/users/resources/tenants/types/UserTenantAssociation.d.ts +8 -0
  363. package/dist/api/resources/users/resources/tenants/types/UserTenantAssociation.js +5 -0
  364. package/dist/api/resources/users/resources/tenants/types/index.d.ts +3 -0
  365. package/dist/api/resources/users/resources/tenants/types/index.js +19 -0
  366. package/dist/api/resources/users/resources/tokens/client/Client.d.ts +46 -0
  367. package/dist/api/resources/{tokenManagement → users/resources/tokens}/client/Client.js +14 -14
  368. package/dist/api/resources/users/resources/tokens/client/index.js +2 -0
  369. package/dist/api/resources/users/resources/tokens/index.d.ts +2 -0
  370. package/dist/api/resources/users/resources/tokens/index.js +18 -0
  371. package/dist/api/resources/users/resources/tokens/types/DeleteUserTokenOpts.js +5 -0
  372. package/dist/api/resources/users/resources/tokens/types/Device.js +5 -0
  373. package/dist/api/resources/users/resources/tokens/types/ExpiryDate.js +5 -0
  374. package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/GetAllTokensResponse.d.ts +2 -2
  375. package/dist/api/resources/users/resources/tokens/types/GetAllTokensResponse.js +5 -0
  376. package/dist/api/resources/users/resources/tokens/types/GetUserTokenOpts.js +5 -0
  377. package/dist/api/resources/users/resources/tokens/types/GetUserTokenResponse.d.ts +9 -0
  378. package/dist/api/resources/users/resources/tokens/types/GetUserTokenResponse.js +5 -0
  379. package/dist/api/resources/users/resources/tokens/types/GetUserTokensOpts.js +5 -0
  380. package/dist/api/resources/users/resources/tokens/types/PatchOperation.js +5 -0
  381. package/dist/api/resources/users/resources/tokens/types/PatchUserTokenOpts.d.ts +7 -0
  382. package/dist/api/resources/users/resources/tokens/types/PatchUserTokenOpts.js +5 -0
  383. package/{api/resources/tokenManagement → dist/api/resources/users/resources/tokens}/types/PutUserTokenOpts.d.ts +2 -2
  384. package/dist/api/resources/users/resources/tokens/types/PutUserTokenOpts.js +5 -0
  385. package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/PutUserTokensOpts.d.ts +2 -2
  386. package/dist/api/resources/users/resources/tokens/types/PutUserTokensOpts.js +5 -0
  387. package/dist/api/resources/users/resources/tokens/types/Tracking.js +5 -0
  388. package/{api/resources/tokenManagement → dist/api/resources/users/resources/tokens}/types/UserToken.d.ts +5 -5
  389. package/dist/api/resources/users/resources/tokens/types/UserToken.js +5 -0
  390. package/dist/api/types/SendMessageResponse.d.ts +0 -1
  391. package/dist/core/fetcher/APIResponse.d.ts +1 -0
  392. package/dist/core/fetcher/Fetcher.d.ts +1 -4
  393. package/dist/core/fetcher/Fetcher.js +52 -31
  394. package/dist/core/fetcher/getHeader.d.ts +1 -0
  395. package/dist/core/fetcher/getHeader.js +12 -0
  396. package/dist/core/fetcher/index.d.ts +1 -0
  397. package/dist/core/fetcher/index.js +3 -1
  398. package/package.json +6 -4
  399. package/api/resources/bulk/types/InboundBulkMessageApiV1.d.ts +0 -13
  400. package/api/resources/bulk/types/InboundBulkMessageApiV2.d.ts +0 -4
  401. package/api/resources/tokenManagement/client/Client.d.ts +0 -46
  402. package/api/resources/tokenManagement/types/GetUserTokenResponse.d.ts +0 -9
  403. package/api/resources/userPreferences/client/Client.d.ts +0 -36
  404. package/api/resources/userPreferences/types/index.d.ts +0 -4
  405. package/dist/api/resources/bulk/types/BulkRunJobParams.d.ts +0 -6
  406. package/dist/api/resources/bulk/types/InboundBulkMessageApiV1.d.ts +0 -13
  407. package/dist/api/resources/bulk/types/InboundBulkMessageApiV2.d.ts +0 -4
  408. package/dist/api/resources/tokenManagement/client/Client.d.ts +0 -46
  409. package/dist/api/resources/tokenManagement/types/GetUserTokenResponse.d.ts +0 -9
  410. package/dist/api/resources/userPreferences/client/Client.d.ts +0 -36
  411. package/dist/api/resources/userPreferences/types/index.d.ts +0 -4
  412. /package/api/resources/audiences/client/requests/{ListAudienceMembersRequest.js → AudienceMembersListParams.js} +0 -0
  413. /package/api/resources/audiences/client/requests/{ListAudiencesRequest.js → AudienceUpdateParams.js} +0 -0
  414. /package/api/resources/audiences/{types/AudiencePutResponse.js → client/requests/AudiencesListParams.js} +0 -0
  415. /package/api/resources/audiences/types/{AudienceRequest.js → AudienceUpdateResponse.js} +0 -0
  416. /package/api/resources/authTokens/{types/AuthIssueTokenParameters.js → client/requests/IssueTokenParams.js} +0 -0
  417. /package/api/resources/{tokenManagement/client → authTokens/client/requests}/index.js +0 -0
  418. /package/api/resources/authTokens/types/{AuthIssueTokenResponse.js → IssueTokenResponse.js} +0 -0
  419. /package/api/resources/brands/{types/BrandPutParameters.js → client/requests/BrandUpdateParameters.js} +0 -0
  420. /package/api/resources/bulk/{types → client/requests}/BulkCreateJobParams.js +0 -0
  421. /package/api/resources/{userPreferences/client → bulk/client/requests}/index.js +0 -0
  422. /package/api/resources/bulk/types/{BulkRunJobParams.js → InboundBulkContentMessage.js} +0 -0
  423. /package/api/resources/bulk/types/{InboundBulkMessageApiV1.js → InboundBulkMessageV1.js} +0 -0
  424. /package/api/resources/bulk/types/{InboundBulkMessageApiV2.js → InboundBulkMessageV2.js} +0 -0
  425. /package/api/resources/{tenants/types/CreateOrReplaceTenantRequest.js → bulk/types/InboundBulkTemplateMessage.js} +0 -0
  426. /package/api/resources/{tenants/types/CreateOrReplaceTenantResponse.js → notifications/client/requests/NotificationDraftUpdateVariationsParams.js} +0 -0
  427. /package/api/resources/{tokenManagement/types/DeleteUserTokenOpts.js → notifications/client/requests/NotificationListParams.js} +0 -0
  428. /package/api/resources/{tokenManagement/types/Device.js → notifications/client/requests/NotificationUpdateVariationsParams.js} +0 -0
  429. /package/api/resources/{tokenManagement/types/ExpiryDate.js → notifications/client/requests/SubmissionChecksReplaceParams.js} +0 -0
  430. /package/{dist/api/resources/tokenManagement/client → api/resources/notifications/client/requests}/index.js +0 -0
  431. /package/api/resources/{tokenManagement → notifications}/index.d.ts +0 -0
  432. /package/api/resources/{tokenManagement → notifications}/index.js +0 -0
  433. /package/api/resources/{tokenManagement/types/GetAllTokensResponse.js → notifications/types/BaseCheck.js} +0 -0
  434. /package/api/resources/{tokenManagement/types/GetUserTokenOpts.js → notifications/types/Check.js} +0 -0
  435. /package/api/resources/{tokenManagement/types/GetUserTokenResponse.js → notifications/types/MessageRouting.js} +0 -0
  436. /package/api/resources/{tokenManagement/types/GetUserTokensOpts.js → notifications/types/MessageRoutingChannel.js} +0 -0
  437. /package/api/resources/{tokenManagement/types/PatchOperation.js → notifications/types/Notification.js} +0 -0
  438. /package/api/resources/{tokenManagement/types/PatchUserTokenOpts.js → notifications/types/NotificationBlock.js} +0 -0
  439. /package/api/resources/{tokenManagement/types/PutUserTokenOpts.js → notifications/types/NotificationChannel.js} +0 -0
  440. /package/api/resources/{tokenManagement/types/PutUserTokensOpts.js → notifications/types/NotificationChannelContent.js} +0 -0
  441. /package/api/resources/{tokenManagement/types/Tracking.js → notifications/types/NotificationContent.js} +0 -0
  442. /package/api/resources/{tokenManagement/types/UserToken.js → notifications/types/NotificationContentHierarchy.js} +0 -0
  443. /package/api/resources/{userPreferences/types/TopicPreference.js → notifications/types/NotificationGetContentResponse.js} +0 -0
  444. /package/api/resources/{userPreferences/types/UpdateSubscriptionTopicRequest.js → notifications/types/NotificationListResponse.js} +0 -0
  445. /package/api/resources/{userPreferences/types/UpdateSubscriptionTopicResponse.js → notifications/types/SubmissionChecksGetResponse.js} +0 -0
  446. /package/api/resources/{userPreferences/types/UserPreferences.js → notifications/types/SubmissionChecksReplaceResponse.js} +0 -0
  447. /package/{dist/api/resources/audiences/client/requests/ListAudienceMembersRequest.js → api/resources/tenants/client/requests/TenantCreateOrReplaceParams.js} +0 -0
  448. /package/{dist/api/resources/userPreferences/client → api/resources/tenants/client/requests}/index.js +0 -0
  449. /package/{dist/api/resources/audiences/client/requests/ListAudiencesRequest.js → api/resources/tenants/types/Tenant.js} +0 -0
  450. /package/{dist/api/resources/audiences/types/AudiencePutResponse.js → api/resources/tenants/types/TenantListResponse.js} +0 -0
  451. /package/api/resources/{tokenManagement → users}/client/index.d.ts +0 -0
  452. /package/{dist/api/resources/audiences/types/AudienceRequest.js → api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.js} +0 -0
  453. /package/api/resources/{userPreferences → users/resources/preferences}/index.d.ts +0 -0
  454. /package/api/resources/{userPreferences → users/resources/preferences}/index.js +0 -0
  455. /package/{dist/api/resources/userPreferences → api/resources/users/resources/preferences}/types/TopicPreference.js +0 -0
  456. /package/{dist/api/resources/authTokens/types/AuthIssueTokenParameters.js → api/resources/users/resources/preferences/types/UserPreferencesGetResponse.js} +0 -0
  457. /package/{dist/api/resources/authTokens/types/AuthIssueTokenResponse.js → api/resources/users/resources/preferences/types/UserPreferencesListResponse.js} +0 -0
  458. /package/{dist/api/resources/brands/types/BrandPutParameters.js → api/resources/users/resources/preferences/types/UserPreferencesUpdateResponse.js} +0 -0
  459. /package/{dist/api/resources/bulk/types/BulkCreateJobParams.js → api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.js} +0 -0
  460. /package/{dist/api/resources/bulk/types/BulkRunJobParams.js → api/resources/users/resources/tenants/client/requests/AddUserToSingleTenantsParams.js} +0 -0
  461. /package/{dist/api/resources/bulk/types/InboundBulkMessageApiV1.js → api/resources/users/resources/tenants/client/requests/ListTenantsForUserParams.js} +0 -0
  462. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tenants}/index.d.ts +0 -0
  463. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tenants}/index.js +0 -0
  464. /package/{dist/api/resources/bulk/types/InboundBulkMessageApiV2.js → api/resources/users/resources/tenants/types/AddUserToSingleTenantsParamsProfile.js} +0 -0
  465. /package/{dist/api/resources/tenants/types/CreateOrReplaceTenantRequest.js → api/resources/users/resources/tenants/types/ListTenantsForUserResponse.js} +0 -0
  466. /package/{dist/api/resources/tenants/types/CreateOrReplaceTenantResponse.js → api/resources/users/resources/tenants/types/UserTenantAssociation.js} +0 -0
  467. /package/api/resources/{userPreferences → users/resources/tokens}/client/index.d.ts +0 -0
  468. /package/{dist/api/resources/userPreferences → api/resources/users/resources/tokens}/index.d.ts +0 -0
  469. /package/{dist/api/resources/userPreferences → api/resources/users/resources/tokens}/index.js +0 -0
  470. /package/api/resources/{tokenManagement → users/resources/tokens}/types/DeleteUserTokenOpts.d.ts +0 -0
  471. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/DeleteUserTokenOpts.js +0 -0
  472. /package/api/resources/{tokenManagement → users/resources/tokens}/types/Device.d.ts +0 -0
  473. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/Device.js +0 -0
  474. /package/api/resources/{tokenManagement → users/resources/tokens}/types/ExpiryDate.d.ts +0 -0
  475. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/ExpiryDate.js +0 -0
  476. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/GetAllTokensResponse.js +0 -0
  477. /package/api/resources/{tokenManagement → users/resources/tokens}/types/GetUserTokenOpts.d.ts +0 -0
  478. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/GetUserTokenOpts.js +0 -0
  479. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/GetUserTokenResponse.js +0 -0
  480. /package/api/resources/{tokenManagement → users/resources/tokens}/types/GetUserTokensOpts.d.ts +0 -0
  481. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/GetUserTokensOpts.js +0 -0
  482. /package/api/resources/{tokenManagement → users/resources/tokens}/types/PatchOp.d.ts +0 -0
  483. /package/api/resources/{tokenManagement → users/resources/tokens}/types/PatchOp.js +0 -0
  484. /package/api/resources/{tokenManagement → users/resources/tokens}/types/PatchOperation.d.ts +0 -0
  485. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/PatchOperation.js +0 -0
  486. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/PatchUserTokenOpts.js +0 -0
  487. /package/api/resources/{tokenManagement → users/resources/tokens}/types/ProviderKey.d.ts +0 -0
  488. /package/api/resources/{tokenManagement → users/resources/tokens}/types/ProviderKey.js +0 -0
  489. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/PutUserTokenOpts.js +0 -0
  490. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/PutUserTokensOpts.js +0 -0
  491. /package/api/resources/{tokenManagement → users/resources/tokens}/types/TokenStatus.d.ts +0 -0
  492. /package/api/resources/{tokenManagement → users/resources/tokens}/types/TokenStatus.js +0 -0
  493. /package/api/resources/{tokenManagement → users/resources/tokens}/types/Tracking.d.ts +0 -0
  494. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/Tracking.js +0 -0
  495. /package/{dist/api/resources/tokenManagement → api/resources/users/resources/tokens}/types/UserToken.js +0 -0
  496. /package/api/resources/{tokenManagement → users/resources/tokens}/types/index.d.ts +0 -0
  497. /package/api/resources/{tokenManagement → users/resources/tokens}/types/index.js +0 -0
  498. /package/dist/api/resources/{userPreferences/types/UpdateSubscriptionTopicRequest.js → audiences/client/requests/AudienceMembersListParams.js} +0 -0
  499. /package/dist/api/resources/{userPreferences/types/UpdateSubscriptionTopicResponse.js → audiences/client/requests/AudienceUpdateParams.js} +0 -0
  500. /package/dist/api/resources/{userPreferences/types/UserPreferences.js → audiences/client/requests/AudiencesListParams.js} +0 -0
  501. /package/dist/api/resources/{tokenManagement → users}/client/index.d.ts +0 -0
  502. /package/dist/api/resources/{userPreferences → users/resources/tokens}/client/index.d.ts +0 -0
  503. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/DeleteUserTokenOpts.d.ts +0 -0
  504. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/Device.d.ts +0 -0
  505. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/ExpiryDate.d.ts +0 -0
  506. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/GetUserTokenOpts.d.ts +0 -0
  507. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/GetUserTokensOpts.d.ts +0 -0
  508. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/PatchOp.d.ts +0 -0
  509. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/PatchOp.js +0 -0
  510. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/PatchOperation.d.ts +0 -0
  511. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/ProviderKey.d.ts +0 -0
  512. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/ProviderKey.js +0 -0
  513. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/TokenStatus.d.ts +0 -0
  514. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/TokenStatus.js +0 -0
  515. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/Tracking.d.ts +0 -0
  516. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/index.d.ts +0 -0
  517. /package/dist/api/resources/{tokenManagement → users/resources/tokens}/types/index.js +0 -0
@@ -0,0 +1,392 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.Notifications = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
43
+ const core = __importStar(require("../../../../core"));
44
+ const url_join_1 = __importDefault(require("url-join"));
45
+ const errors = __importStar(require("../../../../errors"));
46
+ class Notifications {
47
+ constructor(_options = {}) {
48
+ this._options = _options;
49
+ }
50
+ list(request = {}, requestOptions) {
51
+ var _a;
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const { cursor } = request;
54
+ const _queryParams = {};
55
+ if (cursor != null) {
56
+ _queryParams["cursor"] = cursor;
57
+ }
58
+ const _response = yield core.fetcher({
59
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CourierEnvironment.Production, "/notifications"),
60
+ method: "GET",
61
+ headers: {
62
+ Authorization: yield this._getAuthorizationHeader(),
63
+ "X-Fern-Language": "JavaScript",
64
+ "X-Fern-SDK-Name": "@trycourier/courier",
65
+ "X-Fern-SDK-Version": "v6.0.3",
66
+ },
67
+ contentType: "application/json",
68
+ queryParameters: _queryParams,
69
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
70
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
71
+ });
72
+ if (_response.ok) {
73
+ return _response.body;
74
+ }
75
+ if (_response.error.reason === "status-code") {
76
+ throw new errors.CourierError({
77
+ statusCode: _response.error.statusCode,
78
+ body: _response.error.body,
79
+ });
80
+ }
81
+ switch (_response.error.reason) {
82
+ case "non-json":
83
+ throw new errors.CourierError({
84
+ statusCode: _response.error.statusCode,
85
+ body: _response.error.rawBody,
86
+ });
87
+ case "timeout":
88
+ throw new errors.CourierTimeoutError();
89
+ case "unknown":
90
+ throw new errors.CourierError({
91
+ message: _response.error.errorMessage,
92
+ });
93
+ }
94
+ });
95
+ }
96
+ getContent(id, requestOptions) {
97
+ var _a;
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const _response = yield core.fetcher({
100
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CourierEnvironment.Production, `/notifications/${id}/content`),
101
+ method: "GET",
102
+ headers: {
103
+ Authorization: yield this._getAuthorizationHeader(),
104
+ "X-Fern-Language": "JavaScript",
105
+ "X-Fern-SDK-Name": "@trycourier/courier",
106
+ "X-Fern-SDK-Version": "v6.0.3",
107
+ },
108
+ contentType: "application/json",
109
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
110
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
111
+ });
112
+ if (_response.ok) {
113
+ return _response.body;
114
+ }
115
+ if (_response.error.reason === "status-code") {
116
+ throw new errors.CourierError({
117
+ statusCode: _response.error.statusCode,
118
+ body: _response.error.body,
119
+ });
120
+ }
121
+ switch (_response.error.reason) {
122
+ case "non-json":
123
+ throw new errors.CourierError({
124
+ statusCode: _response.error.statusCode,
125
+ body: _response.error.rawBody,
126
+ });
127
+ case "timeout":
128
+ throw new errors.CourierTimeoutError();
129
+ case "unknown":
130
+ throw new errors.CourierError({
131
+ message: _response.error.errorMessage,
132
+ });
133
+ }
134
+ });
135
+ }
136
+ getDraftContent(id, requestOptions) {
137
+ var _a;
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ const _response = yield core.fetcher({
140
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CourierEnvironment.Production, `/notifications/${id}/draft/content`),
141
+ method: "GET",
142
+ headers: {
143
+ Authorization: yield this._getAuthorizationHeader(),
144
+ "X-Fern-Language": "JavaScript",
145
+ "X-Fern-SDK-Name": "@trycourier/courier",
146
+ "X-Fern-SDK-Version": "v6.0.3",
147
+ },
148
+ contentType: "application/json",
149
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
150
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
151
+ });
152
+ if (_response.ok) {
153
+ return _response.body;
154
+ }
155
+ if (_response.error.reason === "status-code") {
156
+ throw new errors.CourierError({
157
+ statusCode: _response.error.statusCode,
158
+ body: _response.error.body,
159
+ });
160
+ }
161
+ switch (_response.error.reason) {
162
+ case "non-json":
163
+ throw new errors.CourierError({
164
+ statusCode: _response.error.statusCode,
165
+ body: _response.error.rawBody,
166
+ });
167
+ case "timeout":
168
+ throw new errors.CourierTimeoutError();
169
+ case "unknown":
170
+ throw new errors.CourierError({
171
+ message: _response.error.errorMessage,
172
+ });
173
+ }
174
+ });
175
+ }
176
+ updateVariations(id, request = {}, requestOptions) {
177
+ var _a;
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ const _response = yield core.fetcher({
180
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CourierEnvironment.Production, `/notifications/${id}/variations`),
181
+ method: "POST",
182
+ headers: {
183
+ Authorization: yield this._getAuthorizationHeader(),
184
+ "X-Fern-Language": "JavaScript",
185
+ "X-Fern-SDK-Name": "@trycourier/courier",
186
+ "X-Fern-SDK-Version": "v6.0.3",
187
+ },
188
+ contentType: "application/json",
189
+ body: request,
190
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
191
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
192
+ });
193
+ if (_response.ok) {
194
+ return;
195
+ }
196
+ if (_response.error.reason === "status-code") {
197
+ throw new errors.CourierError({
198
+ statusCode: _response.error.statusCode,
199
+ body: _response.error.body,
200
+ });
201
+ }
202
+ switch (_response.error.reason) {
203
+ case "non-json":
204
+ throw new errors.CourierError({
205
+ statusCode: _response.error.statusCode,
206
+ body: _response.error.rawBody,
207
+ });
208
+ case "timeout":
209
+ throw new errors.CourierTimeoutError();
210
+ case "unknown":
211
+ throw new errors.CourierError({
212
+ message: _response.error.errorMessage,
213
+ });
214
+ }
215
+ });
216
+ }
217
+ updateDraftVariations(id, request = {}, requestOptions) {
218
+ var _a;
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ const _response = yield core.fetcher({
221
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CourierEnvironment.Production, `/notifications/${id}/draft/variations`),
222
+ method: "POST",
223
+ headers: {
224
+ Authorization: yield this._getAuthorizationHeader(),
225
+ "X-Fern-Language": "JavaScript",
226
+ "X-Fern-SDK-Name": "@trycourier/courier",
227
+ "X-Fern-SDK-Version": "v6.0.3",
228
+ },
229
+ contentType: "application/json",
230
+ body: request,
231
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
232
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
233
+ });
234
+ if (_response.ok) {
235
+ return;
236
+ }
237
+ if (_response.error.reason === "status-code") {
238
+ throw new errors.CourierError({
239
+ statusCode: _response.error.statusCode,
240
+ body: _response.error.body,
241
+ });
242
+ }
243
+ switch (_response.error.reason) {
244
+ case "non-json":
245
+ throw new errors.CourierError({
246
+ statusCode: _response.error.statusCode,
247
+ body: _response.error.rawBody,
248
+ });
249
+ case "timeout":
250
+ throw new errors.CourierTimeoutError();
251
+ case "unknown":
252
+ throw new errors.CourierError({
253
+ message: _response.error.errorMessage,
254
+ });
255
+ }
256
+ });
257
+ }
258
+ getSubmissionChecks(id, submissionId, requestOptions) {
259
+ var _a;
260
+ return __awaiter(this, void 0, void 0, function* () {
261
+ const _response = yield core.fetcher({
262
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CourierEnvironment.Production, `/notifications/${id}/${submissionId}/checks`),
263
+ method: "GET",
264
+ headers: {
265
+ Authorization: yield this._getAuthorizationHeader(),
266
+ "X-Fern-Language": "JavaScript",
267
+ "X-Fern-SDK-Name": "@trycourier/courier",
268
+ "X-Fern-SDK-Version": "v6.0.3",
269
+ },
270
+ contentType: "application/json",
271
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
272
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
273
+ });
274
+ if (_response.ok) {
275
+ return _response.body;
276
+ }
277
+ if (_response.error.reason === "status-code") {
278
+ throw new errors.CourierError({
279
+ statusCode: _response.error.statusCode,
280
+ body: _response.error.body,
281
+ });
282
+ }
283
+ switch (_response.error.reason) {
284
+ case "non-json":
285
+ throw new errors.CourierError({
286
+ statusCode: _response.error.statusCode,
287
+ body: _response.error.rawBody,
288
+ });
289
+ case "timeout":
290
+ throw new errors.CourierTimeoutError();
291
+ case "unknown":
292
+ throw new errors.CourierError({
293
+ message: _response.error.errorMessage,
294
+ });
295
+ }
296
+ });
297
+ }
298
+ replaceSubmissionChecks(id, submissionId, request, requestOptions) {
299
+ var _a;
300
+ return __awaiter(this, void 0, void 0, function* () {
301
+ const _response = yield core.fetcher({
302
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CourierEnvironment.Production, `/notifications/${id}/${submissionId}/checks`),
303
+ method: "PUT",
304
+ headers: {
305
+ Authorization: yield this._getAuthorizationHeader(),
306
+ "X-Fern-Language": "JavaScript",
307
+ "X-Fern-SDK-Name": "@trycourier/courier",
308
+ "X-Fern-SDK-Version": "v6.0.3",
309
+ },
310
+ contentType: "application/json",
311
+ body: request,
312
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
313
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
314
+ });
315
+ if (_response.ok) {
316
+ return _response.body;
317
+ }
318
+ if (_response.error.reason === "status-code") {
319
+ throw new errors.CourierError({
320
+ statusCode: _response.error.statusCode,
321
+ body: _response.error.body,
322
+ });
323
+ }
324
+ switch (_response.error.reason) {
325
+ case "non-json":
326
+ throw new errors.CourierError({
327
+ statusCode: _response.error.statusCode,
328
+ body: _response.error.rawBody,
329
+ });
330
+ case "timeout":
331
+ throw new errors.CourierTimeoutError();
332
+ case "unknown":
333
+ throw new errors.CourierError({
334
+ message: _response.error.errorMessage,
335
+ });
336
+ }
337
+ });
338
+ }
339
+ cancelSubmission(id, submissionId, requestOptions) {
340
+ var _a;
341
+ return __awaiter(this, void 0, void 0, function* () {
342
+ const _response = yield core.fetcher({
343
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CourierEnvironment.Production, `/notifications/${id}/${submissionId}/checks`),
344
+ method: "DELETE",
345
+ headers: {
346
+ Authorization: yield this._getAuthorizationHeader(),
347
+ "X-Fern-Language": "JavaScript",
348
+ "X-Fern-SDK-Name": "@trycourier/courier",
349
+ "X-Fern-SDK-Version": "v6.0.3",
350
+ },
351
+ contentType: "application/json",
352
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
353
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
354
+ });
355
+ if (_response.ok) {
356
+ return;
357
+ }
358
+ if (_response.error.reason === "status-code") {
359
+ throw new errors.CourierError({
360
+ statusCode: _response.error.statusCode,
361
+ body: _response.error.body,
362
+ });
363
+ }
364
+ switch (_response.error.reason) {
365
+ case "non-json":
366
+ throw new errors.CourierError({
367
+ statusCode: _response.error.statusCode,
368
+ body: _response.error.rawBody,
369
+ });
370
+ case "timeout":
371
+ throw new errors.CourierTimeoutError();
372
+ case "unknown":
373
+ throw new errors.CourierError({
374
+ message: _response.error.errorMessage,
375
+ });
376
+ }
377
+ });
378
+ }
379
+ _getAuthorizationHeader() {
380
+ var _a;
381
+ return __awaiter(this, void 0, void 0, function* () {
382
+ const bearer = (_a = (yield core.Supplier.get(this._options.authorizationToken))) !== null && _a !== void 0 ? _a : process.env["COURIER_AUTH_TOKEN"];
383
+ if (bearer == null) {
384
+ throw new errors.CourierError({
385
+ message: "Please specify COURIER_AUTH_TOKEN when instantiating the client.",
386
+ });
387
+ }
388
+ return `Bearer ${bearer}`;
389
+ });
390
+ }
391
+ }
392
+ exports.Notifications = Notifications;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../../..";
5
+ export interface NotificationDraftUpdateVariationsParams {
6
+ blocks?: Courier.NotificationBlock[];
7
+ channels?: Courier.NotificationChannel[];
8
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface BulkRunJobParams {
5
- jobId: string;
4
+ export interface NotificationListParams {
5
+ cursor?: string;
6
6
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../../..";
5
+ export interface NotificationUpdateVariationsParams {
6
+ blocks?: Courier.NotificationBlock[];
7
+ channels?: Courier.NotificationChannel[];
8
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../../..";
5
+ export interface SubmissionChecksReplaceParams {
6
+ checks: Courier.BaseCheck[];
7
+ }
@@ -0,0 +1,4 @@
1
+ export { NotificationListParams } from "./NotificationListParams";
2
+ export { NotificationUpdateVariationsParams } from "./NotificationUpdateVariationsParams";
3
+ export { NotificationDraftUpdateVariationsParams } from "./NotificationDraftUpdateVariationsParams";
4
+ export { SubmissionChecksReplaceParams } from "./SubmissionChecksReplaceParams";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface BaseCheck {
6
+ id: string;
7
+ status: Courier.CheckStatus;
8
+ type: "custom";
9
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type BlockType = "action" | "divider" | "image" | "jsonnet" | "list" | "markdown" | "quote" | "template" | "text";
5
+ export declare const BlockType: {
6
+ readonly Action: "action";
7
+ readonly Divider: "divider";
8
+ readonly Image: "image";
9
+ readonly Jsonnet: "jsonnet";
10
+ readonly List: "list";
11
+ readonly Markdown: "markdown";
12
+ readonly Quote: "quote";
13
+ readonly Template: "template";
14
+ readonly Text: "text";
15
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BlockType = void 0;
7
+ exports.BlockType = {
8
+ Action: "action",
9
+ Divider: "divider",
10
+ Image: "image",
11
+ Jsonnet: "jsonnet",
12
+ List: "list",
13
+ Markdown: "markdown",
14
+ Quote: "quote",
15
+ Template: "template",
16
+ Text: "text",
17
+ };
@@ -2,6 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Courier from "../../..";
5
- export interface PatchUserTokenOpts {
6
- patch: Courier.PatchOperation[];
5
+ export interface Check extends Courier.BaseCheck {
6
+ updated: number;
7
7
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type CheckStatus = "RESOLVED" | "FAILED" | "PENDING";
5
+ export declare const CheckStatus: {
6
+ readonly Resolved: "RESOLVED";
7
+ readonly Failed: "FAILED";
8
+ readonly Pending: "PENDING";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CheckStatus = void 0;
7
+ exports.CheckStatus = {
8
+ Resolved: "RESOLVED",
9
+ Failed: "FAILED",
10
+ Pending: "PENDING",
11
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface MessageRouting {
6
+ method: Courier.MessageRoutingMethod;
7
+ channels: Courier.MessageRoutingChannel[];
8
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export declare type MessageRoutingChannel = string | Courier.MessageRouting;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type MessageRoutingMethod = "all" | "single";
5
+ export declare const MessageRoutingMethod: {
6
+ readonly All: "all";
7
+ readonly Single: "single";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MessageRoutingMethod = void 0;
7
+ exports.MessageRoutingMethod = {
8
+ All: "all",
9
+ Single: "single",
10
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface Notification {
6
+ created_at: number;
7
+ id: string;
8
+ routing: Courier.MessageRouting;
9
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface NotificationBlock {
6
+ alias?: string;
7
+ context?: string;
8
+ id: string;
9
+ type: Courier.BlockType;
10
+ content?: Courier.NotificationContent;
11
+ locales?: Record<string, Courier.NotificationContent>;
12
+ checksum?: string;
13
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface NotificationChannel {
6
+ id: string;
7
+ type?: string;
8
+ content?: Courier.NotificationChannelContent;
9
+ locales?: Record<string, Courier.NotificationChannelContent>;
10
+ checksum?: string;
11
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface NotificationChannelContent {
5
+ subject?: string;
6
+ title?: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export declare type NotificationContent = string | Courier.NotificationContentHierarchy;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface NotificationContentHierarchy {
5
+ parent?: string;
6
+ children?: string;
7
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface NotificationGetContentResponse {
6
+ blocks?: Courier.NotificationBlock[];
7
+ channels?: Courier.NotificationChannel[];
8
+ checksum?: string;
9
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface NotificationListResponse {
6
+ paging: Courier.Paging;
7
+ results: Courier.Notification[];
8
+ }