@trycourier/courier 6.1.1 → 6.1.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 (573) hide show
  1. package/Client.d.ts +31 -2
  2. package/Client.js +35 -6
  3. package/api/client/requests/SendMessageRequest.d.ts +28 -1
  4. package/api/client/requests/index.d.ts +1 -1
  5. package/api/resources/audiences/client/Client.d.ts +47 -1
  6. package/api/resources/audiences/client/Client.js +68 -12
  7. package/api/resources/audiences/client/requests/AudienceMembersListParams.d.ts +6 -0
  8. package/api/resources/audiences/client/requests/AudienceUpdateParams.d.ts +13 -1
  9. package/api/resources/audiences/client/requests/AudiencesListParams.d.ts +6 -0
  10. package/api/resources/audiences/client/requests/index.d.ts +3 -3
  11. package/api/resources/audiences/types/Audience.d.ts +1 -1
  12. package/api/resources/audiences/types/AudienceListResponse.d.ts +1 -1
  13. package/api/resources/audiences/types/AudienceMemberGetResponse.d.ts +1 -1
  14. package/api/resources/audiences/types/AudienceMemberListResponse.d.ts +1 -1
  15. package/api/resources/audiences/types/AudienceUpdateResponse.d.ts +1 -1
  16. package/api/resources/audiences/types/BaseFilterConfig.d.ts +1 -1
  17. package/api/resources/audiences/types/Filter.d.ts +1 -1
  18. package/api/resources/audiences/types/FilterConfig.d.ts +1 -1
  19. package/api/resources/audiences/types/NestedFilterConfig.d.ts +1 -1
  20. package/api/resources/audiences/types/Operator.d.ts +1 -1
  21. package/api/resources/audiences/types/SingleFilterConfig.d.ts +1 -1
  22. package/api/resources/auditEvents/client/Client.d.ts +15 -1
  23. package/api/resources/auditEvents/client/Client.js +23 -5
  24. package/api/resources/auditEvents/client/requests/ListAuditEventsRequest.d.ts +6 -0
  25. package/api/resources/auditEvents/client/requests/index.d.ts +1 -1
  26. package/api/resources/auditEvents/types/AuditEvent.d.ts +1 -1
  27. package/api/resources/auditEvents/types/ListAuditEventsResponse.d.ts +1 -1
  28. package/api/resources/authTokens/client/Client.d.ts +11 -2
  29. package/api/resources/authTokens/client/Client.js +15 -6
  30. package/api/resources/authTokens/client/requests/IssueTokenParams.d.ts +7 -0
  31. package/api/resources/authTokens/client/requests/index.d.ts +1 -1
  32. package/api/resources/automations/client/Client.d.ts +31 -3
  33. package/api/resources/automations/client/Client.js +40 -12
  34. package/api/resources/automations/types/Automation.d.ts +1 -1
  35. package/api/resources/automations/types/AutomationAdHocInvokeParams.d.ts +1 -1
  36. package/api/resources/automations/types/AutomationAddToBatchRetain.d.ts +1 -1
  37. package/api/resources/automations/types/AutomationAddToBatchStep.d.ts +1 -1
  38. package/api/resources/automations/types/AutomationAddToDigestStep.d.ts +1 -1
  39. package/api/resources/automations/types/AutomationCancelStep.d.ts +1 -1
  40. package/api/resources/automations/types/AutomationDelayStep.d.ts +1 -1
  41. package/api/resources/automations/types/AutomationFetchDataStep.d.ts +1 -1
  42. package/api/resources/automations/types/AutomationFetchDataWebhook.d.ts +1 -1
  43. package/api/resources/automations/types/AutomationInvokeParams.d.ts +1 -1
  44. package/api/resources/automations/types/AutomationInvokeStep.d.ts +1 -1
  45. package/api/resources/automations/types/AutomationInvokeTemplateParams.d.ts +1 -1
  46. package/api/resources/automations/types/AutomationRunContext.d.ts +1 -1
  47. package/api/resources/automations/types/AutomationSendListStep.d.ts +1 -1
  48. package/api/resources/automations/types/AutomationSendStep.d.ts +1 -1
  49. package/api/resources/automations/types/AutomationStepOption.d.ts +1 -1
  50. package/api/resources/automations/types/AutomationThrottleStep.d.ts +1 -1
  51. package/api/resources/automations/types/AutomationUpdateProfileStep.d.ts +1 -1
  52. package/api/resources/automations/types/AutomationV2SendStep.d.ts +1 -1
  53. package/api/resources/brands/client/Client.d.ts +57 -2
  54. package/api/resources/brands/client/Client.js +77 -14
  55. package/api/resources/brands/client/requests/BrandUpdateParameters.d.ts +21 -1
  56. package/api/resources/brands/client/requests/ListBrandsRequest.d.ts +6 -0
  57. package/api/resources/brands/client/requests/index.d.ts +2 -2
  58. package/api/resources/brands/types/Brand.d.ts +1 -1
  59. package/api/resources/brands/types/BrandGetAllResponse.d.ts +1 -1
  60. package/api/resources/brands/types/BrandParameters.d.ts +1 -1
  61. package/api/resources/brands/types/BrandSettings.d.ts +1 -1
  62. package/api/resources/brands/types/BrandSnippets.d.ts +1 -1
  63. package/api/resources/brands/types/BrandsResponse.d.ts +1 -1
  64. package/api/resources/bulk/client/Client.d.ts +67 -2
  65. package/api/resources/bulk/client/Client.js +90 -21
  66. package/api/resources/bulk/client/requests/BulkCreateJobParams.d.ts +24 -1
  67. package/api/resources/bulk/client/requests/index.d.ts +1 -1
  68. package/api/resources/bulk/types/BulkGetJobResponse.d.ts +1 -1
  69. package/api/resources/bulk/types/BulkGetJobUsersResponse.d.ts +1 -1
  70. package/api/resources/bulk/types/BulkIngestUsersParams.d.ts +1 -1
  71. package/api/resources/bulk/types/BulkIngestUsersResponse.d.ts +1 -1
  72. package/api/resources/bulk/types/BulkMessageUserResponse.d.ts +1 -1
  73. package/api/resources/bulk/types/InboundBulkContentMessage.d.ts +1 -1
  74. package/api/resources/bulk/types/InboundBulkMessage.d.ts +1 -1
  75. package/api/resources/bulk/types/InboundBulkMessageUser.d.ts +1 -1
  76. package/api/resources/bulk/types/InboundBulkMessageV2.d.ts +1 -1
  77. package/api/resources/bulk/types/InboundBulkTemplateMessage.d.ts +1 -1
  78. package/api/resources/bulk/types/JobDetails.d.ts +1 -1
  79. package/api/resources/commons/errors/AlreadyExistsError.d.ts +2 -2
  80. package/api/resources/commons/errors/AlreadyExistsError.js +1 -1
  81. package/api/resources/commons/errors/BadRequestError.d.ts +2 -2
  82. package/api/resources/commons/errors/BadRequestError.js +1 -1
  83. package/api/resources/commons/errors/ConflictError.d.ts +2 -2
  84. package/api/resources/commons/errors/ConflictError.js +1 -1
  85. package/api/resources/commons/errors/MessageNotFoundError.d.ts +2 -2
  86. package/api/resources/commons/errors/MessageNotFoundError.js +1 -1
  87. package/api/resources/commons/errors/NotFoundError.d.ts +2 -2
  88. package/api/resources/commons/errors/NotFoundError.js +1 -1
  89. package/api/resources/commons/errors/PaymentRequiredError.d.ts +2 -2
  90. package/api/resources/commons/errors/PaymentRequiredError.js +1 -1
  91. package/api/resources/commons/types/AlreadyExists.d.ts +1 -1
  92. package/api/resources/commons/types/BadRequest.d.ts +1 -1
  93. package/api/resources/commons/types/ChannelPreference.d.ts +1 -1
  94. package/api/resources/commons/types/Conflict.d.ts +1 -1
  95. package/api/resources/commons/types/MessageNotFound.d.ts +1 -1
  96. package/api/resources/commons/types/NotFound.d.ts +1 -1
  97. package/api/resources/commons/types/NotificationPreferenceDetails.d.ts +1 -1
  98. package/api/resources/commons/types/NotificationPreferences.d.ts +1 -1
  99. package/api/resources/commons/types/PaymentRequired.d.ts +1 -1
  100. package/api/resources/commons/types/RecipientPreferences.d.ts +1 -1
  101. package/api/resources/commons/types/UserTenantAssociation.d.ts +4 -3
  102. package/api/resources/lists/client/Client.d.ts +197 -4
  103. package/api/resources/lists/client/Client.js +236 -25
  104. package/api/resources/lists/client/requests/AddSubscribersToList.d.ts +41 -0
  105. package/api/resources/lists/client/requests/AddSubscribersToList.js +5 -0
  106. package/api/resources/lists/client/requests/GetAllListsRequest.d.ts +7 -0
  107. package/api/resources/lists/client/requests/GetSubscriptionForListRequest.d.ts +6 -0
  108. package/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +32 -1
  109. package/api/resources/lists/client/requests/SubscribeUsersToListRequest.d.ts +41 -0
  110. package/api/resources/lists/client/requests/SubscribeUsersToListRequest.js +5 -0
  111. package/api/resources/lists/client/requests/index.d.ts +5 -3
  112. package/api/resources/lists/types/ListGetAllResponse.d.ts +1 -1
  113. package/api/resources/lists/types/ListGetSubscriptionsResponse.d.ts +1 -1
  114. package/api/resources/lists/types/ListPutParams.d.ts +1 -1
  115. package/api/resources/lists/types/ListSubscriptionRecipient.d.ts +1 -1
  116. package/api/resources/lists/types/PutSubscriptionsRecipient.d.ts +1 -1
  117. package/api/resources/messages/client/Client.d.ts +59 -2
  118. package/api/resources/messages/client/Client.js +89 -28
  119. package/api/resources/messages/client/requests/GetMessageHistoryRequest.d.ts +6 -0
  120. package/api/resources/messages/client/requests/ListMessagesRequest.d.ts +19 -8
  121. package/api/resources/messages/client/requests/index.d.ts +2 -2
  122. package/api/resources/messages/types/ListMessagesResponse.d.ts +1 -1
  123. package/api/resources/messages/types/MessageDetails.d.ts +1 -1
  124. package/api/resources/messages/types/MessageHistoryResponse.d.ts +1 -2
  125. package/api/resources/messages/types/RenderOutput.d.ts +1 -1
  126. package/api/resources/messages/types/RenderOutputResponse.d.ts +1 -1
  127. package/api/resources/messages/types/RenderedMessageContent.d.ts +1 -1
  128. package/api/resources/notifications/client/Client.d.ts +113 -1
  129. package/api/resources/notifications/client/Client.js +145 -17
  130. package/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.d.ts +26 -1
  131. package/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -0
  132. package/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.d.ts +26 -1
  133. package/api/resources/notifications/client/requests/SubmissionChecksReplaceParams.d.ts +11 -1
  134. package/api/resources/notifications/client/requests/index.d.ts +4 -4
  135. package/api/resources/notifications/types/BaseCheck.d.ts +1 -1
  136. package/api/resources/notifications/types/Check.d.ts +1 -1
  137. package/api/resources/notifications/types/MessageRouting.d.ts +1 -1
  138. package/api/resources/notifications/types/MessageRoutingChannel.d.ts +1 -1
  139. package/api/resources/notifications/types/Notification.d.ts +5 -1
  140. package/api/resources/notifications/types/NotificationBlock.d.ts +1 -1
  141. package/api/resources/notifications/types/NotificationChannel.d.ts +1 -1
  142. package/api/resources/notifications/types/NotificationContent.d.ts +1 -1
  143. package/api/resources/notifications/types/NotificationGetContentResponse.d.ts +1 -1
  144. package/api/resources/notifications/types/NotificationListResponse.d.ts +1 -1
  145. package/api/resources/notifications/types/NotificationTag.d.ts +7 -0
  146. package/api/resources/notifications/types/NotificationTag.js +5 -0
  147. package/api/resources/notifications/types/NotificationTagData.d.ts +7 -0
  148. package/api/resources/notifications/types/NotificationTagData.js +5 -0
  149. package/api/resources/notifications/types/SubmissionChecksGetResponse.d.ts +1 -1
  150. package/api/resources/notifications/types/SubmissionChecksReplaceResponse.d.ts +1 -1
  151. package/api/resources/notifications/types/index.d.ts +2 -0
  152. package/api/resources/notifications/types/index.js +2 -0
  153. package/api/resources/profiles/client/Client.d.ts +71 -2
  154. package/api/resources/profiles/client/Client.js +102 -23
  155. package/api/resources/profiles/client/requests/GetListSubscriptionsRequest.d.ts +6 -0
  156. package/api/resources/profiles/client/requests/MergeProfileRequest.d.ts +10 -0
  157. package/api/resources/profiles/client/requests/ReplaceProfileRequest.d.ts +10 -0
  158. package/api/resources/profiles/client/requests/index.d.ts +3 -3
  159. package/api/resources/profiles/types/AirshipProfile.d.ts +1 -1
  160. package/api/resources/profiles/types/Discord.d.ts +1 -1
  161. package/api/resources/profiles/types/Expo.d.ts +1 -1
  162. package/api/resources/profiles/types/GetListSubscriptionsList.d.ts +1 -1
  163. package/api/resources/profiles/types/GetListSubscriptionsResponse.d.ts +1 -1
  164. package/api/resources/profiles/types/Intercom.d.ts +1 -1
  165. package/api/resources/profiles/types/MsTeams.d.ts +1 -1
  166. package/api/resources/profiles/types/MultipleTokens.d.ts +1 -1
  167. package/api/resources/profiles/types/ProfileGetResponse.d.ts +1 -1
  168. package/api/resources/profiles/types/SendToMsTeamsChannelId.d.ts +1 -1
  169. package/api/resources/profiles/types/SendToMsTeamsChannelName.d.ts +1 -1
  170. package/api/resources/profiles/types/SendToMsTeamsConversationId.d.ts +1 -1
  171. package/api/resources/profiles/types/SendToMsTeamsEmail.d.ts +1 -1
  172. package/api/resources/profiles/types/SendToMsTeamsUserId.d.ts +1 -1
  173. package/api/resources/profiles/types/SendToSlackChannel.d.ts +1 -1
  174. package/api/resources/profiles/types/SendToSlackEmail.d.ts +1 -1
  175. package/api/resources/profiles/types/SendToSlackUserId.d.ts +1 -1
  176. package/api/resources/profiles/types/Slack.d.ts +1 -1
  177. package/api/resources/profiles/types/SnoozeRule.d.ts +1 -1
  178. package/api/resources/profiles/types/SubscribeToListsRequest.d.ts +1 -1
  179. package/api/resources/profiles/types/SubscribeToListsRequestListObject.d.ts +1 -1
  180. package/api/resources/profiles/types/UserProfile.d.ts +1 -1
  181. package/api/resources/send/types/AudienceRecipient.d.ts +1 -1
  182. package/api/resources/send/types/BaseMessage.d.ts +1 -1
  183. package/api/resources/send/types/BaseMessageSendTo.d.ts +1 -1
  184. package/api/resources/send/types/BrandSettingsEmail.d.ts +1 -1
  185. package/api/resources/send/types/BrandSettingsInApp.d.ts +1 -1
  186. package/api/resources/send/types/BrandSettingsSocialPresence.d.ts +1 -1
  187. package/api/resources/send/types/BrandTemplateOverride.d.ts +1 -1
  188. package/api/resources/send/types/Channel.d.ts +1 -1
  189. package/api/resources/send/types/ChannelMetadata.d.ts +1 -1
  190. package/api/resources/send/types/Content.d.ts +1 -1
  191. package/api/resources/send/types/ContentMessage.d.ts +1 -1
  192. package/api/resources/send/types/ElementalActionNode.d.ts +1 -1
  193. package/api/resources/send/types/ElementalChannelNode.d.ts +1 -1
  194. package/api/resources/send/types/ElementalContent.d.ts +1 -1
  195. package/api/resources/send/types/ElementalDividerNode.d.ts +1 -1
  196. package/api/resources/send/types/ElementalGroupNode.d.ts +1 -1
  197. package/api/resources/send/types/ElementalImageNode.d.ts +1 -1
  198. package/api/resources/send/types/ElementalMetaNode.d.ts +1 -1
  199. package/api/resources/send/types/ElementalNode.d.ts +1 -1
  200. package/api/resources/send/types/ElementalQuoteNode.d.ts +1 -1
  201. package/api/resources/send/types/ElementalTextNode.d.ts +1 -1
  202. package/api/resources/send/types/EmailHeader.d.ts +1 -1
  203. package/api/resources/send/types/Expiry.d.ts +1 -1
  204. package/api/resources/send/types/IPreferences.d.ts +1 -1
  205. package/api/resources/send/types/IProfilePreferences.d.ts +1 -1
  206. package/api/resources/send/types/ListPatternRecipient.d.ts +1 -1
  207. package/api/resources/send/types/ListRecipient.d.ts +1 -1
  208. package/api/resources/send/types/Locales.d.ts +1 -1
  209. package/api/resources/send/types/Message.d.ts +1 -1
  210. package/api/resources/send/types/MessageChannelEmailOverride.d.ts +1 -1
  211. package/api/resources/send/types/MessageChannels.d.ts +1 -1
  212. package/api/resources/send/types/MessageMetadata.d.ts +1 -1
  213. package/api/resources/send/types/MessageProviders.d.ts +1 -1
  214. package/api/resources/send/types/MessageProvidersType.d.ts +1 -1
  215. package/api/resources/send/types/MessageRecipient.d.ts +1 -1
  216. package/api/resources/send/types/Metadata.d.ts +1 -1
  217. package/api/resources/send/types/MsTeamsRecipient.d.ts +1 -1
  218. package/api/resources/send/types/Preference.d.ts +1 -1
  219. package/api/resources/send/types/Recipient.d.ts +1 -1
  220. package/api/resources/send/types/Routing.d.ts +1 -1
  221. package/api/resources/send/types/RoutingChannel.d.ts +1 -1
  222. package/api/resources/send/types/RoutingStrategyChannel.d.ts +1 -1
  223. package/api/resources/send/types/RoutingStrategyProvider.d.ts +1 -1
  224. package/api/resources/send/types/SlackRecipient.d.ts +1 -1
  225. package/api/resources/send/types/TemplateMessage.d.ts +1 -1
  226. package/api/resources/send/types/Timeout.d.ts +1 -1
  227. package/api/resources/send/types/UserRecipient.d.ts +1 -1
  228. package/api/resources/templates/client/Client.d.ts +9 -1
  229. package/api/resources/templates/client/Client.js +13 -3
  230. package/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +6 -0
  231. package/api/resources/templates/client/requests/index.d.ts +1 -1
  232. package/api/resources/templates/types/ListTemplatesResponse.d.ts +1 -1
  233. package/api/resources/templates/types/NotificationTemplates.d.ts +1 -1
  234. package/api/resources/templates/types/RoutingStrategy.d.ts +1 -1
  235. package/api/resources/templates/types/Tag.d.ts +1 -1
  236. package/api/resources/tenants/client/Client.d.ts +82 -1
  237. package/api/resources/tenants/client/Client.js +190 -13
  238. package/api/resources/tenants/client/requests/ListTenantParams.d.ts +13 -1
  239. package/api/resources/tenants/client/requests/ListUsersForTenantParams.d.ts +7 -0
  240. package/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.d.ts +23 -2
  241. package/api/resources/tenants/client/requests/index.d.ts +3 -3
  242. package/api/resources/tenants/types/DefaultPreferences.d.ts +2 -2
  243. package/api/resources/tenants/types/ListUsersForTenantResponse.d.ts +1 -1
  244. package/api/resources/tenants/types/SubscriptionTopic.d.ts +2 -3
  245. package/api/resources/tenants/types/SubscriptionTopicNew.d.ts +11 -0
  246. package/api/resources/tenants/types/SubscriptionTopicNew.js +5 -0
  247. package/api/resources/tenants/types/TemplateProperty.d.ts +3 -0
  248. package/api/resources/tenants/types/Tenant.d.ts +2 -2
  249. package/api/resources/tenants/types/TenantListResponse.d.ts +1 -1
  250. package/api/resources/tenants/types/index.d.ts +1 -0
  251. package/api/resources/tenants/types/index.js +1 -0
  252. package/api/resources/translations/client/Client.d.ts +17 -0
  253. package/api/resources/translations/client/Client.js +28 -7
  254. package/api/resources/users/resources/preferences/client/Client.d.ts +22 -1
  255. package/api/resources/users/resources/preferences/client/Client.js +36 -9
  256. package/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.d.ts +1 -1
  257. package/api/resources/users/resources/preferences/client/requests/index.d.ts +1 -1
  258. package/api/resources/users/resources/preferences/types/TopicPreference.d.ts +1 -1
  259. package/api/resources/users/resources/preferences/types/TopicPreferenceUpdate.d.ts +1 -1
  260. package/api/resources/users/resources/preferences/types/UserPreferencesGetResponse.d.ts +1 -1
  261. package/api/resources/users/resources/preferences/types/UserPreferencesListResponse.d.ts +1 -1
  262. package/api/resources/users/resources/tenants/client/Client.d.ts +57 -2
  263. package/api/resources/users/resources/tenants/client/Client.js +78 -13
  264. package/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.d.ts +16 -1
  265. package/api/resources/users/resources/tenants/client/requests/AddUserToSingleTenantsParams.d.ts +11 -2
  266. package/api/resources/users/resources/tenants/client/requests/ListTenantsForUserParams.d.ts +7 -0
  267. package/api/resources/users/resources/tenants/client/requests/index.d.ts +3 -3
  268. package/api/resources/users/resources/tenants/types/AddUserToSingleTenantsParamsProfile.d.ts +3 -0
  269. package/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.d.ts +1 -1
  270. package/api/resources/users/resources/tokens/client/Client.d.ts +73 -1
  271. package/api/resources/users/resources/tokens/client/Client.js +136 -13
  272. package/api/resources/users/resources/tokens/types/GetAllTokensResponse.d.ts +1 -1
  273. package/api/resources/users/resources/tokens/types/GetUserTokenResponse.d.ts +1 -1
  274. package/api/resources/users/resources/tokens/types/PatchUserTokenOpts.d.ts +1 -1
  275. package/api/resources/users/resources/tokens/types/PutUserTokenOpts.d.ts +1 -1
  276. package/api/resources/users/resources/tokens/types/PutUserTokensOpts.d.ts +1 -1
  277. package/api/resources/users/resources/tokens/types/UserToken.d.ts +1 -1
  278. package/core/fetcher/Fetcher.d.ts +2 -2
  279. package/core/fetcher/Fetcher.js +60 -6
  280. package/core/index.d.ts +1 -0
  281. package/core/index.js +1 -0
  282. package/core/runtime/index.d.ts +1 -0
  283. package/core/runtime/index.js +5 -0
  284. package/core/runtime/runtime.d.ts +8 -0
  285. package/core/runtime/runtime.js +82 -0
  286. package/dist/Client.d.ts +31 -2
  287. package/dist/Client.js +35 -6
  288. package/dist/api/client/requests/SendMessageRequest.d.ts +28 -1
  289. package/dist/api/client/requests/index.d.ts +1 -1
  290. package/dist/api/resources/audiences/client/Client.d.ts +47 -1
  291. package/dist/api/resources/audiences/client/Client.js +68 -12
  292. package/dist/api/resources/audiences/client/requests/AudienceMembersListParams.d.ts +6 -0
  293. package/dist/api/resources/audiences/client/requests/AudienceUpdateParams.d.ts +13 -1
  294. package/dist/api/resources/audiences/client/requests/AudiencesListParams.d.ts +6 -0
  295. package/dist/api/resources/audiences/client/requests/index.d.ts +3 -3
  296. package/dist/api/resources/audiences/types/Audience.d.ts +1 -1
  297. package/dist/api/resources/audiences/types/AudienceListResponse.d.ts +1 -1
  298. package/dist/api/resources/audiences/types/AudienceMemberGetResponse.d.ts +1 -1
  299. package/dist/api/resources/audiences/types/AudienceMemberListResponse.d.ts +1 -1
  300. package/dist/api/resources/audiences/types/AudienceUpdateResponse.d.ts +1 -1
  301. package/dist/api/resources/audiences/types/BaseFilterConfig.d.ts +1 -1
  302. package/dist/api/resources/audiences/types/Filter.d.ts +1 -1
  303. package/dist/api/resources/audiences/types/FilterConfig.d.ts +1 -1
  304. package/dist/api/resources/audiences/types/NestedFilterConfig.d.ts +1 -1
  305. package/dist/api/resources/audiences/types/Operator.d.ts +1 -1
  306. package/dist/api/resources/audiences/types/SingleFilterConfig.d.ts +1 -1
  307. package/dist/api/resources/auditEvents/client/Client.d.ts +15 -1
  308. package/dist/api/resources/auditEvents/client/Client.js +23 -5
  309. package/dist/api/resources/auditEvents/client/requests/ListAuditEventsRequest.d.ts +6 -0
  310. package/dist/api/resources/auditEvents/client/requests/index.d.ts +1 -1
  311. package/dist/api/resources/auditEvents/types/AuditEvent.d.ts +1 -1
  312. package/dist/api/resources/auditEvents/types/ListAuditEventsResponse.d.ts +1 -1
  313. package/dist/api/resources/authTokens/client/Client.d.ts +11 -2
  314. package/dist/api/resources/authTokens/client/Client.js +15 -6
  315. package/dist/api/resources/authTokens/client/requests/IssueTokenParams.d.ts +7 -0
  316. package/dist/api/resources/authTokens/client/requests/index.d.ts +1 -1
  317. package/dist/api/resources/automations/client/Client.d.ts +31 -3
  318. package/dist/api/resources/automations/client/Client.js +40 -12
  319. package/dist/api/resources/automations/types/Automation.d.ts +1 -1
  320. package/dist/api/resources/automations/types/AutomationAdHocInvokeParams.d.ts +1 -1
  321. package/dist/api/resources/automations/types/AutomationAddToBatchRetain.d.ts +1 -1
  322. package/dist/api/resources/automations/types/AutomationAddToBatchStep.d.ts +1 -1
  323. package/dist/api/resources/automations/types/AutomationAddToDigestStep.d.ts +1 -1
  324. package/dist/api/resources/automations/types/AutomationCancelStep.d.ts +1 -1
  325. package/dist/api/resources/automations/types/AutomationDelayStep.d.ts +1 -1
  326. package/dist/api/resources/automations/types/AutomationFetchDataStep.d.ts +1 -1
  327. package/dist/api/resources/automations/types/AutomationFetchDataWebhook.d.ts +1 -1
  328. package/dist/api/resources/automations/types/AutomationInvokeParams.d.ts +1 -1
  329. package/dist/api/resources/automations/types/AutomationInvokeStep.d.ts +1 -1
  330. package/dist/api/resources/automations/types/AutomationInvokeTemplateParams.d.ts +1 -1
  331. package/dist/api/resources/automations/types/AutomationRunContext.d.ts +1 -1
  332. package/dist/api/resources/automations/types/AutomationSendListStep.d.ts +1 -1
  333. package/dist/api/resources/automations/types/AutomationSendStep.d.ts +1 -1
  334. package/dist/api/resources/automations/types/AutomationStepOption.d.ts +1 -1
  335. package/dist/api/resources/automations/types/AutomationThrottleStep.d.ts +1 -1
  336. package/dist/api/resources/automations/types/AutomationUpdateProfileStep.d.ts +1 -1
  337. package/dist/api/resources/automations/types/AutomationV2SendStep.d.ts +1 -1
  338. package/dist/api/resources/brands/client/Client.d.ts +57 -2
  339. package/dist/api/resources/brands/client/Client.js +77 -14
  340. package/dist/api/resources/brands/client/requests/BrandUpdateParameters.d.ts +21 -1
  341. package/dist/api/resources/brands/client/requests/ListBrandsRequest.d.ts +6 -0
  342. package/dist/api/resources/brands/client/requests/index.d.ts +2 -2
  343. package/dist/api/resources/brands/types/Brand.d.ts +1 -1
  344. package/dist/api/resources/brands/types/BrandGetAllResponse.d.ts +1 -1
  345. package/dist/api/resources/brands/types/BrandParameters.d.ts +1 -1
  346. package/dist/api/resources/brands/types/BrandSettings.d.ts +1 -1
  347. package/dist/api/resources/brands/types/BrandSnippets.d.ts +1 -1
  348. package/dist/api/resources/brands/types/BrandsResponse.d.ts +1 -1
  349. package/dist/api/resources/bulk/client/Client.d.ts +67 -2
  350. package/dist/api/resources/bulk/client/Client.js +90 -21
  351. package/dist/api/resources/bulk/client/requests/BulkCreateJobParams.d.ts +24 -1
  352. package/dist/api/resources/bulk/client/requests/index.d.ts +1 -1
  353. package/dist/api/resources/bulk/types/BulkGetJobResponse.d.ts +1 -1
  354. package/dist/api/resources/bulk/types/BulkGetJobUsersResponse.d.ts +1 -1
  355. package/dist/api/resources/bulk/types/BulkIngestUsersParams.d.ts +1 -1
  356. package/dist/api/resources/bulk/types/BulkIngestUsersResponse.d.ts +1 -1
  357. package/dist/api/resources/bulk/types/BulkMessageUserResponse.d.ts +1 -1
  358. package/dist/api/resources/bulk/types/InboundBulkContentMessage.d.ts +1 -1
  359. package/dist/api/resources/bulk/types/InboundBulkMessage.d.ts +1 -1
  360. package/dist/api/resources/bulk/types/InboundBulkMessageUser.d.ts +1 -1
  361. package/dist/api/resources/bulk/types/InboundBulkMessageV2.d.ts +1 -1
  362. package/dist/api/resources/bulk/types/InboundBulkTemplateMessage.d.ts +1 -1
  363. package/dist/api/resources/bulk/types/JobDetails.d.ts +1 -1
  364. package/dist/api/resources/commons/errors/AlreadyExistsError.d.ts +2 -2
  365. package/dist/api/resources/commons/errors/AlreadyExistsError.js +1 -1
  366. package/dist/api/resources/commons/errors/BadRequestError.d.ts +2 -2
  367. package/dist/api/resources/commons/errors/BadRequestError.js +1 -1
  368. package/dist/api/resources/commons/errors/ConflictError.d.ts +2 -2
  369. package/dist/api/resources/commons/errors/ConflictError.js +1 -1
  370. package/dist/api/resources/commons/errors/MessageNotFoundError.d.ts +2 -2
  371. package/dist/api/resources/commons/errors/MessageNotFoundError.js +1 -1
  372. package/dist/api/resources/commons/errors/NotFoundError.d.ts +2 -2
  373. package/dist/api/resources/commons/errors/NotFoundError.js +1 -1
  374. package/dist/api/resources/commons/errors/PaymentRequiredError.d.ts +2 -2
  375. package/dist/api/resources/commons/errors/PaymentRequiredError.js +1 -1
  376. package/dist/api/resources/commons/types/AlreadyExists.d.ts +1 -1
  377. package/dist/api/resources/commons/types/BadRequest.d.ts +1 -1
  378. package/dist/api/resources/commons/types/ChannelPreference.d.ts +1 -1
  379. package/dist/api/resources/commons/types/Conflict.d.ts +1 -1
  380. package/dist/api/resources/commons/types/MessageNotFound.d.ts +1 -1
  381. package/dist/api/resources/commons/types/NotFound.d.ts +1 -1
  382. package/dist/api/resources/commons/types/NotificationPreferenceDetails.d.ts +1 -1
  383. package/dist/api/resources/commons/types/NotificationPreferences.d.ts +1 -1
  384. package/dist/api/resources/commons/types/PaymentRequired.d.ts +1 -1
  385. package/dist/api/resources/commons/types/RecipientPreferences.d.ts +1 -1
  386. package/dist/api/resources/commons/types/UserTenantAssociation.d.ts +4 -3
  387. package/dist/api/resources/lists/client/Client.d.ts +197 -4
  388. package/dist/api/resources/lists/client/Client.js +236 -25
  389. package/dist/api/resources/lists/client/requests/AddSubscribersToList.d.ts +41 -0
  390. package/dist/api/resources/lists/client/requests/AddSubscribersToList.js +5 -0
  391. package/dist/api/resources/lists/client/requests/GetAllListsRequest.d.ts +7 -0
  392. package/dist/api/resources/lists/client/requests/GetSubscriptionForListRequest.d.ts +6 -0
  393. package/dist/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +32 -1
  394. package/dist/api/resources/lists/client/requests/SubscribeUsersToListRequest.d.ts +41 -0
  395. package/dist/api/resources/lists/client/requests/SubscribeUsersToListRequest.js +5 -0
  396. package/dist/api/resources/lists/client/requests/index.d.ts +5 -3
  397. package/dist/api/resources/lists/types/ListGetAllResponse.d.ts +1 -1
  398. package/dist/api/resources/lists/types/ListGetSubscriptionsResponse.d.ts +1 -1
  399. package/dist/api/resources/lists/types/ListPutParams.d.ts +1 -1
  400. package/dist/api/resources/lists/types/ListSubscriptionRecipient.d.ts +1 -1
  401. package/dist/api/resources/lists/types/PutSubscriptionsRecipient.d.ts +1 -1
  402. package/dist/api/resources/messages/client/Client.d.ts +59 -2
  403. package/dist/api/resources/messages/client/Client.js +89 -28
  404. package/dist/api/resources/messages/client/requests/GetMessageHistoryRequest.d.ts +6 -0
  405. package/dist/api/resources/messages/client/requests/ListMessagesRequest.d.ts +19 -8
  406. package/dist/api/resources/messages/client/requests/index.d.ts +2 -2
  407. package/dist/api/resources/messages/types/ListMessagesResponse.d.ts +1 -1
  408. package/dist/api/resources/messages/types/MessageDetails.d.ts +1 -1
  409. package/dist/api/resources/messages/types/MessageHistoryResponse.d.ts +1 -2
  410. package/dist/api/resources/messages/types/RenderOutput.d.ts +1 -1
  411. package/dist/api/resources/messages/types/RenderOutputResponse.d.ts +1 -1
  412. package/dist/api/resources/messages/types/RenderedMessageContent.d.ts +1 -1
  413. package/dist/api/resources/notifications/client/Client.d.ts +113 -1
  414. package/dist/api/resources/notifications/client/Client.js +145 -17
  415. package/dist/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.d.ts +26 -1
  416. package/dist/api/resources/notifications/client/requests/NotificationListParams.d.ts +6 -0
  417. package/dist/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.d.ts +26 -1
  418. package/dist/api/resources/notifications/client/requests/SubmissionChecksReplaceParams.d.ts +11 -1
  419. package/dist/api/resources/notifications/client/requests/index.d.ts +4 -4
  420. package/dist/api/resources/notifications/types/BaseCheck.d.ts +1 -1
  421. package/dist/api/resources/notifications/types/Check.d.ts +1 -1
  422. package/dist/api/resources/notifications/types/MessageRouting.d.ts +1 -1
  423. package/dist/api/resources/notifications/types/MessageRoutingChannel.d.ts +1 -1
  424. package/dist/api/resources/notifications/types/Notification.d.ts +5 -1
  425. package/dist/api/resources/notifications/types/NotificationBlock.d.ts +1 -1
  426. package/dist/api/resources/notifications/types/NotificationChannel.d.ts +1 -1
  427. package/dist/api/resources/notifications/types/NotificationContent.d.ts +1 -1
  428. package/dist/api/resources/notifications/types/NotificationGetContentResponse.d.ts +1 -1
  429. package/dist/api/resources/notifications/types/NotificationListResponse.d.ts +1 -1
  430. package/dist/api/resources/notifications/types/NotificationTag.d.ts +7 -0
  431. package/dist/api/resources/notifications/types/NotificationTag.js +5 -0
  432. package/dist/api/resources/notifications/types/NotificationTagData.d.ts +7 -0
  433. package/dist/api/resources/notifications/types/NotificationTagData.js +5 -0
  434. package/dist/api/resources/notifications/types/SubmissionChecksGetResponse.d.ts +1 -1
  435. package/dist/api/resources/notifications/types/SubmissionChecksReplaceResponse.d.ts +1 -1
  436. package/dist/api/resources/notifications/types/index.d.ts +2 -0
  437. package/dist/api/resources/notifications/types/index.js +2 -0
  438. package/dist/api/resources/profiles/client/Client.d.ts +71 -2
  439. package/dist/api/resources/profiles/client/Client.js +102 -23
  440. package/dist/api/resources/profiles/client/requests/GetListSubscriptionsRequest.d.ts +6 -0
  441. package/dist/api/resources/profiles/client/requests/MergeProfileRequest.d.ts +10 -0
  442. package/dist/api/resources/profiles/client/requests/ReplaceProfileRequest.d.ts +10 -0
  443. package/dist/api/resources/profiles/client/requests/index.d.ts +3 -3
  444. package/dist/api/resources/profiles/types/AirshipProfile.d.ts +1 -1
  445. package/dist/api/resources/profiles/types/Discord.d.ts +1 -1
  446. package/dist/api/resources/profiles/types/Expo.d.ts +1 -1
  447. package/dist/api/resources/profiles/types/GetListSubscriptionsList.d.ts +1 -1
  448. package/dist/api/resources/profiles/types/GetListSubscriptionsResponse.d.ts +1 -1
  449. package/dist/api/resources/profiles/types/Intercom.d.ts +1 -1
  450. package/dist/api/resources/profiles/types/MsTeams.d.ts +1 -1
  451. package/dist/api/resources/profiles/types/MultipleTokens.d.ts +1 -1
  452. package/dist/api/resources/profiles/types/ProfileGetResponse.d.ts +1 -1
  453. package/dist/api/resources/profiles/types/SendToMsTeamsChannelId.d.ts +1 -1
  454. package/dist/api/resources/profiles/types/SendToMsTeamsChannelName.d.ts +1 -1
  455. package/dist/api/resources/profiles/types/SendToMsTeamsConversationId.d.ts +1 -1
  456. package/dist/api/resources/profiles/types/SendToMsTeamsEmail.d.ts +1 -1
  457. package/dist/api/resources/profiles/types/SendToMsTeamsUserId.d.ts +1 -1
  458. package/dist/api/resources/profiles/types/SendToSlackChannel.d.ts +1 -1
  459. package/dist/api/resources/profiles/types/SendToSlackEmail.d.ts +1 -1
  460. package/dist/api/resources/profiles/types/SendToSlackUserId.d.ts +1 -1
  461. package/dist/api/resources/profiles/types/Slack.d.ts +1 -1
  462. package/dist/api/resources/profiles/types/SnoozeRule.d.ts +1 -1
  463. package/dist/api/resources/profiles/types/SubscribeToListsRequest.d.ts +1 -1
  464. package/dist/api/resources/profiles/types/SubscribeToListsRequestListObject.d.ts +1 -1
  465. package/dist/api/resources/profiles/types/UserProfile.d.ts +1 -1
  466. package/dist/api/resources/send/types/AudienceRecipient.d.ts +1 -1
  467. package/dist/api/resources/send/types/BaseMessage.d.ts +1 -1
  468. package/dist/api/resources/send/types/BaseMessageSendTo.d.ts +1 -1
  469. package/dist/api/resources/send/types/BrandSettingsEmail.d.ts +1 -1
  470. package/dist/api/resources/send/types/BrandSettingsInApp.d.ts +1 -1
  471. package/dist/api/resources/send/types/BrandSettingsSocialPresence.d.ts +1 -1
  472. package/dist/api/resources/send/types/BrandTemplateOverride.d.ts +1 -1
  473. package/dist/api/resources/send/types/Channel.d.ts +1 -1
  474. package/dist/api/resources/send/types/ChannelMetadata.d.ts +1 -1
  475. package/dist/api/resources/send/types/Content.d.ts +1 -1
  476. package/dist/api/resources/send/types/ContentMessage.d.ts +1 -1
  477. package/dist/api/resources/send/types/ElementalActionNode.d.ts +1 -1
  478. package/dist/api/resources/send/types/ElementalChannelNode.d.ts +1 -1
  479. package/dist/api/resources/send/types/ElementalContent.d.ts +1 -1
  480. package/dist/api/resources/send/types/ElementalDividerNode.d.ts +1 -1
  481. package/dist/api/resources/send/types/ElementalGroupNode.d.ts +1 -1
  482. package/dist/api/resources/send/types/ElementalImageNode.d.ts +1 -1
  483. package/dist/api/resources/send/types/ElementalMetaNode.d.ts +1 -1
  484. package/dist/api/resources/send/types/ElementalNode.d.ts +1 -1
  485. package/dist/api/resources/send/types/ElementalQuoteNode.d.ts +1 -1
  486. package/dist/api/resources/send/types/ElementalTextNode.d.ts +1 -1
  487. package/dist/api/resources/send/types/EmailHeader.d.ts +1 -1
  488. package/dist/api/resources/send/types/Expiry.d.ts +1 -1
  489. package/dist/api/resources/send/types/IPreferences.d.ts +1 -1
  490. package/dist/api/resources/send/types/IProfilePreferences.d.ts +1 -1
  491. package/dist/api/resources/send/types/ListPatternRecipient.d.ts +1 -1
  492. package/dist/api/resources/send/types/ListRecipient.d.ts +1 -1
  493. package/dist/api/resources/send/types/Locales.d.ts +1 -1
  494. package/dist/api/resources/send/types/Message.d.ts +1 -1
  495. package/dist/api/resources/send/types/MessageChannelEmailOverride.d.ts +1 -1
  496. package/dist/api/resources/send/types/MessageChannels.d.ts +1 -1
  497. package/dist/api/resources/send/types/MessageMetadata.d.ts +1 -1
  498. package/dist/api/resources/send/types/MessageProviders.d.ts +1 -1
  499. package/dist/api/resources/send/types/MessageProvidersType.d.ts +1 -1
  500. package/dist/api/resources/send/types/MessageRecipient.d.ts +1 -1
  501. package/dist/api/resources/send/types/Metadata.d.ts +1 -1
  502. package/dist/api/resources/send/types/MsTeamsRecipient.d.ts +1 -1
  503. package/dist/api/resources/send/types/Preference.d.ts +1 -1
  504. package/dist/api/resources/send/types/Recipient.d.ts +1 -1
  505. package/dist/api/resources/send/types/Routing.d.ts +1 -1
  506. package/dist/api/resources/send/types/RoutingChannel.d.ts +1 -1
  507. package/dist/api/resources/send/types/RoutingStrategyChannel.d.ts +1 -1
  508. package/dist/api/resources/send/types/RoutingStrategyProvider.d.ts +1 -1
  509. package/dist/api/resources/send/types/SlackRecipient.d.ts +1 -1
  510. package/dist/api/resources/send/types/TemplateMessage.d.ts +1 -1
  511. package/dist/api/resources/send/types/Timeout.d.ts +1 -1
  512. package/dist/api/resources/send/types/UserRecipient.d.ts +1 -1
  513. package/dist/api/resources/templates/client/Client.d.ts +9 -1
  514. package/dist/api/resources/templates/client/Client.js +13 -3
  515. package/dist/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +6 -0
  516. package/dist/api/resources/templates/client/requests/index.d.ts +1 -1
  517. package/dist/api/resources/templates/types/ListTemplatesResponse.d.ts +1 -1
  518. package/dist/api/resources/templates/types/NotificationTemplates.d.ts +1 -1
  519. package/dist/api/resources/templates/types/RoutingStrategy.d.ts +1 -1
  520. package/dist/api/resources/templates/types/Tag.d.ts +1 -1
  521. package/dist/api/resources/tenants/client/Client.d.ts +82 -1
  522. package/dist/api/resources/tenants/client/Client.js +190 -13
  523. package/dist/api/resources/tenants/client/requests/ListTenantParams.d.ts +13 -1
  524. package/dist/api/resources/tenants/client/requests/ListUsersForTenantParams.d.ts +7 -0
  525. package/dist/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.d.ts +23 -2
  526. package/dist/api/resources/tenants/client/requests/index.d.ts +3 -3
  527. package/dist/api/resources/tenants/types/DefaultPreferences.d.ts +2 -2
  528. package/dist/api/resources/tenants/types/ListUsersForTenantResponse.d.ts +1 -1
  529. package/dist/api/resources/tenants/types/SubscriptionTopic.d.ts +2 -3
  530. package/dist/api/resources/tenants/types/SubscriptionTopicNew.d.ts +11 -0
  531. package/dist/api/resources/tenants/types/SubscriptionTopicNew.js +5 -0
  532. package/dist/api/resources/tenants/types/TemplateProperty.d.ts +3 -0
  533. package/dist/api/resources/tenants/types/Tenant.d.ts +2 -2
  534. package/dist/api/resources/tenants/types/TenantListResponse.d.ts +1 -1
  535. package/dist/api/resources/tenants/types/index.d.ts +1 -0
  536. package/dist/api/resources/tenants/types/index.js +1 -0
  537. package/dist/api/resources/translations/client/Client.d.ts +17 -0
  538. package/dist/api/resources/translations/client/Client.js +28 -7
  539. package/dist/api/resources/users/resources/preferences/client/Client.d.ts +22 -1
  540. package/dist/api/resources/users/resources/preferences/client/Client.js +36 -9
  541. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.d.ts +1 -1
  542. package/dist/api/resources/users/resources/preferences/client/requests/index.d.ts +1 -1
  543. package/dist/api/resources/users/resources/preferences/types/TopicPreference.d.ts +1 -1
  544. package/dist/api/resources/users/resources/preferences/types/TopicPreferenceUpdate.d.ts +1 -1
  545. package/dist/api/resources/users/resources/preferences/types/UserPreferencesGetResponse.d.ts +1 -1
  546. package/dist/api/resources/users/resources/preferences/types/UserPreferencesListResponse.d.ts +1 -1
  547. package/dist/api/resources/users/resources/tenants/client/Client.d.ts +57 -2
  548. package/dist/api/resources/users/resources/tenants/client/Client.js +78 -13
  549. package/dist/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.d.ts +16 -1
  550. package/dist/api/resources/users/resources/tenants/client/requests/AddUserToSingleTenantsParams.d.ts +11 -2
  551. package/dist/api/resources/users/resources/tenants/client/requests/ListTenantsForUserParams.d.ts +7 -0
  552. package/dist/api/resources/users/resources/tenants/client/requests/index.d.ts +3 -3
  553. package/dist/api/resources/users/resources/tenants/types/AddUserToSingleTenantsParamsProfile.d.ts +3 -0
  554. package/dist/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.d.ts +1 -1
  555. package/dist/api/resources/users/resources/tokens/client/Client.d.ts +73 -1
  556. package/dist/api/resources/users/resources/tokens/client/Client.js +136 -13
  557. package/dist/api/resources/users/resources/tokens/types/GetAllTokensResponse.d.ts +1 -1
  558. package/dist/api/resources/users/resources/tokens/types/GetUserTokenResponse.d.ts +1 -1
  559. package/dist/api/resources/users/resources/tokens/types/PatchUserTokenOpts.d.ts +1 -1
  560. package/dist/api/resources/users/resources/tokens/types/PutUserTokenOpts.d.ts +1 -1
  561. package/dist/api/resources/users/resources/tokens/types/PutUserTokensOpts.d.ts +1 -1
  562. package/dist/api/resources/users/resources/tokens/types/UserToken.d.ts +1 -1
  563. package/dist/core/fetcher/Fetcher.d.ts +2 -2
  564. package/dist/core/fetcher/Fetcher.js +60 -6
  565. package/dist/core/index.d.ts +1 -0
  566. package/dist/core/index.js +1 -0
  567. package/dist/core/runtime/index.d.ts +1 -0
  568. package/dist/core/runtime/index.js +5 -0
  569. package/dist/core/runtime/runtime.d.ts +8 -0
  570. package/dist/core/runtime/runtime.js +82 -0
  571. package/jest.config.js +2 -2
  572. package/package.json +8 -6
  573. package/tests/client.test.ts +0 -11
