@trycourier/courier 7.25.0 → 7.25.1

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 (180) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +0 -3
  3. package/client.d.mts +3 -0
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +3 -0
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/audiences.d.mts +46 -0
  13. package/resources/audiences.d.mts.map +1 -1
  14. package/resources/audiences.d.ts +46 -0
  15. package/resources/audiences.d.ts.map +1 -1
  16. package/resources/audiences.js +46 -0
  17. package/resources/audiences.js.map +1 -1
  18. package/resources/audiences.mjs +46 -0
  19. package/resources/audiences.mjs.map +1 -1
  20. package/resources/automations/invoke.d.mts +5 -1
  21. package/resources/automations/invoke.d.mts.map +1 -1
  22. package/resources/automations/invoke.d.ts +5 -1
  23. package/resources/automations/invoke.d.ts.map +1 -1
  24. package/resources/automations/invoke.js +5 -1
  25. package/resources/automations/invoke.js.map +1 -1
  26. package/resources/automations/invoke.mjs +5 -1
  27. package/resources/automations/invoke.mjs.map +1 -1
  28. package/resources/brands.d.mts +4 -1
  29. package/resources/brands.d.mts.map +1 -1
  30. package/resources/brands.d.ts +4 -1
  31. package/resources/brands.d.ts.map +1 -1
  32. package/resources/brands.js +4 -1
  33. package/resources/brands.js.map +1 -1
  34. package/resources/brands.mjs +4 -1
  35. package/resources/brands.mjs.map +1 -1
  36. package/resources/bulk.d.mts +194 -0
  37. package/resources/bulk.d.mts.map +1 -0
  38. package/resources/bulk.d.ts +194 -0
  39. package/resources/bulk.d.ts.map +1 -0
  40. package/resources/bulk.js +97 -0
  41. package/resources/bulk.js.map +1 -0
  42. package/resources/bulk.mjs +93 -0
  43. package/resources/bulk.mjs.map +1 -0
  44. package/resources/index.d.mts +1 -0
  45. package/resources/index.d.mts.map +1 -1
  46. package/resources/index.d.ts +1 -0
  47. package/resources/index.d.ts.map +1 -1
  48. package/resources/index.js +3 -1
  49. package/resources/index.js.map +1 -1
  50. package/resources/index.mjs +1 -0
  51. package/resources/index.mjs.map +1 -1
  52. package/resources/lists/lists.d.mts +3 -1
  53. package/resources/lists/lists.d.mts.map +1 -1
  54. package/resources/lists/lists.d.ts +3 -1
  55. package/resources/lists/lists.d.ts.map +1 -1
  56. package/resources/lists/lists.js +3 -1
  57. package/resources/lists/lists.js.map +1 -1
  58. package/resources/lists/lists.mjs +3 -1
  59. package/resources/lists/lists.mjs.map +1 -1
  60. package/resources/lists/subscriptions.d.mts +13 -2
  61. package/resources/lists/subscriptions.d.mts.map +1 -1
  62. package/resources/lists/subscriptions.d.ts +13 -2
  63. package/resources/lists/subscriptions.d.ts.map +1 -1
  64. package/resources/lists/subscriptions.js +13 -2
  65. package/resources/lists/subscriptions.js.map +1 -1
  66. package/resources/lists/subscriptions.mjs +13 -2
  67. package/resources/lists/subscriptions.mjs.map +1 -1
  68. package/resources/notifications/checks.d.mts +2 -2
  69. package/resources/notifications/checks.d.ts +2 -2
  70. package/resources/notifications/checks.js +2 -2
  71. package/resources/notifications/checks.mjs +2 -2
  72. package/resources/profiles/lists.d.mts +1 -1
  73. package/resources/profiles/lists.d.ts +1 -1
  74. package/resources/profiles/lists.js +1 -1
  75. package/resources/profiles/lists.mjs +1 -1
  76. package/resources/profiles/profiles.d.mts +12 -5
  77. package/resources/profiles/profiles.d.mts.map +1 -1
  78. package/resources/profiles/profiles.d.ts +12 -5
  79. package/resources/profiles/profiles.d.ts.map +1 -1
  80. package/resources/profiles/profiles.js +12 -5
  81. package/resources/profiles/profiles.js.map +1 -1
  82. package/resources/profiles/profiles.mjs +12 -5
  83. package/resources/profiles/profiles.mjs.map +1 -1
  84. package/resources/providers/providers.d.mts +6 -2
  85. package/resources/providers/providers.d.mts.map +1 -1
  86. package/resources/providers/providers.d.ts +6 -2
  87. package/resources/providers/providers.d.ts.map +1 -1
  88. package/resources/providers/providers.js +6 -2
  89. package/resources/providers/providers.js.map +1 -1
  90. package/resources/providers/providers.mjs +6 -2
  91. package/resources/providers/providers.mjs.map +1 -1
  92. package/resources/send.d.mts +2 -1
  93. package/resources/send.d.mts.map +1 -1
  94. package/resources/send.d.ts +2 -1
  95. package/resources/send.d.ts.map +1 -1
  96. package/resources/send.js +2 -1
  97. package/resources/send.js.map +1 -1
  98. package/resources/send.mjs +2 -1
  99. package/resources/send.mjs.map +1 -1
  100. package/resources/tenants/templates/templates.d.mts +7 -1
  101. package/resources/tenants/templates/templates.d.mts.map +1 -1
  102. package/resources/tenants/templates/templates.d.ts +7 -1
  103. package/resources/tenants/templates/templates.d.ts.map +1 -1
  104. package/resources/tenants/templates/templates.js +7 -1
  105. package/resources/tenants/templates/templates.js.map +1 -1
  106. package/resources/tenants/templates/templates.mjs +7 -1
  107. package/resources/tenants/templates/templates.mjs.map +1 -1
  108. package/resources/tenants/tenants.d.mts +3 -1
  109. package/resources/tenants/tenants.d.mts.map +1 -1
  110. package/resources/tenants/tenants.d.ts +3 -1
  111. package/resources/tenants/tenants.d.ts.map +1 -1
  112. package/resources/tenants/tenants.js +3 -1
  113. package/resources/tenants/tenants.js.map +1 -1
  114. package/resources/tenants/tenants.mjs +3 -1
  115. package/resources/tenants/tenants.mjs.map +1 -1
  116. package/resources/translations.d.mts +16 -0
  117. package/resources/translations.d.mts.map +1 -1
  118. package/resources/translations.d.ts +16 -0
  119. package/resources/translations.d.ts.map +1 -1
  120. package/resources/translations.js +16 -0
  121. package/resources/translations.js.map +1 -1
  122. package/resources/translations.mjs +16 -0
  123. package/resources/translations.mjs.map +1 -1
  124. package/resources/users/tenants.d.mts +5 -1
  125. package/resources/users/tenants.d.mts.map +1 -1
  126. package/resources/users/tenants.d.ts +5 -1
  127. package/resources/users/tenants.d.ts.map +1 -1
  128. package/resources/users/tenants.js +5 -1
  129. package/resources/users/tenants.js.map +1 -1
  130. package/resources/users/tenants.mjs +5 -1
  131. package/resources/users/tenants.mjs.map +1 -1
  132. package/resources/users/tokens.d.mts +8 -1
  133. package/resources/users/tokens.d.mts.map +1 -1
  134. package/resources/users/tokens.d.ts +8 -1
  135. package/resources/users/tokens.d.ts.map +1 -1
  136. package/resources/users/tokens.js +8 -1
  137. package/resources/users/tokens.js.map +1 -1
  138. package/resources/users/tokens.mjs +8 -1
  139. package/resources/users/tokens.mjs.map +1 -1
  140. package/resources/workspace-preferences/topics.d.mts +5 -2
  141. package/resources/workspace-preferences/topics.d.mts.map +1 -1
  142. package/resources/workspace-preferences/topics.d.ts +5 -2
  143. package/resources/workspace-preferences/topics.d.ts.map +1 -1
  144. package/resources/workspace-preferences/topics.js +5 -2
  145. package/resources/workspace-preferences/topics.js.map +1 -1
  146. package/resources/workspace-preferences/topics.mjs +5 -2
  147. package/resources/workspace-preferences/topics.mjs.map +1 -1
  148. package/resources/workspace-preferences/workspace-preferences.d.mts +8 -2
  149. package/resources/workspace-preferences/workspace-preferences.d.mts.map +1 -1
  150. package/resources/workspace-preferences/workspace-preferences.d.ts +8 -2
  151. package/resources/workspace-preferences/workspace-preferences.d.ts.map +1 -1
  152. package/resources/workspace-preferences/workspace-preferences.js +8 -2
  153. package/resources/workspace-preferences/workspace-preferences.js.map +1 -1
  154. package/resources/workspace-preferences/workspace-preferences.mjs +8 -2
  155. package/resources/workspace-preferences/workspace-preferences.mjs.map +1 -1
  156. package/src/client.ts +25 -0
  157. package/src/resources/audiences.ts +46 -0
  158. package/src/resources/automations/invoke.ts +5 -1
  159. package/src/resources/brands.ts +4 -1
  160. package/src/resources/bulk.ts +249 -0
  161. package/src/resources/index.ts +11 -0
  162. package/src/resources/lists/lists.ts +3 -1
  163. package/src/resources/lists/subscriptions.ts +13 -2
  164. package/src/resources/notifications/checks.ts +2 -2
  165. package/src/resources/profiles/lists.ts +1 -1
  166. package/src/resources/profiles/profiles.ts +12 -5
  167. package/src/resources/providers/providers.ts +6 -2
  168. package/src/resources/send.ts +2 -1
  169. package/src/resources/tenants/templates/templates.ts +7 -1
  170. package/src/resources/tenants/tenants.ts +3 -1
  171. package/src/resources/translations.ts +16 -0
  172. package/src/resources/users/tenants.ts +5 -1
  173. package/src/resources/users/tokens.ts +8 -1
  174. package/src/resources/workspace-preferences/topics.ts +5 -2
  175. package/src/resources/workspace-preferences/workspace-preferences.ts +8 -2
  176. package/src/version.ts +1 -1
  177. package/version.d.mts +1 -1
  178. package/version.d.ts +1 -1
  179. package/version.js +1 -1
  180. package/version.mjs +1 -1
