@trycourier/courier 7.3.0 → 7.7.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.
- package/CHANGELOG.md +115 -0
- package/LICENSE +1 -1
- package/README.md +34 -345
- package/client.d.mts +50 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +50 -8
- package/client.d.ts.map +1 -1
- package/client.js +17 -4
- package/client.js.map +1 -1
- package/client.mjs +18 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +1 -1
- package/resources/audiences.d.mts +11 -33
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +11 -33
- package/resources/audiences.d.ts.map +1 -1
- package/resources/automations/automations.d.mts +54 -1
- package/resources/automations/automations.d.mts.map +1 -1
- package/resources/automations/automations.d.ts +54 -1
- package/resources/automations/automations.d.ts.map +1 -1
- package/resources/automations/automations.js +12 -0
- package/resources/automations/automations.js.map +1 -1
- package/resources/automations/automations.mjs +12 -0
- package/resources/automations/automations.mjs.map +1 -1
- package/resources/automations/index.d.mts +1 -1
- package/resources/automations/index.d.mts.map +1 -1
- package/resources/automations/index.d.ts +1 -1
- package/resources/automations/index.d.ts.map +1 -1
- package/resources/automations/index.js.map +1 -1
- package/resources/automations/index.mjs +1 -1
- package/resources/automations/index.mjs.map +1 -1
- package/resources/bulk.d.mts +80 -39
- package/resources/bulk.d.mts.map +1 -1
- package/resources/bulk.d.ts +80 -39
- package/resources/bulk.d.ts.map +1 -1
- package/resources/bulk.js +12 -2
- package/resources/bulk.js.map +1 -1
- package/resources/bulk.mjs +12 -2
- package/resources/bulk.mjs.map +1 -1
- package/resources/inbound.d.mts +1 -1
- package/resources/inbound.d.ts +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/lists/subscriptions.d.mts +1 -1
- package/resources/lists/subscriptions.d.ts +1 -1
- package/resources/notifications/checks.d.mts +2 -2
- package/resources/notifications/checks.d.ts +2 -2
- package/resources/send.d.mts +8 -2
- package/resources/send.d.mts.map +1 -1
- package/resources/send.d.ts +8 -2
- package/resources/send.d.ts.map +1 -1
- package/resources/send.js +1 -1
- package/resources/send.mjs +1 -1
- package/resources/shared.d.mts +290 -52
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +290 -52
- package/resources/shared.d.ts.map +1 -1
- package/resources/tenants/index.d.mts +2 -2
- package/resources/tenants/index.d.mts.map +1 -1
- package/resources/tenants/index.d.ts +2 -2
- package/resources/tenants/index.d.ts.map +1 -1
- package/resources/tenants/index.js +2 -2
- package/resources/tenants/index.js.map +1 -1
- package/resources/tenants/index.mjs +1 -1
- package/resources/tenants/index.mjs.map +1 -1
- package/resources/tenants/preferences/items.d.mts +2 -2
- package/resources/tenants/preferences/items.d.ts +2 -2
- package/resources/tenants/templates/index.d.mts +3 -0
- package/resources/tenants/templates/index.d.mts.map +1 -0
- package/resources/tenants/templates/index.d.ts +3 -0
- package/resources/tenants/templates/index.d.ts.map +1 -0
- package/resources/tenants/templates/index.js +9 -0
- package/resources/tenants/templates/index.js.map +1 -0
- package/resources/tenants/templates/index.mjs +4 -0
- package/resources/tenants/templates/index.mjs.map +1 -0
- package/resources/tenants/templates/templates.d.mts +159 -0
- package/resources/tenants/templates/templates.d.mts.map +1 -0
- package/resources/tenants/templates/templates.d.ts +159 -0
- package/resources/tenants/templates/templates.d.ts.map +1 -0
- package/resources/tenants/templates/templates.js +91 -0
- package/resources/tenants/templates/templates.js.map +1 -0
- package/resources/tenants/templates/templates.mjs +86 -0
- package/resources/tenants/templates/templates.mjs.map +1 -0
- package/resources/tenants/templates/versions.d.mts +39 -0
- package/resources/tenants/templates/versions.d.mts.map +1 -0
- package/resources/tenants/templates/versions.d.ts +39 -0
- package/resources/tenants/templates/versions.d.ts.map +1 -0
- package/resources/tenants/templates/versions.js +32 -0
- package/resources/tenants/templates/versions.js.map +1 -0
- package/resources/tenants/templates/versions.mjs +28 -0
- package/resources/tenants/templates/versions.mjs.map +1 -0
- package/resources/tenants/templates.d.mts +1 -90
- package/resources/tenants/templates.d.mts.map +1 -1
- package/resources/tenants/templates.d.ts +1 -90
- package/resources/tenants/templates.d.ts.map +1 -1
- package/resources/tenants/templates.js +2 -34
- package/resources/tenants/templates.js.map +1 -1
- package/resources/tenants/templates.mjs +1 -32
- package/resources/tenants/templates.mjs.map +1 -1
- package/resources/tenants/tenants.d.mts +147 -5
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +147 -5
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js +2 -2
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs +2 -2
- package/resources/tenants/tenants.mjs.map +1 -1
- package/resources/translations.d.mts +1 -1
- package/resources/translations.d.ts +1 -1
- package/resources/users/preferences.d.mts +1 -1
- package/resources/users/preferences.d.ts +1 -1
- package/resources/users/tenants.d.mts +1 -1
- package/resources/users/tenants.d.ts +1 -1
- package/resources/users/tokens.d.mts +3 -8
- package/resources/users/tokens.d.mts.map +1 -1
- package/resources/users/tokens.d.ts +3 -8
- package/resources/users/tokens.d.ts.map +1 -1
- package/resources/users/tokens.js +2 -3
- package/resources/users/tokens.js.map +1 -1
- package/resources/users/tokens.mjs +2 -3
- package/resources/users/tokens.mjs.map +1 -1
- package/src/client.ts +88 -14
- package/src/internal/parse.ts +6 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/audiences.ts +11 -69
- package/src/resources/automations/automations.ts +74 -1
- package/src/resources/automations/index.ts +7 -1
- package/src/resources/bulk.ts +71 -32
- package/src/resources/inbound.ts +1 -1
- package/src/resources/index.ts +12 -3
- package/src/resources/lists/subscriptions.ts +1 -1
- package/src/resources/notifications/checks.ts +2 -2
- package/src/resources/send.ts +28 -2
- package/src/resources/shared.ts +391 -49
- package/src/resources/tenants/index.ts +8 -1
- package/src/resources/tenants/preferences/items.ts +2 -2
- package/src/resources/tenants/templates/index.ts +11 -0
- package/src/resources/tenants/templates/templates.ts +222 -0
- package/src/resources/tenants/templates/versions.ts +55 -0
- package/src/resources/tenants/templates.ts +1 -122
- package/src/resources/tenants/tenants.ts +179 -3
- package/src/resources/translations.ts +1 -1
- package/src/resources/users/preferences.ts +1 -1
- package/src/resources/users/tenants.ts +1 -1
- package/src/resources/users/tokens.ts +4 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/shared.d.ts
CHANGED
|
@@ -1,9 +1,49 @@
|
|
|
1
1
|
import * as Shared from "./shared.js";
|
|
2
|
+
export interface AirshipProfile {
|
|
3
|
+
audience: AirshipProfileAudience;
|
|
4
|
+
device_types: Array<DeviceType>;
|
|
5
|
+
}
|
|
6
|
+
export interface AirshipProfileAudience {
|
|
7
|
+
named_user: string;
|
|
8
|
+
}
|
|
2
9
|
export type Alignment = 'center' | 'left' | 'right' | 'full';
|
|
10
|
+
export interface AudienceFilter {
|
|
11
|
+
/**
|
|
12
|
+
* Send to users only if they are member of the account
|
|
13
|
+
*/
|
|
14
|
+
operator: 'MEMBER_OF';
|
|
15
|
+
path: 'account_id';
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Filter configuration for audience membership containing an array of filter rules
|
|
20
|
+
*/
|
|
21
|
+
export interface AudienceFilterConfig {
|
|
22
|
+
/**
|
|
23
|
+
* Array of filter rules (single conditions or nested groups)
|
|
24
|
+
*/
|
|
25
|
+
filters: Array<FilterConfig>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Send to all users in an audience
|
|
29
|
+
*/
|
|
30
|
+
export interface AudienceRecipient {
|
|
31
|
+
/**
|
|
32
|
+
* A unique identifier associated with an Audience. A message will be sent to each
|
|
33
|
+
* user in the audience.
|
|
34
|
+
*/
|
|
35
|
+
audience_id: string;
|
|
36
|
+
data?: {
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
} | null;
|
|
39
|
+
filters?: Array<AudienceFilter> | null;
|
|
40
|
+
}
|
|
3
41
|
export type ChannelClassification = 'direct_message' | 'email' | 'push' | 'sms' | 'webhook' | 'inbox';
|
|
4
42
|
export interface ChannelPreference {
|
|
5
43
|
channel: ChannelClassification;
|
|
6
44
|
}
|
|
45
|
+
export type DeviceType = string;
|
|
46
|
+
export type Discord = SendToChannel | SendDirectMessage;
|
|
7
47
|
export interface ElementalActionNodeWithType extends ElementalBaseNode {
|
|
8
48
|
type?: 'action';
|
|
9
49
|
}
|
|
@@ -30,7 +70,7 @@ export interface ElementalChannelNode extends ElementalBaseNode {
|
|
|
30
70
|
* The channel the contents of this element should be applied to. Can be `email`,
|
|
31
71
|
* `push`, `direct_message`, `sms` or a provider such as slack
|
|
32
72
|
*/
|
|
33
|
-
channel
|
|
73
|
+
channel?: string;
|
|
34
74
|
/**
|
|
35
75
|
* Raw data to apply to the channel. If `elements` has not been specified, `raw` is
|
|
36
76
|
* required.
|
|
@@ -60,7 +100,6 @@ export interface ElementalContent {
|
|
|
60
100
|
* For example, "2022-01-01"
|
|
61
101
|
*/
|
|
62
102
|
version: string;
|
|
63
|
-
brand?: string | null;
|
|
64
103
|
}
|
|
65
104
|
/**
|
|
66
105
|
* Syntactic sugar to provide a fast shorthand for Courier Elemental Blocks.
|
|
@@ -103,6 +142,69 @@ export interface ElementalQuoteNodeWithType extends ElementalBaseNode {
|
|
|
103
142
|
export interface ElementalTextNodeWithType extends ElementalBaseNode {
|
|
104
143
|
type?: 'text';
|
|
105
144
|
}
|
|
145
|
+
export type Expo = Token | MultipleTokens;
|
|
146
|
+
/**
|
|
147
|
+
* A filter rule that can be either a single condition (with path/value) or a
|
|
148
|
+
* nested group (with filters array). Use comparison operators (EQ, GT, etc.) for
|
|
149
|
+
* single conditions, and logical operators (AND, OR) for nested groups.
|
|
150
|
+
*/
|
|
151
|
+
export interface FilterConfig {
|
|
152
|
+
/**
|
|
153
|
+
* The operator for this filter. Use comparison operators (EQ, GT, LT, GTE, LTE,
|
|
154
|
+
* NEQ, EXISTS, INCLUDES, STARTS_WITH, ENDS_WITH, IS_BEFORE, IS_AFTER, OMIT) for
|
|
155
|
+
* single conditions, or logical operators (AND, OR) for nested filter groups.
|
|
156
|
+
*/
|
|
157
|
+
operator: string;
|
|
158
|
+
/**
|
|
159
|
+
* Nested filter rules to combine with AND/OR. Required for nested filter groups,
|
|
160
|
+
* not used for single filter conditions.
|
|
161
|
+
*/
|
|
162
|
+
filters?: Array<FilterConfig>;
|
|
163
|
+
/**
|
|
164
|
+
* The attribute path from the user profile to filter on. Required for single
|
|
165
|
+
* filter conditions, not used for nested filter groups.
|
|
166
|
+
*/
|
|
167
|
+
path?: string;
|
|
168
|
+
/**
|
|
169
|
+
* The value to compare against. Required for single filter conditions, not used
|
|
170
|
+
* for nested filter groups.
|
|
171
|
+
*/
|
|
172
|
+
value?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface Intercom {
|
|
175
|
+
from: string;
|
|
176
|
+
to: IntercomRecipient;
|
|
177
|
+
}
|
|
178
|
+
export interface IntercomRecipient {
|
|
179
|
+
id: string;
|
|
180
|
+
}
|
|
181
|
+
export interface ListFilter {
|
|
182
|
+
/**
|
|
183
|
+
* Send to users only if they are member of the account
|
|
184
|
+
*/
|
|
185
|
+
operator: 'MEMBER_OF';
|
|
186
|
+
path: 'account_id';
|
|
187
|
+
value: string;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Send to users in lists matching a pattern
|
|
191
|
+
*/
|
|
192
|
+
export interface ListPatternRecipient {
|
|
193
|
+
data?: {
|
|
194
|
+
[key: string]: unknown;
|
|
195
|
+
} | null;
|
|
196
|
+
list_pattern?: string | null;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Send to all users in a specific list
|
|
200
|
+
*/
|
|
201
|
+
export interface ListRecipient {
|
|
202
|
+
data?: {
|
|
203
|
+
[key: string]: unknown;
|
|
204
|
+
} | null;
|
|
205
|
+
filters?: Array<ListFilter> | null;
|
|
206
|
+
list_id?: string | null;
|
|
207
|
+
}
|
|
106
208
|
export interface MessageContext {
|
|
107
209
|
/**
|
|
108
210
|
* Tenant id used to load brand/default preferences/context.
|
|
@@ -114,11 +216,37 @@ export interface MessageRouting {
|
|
|
114
216
|
method: 'all' | 'single';
|
|
115
217
|
}
|
|
116
218
|
export type MessageRoutingChannel = string | MessageRouting;
|
|
219
|
+
export type MsTeams = SendToMsTeamsUserID | SendToMsTeamsEmail | SendToMsTeamsChannelID | SendToMsTeamsConversationID | SendToMsTeamsChannelName;
|
|
220
|
+
export interface MsTeamsBaseProperties {
|
|
221
|
+
service_url: string;
|
|
222
|
+
tenant_id: string;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Send via Microsoft Teams
|
|
226
|
+
*/
|
|
227
|
+
export interface MsTeamsRecipient {
|
|
228
|
+
ms_teams: MsTeams;
|
|
229
|
+
}
|
|
230
|
+
export interface MultipleTokens {
|
|
231
|
+
tokens: Array<Token>;
|
|
232
|
+
}
|
|
117
233
|
export interface NotificationPreferenceDetails {
|
|
118
234
|
status: PreferenceStatus;
|
|
119
235
|
channel_preferences?: Array<ChannelPreference> | null;
|
|
120
236
|
rules?: Array<Rule> | null;
|
|
121
237
|
}
|
|
238
|
+
export interface Pagerduty {
|
|
239
|
+
event_action?: string | null;
|
|
240
|
+
routing_key?: string | null;
|
|
241
|
+
severity?: string | null;
|
|
242
|
+
source?: string | null;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Send via PagerDuty
|
|
246
|
+
*/
|
|
247
|
+
export interface PagerdutyRecipient {
|
|
248
|
+
pagerduty: Pagerduty;
|
|
249
|
+
}
|
|
122
250
|
export interface Paging {
|
|
123
251
|
more: boolean;
|
|
124
252
|
cursor?: string | null;
|
|
@@ -130,56 +258,6 @@ export interface Preference {
|
|
|
130
258
|
source?: 'subscription' | 'list' | 'recipient' | null;
|
|
131
259
|
}
|
|
132
260
|
export type PreferenceStatus = 'OPTED_IN' | 'OPTED_OUT' | 'REQUIRED';
|
|
133
|
-
export interface Recipient {
|
|
134
|
-
/**
|
|
135
|
-
* Deprecated - Use `tenant_id` instead.
|
|
136
|
-
*/
|
|
137
|
-
account_id?: string | null;
|
|
138
|
-
/**
|
|
139
|
-
* Context such as tenant_id to send the notification with.
|
|
140
|
-
*/
|
|
141
|
-
context?: MessageContext | null;
|
|
142
|
-
data?: {
|
|
143
|
-
[key: string]: unknown;
|
|
144
|
-
} | null;
|
|
145
|
-
/**
|
|
146
|
-
* The user's email address.
|
|
147
|
-
*/
|
|
148
|
-
email?: string | null;
|
|
149
|
-
/**
|
|
150
|
-
* The id of the list to send the message to.
|
|
151
|
-
*/
|
|
152
|
-
list_id?: string | null;
|
|
153
|
-
/**
|
|
154
|
-
* The user's preferred ISO 639-1 language code.
|
|
155
|
-
*/
|
|
156
|
-
locale?: string | null;
|
|
157
|
-
/**
|
|
158
|
-
* The user's phone number.
|
|
159
|
-
*/
|
|
160
|
-
phone_number?: string | null;
|
|
161
|
-
preferences?: Recipient.Preferences | null;
|
|
162
|
-
/**
|
|
163
|
-
* The id of the tenant the user is associated with.
|
|
164
|
-
*/
|
|
165
|
-
tenant_id?: string | null;
|
|
166
|
-
/**
|
|
167
|
-
* The user's unique identifier. Typically, this will match the user id of a user
|
|
168
|
-
* in your system.
|
|
169
|
-
*/
|
|
170
|
-
user_id?: string | null;
|
|
171
|
-
}
|
|
172
|
-
export declare namespace Recipient {
|
|
173
|
-
interface Preferences {
|
|
174
|
-
notifications: {
|
|
175
|
-
[key: string]: Shared.Preference;
|
|
176
|
-
};
|
|
177
|
-
categories?: {
|
|
178
|
-
[key: string]: Shared.Preference;
|
|
179
|
-
} | null;
|
|
180
|
-
templateId?: string | null;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
261
|
export interface RecipientPreferences {
|
|
184
262
|
categories?: {
|
|
185
263
|
[key: string]: NotificationPreferenceDetails;
|
|
@@ -192,7 +270,114 @@ export interface Rule {
|
|
|
192
270
|
until: string;
|
|
193
271
|
start?: string | null;
|
|
194
272
|
}
|
|
273
|
+
export interface SendDirectMessage {
|
|
274
|
+
user_id: string;
|
|
275
|
+
}
|
|
276
|
+
export interface SendToChannel {
|
|
277
|
+
channel_id: string;
|
|
278
|
+
}
|
|
279
|
+
export interface SendToMsTeamsChannelID {
|
|
280
|
+
channel_id: string;
|
|
281
|
+
service_url: string;
|
|
282
|
+
tenant_id: string;
|
|
283
|
+
}
|
|
284
|
+
export interface SendToMsTeamsChannelName {
|
|
285
|
+
channel_name: string;
|
|
286
|
+
service_url: string;
|
|
287
|
+
team_id: string;
|
|
288
|
+
tenant_id: string;
|
|
289
|
+
}
|
|
290
|
+
export interface SendToMsTeamsConversationID {
|
|
291
|
+
conversation_id: string;
|
|
292
|
+
service_url: string;
|
|
293
|
+
tenant_id: string;
|
|
294
|
+
}
|
|
295
|
+
export interface SendToMsTeamsEmail {
|
|
296
|
+
email: string;
|
|
297
|
+
service_url: string;
|
|
298
|
+
tenant_id: string;
|
|
299
|
+
}
|
|
300
|
+
export interface SendToMsTeamsUserID {
|
|
301
|
+
service_url: string;
|
|
302
|
+
tenant_id: string;
|
|
303
|
+
user_id: string;
|
|
304
|
+
}
|
|
305
|
+
export interface SendToSlackChannel {
|
|
306
|
+
access_token: string;
|
|
307
|
+
channel: string;
|
|
308
|
+
}
|
|
309
|
+
export interface SendToSlackEmail {
|
|
310
|
+
access_token: string;
|
|
311
|
+
email: string;
|
|
312
|
+
}
|
|
313
|
+
export interface SendToSlackUserID {
|
|
314
|
+
access_token: string;
|
|
315
|
+
user_id: string;
|
|
316
|
+
}
|
|
317
|
+
export type Slack = SendToSlackChannel | SendToSlackEmail | SendToSlackUserID;
|
|
318
|
+
export interface SlackBaseProperties {
|
|
319
|
+
access_token: string;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Send via Slack (channel, email, or user_id)
|
|
323
|
+
*/
|
|
324
|
+
export interface SlackRecipient {
|
|
325
|
+
slack: Slack;
|
|
326
|
+
}
|
|
195
327
|
export type TextStyle = 'text' | 'h1' | 'h2' | 'subtext';
|
|
328
|
+
export interface Token {
|
|
329
|
+
token: string;
|
|
330
|
+
}
|
|
331
|
+
export interface UserProfile {
|
|
332
|
+
address?: UserProfile.Address | null;
|
|
333
|
+
airship?: AirshipProfile | null;
|
|
334
|
+
apn?: string | null;
|
|
335
|
+
birthdate?: string | null;
|
|
336
|
+
/**
|
|
337
|
+
* A free form object. Due to a limitation of the API Explorer, you can only enter
|
|
338
|
+
* string key/values below, but this API accepts more complex object structures.
|
|
339
|
+
*/
|
|
340
|
+
custom?: {
|
|
341
|
+
[key: string]: unknown;
|
|
342
|
+
} | null;
|
|
343
|
+
discord?: Discord | null;
|
|
344
|
+
email?: string | null;
|
|
345
|
+
email_verified?: boolean | null;
|
|
346
|
+
expo?: Expo | null;
|
|
347
|
+
facebookPSID?: string | null;
|
|
348
|
+
family_name?: string | null;
|
|
349
|
+
firebaseToken?: UserProfileFirebaseToken | null;
|
|
350
|
+
gender?: string | null;
|
|
351
|
+
given_name?: string | null;
|
|
352
|
+
intercom?: Intercom | null;
|
|
353
|
+
locale?: string | null;
|
|
354
|
+
middle_name?: string | null;
|
|
355
|
+
ms_teams?: MsTeams | null;
|
|
356
|
+
name?: string | null;
|
|
357
|
+
nickname?: string | null;
|
|
358
|
+
phone_number?: string | null;
|
|
359
|
+
phone_number_verified?: boolean | null;
|
|
360
|
+
picture?: string | null;
|
|
361
|
+
preferred_name?: string | null;
|
|
362
|
+
profile?: string | null;
|
|
363
|
+
slack?: Slack | null;
|
|
364
|
+
sub?: string | null;
|
|
365
|
+
target_arn?: string | null;
|
|
366
|
+
updated_at?: string | null;
|
|
367
|
+
website?: string | null;
|
|
368
|
+
zoneinfo?: string | null;
|
|
369
|
+
}
|
|
370
|
+
export declare namespace UserProfile {
|
|
371
|
+
interface Address {
|
|
372
|
+
country: string;
|
|
373
|
+
formatted: string;
|
|
374
|
+
locality: string;
|
|
375
|
+
postal_code: string;
|
|
376
|
+
region: string;
|
|
377
|
+
street_address: string;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
export type UserProfileFirebaseToken = string | Array<string>;
|
|
196
381
|
export interface UserRecipient {
|
|
197
382
|
/**
|
|
198
383
|
* Deprecated - Use `tenant_id` instead.
|
|
@@ -250,4 +435,57 @@ export interface Utm {
|
|
|
250
435
|
source?: string | null;
|
|
251
436
|
term?: string | null;
|
|
252
437
|
}
|
|
438
|
+
export type WebhookAuthMode = 'none' | 'basic' | 'bearer';
|
|
439
|
+
export interface WebhookAuthentication {
|
|
440
|
+
/**
|
|
441
|
+
* The authentication mode to use. Defaults to 'none' if not specified.
|
|
442
|
+
*/
|
|
443
|
+
mode: WebhookAuthMode;
|
|
444
|
+
/**
|
|
445
|
+
* Token for bearer authentication.
|
|
446
|
+
*/
|
|
447
|
+
token?: string | null;
|
|
448
|
+
/**
|
|
449
|
+
* Password for basic authentication.
|
|
450
|
+
*/
|
|
451
|
+
password?: string | null;
|
|
452
|
+
/**
|
|
453
|
+
* Username for basic authentication.
|
|
454
|
+
*/
|
|
455
|
+
username?: string | null;
|
|
456
|
+
}
|
|
457
|
+
export type WebhookMethod = 'POST' | 'PUT';
|
|
458
|
+
export interface WebhookProfile {
|
|
459
|
+
/**
|
|
460
|
+
* The URL to send the webhook request to.
|
|
461
|
+
*/
|
|
462
|
+
url: string;
|
|
463
|
+
/**
|
|
464
|
+
* Authentication configuration for the webhook request.
|
|
465
|
+
*/
|
|
466
|
+
authentication?: WebhookAuthentication | null;
|
|
467
|
+
/**
|
|
468
|
+
* Custom headers to include in the webhook request.
|
|
469
|
+
*/
|
|
470
|
+
headers?: {
|
|
471
|
+
[key: string]: string;
|
|
472
|
+
} | null;
|
|
473
|
+
/**
|
|
474
|
+
* The HTTP method to use for the webhook request. Defaults to POST if not
|
|
475
|
+
* specified.
|
|
476
|
+
*/
|
|
477
|
+
method?: WebhookMethod | null;
|
|
478
|
+
/**
|
|
479
|
+
* Specifies what profile information is included in the request payload. Defaults
|
|
480
|
+
* to 'limited' if not specified.
|
|
481
|
+
*/
|
|
482
|
+
profile?: WebhookProfileType | null;
|
|
483
|
+
}
|
|
484
|
+
export type WebhookProfileType = 'limited' | 'expanded';
|
|
485
|
+
/**
|
|
486
|
+
* Send via webhook
|
|
487
|
+
*/
|
|
488
|
+
export interface WebhookRecipient {
|
|
489
|
+
webhook: WebhookProfile;
|
|
490
|
+
}
|
|
253
491
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"OAEO,KAAK,MAAM;AAElB,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,CAAC;AAEtG,MAAM,WAAW,iBAAiB;IAChC,O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CAAC;IAEZ;;OAEG;IACH,cAAc,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAE3C;;;OAGG;IACH,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAE9B;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,cAAc,CAAC;CACzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Preferences } from "./preferences/index.mjs";
|
|
2
|
-
export { Templates, type TemplateListResponse, type TemplateRetrieveParams, type TemplateListParams, } from "./templates.mjs";
|
|
3
|
-
export { Tenants, type BaseTemplateTenantAssociation, type DefaultPreferences, type SubscriptionTopicNew, type Tenant, type TenantAssociation, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants.mjs";
|
|
2
|
+
export { Templates, type TemplateListResponse, type TemplateRetrieveParams, type TemplateListParams, type TemplatePublishParams, type TemplateReplaceParams, } from "./templates/index.mjs";
|
|
3
|
+
export { Tenants, type BaseTemplateTenantAssociation, type DefaultPreferences, type PostTenantTemplatePublishRequest, type PostTenantTemplatePublishResponse, type PutTenantTemplateRequest, type PutTenantTemplateResponse, type SubscriptionTopicNew, type Tenant, type TenantAssociation, type TenantTemplateInput, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Preferences } from "./preferences/index.js";
|
|
2
|
-
export { Templates, type TemplateListResponse, type TemplateRetrieveParams, type TemplateListParams, } from "./templates.js";
|
|
3
|
-
export { Tenants, type BaseTemplateTenantAssociation, type DefaultPreferences, type SubscriptionTopicNew, type Tenant, type TenantAssociation, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants.js";
|
|
2
|
+
export { Templates, type TemplateListResponse, type TemplateRetrieveParams, type TemplateListParams, type TemplatePublishParams, type TemplateReplaceParams, } from "./templates/index.js";
|
|
3
|
+
export { Tenants, type BaseTemplateTenantAssociation, type DefaultPreferences, type PostTenantTemplatePublishRequest, type PostTenantTemplatePublishResponse, type PutTenantTemplateRequest, type PutTenantTemplateResponse, type SubscriptionTopicNew, type Tenant, type TenantAssociation, type TenantTemplateInput, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,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"}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Tenants = exports.Templates = exports.Preferences = void 0;
|
|
5
5
|
var index_1 = require("./preferences/index.js");
|
|
6
6
|
Object.defineProperty(exports, "Preferences", { enumerable: true, get: function () { return index_1.Preferences; } });
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(exports, "Templates", { enumerable: true, get: function () { return
|
|
7
|
+
var index_2 = require("./templates/index.js");
|
|
8
|
+
Object.defineProperty(exports, "Templates", { enumerable: true, get: function () { return index_2.Templates; } });
|
|
9
9
|
var tenants_1 = require("./tenants.js");
|
|
10
10
|
Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return tenants_1.Tenants; } });
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAAkD;AAAzC,oGAAA,WAAW,OAAA;AACpB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAAkD;AAAzC,oGAAA,WAAW,OAAA;AACpB,8CAO2B;AANzB,kGAAA,SAAS,OAAA;AAOX,wCAiBmB;AAhBjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Preferences } from "./preferences/index.mjs";
|
|
3
|
-
export { Templates, } from "./templates.mjs";
|
|
3
|
+
export { Templates, } from "./templates/index.mjs";
|
|
4
4
|
export { Tenants, } from "./tenants.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EACL,SAAS,GAMV;OACM,EACL,OAAO,GAgBR"}
|
|
@@ -35,7 +35,7 @@ export interface ItemUpdateParams {
|
|
|
35
35
|
*/
|
|
36
36
|
tenant_id: string;
|
|
37
37
|
/**
|
|
38
|
-
* Body param
|
|
38
|
+
* Body param
|
|
39
39
|
*/
|
|
40
40
|
status: 'OPTED_OUT' | 'OPTED_IN' | 'REQUIRED';
|
|
41
41
|
/**
|
|
@@ -45,7 +45,7 @@ export interface ItemUpdateParams {
|
|
|
45
45
|
custom_routing?: Array<Shared.ChannelClassification> | null;
|
|
46
46
|
/**
|
|
47
47
|
* Body param: Override channel routing with custom preferences. This will override
|
|
48
|
-
* any template
|
|
48
|
+
* any template preferences that are set, but a user can still customize their
|
|
49
49
|
* preferences
|
|
50
50
|
*/
|
|
51
51
|
has_custom_routing?: boolean | null;
|
|
@@ -35,7 +35,7 @@ export interface ItemUpdateParams {
|
|
|
35
35
|
*/
|
|
36
36
|
tenant_id: string;
|
|
37
37
|
/**
|
|
38
|
-
* Body param
|
|
38
|
+
* Body param
|
|
39
39
|
*/
|
|
40
40
|
status: 'OPTED_OUT' | 'OPTED_IN' | 'REQUIRED';
|
|
41
41
|
/**
|
|
@@ -45,7 +45,7 @@ export interface ItemUpdateParams {
|
|
|
45
45
|
custom_routing?: Array<Shared.ChannelClassification> | null;
|
|
46
46
|
/**
|
|
47
47
|
* Body param: Override channel routing with custom preferences. This will override
|
|
48
|
-
* any template
|
|
48
|
+
* any template preferences that are set, but a user can still customize their
|
|
49
49
|
* preferences
|
|
50
50
|
*/
|
|
51
51
|
has_custom_routing?: boolean | null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Templates, type TemplateListResponse, type TemplateRetrieveParams, type TemplateListParams, type TemplatePublishParams, type TemplateReplaceParams, } from "./templates.mjs";
|
|
2
|
+
export { Versions, type VersionRetrieveParams } from "./versions.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/tenants/templates/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Templates, type TemplateListResponse, type TemplateRetrieveParams, type TemplateListParams, type TemplatePublishParams, type TemplateReplaceParams, } from "./templates.js";
|
|
2
|
+
export { Versions, type VersionRetrieveParams } from "./versions.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/tenants/templates/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Versions = exports.Templates = void 0;
|
|
5
|
+
var templates_1 = require("./templates.js");
|
|
6
|
+
Object.defineProperty(exports, "Templates", { enumerable: true, get: function () { return templates_1.Templates; } });
|
|
7
|
+
var versions_1 = require("./versions.js");
|
|
8
|
+
Object.defineProperty(exports, "Versions", { enumerable: true, get: function () { return versions_1.Versions; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/tenants/templates/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAOqB;AANnB,sGAAA,SAAS,OAAA;AAOX,0CAAkE;AAAzD,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/tenants/templates/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAMV;OACM,EAAE,QAAQ,EAA8B"}
|