@trycourier/courier 6.7.0-alpha4 → 7.1.0
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 +125 -0
- package/README.md +14 -8
- package/client.d.mts +32 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +32 -15
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/audiences.d.mts +4 -7
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +4 -7
- 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 +2 -2
- package/resources/audit-events.d.mts.map +1 -1
- package/resources/audit-events.d.ts +2 -2
- package/resources/audit-events.d.ts.map +1 -1
- package/resources/auth.d.mts +39 -0
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts +39 -0
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js +9 -0
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs +9 -0
- package/resources/auth.mjs.map +1 -1
- package/resources/automations/automations.d.mts +6 -2
- package/resources/automations/automations.d.mts.map +1 -1
- package/resources/automations/automations.d.ts +6 -2
- package/resources/automations/automations.d.ts.map +1 -1
- package/resources/automations/automations.js.map +1 -1
- package/resources/automations/automations.mjs +1 -1
- 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 +1 -1
- package/resources/automations/index.mjs.map +1 -1
- package/resources/automations/invoke.d.mts +4 -6
- package/resources/automations/invoke.d.mts.map +1 -1
- package/resources/automations/invoke.d.ts +4 -6
- package/resources/automations/invoke.d.ts.map +1 -1
- package/resources/automations/invoke.js.map +1 -1
- package/resources/automations/invoke.mjs.map +1 -1
- package/resources/brands.d.mts +2 -2
- package/resources/brands.d.mts.map +1 -1
- package/resources/brands.d.ts +2 -2
- package/resources/brands.d.ts.map +1 -1
- package/resources/bulk.d.mts +3 -6
- package/resources/bulk.d.mts.map +1 -1
- package/resources/bulk.d.ts +3 -6
- package/resources/bulk.d.ts.map +1 -1
- package/resources/bulk.js.map +1 -1
- package/resources/bulk.mjs.map +1 -1
- package/resources/index.d.mts +7 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -7
- 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/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.map +1 -1
- package/resources/lists/lists.d.mts +13 -9
- package/resources/lists/lists.d.mts.map +1 -1
- package/resources/lists/lists.d.ts +13 -9
- package/resources/lists/lists.d.ts.map +1 -1
- package/resources/lists/lists.js.map +1 -1
- package/resources/lists/lists.mjs.map +1 -1
- package/resources/lists/subscriptions.d.mts +7 -26
- package/resources/lists/subscriptions.d.mts.map +1 -1
- package/resources/lists/subscriptions.d.ts +7 -26
- 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 +2 -2
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +2 -2
- package/resources/messages.d.ts.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 +12 -5
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +12 -5
- 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 +9 -139
- package/resources/send.d.mts.map +1 -1
- package/resources/send.d.ts +9 -139
- package/resources/send.d.ts.map +1 -1
- package/resources/send.js +2 -2
- package/resources/send.js.map +1 -1
- package/resources/send.mjs +2 -2
- package/resources/send.mjs.map +1 -1
- package/resources/shared.d.mts +180 -13
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +180 -13
- package/resources/shared.d.ts.map +1 -1
- package/resources/tenants/index.d.mts +3 -2
- package/resources/tenants/index.d.mts.map +1 -1
- package/resources/tenants/index.d.ts +3 -2
- package/resources/tenants/index.d.ts.map +1 -1
- package/resources/tenants/index.js +3 -1
- package/resources/tenants/index.js.map +1 -1
- package/resources/tenants/index.mjs +1 -0
- package/resources/tenants/index.mjs.map +1 -1
- package/resources/tenants/preferences/index.d.mts +3 -0
- package/resources/tenants/preferences/index.d.mts.map +1 -0
- package/resources/tenants/preferences/index.d.ts +3 -0
- package/resources/tenants/preferences/index.d.ts.map +1 -0
- package/resources/tenants/{default-preferences → preferences}/index.js +3 -3
- package/resources/tenants/preferences/index.js.map +1 -0
- package/resources/tenants/preferences/index.mjs +4 -0
- package/resources/tenants/preferences/index.mjs.map +1 -0
- package/resources/tenants/{default-preferences → preferences}/items.d.mts +12 -29
- package/resources/tenants/preferences/items.d.mts.map +1 -0
- package/resources/tenants/{default-preferences → preferences}/items.d.ts +12 -29
- package/resources/tenants/preferences/items.d.ts.map +1 -0
- package/resources/tenants/{default-preferences → preferences}/items.js +9 -13
- package/resources/tenants/preferences/items.js.map +1 -0
- package/resources/tenants/{default-preferences → preferences}/items.mjs +9 -13
- package/resources/tenants/preferences/items.mjs.map +1 -0
- package/resources/tenants/preferences/preferences.d.mts +10 -0
- package/resources/tenants/preferences/preferences.d.mts.map +1 -0
- package/resources/tenants/preferences/preferences.d.ts +10 -0
- package/resources/tenants/preferences/preferences.d.ts.map +1 -0
- package/resources/tenants/{default-preferences/default-preferences.js → preferences/preferences.js} +5 -5
- package/resources/tenants/preferences/preferences.js.map +1 -0
- package/resources/tenants/{default-preferences/default-preferences.mjs → preferences/preferences.mjs} +4 -4
- package/resources/tenants/preferences/preferences.mjs.map +1 -0
- package/resources/tenants/preferences.d.mts +2 -0
- package/resources/tenants/preferences.d.mts.map +1 -0
- package/resources/tenants/preferences.d.ts +2 -0
- package/resources/tenants/preferences.d.ts.map +1 -0
- package/resources/tenants/{default-preferences.js → preferences.js} +2 -2
- package/resources/tenants/preferences.js.map +1 -0
- package/resources/tenants/preferences.mjs +3 -0
- package/resources/tenants/preferences.mjs.map +1 -0
- package/resources/tenants/templates.d.mts +4 -35
- package/resources/tenants/templates.d.mts.map +1 -1
- package/resources/tenants/templates.d.ts +4 -35
- package/resources/tenants/templates.d.ts.map +1 -1
- package/resources/tenants/templates.js.map +1 -1
- package/resources/tenants/templates.mjs.map +1 -1
- package/resources/tenants/tenants.d.mts +64 -9
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +64 -9
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js +4 -2
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs +5 -3
- package/resources/tenants/tenants.mjs.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +2 -2
- 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 +18 -17
- package/resources/users/tokens.d.mts.map +1 -1
- package/resources/users/tokens.d.ts +18 -17
- package/resources/users/tokens.d.ts.map +1 -1
- package/resources/users/tokens.js +1 -0
- package/resources/users/tokens.js.map +1 -1
- package/resources/users/tokens.mjs +1 -0
- package/resources/users/tokens.mjs.map +1 -1
- package/resources/users/users.d.mts +4 -4
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +4 -4
- 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 +37 -22
- package/src/resources/audiences.ts +3 -9
- package/src/resources/audit-events.ts +2 -2
- package/src/resources/auth.ts +39 -0
- package/src/resources/automations/automations.ts +7 -7
- package/src/resources/automations/index.ts +2 -7
- package/src/resources/automations/invoke.ts +6 -7
- package/src/resources/brands.ts +2 -2
- package/src/resources/bulk.ts +3 -6
- package/src/resources/index.ts +10 -13
- package/src/resources/lists/index.ts +2 -4
- package/src/resources/lists/lists.ts +14 -13
- package/src/resources/lists/subscriptions.ts +6 -31
- package/src/resources/messages.ts +2 -2
- package/src/resources/notifications/checks.ts +4 -17
- package/src/resources/notifications/index.ts +2 -2
- package/src/resources/notifications/notifications.ts +15 -6
- 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 +9 -175
- package/src/resources/shared.ts +215 -11
- package/src/resources/tenants/index.ts +4 -2
- package/src/resources/tenants/preferences/index.ts +4 -0
- package/src/resources/tenants/{default-preferences → preferences}/items.ts +12 -38
- package/src/resources/tenants/{default-preferences/default-preferences.ts → preferences/preferences.ts} +4 -12
- package/src/resources/tenants/{default-preferences.ts → preferences.ts} +1 -1
- package/src/resources/tenants/templates.ts +3 -44
- package/src/resources/tenants/tenants.ts +77 -18
- package/src/resources/users/index.ts +0 -2
- package/src/resources/users/preferences.ts +7 -12
- package/src/resources/users/tenants.ts +3 -23
- package/src/resources/users/tokens.ts +19 -18
- package/src/resources/users/users.ts +0 -4
- 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.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/resources/users/tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAKpC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAS5F;;;;;;;;;OASG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAA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AAC;CACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as PreferencesAPI from "./preferences.mjs";
|
|
3
|
-
import { PreferenceRetrieveParams, PreferenceRetrieveResponse, PreferenceRetrieveTopicParams, PreferenceRetrieveTopicResponse,
|
|
3
|
+
import { PreferenceRetrieveParams, PreferenceRetrieveResponse, PreferenceRetrieveTopicParams, PreferenceRetrieveTopicResponse, PreferenceUpdateOrCreateTopicParams, PreferenceUpdateOrCreateTopicResponse, Preferences, TopicPreference } from "./preferences.mjs";
|
|
4
4
|
import * as TenantsAPI from "./tenants.mjs";
|
|
5
|
-
import { TenantAddMultipleParams, TenantAddSingleParams,
|
|
5
|
+
import { TenantAddMultipleParams, TenantAddSingleParams, TenantListParams, TenantListResponse, TenantRemoveSingleParams, Tenants } from "./tenants.mjs";
|
|
6
6
|
import * as TokensAPI from "./tokens.mjs";
|
|
7
7
|
import { TokenAddSingleParams, TokenDeleteParams, TokenListResponse, TokenRetrieveParams, TokenRetrieveResponse, TokenUpdateParams, Tokens, UserToken } from "./tokens.mjs";
|
|
8
8
|
export declare class Users extends APIResource {
|
|
@@ -11,8 +11,8 @@ export declare class Users extends APIResource {
|
|
|
11
11
|
tokens: TokensAPI.Tokens;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace Users {
|
|
14
|
-
export { Preferences as Preferences, type
|
|
15
|
-
export { Tenants as Tenants, type
|
|
14
|
+
export { Preferences as Preferences, type TopicPreference as TopicPreference, type PreferenceRetrieveResponse as PreferenceRetrieveResponse, type PreferenceRetrieveTopicResponse as PreferenceRetrieveTopicResponse, type PreferenceUpdateOrCreateTopicResponse as PreferenceUpdateOrCreateTopicResponse, type PreferenceRetrieveParams as PreferenceRetrieveParams, type PreferenceRetrieveTopicParams as PreferenceRetrieveTopicParams, type PreferenceUpdateOrCreateTopicParams as PreferenceUpdateOrCreateTopicParams, };
|
|
15
|
+
export { Tenants as Tenants, type TenantListResponse as TenantListResponse, type TenantListParams as TenantListParams, type TenantAddMultipleParams as TenantAddMultipleParams, type TenantAddSingleParams as TenantAddSingleParams, type TenantRemoveSingleParams as TenantRemoveSingleParams, };
|
|
16
16
|
export { Tokens as Tokens, type UserToken as UserToken, type TokenRetrieveResponse as TokenRetrieveResponse, type TokenListResponse as TokenListResponse, type TokenRetrieveParams as TokenRetrieveParams, type TokenUpdateParams as TokenUpdateParams, type TokenDeleteParams as TokenDeleteParams, type TokenAddSingleParams as TokenAddSingleParams, };
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=users.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,
|
|
1
|
+
{"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,qCAAqC,EACrC,WAAW,EACX,eAAe,EAChB;OACM,KAAK,UAAU;OACf,EACL,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACxB,OAAO,EACR;OACM,KAAK,SAAS;OACd,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,EACN,SAAS,EACV;AAED,qBAAa,KAAM,SAAQ,WAAW;IACpC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAMD,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as PreferencesAPI from "./preferences.js";
|
|
3
|
-
import { PreferenceRetrieveParams, PreferenceRetrieveResponse, PreferenceRetrieveTopicParams, PreferenceRetrieveTopicResponse,
|
|
3
|
+
import { PreferenceRetrieveParams, PreferenceRetrieveResponse, PreferenceRetrieveTopicParams, PreferenceRetrieveTopicResponse, PreferenceUpdateOrCreateTopicParams, PreferenceUpdateOrCreateTopicResponse, Preferences, TopicPreference } from "./preferences.js";
|
|
4
4
|
import * as TenantsAPI from "./tenants.js";
|
|
5
|
-
import { TenantAddMultipleParams, TenantAddSingleParams,
|
|
5
|
+
import { TenantAddMultipleParams, TenantAddSingleParams, TenantListParams, TenantListResponse, TenantRemoveSingleParams, Tenants } from "./tenants.js";
|
|
6
6
|
import * as TokensAPI from "./tokens.js";
|
|
7
7
|
import { TokenAddSingleParams, TokenDeleteParams, TokenListResponse, TokenRetrieveParams, TokenRetrieveResponse, TokenUpdateParams, Tokens, UserToken } from "./tokens.js";
|
|
8
8
|
export declare class Users extends APIResource {
|
|
@@ -11,8 +11,8 @@ export declare class Users extends APIResource {
|
|
|
11
11
|
tokens: TokensAPI.Tokens;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace Users {
|
|
14
|
-
export { Preferences as Preferences, type
|
|
15
|
-
export { Tenants as Tenants, type
|
|
14
|
+
export { Preferences as Preferences, type TopicPreference as TopicPreference, type PreferenceRetrieveResponse as PreferenceRetrieveResponse, type PreferenceRetrieveTopicResponse as PreferenceRetrieveTopicResponse, type PreferenceUpdateOrCreateTopicResponse as PreferenceUpdateOrCreateTopicResponse, type PreferenceRetrieveParams as PreferenceRetrieveParams, type PreferenceRetrieveTopicParams as PreferenceRetrieveTopicParams, type PreferenceUpdateOrCreateTopicParams as PreferenceUpdateOrCreateTopicParams, };
|
|
15
|
+
export { Tenants as Tenants, type TenantListResponse as TenantListResponse, type TenantListParams as TenantListParams, type TenantAddMultipleParams as TenantAddMultipleParams, type TenantAddSingleParams as TenantAddSingleParams, type TenantRemoveSingleParams as TenantRemoveSingleParams, };
|
|
16
16
|
export { Tokens as Tokens, type UserToken as UserToken, type TokenRetrieveResponse as TokenRetrieveResponse, type TokenListResponse as TokenListResponse, type TokenRetrieveParams as TokenRetrieveParams, type TokenUpdateParams as TokenUpdateParams, type TokenDeleteParams as TokenDeleteParams, type TokenAddSingleParams as TokenAddSingleParams, };
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=users.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,qCAAqC,EACrC,WAAW,EACX,eAAe,EAChB;OACM,KAAK,UAAU;OACf,EACL,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACxB,OAAO,EACR;OACM,KAAK,SAAS;OACd,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,EACN,SAAS,EACV;AAED,qBAAa,KAAM,SAAQ,WAAW;IACpC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAMD,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDASuB;AACvB,iEAAwC;AACxC,0CAOmB;AACnB,+DAAsC;AACtC,wCASkB;AAElB,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAJD,sBAIC;AAED,KAAK,CAAC,WAAW,GAAG,yBAAW,CAAC;AAChC,KAAK,CAAC,OAAO,GAAG,iBAAO,CAAC;AACxB,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,
|
|
1
|
+
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAOL,WAAW,GAEZ;OACM,KAAK,UAAU;OACf,EAML,OAAO,GACR;OACM,KAAK,SAAS;OACd,EAOL,MAAM,GAEP;AAED,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;AAChC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;AACxB,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -28,7 +28,6 @@ import {
|
|
|
28
28
|
Audiences,
|
|
29
29
|
Filter,
|
|
30
30
|
FilterConfig,
|
|
31
|
-
Paging,
|
|
32
31
|
} from './resources/audiences';
|
|
33
32
|
import {
|
|
34
33
|
AuditEvent,
|
|
@@ -81,32 +80,26 @@ import {
|
|
|
81
80
|
Messages,
|
|
82
81
|
} from './resources/messages';
|
|
83
82
|
import { Requests } from './resources/requests';
|
|
84
|
-
import {
|
|
85
|
-
ElementalChannelNode,
|
|
86
|
-
ElementalNode,
|
|
87
|
-
MessageContext,
|
|
88
|
-
Recipient,
|
|
89
|
-
Send,
|
|
90
|
-
SendMessageParams,
|
|
91
|
-
SendMessageResponse,
|
|
92
|
-
Utm,
|
|
93
|
-
} from './resources/send';
|
|
83
|
+
import { Send, SendMessageParams, SendMessageResponse } from './resources/send';
|
|
94
84
|
import {
|
|
95
85
|
TranslationRetrieveParams,
|
|
96
86
|
TranslationRetrieveResponse,
|
|
97
87
|
TranslationUpdateParams,
|
|
98
88
|
Translations,
|
|
99
89
|
} from './resources/translations';
|
|
100
|
-
import { Automations } from './resources/automations/automations';
|
|
90
|
+
import { AutomationInvokeResponse, Automations } from './resources/automations/automations';
|
|
101
91
|
import {
|
|
102
|
-
List,
|
|
103
92
|
ListListParams,
|
|
104
93
|
ListListResponse,
|
|
105
94
|
ListRestoreParams,
|
|
106
95
|
ListUpdateParams,
|
|
107
96
|
Lists,
|
|
97
|
+
PutSubscriptionsRecipient,
|
|
98
|
+
SubscriptionList,
|
|
108
99
|
} from './resources/lists/lists';
|
|
109
100
|
import {
|
|
101
|
+
BaseCheck,
|
|
102
|
+
Check,
|
|
110
103
|
NotificationGetContent,
|
|
111
104
|
NotificationListParams,
|
|
112
105
|
NotificationListResponse,
|
|
@@ -120,10 +113,14 @@ import {
|
|
|
120
113
|
ProfileRetrieveResponse,
|
|
121
114
|
ProfileUpdateParams,
|
|
122
115
|
Profiles,
|
|
116
|
+
SubscribeToListsRequestItem,
|
|
123
117
|
} from './resources/profiles/profiles';
|
|
124
118
|
import {
|
|
119
|
+
BaseTemplateTenantAssociation,
|
|
125
120
|
DefaultPreferences,
|
|
121
|
+
SubscriptionTopicNew,
|
|
126
122
|
Tenant,
|
|
123
|
+
TenantAssociation,
|
|
127
124
|
TenantListParams,
|
|
128
125
|
TenantListResponse,
|
|
129
126
|
TenantListUsersParams,
|
|
@@ -853,11 +850,6 @@ export declare namespace Courier {
|
|
|
853
850
|
|
|
854
851
|
export {
|
|
855
852
|
Send as Send,
|
|
856
|
-
type ElementalChannelNode as ElementalChannelNode,
|
|
857
|
-
type ElementalNode as ElementalNode,
|
|
858
|
-
type MessageContext as MessageContext,
|
|
859
|
-
type Recipient as Recipient,
|
|
860
|
-
type Utm as Utm,
|
|
861
853
|
type SendMessageResponse as SendMessageResponse,
|
|
862
854
|
type SendMessageParams as SendMessageParams,
|
|
863
855
|
};
|
|
@@ -867,7 +859,6 @@ export declare namespace Courier {
|
|
|
867
859
|
type Audience as Audience,
|
|
868
860
|
type Filter as Filter,
|
|
869
861
|
type FilterConfig as FilterConfig,
|
|
870
|
-
type Paging as Paging,
|
|
871
862
|
type AudienceUpdateResponse as AudienceUpdateResponse,
|
|
872
863
|
type AudienceListResponse as AudienceListResponse,
|
|
873
864
|
type AudienceListMembersResponse as AudienceListMembersResponse,
|
|
@@ -889,7 +880,7 @@ export declare namespace Courier {
|
|
|
889
880
|
type AuthIssueTokenParams as AuthIssueTokenParams,
|
|
890
881
|
};
|
|
891
882
|
|
|
892
|
-
export { Automations as Automations };
|
|
883
|
+
export { Automations as Automations, type AutomationInvokeResponse as AutomationInvokeResponse };
|
|
893
884
|
|
|
894
885
|
export {
|
|
895
886
|
Brands as Brands,
|
|
@@ -933,7 +924,8 @@ export declare namespace Courier {
|
|
|
933
924
|
|
|
934
925
|
export {
|
|
935
926
|
Lists as Lists,
|
|
936
|
-
type
|
|
927
|
+
type PutSubscriptionsRecipient as PutSubscriptionsRecipient,
|
|
928
|
+
type SubscriptionList as SubscriptionList,
|
|
937
929
|
type ListListResponse as ListListResponse,
|
|
938
930
|
type ListUpdateParams as ListUpdateParams,
|
|
939
931
|
type ListListParams as ListListParams,
|
|
@@ -955,6 +947,8 @@ export declare namespace Courier {
|
|
|
955
947
|
|
|
956
948
|
export {
|
|
957
949
|
Notifications as Notifications,
|
|
950
|
+
type BaseCheck as BaseCheck,
|
|
951
|
+
type Check as Check,
|
|
958
952
|
type NotificationGetContent as NotificationGetContent,
|
|
959
953
|
type NotificationListResponse as NotificationListResponse,
|
|
960
954
|
type NotificationListParams as NotificationListParams,
|
|
@@ -962,6 +956,7 @@ export declare namespace Courier {
|
|
|
962
956
|
|
|
963
957
|
export {
|
|
964
958
|
Profiles as Profiles,
|
|
959
|
+
type SubscribeToListsRequestItem as SubscribeToListsRequestItem,
|
|
965
960
|
type ProfileCreateResponse as ProfileCreateResponse,
|
|
966
961
|
type ProfileRetrieveResponse as ProfileRetrieveResponse,
|
|
967
962
|
type ProfileReplaceResponse as ProfileReplaceResponse,
|
|
@@ -972,8 +967,11 @@ export declare namespace Courier {
|
|
|
972
967
|
|
|
973
968
|
export {
|
|
974
969
|
Tenants as Tenants,
|
|
970
|
+
type BaseTemplateTenantAssociation as BaseTemplateTenantAssociation,
|
|
975
971
|
type DefaultPreferences as DefaultPreferences,
|
|
972
|
+
type SubscriptionTopicNew as SubscriptionTopicNew,
|
|
976
973
|
type Tenant as Tenant,
|
|
974
|
+
type TenantAssociation as TenantAssociation,
|
|
977
975
|
type TenantListResponse as TenantListResponse,
|
|
978
976
|
type TenantListUsersResponse as TenantListUsersResponse,
|
|
979
977
|
type TenantUpdateParams as TenantUpdateParams,
|
|
@@ -991,14 +989,31 @@ export declare namespace Courier {
|
|
|
991
989
|
export { Users as Users };
|
|
992
990
|
|
|
993
991
|
export type Alignment = API.Alignment;
|
|
992
|
+
export type ChannelClassification = API.ChannelClassification;
|
|
994
993
|
export type ChannelPreference = API.ChannelPreference;
|
|
994
|
+
export type ElementalActionNodeWithType = API.ElementalActionNodeWithType;
|
|
995
995
|
export type ElementalBaseNode = API.ElementalBaseNode;
|
|
996
|
+
export type ElementalChannelNode = API.ElementalChannelNode;
|
|
997
|
+
export type ElementalChannelNodeWithType = API.ElementalChannelNodeWithType;
|
|
998
|
+
export type ElementalContent = API.ElementalContent;
|
|
996
999
|
export type ElementalContentSugar = API.ElementalContentSugar;
|
|
997
|
-
export type
|
|
1000
|
+
export type ElementalDividerNodeWithType = API.ElementalDividerNodeWithType;
|
|
1001
|
+
export type ElementalImageNodeWithType = API.ElementalImageNodeWithType;
|
|
1002
|
+
export type ElementalMetaNodeWithType = API.ElementalMetaNodeWithType;
|
|
1003
|
+
export type ElementalNode = API.ElementalNode;
|
|
1004
|
+
export type ElementalQuoteNodeWithType = API.ElementalQuoteNodeWithType;
|
|
1005
|
+
export type ElementalTextNodeWithType = API.ElementalTextNodeWithType;
|
|
1006
|
+
export type MessageContext = API.MessageContext;
|
|
998
1007
|
export type MessageRouting = API.MessageRouting;
|
|
999
1008
|
export type MessageRoutingChannel = API.MessageRoutingChannel;
|
|
1009
|
+
export type NotificationPreferenceDetails = API.NotificationPreferenceDetails;
|
|
1010
|
+
export type Paging = API.Paging;
|
|
1000
1011
|
export type Preference = API.Preference;
|
|
1012
|
+
export type PreferenceStatus = API.PreferenceStatus;
|
|
1013
|
+
export type Recipient = API.Recipient;
|
|
1014
|
+
export type RecipientPreferences = API.RecipientPreferences;
|
|
1001
1015
|
export type Rule = API.Rule;
|
|
1002
1016
|
export type TextStyle = API.TextStyle;
|
|
1003
1017
|
export type UserRecipient = API.UserRecipient;
|
|
1018
|
+
export type Utm = API.Utm;
|
|
1004
1019
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as Shared from './shared';
|
|
4
5
|
import { APIPromise } from '../core/api-promise';
|
|
5
6
|
import { buildHeaders } from '../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../internal/request-options';
|
|
@@ -149,12 +150,6 @@ export interface FilterConfig {
|
|
|
149
150
|
value: string;
|
|
150
151
|
}
|
|
151
152
|
|
|
152
|
-
export interface Paging {
|
|
153
|
-
more: boolean;
|
|
154
|
-
|
|
155
|
-
cursor?: string | null;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
153
|
export interface AudienceUpdateResponse {
|
|
159
154
|
audience: Audience;
|
|
160
155
|
}
|
|
@@ -162,13 +157,13 @@ export interface AudienceUpdateResponse {
|
|
|
162
157
|
export interface AudienceListResponse {
|
|
163
158
|
items: Array<Audience>;
|
|
164
159
|
|
|
165
|
-
paging: Paging;
|
|
160
|
+
paging: Shared.Paging;
|
|
166
161
|
}
|
|
167
162
|
|
|
168
163
|
export interface AudienceListMembersResponse {
|
|
169
164
|
items: Array<AudienceListMembersResponse.Item>;
|
|
170
165
|
|
|
171
|
-
paging: Paging;
|
|
166
|
+
paging: Shared.Paging;
|
|
172
167
|
}
|
|
173
168
|
|
|
174
169
|
export namespace AudienceListMembersResponse {
|
|
@@ -221,7 +216,6 @@ export declare namespace Audiences {
|
|
|
221
216
|
type Audience as Audience,
|
|
222
217
|
type Filter as Filter,
|
|
223
218
|
type FilterConfig as FilterConfig,
|
|
224
|
-
type Paging as Paging,
|
|
225
219
|
type AudienceUpdateResponse as AudienceUpdateResponse,
|
|
226
220
|
type AudienceListResponse as AudienceListResponse,
|
|
227
221
|
type AudienceListMembersResponse as AudienceListMembersResponse,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
-
import * as
|
|
4
|
+
import * as Shared from './shared';
|
|
5
5
|
import { APIPromise } from '../core/api-promise';
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
@@ -48,7 +48,7 @@ export namespace AuditEvent {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export interface AuditEventListResponse {
|
|
51
|
-
paging:
|
|
51
|
+
paging: Shared.Paging;
|
|
52
52
|
|
|
53
53
|
results: Array<AuditEvent>;
|
|
54
54
|
}
|
package/src/resources/auth.ts
CHANGED
|
@@ -7,6 +7,15 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
7
7
|
export class Auth extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Returns a new access token.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response = await client.auth.issueToken({
|
|
14
|
+
* expires_in: '$YOUR_NUMBER days',
|
|
15
|
+
* scope:
|
|
16
|
+
* 'user_id:$YOUR_USER_ID write:user-tokens inbox:read:messages inbox:write:events read:preferences write:preferences read:brands',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
issueToken(body: AuthIssueTokenParams, options?: RequestOptions): APIPromise<AuthIssueTokenResponse> {
|
|
12
21
|
return this._client.post('/auth/issue-token', { body, ...options });
|
|
@@ -18,8 +27,38 @@ export interface AuthIssueTokenResponse {
|
|
|
18
27
|
}
|
|
19
28
|
|
|
20
29
|
export interface AuthIssueTokenParams {
|
|
30
|
+
/**
|
|
31
|
+
* Duration for token expiration. Accepts various time formats:
|
|
32
|
+
*
|
|
33
|
+
* - "2 hours" - 2 hours from now
|
|
34
|
+
* - "1d" - 1 day
|
|
35
|
+
* - "3 days" - 3 days
|
|
36
|
+
* - "10h" - 10 hours
|
|
37
|
+
* - "2.5 hrs" - 2.5 hours
|
|
38
|
+
* - "1m" - 1 minute
|
|
39
|
+
* - "5s" - 5 seconds
|
|
40
|
+
* - "1y" - 1 year
|
|
41
|
+
*/
|
|
21
42
|
expires_in: string;
|
|
22
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Available scopes:
|
|
46
|
+
*
|
|
47
|
+
* - `user_id:<user-id>` - Defines which user the token will be scoped to. Multiple
|
|
48
|
+
* can be listed if needed. Ex `user_id:pigeon user_id:bluebird`.
|
|
49
|
+
* - `read:messages` - Read messages.
|
|
50
|
+
* - `read:user-tokens` - Read user push tokens.
|
|
51
|
+
* - `write:user-tokens` - Write user push tokens.
|
|
52
|
+
* - `read:brands[:<brand_id>]` - Read brands, optionally restricted to a specific
|
|
53
|
+
* brand_id. Examples `read:brands`, `read:brands:my_brand`.
|
|
54
|
+
* - `write:brands[:<brand_id>]` - Write brands, optionally restricted to a
|
|
55
|
+
* specific brand_id. Examples `write:brands`, `write:brands:my_brand`.
|
|
56
|
+
* - `inbox:read:messages` - Read inbox messages.
|
|
57
|
+
* - `inbox:write:events` - Write inbox events, such as mark message as read.
|
|
58
|
+
* - `read:preferences` - Read user preferences.
|
|
59
|
+
* - `write:preferences` - Write user preferences. Example:
|
|
60
|
+
* `user_id:user123 write:user-tokens inbox:read:messages inbox:write:events read:preferences write:preferences read:brands`
|
|
61
|
+
*/
|
|
23
62
|
scope: string;
|
|
24
63
|
}
|
|
25
64
|
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as InvokeAPI from './invoke';
|
|
5
|
-
import {
|
|
6
|
-
AutomationInvokeResponse,
|
|
7
|
-
Invoke,
|
|
8
|
-
InvokeInvokeAdHocParams,
|
|
9
|
-
InvokeInvokeByTemplateParams,
|
|
10
|
-
} from './invoke';
|
|
5
|
+
import { Invoke, InvokeInvokeAdHocParams, InvokeInvokeByTemplateParams } from './invoke';
|
|
11
6
|
|
|
12
7
|
export class Automations extends APIResource {
|
|
13
8
|
invoke: InvokeAPI.Invoke = new InvokeAPI.Invoke(this._client);
|
|
14
9
|
}
|
|
15
10
|
|
|
11
|
+
export interface AutomationInvokeResponse {
|
|
12
|
+
runId: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
16
15
|
Automations.Invoke = Invoke;
|
|
17
16
|
|
|
18
17
|
export declare namespace Automations {
|
|
18
|
+
export { type AutomationInvokeResponse as AutomationInvokeResponse };
|
|
19
|
+
|
|
19
20
|
export {
|
|
20
21
|
Invoke as Invoke,
|
|
21
|
-
type AutomationInvokeResponse as AutomationInvokeResponse,
|
|
22
22
|
type InvokeInvokeAdHocParams as InvokeInvokeAdHocParams,
|
|
23
23
|
type InvokeInvokeByTemplateParams as InvokeInvokeByTemplateParams,
|
|
24
24
|
};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Automations } from './automations';
|
|
4
|
-
export {
|
|
5
|
-
Invoke,
|
|
6
|
-
type AutomationInvokeResponse,
|
|
7
|
-
type InvokeInvokeAdHocParams,
|
|
8
|
-
type InvokeInvokeByTemplateParams,
|
|
9
|
-
} from './invoke';
|
|
3
|
+
export { Automations, type AutomationInvokeResponse } from './automations';
|
|
4
|
+
export { Invoke, type InvokeInvokeAdHocParams, type InvokeInvokeByTemplateParams } from './invoke';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as AutomationsAPI from './automations';
|
|
4
5
|
import { APIPromise } from '../../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
7
|
import { path } from '../../internal/utils/path';
|
|
@@ -32,7 +33,10 @@ export class Invoke extends APIResource {
|
|
|
32
33
|
* });
|
|
33
34
|
* ```
|
|
34
35
|
*/
|
|
35
|
-
invokeAdHoc(
|
|
36
|
+
invokeAdHoc(
|
|
37
|
+
body: InvokeInvokeAdHocParams,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<AutomationsAPI.AutomationInvokeResponse> {
|
|
36
40
|
return this._client.post('/automations/invoke', { body, ...options });
|
|
37
41
|
}
|
|
38
42
|
|
|
@@ -52,15 +56,11 @@ export class Invoke extends APIResource {
|
|
|
52
56
|
templateID: string,
|
|
53
57
|
body: InvokeInvokeByTemplateParams,
|
|
54
58
|
options?: RequestOptions,
|
|
55
|
-
): APIPromise<AutomationInvokeResponse> {
|
|
59
|
+
): APIPromise<AutomationsAPI.AutomationInvokeResponse> {
|
|
56
60
|
return this._client.post(path`/automations/${templateID}/invoke`, { body, ...options });
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
export interface AutomationInvokeResponse {
|
|
61
|
-
runId: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
64
|
export interface InvokeInvokeAdHocParams {
|
|
65
65
|
automation: InvokeInvokeAdHocParams.Automation;
|
|
66
66
|
|
|
@@ -181,7 +181,6 @@ export interface InvokeInvokeByTemplateParams {
|
|
|
181
181
|
|
|
182
182
|
export declare namespace Invoke {
|
|
183
183
|
export {
|
|
184
|
-
type AutomationInvokeResponse as AutomationInvokeResponse,
|
|
185
184
|
type InvokeInvokeAdHocParams as InvokeInvokeAdHocParams,
|
|
186
185
|
type InvokeInvokeByTemplateParams as InvokeInvokeByTemplateParams,
|
|
187
186
|
};
|
package/src/resources/brands.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import * as BrandsAPI from './brands';
|
|
5
|
-
import * as
|
|
5
|
+
import * as Shared from './shared';
|
|
6
6
|
import { APIPromise } from '../core/api-promise';
|
|
7
7
|
import { buildHeaders } from '../internal/headers';
|
|
8
8
|
import { RequestOptions } from '../internal/request-options';
|
|
@@ -186,7 +186,7 @@ export interface WidgetBackground {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
export interface BrandListResponse {
|
|
189
|
-
paging:
|
|
189
|
+
paging: Shared.Paging;
|
|
190
190
|
|
|
191
191
|
results: Array<Brand>;
|
|
192
192
|
}
|
package/src/resources/bulk.ts
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import * as BulkAPI from './bulk';
|
|
5
|
-
import * as AudiencesAPI from './audiences';
|
|
6
5
|
import * as Shared from './shared';
|
|
7
|
-
import * as SubscriptionsAPI from './lists/subscriptions';
|
|
8
|
-
import * as TemplatesAPI from './tenants/templates';
|
|
9
6
|
import { APIPromise } from '../core/api-promise';
|
|
10
7
|
import { buildHeaders } from '../internal/headers';
|
|
11
8
|
import { RequestOptions } from '../internal/request-options';
|
|
@@ -82,7 +79,7 @@ export namespace InboundBulkMessage {
|
|
|
82
79
|
/**
|
|
83
80
|
* Syntactic sugar to provide a fast shorthand for Courier Elemental Blocks.
|
|
84
81
|
*/
|
|
85
|
-
content: Shared.ElementalContentSugar |
|
|
82
|
+
content: Shared.ElementalContentSugar | Shared.ElementalContent;
|
|
86
83
|
|
|
87
84
|
brand?: string | null;
|
|
88
85
|
|
|
@@ -99,7 +96,7 @@ export namespace InboundBulkMessage {
|
|
|
99
96
|
export interface InboundBulkMessageUser {
|
|
100
97
|
data?: unknown;
|
|
101
98
|
|
|
102
|
-
preferences?:
|
|
99
|
+
preferences?: Shared.RecipientPreferences | null;
|
|
103
100
|
|
|
104
101
|
profile?: unknown;
|
|
105
102
|
|
|
@@ -115,7 +112,7 @@ export interface BulkCreateJobResponse {
|
|
|
115
112
|
export interface BulkListUsersResponse {
|
|
116
113
|
items: Array<BulkListUsersResponse.Item>;
|
|
117
114
|
|
|
118
|
-
paging:
|
|
115
|
+
paging: Shared.Paging;
|
|
119
116
|
}
|
|
120
117
|
|
|
121
118
|
export namespace BulkListUsersResponse {
|
package/src/resources/index.ts
CHANGED
|
@@ -6,7 +6,6 @@ export {
|
|
|
6
6
|
type Audience,
|
|
7
7
|
type Filter,
|
|
8
8
|
type FilterConfig,
|
|
9
|
-
type Paging,
|
|
10
9
|
type AudienceUpdateResponse,
|
|
11
10
|
type AudienceListResponse,
|
|
12
11
|
type AudienceListMembersResponse,
|
|
@@ -21,7 +20,7 @@ export {
|
|
|
21
20
|
type AuditEventListParams,
|
|
22
21
|
} from './audit-events';
|
|
23
22
|
export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from './auth';
|
|
24
|
-
export { Automations } from './automations/automations';
|
|
23
|
+
export { Automations, type AutomationInvokeResponse } from './automations/automations';
|
|
25
24
|
export {
|
|
26
25
|
Brands,
|
|
27
26
|
type Brand,
|
|
@@ -57,7 +56,8 @@ export {
|
|
|
57
56
|
export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from './inbound';
|
|
58
57
|
export {
|
|
59
58
|
Lists,
|
|
60
|
-
type
|
|
59
|
+
type PutSubscriptionsRecipient,
|
|
60
|
+
type SubscriptionList,
|
|
61
61
|
type ListListResponse,
|
|
62
62
|
type ListUpdateParams,
|
|
63
63
|
type ListListParams,
|
|
@@ -75,12 +75,15 @@ export {
|
|
|
75
75
|
} from './messages';
|
|
76
76
|
export {
|
|
77
77
|
Notifications,
|
|
78
|
+
type BaseCheck,
|
|
79
|
+
type Check,
|
|
78
80
|
type NotificationGetContent,
|
|
79
81
|
type NotificationListResponse,
|
|
80
82
|
type NotificationListParams,
|
|
81
83
|
} from './notifications/notifications';
|
|
82
84
|
export {
|
|
83
85
|
Profiles,
|
|
86
|
+
type SubscribeToListsRequestItem,
|
|
84
87
|
type ProfileCreateResponse,
|
|
85
88
|
type ProfileRetrieveResponse,
|
|
86
89
|
type ProfileReplaceResponse,
|
|
@@ -89,20 +92,14 @@ export {
|
|
|
89
92
|
type ProfileReplaceParams,
|
|
90
93
|
} from './profiles/profiles';
|
|
91
94
|
export { Requests } from './requests';
|
|
92
|
-
export {
|
|
93
|
-
Send,
|
|
94
|
-
type ElementalChannelNode,
|
|
95
|
-
type ElementalNode,
|
|
96
|
-
type MessageContext,
|
|
97
|
-
type Recipient,
|
|
98
|
-
type Utm,
|
|
99
|
-
type SendMessageResponse,
|
|
100
|
-
type SendMessageParams,
|
|
101
|
-
} from './send';
|
|
95
|
+
export { Send, type SendMessageResponse, type SendMessageParams } from './send';
|
|
102
96
|
export {
|
|
103
97
|
Tenants,
|
|
98
|
+
type BaseTemplateTenantAssociation,
|
|
104
99
|
type DefaultPreferences,
|
|
100
|
+
type SubscriptionTopicNew,
|
|
105
101
|
type Tenant,
|
|
102
|
+
type TenantAssociation,
|
|
106
103
|
type TenantListResponse,
|
|
107
104
|
type TenantListUsersResponse,
|
|
108
105
|
type TenantUpdateParams,
|