@@ -0,0 +1,194 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as BulkAPI from "./bulk.mjs";
3
+ import * as Shared from "./shared.mjs";
4
+ import { APIPromise } from "../core/api-promise.mjs";
5
+ import { RequestOptions } from "../internal/request-options.mjs";
6
+ export declare class Bulk extends APIResource {
7
+ /**
8
+ * Ingest user data into a Bulk Job.
9
+ *
10
+ * **Important**: For email-based bulk jobs, each user must include `profile.email`
11
+ * for provider routing to work correctly. The `to.email` field is not sufficient
12
+ * for email provider routing.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * await client.bulk.addUsers('job_id', {
17
+ * users: [
18
+ * {
19
+ * recipient: 'user_abc',
20
+ * profile: { email: 'jdoe@example.com' },
21
+ * data: { name: 'Jane' },
22
+ * },
23
+ * ],
24
+ * });
25
+ * ```
26
+ */
27
+ addUsers(jobID: string, body: BulkAddUsersParams, options?: RequestOptions): APIPromise<void>;
28
+ /**
29
+ * Creates a new bulk job for sending messages to multiple recipients.
30
+ *
31
+ * **Required**: `message.event` (event ID or notification ID)
32
+ *
33
+ * **Optional (V2 format)**: `message.template` (notification ID) or
34
+ * `message.content` (Elemental content) can be provided to override the
35
+ * notification associated with the event.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * const response = await client.bulk.createJob({
40
+ * message: {
41
+ * event: 'welcome-series',
42
+ * brand: 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag',
43
+ * data: { campaign: 'spring-2024' },
44
+ * },
45
+ * });
46
+ * ```
47
+ */
48
+ createJob(body: BulkCreateJobParams, options?: RequestOptions): APIPromise<BulkCreateJobResponse>;
49
+ /**
50
+ * Get Bulk Job Users
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const response = await client.bulk.listUsers('job_id');
55
+ * ```
56
+ */
57
+ listUsers(jobID: string, query?: BulkListUsersParams | null | undefined, options?: RequestOptions): APIPromise<BulkListUsersResponse>;
58
+ /**
59
+ * Get a bulk job
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const response = await client.bulk.retrieveJob('job_id');
64
+ * ```
65
+ */
66
+ retrieveJob(jobID: string, options?: RequestOptions): APIPromise<BulkRetrieveJobResponse>;
67
+ /**
68
+ * Run a bulk job
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * await client.bulk.runJob('job_id');
73
+ * ```
74
+ */
75
+ runJob(jobID: string, options?: RequestOptions): APIPromise<void>;
76
+ }
77
+ /**
78
+ * Bulk message definition. Supports two formats:
79
+ *
80
+ * - V1 format: Requires `event` field (event ID or notification ID)
81
+ * - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
82
+ * content) in addition to `event`
83
+ */
84
+ export interface InboundBulkMessage {
85
+ /**
86
+ * Event ID or Notification ID (required). Can be either a Notification ID (e.g.,
87
+ * "FRH3QXM9E34W4RKP7MRC8NZ1T8V8") or a custom Event ID (e.g., "welcome-email")
88
+ * mapped to a notification.
89
+ */
90
+ event: string;
91
+ brand?: string | null;
92
+ /**
93
+ * Elemental content (optional, for V2 format). When provided, this will be used
94
+ * instead of the notification associated with the `event` field.
95
+ */
96
+ content?: Shared.ElementalContentSugar | Shared.ElementalContent | null;
97
+ data?: {
98
+ [key: string]: unknown;
99
+ } | null;
100
+ locale?: {
101
+ [key: string]: {
102
+ [key: string]: unknown;
103
+ };
104
+ } | null;
105
+ override?: {
106
+ [key: string]: unknown;
107
+ } | null;
108
+ /**
109
+ * Notification ID or template ID (optional, for V2 format). When provided, this
110
+ * will be used instead of the notification associated with the `event` field.
111
+ */
112
+ template?: string | null;
113
+ }
114
+ export interface InboundBulkMessageUser {
115
+ /**
116
+ * User-specific data that will be merged with message.data
117
+ */
118
+ data?: unknown;
119
+ preferences?: Shared.RecipientPreferences | null;
120
+ /**
121
+ * User profile information. For email-based bulk jobs, `profile.email` is required
122
+ * for provider routing to determine if the message can be delivered. The email
123
+ * address should be provided here rather than in `to.email`.
124
+ */
125
+ profile?: {
126
+ [key: string]: unknown;
127
+ } | null;
128
+ /**
129
+ * User ID (legacy field, use profile or to.user_id instead)
130
+ */
131
+ recipient?: string | null;
132
+ /**
133
+ * Optional recipient information. Note: For email provider routing, use
134
+ * `profile.email` instead of `to.email`. The `to` field is primarily used for
135
+ * recipient identification and data merging.
136
+ */
137
+ to?: Shared.UserRecipient | null;
138
+ }
139
+ export interface BulkCreateJobResponse {
140
+ jobId: string;
141
+ }
142
+ export interface BulkListUsersResponse {
143
+ items: Array<BulkListUsersResponse.Item>;
144
+ paging: Shared.Paging;
145
+ }
146
+ export declare namespace BulkListUsersResponse {
147
+ interface Item extends BulkAPI.InboundBulkMessageUser {
148
+ status: 'PENDING' | 'ENQUEUED' | 'ERROR';
149
+ messageId?: string | null;
150
+ }
151
+ }
152
+ export interface BulkRetrieveJobResponse {
153
+ job: BulkRetrieveJobResponse.Job;
154
+ }
155
+ export declare namespace BulkRetrieveJobResponse {
156
+ interface Job {
157
+ /**
158
+ * Bulk message definition. Supports two formats:
159
+ *
160
+ * - V1 format: Requires `event` field (event ID or notification ID)
161
+ * - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
162
+ * content) in addition to `event`
163
+ */
164
+ definition: BulkAPI.InboundBulkMessage;
165
+ enqueued: number;
166
+ failures: number;
167
+ received: number;
168
+ status: 'CREATED' | 'PROCESSING' | 'COMPLETED' | 'ERROR';
169
+ }
170
+ }
171
+ export interface BulkAddUsersParams {
172
+ users: Array<InboundBulkMessageUser>;
173
+ }
174
+ export interface BulkCreateJobParams {
175
+ /**
176
+ * Bulk message definition. Supports two formats:
177
+ *
178
+ * - V1 format: Requires `event` field (event ID or notification ID)
179
+ * - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
180
+ * content) in addition to `event`
181
+ */
182
+ message: InboundBulkMessage;
183
+ }
184
+ export interface BulkListUsersParams {
185
+ /**
186
+ * A unique identifier that allows for fetching the next set of users added to the
187
+ * bulk job
188
+ */
189
+ cursor?: string | null;
190
+ }
191
+ export declare namespace Bulk {
192
+ export { type InboundBulkMessage as InboundBulkMessage, type InboundBulkMessageUser as InboundBulkMessageUser, type BulkCreateJobResponse as BulkCreateJobResponse, type BulkListUsersResponse as BulkListUsersResponse, type BulkRetrieveJobResponse as BulkRetrieveJobResponse, type BulkAddUsersParams as BulkAddUsersParams, type BulkCreateJobParams as BulkCreateJobParams, type BulkListUsersParams as BulkListUsersParams, };
193
+ }
194
+ //# sourceMappingURL=bulk.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ7F;;;;;;;;;;;;;;;;;;;OAmBG;IACH,SAAS,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjG;;;;;;;OAOG;IACH,SAAS,CACP,KAAK,EAAE,MAAM,EACb,KA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,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,194 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as BulkAPI from "./bulk.js";
3
+ import * as Shared from "./shared.js";
4
+ import { APIPromise } from "../core/api-promise.js";
5
+ import { RequestOptions } from "../internal/request-options.js";
6
+ export declare class Bulk extends APIResource {
7
+ /**
8
+ * Ingest user data into a Bulk Job.
9
+ *
10
+ * **Important**: For email-based bulk jobs, each user must include `profile.email`
11
+ * for provider routing to work correctly. The `to.email` field is not sufficient
12
+ * for email provider routing.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * await client.bulk.addUsers('job_id', {
17
+ * users: [
18
+ * {
19
+ * recipient: 'user_abc',
20
+ * profile: { email: 'jdoe@example.com' },
21
+ * data: { name: 'Jane' },
22
+ * },
23
+ * ],
24
+ * });
25
+ * ```
26
+ */
27
+ addUsers(jobID: string, body: BulkAddUsersParams, options?: RequestOptions): APIPromise<void>;
28
+ /**
29
+ * Creates a new bulk job for sending messages to multiple recipients.
30
+ *
31
+ * **Required**: `message.event` (event ID or notification ID)
32
+ *
33
+ * **Optional (V2 format)**: `message.template` (notification ID) or
34
+ * `message.content` (Elemental content) can be provided to override the
35
+ * notification associated with the event.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * const response = await client.bulk.createJob({
40
+ * message: {
41
+ * event: 'welcome-series',
42
+ * brand: 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag',
43
+ * data: { campaign: 'spring-2024' },
44
+ * },
45
+ * });
46
+ * ```
47
+ */
48
+ createJob(body: BulkCreateJobParams, options?: RequestOptions): APIPromise<BulkCreateJobResponse>;
49
+ /**
50
+ * Get Bulk Job Users
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const response = await client.bulk.listUsers('job_id');
55
+ * ```
56
+ */
57
+ listUsers(jobID: string, query?: BulkListUsersParams | null | undefined, options?: RequestOptions): APIPromise<BulkListUsersResponse>;
58
+ /**
59
+ * Get a bulk job
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const response = await client.bulk.retrieveJob('job_id');
64
+ * ```
65
+ */
66
+ retrieveJob(jobID: string, options?: RequestOptions): APIPromise<BulkRetrieveJobResponse>;
67
+ /**
68
+ * Run a bulk job
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * await client.bulk.runJob('job_id');
73
+ * ```
74
+ */
75
+ runJob(jobID: string, options?: RequestOptions): APIPromise<void>;
76
+ }
77
+ /**
78
+ * Bulk message definition. Supports two formats:
79
+ *
80
+ * - V1 format: Requires `event` field (event ID or notification ID)
81
+ * - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
82
+ * content) in addition to `event`
83
+ */
84
+ export interface InboundBulkMessage {
85
+ /**
86
+ * Event ID or Notification ID (required). Can be either a Notification ID (e.g.,
87
+ * "FRH3QXM9E34W4RKP7MRC8NZ1T8V8") or a custom Event ID (e.g., "welcome-email")
88
+ * mapped to a notification.
89
+ */
90
+ event: string;
91
+ brand?: string | null;
92
+ /**
93
+ * Elemental content (optional, for V2 format). When provided, this will be used
94
+ * instead of the notification associated with the `event` field.
95
+ */
96
+ content?: Shared.ElementalContentSugar | Shared.ElementalContent | null;
97
+ data?: {
98
+ [key: string]: unknown;
99
+ } | null;
100
+ locale?: {
101
+ [key: string]: {
102
+ [key: string]: unknown;
103
+ };
104
+ } | null;
105
+ override?: {
106
+ [key: string]: unknown;
107
+ } | null;
108
+ /**
109
+ * Notification ID or template ID (optional, for V2 format). When provided, this
110
+ * will be used instead of the notification associated with the `event` field.
111
+ */
112
+ template?: string | null;
113
+ }
114
+ export interface InboundBulkMessageUser {
115
+ /**
116
+ * User-specific data that will be merged with message.data
117
+ */
118
+ data?: unknown;
119
+ preferences?: Shared.RecipientPreferences | null;
120
+ /**
121
+ * User profile information. For email-based bulk jobs, `profile.email` is required
122
+ * for provider routing to determine if the message can be delivered. The email
123
+ * address should be provided here rather than in `to.email`.
124
+ */
125
+ profile?: {
126
+ [key: string]: unknown;
127
+ } | null;
128
+ /**
129
+ * User ID (legacy field, use profile or to.user_id instead)
130
+ */
131
+ recipient?: string | null;
132
+ /**
133
+ * Optional recipient information. Note: For email provider routing, use
134
+ * `profile.email` instead of `to.email`. The `to` field is primarily used for
135
+ * recipient identification and data merging.
136
+ */
137
+ to?: Shared.UserRecipient | null;
138
+ }
139
+ export interface BulkCreateJobResponse {
140
+ jobId: string;
141
+ }
142
+ export interface BulkListUsersResponse {
143
+ items: Array<BulkListUsersResponse.Item>;
144
+ paging: Shared.Paging;
145
+ }
146
+ export declare namespace BulkListUsersResponse {
147
+ interface Item extends BulkAPI.InboundBulkMessageUser {
148
+ status: 'PENDING' | 'ENQUEUED' | 'ERROR';
149
+ messageId?: string | null;
150
+ }
151
+ }
152
+ export interface BulkRetrieveJobResponse {
153
+ job: BulkRetrieveJobResponse.Job;
154
+ }
155
+ export declare namespace BulkRetrieveJobResponse {
156
+ interface Job {
157
+ /**
158
+ * Bulk message definition. Supports two formats:
159
+ *
160
+ * - V1 format: Requires `event` field (event ID or notification ID)
161
+ * - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
162
+ * content) in addition to `event`
163
+ */
164
+ definition: BulkAPI.InboundBulkMessage;
165
+ enqueued: number;
166
+ failures: number;
167
+ received: number;
168
+ status: 'CREATED' | 'PROCESSING' | 'COMPLETED' | 'ERROR';
169
+ }
170
+ }
171
+ export interface BulkAddUsersParams {
172
+ users: Array<InboundBulkMessageUser>;
173
+ }
174
+ export interface BulkCreateJobParams {
175
+ /**
176
+ * Bulk message definition. Supports two formats:
177
+ *
178
+ * - V1 format: Requires `event` field (event ID or notification ID)
179
+ * - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
180
+ * content) in addition to `event`
181
+ */
182
+ message: InboundBulkMessage;
183
+ }
184
+ export interface BulkListUsersParams {
185
+ /**
186
+ * A unique identifier that allows for fetching the next set of users added to the
187
+ * bulk job
188
+ */
189
+ cursor?: string | null;
190
+ }
191
+ export declare namespace Bulk {
192
+ export { type InboundBulkMessage as InboundBulkMessage, type InboundBulkMessageUser as InboundBulkMessageUser, type BulkCreateJobResponse as BulkCreateJobResponse, type BulkListUsersResponse as BulkListUsersResponse, type BulkRetrieveJobResponse as BulkRetrieveJobResponse, type BulkAddUsersParams as BulkAddUsersParams, type BulkCreateJobParams as BulkCreateJobParams, type BulkListUsersParams as BulkListUsersParams, };
193
+ }
194
+ //# sourceMappingURL=bulk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,OAAO,kBAAe;AAClC,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ7F;;;;;;;;;;;;;;;;;;;OAmBG;IACH,SAAS,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjG;;;;;;;OAOG;IACH,SAAS,CACP,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc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,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Bulk = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const headers_1 = require("../internal/headers.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
+ class Bulk extends resource_1.APIResource {
9
+ /**
10
+ * Ingest user data into a Bulk Job.
11
+ *
12
+ * **Important**: For email-based bulk jobs, each user must include `profile.email`
13
+ * for provider routing to work correctly. The `to.email` field is not sufficient
14
+ * for email provider routing.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * await client.bulk.addUsers('job_id', {
19
+ * users: [
20
+ * {
21
+ * recipient: 'user_abc',
22
+ * profile: { email: 'jdoe@example.com' },
23
+ * data: { name: 'Jane' },
24
+ * },
25
+ * ],
26
+ * });
27
+ * ```
28
+ */
29
+ addUsers(jobID, body, options) {
30
+ return this._client.post((0, path_1.path) `/bulk/${jobID}`, {
31
+ body,
32
+ ...options,
33
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
34
+ });
35
+ }
36
+ /**
37
+ * Creates a new bulk job for sending messages to multiple recipients.
38
+ *
39
+ * **Required**: `message.event` (event ID or notification ID)
40
+ *
41
+ * **Optional (V2 format)**: `message.template` (notification ID) or
42
+ * `message.content` (Elemental content) can be provided to override the
43
+ * notification associated with the event.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const response = await client.bulk.createJob({
48
+ * message: {
49
+ * event: 'welcome-series',
50
+ * brand: 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag',
51
+ * data: { campaign: 'spring-2024' },
52
+ * },
53
+ * });
54
+ * ```
55
+ */
56
+ createJob(body, options) {
57
+ return this._client.post('/bulk', { body, ...options });
58
+ }
59
+ /**
60
+ * Get Bulk Job Users
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const response = await client.bulk.listUsers('job_id');
65
+ * ```
66
+ */
67
+ listUsers(jobID, query = {}, options) {
68
+ return this._client.get((0, path_1.path) `/bulk/${jobID}/users`, { query, ...options });
69
+ }
70
+ /**
71
+ * Get a bulk job
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const response = await client.bulk.retrieveJob('job_id');
76
+ * ```
77
+ */
78
+ retrieveJob(jobID, options) {
79
+ return this._client.get((0, path_1.path) `/bulk/${jobID}`, options);
80
+ }
81
+ /**
82
+ * Run a bulk job
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * await client.bulk.runJob('job_id');
87
+ * ```
88
+ */
89
+ runJob(jobID, options) {
90
+ return this._client.post((0, path_1.path) `/bulk/${jobID}/run`, {
91
+ ...options,
92
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
93
+ });
94
+ }
95
+ }
96
+ exports.Bulk = Bulk;
97
+ //# sourceMappingURL=bulk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk.js","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,KAAa,EAAE,IAAwB,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,SAAS,KAAK,EAAE,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,SAAS,CAAC,IAAyB,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,CACP,KAAa,EACb,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,SAAS,KAAK,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,KAAa,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,SAAS,KAAK,MAAM,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA/FD,oBA+FC"}
@@ -0,0 +1,93 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { buildHeaders } from "../internal/headers.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
+ export class Bulk extends APIResource {
6
+ /**
7
+ * Ingest user data into a Bulk Job.
8
+ *
9
+ * **Important**: For email-based bulk jobs, each user must include `profile.email`
10
+ * for provider routing to work correctly. The `to.email` field is not sufficient
11
+ * for email provider routing.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * await client.bulk.addUsers('job_id', {
16
+ * users: [
17
+ * {
18
+ * recipient: 'user_abc',
19
+ * profile: { email: 'jdoe@example.com' },
20
+ * data: { name: 'Jane' },
21
+ * },
22
+ * ],
23
+ * });
24
+ * ```
25
+ */
26
+ addUsers(jobID, body, options) {
27
+ return this._client.post(path `/bulk/${jobID}`, {
28
+ body,
29
+ ...options,
30
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
31
+ });
32
+ }
33
+ /**
34
+ * Creates a new bulk job for sending messages to multiple recipients.
35
+ *
36
+ * **Required**: `message.event` (event ID or notification ID)
37
+ *
38
+ * **Optional (V2 format)**: `message.template` (notification ID) or
39
+ * `message.content` (Elemental content) can be provided to override the
40
+ * notification associated with the event.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const response = await client.bulk.createJob({
45
+ * message: {
46
+ * event: 'welcome-series',
47
+ * brand: 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag',
48
+ * data: { campaign: 'spring-2024' },
49
+ * },
50
+ * });
51
+ * ```
52
+ */
53
+ createJob(body, options) {
54
+ return this._client.post('/bulk', { body, ...options });
55
+ }
56
+ /**
57
+ * Get Bulk Job Users
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const response = await client.bulk.listUsers('job_id');
62
+ * ```
63
+ */
64
+ listUsers(jobID, query = {}, options) {
65
+ return this._client.get(path `/bulk/${jobID}/users`, { query, ...options });
66
+ }
67
+ /**
68
+ * Get a bulk job
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const response = await client.bulk.retrieveJob('job_id');
73
+ * ```
74
+ */
75
+ retrieveJob(jobID, options) {
76
+ return this._client.get(path `/bulk/${jobID}`, options);
77
+ }
78
+ /**
79
+ * Run a bulk job
80
+ *
81
+ * @example
82
+ * ```ts
83
+ * await client.bulk.runJob('job_id');
84
+ * ```
85
+ */
86
+ runJob(jobID, options) {
87
+ return this._client.post(path `/bulk/${jobID}/run`, {
88
+ ...options,
89
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
90
+ });
91
+ }
92
+ }
93
+ //# sourceMappingURL=bulk.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,KAAa,EAAE,IAAwB,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,SAAS,KAAK,EAAE,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,SAAS,CAAC,IAAyB,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,CACP,KAAa,EACb,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,SAAS,KAAK,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,KAAa,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,SAAS,KAAK,MAAM,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -5,6 +5,7 @@ export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from "./
5
5
  export { Automations, type AutomationInvokeResponse, type AutomationTemplate, type AutomationTemplateListResponse, type AutomationListParams, } from "./automations/automations.mjs";