@@ -41,15 +41,40 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Bulk = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
- const Courier = __importStar(require("../../.."));
44
+ const Courier = __importStar(require("../../../index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
- const errors = __importStar(require("../../../../errors"));
46
+ const errors = __importStar(require("../../../../errors/index"));
47
47
  class Bulk {
48
48
  constructor(_options = {}) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
52
+ * @param {Courier.BulkCreateJobParams} request
53
+ * @param {Bulk.IdempotentRequestOptions} requestOptions - Request-specific configuration.
54
+ *
52
55
  * @throws {@link Courier.BadRequestError}
56
+ *
57
+ * @example
58
+ * await courier.bulk.createJob({
59
+ * message: {
60
+ * message: {},
61
+ * brand: "string",
62
+ * data: {
63
+ * "string": {
64
+ * "key": "value"
65
+ * }
66
+ * },
67
+ * event: "string",
68
+ * locale: {
69
+ * "string": {
70
+ * "key": "value"
71
+ * }
72
+ * },
73
+ * override: {
74
+ * "key": "value"
75
+ * }
76
+ * }
77
+ * })
53
78
  */
54
79
  createJob(request, requestOptions) {
55
80
  var _a, _b;
@@ -61,11 +86,11 @@ class Bulk {
61
86
  Authorization: yield this._getAuthorizationHeader(),
62
87
  "X-Fern-Language": "JavaScript",
63
88
  "X-Fern-SDK-Name": "@trycourier/courier",
64
- "X-Fern-SDK-Version": "v6.1.1",
89
+ "X-Fern-SDK-Version": "v6.1.3",
90
+ "X-Fern-Runtime": core.RUNTIME.type,
91
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
65
92
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
66
- "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
67
- ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
68
- : undefined,
93
+ "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry : undefined,
69
94
  },
70
95
  contentType: "application/json",
71
96
  body: request,
@@ -103,22 +128,41 @@ class Bulk {
103
128
  }
104
129
  /**
105
130
  * Ingest user data into a Bulk Job
131
+ *
132
+ * @param {string} jobId - A unique identifier representing the bulk job
133
+ * @param {Courier.BulkIngestUsersParams} request
134
+ * @param {Bulk.IdempotentRequestOptions} requestOptions - Request-specific configuration.
135
+ *
136
+ * @example
137
+ * await courier.bulk.ingestUsers("string", {
138
+ * users: [{
139
+ * preferences: {},
140
+ * profile: {
141
+ * "key": "value"
142
+ * },
143
+ * recipient: "string",
144
+ * data: {
145
+ * "key": "value"
146
+ * },
147
+ * to: {}
148
+ * }]
149
+ * })
106
150
  */
107
151
  ingestUsers(jobId, request, requestOptions) {
108
152
  var _a, _b;
109
153
  return __awaiter(this, void 0, void 0, function* () {
110
154
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
111
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/bulk/${jobId}`),
155
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/bulk/${encodeURIComponent(jobId)}`),
112
156
  method: "POST",
113
157
  headers: {
114
158
  Authorization: yield this._getAuthorizationHeader(),
115
159
  "X-Fern-Language": "JavaScript",
116
160
  "X-Fern-SDK-Name": "@trycourier/courier",
117
- "X-Fern-SDK-Version": "v6.1.1",
161
+ "X-Fern-SDK-Version": "v6.1.3",
162
+ "X-Fern-Runtime": core.RUNTIME.type,
163
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
118
164
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
119
- "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
120
- ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
121
- : undefined,
165
+ "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry : undefined,
122
166
  },
123
167
  contentType: "application/json",
124
168
  body: request,
@@ -151,23 +195,30 @@ class Bulk {
151
195
  }
152
196
  /**
153
197
  * Run a bulk job
198
+ *
199
+ * @param {string} jobId - A unique identifier representing the bulk job
200
+ * @param {Bulk.IdempotentRequestOptions} requestOptions - Request-specific configuration.
201
+ *
154
202
  * @throws {@link Courier.BadRequestError}
203
+ *
204
+ * @example
205
+ * await courier.bulk.runJob("string")
155
206
  */
156
207
  runJob(jobId, requestOptions) {
157
208
  var _a, _b;
158
209
  return __awaiter(this, void 0, void 0, function* () {
159
210
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
160
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/bulk/${jobId}/run`),
211
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/bulk/${encodeURIComponent(jobId)}/run`),
161
212
  method: "POST",
162
213
  headers: {
163
214
  Authorization: yield this._getAuthorizationHeader(),
164
215
  "X-Fern-Language": "JavaScript",
165
216
  "X-Fern-SDK-Name": "@trycourier/courier",
166
- "X-Fern-SDK-Version": "v6.1.1",
217
+ "X-Fern-SDK-Version": "v6.1.3",
218
+ "X-Fern-Runtime": core.RUNTIME.type,
219
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
167
220
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
168
- "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
169
- ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
170
- : undefined,
221
+ "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry : undefined,
171
222
  },
172
223
  contentType: "application/json",
173
224
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -204,19 +255,28 @@ class Bulk {
204
255
  }
205
256
  /**
206
257
  * Get a bulk job
258
+ *
259
+ * @param {string} jobId - A unique identifier representing the bulk job
260
+ * @param {Bulk.RequestOptions} requestOptions - Request-specific configuration.
261
+ *
207
262
  * @throws {@link Courier.BadRequestError}
263
+ *
264
+ * @example
265
+ * await courier.bulk.getJob("string")
208
266
  */
209
267
  getJob(jobId, requestOptions) {
210
268
  var _a, _b;
211
269
  return __awaiter(this, void 0, void 0, function* () {
212
270
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
213
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/bulk/${jobId}`),
271
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/bulk/${encodeURIComponent(jobId)}`),
214
272
  method: "GET",
215
273
  headers: {
216
274
  Authorization: yield this._getAuthorizationHeader(),
217
275
  "X-Fern-Language": "JavaScript",
218
276
  "X-Fern-SDK-Name": "@trycourier/courier",
219
- "X-Fern-SDK-Version": "v6.1.1",
277
+ "X-Fern-SDK-Version": "v6.1.3",
278
+ "X-Fern-Runtime": core.RUNTIME.type,
279
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
220
280
  },
221
281
  contentType: "application/json",
222
282
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -253,19 +313,28 @@ class Bulk {
253
313
  }
254
314
  /**
255
315
  * Get Bulk Job Users
316
+ *
317
+ * @param {string} jobId - A unique identifier representing the bulk job
318
+ * @param {Bulk.RequestOptions} requestOptions - Request-specific configuration.
319
+ *
256
320
  * @throws {@link Courier.BadRequestError}
321
+ *
322
+ * @example
323
+ * await courier.bulk.getUsers("string")
257
324
  */
258
325
  getUsers(jobId, requestOptions) {
259
326
  var _a, _b;
260
327
  return __awaiter(this, void 0, void 0, function* () {
261
328
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
262
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/bulk/${jobId}/users`),
329
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/bulk/${encodeURIComponent(jobId)}/users`),
263
330
  method: "GET",
264
331
  headers: {
265
332
  Authorization: yield this._getAuthorizationHeader(),
266
333
  "X-Fern-Language": "JavaScript",
267
334
  "X-Fern-SDK-Name": "@trycourier/courier",
268
- "X-Fern-SDK-Version": "v6.1.1",
335
+ "X-Fern-SDK-Version": "v6.1.3",
336
+ "X-Fern-Runtime": core.RUNTIME.type,
337
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
269
338
  },
270
339
  contentType: "application/json",
271
340
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -303,7 +372,7 @@ class Bulk {
303
372
  _getAuthorizationHeader() {
304
373
  var _a;
305
374
  return __awaiter(this, void 0, void 0, function* () {
306
- const bearer = (_a = (yield core.Supplier.get(this._options.authorizationToken))) !== null && _a !== void 0 ? _a : process.env["COURIER_AUTH_TOKEN"];
375
+ const bearer = (_a = (yield core.Supplier.get(this._options.authorizationToken))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["COURIER_AUTH_TOKEN"];
307
376
  if (bearer == null) {
308
377
  throw new errors.CourierError({
309
378
  message: "Please specify COURIER_AUTH_TOKEN when instantiating the client.",
@@ -1,7 +1,30 @@
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
+ /**
6
+ * @example
7
+ * {
8
+ * message: {
9
+ * message: {},
10
+ * brand: "string",
11
+ * data: {
12
+ * "string": {
13
+ * "key": "value"
14
+ * }
15
+ * },
16
+ * event: "string",
17
+ * locale: {
18
+ * "string": {
19
+ * "key": "value"
20
+ * }
21
+ * },
22
+ * override: {
23
+ * "key": "value"
24
+ * }
25
+ * }
26
+ * }
27
+ */
5
28
  export interface BulkCreateJobParams {
6
29
  message: Courier.InboundBulkMessage;
7
30
  }
@@ -1 +1 @@
1
- export { BulkCreateJobParams } from "./BulkCreateJobParams";
1
+ export { type BulkCreateJobParams } from "./BulkCreateJobParams";
@@ -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 BulkGetJobResponse {
6
6
  job: Courier.JobDetails;
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 BulkGetJobUsersResponse {
6
6
  items: Courier.BulkMessageUserResponse[];
7
7
  paging: Courier.Paging;
@@ -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 BulkIngestUsersParams {
6
6
  users: Courier.InboundBulkMessageUser[];
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 BulkIngestUsersResponse {
6
6
  total: number;
7
7
  errors?: Courier.BulkIngestError[];
@@ -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 BulkMessageUserResponse extends Courier.InboundBulkMessageUser {
6
6
  status: Courier.BulkJobUserStatus;
7
7
  messageId?: 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
  * 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).
@@ -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 InboundBulkMessage extends Courier.InboundBulkMessageV1 {
6
6
  message?: Courier.InboundBulkMessageV2;
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 InboundBulkMessageUser {
6
6
  preferences?: Courier.RecipientPreferences;
7
7
  profile?: 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 declare type InboundBulkMessageV2 =
6
6
  /**
7
7
  * Describes the content of the message in a way that will
@@ -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 InboundBulkTemplateMessage extends Courier.BaseMessage {
6
6
  /**
7
7
  * The id of the notification template to be rendered and sent to the recipient(s).
@@ -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 JobDetails {
6
6
  definition: Courier.InboundBulkMessage;
7
7
  enqueued: number;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as errors from "../../../../errors";
5
- import * as Courier from "../../..";
4
+ import * as errors from "../../../../errors/index";
5
+ import * as Courier from "../../../index";
6
6
  export declare class AlreadyExistsError extends errors.CourierError {
7
7
  constructor(body: Courier.AlreadyExists);
8
8
  }
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AlreadyExistsError = void 0;
30
- const errors = __importStar(require("../../../../errors"));
30
+ const errors = __importStar(require("../../../../errors/index"));
31
31
  class AlreadyExistsError extends errors.CourierError {
32
32
  constructor(body) {
33
33
  super({
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as errors from "../../../../errors";
5
- import * as Courier from "../../..";
4
+ import * as errors from "../../../../errors/index";
5
+ import * as Courier from "../../../index";
6
6
  export declare class BadRequestError extends errors.CourierError {
7
7
  constructor(body: Courier.BadRequest);
8
8
  }
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.BadRequestError = void 0;
30
- const errors = __importStar(require("../../../../errors"));
30
+ const errors = __importStar(require("../../../../errors/index"));
31
31
  class BadRequestError extends errors.CourierError {
32
32
  constructor(body) {
33
33
  super({
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as errors from "../../../../errors";
5
- import * as Courier from "../../..";
4
+ import * as errors from "../../../../errors/index";
5
+ import * as Courier from "../../../index";
6
6
  export declare class ConflictError extends errors.CourierError {
7
7
  constructor(body: Courier.Conflict);
8
8
  }
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ConflictError = void 0;
30
- const errors = __importStar(require("../../../../errors"));
30
+ const errors = __importStar(require("../../../../errors/index"));
31
31
  class ConflictError extends errors.CourierError {
32
32
  constructor(body) {
33
33
  super({
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as errors from "../../../../errors";
5
- import * as Courier from "../../..";
4
+ import * as errors from "../../../../errors/index";
5
+ import * as Courier from "../../../index";
6
6
  export declare class MessageNotFoundError extends errors.CourierError {
7
7
  constructor(body: Courier.MessageNotFound);
8
8
  }
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.MessageNotFoundError = void 0;
30
- const errors = __importStar(require("../../../../errors"));
30
+ const errors = __importStar(require("../../../../errors/index"));
31
31
  class MessageNotFoundError extends errors.CourierError {
32
32
  constructor(body) {
33
33
  super({
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as errors from "../../../../errors";
5
- import * as Courier from "../../..";
4
+ import * as errors from "../../../../errors/index";
5
+ import * as Courier from "../../../index";
6
6
  export declare class NotFoundError extends errors.CourierError {
7
7
  constructor(body: Courier.NotFound);
8
8
  }
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.NotFoundError = void 0;
30
- const errors = __importStar(require("../../../../errors"));
30
+ const errors = __importStar(require("../../../../errors/index"));
31
31
  class NotFoundError extends errors.CourierError {
32
32
  constructor(body) {
33
33
  super({
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as errors from "../../../../errors";
5
- import * as Courier from "../../..";
4
+ import * as errors from "../../../../errors/index";
5
+ import * as Courier from "../../../index";
6
6
  export declare class PaymentRequiredError extends errors.CourierError {
7
7
  constructor(body: Courier.PaymentRequired);
8
8
  }
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PaymentRequiredError = void 0;
30
- const errors = __importStar(require("../../../../errors"));
30
+ const errors = __importStar(require("../../../../errors/index"));
31
31
  class PaymentRequiredError extends errors.CourierError {
32
32
  constructor(body) {
33
33
  super({
@@ -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 AlreadyExists extends Courier.BaseError {
6
6
  type: "invalid_request_error";
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 BadRequest extends Courier.BaseError {
6
6
  type: "invalid_request_error";
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 ChannelPreference {
6
6
  channel: Courier.ChannelClassification;
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 Conflict extends Courier.BaseError {
6
6
  type: "invalid_request_error";
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 MessageNotFound extends Courier.BaseError {
6
6
  type: "invalid_request_error";
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 NotFound extends Courier.BaseError {
6
6
  type: "invalid_request_error";
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 NotificationPreferenceDetails {
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 "../../..";
4
+ import * as Courier from "../../../index";
5
5
  export declare type NotificationPreferences = Record<string, Courier.NotificationPreferenceDetails>;
@@ -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 PaymentRequired extends Courier.BaseError {
6
6
  type: "authorization_error";
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 RecipientPreferences {
6
6
  categories?: Courier.NotificationPreferences;
7
7
  notifications?: Courier.NotificationPreferences;
@@ -3,9 +3,10 @@
3
3
  */
4
4
  export interface UserTenantAssociation {
5
5
  /** User ID for the assocation between tenant and user */
6
- user_id: string;
7
- type: "user";
6
+ user_id?: string;
7
+ type?: "user";
8
8
  /** Tenant ID for the assocation between tenant and user */
9
9
  tenant_id: string;
10
- profile: Record<string, any>;
10
+ /** Additional metadata to be applied to a user profile when used in a tenant context */
11
+ profile?: Record<string, any>;
11
12
  }