@trycourier/courier 6.6.1-alpha0 → 6.7.0-alpha10
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 +124 -0
- package/README.md +11 -11
- package/client.d.mts +48 -20
- package/client.d.mts.map +1 -1
- package/client.d.ts +48 -20
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/internal/tslib.js +6 -6
- package/package.json +1 -1
- package/resources/audiences.d.mts +30 -52
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +30 -52
- package/resources/audiences.d.ts.map +1 -1
- package/resources/audiences.js.map +1 -1
- package/resources/audiences.mjs.map +1 -1
- package/resources/audit-events.d.mts +5 -9
- package/resources/audit-events.d.mts.map +1 -1
- package/resources/audit-events.d.ts +5 -9
- package/resources/audit-events.d.ts.map +1 -1
- package/resources/auth.d.mts +2 -2
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts +2 -2
- package/resources/auth.d.ts.map +1 -1
- package/resources/automations/automations.d.mts +5 -252
- package/resources/automations/automations.d.mts.map +1 -1
- package/resources/automations/automations.d.ts +5 -252
- package/resources/automations/automations.d.ts.map +1 -1
- package/resources/automations/automations.js +0 -42
- package/resources/automations/automations.js.map +1 -1
- package/resources/automations/automations.mjs +1 -43
- package/resources/automations/automations.mjs.map +1 -1
- package/resources/automations/index.d.mts +2 -2
- package/resources/automations/index.d.mts.map +1 -1
- package/resources/automations/index.d.ts +2 -2
- package/resources/automations/index.d.ts.map +1 -1
- package/resources/automations/index.js.map +1 -1
- package/resources/automations/index.mjs +2 -2
- package/resources/automations/index.mjs.map +1 -1
- package/resources/automations/invoke.d.mts +122 -9
- package/resources/automations/invoke.d.mts.map +1 -1
- package/resources/automations/invoke.d.ts +122 -9
- package/resources/automations/invoke.d.ts.map +1 -1
- package/resources/automations/invoke.js +45 -0
- package/resources/automations/invoke.js.map +1 -1
- package/resources/automations/invoke.mjs +45 -0
- package/resources/automations/invoke.mjs.map +1 -1
- package/resources/brands.d.mts +76 -52
- package/resources/brands.d.mts.map +1 -1
- package/resources/brands.d.ts +76 -52
- package/resources/brands.d.ts.map +1 -1
- package/resources/brands.js.map +1 -1
- package/resources/brands.mjs.map +1 -1
- package/resources/bulk.d.mts +36 -127
- package/resources/bulk.d.mts.map +1 -1
- package/resources/bulk.d.ts +36 -127
- package/resources/bulk.d.ts.map +1 -1
- package/resources/bulk.js.map +1 -1
- 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 +11 -10
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -10
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -0
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/lists/index.d.mts +2 -2
- package/resources/lists/index.d.mts.map +1 -1
- package/resources/lists/index.d.ts +2 -2
- package/resources/lists/index.d.ts.map +1 -1
- package/resources/lists/index.js.map +1 -1
- package/resources/lists/index.mjs +1 -1
- package/resources/lists/index.mjs.map +1 -1
- package/resources/lists/lists.d.mts +19 -13
- package/resources/lists/lists.d.mts.map +1 -1
- package/resources/lists/lists.d.ts +19 -13
- package/resources/lists/lists.d.ts.map +1 -1
- package/resources/lists/lists.js +7 -2
- package/resources/lists/lists.js.map +1 -1
- package/resources/lists/lists.mjs +7 -2
- package/resources/lists/lists.mjs.map +1 -1
- package/resources/lists/subscriptions.d.mts +8 -52
- package/resources/lists/subscriptions.d.mts.map +1 -1
- package/resources/lists/subscriptions.d.ts +8 -52
- package/resources/lists/subscriptions.d.ts.map +1 -1
- package/resources/lists/subscriptions.js.map +1 -1
- package/resources/lists/subscriptions.mjs.map +1 -1
- package/resources/messages.d.mts +8 -8
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +8 -8
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +1 -1
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +1 -1
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications/checks.d.mts +5 -12
- package/resources/notifications/checks.d.mts.map +1 -1
- package/resources/notifications/checks.d.ts +5 -12
- package/resources/notifications/checks.d.ts.map +1 -1
- package/resources/notifications/checks.js.map +1 -1
- package/resources/notifications/checks.mjs.map +1 -1
- package/resources/notifications/index.d.mts +2 -2
- package/resources/notifications/index.d.mts.map +1 -1
- package/resources/notifications/index.d.ts +2 -2
- package/resources/notifications/index.d.ts.map +1 -1
- package/resources/notifications/index.js.map +1 -1
- package/resources/notifications/index.mjs.map +1 -1
- package/resources/notifications/notifications.d.mts +13 -11
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +13 -11
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/profiles/index.d.mts +1 -1
- package/resources/profiles/index.d.mts.map +1 -1
- package/resources/profiles/index.d.ts +1 -1
- package/resources/profiles/index.d.ts.map +1 -1
- package/resources/profiles/index.js.map +1 -1
- package/resources/profiles/index.mjs.map +1 -1
- package/resources/profiles/lists.d.mts +5 -11
- package/resources/profiles/lists.d.mts.map +1 -1
- package/resources/profiles/lists.d.ts +5 -11
- package/resources/profiles/lists.d.ts.map +1 -1
- package/resources/profiles/profiles.d.mts +7 -3
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +7 -3
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/send.d.mts +127 -745
- package/resources/send.d.mts.map +1 -1
- package/resources/send.d.ts +127 -745
- package/resources/send.d.ts.map +1 -1
- package/resources/send.js +12 -1
- package/resources/send.js.map +1 -1
- package/resources/send.mjs +12 -1
- package/resources/send.mjs.map +1 -1
- package/resources/shared.d.mts +245 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +245 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/{src/resources/tenants/default-preferences.ts → resources/shared.mjs} +2 -2
- package/resources/shared.mjs.map +1 -0
- package/resources/tenants/index.d.mts +3 -1
- package/resources/tenants/index.d.mts.map +1 -1
- package/resources/tenants/index.d.ts +3 -1
- package/resources/tenants/index.d.ts.map +1 -1
- package/resources/tenants/index.js +5 -1
- package/resources/tenants/index.js.map +1 -1
- package/resources/tenants/index.mjs +2 -0
- package/resources/tenants/index.mjs.map +1 -1
- package/resources/tenants/templates.d.mts +91 -0
- package/resources/tenants/templates.d.mts.map +1 -0
- package/resources/tenants/templates.d.ts +91 -0
- package/resources/tenants/templates.d.ts.map +1 -0
- package/resources/tenants/templates.js +38 -0
- package/resources/tenants/templates.js.map +1 -0
- package/resources/tenants/templates.mjs +34 -0
- package/resources/tenants/templates.mjs.map +1 -0
- package/resources/tenants/tenant-default-preferences/index.d.mts +3 -0
- package/resources/tenants/tenant-default-preferences/index.d.mts.map +1 -0
- package/resources/tenants/tenant-default-preferences/index.d.ts +3 -0
- package/resources/tenants/tenant-default-preferences/index.d.ts.map +1 -0
- package/resources/tenants/tenant-default-preferences/index.js +9 -0
- package/resources/tenants/tenant-default-preferences/index.js.map +1 -0
- package/resources/tenants/tenant-default-preferences/index.mjs +4 -0
- package/resources/tenants/tenant-default-preferences/index.mjs.map +1 -0
- package/resources/tenants/{default-preferences → tenant-default-preferences}/items.d.mts +5 -18
- package/resources/tenants/tenant-default-preferences/items.d.mts.map +1 -0
- package/resources/tenants/{default-preferences → tenant-default-preferences}/items.d.ts +5 -18
- package/resources/tenants/tenant-default-preferences/items.d.ts.map +1 -0
- package/resources/tenants/{default-preferences → tenant-default-preferences}/items.js +2 -2
- package/resources/tenants/tenant-default-preferences/items.js.map +1 -0
- package/resources/tenants/{default-preferences → tenant-default-preferences}/items.mjs +2 -2
- package/resources/tenants/tenant-default-preferences/items.mjs.map +1 -0
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.d.mts +10 -0
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.d.mts.map +1 -0
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.d.ts +10 -0
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.d.ts.map +1 -0
- package/resources/tenants/{default-preferences/default-preferences.js → tenant-default-preferences/tenant-default-preferences.js} +5 -5
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.js.map +1 -0
- package/resources/tenants/{default-preferences/default-preferences.mjs → tenant-default-preferences/tenant-default-preferences.mjs} +4 -4
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.mjs.map +1 -0
- package/resources/tenants/tenant-default-preferences.d.mts +2 -0
- package/resources/tenants/tenant-default-preferences.d.mts.map +1 -0
- package/resources/tenants/tenant-default-preferences.d.ts +2 -0
- package/resources/tenants/tenant-default-preferences.d.ts.map +1 -0
- package/resources/tenants/{default-preferences.js → tenant-default-preferences.js} +2 -2
- package/resources/tenants/tenant-default-preferences.js.map +1 -0
- package/resources/tenants/tenant-default-preferences.mjs +3 -0
- package/resources/tenants/tenant-default-preferences.mjs.map +1 -0
- package/resources/tenants/tenants.d.mts +66 -7
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +66 -7
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js +8 -2
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs +8 -2
- package/resources/tenants/tenants.mjs.map +1 -1
- package/resources/users/index.d.mts +3 -3
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +3 -3
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/preferences.d.mts +8 -11
- package/resources/users/preferences.d.mts.map +1 -1
- package/resources/users/preferences.d.ts +8 -11
- package/resources/users/preferences.d.ts.map +1 -1
- package/resources/users/preferences.js.map +1 -1
- package/resources/users/preferences.mjs.map +1 -1
- package/resources/users/tenants.d.mts +4 -21
- package/resources/users/tenants.d.mts.map +1 -1
- package/resources/users/tenants.d.ts +4 -21
- package/resources/users/tenants.d.ts.map +1 -1
- package/resources/users/tenants.js.map +1 -1
- package/resources/users/tenants.mjs.map +1 -1
- package/resources/users/tokens.d.mts +22 -23
- package/resources/users/tokens.d.mts.map +1 -1
- package/resources/users/tokens.d.ts +22 -23
- package/resources/users/tokens.d.ts.map +1 -1
- package/resources/users/tokens.js +14 -15
- package/resources/users/tokens.js.map +1 -1
- package/resources/users/tokens.mjs +14 -15
- package/resources/users/tokens.mjs.map +1 -1
- package/resources/users/users.d.mts +6 -6
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +6 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/src/client.ts +81 -56
- package/src/internal/to-file.ts +1 -1
- package/src/resources/audiences.ts +45 -90
- package/src/resources/audit-events.ts +7 -13
- package/src/resources/auth.ts +2 -16
- package/src/resources/automations/automations.ts +6 -342
- package/src/resources/automations/index.ts +2 -12
- package/src/resources/automations/invoke.ts +163 -14
- package/src/resources/brands.ts +119 -53
- package/src/resources/bulk.ts +28 -148
- package/src/resources/inbound.ts +1 -1
- package/src/resources/index.ts +24 -30
- package/src/resources/lists/index.ts +9 -3
- package/src/resources/lists/lists.ts +27 -16
- package/src/resources/lists/subscriptions.ts +7 -65
- package/src/resources/messages.ts +10 -7
- package/src/resources/notifications/checks.ts +4 -17
- package/src/resources/notifications/index.ts +2 -4
- package/src/resources/notifications/notifications.ts +13 -14
- package/src/resources/profiles/index.ts +1 -0
- package/src/resources/profiles/lists.ts +5 -13
- package/src/resources/profiles/profiles.ts +9 -2
- package/src/resources/send.ts +122 -928
- package/src/resources/shared.ts +305 -0
- package/src/resources/tenants/index.ts +10 -0
- package/src/resources/tenants/templates.ts +124 -0
- package/src/resources/tenants/tenant-default-preferences/index.ts +4 -0
- package/src/resources/tenants/{default-preferences → tenant-default-preferences}/items.ts +5 -27
- package/src/resources/tenants/{default-preferences/default-preferences.ts → tenant-default-preferences/tenant-default-preferences.ts} +4 -12
- package/src/resources/tenants/tenant-default-preferences.ts +3 -0
- package/src/resources/tenants/tenants.ts +89 -8
- package/src/resources/users/index.ts +2 -4
- package/src/resources/users/preferences.ts +7 -12
- package/src/resources/users/tenants.ts +3 -23
- package/src/resources/users/tokens.ts +33 -34
- package/src/resources/users/users.ts +4 -8
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/tenants/default-preferences/default-preferences.d.mts +0 -10
- package/resources/tenants/default-preferences/default-preferences.d.mts.map +0 -1
- package/resources/tenants/default-preferences/default-preferences.d.ts +0 -10
- package/resources/tenants/default-preferences/default-preferences.d.ts.map +0 -1
- package/resources/tenants/default-preferences/default-preferences.js.map +0 -1
- package/resources/tenants/default-preferences/default-preferences.mjs.map +0 -1
- package/resources/tenants/default-preferences/index.d.mts +0 -3
- package/resources/tenants/default-preferences/index.d.mts.map +0 -1
- package/resources/tenants/default-preferences/index.d.ts +0 -3
- package/resources/tenants/default-preferences/index.d.ts.map +0 -1
- package/resources/tenants/default-preferences/index.js +0 -9
- package/resources/tenants/default-preferences/index.js.map +0 -1
- package/resources/tenants/default-preferences/index.mjs +0 -4
- package/resources/tenants/default-preferences/index.mjs.map +0 -1
- package/resources/tenants/default-preferences/items.d.mts.map +0 -1
- package/resources/tenants/default-preferences/items.d.ts.map +0 -1
- package/resources/tenants/default-preferences/items.js.map +0 -1
- package/resources/tenants/default-preferences/items.mjs.map +0 -1
- package/resources/tenants/default-preferences.d.mts +0 -2
- package/resources/tenants/default-preferences.d.mts.map +0 -1
- package/resources/tenants/default-preferences.d.ts +0 -2
- package/resources/tenants/default-preferences.d.ts.map +0 -1
- package/resources/tenants/default-preferences.js.map +0 -1
- package/resources/tenants/default-preferences.mjs +0 -3
- package/resources/tenants/default-preferences.mjs.map +0 -1
- package/src/resources/tenants/default-preferences/index.ts +0 -10
package/resources/bulk.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import * as BulkAPI from "./bulk.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as SendAPI from "./send.js";
|
|
5
|
-
import * as SubscriptionsAPI from "./lists/subscriptions.js";
|
|
6
|
-
import * as PreferencesAPI from "./users/preferences.js";
|
|
7
|
-
import * as ItemsAPI from "./tenants/default-preferences/items.js";
|
|
3
|
+
import * as Shared from "./shared.js";
|
|
8
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
9
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
10
6
|
export declare class Bulk extends APIResource {
|
|
@@ -29,144 +25,57 @@ export declare class Bulk extends APIResource {
|
|
|
29
25
|
*/
|
|
30
26
|
runJob(jobID: string, options?: RequestOptions): APIPromise<void>;
|
|
31
27
|
}
|
|
32
|
-
export
|
|
33
|
-
/**
|
|
34
|
-
* A unique identifier that represents the brand that should be used for rendering
|
|
35
|
-
* the notification.
|
|
36
|
-
*/
|
|
37
|
-
brand?: string | null;
|
|
38
|
-
/**
|
|
39
|
-
* JSON that includes any data you want to pass to a message template. The data
|
|
40
|
-
* will populate the corresponding template variables.
|
|
41
|
-
*/
|
|
42
|
-
data?: {
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
} | null;
|
|
45
|
-
event?: string | null;
|
|
46
|
-
locale?: {
|
|
47
|
-
[key: string]: unknown;
|
|
48
|
-
} | null;
|
|
49
|
-
/**
|
|
50
|
-
* Describes the content of the message in a way that will work for email, push,
|
|
51
|
-
* chat, or any channel.
|
|
52
|
-
*/
|
|
53
|
-
message?: InboundBulkMessage.InboundBulkTemplateMessage | InboundBulkMessage.InboundBulkContentMessage | null;
|
|
54
|
-
/**
|
|
55
|
-
* JSON that is merged into the request sent by Courier to the provider to override
|
|
56
|
-
* properties or to gain access to features in the provider API that are not
|
|
57
|
-
* natively supported by Courier.
|
|
58
|
-
*/
|
|
59
|
-
override?: unknown;
|
|
60
|
-
}
|
|
28
|
+
export type InboundBulkMessage = InboundBulkMessage.InboundBulkTemplateMessage | InboundBulkMessage.InboundBulkContentMessage;
|
|
61
29
|
export declare namespace InboundBulkMessage {
|
|
62
|
-
|
|
63
|
-
* Describes the content of the message in a way that will work for email, push,
|
|
64
|
-
* chat, or any channel.
|
|
65
|
-
*/
|
|
66
|
-
interface InboundBulkTemplateMessage extends SendAPI.BaseMessage {
|
|
67
|
-
/**
|
|
68
|
-
* The id of the notification template to be rendered and sent to the recipient(s).
|
|
69
|
-
* This field or the content field must be supplied.
|
|
70
|
-
*/
|
|
30
|
+
interface InboundBulkTemplateMessage {
|
|
71
31
|
template: string;
|
|
32
|
+
brand?: string | null;
|
|
33
|
+
data?: {
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
} | null;
|
|
36
|
+
event?: string | null;
|
|
37
|
+
locale?: {
|
|
38
|
+
[key: string]: {
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
} | null;
|
|
42
|
+
override?: {
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
} | null;
|
|
72
45
|
}
|
|
73
|
-
|
|
74
|
-
* A template for a type of message that can be sent more than once. For example,
|
|
75
|
-
* you might create an "Appointment Reminder" Notification or “Reset Password”
|
|
76
|
-
* Notifications.
|
|
77
|
-
*/
|
|
78
|
-
interface InboundBulkContentMessage extends SendAPI.BaseMessage {
|
|
46
|
+
interface InboundBulkContentMessage {
|
|
79
47
|
/**
|
|
80
|
-
*
|
|
81
|
-
* chat, or any channel. Either this or template must be specified.
|
|
48
|
+
* Syntactic sugar to provide a fast shorthand for Courier Elemental Blocks.
|
|
82
49
|
*/
|
|
83
|
-
content:
|
|
50
|
+
content: Shared.ElementalContentSugar | Shared.ElementalContent;
|
|
51
|
+
brand?: string | null;
|
|
52
|
+
data?: {
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
} | null;
|
|
55
|
+
event?: string | null;
|
|
56
|
+
locale?: {
|
|
57
|
+
[key: string]: {
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
} | null;
|
|
61
|
+
override?: {
|
|
62
|
+
[key: string]: unknown;
|
|
63
|
+
} | null;
|
|
84
64
|
}
|
|
85
65
|
}
|
|
86
66
|
export interface InboundBulkMessageUser {
|
|
87
67
|
data?: unknown;
|
|
88
|
-
preferences?:
|
|
68
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
89
69
|
profile?: unknown;
|
|
90
70
|
recipient?: string | null;
|
|
91
|
-
to?: UserRecipient | null;
|
|
92
|
-
}
|
|
93
|
-
export interface UserRecipient {
|
|
94
|
-
/**
|
|
95
|
-
* Use `tenant_id` instad.
|
|
96
|
-
*/
|
|
97
|
-
account_id?: string | null;
|
|
98
|
-
/**
|
|
99
|
-
* Context information such as tenant_id to send the notification with.
|
|
100
|
-
*/
|
|
101
|
-
context?: SendAPI.MessageContext | null;
|
|
102
|
-
data?: {
|
|
103
|
-
[key: string]: unknown;
|
|
104
|
-
} | null;
|
|
105
|
-
email?: string | null;
|
|
106
|
-
/**
|
|
107
|
-
* The user's preferred ISO 639-1 language code.
|
|
108
|
-
*/
|
|
109
|
-
locale?: string | null;
|
|
110
|
-
phone_number?: string | null;
|
|
111
|
-
preferences?: UserRecipient.Preferences | null;
|
|
112
|
-
/**
|
|
113
|
-
* An id of a tenant,
|
|
114
|
-
* [see tenants api docs](https://www.courier.com/docs/reference/tenants). Will
|
|
115
|
-
* load brand, default preferences and any other base context data associated with
|
|
116
|
-
* this tenant.
|
|
117
|
-
*/
|
|
118
|
-
tenant_id?: string | null;
|
|
119
|
-
user_id?: string | null;
|
|
120
|
-
}
|
|
121
|
-
export declare namespace UserRecipient {
|
|
122
|
-
interface Preferences {
|
|
123
|
-
notifications: {
|
|
124
|
-
[key: string]: Preferences.Notifications;
|
|
125
|
-
};
|
|
126
|
-
categories?: {
|
|
127
|
-
[key: string]: Preferences.Categories;
|
|
128
|
-
} | null;
|
|
129
|
-
templateId?: string | null;
|
|
130
|
-
}
|
|
131
|
-
namespace Preferences {
|
|
132
|
-
interface Notifications {
|
|
133
|
-
status: PreferencesAPI.PreferenceStatus;
|
|
134
|
-
channel_preferences?: Array<Notifications.ChannelPreference> | null;
|
|
135
|
-
rules?: Array<Notifications.Rule> | null;
|
|
136
|
-
source?: 'subscription' | 'list' | 'recipient' | null;
|
|
137
|
-
}
|
|
138
|
-
namespace Notifications {
|
|
139
|
-
interface ChannelPreference {
|
|
140
|
-
channel: ItemsAPI.ChannelClassification;
|
|
141
|
-
}
|
|
142
|
-
interface Rule {
|
|
143
|
-
until: string;
|
|
144
|
-
start?: string | null;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
interface Categories {
|
|
148
|
-
status: PreferencesAPI.PreferenceStatus;
|
|
149
|
-
channel_preferences?: Array<Categories.ChannelPreference> | null;
|
|
150
|
-
rules?: Array<Categories.Rule> | null;
|
|
151
|
-
source?: 'subscription' | 'list' | 'recipient' | null;
|
|
152
|
-
}
|
|
153
|
-
namespace Categories {
|
|
154
|
-
interface ChannelPreference {
|
|
155
|
-
channel: ItemsAPI.ChannelClassification;
|
|
156
|
-
}
|
|
157
|
-
interface Rule {
|
|
158
|
-
until: string;
|
|
159
|
-
start?: string | null;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
71
|
+
to?: Shared.UserRecipient | null;
|
|
163
72
|
}
|
|
164
73
|
export interface BulkCreateJobResponse {
|
|
165
74
|
jobId: string;
|
|
166
75
|
}
|
|
167
76
|
export interface BulkListUsersResponse {
|
|
168
77
|
items: Array<BulkListUsersResponse.Item>;
|
|
169
|
-
paging:
|
|
78
|
+
paging: Shared.Paging;
|
|
170
79
|
}
|
|
171
80
|
export declare namespace BulkListUsersResponse {
|
|
172
81
|
interface Item extends BulkAPI.InboundBulkMessageUser {
|
|
@@ -200,6 +109,6 @@ export interface BulkListUsersParams {
|
|
|
200
109
|
cursor?: string | null;
|
|
201
110
|
}
|
|
202
111
|
export declare namespace Bulk {
|
|
203
|
-
export { type InboundBulkMessage as InboundBulkMessage, type InboundBulkMessageUser as InboundBulkMessageUser, type
|
|
112
|
+
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, };
|
|
204
113
|
}
|
|
205
114
|
//# sourceMappingURL=bulk.d.ts.map
|
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,
|
|
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;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,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ClC;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,GAAG;QAClB,UAAU,EAAE,OAAO,CAAC,kBAAkB,CAAC;QAEvC,QAAQ,EAAE,MAAM,CAAC;QAEjB,QAAQ,EAAE,MAAM,CAAC;QAEjB,QAAQ,EAAE,MAAM,CAAC;QAEjB,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;KAC1D;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,kBAAkB,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,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"}
|
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,kDAA+C;
|
|
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;;OAEG;IACH,QAAQ,CAAC,KAAa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file":"bulk.mjs","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../src/resources/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;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;;OAEG;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;;OAEG;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;;OAEG;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;;OAEG;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"}
|
package/resources/inbound.d.mts
CHANGED
package/resources/inbound.d.ts
CHANGED
package/resources/index.d.mts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./shared.mjs";
|
|
2
|
+
export { Audiences, type Audience, type Filter, type FilterConfig, type AudienceUpdateResponse, type AudienceListResponse, type AudienceListMembersResponse, type AudienceUpdateParams, type AudienceListParams, type AudienceListMembersParams, } from "./audiences.mjs";
|
|
2
3
|
export { AuditEvents, type AuditEvent, type AuditEventListResponse, type AuditEventListParams, } from "./audit-events.mjs";
|
|
3
4
|
export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from "./auth.mjs";
|
|
4
|
-
export { Automations, type
|
|
5
|
-
export { Brands, type Brand, type BrandSettings, type BrandSnippets, type BrandListResponse, type BrandCreateParams, type BrandUpdateParams, type BrandListParams, } from "./brands.mjs";
|
|
6
|
-
export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type
|
|
5
|
+
export { Automations, type AutomationInvokeResponse } from "./automations/automations.mjs";
|
|
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
|
+
export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type BulkCreateJobResponse, type BulkListUsersResponse, type BulkRetrieveJobResponse, type BulkAddUsersParams, type BulkCreateJobParams, type BulkListUsersParams, } from "./bulk.mjs";
|
|
7
8
|
export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from "./inbound.mjs";
|
|
8
|
-
export { Lists, type
|
|
9
|
-
export { Messages, type MessageDetails, type MessageRetrieveResponse, type MessageListResponse, type
|
|
10
|
-
export { Notifications, type
|
|
11
|
-
export { Profiles, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.mjs";
|
|
9
|
+
export { Lists, type PutSubscriptionsRecipient, type SubscriptionList, type ListListResponse, type ListUpdateParams, type ListListParams, type ListRestoreParams, } from "./lists/lists.mjs";
|
|
10
|
+
export { Messages, type MessageDetails, type MessageRetrieveResponse, type MessageListResponse, type MessageContentResponse, type MessageHistoryResponse, type MessageListParams, type MessageHistoryParams, } from "./messages.mjs";
|
|
11
|
+
export { Notifications, type BaseCheck, type Check, type NotificationGetContent, type NotificationListResponse, type NotificationListParams, } from "./notifications/notifications.mjs";
|
|
12
|
+
export { Profiles, type SubscribeToListsRequestItem, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.mjs";
|
|
12
13
|
export { Requests } from "./requests.mjs";
|
|
13
|
-
export { Send, type
|
|
14
|
-
export { Tenants, type DefaultPreferences, type Tenant, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants/tenants.mjs";
|
|
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
16
|
export { Translations, type TranslationRetrieveResponse, type TranslationRetrieveParams, type TranslationUpdateParams, } from "./translations.mjs";
|
|
16
17
|
export { Users } from "./users/users.mjs";
|
|
17
18
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,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,EAAE,WAAW,EAAE,KAAK,wBAAwB,EAAE;OAC9C,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,EACvB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OACzE,EACL,KAAK,EACL,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB;OACM,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EACL,aAAa,EACb,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,sBAAsB,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,oBAAoB,EACzB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,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,17 +1,18 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./shared.js";
|
|
2
|
+
export { Audiences, type Audience, type Filter, type FilterConfig, type AudienceUpdateResponse, type AudienceListResponse, type AudienceListMembersResponse, type AudienceUpdateParams, type AudienceListParams, type AudienceListMembersParams, } from "./audiences.js";
|
|
2
3
|
export { AuditEvents, type AuditEvent, type AuditEventListResponse, type AuditEventListParams, } from "./audit-events.js";
|
|
3
4
|
export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from "./auth.js";
|
|
4
|
-
export { Automations, type
|
|
5
|
-
export { Brands, type Brand, type BrandSettings, type BrandSnippets, type BrandListResponse, type BrandCreateParams, type BrandUpdateParams, type BrandListParams, } from "./brands.js";
|
|
6
|
-
export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type
|
|
5
|
+
export { Automations, type AutomationInvokeResponse } from "./automations/automations.js";
|
|
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
|
+
export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type BulkCreateJobResponse, type BulkListUsersResponse, type BulkRetrieveJobResponse, type BulkAddUsersParams, type BulkCreateJobParams, type BulkListUsersParams, } from "./bulk.js";
|
|
7
8
|
export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from "./inbound.js";
|
|
8
|
-
export { Lists, type
|
|
9
|
-
export { Messages, type MessageDetails, type MessageRetrieveResponse, type MessageListResponse, type
|
|
10
|
-
export { Notifications, type
|
|
11
|
-
export { Profiles, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.js";
|
|
9
|
+
export { Lists, type PutSubscriptionsRecipient, type SubscriptionList, type ListListResponse, type ListUpdateParams, type ListListParams, type ListRestoreParams, } from "./lists/lists.js";
|
|
10
|
+
export { Messages, type MessageDetails, type MessageRetrieveResponse, type MessageListResponse, type MessageContentResponse, type MessageHistoryResponse, type MessageListParams, type MessageHistoryParams, } from "./messages.js";
|
|
11
|
+
export { Notifications, type BaseCheck, type Check, type NotificationGetContent, type NotificationListResponse, type NotificationListParams, } from "./notifications/notifications.js";
|
|
12
|
+
export { Profiles, type SubscribeToListsRequestItem, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.js";
|
|
12
13
|
export { Requests } from "./requests.js";
|
|
13
|
-
export { Send, type
|
|
14
|
-
export { Tenants, type DefaultPreferences, type Tenant, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants/tenants.js";
|
|
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
16
|
export { Translations, type TranslationRetrieveResponse, type TranslationRetrieveParams, type TranslationUpdateParams, } from "./translations.js";
|
|
16
17
|
export { Users } from "./users/users.js";
|
|
17
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":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,WAAW,E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R,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,oBAAoB,EACzB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,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.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Users = exports.Translations = exports.Tenants = exports.Send = exports.Requests = exports.Profiles = exports.Notifications = exports.Messages = exports.Lists = exports.Inbound = exports.Bulk = exports.Brands = exports.Automations = exports.Auth = exports.AuditEvents = exports.Audiences = void 0;
|
|
5
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
6
|
+
tslib_1.__exportStar(require("./shared.js"), exports);
|
|
5
7
|
var audiences_1 = require("./audiences.js");
|
|
6
8
|
Object.defineProperty(exports, "Audiences", { enumerable: true, get: function () { return audiences_1.Audiences; } });
|
|
7
9
|
var audit_events_1 = require("./audit-events.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,4CAWqB;AAVnB,sGAAA,SAAS,OAAA;AAWX,kDAKwB;AAJtB,2GAAA,WAAW,OAAA;AAKb,kCAAsF;AAA7E,4FAAA,IAAI,OAAA;AACb,4DAAuF;AAA9E,0GAAA,WAAW,OAAA;AACpB,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,gDAY2B;AAXzB,kGAAA,OAAO,OAAA;AAYT,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,0CAAsC;AAA7B,8FAAA,KAAK,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export * from "./shared.mjs";
|
|
2
3
|
export { Audiences, } from "./audiences.mjs";
|
|
3
4
|
export { AuditEvents, } from "./audit-events.mjs";
|
|
4
5
|
export { Auth } from "./auth.mjs";
|
|
5
|
-
export { Automations
|
|
6
|
+
export { Automations } from "./automations/automations.mjs";
|
|
6
7
|
export { Brands, } from "./brands.mjs";
|
|
7
8
|
export { Bulk, } from "./bulk.mjs";
|
|
8
9
|
export { Inbound } from "./inbound.mjs";
|
|
@@ -11,7 +12,7 @@ export { Messages, } from "./messages.mjs";
|
|
|
11
12
|
export { Notifications, } from "./notifications/notifications.mjs";
|
|
12
13
|
export { Profiles, } from "./profiles/profiles.mjs";
|
|
13
14
|
export { Requests } from "./requests.mjs";
|
|
14
|
-
export { Send
|
|
15
|
+
export { Send } from "./send.mjs";
|
|
15
16
|
export { Tenants, } from "./tenants/tenants.mjs";
|
|
16
17
|
export { Translations, } from "./translations.mjs";
|
|
17
18
|
export { Users } from "./users/users.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
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,SAAS,GAUV;OACM,EACL,WAAW,GAIZ;OACM,EAAE,IAAI,EAA0D;OAChE,EAAE,WAAW,EAAiC;OAC9C,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,GAWR;OACM,EACL,YAAY,GAIb;OACM,EAAE,KAAK,EAAE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Lists, type
|
|
2
|
-
export { Subscriptions, type
|
|
1
|
+
export { Lists, type PutSubscriptionsRecipient, type SubscriptionList, type ListListResponse, type ListUpdateParams, type ListListParams, type ListRestoreParams, } from "./lists.mjs";
|
|
2
|
+
export { Subscriptions, type SubscriptionListResponse, type SubscriptionListParams, type SubscriptionAddParams, type SubscriptionSubscribeParams, type SubscriptionSubscribeUserParams, type SubscriptionUnsubscribeUserParams, } from "./subscriptions.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB;OACM,EACL,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Lists, type
|
|
2
|
-
export { Subscriptions, type
|
|
1
|
+
export { Lists, type PutSubscriptionsRecipient, type SubscriptionList, type ListListResponse, type ListUpdateParams, type ListListParams, type ListRestoreParams, } from "./lists.js";
|
|
2
|
+
export { Subscriptions, type SubscriptionListResponse, type SubscriptionListParams, type SubscriptionAddParams, type SubscriptionSubscribeParams, type SubscriptionSubscribeUserParams, type SubscriptionUnsubscribeUserParams, } from "./subscriptions.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB;OACM,EACL,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,oDAQyB;AAPvB,8GAAA,aAAa,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/lists/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAON;OACM,EACL,aAAa,GAOd"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as Shared from "../shared.mjs";
|
|
3
3
|
import * as SubscriptionsAPI from "./subscriptions.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { SubscriptionAddParams, SubscriptionListParams, SubscriptionListResponse, SubscriptionSubscribeParams, SubscriptionSubscribeUserParams, SubscriptionUnsubscribeUserParams, Subscriptions } from "./subscriptions.mjs";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
7
|
export declare class Lists extends APIResource {
|
|
@@ -9,11 +9,11 @@ export declare class Lists extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Returns a list based on the list ID provided.
|
|
11
11
|
*/
|
|
12
|
-
retrieve(listID: string, options?: RequestOptions): APIPromise<
|
|
12
|
+
retrieve(listID: string, options?: RequestOptions): APIPromise<SubscriptionList>;
|
|
13
13
|
/**
|
|
14
14
|
* Create or replace an existing list with the supplied values.
|
|
15
15
|
*/
|
|
16
|
-
update(listID: string, body: ListUpdateParams, options?: RequestOptions): APIPromise<
|
|
16
|
+
update(listID: string, body: ListUpdateParams, options?: RequestOptions): APIPromise<void>;
|
|
17
17
|
/**
|
|
18
18
|
* Returns all of the lists, with the ability to filter based on a pattern.
|
|
19
19
|
*/
|
|
@@ -25,21 +25,25 @@ export declare class Lists extends APIResource {
|
|
|
25
25
|
/**
|
|
26
26
|
* Restore a previously deleted list.
|
|
27
27
|
*/
|
|
28
|
-
restore(listID: string, options?: RequestOptions): APIPromise<void>;
|
|
28
|
+
restore(listID: string, body: ListRestoreParams, options?: RequestOptions): APIPromise<void>;
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface PutSubscriptionsRecipient {
|
|
31
|
+
recipientId: string;
|
|
32
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
33
|
+
}
|
|
34
|
+
export interface SubscriptionList {
|
|
31
35
|
id: string;
|
|
32
36
|
name: string;
|
|
33
|
-
created?:
|
|
34
|
-
updated?:
|
|
37
|
+
created?: string | null;
|
|
38
|
+
updated?: string | null;
|
|
35
39
|
}
|
|
36
40
|
export interface ListListResponse {
|
|
37
|
-
items: Array<
|
|
38
|
-
paging:
|
|
41
|
+
items: Array<SubscriptionList>;
|
|
42
|
+
paging: Shared.Paging;
|
|
39
43
|
}
|
|
40
44
|
export interface ListUpdateParams {
|
|
41
45
|
name: string;
|
|
42
|
-
preferences?:
|
|
46
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
43
47
|
}
|
|
44
48
|
export interface ListListParams {
|
|
45
49
|
/**
|
|
@@ -54,8 +58,10 @@ export interface ListListParams {
|
|
|
54
58
|
*/
|
|
55
59
|
pattern?: string | null;
|
|
56
60
|
}
|
|
61
|
+
export interface ListRestoreParams {
|
|
62
|
+
}
|
|
57
63
|
export declare namespace Lists {
|
|
58
|
-
export { type
|
|
59
|
-
export { Subscriptions as Subscriptions, type
|
|
64
|
+
export { type PutSubscriptionsRecipient as PutSubscriptionsRecipient, type SubscriptionList as SubscriptionList, type ListListResponse as ListListResponse, type ListUpdateParams as ListUpdateParams, type ListListParams as ListListParams, type ListRestoreParams as ListRestoreParams, };
|
|
65
|
+
export { Subscriptions as Subscriptions, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionListParams as SubscriptionListParams, type SubscriptionAddParams as SubscriptionAddParams, type SubscriptionSubscribeParams as SubscriptionSubscribeParams, type SubscriptionSubscribeUserParams as SubscriptionSubscribeUserParams, type SubscriptionUnsubscribeUserParams as SubscriptionUnsubscribeUserParams, };
|
|
60
66
|
}
|
|
61
67
|
//# sourceMappingURL=lists.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.d.mts","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"lists.d.mts","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EACL,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,+BAA+B,EAC/B,iCAAiC,EACjC,aAAa,EACd;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IAEjG;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIhF;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,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AAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as Shared from "../shared.js";
|
|
3
3
|
import * as SubscriptionsAPI from "./subscriptions.js";
|
|
4
|
-
import {
|
|
4
|
+
import { SubscriptionAddParams, SubscriptionListParams, SubscriptionListResponse, SubscriptionSubscribeParams, SubscriptionSubscribeUserParams, SubscriptionUnsubscribeUserParams, Subscriptions } from "./subscriptions.js";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
7
|
export declare class Lists extends APIResource {
|
|
@@ -9,11 +9,11 @@ export declare class Lists extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Returns a list based on the list ID provided.
|
|
11
11
|
*/
|
|
12
|
-
retrieve(listID: string, options?: RequestOptions): APIPromise<
|
|
12
|
+
retrieve(listID: string, options?: RequestOptions): APIPromise<SubscriptionList>;
|
|
13
13
|
/**
|
|
14
14
|
* Create or replace an existing list with the supplied values.
|
|
15
15
|
*/
|
|
16
|
-
update(listID: string, body: ListUpdateParams, options?: RequestOptions): APIPromise<
|
|
16
|
+
update(listID: string, body: ListUpdateParams, options?: RequestOptions): APIPromise<void>;
|
|
17
17
|
/**
|
|
18
18
|
* Returns all of the lists, with the ability to filter based on a pattern.
|
|
19
19
|
*/
|
|
@@ -25,21 +25,25 @@ export declare class Lists extends APIResource {
|
|
|
25
25
|
/**
|
|
26
26
|
* Restore a previously deleted list.
|
|
27
27
|
*/
|
|
28
|
-
restore(listID: string, options?: RequestOptions): APIPromise<void>;
|
|
28
|
+
restore(listID: string, body: ListRestoreParams, options?: RequestOptions): APIPromise<void>;
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface PutSubscriptionsRecipient {
|
|
31
|
+
recipientId: string;
|
|
32
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
33
|
+
}
|
|
34
|
+
export interface SubscriptionList {
|
|
31
35
|
id: string;
|
|
32
36
|
name: string;
|
|
33
|
-
created?:
|
|
34
|
-
updated?:
|
|
37
|
+
created?: string | null;
|
|
38
|
+
updated?: string | null;
|
|
35
39
|
}
|
|
36
40
|
export interface ListListResponse {
|
|
37
|
-
items: Array<
|
|
38
|
-
paging:
|
|
41
|
+
items: Array<SubscriptionList>;
|
|
42
|
+
paging: Shared.Paging;
|
|
39
43
|
}
|
|
40
44
|
export interface ListUpdateParams {
|
|
41
45
|
name: string;
|
|
42
|
-
preferences?:
|
|
46
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
43
47
|
}
|
|
44
48
|
export interface ListListParams {
|
|
45
49
|
/**
|
|
@@ -54,8 +58,10 @@ export interface ListListParams {
|
|
|
54
58
|
*/
|
|
55
59
|
pattern?: string | null;
|
|
56
60
|
}
|
|
61
|
+
export interface ListRestoreParams {
|
|
62
|
+
}
|
|
57
63
|
export declare namespace Lists {
|
|
58
|
-
export { type
|
|
59
|
-
export { Subscriptions as Subscriptions, type
|
|
64
|
+
export { type PutSubscriptionsRecipient as PutSubscriptionsRecipient, type SubscriptionList as SubscriptionList, type ListListResponse as ListListResponse, type ListUpdateParams as ListUpdateParams, type ListListParams as ListListParams, type ListRestoreParams as ListRestoreParams, };
|
|
65
|
+
export { Subscriptions as Subscriptions, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionListParams as SubscriptionListParams, type SubscriptionAddParams as SubscriptionAddParams, type SubscriptionSubscribeParams as SubscriptionSubscribeParams, type SubscriptionSubscribeUserParams as SubscriptionSubscribeUserParams, type SubscriptionUnsubscribeUserParams as SubscriptionUnsubscribeUserParams, };
|
|
60
66
|
}
|
|
61
67
|
//# sourceMappingURL=lists.d.ts.map
|