@trycourier/courier 7.2.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 +123 -0
- package/LICENSE +1 -1
- package/README.md +34 -345
- package/client.d.mts +50 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +50 -9
- 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 +301 -49
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +301 -49
- 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 +7 -12
- package/resources/users/tokens.d.mts.map +1 -1
- package/resources/users/tokens.d.ts +7 -12
- package/resources/users/tokens.d.ts.map +1 -1
- package/resources/users/tokens.js +3 -6
- package/resources/users/tokens.js.map +1 -1
- package/resources/users/tokens.mjs +3 -6
- package/resources/users/tokens.mjs.map +1 -1
- package/src/client.ts +88 -15
- 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 +402 -46
- 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 +8 -14
- 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
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Automations, type AutomationInvokeResponse } from "./automations.mjs";
|
|
1
|
+
export { Automations, type AutomationInvokeResponse, type AutomationTemplate, type AutomationTemplateListResponse, type AutomationListParams, } from "./automations.mjs";
|
|
2
2
|
export { Invoke, type InvokeInvokeAdHocParams, type InvokeInvokeByTemplateParams } from "./invoke.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/automations/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/automations/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,GAC1B;OACM,EAAE,MAAM,EAAE,KAAK,uBAAuB,EAAE,KAAK,4BAA4B,EAAE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Automations, type AutomationInvokeResponse } from "./automations.js";
|
|
1
|
+
export { Automations, type AutomationInvokeResponse, type AutomationTemplate, type AutomationTemplateListResponse, type AutomationListParams, } from "./automations.js";
|
|
2
2
|
export { Invoke, type InvokeInvokeAdHocParams, type InvokeInvokeByTemplateParams } from "./invoke.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/automations/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/automations/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,GAC1B;OACM,EAAE,MAAM,EAAE,KAAK,uBAAuB,EAAE,KAAK,4BAA4B,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/automations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/automations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,sCAAmG;AAA1F,gGAAA,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/automations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/automations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAKZ;OACM,EAAE,MAAM,EAAmE"}
|
package/resources/bulk.d.mts
CHANGED
|
@@ -5,11 +5,21 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
6
|
export declare class Bulk extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Ingest user data into a Bulk Job
|
|
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.
|
|
9
13
|
*/
|
|
10
14
|
addUsers(jobID: string, body: BulkAddUsersParams, options?: RequestOptions): APIPromise<void>;
|
|
11
15
|
/**
|
|
12
|
-
*
|
|
16
|
+
* Creates a new bulk job for sending messages to multiple recipients.
|
|
17
|
+
*
|
|
18
|
+
* **Required**: `message.event` (event ID or notification ID)
|
|
19
|
+
*
|
|
20
|
+
* **Optional (V2 format)**: `message.template` (notification ID) or
|
|
21
|
+
* `message.content` (Elemental content) can be provided to override the
|
|
22
|
+
* notification associated with the event.
|
|
13
23
|
*/
|
|
14
24
|
createJob(body: BulkCreateJobParams, options?: RequestOptions): APIPromise<BulkCreateJobResponse>;
|
|
15
25
|
/**
|
|
@@ -25,49 +35,66 @@ export declare class Bulk extends APIResource {
|
|
|
25
35
|
*/
|
|
26
36
|
runJob(jobID: string, options?: RequestOptions): APIPromise<void>;
|
|
27
37
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
[key: string]: unknown;
|
|
54
|
-
} | null;
|
|
55
|
-
event?: string | null;
|
|
56
|
-
locale?: {
|
|
57
|
-
[key: string]: {
|
|
58
|
-
[key: string]: unknown;
|
|
59
|
-
};
|
|
60
|
-
} | null;
|
|
61
|
-
override?: {
|
|
38
|
+
/**
|
|
39
|
+
* Bulk message definition. Supports two formats:
|
|
40
|
+
*
|
|
41
|
+
* - V1 format: Requires `event` field (event ID or notification ID)
|
|
42
|
+
* - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
|
|
43
|
+
* content) in addition to `event`
|
|
44
|
+
*/
|
|
45
|
+
export interface InboundBulkMessage {
|
|
46
|
+
/**
|
|
47
|
+
* Event ID or Notification ID (required). Can be either a Notification ID (e.g.,
|
|
48
|
+
* "FRH3QXM9E34W4RKP7MRC8NZ1T8V8") or a custom Event ID (e.g., "welcome-email")
|
|
49
|
+
* mapped to a notification.
|
|
50
|
+
*/
|
|
51
|
+
event: string;
|
|
52
|
+
brand?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Elemental content (optional, for V2 format). When provided, this will be used
|
|
55
|
+
* instead of the notification associated with the `event` field.
|
|
56
|
+
*/
|
|
57
|
+
content?: Shared.ElementalContentSugar | Shared.ElementalContent | null;
|
|
58
|
+
data?: {
|
|
59
|
+
[key: string]: unknown;
|
|
60
|
+
} | null;
|
|
61
|
+
locale?: {
|
|
62
|
+
[key: string]: {
|
|
62
63
|
[key: string]: unknown;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
64
|
+
};
|
|
65
|
+
} | null;
|
|
66
|
+
override?: {
|
|
67
|
+
[key: string]: unknown;
|
|
68
|
+
} | null;
|
|
69
|
+
/**
|
|
70
|
+
* Notification ID or template ID (optional, for V2 format). When provided, this
|
|
71
|
+
* will be used instead of the notification associated with the `event` field.
|
|
72
|
+
*/
|
|
73
|
+
template?: string | null;
|
|
65
74
|
}
|
|
66
75
|
export interface InboundBulkMessageUser {
|
|
76
|
+
/**
|
|
77
|
+
* User-specific data that will be merged with message.data
|
|
78
|
+
*/
|
|
67
79
|
data?: unknown;
|
|
68
80
|
preferences?: Shared.RecipientPreferences | null;
|
|
69
|
-
|
|
81
|
+
/**
|
|
82
|
+
* User profile information. For email-based bulk jobs, `profile.email` is required
|
|
83
|
+
* for provider routing to determine if the message can be delivered. The email
|
|
84
|
+
* address should be provided here rather than in `to.email`.
|
|
85
|
+
*/
|
|
86
|
+
profile?: {
|
|
87
|
+
[key: string]: unknown;
|
|
88
|
+
} | null;
|
|
89
|
+
/**
|
|
90
|
+
* User ID (legacy field, use profile or to.user_id instead)
|
|
91
|
+
*/
|
|
70
92
|
recipient?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Optional recipient information. Note: For email provider routing, use
|
|
95
|
+
* `profile.email` instead of `to.email`. The `to` field is primarily used for
|
|
96
|
+
* recipient identification and data merging.
|
|
97
|
+
*/
|
|
71
98
|
to?: Shared.UserRecipient | null;
|
|
72
99
|
}
|
|
73
100
|
export interface BulkCreateJobResponse {
|
|
@@ -88,6 +115,13 @@ export interface BulkRetrieveJobResponse {
|
|
|
88
115
|
}
|
|
89
116
|
export declare namespace BulkRetrieveJobResponse {
|
|
90
117
|
interface Job {
|
|
118
|
+
/**
|
|
119
|
+
* Bulk message definition. Supports two formats:
|
|
120
|
+
*
|
|
121
|
+
* - V1 format: Requires `event` field (event ID or notification ID)
|
|
122
|
+
* - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
|
|
123
|
+
* content) in addition to `event`
|
|
124
|
+
*/
|
|
91
125
|
definition: BulkAPI.InboundBulkMessage;
|
|
92
126
|
enqueued: number;
|
|
93
127
|
failures: number;
|
|
@@ -99,6 +133,13 @@ export interface BulkAddUsersParams {
|
|
|
99
133
|
users: Array<InboundBulkMessageUser>;
|
|
100
134
|
}
|
|
101
135
|
export interface BulkCreateJobParams {
|
|
136
|
+
/**
|
|
137
|
+
* Bulk message definition. Supports two formats:
|
|
138
|
+
*
|
|
139
|
+
* - V1 format: Requires `event` field (event ID or notification ID)
|
|
140
|
+
* - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
|
|
141
|
+
* content) in addition to `event`
|
|
142
|
+
*/
|
|
102
143
|
message: InboundBulkMessage;
|
|
103
144
|
}
|
|
104
145
|
export interface BulkListUsersParams {
|
package/resources/bulk.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ7F;;;;;;;;OAQG;IACH,SAAS,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjG;;OAEG;IACH,SAAS,CACP,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,mBAAmB,GAAG,I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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"}
|
package/resources/bulk.d.ts
CHANGED
|
@@ -5,11 +5,21 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
6
|
export declare class Bulk extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Ingest user data into a Bulk Job
|
|
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.
|
|
9
13
|
*/
|
|
10
14
|
addUsers(jobID: string, body: BulkAddUsersParams, options?: RequestOptions): APIPromise<void>;
|
|
11
15
|
/**
|
|
12
|
-
*
|
|
16
|
+
* Creates a new bulk job for sending messages to multiple recipients.
|
|
17
|
+
*
|
|
18
|
+
* **Required**: `message.event` (event ID or notification ID)
|
|
19
|
+
*
|
|
20
|
+
* **Optional (V2 format)**: `message.template` (notification ID) or
|
|
21
|
+
* `message.content` (Elemental content) can be provided to override the
|
|
22
|
+
* notification associated with the event.
|
|
13
23
|
*/
|
|
14
24
|
createJob(body: BulkCreateJobParams, options?: RequestOptions): APIPromise<BulkCreateJobResponse>;
|
|
15
25
|
/**
|
|
@@ -25,49 +35,66 @@ export declare class Bulk extends APIResource {
|
|
|
25
35
|
*/
|
|
26
36
|
runJob(jobID: string, options?: RequestOptions): APIPromise<void>;
|
|
27
37
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
[key: string]: unknown;
|
|
54
|
-
} | null;
|
|
55
|
-
event?: string | null;
|
|
56
|
-
locale?: {
|
|
57
|
-
[key: string]: {
|
|
58
|
-
[key: string]: unknown;
|
|
59
|
-
};
|
|
60
|
-
} | null;
|
|
61
|
-
override?: {
|
|
38
|
+
/**
|
|
39
|
+
* Bulk message definition. Supports two formats:
|
|
40
|
+
*
|
|
41
|
+
* - V1 format: Requires `event` field (event ID or notification ID)
|
|
42
|
+
* - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
|
|
43
|
+
* content) in addition to `event`
|
|
44
|
+
*/
|
|
45
|
+
export interface InboundBulkMessage {
|
|
46
|
+
/**
|
|
47
|
+
* Event ID or Notification ID (required). Can be either a Notification ID (e.g.,
|
|
48
|
+
* "FRH3QXM9E34W4RKP7MRC8NZ1T8V8") or a custom Event ID (e.g., "welcome-email")
|
|
49
|
+
* mapped to a notification.
|
|
50
|
+
*/
|
|
51
|
+
event: string;
|
|
52
|
+
brand?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Elemental content (optional, for V2 format). When provided, this will be used
|
|
55
|
+
* instead of the notification associated with the `event` field.
|
|
56
|
+
*/
|
|
57
|
+
content?: Shared.ElementalContentSugar | Shared.ElementalContent | null;
|
|
58
|
+
data?: {
|
|
59
|
+
[key: string]: unknown;
|
|
60
|
+
} | null;
|
|
61
|
+
locale?: {
|
|
62
|
+
[key: string]: {
|
|
62
63
|
[key: string]: unknown;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
64
|
+
};
|
|
65
|
+
} | null;
|
|
66
|
+
override?: {
|
|
67
|
+
[key: string]: unknown;
|
|
68
|
+
} | null;
|
|
69
|
+
/**
|
|
70
|
+
* Notification ID or template ID (optional, for V2 format). When provided, this
|
|
71
|
+
* will be used instead of the notification associated with the `event` field.
|
|
72
|
+
*/
|
|
73
|
+
template?: string | null;
|
|
65
74
|
}
|
|
66
75
|
export interface InboundBulkMessageUser {
|
|
76
|
+
/**
|
|
77
|
+
* User-specific data that will be merged with message.data
|
|
78
|
+
*/
|
|
67
79
|
data?: unknown;
|
|
68
80
|
preferences?: Shared.RecipientPreferences | null;
|
|
69
|
-
|
|
81
|
+
/**
|
|
82
|
+
* User profile information. For email-based bulk jobs, `profile.email` is required
|
|
83
|
+
* for provider routing to determine if the message can be delivered. The email
|
|
84
|
+
* address should be provided here rather than in `to.email`.
|
|
85
|
+
*/
|
|
86
|
+
profile?: {
|
|
87
|
+
[key: string]: unknown;
|
|
88
|
+
} | null;
|
|
89
|
+
/**
|
|
90
|
+
* User ID (legacy field, use profile or to.user_id instead)
|
|
91
|
+
*/
|
|
70
92
|
recipient?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Optional recipient information. Note: For email provider routing, use
|
|
95
|
+
* `profile.email` instead of `to.email`. The `to` field is primarily used for
|
|
96
|
+
* recipient identification and data merging.
|
|
97
|
+
*/
|
|
71
98
|
to?: Shared.UserRecipient | null;
|
|
72
99
|
}
|
|
73
100
|
export interface BulkCreateJobResponse {
|
|
@@ -88,6 +115,13 @@ export interface BulkRetrieveJobResponse {
|
|
|
88
115
|
}
|
|
89
116
|
export declare namespace BulkRetrieveJobResponse {
|
|
90
117
|
interface Job {
|
|
118
|
+
/**
|
|
119
|
+
* Bulk message definition. Supports two formats:
|
|
120
|
+
*
|
|
121
|
+
* - V1 format: Requires `event` field (event ID or notification ID)
|
|
122
|
+
* - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
|
|
123
|
+
* content) in addition to `event`
|
|
124
|
+
*/
|
|
91
125
|
definition: BulkAPI.InboundBulkMessage;
|
|
92
126
|
enqueued: number;
|
|
93
127
|
failures: number;
|
|
@@ -99,6 +133,13 @@ export interface BulkAddUsersParams {
|
|
|
99
133
|
users: Array<InboundBulkMessageUser>;
|
|
100
134
|
}
|
|
101
135
|
export interface BulkCreateJobParams {
|
|
136
|
+
/**
|
|
137
|
+
* Bulk message definition. Supports two formats:
|
|
138
|
+
*
|
|
139
|
+
* - V1 format: Requires `event` field (event ID or notification ID)
|
|
140
|
+
* - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
|
|
141
|
+
* content) in addition to `event`
|
|
142
|
+
*/
|
|
102
143
|
message: InboundBulkMessage;
|
|
103
144
|
}
|
|
104
145
|
export interface BulkListUsersParams {
|
package/resources/bulk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ7F;;;;;;;;OAQG;IACH,SAAS,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjG;;OAEG;IACH,SAAS,CACP,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,mBAAmB,GAAG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B,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"}
|
package/resources/bulk.js
CHANGED
|
@@ -7,7 +7,11 @@ const headers_1 = require("../internal/headers.js");
|
|
|
7
7
|
const path_1 = require("../internal/utils/path.js");
|
|
8
8
|
class Bulk extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Ingest user data into a Bulk Job
|
|
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.
|
|
11
15
|
*/
|
|
12
16
|
addUsers(jobID, body, options) {
|
|
13
17
|
return this._client.post((0, path_1.path) `/bulk/${jobID}`, {
|
|
@@ -17,7 +21,13 @@ class Bulk extends resource_1.APIResource {
|
|
|
17
21
|
});
|
|
18
22
|
}
|
|
19
23
|
/**
|
|
20
|
-
*
|
|
24
|
+
* Creates a new bulk job for sending messages to multiple recipients.
|
|
25
|
+
*
|
|
26
|
+
* **Required**: `message.event` (event ID or notification ID)
|
|
27
|
+
*
|
|
28
|
+
* **Optional (V2 format)**: `message.template` (notification ID) or
|
|
29
|
+
* `message.content` (Elemental content) can be provided to override the
|
|
30
|
+
* notification associated with the event.
|
|
21
31
|
*/
|
|
22
32
|
createJob(body, options) {
|
|
23
33
|
return this._client.post('/bulk', { body, ...options });
|
package/resources/bulk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDA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AI,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;AAxDD,oBAwDC"}
|
package/resources/bulk.mjs
CHANGED
|
@@ -4,7 +4,11 @@ import { buildHeaders } from "../internal/headers.mjs";
|
|
|
4
4
|
import { path } from "../internal/utils/path.mjs";
|
|
5
5
|
export class Bulk extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Ingest user data into a Bulk Job
|
|
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.
|
|
8
12
|
*/
|
|
9
13
|
addUsers(jobID, body, options) {
|
|
10
14
|
return this._client.post(path `/bulk/${jobID}`, {
|
|
@@ -14,7 +18,13 @@ export class Bulk extends APIResource {
|
|
|
14
18
|
});
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
17
|
-
*
|
|
21
|
+
* Creates a new bulk job for sending messages to multiple recipients.
|
|
22
|
+
*
|
|
23
|
+
* **Required**: `message.event` (event ID or notification ID)
|
|
24
|
+
*
|
|
25
|
+
* **Optional (V2 format)**: `message.template` (notification ID) or
|
|
26
|
+
* `message.content` (Elemental content) can be provided to override the
|
|
27
|
+
* notification associated with the event.
|
|
18
28
|
*/
|
|
19
29
|
createJob(body, options) {
|
|
20
30
|
return this._client.post('/bulk', { body, ...options });
|
package/resources/bulk.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE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AO,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"}
|
package/resources/inbound.d.mts
CHANGED
package/resources/inbound.d.ts
CHANGED
package/resources/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./shared.mjs";
|
|
2
|
-
export { Audiences, type Audience, type
|
|
2
|
+
export { Audiences, type Audience, type AudienceUpdateResponse, type AudienceListResponse, type AudienceListMembersResponse, type AudienceUpdateParams, type AudienceListParams, type AudienceListMembersParams, } from "./audiences.mjs";
|
|
3
3
|
export { AuditEvents, type AuditEvent, type AuditEventListResponse, type AuditEventListParams, } from "./audit-events.mjs";
|
|
4
4
|
export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from "./auth.mjs";
|
|
5
|
-
export { Automations, type AutomationInvokeResponse } from "./automations/automations.mjs";
|
|
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 { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type BulkCreateJobResponse, type BulkListUsersResponse, type BulkRetrieveJobResponse, type BulkAddUsersParams, type BulkCreateJobParams, type BulkListUsersParams, } from "./bulk.mjs";
|
|
8
8
|
export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from "./inbound.mjs";
|
|
@@ -12,7 +12,7 @@ export { Notifications, type BaseCheck, type Check, type NotificationGetContent,
|
|
|
12
12
|
export { Profiles, type SubscribeToListsRequestItem, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.mjs";
|
|
13
13
|
export { Requests } from "./requests.mjs";
|
|
14
14
|
export { Send, type SendMessageResponse, type SendMessageParams } from "./send.mjs";
|
|
15
|
-
export { Tenants, type BaseTemplateTenantAssociation, type DefaultPreferences, type SubscriptionTopicNew, type Tenant, type TenantAssociation, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants/tenants.mjs";
|
|
15
|
+
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/tenants.mjs";
|
|
16
16
|
export { Translations, type TranslationRetrieveResponse, type TranslationRetrieveParams, type TranslationUpdateParams, } from "./translations.mjs";
|
|
17
17
|
export { Users } from "./users/users.mjs";
|
|
18
18
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,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;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AAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B;OACM,EACL,QAAQ,EACR,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC1D,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;OACM,EACL,YAAY,EACZ,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B;OACM,EAAE,KAAK,EAAE"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
|
-
export { Audiences, type Audience, type
|
|
2
|
+
export { Audiences, type Audience, type AudienceUpdateResponse, type AudienceListResponse, type AudienceListMembersResponse, type AudienceUpdateParams, type AudienceListParams, type AudienceListMembersParams, } from "./audiences.js";
|
|
3
3
|
export { AuditEvents, type AuditEvent, type AuditEventListResponse, type AuditEventListParams, } from "./audit-events.js";
|
|
4
4
|
export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from "./auth.js";
|
|
5
|
-
export { Automations, type AutomationInvokeResponse } from "./automations/automations.js";
|
|
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 { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type BulkCreateJobResponse, type BulkListUsersResponse, type BulkRetrieveJobResponse, type BulkAddUsersParams, type BulkCreateJobParams, type BulkListUsersParams, } from "./bulk.js";
|
|
8
8
|
export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from "./inbound.js";
|
|
@@ -12,7 +12,7 @@ export { Notifications, type BaseCheck, type Check, type NotificationGetContent,
|
|
|
12
12
|
export { Profiles, type SubscribeToListsRequestItem, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.js";
|
|
13
13
|
export { Requests } from "./requests.js";
|
|
14
14
|
export { Send, type SendMessageResponse, type SendMessageParams } from "./send.js";
|
|
15
|
-
export { Tenants, type BaseTemplateTenantAssociation, type DefaultPreferences, type SubscriptionTopicNew, type Tenant, type TenantAssociation, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants/tenants.js";
|
|
15
|
+
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/tenants.js";
|
|
16
16
|
export { Translations, type TranslationRetrieveResponse, type TranslationRetrieveParams, type TranslationUpdateParams, } from "./translations.js";
|
|
17
17
|
export { Users } from "./users/users.js";
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,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;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B;OACM,EAAE,IAAI,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE;OAChE,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,GAC1B;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACv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E"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,4CASqB;AARnB,sGAAA,SAAS,OAAA;AASX,kDAKwB;AAJtB,2GAAA,WAAW,OAAA;AAKb,kCAAsF;AAA7E,4FAAA,IAAI,OAAA;AACb,4DAMmC;AALjC,0GAAA,WAAW,OAAA;AAMb,sCAoBkB;AAnBhB,gGAAA,MAAM,OAAA;AAoBR,kCAUgB;AATd,4FAAA,IAAI,OAAA;AAUN,wCAAkG;AAAzF,kGAAA,OAAO,OAAA;AAChB,0CAQuB;AAPrB,8FAAA,KAAK,OAAA;AAQP,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,kEAOuC;AANrC,8GAAA,aAAa,OAAA;AAOf,mDAS6B;AAR3B,oGAAA,QAAQ,OAAA;AASV,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,kCAAgF;AAAvE,4FAAA,IAAI,OAAA;AACb,gDAiB2B;AAhBzB,kGAAA,OAAO,OAAA;AAiBT,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,0CAAsC;AAA7B,8FAAA,KAAK,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ export * from "./shared.mjs";
|
|
|
3
3
|
export { Audiences, } from "./audiences.mjs";
|
|
4
4
|
export { AuditEvents, } from "./audit-events.mjs";
|
|
5
5
|
export { Auth } from "./auth.mjs";
|
|
6
|
-
export { Automations } from "./automations/automations.mjs";
|
|
6
|
+
export { Automations, } from "./automations/automations.mjs";
|
|
7
7
|
export { Brands, } from "./brands.mjs";
|
|
8
8
|
export { Bulk, } from "./bulk.mjs";
|
|
9
9
|
export { Inbound } from "./inbound.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,SAAS,GAQV;OACM,EACL,WAAW,GAIZ;OACM,EAAE,IAAI,EAA0D;OAChE,EACL,WAAW,GAKZ;OACM,EACL,MAAM,GAmBP;OACM,EACL,IAAI,GASL;OACM,EAAE,OAAO,EAAgE;OACzE,EACL,KAAK,GAON;OACM,EACL,QAAQ,GAQT;OACM,EACL,aAAa,GAMd;OACM,EACL,QAAQ,GAQT;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,IAAI,EAAoD;OAC1D,EACL,OAAO,GAgBR;OACM,EACL,YAAY,GAIb;OACM,EAAE,KAAK,EAAE"}
|