@trycourier/courier 7.21.0 → 7.22.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 +16 -0
- package/client.d.mts +57 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +57 -0
- package/client.d.ts.map +1 -1
- package/client.js +57 -0
- package/client.js.map +1 -1
- package/client.mjs +57 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audiences.d.mts +13 -5
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +13 -5
- package/resources/audiences.d.ts.map +1 -1
- package/resources/audiences.js +13 -5
- package/resources/audiences.js.map +1 -1
- package/resources/audiences.mjs +13 -5
- package/resources/audiences.mjs.map +1 -1
- package/resources/audit-events.d.mts +7 -2
- package/resources/audit-events.d.mts.map +1 -1
- package/resources/audit-events.d.ts +7 -2
- package/resources/audit-events.d.ts.map +1 -1
- package/resources/audit-events.js +7 -2
- package/resources/audit-events.js.map +1 -1
- package/resources/audit-events.mjs +7 -2
- package/resources/audit-events.mjs.map +1 -1
- package/resources/auth.d.mts +5 -1
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts +5 -1
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js +5 -1
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs +5 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/automations/automations.d.mts +5 -1
- package/resources/automations/automations.d.mts.map +1 -1
- package/resources/automations/automations.d.ts +5 -1
- package/resources/automations/automations.d.ts.map +1 -1
- package/resources/automations/automations.js +5 -1
- package/resources/automations/automations.js.map +1 -1
- package/resources/automations/automations.mjs +5 -1
- package/resources/automations/automations.mjs.map +1 -1
- package/resources/automations/invoke.d.mts +74 -7
- package/resources/automations/invoke.d.mts.map +1 -1
- package/resources/automations/invoke.d.ts +74 -7
- package/resources/automations/invoke.d.ts.map +1 -1
- package/resources/automations/invoke.js +38 -9
- package/resources/automations/invoke.js.map +1 -1
- package/resources/automations/invoke.mjs +38 -9
- package/resources/automations/invoke.mjs.map +1 -1
- package/resources/brands.d.mts +42 -7
- package/resources/brands.d.mts.map +1 -1
- package/resources/brands.d.ts +42 -7
- package/resources/brands.d.ts.map +1 -1
- package/resources/brands.js +28 -8
- package/resources/brands.js.map +1 -1
- package/resources/brands.mjs +28 -8
- package/resources/brands.mjs.map +1 -1
- package/resources/digests/schedules.d.mts +5 -3
- package/resources/digests/schedules.d.mts.map +1 -1
- package/resources/digests/schedules.d.ts +5 -3
- package/resources/digests/schedules.d.ts.map +1 -1
- package/resources/digests/schedules.js +5 -3
- package/resources/digests/schedules.js.map +1 -1
- package/resources/digests/schedules.mjs +5 -3
- package/resources/digests/schedules.mjs.map +1 -1
- package/resources/inbound.d.mts +5 -1
- package/resources/inbound.d.mts.map +1 -1
- package/resources/inbound.d.ts +5 -1
- package/resources/inbound.d.ts.map +1 -1
- package/resources/inbound.js +5 -1
- package/resources/inbound.js.map +1 -1
- package/resources/inbound.mjs +5 -1
- package/resources/inbound.mjs.map +1 -1
- package/resources/inbox/inbox.d.mts +10 -0
- package/resources/inbox/inbox.d.mts.map +1 -0
- package/resources/inbox/inbox.d.ts +10 -0
- package/resources/inbox/inbox.d.ts.map +1 -0
- package/resources/inbox/inbox.js +17 -0
- package/resources/inbox/inbox.js.map +1 -0
- package/resources/inbox/inbox.mjs +12 -0
- package/resources/inbox/inbox.mjs.map +1 -0
- package/resources/inbox/index.d.mts +3 -0
- package/resources/inbox/index.d.mts.map +1 -0
- package/resources/inbox/index.d.ts +3 -0
- package/resources/inbox/index.d.ts.map +1 -0
- package/resources/inbox/index.js +9 -0
- package/resources/inbox/index.js.map +1 -0
- package/resources/inbox/index.mjs +4 -0
- package/resources/inbox/index.mjs.map +1 -0
- package/resources/inbox/messages.d.mts +23 -0
- package/resources/inbox/messages.d.mts.map +1 -0
- package/resources/inbox/messages.d.ts +23 -0
- package/resources/inbox/messages.d.ts.map +1 -0
- package/resources/inbox/messages.js +34 -0
- package/resources/inbox/messages.js.map +1 -0
- package/resources/inbox/messages.mjs +30 -0
- package/resources/inbox/messages.mjs.map +1 -0
- package/resources/inbox.d.mts +2 -0
- package/resources/inbox.d.mts.map +1 -0
- package/resources/inbox.d.ts +2 -0
- package/resources/inbox.d.ts.map +1 -0
- package/resources/inbox.js +6 -0
- package/resources/inbox.js.map +1 -0
- package/resources/inbox.mjs +3 -0
- package/resources/inbox.mjs.map +1 -0
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journeys/journeys.d.mts +130 -39
- package/resources/journeys/journeys.d.mts.map +1 -1
- package/resources/journeys/journeys.d.ts +130 -39
- package/resources/journeys/journeys.d.ts.map +1 -1
- package/resources/journeys/journeys.js +79 -34
- package/resources/journeys/journeys.js.map +1 -1
- package/resources/journeys/journeys.mjs +79 -34
- package/resources/journeys/journeys.mjs.map +1 -1
- package/resources/journeys/templates.d.mts +60 -17
- package/resources/journeys/templates.d.mts.map +1 -1
- package/resources/journeys/templates.d.ts +60 -17
- package/resources/journeys/templates.d.ts.map +1 -1
- package/resources/journeys/templates.js +41 -20
- package/resources/journeys/templates.js.map +1 -1
- package/resources/journeys/templates.mjs +41 -20
- package/resources/journeys/templates.mjs.map +1 -1
- package/resources/lists/lists.d.mts +40 -5
- package/resources/lists/lists.d.mts.map +1 -1
- package/resources/lists/lists.d.ts +40 -5
- package/resources/lists/lists.d.ts.map +1 -1
- package/resources/lists/lists.js +40 -5
- package/resources/lists/lists.js.map +1 -1
- package/resources/lists/lists.mjs +40 -5
- package/resources/lists/lists.mjs.map +1 -1
- package/resources/lists/subscriptions.d.mts +65 -5
- package/resources/lists/subscriptions.d.mts.map +1 -1
- package/resources/lists/subscriptions.d.ts +65 -5
- package/resources/lists/subscriptions.d.ts.map +1 -1
- package/resources/lists/subscriptions.js +57 -6
- package/resources/lists/subscriptions.js.map +1 -1
- package/resources/lists/subscriptions.mjs +57 -6
- package/resources/lists/subscriptions.mjs.map +1 -1
- package/resources/messages.d.mts +15 -14
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +15 -14
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +15 -14
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +15 -14
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications/checks.d.mts +9 -3
- package/resources/notifications/checks.d.mts.map +1 -1
- package/resources/notifications/checks.d.ts +9 -3
- package/resources/notifications/checks.d.ts.map +1 -1
- package/resources/notifications/checks.js +9 -3
- package/resources/notifications/checks.js.map +1 -1
- package/resources/notifications/checks.mjs +9 -3
- package/resources/notifications/checks.mjs.map +1 -1
- package/resources/notifications/notifications.d.mts +62 -29
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +62 -29
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js +49 -26
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs +49 -26
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/profiles/lists.d.mts +49 -5
- package/resources/profiles/lists.d.mts.map +1 -1
- package/resources/profiles/lists.d.ts +49 -5
- package/resources/profiles/lists.d.ts.map +1 -1
- package/resources/profiles/lists.js +45 -6
- package/resources/profiles/lists.js.map +1 -1
- package/resources/profiles/lists.mjs +45 -6
- package/resources/profiles/lists.mjs.map +1 -1
- package/resources/profiles/profiles.d.mts +70 -11
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +70 -11
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js +65 -12
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs +65 -12
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/providers/catalog.d.mts +10 -4
- package/resources/providers/catalog.d.mts.map +1 -1
- package/resources/providers/catalog.d.ts +10 -4
- package/resources/providers/catalog.d.ts.map +1 -1
- package/resources/providers/catalog.js +10 -4
- package/resources/providers/catalog.js.map +1 -1
- package/resources/providers/catalog.mjs +10 -4
- package/resources/providers/catalog.mjs.map +1 -1
- package/resources/providers/providers.d.mts +68 -22
- package/resources/providers/providers.d.mts.map +1 -1
- package/resources/providers/providers.d.ts +68 -22
- package/resources/providers/providers.d.ts.map +1 -1
- package/resources/providers/providers.js +57 -14
- package/resources/providers/providers.js.map +1 -1
- package/resources/providers/providers.mjs +57 -14
- package/resources/providers/providers.mjs.map +1 -1
- package/resources/requests.d.mts +5 -1
- package/resources/requests.d.mts.map +1 -1
- package/resources/requests.d.ts +5 -1
- package/resources/requests.d.ts.map +1 -1
- package/resources/requests.js +5 -1
- package/resources/requests.js.map +1 -1
- package/resources/requests.mjs +5 -1
- package/resources/requests.mjs.map +1 -1
- package/resources/routing-strategies.d.mts +30 -11
- package/resources/routing-strategies.d.mts.map +1 -1
- package/resources/routing-strategies.d.ts +30 -11
- package/resources/routing-strategies.d.ts.map +1 -1
- package/resources/routing-strategies.js +22 -6
- package/resources/routing-strategies.js.map +1 -1
- package/resources/routing-strategies.mjs +22 -6
- package/resources/routing-strategies.mjs.map +1 -1
- package/resources/send.d.mts +24 -4
- package/resources/send.d.mts.map +1 -1
- package/resources/send.d.ts +24 -4
- package/resources/send.d.ts.map +1 -1
- package/resources/send.js +21 -3
- package/resources/send.js.map +1 -1
- package/resources/send.mjs +21 -3
- package/resources/send.mjs.map +1 -1
- package/resources/tenants/preferences/items.d.mts +7 -2
- package/resources/tenants/preferences/items.d.mts.map +1 -1
- package/resources/tenants/preferences/items.d.ts +7 -2
- package/resources/tenants/preferences/items.d.ts.map +1 -1
- package/resources/tenants/preferences/items.js +7 -2
- package/resources/tenants/preferences/items.js.map +1 -1
- package/resources/tenants/preferences/items.mjs +7 -2
- package/resources/tenants/preferences/items.mjs.map +1 -1
- package/resources/tenants/templates/templates.d.mts +13 -19
- package/resources/tenants/templates/templates.d.mts.map +1 -1
- package/resources/tenants/templates/templates.d.ts +13 -19
- package/resources/tenants/templates/templates.d.ts.map +1 -1
- package/resources/tenants/templates/templates.js +13 -19
- package/resources/tenants/templates/templates.js.map +1 -1
- package/resources/tenants/templates/templates.mjs +13 -19
- package/resources/tenants/templates/templates.mjs.map +1 -1
- package/resources/tenants/templates/versions.d.mts +5 -7
- package/resources/tenants/templates/versions.d.mts.map +1 -1
- package/resources/tenants/templates/versions.d.ts +5 -7
- package/resources/tenants/templates/versions.d.ts.map +1 -1
- package/resources/tenants/templates/versions.js +5 -7
- package/resources/tenants/templates/versions.js.map +1 -1
- package/resources/tenants/templates/versions.mjs +5 -7
- package/resources/tenants/templates/versions.mjs.map +1 -1
- package/resources/tenants/tenants.d.mts +13 -5
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +13 -5
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js +13 -5
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs +13 -5
- package/resources/tenants/tenants.mjs.map +1 -1
- package/resources/translations.d.mts +7 -2
- package/resources/translations.d.mts.map +1 -1
- package/resources/translations.d.ts +7 -2
- package/resources/translations.d.ts.map +1 -1
- package/resources/translations.js +7 -2
- package/resources/translations.js.map +1 -1
- package/resources/translations.mjs +7 -2
- package/resources/translations.mjs.map +1 -1
- package/resources/users/preferences.d.mts +64 -42
- package/resources/users/preferences.d.mts.map +1 -1
- package/resources/users/preferences.d.ts +64 -42
- package/resources/users/preferences.d.ts.map +1 -1
- package/resources/users/preferences.js +30 -42
- package/resources/users/preferences.js.map +1 -1
- package/resources/users/preferences.mjs +30 -42
- package/resources/users/preferences.mjs.map +1 -1
- package/resources/users/tenants.d.mts +13 -10
- package/resources/users/tenants.d.mts.map +1 -1
- package/resources/users/tenants.d.ts +13 -10
- package/resources/users/tenants.d.ts.map +1 -1
- package/resources/users/tenants.js +13 -10
- package/resources/users/tenants.js.map +1 -1
- package/resources/users/tenants.mjs +13 -10
- package/resources/users/tenants.mjs.map +1 -1
- package/resources/users/tokens.d.mts +15 -6
- package/resources/users/tokens.d.mts.map +1 -1
- package/resources/users/tokens.d.ts +15 -6
- package/resources/users/tokens.d.ts.map +1 -1
- package/resources/users/tokens.js +15 -6
- package/resources/users/tokens.js.map +1 -1
- package/resources/users/tokens.mjs +15 -6
- package/resources/users/tokens.mjs.map +1 -1
- package/resources/workspace-preferences/topics.d.mts +40 -18
- package/resources/workspace-preferences/topics.d.mts.map +1 -1
- package/resources/workspace-preferences/topics.d.ts +40 -18
- package/resources/workspace-preferences/topics.d.ts.map +1 -1
- package/resources/workspace-preferences/topics.js +26 -11
- package/resources/workspace-preferences/topics.js.map +1 -1
- package/resources/workspace-preferences/topics.mjs +26 -11
- package/resources/workspace-preferences/topics.mjs.map +1 -1
- package/resources/workspace-preferences/workspace-preferences.d.mts +56 -19
- package/resources/workspace-preferences/workspace-preferences.d.mts.map +1 -1
- package/resources/workspace-preferences/workspace-preferences.d.ts +56 -19
- package/resources/workspace-preferences/workspace-preferences.d.ts.map +1 -1
- package/resources/workspace-preferences/workspace-preferences.js +41 -13
- package/resources/workspace-preferences/workspace-preferences.js.map +1 -1
- package/resources/workspace-preferences/workspace-preferences.mjs +41 -13
- package/resources/workspace-preferences/workspace-preferences.mjs.map +1 -1
- package/src/client.ts +59 -0
- package/src/resources/audiences.ts +13 -5
- package/src/resources/audit-events.ts +7 -2
- package/src/resources/auth.ts +5 -1
- package/src/resources/automations/automations.ts +5 -1
- package/src/resources/automations/invoke.ts +115 -9
- package/src/resources/brands.ts +62 -8
- package/src/resources/digests/schedules.ts +5 -3
- package/src/resources/inbound.ts +5 -1
- package/src/resources/inbox/inbox.ts +15 -0
- package/src/resources/inbox/index.ts +4 -0
- package/src/resources/inbox/messages.ts +40 -0
- package/src/resources/inbox.ts +3 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/journeys/journeys.ts +212 -43
- package/src/resources/journeys/templates.ts +98 -20
- package/src/resources/lists/lists.ts +40 -5
- package/src/resources/lists/subscriptions.ts +82 -6
- package/src/resources/messages.ts +15 -14
- package/src/resources/notifications/checks.ts +9 -3
- package/src/resources/notifications/notifications.ts +102 -31
- package/src/resources/profiles/lists.ts +70 -6
- package/src/resources/profiles/profiles.ts +90 -12
- package/src/resources/providers/catalog.ts +10 -4
- package/src/resources/providers/providers.ts +86 -21
- package/src/resources/requests.ts +5 -1
- package/src/resources/routing-strategies.ts +50 -12
- package/src/resources/send.ts +45 -5
- package/src/resources/tenants/preferences/items.ts +7 -2
- package/src/resources/tenants/templates/templates.ts +13 -19
- package/src/resources/tenants/templates/versions.ts +5 -7
- package/src/resources/tenants/tenants.ts +13 -5
- package/src/resources/translations.ts +7 -2
- package/src/resources/users/preferences.ts +86 -44
- package/src/resources/users/tenants.ts +13 -10
- package/src/resources/users/tokens.ts +15 -6
- package/src/resources/workspace-preferences/topics.ts +60 -19
- package/src/resources/workspace-preferences/workspace-preferences.ts +96 -21
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/brands.d.mts
CHANGED
|
@@ -3,10 +3,13 @@ import * as BrandsAPI from "./brands.mjs";
|
|
|
3
3
|
import * as Shared from "./shared.mjs";
|
|
4
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Manage the logos, colors, and layout that give the templates you send a consistent look.
|
|
8
|
+
*/
|
|
6
9
|
export declare class Brands extends APIResource {
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
11
|
+
* Creates a brand from a name and settings, including primary and secondary
|
|
12
|
+
* colors. Brands supply the logo, colors, and styling that templates render with.
|
|
10
13
|
*
|
|
11
14
|
* @example
|
|
12
15
|
* ```ts
|
|
@@ -18,9 +21,10 @@ export declare class Brands extends APIResource {
|
|
|
18
21
|
* });
|
|
19
22
|
* ```
|
|
20
23
|
*/
|
|
21
|
-
create(
|
|
24
|
+
create(params: BrandCreateParams, options?: RequestOptions): APIPromise<Brand>;
|
|
22
25
|
/**
|
|
23
|
-
*
|
|
26
|
+
* Returns one brand by id, including its colors, logo and styling settings,
|
|
27
|
+
* Handlebars snippets, and published version.
|
|
24
28
|
*
|
|
25
29
|
* @example
|
|
26
30
|
* ```ts
|
|
@@ -29,7 +33,8 @@ export declare class Brands extends APIResource {
|
|
|
29
33
|
*/
|
|
30
34
|
retrieve(brandID: string, options?: RequestOptions): APIPromise<Brand>;
|
|
31
35
|
/**
|
|
32
|
-
*
|
|
36
|
+
* Replaces a brand with the values you supply, so send the complete settings and
|
|
37
|
+
* snippets rather than only the fields you want changed.
|
|
33
38
|
*
|
|
34
39
|
* @example
|
|
35
40
|
* ```ts
|
|
@@ -40,7 +45,8 @@ export declare class Brands extends APIResource {
|
|
|
40
45
|
*/
|
|
41
46
|
update(brandID: string, body: BrandUpdateParams, options?: RequestOptions): APIPromise<Brand>;
|
|
42
47
|
/**
|
|
43
|
-
*
|
|
48
|
+
* Lists the workspace's brands. Every entry carries its name, styling settings,
|
|
49
|
+
* snippets, and published version.
|
|
44
50
|
*
|
|
45
51
|
* @example
|
|
46
52
|
* ```ts
|
|
@@ -49,7 +55,8 @@ export declare class Brands extends APIResource {
|
|
|
49
55
|
*/
|
|
50
56
|
list(query?: BrandListParams | null | undefined, options?: RequestOptions): APIPromise<BrandListResponse>;
|
|
51
57
|
/**
|
|
52
|
-
*
|
|
58
|
+
* Deletes a brand by id. Reassign any template or tenant that references it before
|
|
59
|
+
* deleting to keep their styling intact.
|
|
53
60
|
*
|
|
54
61
|
* @example
|
|
55
62
|
* ```ts
|
|
@@ -146,10 +153,38 @@ export interface BrandListResponse {
|
|
|
146
153
|
results: Array<Brand>;
|
|
147
154
|
}
|
|
148
155
|
export interface BrandCreateParams {
|
|
156
|
+
/**
|
|
157
|
+
* Body param
|
|
158
|
+
*/
|
|
149
159
|
name: string;
|
|
160
|
+
/**
|
|
161
|
+
* Body param
|
|
162
|
+
*/
|
|
150
163
|
settings: BrandSettings;
|
|
164
|
+
/**
|
|
165
|
+
* Body param
|
|
166
|
+
*/
|
|
151
167
|
id?: string | null;
|
|
168
|
+
/**
|
|
169
|
+
* Body param
|
|
170
|
+
*/
|
|
152
171
|
snippets?: BrandSnippets | null;
|
|
172
|
+
/**
|
|
173
|
+
* Header param: A unique key that makes this request idempotent. If Courier
|
|
174
|
+
* receives another request with the same `Idempotency-Key`, it returns the stored
|
|
175
|
+
* response from the first request without performing the operation again
|
|
176
|
+
* (including the original status code and any error). Use it to safely retry
|
|
177
|
+
* `POST` requests after network failures without risking duplicate sends. The key
|
|
178
|
+
* is scoped to this endpoint.
|
|
179
|
+
*/
|
|
180
|
+
'Idempotency-Key'?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Header param: How long the idempotency key remains valid, as a Unix epoch
|
|
183
|
+
* timestamp in seconds or an ISO 8601 date string. Only applies when
|
|
184
|
+
* `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
|
|
185
|
+
* maximum is 1 year.
|
|
186
|
+
*/
|
|
187
|
+
'x-idempotency-expiration'?: string;
|
|
153
188
|
}
|
|
154
189
|
export interface BrandUpdateParams {
|
|
155
190
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.d.mts","sourceRoot":"","sources":["../src/resources/brands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH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I,SAAS,EAC3B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
package/resources/brands.d.ts
CHANGED
|
@@ -3,10 +3,13 @@ import * as BrandsAPI from "./brands.js";
|
|
|
3
3
|
import * as Shared from "./shared.js";
|
|
4
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Manage the logos, colors, and layout that give the templates you send a consistent look.
|
|
8
|
+
*/
|
|
6
9
|
export declare class Brands extends APIResource {
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
11
|
+
* Creates a brand from a name and settings, including primary and secondary
|
|
12
|
+
* colors. Brands supply the logo, colors, and styling that templates render with.
|
|
10
13
|
*
|
|
11
14
|
* @example
|
|
12
15
|
* ```ts
|
|
@@ -18,9 +21,10 @@ export declare class Brands extends APIResource {
|
|
|
18
21
|
* });
|
|
19
22
|
* ```
|
|
20
23
|
*/
|
|
21
|
-
create(
|
|
24
|
+
create(params: BrandCreateParams, options?: RequestOptions): APIPromise<Brand>;
|
|
22
25
|
/**
|
|
23
|
-
*
|
|
26
|
+
* Returns one brand by id, including its colors, logo and styling settings,
|
|
27
|
+
* Handlebars snippets, and published version.
|
|
24
28
|
*
|
|
25
29
|
* @example
|
|
26
30
|
* ```ts
|
|
@@ -29,7 +33,8 @@ export declare class Brands extends APIResource {
|
|
|
29
33
|
*/
|
|
30
34
|
retrieve(brandID: string, options?: RequestOptions): APIPromise<Brand>;
|
|
31
35
|
/**
|
|
32
|
-
*
|
|
36
|
+
* Replaces a brand with the values you supply, so send the complete settings and
|
|
37
|
+
* snippets rather than only the fields you want changed.
|
|
33
38
|
*
|
|
34
39
|
* @example
|
|
35
40
|
* ```ts
|
|
@@ -40,7 +45,8 @@ export declare class Brands extends APIResource {
|
|
|
40
45
|
*/
|
|
41
46
|
update(brandID: string, body: BrandUpdateParams, options?: RequestOptions): APIPromise<Brand>;
|
|
42
47
|
/**
|
|
43
|
-
*
|
|
48
|
+
* Lists the workspace's brands. Every entry carries its name, styling settings,
|
|
49
|
+
* snippets, and published version.
|
|
44
50
|
*
|
|
45
51
|
* @example
|
|
46
52
|
* ```ts
|
|
@@ -49,7 +55,8 @@ export declare class Brands extends APIResource {
|
|
|
49
55
|
*/
|
|
50
56
|
list(query?: BrandListParams | null | undefined, options?: RequestOptions): APIPromise<BrandListResponse>;
|
|
51
57
|
/**
|
|
52
|
-
*
|
|
58
|
+
* Deletes a brand by id. Reassign any template or tenant that references it before
|
|
59
|
+
* deleting to keep their styling intact.
|
|
53
60
|
*
|
|
54
61
|
* @example
|
|
55
62
|
* ```ts
|
|
@@ -146,10 +153,38 @@ export interface BrandListResponse {
|
|
|
146
153
|
results: Array<Brand>;
|
|
147
154
|
}
|
|
148
155
|
export interface BrandCreateParams {
|
|
156
|
+
/**
|
|
157
|
+
* Body param
|
|
158
|
+
*/
|
|
149
159
|
name: string;
|
|
160
|
+
/**
|
|
161
|
+
* Body param
|
|
162
|
+
*/
|
|
150
163
|
settings: BrandSettings;
|
|
164
|
+
/**
|
|
165
|
+
* Body param
|
|
166
|
+
*/
|
|
151
167
|
id?: string | null;
|
|
168
|
+
/**
|
|
169
|
+
* Body param
|
|
170
|
+
*/
|
|
152
171
|
snippets?: BrandSnippets | null;
|
|
172
|
+
/**
|
|
173
|
+
* Header param: A unique key that makes this request idempotent. If Courier
|
|
174
|
+
* receives another request with the same `Idempotency-Key`, it returns the stored
|
|
175
|
+
* response from the first request without performing the operation again
|
|
176
|
+
* (including the original status code and any error). Use it to safely retry
|
|
177
|
+
* `POST` requests after network failures without risking duplicate sends. The key
|
|
178
|
+
* is scoped to this endpoint.
|
|
179
|
+
*/
|
|
180
|
+
'Idempotency-Key'?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Header param: How long the idempotency key remains valid, as a Unix epoch
|
|
183
|
+
* timestamp in seconds or an ISO 8601 date string. Only applies when
|
|
184
|
+
* `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
|
|
185
|
+
* maximum is 1 year.
|
|
186
|
+
*/
|
|
187
|
+
'x-idempotency-expiration'?: string;
|
|
153
188
|
}
|
|
154
189
|
export interface BrandUpdateParams {
|
|
155
190
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../src/resources/brands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../src/resources/brands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAqB9E;;;;;;;;OAQG;IACH,QAAQ,CAAC,OAAO,E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hC;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAEhC,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
package/resources/brands.js
CHANGED
|
@@ -5,10 +5,13 @@ exports.Brands = void 0;
|
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const headers_1 = require("../internal/headers.js");
|
|
7
7
|
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Manage the logos, colors, and layout that give the templates you send a consistent look.
|
|
10
|
+
*/
|
|
8
11
|
class Brands extends resource_1.APIResource {
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
13
|
+
* Creates a brand from a name and settings, including primary and secondary
|
|
14
|
+
* colors. Brands supply the logo, colors, and styling that templates render with.
|
|
12
15
|
*
|
|
13
16
|
* @example
|
|
14
17
|
* ```ts
|
|
@@ -20,11 +23,25 @@ class Brands extends resource_1.APIResource {
|
|
|
20
23
|
* });
|
|
21
24
|
* ```
|
|
22
25
|
*/
|
|
23
|
-
create(
|
|
24
|
-
|
|
26
|
+
create(params, options) {
|
|
27
|
+
const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params;
|
|
28
|
+
return this._client.post('/brands', {
|
|
29
|
+
body,
|
|
30
|
+
...options,
|
|
31
|
+
headers: (0, headers_1.buildHeaders)([
|
|
32
|
+
{
|
|
33
|
+
...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
|
|
34
|
+
...(xIdempotencyExpiration != null ?
|
|
35
|
+
{ 'x-idempotency-expiration': xIdempotencyExpiration }
|
|
36
|
+
: undefined),
|
|
37
|
+
},
|
|
38
|
+
options?.headers,
|
|
39
|
+
]),
|
|
40
|
+
});
|
|
25
41
|
}
|
|
26
42
|
/**
|
|
27
|
-
*
|
|
43
|
+
* Returns one brand by id, including its colors, logo and styling settings,
|
|
44
|
+
* Handlebars snippets, and published version.
|
|
28
45
|
*
|
|
29
46
|
* @example
|
|
30
47
|
* ```ts
|
|
@@ -35,7 +52,8 @@ class Brands extends resource_1.APIResource {
|
|
|
35
52
|
return this._client.get((0, path_1.path) `/brands/${brandID}`, options);
|
|
36
53
|
}
|
|
37
54
|
/**
|
|
38
|
-
*
|
|
55
|
+
* Replaces a brand with the values you supply, so send the complete settings and
|
|
56
|
+
* snippets rather than only the fields you want changed.
|
|
39
57
|
*
|
|
40
58
|
* @example
|
|
41
59
|
* ```ts
|
|
@@ -48,7 +66,8 @@ class Brands extends resource_1.APIResource {
|
|
|
48
66
|
return this._client.put((0, path_1.path) `/brands/${brandID}`, { body, ...options });
|
|
49
67
|
}
|
|
50
68
|
/**
|
|
51
|
-
*
|
|
69
|
+
* Lists the workspace's brands. Every entry carries its name, styling settings,
|
|
70
|
+
* snippets, and published version.
|
|
52
71
|
*
|
|
53
72
|
* @example
|
|
54
73
|
* ```ts
|
|
@@ -59,7 +78,8 @@ class Brands extends resource_1.APIResource {
|
|
|
59
78
|
return this._client.get('/brands', { query, ...options });
|
|
60
79
|
}
|
|
61
80
|
/**
|
|
62
|
-
*
|
|
81
|
+
* Deletes a brand by id. Reassign any template or tenant that references it before
|
|
82
|
+
* deleting to keep their styling intact.
|
|
63
83
|
*
|
|
64
84
|
* @example
|
|
65
85
|
* ```ts
|
package/resources/brands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../src/resources/brands.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../src/resources/brands.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EACJ,iBAAiB,EAAE,cAAc,EACjC,0BAA0B,EAAE,sBAAsB,EAClD,GAAG,IAAI,EACR,GAAG,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE;YAClC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO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C;CACF;AA/FD,wBA+FC"}
|
package/resources/brands.mjs
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
4
|
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Manage the logos, colors, and layout that give the templates you send a consistent look.
|
|
7
|
+
*/
|
|
5
8
|
export class Brands extends APIResource {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
10
|
+
* Creates a brand from a name and settings, including primary and secondary
|
|
11
|
+
* colors. Brands supply the logo, colors, and styling that templates render with.
|
|
9
12
|
*
|
|
10
13
|
* @example
|
|
11
14
|
* ```ts
|
|
@@ -17,11 +20,25 @@ export class Brands extends APIResource {
|
|
|
17
20
|
* });
|
|
18
21
|
* ```
|
|
19
22
|
*/
|
|
20
|
-
create(
|
|
21
|
-
|
|
23
|
+
create(params, options) {
|
|
24
|
+
const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params;
|
|
25
|
+
return this._client.post('/brands', {
|
|
26
|
+
body,
|
|
27
|
+
...options,
|
|
28
|
+
headers: buildHeaders([
|
|
29
|
+
{
|
|
30
|
+
...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
|
|
31
|
+
...(xIdempotencyExpiration != null ?
|
|
32
|
+
{ 'x-idempotency-expiration': xIdempotencyExpiration }
|
|
33
|
+
: undefined),
|
|
34
|
+
},
|
|
35
|
+
options?.headers,
|
|
36
|
+
]),
|
|
37
|
+
});
|
|
22
38
|
}
|
|
23
39
|
/**
|
|
24
|
-
*
|
|
40
|
+
* Returns one brand by id, including its colors, logo and styling settings,
|
|
41
|
+
* Handlebars snippets, and published version.
|
|
25
42
|
*
|
|
26
43
|
* @example
|
|
27
44
|
* ```ts
|
|
@@ -32,7 +49,8 @@ export class Brands extends APIResource {
|
|
|
32
49
|
return this._client.get(path `/brands/${brandID}`, options);
|
|
33
50
|
}
|
|
34
51
|
/**
|
|
35
|
-
*
|
|
52
|
+
* Replaces a brand with the values you supply, so send the complete settings and
|
|
53
|
+
* snippets rather than only the fields you want changed.
|
|
36
54
|
*
|
|
37
55
|
* @example
|
|
38
56
|
* ```ts
|
|
@@ -45,7 +63,8 @@ export class Brands extends APIResource {
|
|
|
45
63
|
return this._client.put(path `/brands/${brandID}`, { body, ...options });
|
|
46
64
|
}
|
|
47
65
|
/**
|
|
48
|
-
*
|
|
66
|
+
* Lists the workspace's brands. Every entry carries its name, styling settings,
|
|
67
|
+
* snippets, and published version.
|
|
49
68
|
*
|
|
50
69
|
* @example
|
|
51
70
|
* ```ts
|
|
@@ -56,7 +75,8 @@ export class Brands extends APIResource {
|
|
|
56
75
|
return this._client.get('/brands', { query, ...options });
|
|
57
76
|
}
|
|
58
77
|
/**
|
|
59
|
-
*
|
|
78
|
+
* Deletes a brand by id. Reassign any template or tenant that references it before
|
|
79
|
+
* deleting to keep their styling intact.
|
|
60
80
|
*
|
|
61
81
|
* @example
|
|
62
82
|
* ```ts
|
package/resources/brands.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.mjs","sourceRoot":"","sources":["../src/resources/brands.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"brands.mjs","sourceRoot":"","sources":["../src/resources/brands.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA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AAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,OAAO,EAAE,EAAE;YACnD,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"}
|
|
@@ -2,11 +2,13 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
2
2
|
import * as DigestsAPI from "./digests.mjs";
|
|
3
3
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Inspect what has accumulated in a digest schedule and release a digest ahead of its next scheduled delivery.
|
|
7
|
+
*/
|
|
5
8
|
export declare class Schedules extends APIResource {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* digest accumulation before the digest is released.
|
|
10
|
+
* Returns the digest instances for a schedule, one per user, with cursor paging.
|
|
11
|
+
* Use it to see what has accumulated before a digest releases.
|
|
10
12
|
*/
|
|
11
13
|
listInstances(scheduleID: string, query?: ScheduleListInstancesParams | null | undefined, options?: RequestOptions): APIPromise<DigestsAPI.DigestInstanceListResponse>;
|
|
12
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedules.d.mts","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"schedules.d.mts","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,aAAa,CACX,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAIpD;;;OAGG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMxE;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -2,11 +2,13 @@ import { APIResource } from "../../core/resource.js";
|
|
|
2
2
|
import * as DigestsAPI from "./digests.js";
|
|
3
3
|
import { APIPromise } from "../../core/api-promise.js";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Inspect what has accumulated in a digest schedule and release a digest ahead of its next scheduled delivery.
|
|
7
|
+
*/
|
|
5
8
|
export declare class Schedules extends APIResource {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* digest accumulation before the digest is released.
|
|
10
|
+
* Returns the digest instances for a schedule, one per user, with cursor paging.
|
|
11
|
+
* Use it to see what has accumulated before a digest releases.
|
|
10
12
|
*/
|
|
11
13
|
listInstances(scheduleID: string, query?: ScheduleListInstancesParams | null | undefined, options?: RequestOptions): APIPromise<DigestsAPI.DigestInstanceListResponse>;
|
|
12
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,aAAa,CACX,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAIpD;;;OAGG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMxE;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -5,11 +5,13 @@ exports.Schedules = void 0;
|
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
const headers_1 = require("../../internal/headers.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Inspect what has accumulated in a digest schedule and release a digest ahead of its next scheduled delivery.
|
|
10
|
+
*/
|
|
8
11
|
class Schedules extends resource_1.APIResource {
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* digest accumulation before the digest is released.
|
|
13
|
+
* Returns the digest instances for a schedule, one per user, with cursor paging.
|
|
14
|
+
* Use it to see what has accumulated before a digest releases.
|
|
13
15
|
*/
|
|
14
16
|
listInstances(scheduleID, query = {}, options) {
|
|
15
17
|
return this._client.get((0, path_1.path) `/digests/schedules/${scheduleID}/instances`, { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IACxC
|
|
1
|
+
{"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;OAGG;IACH,aAAa,CACX,UAAkB,EAClB,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,UAAU,EAAE;YACvE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,8BAuBC"}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Inspect what has accumulated in a digest schedule and release a digest ahead of its next scheduled delivery.
|
|
7
|
+
*/
|
|
5
8
|
export class Schedules extends APIResource {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* digest accumulation before the digest is released.
|
|
10
|
+
* Returns the digest instances for a schedule, one per user, with cursor paging.
|
|
11
|
+
* Use it to see what has accumulated before a digest releases.
|
|
10
12
|
*/
|
|
11
13
|
listInstances(scheduleID, query = {}, options) {
|
|
12
14
|
return this._client.get(path `/digests/schedules/${scheduleID}/instances`, { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedules.mjs","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"schedules.mjs","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,aAAa,CACX,UAAkB,EAClB,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,UAAU,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,UAAU,UAAU,EAAE;YACvE,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
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Record an inbound event that triggers the journeys and automations mapped to it.
|
|
6
|
+
*/
|
|
4
7
|
export declare class Inbound extends APIResource {
|
|
5
8
|
/**
|
|
6
|
-
*
|
|
9
|
+
* Records an inbound event that can trigger a journey. Requires an event name, a
|
|
10
|
+
* messageId you generate, a type, and a properties object.
|
|
7
11
|
*
|
|
8
12
|
* @example
|
|
9
13
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound.d.mts","sourceRoot":"","sources":["../src/resources/inbound.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"inbound.d.mts","sourceRoot":"","sources":["../src/resources/inbound.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAG3G;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEvC,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
package/resources/inbound.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Record an inbound event that triggers the journeys and automations mapped to it.
|
|
6
|
+
*/
|
|
4
7
|
export declare class Inbound extends APIResource {
|
|
5
8
|
/**
|
|
6
|
-
*
|
|
9
|
+
* Records an inbound event that can trigger a journey. Requires an event name, a
|
|
10
|
+
* messageId you generate, a type, and a properties object.
|
|
7
11
|
*
|
|
8
12
|
* @example
|
|
9
13
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound.d.ts","sourceRoot":"","sources":["../src/resources/inbound.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"inbound.d.ts","sourceRoot":"","sources":["../src/resources/inbound.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAG3G;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEvC,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
package/resources/inbound.js
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Inbound = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Record an inbound event that triggers the journeys and automations mapped to it.
|
|
8
|
+
*/
|
|
6
9
|
class Inbound extends resource_1.APIResource {
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
11
|
+
* Records an inbound event that can trigger a journey. Requires an event name, a
|
|
12
|
+
* messageId you generate, a type, and a properties object.
|
|
9
13
|
*
|
|
10
14
|
* @example
|
|
11
15
|
* ```ts
|
package/resources/inbound.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound.js","sourceRoot":"","sources":["../src/resources/inbound.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"inbound.js","sourceRoot":"","sources":["../src/resources/inbound.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,CAAC,IAA6B,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AAvBD,0BAuBC"}
|
package/resources/inbound.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Record an inbound event that triggers the journeys and automations mapped to it.
|
|
5
|
+
*/
|
|
3
6
|
export class Inbound extends APIResource {
|
|
4
7
|
/**
|
|
5
|
-
*
|
|
8
|
+
* Records an inbound event that can trigger a journey. Requires an event name, a
|
|
9
|
+
* messageId you generate, a type, and a properties object.
|
|
6
10
|
*
|
|
7
11
|
* @example
|
|
8
12
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound.mjs","sourceRoot":"","sources":["../src/resources/inbound.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"inbound.mjs","sourceRoot":"","sources":["../src/resources/inbound.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,CAAC,IAA6B,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as MessagesAPI from "./messages.mjs";
|
|
3
|
+
import { MessageRestoreParams, Messages } from "./messages.mjs";
|
|
4
|
+
export declare class Inbox extends APIResource {
|
|
5
|
+
messages: MessagesAPI.Messages;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Inbox {
|
|
8
|
+
export { Messages as Messages, type MessageRestoreParams as MessageRestoreParams };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=inbox.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox.d.mts","sourceRoot":"","sources":["../../src/resources/inbox/inbox.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,uBAAmB;AAE5D,qBAAa,KAAM,SAAQ,WAAW;IACpC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CACpF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as MessagesAPI from "./messages.js";
|
|
3
|
+
import { MessageRestoreParams, Messages } from "./messages.js";
|
|
4
|
+
export declare class Inbox extends APIResource {
|
|
5
|
+
messages: MessagesAPI.Messages;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Inbox {
|
|
8
|
+
export { Messages as Messages, type MessageRestoreParams as MessageRestoreParams };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=inbox.d.ts.map
|