@trycourier/courier 6.0.1 → 6.0.3

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