6
6
  export { Brands, type Brand, type BrandColors, type BrandSettings, type BrandSettingsEmail, type BrandSettingsInApp, type BrandSnippet, type BrandSnippets, type BrandTemplate, type EmailFooter, type EmailHead, type EmailHeader, type Icons, type Logo, type WidgetBackground, type BrandListResponse, type BrandCreateParams, type BrandUpdateParams, type BrandListParams, } from "./brands.mjs";
7
7
  export { Broadcasts, type Broadcast, type BroadcastListResponse, type BroadcastSchedule, type CreateBroadcastRequest, type ScheduleBroadcastRequest, type SendBroadcastRequest, type UpdateBroadcastRequest, type BroadcastCreateParams, type BroadcastUpdateParams, type BroadcastListParams, type BroadcastPutContentParams, type BroadcastRetrieveContentParams, type BroadcastScheduleParams, type BroadcastSendParams, } from "./broadcasts.mjs";
8
+ export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type BulkCreateJobResponse, type BulkListUsersResponse, type BulkRetrieveJobResponse, type BulkAddUsersParams, type BulkCreateJobParams, type BulkListUsersParams, } from "./bulk.mjs";
8
9
  export { Digests, type DigestCategory, type DigestInstance, type DigestInstanceListResponse, } from "./digests/digests.mjs";
