@trycourier/courier 6.1.0 → 6.1.2

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 (642) hide show
  1. package/Client.d.ts +31 -2
  2. package/Client.js +35 -6
  3. package/README.md +5 -5
  4. package/api/client/requests/SendMessageRequest.d.ts +28 -1
  5. package/api/client/requests/index.d.ts +1 -1
  6. package/api/resources/audiences/client/Client.d.ts +47 -1
  7. package/api/resources/audiences/client/Client.js +68 -12
  8. package/api/resources/audiences/client/requests/AudienceMembersListParams.d.ts +6 -0
  9. package/api/resources/audiences/client/requests/AudienceUpdateParams.d.ts +13 -1
  10. package/api/resources/audiences/client/requests/AudiencesListParams.d.ts +6 -0
  11. package/api/resources/audiences/client/requests/index.d.ts +3 -3
  12. package/api/resources/audiences/types/Audience.d.ts +1 -1
  13. package/api/resources/audiences/types/AudienceListResponse.d.ts +1 -1
  14. package/api/resources/audiences/types/AudienceMemberGetResponse.d.ts +1 -1
  15. package/api/resources/audiences/types/AudienceMemberListResponse.d.ts +1 -1
  16. package/api/resources/audiences/types/AudienceUpdateResponse.d.ts +1 -1
  17. package/api/resources/audiences/types/BaseFilterConfig.d.ts +1 -1
  18. package/api/resources/audiences/types/Filter.d.ts +1 -1
  19. package/api/resources/audiences/types/FilterConfig.d.ts +1 -1
  20. package/api/resources/audiences/types/NestedFilterConfig.d.ts +1 -1
  21. package/api/resources/audiences/types/Operator.d.ts +1 -1
  22. package/api/resources/audiences/types/SingleFilterConfig.d.ts +1 -1
  23. package/api/resources/auditEvents/client/Client.d.ts +15 -1
  24. package/api/resources/auditEvents/client/Client.js +23 -5
  25. package/api/resources/auditEvents/client/requests/ListAuditEventsRequest.d.ts +6 -0
  26. package/api/resources/auditEvents/client/requests/index.d.ts +1 -1
  27. package/api/resources/auditEvents/types/AuditEvent.d.ts +1 -1
  28. package/api/resources/auditEvents/types/ListAuditEventsResponse.d.ts +1 -1
  29. package/api/resources/authTokens/client/Client.d.ts +11 -2
  30. package/api/resources/authTokens/client/Client.js +15 -6
  31. package/api/resources/authTokens/client/requests/IssueTokenParams.d.ts +7 -0
  32. package/api/resources/authTokens/client/requests/index.d.ts +1 -1
  33. package/api/resources/automations/client/Client.d.ts +45 -2
  34. package/api/resources/automations/client/Client.js +54 -11
  35. package/api/resources/automations/types/AccessorType.d.ts +6 -0
  36. package/api/resources/automations/types/AccessorType.js +5 -0
  37. package/api/resources/automations/types/Automation.d.ts +1 -1
  38. package/api/resources/automations/types/AutomationAdHocInvokeParams.d.ts +1 -1
  39. package/api/resources/automations/types/AutomationAddToBatchMaxItemsType.d.ts +4 -0
  40. package/api/resources/automations/types/AutomationAddToBatchMaxItemsType.js +5 -0
  41. package/api/resources/automations/types/AutomationAddToBatchRetain.d.ts +34 -0
  42. package/api/resources/automations/types/AutomationAddToBatchRetain.js +5 -0
  43. package/api/resources/automations/types/AutomationAddToBatchRetainType.d.ts +10 -0
  44. package/api/resources/automations/types/AutomationAddToBatchRetainType.js +12 -0
  45. package/api/resources/automations/types/AutomationAddToBatchScope.d.ts +9 -0
  46. package/api/resources/automations/types/AutomationAddToBatchScope.js +11 -0
  47. package/api/resources/automations/types/AutomationAddToBatchStep.d.ts +39 -0
  48. package/api/resources/automations/types/AutomationAddToBatchStep.js +5 -0
  49. package/api/resources/automations/types/AutomationAddToDigestStep.d.ts +16 -0
  50. package/api/resources/automations/types/AutomationAddToDigestStep.js +5 -0
  51. package/api/resources/automations/types/AutomationCancelStep.d.ts +1 -1
  52. package/api/resources/automations/types/AutomationDelayStep.d.ts +4 -1
  53. package/api/resources/automations/types/AutomationFetchDataStep.d.ts +31 -0
  54. package/api/resources/automations/types/AutomationFetchDataStep.js +5 -0
  55. package/api/resources/automations/types/AutomationFetchDataWebhook.d.ts +11 -0
  56. package/api/resources/automations/types/AutomationFetchDataWebhook.js +5 -0
  57. package/api/resources/automations/types/AutomationFetchDataWebhookMethod.d.ts +8 -0
  58. package/api/resources/automations/types/AutomationFetchDataWebhookMethod.js +10 -0
  59. package/api/resources/automations/types/AutomationInvokeParams.d.ts +1 -1
  60. package/api/resources/automations/types/AutomationInvokeStep.d.ts +1 -1
  61. package/api/resources/automations/types/AutomationInvokeTemplateParams.d.ts +1 -1
  62. package/api/resources/automations/types/AutomationRunContext.d.ts +1 -1
  63. package/api/resources/automations/types/AutomationSendListStep.d.ts +1 -1
  64. package/api/resources/automations/types/AutomationSendStep.d.ts +1 -1
  65. package/api/resources/automations/types/AutomationStepOption.d.ts +2 -2
  66. package/api/resources/automations/types/AutomationThrottleOnThrottle.d.ts +7 -0
  67. package/api/resources/automations/types/AutomationThrottleOnThrottle.js +5 -0
  68. package/api/resources/automations/types/AutomationThrottleScope.d.ts +9 -0
  69. package/api/resources/automations/types/AutomationThrottleScope.js +11 -0
  70. package/api/resources/automations/types/AutomationThrottleStep.d.ts +31 -0
  71. package/api/resources/automations/types/AutomationThrottleStep.js +5 -0
  72. package/api/resources/automations/types/AutomationUpdateProfileStep.d.ts +1 -1
  73. package/api/resources/automations/types/AutomationV2SendStep.d.ts +1 -1
  74. package/api/resources/automations/types/index.d.ts +13 -1
  75. package/api/resources/automations/types/index.js +13 -1
  76. package/api/resources/brands/client/Client.d.ts +57 -2
  77. package/api/resources/brands/client/Client.js +77 -14
  78. package/api/resources/brands/client/requests/BrandUpdateParameters.d.ts +21 -1
  79. package/api/resources/brands/client/requests/ListBrandsRequest.d.ts +6 -0
  80. package/api/resources/brands/client/requests/index.d.ts +2 -2
  81. package/api/resources/brands/types/Brand.d.ts +1 -1
  82. package/api/resources/brands/types/BrandGetAllResponse.d.ts +1 -1
  83. package/api/resources/brands/types/BrandParameters.d.ts +1 -1
  84. package/api/resources/brands/types/BrandSettings.d.ts +1 -1
  85. package/api/resources/brands/types/BrandSnippets.d.ts +1 -1
  86. package/api/resources/brands/types/BrandsResponse.d.ts +1 -1
  87. package/api/resources/bulk/client/Client.d.ts +67 -2
  88. package/api/resources/bulk/client/Client.js +90 -21
  89. package/api/resources/bulk/client/requests/BulkCreateJobParams.d.ts +24 -1
  90. package/api/resources/bulk/client/requests/index.d.ts +1 -1
  91. package/api/resources/bulk/types/BulkGetJobResponse.d.ts +1 -1
  92. package/api/resources/bulk/types/BulkGetJobUsersResponse.d.ts +1 -1
  93. package/api/resources/bulk/types/BulkIngestUsersParams.d.ts +1 -1
  94. package/api/resources/bulk/types/BulkIngestUsersResponse.d.ts +1 -1
  95. package/api/resources/bulk/types/BulkMessageUserResponse.d.ts +1 -1
  96. package/api/resources/bulk/types/InboundBulkContentMessage.d.ts +1 -1
  97. package/api/resources/bulk/types/InboundBulkMessage.d.ts +1 -1
  98. package/api/resources/bulk/types/InboundBulkMessageUser.d.ts +1 -1
  99. package/api/resources/bulk/types/InboundBulkMessageV2.d.ts +1 -1
  100. package/api/resources/bulk/types/InboundBulkTemplateMessage.d.ts +1 -1
  101. package/api/resources/bulk/types/JobDetails.d.ts +1 -1
  102. package/api/resources/commons/errors/AlreadyExistsError.d.ts +2 -2
  103. package/api/resources/commons/errors/AlreadyExistsError.js +1 -1
  104. package/api/resources/commons/errors/BadRequestError.d.ts +2 -2
  105. package/api/resources/commons/errors/BadRequestError.js +1 -1
  106. package/api/resources/commons/errors/ConflictError.d.ts +2 -2
  107. package/api/resources/commons/errors/ConflictError.js +1 -1
  108. package/api/resources/commons/errors/MessageNotFoundError.d.ts +2 -2
  109. package/api/resources/commons/errors/MessageNotFoundError.js +1 -1
  110. package/api/resources/commons/errors/NotFoundError.d.ts +2 -2
  111. package/api/resources/commons/errors/NotFoundError.js +1 -1
  112. package/api/resources/commons/errors/PaymentRequiredError.d.ts +2 -2
  113. package/api/resources/commons/errors/PaymentRequiredError.js +1 -1
  114. package/api/resources/commons/types/AlreadyExists.d.ts +1 -1
  115. package/api/resources/commons/types/BadRequest.d.ts +1 -1
  116. package/api/resources/commons/types/ChannelPreference.d.ts +1 -1
  117. package/api/resources/commons/types/Conflict.d.ts +1 -1
  118. package/api/resources/commons/types/MessageNotFound.d.ts +1 -1
  119. package/api/resources/commons/types/NotFound.d.ts +1 -1
  120. package/api/resources/commons/types/NotificationPreferenceDetails.d.ts +1 -1
  121. package/api/resources/commons/types/NotificationPreferences.d.ts +1 -1
  122. package/api/resources/commons/types/PaymentRequired.d.ts +1 -1
  123. package/api/resources/commons/types/RecipientPreferences.d.ts +1 -1
  124. package/api/resources/commons/types/UserTenantAssociation.d.ts +4 -3
  125. package/api/resources/lists/client/Client.d.ts +197 -4
  126. package/api/resources/lists/client/Client.js +236 -25
  127. package/api/resources/lists/client/requests/AddSubscribersToList.d.ts +41 -0
  128. package/api/resources/lists/client/requests/AddSubscribersToList.js +5 -0
  129. package/api/resources/lists/client/requests/GetAllListsRequest.d.ts +7 -0
  130. package/api/resources/lists/client/requests/GetSubscriptionForListRequest.d.ts +6 -0
  131. package/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +32 -1
  132. package/api/resources/lists/client/requests/SubscribeUsersToListRequest.d.ts +41 -0
  133. package/api/resources/lists/client/requests/SubscribeUsersToListRequest.js +5 -0
  134. package/api/resources/lists/client/requests/index.d.ts +5 -3
  135. package/api/resources/lists/types/ListGetAllResponse.d.ts +1 -1
  136. package/api/resources/lists/types/ListGetSubscriptionsResponse.d.ts +1 -1
  137. package/api/resources/lists/types/ListPutParams.d.ts +1 -1
  138. package/api/resources/lists/types/ListSubscriptionRecipient.d.ts +1 -1
  139. package/api/resources/lists/types/PutSubscriptionsRecipient.d.ts +1 -1
  140. package/api/resources/messages/client/Client.d.ts +59 -2
  141. package/api/resources/messages/client/Client.js +110 -19
  142. package/api/resources/messages/client/requests/GetMessageHistoryRequest.d.ts +6 -0
  143. package/api/resources/messages/client/requests/ListMessagesRequest.d.ts +34 -3
  144. package/api/resources/messages/client/requests/index.d.ts +2 -2
  145. package/api/resources/messages/types/ListMessagesResponse.d.ts +1 -1
  146. package/api/resources/messages/types/MessageDetails.d.ts +1 -1
  147. package/api/resources/messages/types/MessageHistoryResponse.d.ts +1 -2
  148. package/api/resources/messages/types/MessageStatus.d.ts +4 -0
  149. package/api/resources/messages/types/MessageStatus.js +1 -0
  150. package/api/resources/messages/types/RenderOutput.d.ts +1 -1
  151. package/api/resources/messages/types/RenderOutputResponse.d.ts +1 -1
  152. package/api/resources/messages/types/RenderedMessageContent.d.ts +1 -1
  153. package/api/resources/notifications/client/Client.d.ts +113 -1
  154. package/api/resources/notifications/client/Client.js +145 -17
  155. package/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.d.ts +26 -1
  156. package/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -0
  157. package/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.d.ts +26 -1
  158. package/api/resources/notifications/client/requests/SubmissionChecksReplaceParams.d.ts +11 -1
  159. package/api/resources/notifications/client/requests/index.d.ts +4 -4
  160. package/api/resources/notifications/types/BaseCheck.d.ts +1 -1
  161. package/api/resources/notifications/types/Check.d.ts +1 -1
  162. package/api/resources/notifications/types/MessageRouting.d.ts +1 -1
  163. package/api/resources/notifications/types/MessageRoutingChannel.d.ts +1 -1
  164. package/api/resources/notifications/types/Notification.d.ts +5 -1
  165. package/api/resources/notifications/types/NotificationBlock.d.ts +1 -1
  166. package/api/resources/notifications/types/NotificationChannel.d.ts +1 -1
  167. package/api/resources/notifications/types/NotificationContent.d.ts +1 -1
  168. package/api/resources/notifications/types/NotificationGetContentResponse.d.ts +1 -1
  169. package/api/resources/notifications/types/NotificationListResponse.d.ts +1 -1
  170. package/api/resources/notifications/types/NotificationTag.d.ts +7 -0
  171. package/api/resources/notifications/types/NotificationTag.js +5 -0
  172. package/api/resources/notifications/types/NotificationTagData.d.ts +7 -0
  173. package/api/resources/notifications/types/NotificationTagData.js +5 -0
  174. package/api/resources/notifications/types/SubmissionChecksGetResponse.d.ts +1 -1
  175. package/api/resources/notifications/types/SubmissionChecksReplaceResponse.d.ts +1 -1
  176. package/api/resources/notifications/types/index.d.ts +2 -0
  177. package/api/resources/notifications/types/index.js +2 -0
  178. package/api/resources/profiles/client/Client.d.ts +71 -2
  179. package/api/resources/profiles/client/Client.js +102 -23
  180. package/api/resources/profiles/client/requests/GetListSubscriptionsRequest.d.ts +6 -0
  181. package/api/resources/profiles/client/requests/MergeProfileRequest.d.ts +10 -0
  182. package/api/resources/profiles/client/requests/ReplaceProfileRequest.d.ts +10 -0
  183. package/api/resources/profiles/client/requests/index.d.ts +3 -3
  184. package/api/resources/profiles/types/AirshipProfile.d.ts +1 -1
  185. package/api/resources/profiles/types/Discord.d.ts +1 -1
  186. package/api/resources/profiles/types/Expo.d.ts +1 -1
  187. package/api/resources/profiles/types/GetListSubscriptionsList.d.ts +1 -1
  188. package/api/resources/profiles/types/GetListSubscriptionsResponse.d.ts +1 -1
  189. package/api/resources/profiles/types/Intercom.d.ts +1 -1
  190. package/api/resources/profiles/types/MsTeams.d.ts +1 -1
  191. package/api/resources/profiles/types/MultipleTokens.d.ts +1 -1
  192. package/api/resources/profiles/types/ProfileGetResponse.d.ts +1 -1
  193. package/api/resources/profiles/types/SendToMsTeamsChannelId.d.ts +1 -1
  194. package/api/resources/profiles/types/SendToMsTeamsChannelName.d.ts +1 -1
  195. package/api/resources/profiles/types/SendToMsTeamsConversationId.d.ts +1 -1
  196. package/api/resources/profiles/types/SendToMsTeamsEmail.d.ts +1 -1
  197. package/api/resources/profiles/types/SendToMsTeamsUserId.d.ts +1 -1
  198. package/api/resources/profiles/types/SendToSlackChannel.d.ts +1 -1
  199. package/api/resources/profiles/types/SendToSlackEmail.d.ts +1 -1
  200. package/api/resources/profiles/types/SendToSlackUserId.d.ts +1 -1
  201. package/api/resources/profiles/types/Slack.d.ts +1 -1
  202. package/api/resources/profiles/types/SnoozeRule.d.ts +1 -1
  203. package/api/resources/profiles/types/SubscribeToListsRequest.d.ts +1 -1
  204. package/api/resources/profiles/types/SubscribeToListsRequestListObject.d.ts +1 -1
  205. package/api/resources/profiles/types/UserProfile.d.ts +1 -1
  206. package/api/resources/send/types/AudienceRecipient.d.ts +1 -1
  207. package/api/resources/send/types/BaseMessage.d.ts +1 -1
  208. package/api/resources/send/types/BaseMessageSendTo.d.ts +8 -0
  209. package/api/resources/send/types/BaseMessageSendTo.js +5 -0
  210. package/api/resources/send/types/BrandSettingsEmail.d.ts +1 -1
  211. package/api/resources/send/types/BrandSettingsInApp.d.ts +1 -1
  212. package/api/resources/send/types/BrandSettingsSocialPresence.d.ts +1 -1
  213. package/api/resources/send/types/BrandTemplateOverride.d.ts +1 -1
  214. package/api/resources/send/types/Channel.d.ts +1 -1
  215. package/api/resources/send/types/ChannelMetadata.d.ts +1 -1
  216. package/api/resources/send/types/Content.d.ts +1 -1
  217. package/api/resources/send/types/ContentMessage.d.ts +2 -4
  218. package/api/resources/send/types/ElementalActionNode.d.ts +1 -1
  219. package/api/resources/send/types/ElementalChannelNode.d.ts +1 -1
  220. package/api/resources/send/types/ElementalContent.d.ts +1 -1
  221. package/api/resources/send/types/ElementalDividerNode.d.ts +1 -1
  222. package/api/resources/send/types/ElementalGroupNode.d.ts +1 -1
  223. package/api/resources/send/types/ElementalImageNode.d.ts +1 -1
  224. package/api/resources/send/types/ElementalMetaNode.d.ts +1 -1
  225. package/api/resources/send/types/ElementalNode.d.ts +1 -1
  226. package/api/resources/send/types/ElementalQuoteNode.d.ts +1 -1
  227. package/api/resources/send/types/ElementalTextNode.d.ts +1 -1
  228. package/api/resources/send/types/EmailHeader.d.ts +1 -1
  229. package/api/resources/send/types/Expiry.d.ts +1 -1
  230. package/api/resources/send/types/IPreferences.d.ts +1 -1
  231. package/api/resources/send/types/IProfilePreferences.d.ts +1 -1
  232. package/api/resources/send/types/ListPatternRecipient.d.ts +1 -1
  233. package/api/resources/send/types/ListRecipient.d.ts +1 -1
  234. package/api/resources/send/types/Locales.d.ts +1 -1
  235. package/api/resources/send/types/Message.d.ts +1 -1
  236. package/api/resources/send/types/MessageChannelEmailOverride.d.ts +1 -1
  237. package/api/resources/send/types/MessageChannels.d.ts +1 -1
  238. package/api/resources/send/types/MessageMetadata.d.ts +1 -1
  239. package/api/resources/send/types/MessageProviders.d.ts +1 -1
  240. package/api/resources/send/types/MessageProvidersType.d.ts +1 -1
  241. package/api/resources/send/types/MessageRecipient.d.ts +1 -1
  242. package/api/resources/send/types/Metadata.d.ts +1 -1
  243. package/api/resources/send/types/MsTeamsRecipient.d.ts +1 -1
  244. package/api/resources/send/types/Preference.d.ts +1 -1
  245. package/api/resources/send/types/Recipient.d.ts +2 -2
  246. package/api/resources/send/types/RecipientData.d.ts +4 -0
  247. package/api/resources/send/types/RecipientData.js +5 -0
  248. package/api/resources/send/types/Routing.d.ts +1 -1
  249. package/api/resources/send/types/RoutingChannel.d.ts +1 -1
  250. package/api/resources/send/types/RoutingStrategyChannel.d.ts +1 -1
  251. package/api/resources/send/types/RoutingStrategyProvider.d.ts +1 -1
  252. package/api/resources/send/types/SlackRecipient.d.ts +1 -1
  253. package/api/resources/send/types/TemplateMessage.d.ts +2 -4
  254. package/api/resources/send/types/Timeout.d.ts +1 -1
  255. package/api/resources/send/types/UserRecipient.d.ts +1 -1
  256. package/api/resources/send/types/index.d.ts +2 -0
  257. package/api/resources/send/types/index.js +2 -0
  258. package/api/resources/templates/client/Client.d.ts +9 -1
  259. package/api/resources/templates/client/Client.js +13 -3
  260. package/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +6 -0
  261. package/api/resources/templates/client/requests/index.d.ts +1 -1
  262. package/api/resources/templates/types/ListTemplatesResponse.d.ts +1 -1
  263. package/api/resources/templates/types/NotificationTemplates.d.ts +1 -1
  264. package/api/resources/templates/types/RoutingStrategy.d.ts +1 -1
  265. package/api/resources/templates/types/Tag.d.ts +1 -1
  266. package/api/resources/tenants/client/Client.d.ts +82 -1
  267. package/api/resources/tenants/client/Client.js +190 -13
  268. package/api/resources/tenants/client/requests/ListTenantParams.d.ts +13 -1
  269. package/api/resources/tenants/client/requests/ListUsersForTenantParams.d.ts +7 -0
  270. package/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.d.ts +23 -2
  271. package/api/resources/tenants/client/requests/index.d.ts +3 -3
  272. package/api/resources/tenants/types/DefaultPreferences.d.ts +2 -2
  273. package/api/resources/tenants/types/ListUsersForTenantResponse.d.ts +1 -1
  274. package/api/resources/tenants/types/SubscriptionTopic.d.ts +2 -3
  275. package/api/resources/tenants/types/SubscriptionTopicNew.d.ts +11 -0
  276. package/api/resources/tenants/types/SubscriptionTopicNew.js +5 -0
  277. package/api/resources/tenants/types/TemplateProperty.d.ts +3 -0
  278. package/api/resources/tenants/types/Tenant.d.ts +2 -2
  279. package/api/resources/tenants/types/TenantListResponse.d.ts +1 -1
  280. package/api/resources/tenants/types/index.d.ts +1 -0
  281. package/api/resources/tenants/types/index.js +1 -0
  282. package/api/resources/translations/client/Client.d.ts +17 -0
  283. package/api/resources/translations/client/Client.js +28 -7
  284. package/api/resources/users/resources/preferences/client/Client.d.ts +31 -1
  285. package/api/resources/users/resources/preferences/client/Client.js +45 -9
  286. package/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.d.ts +12 -6
  287. package/api/resources/users/resources/preferences/client/requests/index.d.ts +1 -1
  288. package/api/resources/users/resources/preferences/types/TopicPreference.d.ts +1 -1
  289. package/api/resources/users/resources/preferences/types/TopicPreferenceUpdate.d.ts +10 -0
  290. package/api/resources/users/resources/preferences/types/TopicPreferenceUpdate.js +5 -0
  291. package/api/resources/users/resources/preferences/types/UserPreferencesGetResponse.d.ts +1 -1
  292. package/api/resources/users/resources/preferences/types/UserPreferencesListResponse.d.ts +1 -1
  293. package/api/resources/users/resources/preferences/types/index.d.ts +1 -0
  294. package/api/resources/users/resources/preferences/types/index.js +1 -0
  295. package/api/resources/users/resources/tenants/client/Client.d.ts +57 -2
  296. package/api/resources/users/resources/tenants/client/Client.js +78 -13
  297. package/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.d.ts +16 -1
  298. package/api/resources/users/resources/tenants/client/requests/AddUserToSingleTenantsParams.d.ts +11 -2
  299. package/api/resources/users/resources/tenants/client/requests/ListTenantsForUserParams.d.ts +7 -0
  300. package/api/resources/users/resources/tenants/client/requests/index.d.ts +3 -3
  301. package/api/resources/users/resources/tenants/types/AddUserToSingleTenantsParamsProfile.d.ts +3 -0
  302. package/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.d.ts +1 -1
  303. package/api/resources/users/resources/tokens/client/Client.d.ts +64 -1
  304. package/api/resources/users/resources/tokens/client/Client.js +86 -13
  305. package/api/resources/users/resources/tokens/types/GetAllTokensResponse.d.ts +1 -1
  306. package/api/resources/users/resources/tokens/types/GetUserTokenResponse.d.ts +1 -1
  307. package/api/resources/users/resources/tokens/types/PatchUserTokenOpts.d.ts +1 -1
  308. package/api/resources/users/resources/tokens/types/PutUserTokenOpts.d.ts +1 -1
  309. package/api/resources/users/resources/tokens/types/PutUserTokensOpts.d.ts +1 -1
  310. package/api/resources/users/resources/tokens/types/UserToken.d.ts +1 -1
  311. package/core/fetcher/Fetcher.d.ts +2 -2
  312. package/core/fetcher/Fetcher.js +60 -6
  313. package/core/index.d.ts +1 -0
  314. package/core/index.js +1 -0
  315. package/core/runtime/index.d.ts +1 -0
  316. package/core/runtime/index.js +5 -0
  317. package/core/runtime/runtime.d.ts +8 -0
  318. package/core/runtime/runtime.js +82 -0
  319. package/dist/Client.d.ts +31 -2
  320. package/dist/Client.js +35 -6
  321. package/dist/api/client/requests/SendMessageRequest.d.ts +28 -1
  322. package/dist/api/client/requests/index.d.ts +1 -1
  323. package/dist/api/resources/audiences/client/Client.d.ts +47 -1
  324. package/dist/api/resources/audiences/client/Client.js +68 -12
  325. package/dist/api/resources/audiences/client/requests/AudienceMembersListParams.d.ts +6 -0
  326. package/dist/api/resources/audiences/client/requests/AudienceUpdateParams.d.ts +13 -1
  327. package/dist/api/resources/audiences/client/requests/AudiencesListParams.d.ts +6 -0
  328. package/dist/api/resources/audiences/client/requests/index.d.ts +3 -3
  329. package/dist/api/resources/audiences/types/Audience.d.ts +1 -1
  330. package/dist/api/resources/audiences/types/AudienceListResponse.d.ts +1 -1
  331. package/dist/api/resources/audiences/types/AudienceMemberGetResponse.d.ts +1 -1
  332. package/dist/api/resources/audiences/types/AudienceMemberListResponse.d.ts +1 -1
  333. package/dist/api/resources/audiences/types/AudienceUpdateResponse.d.ts +1 -1
  334. package/dist/api/resources/audiences/types/BaseFilterConfig.d.ts +1 -1
  335. package/dist/api/resources/audiences/types/Filter.d.ts +1 -1
  336. package/dist/api/resources/audiences/types/FilterConfig.d.ts +1 -1
  337. package/dist/api/resources/audiences/types/NestedFilterConfig.d.ts +1 -1
  338. package/dist/api/resources/audiences/types/Operator.d.ts +1 -1
  339. package/dist/api/resources/audiences/types/SingleFilterConfig.d.ts +1 -1
  340. package/dist/api/resources/auditEvents/client/Client.d.ts +15 -1
  341. package/dist/api/resources/auditEvents/client/Client.js +23 -5
  342. package/dist/api/resources/auditEvents/client/requests/ListAuditEventsRequest.d.ts +6 -0
  343. package/dist/api/resources/auditEvents/client/requests/index.d.ts +1 -1
  344. package/dist/api/resources/auditEvents/types/AuditEvent.d.ts +1 -1
  345. package/dist/api/resources/auditEvents/types/ListAuditEventsResponse.d.ts +1 -1
  346. package/dist/api/resources/authTokens/client/Client.d.ts +11 -2
  347. package/dist/api/resources/authTokens/client/Client.js +15 -6
  348. package/dist/api/resources/authTokens/client/requests/IssueTokenParams.d.ts +7 -0
  349. package/dist/api/resources/authTokens/client/requests/index.d.ts +1 -1
  350. package/dist/api/resources/automations/client/Client.d.ts +45 -2
  351. package/dist/api/resources/automations/client/Client.js +54 -11
  352. package/dist/api/resources/automations/types/AccessorType.d.ts +6 -0
  353. package/dist/api/resources/automations/types/AccessorType.js +5 -0
  354. package/dist/api/resources/automations/types/Automation.d.ts +1 -1
  355. package/dist/api/resources/automations/types/AutomationAdHocInvokeParams.d.ts +1 -1
  356. package/dist/api/resources/automations/types/AutomationAddToBatchMaxItemsType.d.ts +4 -0
  357. package/dist/api/resources/automations/types/AutomationAddToBatchMaxItemsType.js +5 -0
  358. package/dist/api/resources/automations/types/AutomationAddToBatchRetain.d.ts +34 -0
  359. package/dist/api/resources/automations/types/AutomationAddToBatchRetain.js +5 -0
  360. package/dist/api/resources/automations/types/AutomationAddToBatchRetainType.d.ts +10 -0
  361. package/dist/api/resources/automations/types/AutomationAddToBatchRetainType.js +12 -0
  362. package/dist/api/resources/automations/types/AutomationAddToBatchScope.d.ts +9 -0
  363. package/dist/api/resources/automations/types/AutomationAddToBatchScope.js +11 -0
  364. package/dist/api/resources/automations/types/AutomationAddToBatchStep.d.ts +39 -0
  365. package/dist/api/resources/automations/types/AutomationAddToBatchStep.js +5 -0
  366. package/dist/api/resources/automations/types/AutomationAddToDigestStep.d.ts +16 -0
  367. package/dist/api/resources/automations/types/AutomationAddToDigestStep.js +5 -0
  368. package/dist/api/resources/automations/types/AutomationCancelStep.d.ts +1 -1
  369. package/dist/api/resources/automations/types/AutomationDelayStep.d.ts +4 -1
  370. package/dist/api/resources/automations/types/AutomationFetchDataStep.d.ts +31 -0
  371. package/dist/api/resources/automations/types/AutomationFetchDataStep.js +5 -0
  372. package/dist/api/resources/automations/types/AutomationFetchDataWebhook.d.ts +11 -0
  373. package/dist/api/resources/automations/types/AutomationFetchDataWebhook.js +5 -0
  374. package/dist/api/resources/automations/types/AutomationFetchDataWebhookMethod.d.ts +8 -0
  375. package/dist/api/resources/automations/types/AutomationFetchDataWebhookMethod.js +10 -0
  376. package/dist/api/resources/automations/types/AutomationInvokeParams.d.ts +1 -1
  377. package/dist/api/resources/automations/types/AutomationInvokeStep.d.ts +1 -1
  378. package/dist/api/resources/automations/types/AutomationInvokeTemplateParams.d.ts +1 -1
  379. package/dist/api/resources/automations/types/AutomationRunContext.d.ts +1 -1
  380. package/dist/api/resources/automations/types/AutomationSendListStep.d.ts +1 -1
  381. package/dist/api/resources/automations/types/AutomationSendStep.d.ts +1 -1
  382. package/dist/api/resources/automations/types/AutomationStepOption.d.ts +2 -2
  383. package/dist/api/resources/automations/types/AutomationThrottleOnThrottle.d.ts +7 -0
  384. package/dist/api/resources/automations/types/AutomationThrottleOnThrottle.js +5 -0
  385. package/dist/api/resources/automations/types/AutomationThrottleScope.d.ts +9 -0
  386. package/dist/api/resources/automations/types/AutomationThrottleScope.js +11 -0
  387. package/dist/api/resources/automations/types/AutomationThrottleStep.d.ts +31 -0
  388. package/dist/api/resources/automations/types/AutomationThrottleStep.js +5 -0
  389. package/dist/api/resources/automations/types/AutomationUpdateProfileStep.d.ts +1 -1
  390. package/dist/api/resources/automations/types/AutomationV2SendStep.d.ts +1 -1
  391. package/dist/api/resources/automations/types/index.d.ts +13 -1
  392. package/dist/api/resources/automations/types/index.js +13 -1
  393. package/dist/api/resources/brands/client/Client.d.ts +57 -2
  394. package/dist/api/resources/brands/client/Client.js +77 -14
  395. package/dist/api/resources/brands/client/requests/BrandUpdateParameters.d.ts +21 -1
  396. package/dist/api/resources/brands/client/requests/ListBrandsRequest.d.ts +6 -0
  397. package/dist/api/resources/brands/client/requests/index.d.ts +2 -2
  398. package/dist/api/resources/brands/types/Brand.d.ts +1 -1
  399. package/dist/api/resources/brands/types/BrandGetAllResponse.d.ts +1 -1
  400. package/dist/api/resources/brands/types/BrandParameters.d.ts +1 -1
  401. package/dist/api/resources/brands/types/BrandSettings.d.ts +1 -1
  402. package/dist/api/resources/brands/types/BrandSnippets.d.ts +1 -1
  403. package/dist/api/resources/brands/types/BrandsResponse.d.ts +1 -1
  404. package/dist/api/resources/bulk/client/Client.d.ts +67 -2
  405. package/dist/api/resources/bulk/client/Client.js +90 -21
  406. package/dist/api/resources/bulk/client/requests/BulkCreateJobParams.d.ts +24 -1
  407. package/dist/api/resources/bulk/client/requests/index.d.ts +1 -1
  408. package/dist/api/resources/bulk/types/BulkGetJobResponse.d.ts +1 -1
  409. package/dist/api/resources/bulk/types/BulkGetJobUsersResponse.d.ts +1 -1
  410. package/dist/api/resources/bulk/types/BulkIngestUsersParams.d.ts +1 -1
  411. package/dist/api/resources/bulk/types/BulkIngestUsersResponse.d.ts +1 -1
  412. package/dist/api/resources/bulk/types/BulkMessageUserResponse.d.ts +1 -1
  413. package/dist/api/resources/bulk/types/InboundBulkContentMessage.d.ts +1 -1
  414. package/dist/api/resources/bulk/types/InboundBulkMessage.d.ts +1 -1
  415. package/dist/api/resources/bulk/types/InboundBulkMessageUser.d.ts +1 -1
  416. package/dist/api/resources/bulk/types/InboundBulkMessageV2.d.ts +1 -1
  417. package/dist/api/resources/bulk/types/InboundBulkTemplateMessage.d.ts +1 -1
  418. package/dist/api/resources/bulk/types/JobDetails.d.ts +1 -1
  419. package/dist/api/resources/commons/errors/AlreadyExistsError.d.ts +2 -2
  420. package/dist/api/resources/commons/errors/AlreadyExistsError.js +1 -1
  421. package/dist/api/resources/commons/errors/BadRequestError.d.ts +2 -2
  422. package/dist/api/resources/commons/errors/BadRequestError.js +1 -1
  423. package/dist/api/resources/commons/errors/ConflictError.d.ts +2 -2
  424. package/dist/api/resources/commons/errors/ConflictError.js +1 -1
  425. package/dist/api/resources/commons/errors/MessageNotFoundError.d.ts +2 -2
  426. package/dist/api/resources/commons/errors/MessageNotFoundError.js +1 -1
  427. package/dist/api/resources/commons/errors/NotFoundError.d.ts +2 -2
  428. package/dist/api/resources/commons/errors/NotFoundError.js +1 -1
  429. package/dist/api/resources/commons/errors/PaymentRequiredError.d.ts +2 -2
  430. package/dist/api/resources/commons/errors/PaymentRequiredError.js +1 -1
  431. package/dist/api/resources/commons/types/AlreadyExists.d.ts +1 -1
  432. package/dist/api/resources/commons/types/BadRequest.d.ts +1 -1
  433. package/dist/api/resources/commons/types/ChannelPreference.d.ts +1 -1
  434. package/dist/api/resources/commons/types/Conflict.d.ts +1 -1
  435. package/dist/api/resources/commons/types/MessageNotFound.d.ts +1 -1
  436. package/dist/api/resources/commons/types/NotFound.d.ts +1 -1
  437. package/dist/api/resources/commons/types/NotificationPreferenceDetails.d.ts +1 -1
  438. package/dist/api/resources/commons/types/NotificationPreferences.d.ts +1 -1
  439. package/dist/api/resources/commons/types/PaymentRequired.d.ts +1 -1
  440. package/dist/api/resources/commons/types/RecipientPreferences.d.ts +1 -1
  441. package/dist/api/resources/commons/types/UserTenantAssociation.d.ts +4 -3
  442. package/dist/api/resources/lists/client/Client.d.ts +197 -4
  443. package/dist/api/resources/lists/client/Client.js +236 -25
  444. package/dist/api/resources/lists/client/requests/AddSubscribersToList.d.ts +41 -0
  445. package/dist/api/resources/lists/client/requests/AddSubscribersToList.js +5 -0
  446. package/dist/api/resources/lists/client/requests/GetAllListsRequest.d.ts +7 -0
  447. package/dist/api/resources/lists/client/requests/GetSubscriptionForListRequest.d.ts +6 -0
  448. package/dist/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +32 -1
  449. package/dist/api/resources/lists/client/requests/SubscribeUsersToListRequest.d.ts +41 -0
  450. package/dist/api/resources/lists/client/requests/SubscribeUsersToListRequest.js +5 -0
  451. package/dist/api/resources/lists/client/requests/index.d.ts +5 -3
  452. package/dist/api/resources/lists/types/ListGetAllResponse.d.ts +1 -1
  453. package/dist/api/resources/lists/types/ListGetSubscriptionsResponse.d.ts +1 -1
  454. package/dist/api/resources/lists/types/ListPutParams.d.ts +1 -1
  455. package/dist/api/resources/lists/types/ListSubscriptionRecipient.d.ts +1 -1
  456. package/dist/api/resources/lists/types/PutSubscriptionsRecipient.d.ts +1 -1
  457. package/dist/api/resources/messages/client/Client.d.ts +59 -2
  458. package/dist/api/resources/messages/client/Client.js +110 -19
  459. package/dist/api/resources/messages/client/requests/GetMessageHistoryRequest.d.ts +6 -0
  460. package/dist/api/resources/messages/client/requests/ListMessagesRequest.d.ts +34 -3
  461. package/dist/api/resources/messages/client/requests/index.d.ts +2 -2
  462. package/dist/api/resources/messages/types/ListMessagesResponse.d.ts +1 -1
  463. package/dist/api/resources/messages/types/MessageDetails.d.ts +1 -1
  464. package/dist/api/resources/messages/types/MessageHistoryResponse.d.ts +1 -2
  465. package/dist/api/resources/messages/types/MessageStatus.d.ts +4 -0
  466. package/dist/api/resources/messages/types/MessageStatus.js +1 -0
  467. package/dist/api/resources/messages/types/RenderOutput.d.ts +1 -1
  468. package/dist/api/resources/messages/types/RenderOutputResponse.d.ts +1 -1
  469. package/dist/api/resources/messages/types/RenderedMessageContent.d.ts +1 -1
  470. package/dist/api/resources/notifications/client/Client.d.ts +113 -1
  471. package/dist/api/resources/notifications/client/Client.js +145 -17
  472. package/dist/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.d.ts +26 -1
  473. package/dist/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -0
  474. package/dist/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.d.ts +26 -1
  475. package/dist/api/resources/notifications/client/requests/SubmissionChecksReplaceParams.d.ts +11 -1
  476. package/dist/api/resources/notifications/client/requests/index.d.ts +4 -4
  477. package/dist/api/resources/notifications/types/BaseCheck.d.ts +1 -1
  478. package/dist/api/resources/notifications/types/Check.d.ts +1 -1
  479. package/dist/api/resources/notifications/types/MessageRouting.d.ts +1 -1
  480. package/dist/api/resources/notifications/types/MessageRoutingChannel.d.ts +1 -1
  481. package/dist/api/resources/notifications/types/Notification.d.ts +5 -1
  482. package/dist/api/resources/notifications/types/NotificationBlock.d.ts +1 -1
  483. package/dist/api/resources/notifications/types/NotificationChannel.d.ts +1 -1
  484. package/dist/api/resources/notifications/types/NotificationContent.d.ts +1 -1
  485. package/dist/api/resources/notifications/types/NotificationGetContentResponse.d.ts +1 -1
  486. package/dist/api/resources/notifications/types/NotificationListResponse.d.ts +1 -1
  487. package/dist/api/resources/notifications/types/NotificationTag.d.ts +7 -0
  488. package/dist/api/resources/notifications/types/NotificationTag.js +5 -0
  489. package/dist/api/resources/notifications/types/NotificationTagData.d.ts +7 -0
  490. package/dist/api/resources/notifications/types/NotificationTagData.js +5 -0
  491. package/dist/api/resources/notifications/types/SubmissionChecksGetResponse.d.ts +1 -1
  492. package/dist/api/resources/notifications/types/SubmissionChecksReplaceResponse.d.ts +1 -1
  493. package/dist/api/resources/notifications/types/index.d.ts +2 -0
  494. package/dist/api/resources/notifications/types/index.js +2 -0
  495. package/dist/api/resources/profiles/client/Client.d.ts +71 -2
  496. package/dist/api/resources/profiles/client/Client.js +102 -23
  497. package/dist/api/resources/profiles/client/requests/GetListSubscriptionsRequest.d.ts +6 -0
  498. package/dist/api/resources/profiles/client/requests/MergeProfileRequest.d.ts +10 -0
  499. package/dist/api/resources/profiles/client/requests/ReplaceProfileRequest.d.ts +10 -0
  500. package/dist/api/resources/profiles/client/requests/index.d.ts +3 -3
  501. package/dist/api/resources/profiles/types/AirshipProfile.d.ts +1 -1
  502. package/dist/api/resources/profiles/types/Discord.d.ts +1 -1
  503. package/dist/api/resources/profiles/types/Expo.d.ts +1 -1
  504. package/dist/api/resources/profiles/types/GetListSubscriptionsList.d.ts +1 -1
  505. package/dist/api/resources/profiles/types/GetListSubscriptionsResponse.d.ts +1 -1
  506. package/dist/api/resources/profiles/types/Intercom.d.ts +1 -1
  507. package/dist/api/resources/profiles/types/MsTeams.d.ts +1 -1
  508. package/dist/api/resources/profiles/types/MultipleTokens.d.ts +1 -1
  509. package/dist/api/resources/profiles/types/ProfileGetResponse.d.ts +1 -1
  510. package/dist/api/resources/profiles/types/SendToMsTeamsChannelId.d.ts +1 -1
  511. package/dist/api/resources/profiles/types/SendToMsTeamsChannelName.d.ts +1 -1
  512. package/dist/api/resources/profiles/types/SendToMsTeamsConversationId.d.ts +1 -1
  513. package/dist/api/resources/profiles/types/SendToMsTeamsEmail.d.ts +1 -1
  514. package/dist/api/resources/profiles/types/SendToMsTeamsUserId.d.ts +1 -1
  515. package/dist/api/resources/profiles/types/SendToSlackChannel.d.ts +1 -1
  516. package/dist/api/resources/profiles/types/SendToSlackEmail.d.ts +1 -1
  517. package/dist/api/resources/profiles/types/SendToSlackUserId.d.ts +1 -1
  518. package/dist/api/resources/profiles/types/Slack.d.ts +1 -1
  519. package/dist/api/resources/profiles/types/SnoozeRule.d.ts +1 -1
  520. package/dist/api/resources/profiles/types/SubscribeToListsRequest.d.ts +1 -1
  521. package/dist/api/resources/profiles/types/SubscribeToListsRequestListObject.d.ts +1 -1
  522. package/dist/api/resources/profiles/types/UserProfile.d.ts +1 -1
  523. package/dist/api/resources/send/types/AudienceRecipient.d.ts +1 -1
  524. package/dist/api/resources/send/types/BaseMessage.d.ts +1 -1
  525. package/dist/api/resources/send/types/BaseMessageSendTo.d.ts +8 -0
  526. package/dist/api/resources/send/types/BaseMessageSendTo.js +5 -0
  527. package/dist/api/resources/send/types/BrandSettingsEmail.d.ts +1 -1
  528. package/dist/api/resources/send/types/BrandSettingsInApp.d.ts +1 -1
  529. package/dist/api/resources/send/types/BrandSettingsSocialPresence.d.ts +1 -1
  530. package/dist/api/resources/send/types/BrandTemplateOverride.d.ts +1 -1
  531. package/dist/api/resources/send/types/Channel.d.ts +1 -1
  532. package/dist/api/resources/send/types/ChannelMetadata.d.ts +1 -1
  533. package/dist/api/resources/send/types/Content.d.ts +1 -1
  534. package/dist/api/resources/send/types/ContentMessage.d.ts +2 -4
  535. package/dist/api/resources/send/types/ElementalActionNode.d.ts +1 -1
  536. package/dist/api/resources/send/types/ElementalChannelNode.d.ts +1 -1
  537. package/dist/api/resources/send/types/ElementalContent.d.ts +1 -1
  538. package/dist/api/resources/send/types/ElementalDividerNode.d.ts +1 -1
  539. package/dist/api/resources/send/types/ElementalGroupNode.d.ts +1 -1
  540. package/dist/api/resources/send/types/ElementalImageNode.d.ts +1 -1
  541. package/dist/api/resources/send/types/ElementalMetaNode.d.ts +1 -1
  542. package/dist/api/resources/send/types/ElementalNode.d.ts +1 -1
  543. package/dist/api/resources/send/types/ElementalQuoteNode.d.ts +1 -1
  544. package/dist/api/resources/send/types/ElementalTextNode.d.ts +1 -1
  545. package/dist/api/resources/send/types/EmailHeader.d.ts +1 -1
  546. package/dist/api/resources/send/types/Expiry.d.ts +1 -1
  547. package/dist/api/resources/send/types/IPreferences.d.ts +1 -1
  548. package/dist/api/resources/send/types/IProfilePreferences.d.ts +1 -1
  549. package/dist/api/resources/send/types/ListPatternRecipient.d.ts +1 -1
  550. package/dist/api/resources/send/types/ListRecipient.d.ts +1 -1
  551. package/dist/api/resources/send/types/Locales.d.ts +1 -1
  552. package/dist/api/resources/send/types/Message.d.ts +1 -1
  553. package/dist/api/resources/send/types/MessageChannelEmailOverride.d.ts +1 -1
  554. package/dist/api/resources/send/types/MessageChannels.d.ts +1 -1
  555. package/dist/api/resources/send/types/MessageMetadata.d.ts +1 -1
  556. package/dist/api/resources/send/types/MessageProviders.d.ts +1 -1
  557. package/dist/api/resources/send/types/MessageProvidersType.d.ts +1 -1
  558. package/dist/api/resources/send/types/MessageRecipient.d.ts +1 -1
  559. package/dist/api/resources/send/types/Metadata.d.ts +1 -1
  560. package/dist/api/resources/send/types/MsTeamsRecipient.d.ts +1 -1
  561. package/dist/api/resources/send/types/Preference.d.ts +1 -1
  562. package/dist/api/resources/send/types/Recipient.d.ts +2 -2
  563. package/dist/api/resources/send/types/RecipientData.d.ts +4 -0
  564. package/dist/api/resources/send/types/RecipientData.js +5 -0
  565. package/dist/api/resources/send/types/Routing.d.ts +1 -1
  566. package/dist/api/resources/send/types/RoutingChannel.d.ts +1 -1
  567. package/dist/api/resources/send/types/RoutingStrategyChannel.d.ts +1 -1
  568. package/dist/api/resources/send/types/RoutingStrategyProvider.d.ts +1 -1
  569. package/dist/api/resources/send/types/SlackRecipient.d.ts +1 -1
  570. package/dist/api/resources/send/types/TemplateMessage.d.ts +2 -4
  571. package/dist/api/resources/send/types/Timeout.d.ts +1 -1
  572. package/dist/api/resources/send/types/UserRecipient.d.ts +1 -1
  573. package/dist/api/resources/send/types/index.d.ts +2 -0
  574. package/dist/api/resources/send/types/index.js +2 -0
  575. package/dist/api/resources/templates/client/Client.d.ts +9 -1
  576. package/dist/api/resources/templates/client/Client.js +13 -3
  577. package/dist/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +6 -0
  578. package/dist/api/resources/templates/client/requests/index.d.ts +1 -1
  579. package/dist/api/resources/templates/types/ListTemplatesResponse.d.ts +1 -1
  580. package/dist/api/resources/templates/types/NotificationTemplates.d.ts +1 -1
  581. package/dist/api/resources/templates/types/RoutingStrategy.d.ts +1 -1
  582. package/dist/api/resources/templates/types/Tag.d.ts +1 -1
  583. package/dist/api/resources/tenants/client/Client.d.ts +82 -1
  584. package/dist/api/resources/tenants/client/Client.js +190 -13
  585. package/dist/api/resources/tenants/client/requests/ListTenantParams.d.ts +13 -1
  586. package/dist/api/resources/tenants/client/requests/ListUsersForTenantParams.d.ts +7 -0
  587. package/dist/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.d.ts +23 -2
  588. package/dist/api/resources/tenants/client/requests/index.d.ts +3 -3
  589. package/dist/api/resources/tenants/types/DefaultPreferences.d.ts +2 -2
  590. package/dist/api/resources/tenants/types/ListUsersForTenantResponse.d.ts +1 -1
  591. package/dist/api/resources/tenants/types/SubscriptionTopic.d.ts +2 -3
  592. package/dist/api/resources/tenants/types/SubscriptionTopicNew.d.ts +11 -0
  593. package/dist/api/resources/tenants/types/SubscriptionTopicNew.js +5 -0
  594. package/dist/api/resources/tenants/types/TemplateProperty.d.ts +3 -0
  595. package/dist/api/resources/tenants/types/Tenant.d.ts +2 -2
  596. package/dist/api/resources/tenants/types/TenantListResponse.d.ts +1 -1
  597. package/dist/api/resources/tenants/types/index.d.ts +1 -0
  598. package/dist/api/resources/tenants/types/index.js +1 -0
  599. package/dist/api/resources/translations/client/Client.d.ts +17 -0
  600. package/dist/api/resources/translations/client/Client.js +28 -7
  601. package/dist/api/resources/users/resources/preferences/client/Client.d.ts +31 -1
  602. package/dist/api/resources/users/resources/preferences/client/Client.js +45 -9
  603. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.d.ts +12 -6
  604. package/dist/api/resources/users/resources/preferences/client/requests/index.d.ts +1 -1
  605. package/dist/api/resources/users/resources/preferences/types/TopicPreference.d.ts +1 -1
  606. package/dist/api/resources/users/resources/preferences/types/TopicPreferenceUpdate.d.ts +10 -0
  607. package/dist/api/resources/users/resources/preferences/types/TopicPreferenceUpdate.js +5 -0
  608. package/dist/api/resources/users/resources/preferences/types/UserPreferencesGetResponse.d.ts +1 -1
  609. package/dist/api/resources/users/resources/preferences/types/UserPreferencesListResponse.d.ts +1 -1
  610. package/dist/api/resources/users/resources/preferences/types/index.d.ts +1 -0
  611. package/dist/api/resources/users/resources/preferences/types/index.js +1 -0
  612. package/dist/api/resources/users/resources/tenants/client/Client.d.ts +57 -2
  613. package/dist/api/resources/users/resources/tenants/client/Client.js +78 -13
  614. package/dist/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.d.ts +16 -1
  615. package/dist/api/resources/users/resources/tenants/client/requests/AddUserToSingleTenantsParams.d.ts +11 -2
  616. package/dist/api/resources/users/resources/tenants/client/requests/ListTenantsForUserParams.d.ts +7 -0
  617. package/dist/api/resources/users/resources/tenants/client/requests/index.d.ts +3 -3
  618. package/dist/api/resources/users/resources/tenants/types/AddUserToSingleTenantsParamsProfile.d.ts +3 -0
  619. package/dist/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.d.ts +1 -1
  620. package/dist/api/resources/users/resources/tokens/client/Client.d.ts +64 -1
  621. package/dist/api/resources/users/resources/tokens/client/Client.js +86 -13
  622. package/dist/api/resources/users/resources/tokens/types/GetAllTokensResponse.d.ts +1 -1
  623. package/dist/api/resources/users/resources/tokens/types/GetUserTokenResponse.d.ts +1 -1
  624. package/dist/api/resources/users/resources/tokens/types/PatchUserTokenOpts.d.ts +1 -1
  625. package/dist/api/resources/users/resources/tokens/types/PutUserTokenOpts.d.ts +1 -1
  626. package/dist/api/resources/users/resources/tokens/types/PutUserTokensOpts.d.ts +1 -1
  627. package/dist/api/resources/users/resources/tokens/types/UserToken.d.ts +1 -1
  628. package/dist/core/fetcher/Fetcher.d.ts +2 -2
  629. package/dist/core/fetcher/Fetcher.js +60 -6
  630. package/dist/core/index.d.ts +1 -0
  631. package/dist/core/index.js +1 -0
  632. package/dist/core/runtime/index.d.ts +1 -0
  633. package/dist/core/runtime/index.js +5 -0
  634. package/dist/core/runtime/runtime.d.ts +8 -0
  635. package/dist/core/runtime/runtime.js +82 -0
  636. package/jest.config.js +2 -2
  637. package/package.json +8 -6
  638. package/api/resources/automations/types/AutomationStepAction.d.ts +0 -12
  639. package/api/resources/automations/types/AutomationStepAction.js +0 -14
  640. package/dist/api/resources/automations/types/AutomationStepAction.d.ts +0 -12
  641. package/dist/api/resources/automations/types/AutomationStepAction.js +0 -14
  642. package/tests/client.test.ts +0 -11
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface SendToMsTeamsUserId extends Courier.MsTeamsBaseProperties {
6
6
  user_id: string;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface SendToSlackChannel extends Courier.SlackBaseProperties {
6
6
  channel: string;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface SendToSlackEmail extends Courier.SlackBaseProperties {
6
6
  email: string;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface SendToSlackUserId extends Courier.SlackBaseProperties {
6
6
  user_id: string;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type Slack = Courier.SendToSlackChannel | Courier.SendToSlackEmail | Courier.SendToSlackUserId;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface SnoozeRule {
6
6
  type: Courier.SnoozeRuleType;
7
7
  start: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface SubscribeToListsRequest {
6
6
  lists: Courier.SubscribeToListsRequestListObject[];
7
7
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface SubscribeToListsRequestListObject {
6
6
  listId: string;
7
7
  preferences?: Courier.RecipientPreferences;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface UserProfile {
6
6
  address: Courier.Address;
7
7
  birthdate: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface AudienceRecipient {
6
6
  /** A unique identifier associated with an Audience. A message will be sent to each user in the audience. */
7
7
  audience_id: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface BaseMessage {
6
6
  /**
7
7
  * An arbitrary object that includes any data you want to pass to the message.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../../index";
5
+ export interface BaseMessageSendTo {
6
+ /** The recipient or a list of recipients of the message */
7
+ to?: Courier.MessageRecipient;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface BrandSettingsEmail {
6
6
  templateOverride?: Courier.BrandTemplateOverride;
7
7
  head?: Courier.EmailHead;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface BrandSettingsInApp {
6
6
  borderRadius?: string;
7
7
  disableMessageIcon?: boolean;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface BrandSettingsSocialPresence {
6
6
  inheritDefault?: boolean;
7
7
  facebook?: Courier.BaseSocialPresence;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface BrandTemplateOverride extends Courier.BrandTemplate {
6
6
  mjml: Courier.BrandTemplate;
7
7
  footerBackgroundColor?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface Channel {
6
6
  /**
7
7
  * Id of the brand that should be used for rendering the message.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface ChannelMetadata {
6
6
  utm?: Courier.Utm;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type Content = Courier.ElementalContent | Courier.ElementalContentSugar;
@@ -1,17 +1,15 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  /**
6
6
  * The message property has the following primary top-level properties. They define the destination and content of the message.
7
7
  * Additional advanced configuration fields [are defined below](https://www.courier.com/docs/reference/send/message/#other-message-properties).
8
8
  */
9
- export interface ContentMessage extends Courier.BaseMessage {
9
+ export interface ContentMessage extends Courier.BaseMessage, Courier.BaseMessageSendTo {
10
10
  /**
11
11
  * Describes the content of the message in a way that will work for email, push,
12
12
  * chat, or any channel. Either this or template must be specified.
13
13
  */
14
14
  content: Courier.Content;
15
- /** The recipient or a list of recipients of the message */
16
- to: Courier.MessageRecipient;
17
15
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  /**
6
6
  * Allows the user to execute an action. Can be a button or a link.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  /**
6
6
  * The channel element allows a notification to be customized based on which channel it is sent through.
7
7
  * For example, you may want to display a detailed message when the notification is sent through email,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface ElementalContent {
6
6
  /** For example, "2022-01-01" */
7
7
  version: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  /**
6
6
  * Renders a dividing line between elements.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  /**
6
6
  * Allows you to group elements together. This can be useful when used in combination with "if" or "loop". See [control flow docs](https://www.courier.com/docs/platform/content/elemental/control-flow/) for more details.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  /**
6
6
  * Used to embed an image into the notification.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  /**
6
6
  * The meta element contains information describing the notification that may
7
7
  * be used by a particular channel or provider. One important field is the title
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type ElementalNode = Courier.ElementalNode.Text | Courier.ElementalNode.Meta | Courier.ElementalNode.Channel | Courier.ElementalNode.Image | Courier.ElementalNode.Action | Courier.ElementalNode.Divider | Courier.ElementalNode.Group | Courier.ElementalNode.Quote;
6
6
  export declare namespace ElementalNode {
7
7
  interface Text extends Courier.ElementalTextNode {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  /**
6
6
  * Renders a quote block.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  /**
6
6
  * Represents a body of text to be rendered inside of the notification.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface EmailHeader {
6
6
  inheritDefault?: boolean;
7
7
  barColor?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface Expiry {
6
6
  /** An epoch timestamp or ISO8601 timestamp with timezone `(YYYY-MM-DDThh:mm:ss.sTZD)` that describes the time in which a message expires. */
7
7
  expires_at?: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type IPreferences = Record<string, Courier.Preference>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface IProfilePreferences {
6
6
  categories?: Courier.IPreferences;
7
7
  notifications: Courier.IPreferences;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface ListPatternRecipient extends Courier.ListPatternRecipientType {
6
6
  list_pattern?: string;
7
7
  data?: Courier.MessageData;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface ListRecipient extends Courier.ListRecipientType {
6
6
  list_id?: string;
7
7
  data?: Courier.MessageData;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type Locales = Record<string, Courier.Locale> | undefined;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type Message =
6
6
  /**
7
7
  * Describes the content of the message in a way that will work for email, push, chat, or any channel. */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface MessageChannelEmailOverride {
6
6
  attachments?: Courier.Attachment[];
7
7
  bcc?: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type MessageChannels = Record<string, Courier.Channel>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface MessageMetadata {
6
6
  /** An arbitrary string to tracks the event that generated this request (e.g. 'signup'). */
7
7
  event?: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type MessageProviders = Record<string, Courier.MessageProvidersType>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface MessageProvidersType {
6
6
  /** Provider specific overrides. */
7
7
  override?: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type MessageRecipient = Courier.Recipient | Courier.Recipient[];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface Metadata {
6
6
  utm?: Courier.Utm;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface MsTeamsRecipient {
6
6
  ms_teams: Courier.MsTeams;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface Preference {
6
6
  status: Courier.PreferenceStatus;
7
7
  rules?: Courier.Rule[];
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
5
- export declare type Recipient = Courier.AudienceRecipient | Courier.ListRecipient | Courier.ListPatternRecipient | Courier.UserRecipient | Courier.SlackRecipient | Courier.MsTeamsRecipient;
4
+ import * as Courier from "../../../index";
5
+ export declare type Recipient = Courier.AudienceRecipient | Courier.ListRecipient | Courier.ListPatternRecipient | Courier.UserRecipient | Courier.SlackRecipient | Courier.MsTeamsRecipient | Courier.RecipientData;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type RecipientData = Record<string, any>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  /**
6
6
  * Allows you to customize which channel(s) Courier will potentially deliver the message.
7
7
  * If no routing key is specified, Courier will use the default routing configuration or
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type RoutingChannel = Courier.RoutingStrategyChannel | Courier.RoutingStrategyProvider | string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface RoutingStrategyChannel {
6
6
  channel: string;
7
7
  config?: Record<string, any>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface RoutingStrategyProvider {
6
6
  name: string;
7
7
  config?: Record<string, any>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface SlackRecipient {
6
6
  slack: Courier.Slack;
7
7
  }
@@ -1,13 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
5
- export interface TemplateMessage extends Courier.BaseMessage {
4
+ import * as Courier from "../../../index";
5
+ export interface TemplateMessage extends Courier.BaseMessage, Courier.BaseMessageSendTo {
6
6
  /**
7
7
  * The id of the notification template to be rendered and sent to the recipient(s).
8
8
  * This field or the content field must be supplied.
9
9
  */
10
10
  template: string;
11
- /** The recipient or a list of recipients of the message */
12
- to: Courier.MessageRecipient;
13
11
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface Timeout {
6
6
  provider?: Record<string, number>;
7
7
  channel?: Record<string, number>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Courier from "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export interface UserRecipient extends Courier.UserRecipientType {
6
6
  /** Use `tenant_id` instad. */
7
7
  account_id?: string;
@@ -1,6 +1,7 @@
1
1
  export * from "./Message";
2
2
  export * from "./TemplateMessage";
3
3
  export * from "./ContentMessage";
4
+ export * from "./BaseMessageSendTo";
4
5
  export * from "./BaseMessage";
5
6
  export * from "./MessageRecipient";
6
7
  export * from "./Recipient";
@@ -17,6 +18,7 @@ export * from "./InvalidUserRecipient";
17
18
  export * from "./UserRecipientType";
18
19
  export * from "./UserRecipient";
19
20
  export * from "./MessageData";
21
+ export * from "./RecipientData";
20
22
  export * from "./AudienceFilter";
21
23
  export * from "./MessageContext";
22
24
  export * from "./ListFilter";
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Message"), exports);
18
18
  __exportStar(require("./TemplateMessage"), exports);
19
19
  __exportStar(require("./ContentMessage"), exports);
20
+ __exportStar(require("./BaseMessageSendTo"), exports);
20
21
  __exportStar(require("./BaseMessage"), exports);
21
22
  __exportStar(require("./MessageRecipient"), exports);
22
23
  __exportStar(require("./Recipient"), exports);
@@ -33,6 +34,7 @@ __exportStar(require("./InvalidUserRecipient"), exports);
33
34
  __exportStar(require("./UserRecipientType"), exports);
34
35
  __exportStar(require("./UserRecipient"), exports);
35
36
  __exportStar(require("./MessageData"), exports);
37
+ __exportStar(require("./RecipientData"), exports);
36
38
  __exportStar(require("./AudienceFilter"), exports);
37
39
  __exportStar(require("./MessageContext"), exports);
38
40
  __exportStar(require("./ListFilter"), exports);