9
10
  export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from "./inbound.mjs";
10
11
  export { Journeys, type CancelJourneyRequest, type CancelJourneyResponse, type CreateJourneyRequest, type Journey, type JourneyAINode, type JourneyAPIInvokeTriggerNode, type JourneyConditionAtom, type JourneyConditionGroup, type JourneyConditionNestedGroup, type JourneyConditionsField, type JourneyDelayDurationNode, type JourneyDelayUntilNode, type JourneyExitNode, type JourneyExperiment, type JourneyExperimentVariant, type JourneyFetchGetDeleteNode, type JourneyFetchPostPutNode, type JourneyMergeStrategy, type JourneyNode, type JourneyPublishRequest, type JourneyResponse, type JourneySegmentTriggerNode, type JourneySendNode, type JourneyState, type JourneyTemplateCreateRequest, type JourneyTemplateGetResponse, type JourneyTemplateListResponse, type JourneyTemplatePublishRequest, type JourneyTemplateReplaceRequest, type JourneyTemplateSummary, type JourneyThrottleDynamicNode, type JourneyThrottleStaticNode, type JourneyVersionItem, type JourneyVersionsListResponse, type JourneysInvokeRequest, type JourneysInvokeResponse, type JourneysListResponse, type JourneyCreateParams, type JourneyRetrieveParams, type JourneyListParams, type JourneyCancelParams, type JourneyInvokeParams, type JourneyPublishParams, type JourneyReplaceParams, } from "./journeys/journeys.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B,wBAAoB;AACrB,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,2BAAuB;AACxB,OAAO,EAAE,IAAI,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE,mBAAe;AACtF,OAAO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,K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,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,sCAAsC,EAC3C,KAAK,4BAA4B,GAClC,iCAA6B;AAC9B,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,mBAAe;AAChF,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B,8BAA0B;AAC3B,OAAO,EACL,YAAY,EACZ,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,2BAAuB;AACxB,OAAO,EAAE,KAAK,EAAE,0BAAsB;AACtC,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,sCAAsC,EAC3C,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,GACtC,0DAAsD"}
@@ -5,6 +5,7 @@ export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from "./
5
5
  export { Automations, type AutomationInvokeResponse, type AutomationTemplate, type AutomationTemplateListResponse, type AutomationListParams, } from "./automations/automations.js";
6
6
  export { Brands, type Brand, type BrandColors, type BrandSettings, type BrandSettingsEmail, type BrandSettingsInApp, type BrandSnippet, type BrandSnippets, type BrandTemplate, type EmailFooter, type EmailHead, type EmailHeader, type Icons, type Logo, type WidgetBackground, type BrandListResponse, type BrandCreateParams, type BrandUpdateParams, type BrandListParams, } from "./brands.js";
7
7
  export { Broadcasts, type Broadcast, type BroadcastListResponse, type BroadcastSchedule, type CreateBroadcastRequest, type ScheduleBroadcastRequest, type SendBroadcastRequest, type UpdateBroadcastRequest, type BroadcastCreateParams, type BroadcastUpdateParams, type BroadcastListParams, type BroadcastPutContentParams, type BroadcastRetrieveContentParams, type BroadcastScheduleParams, type BroadcastSendParams, } from "./broadcasts.js";
8
+ export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type BulkCreateJobResponse, type BulkListUsersResponse, type BulkRetrieveJobResponse, type BulkAddUsersParams, type BulkCreateJobParams, type BulkListUsersParams, } from "./bulk.js";
8
9
  export { Digests, type DigestCategory, type DigestInstance, type DigestInstanceListResponse, } from "./digests/digests.js";
9
10
  export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from "./inbound.js";
10
11
  export { Journeys, type CancelJourneyRequest, type CancelJourneyResponse, type CreateJourneyRequest, type Journey, type JourneyAINode, type JourneyAPIInvokeTriggerNode, type JourneyConditionAtom, type JourneyConditionGroup, type JourneyConditionNestedGroup, type JourneyConditionsField, type JourneyDelayDurationNode, type JourneyDelayUntilNode, type JourneyExitNode, type JourneyExperiment, type JourneyExperimentVariant, type JourneyFetchGetDeleteNode, type JourneyFetchPostPutNode, type JourneyMergeStrategy, type JourneyNode, type JourneyPublishRequest, type JourneyResponse, type JourneySegmentTriggerNode, type JourneySendNode, type JourneyState, type JourneyTemplateCreateRequest, type JourneyTemplateGetResponse, type JourneyTemplateListResponse, type JourneyTemplatePublishRequest, type JourneyTemplateReplaceRequest, type JourneyTemplateSummary, type JourneyThrottleDynamicNode, type JourneyThrottleStaticNode, type JourneyVersionItem, type JourneyVersionsListResponse, type JourneysInvokeRequest, type JourneysInvokeResponse, type JourneysListResponse, type JourneyCreateParams, type JourneyRetrieveParams, type JourneyListParams, type JourneyCancelParams, type JourneyInvokeParams, type JourneyPublishParams, type JourneyReplaceParams, } from "./journeys/journeys.js";