@trycourier/courier 7.21.0 → 7.23.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 +24 -0
- package/client.d.mts +60 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +60 -0
- package/client.d.ts.map +1 -1
- package/client.js +60 -0
- package/client.js.map +1 -1
- package/client.mjs +60 -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/broadcasts.d.mts +381 -0
- package/resources/broadcasts.d.mts.map +1 -0
- package/resources/broadcasts.d.ts +381 -0
- package/resources/broadcasts.d.ts.map +1 -0
- package/resources/broadcasts.js +181 -0
- package/resources/broadcasts.js.map +1 -0
- package/resources/broadcasts.mjs +177 -0
- package/resources/broadcasts.mjs.map +1 -0
- 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 +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -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 +96 -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/broadcasts.ts +489 -0
- 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 +18 -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
|
@@ -4,18 +4,17 @@ import * as TemplatesAPI from "./templates.mjs";
|
|
|
4
4
|
import { Templates, } from "./templates.mjs";
|
|
5
5
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
6
6
|
import { path } from "../../internal/utils/path.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Build, version, publish, invoke, and cancel multi-step notification workflows, along with the templates scoped to them.
|
|
9
|
+
*/
|
|
7
10
|
export class Journeys extends APIResource {
|
|
8
11
|
constructor() {
|
|
9
12
|
super(...arguments);
|
|
10
13
|
this.templates = new TemplatesAPI.Templates(this._client);
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* create the journey shell here, add notification templates with
|
|
16
|
-
* `POST /journeys/{templateId}/templates`, then wire them into the journey with
|
|
17
|
-
* `PUT /journeys/{templateId}`. Call `POST /journeys/{templateId}/publish` to
|
|
18
|
-
* publish a draft after the fact.
|
|
16
|
+
* Creates a journey from a set of nodes, in draft state unless you pass a
|
|
17
|
+
* published state. Send nodes cannot be included until their templates exist.
|
|
19
18
|
*
|
|
20
19
|
* @example
|
|
21
20
|
* ```ts
|
|
@@ -34,8 +33,21 @@ export class Journeys extends APIResource {
|
|
|
34
33
|
* });
|
|
35
34
|
* ```
|
|
36
35
|
*/
|
|
37
|
-
create(
|
|
38
|
-
|
|
36
|
+
create(params, options) {
|
|
37
|
+
const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params;
|
|
38
|
+
return this._client.post('/journeys', {
|
|
39
|
+
body,
|
|
40
|
+
...options,
|
|
41
|
+
headers: buildHeaders([
|
|
42
|
+
{
|
|
43
|
+
...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
|
|
44
|
+
...(xIdempotencyExpiration != null ?
|
|
45
|
+
{ 'x-idempotency-expiration': xIdempotencyExpiration }
|
|
46
|
+
: undefined),
|
|
47
|
+
},
|
|
48
|
+
options?.headers,
|
|
49
|
+
]),
|
|
50
|
+
});
|
|
39
51
|
}
|
|
40
52
|
/**
|
|
41
53
|
* Fetch a journey by id. Pass `?version=draft` (default `published`) to retrieve
|
|
@@ -50,7 +62,8 @@ export class Journeys extends APIResource {
|
|
|
50
62
|
return this._client.get(path `/journeys/${templateID}`, { query, ...options });
|
|
51
63
|
}
|
|
52
64
|
/**
|
|
53
|
-
*
|
|
65
|
+
* Lists the workspace's journeys, each carrying a name, state, and enabled flag.
|
|
66
|
+
* Paged by cursor.
|
|
54
67
|
*
|
|
55
68
|
* @example
|
|
56
69
|
* ```ts
|
|
@@ -61,8 +74,8 @@ export class Journeys extends APIResource {
|
|
|
61
74
|
return this._client.get('/journeys', { query, ...options });
|
|
62
75
|
}
|
|
63
76
|
/**
|
|
64
|
-
*
|
|
65
|
-
* continue to completion.
|
|
77
|
+
* Archives a journey so it can no longer be invoked. Runs already in flight
|
|
78
|
+
* continue to completion, so archiving never strands a user mid-sequence.
|
|
66
79
|
*
|
|
67
80
|
* @example
|
|
68
81
|
* ```ts
|
|
@@ -76,12 +89,8 @@ export class Journeys extends APIResource {
|
|
|
76
89
|
});
|
|
77
90
|
}
|
|
78
91
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* (cancels a single tenant-scoped run). Supplying both or neither returns a `400`.
|
|
82
|
-
* A `run_id` that does not match a run for the tenant returns `404`. Cancelation
|
|
83
|
-
* is idempotent: a run that has already finished (`PROCESSED`/`ERROR`) or was
|
|
84
|
-
* already `CANCELED` is left unchanged and its current status is returned.
|
|
92
|
+
* Cancels in-flight journey runs, either every run sharing a cancelation token or
|
|
93
|
+
* one run by id. Use it to stop a sequence when the event resolves.
|
|
85
94
|
*
|
|
86
95
|
* @example
|
|
87
96
|
* ```ts
|
|
@@ -90,12 +99,25 @@ export class Journeys extends APIResource {
|
|
|
90
99
|
* });
|
|
91
100
|
* ```
|
|
92
101
|
*/
|
|
93
|
-
cancel(
|
|
94
|
-
|
|
102
|
+
cancel(params, options) {
|
|
103
|
+
const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params;
|
|
104
|
+
return this._client.post('/journeys/cancel', {
|
|
105
|
+
body,
|
|
106
|
+
...options,
|
|
107
|
+
headers: buildHeaders([
|
|
108
|
+
{
|
|
109
|
+
...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
|
|
110
|
+
...(xIdempotencyExpiration != null ?
|
|
111
|
+
{ 'x-idempotency-expiration': xIdempotencyExpiration }
|
|
112
|
+
: undefined),
|
|
113
|
+
},
|
|
114
|
+
options?.headers,
|
|
115
|
+
]),
|
|
116
|
+
});
|
|
95
117
|
}
|
|
96
118
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
119
|
+
* Starts a journey run for one user and returns a runId. Runs execute
|
|
120
|
+
* asynchronously, so the response arrives before any message is sent.
|
|
99
121
|
*
|
|
100
122
|
* @example
|
|
101
123
|
* ```ts
|
|
@@ -108,11 +130,25 @@ export class Journeys extends APIResource {
|
|
|
108
130
|
* );
|
|
109
131
|
* ```
|
|
110
132
|
*/
|
|
111
|
-
invoke(templateID,
|
|
112
|
-
|
|
133
|
+
invoke(templateID, params, options) {
|
|
134
|
+
const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params;
|
|
135
|
+
return this._client.post(path `/journeys/${templateID}/invoke`, {
|
|
136
|
+
body,
|
|
137
|
+
...options,
|
|
138
|
+
headers: buildHeaders([
|
|
139
|
+
{
|
|
140
|
+
...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
|
|
141
|
+
...(xIdempotencyExpiration != null ?
|
|
142
|
+
{ 'x-idempotency-expiration': xIdempotencyExpiration }
|
|
143
|
+
: undefined),
|
|
144
|
+
},
|
|
145
|
+
options?.headers,
|
|
146
|
+
]),
|
|
147
|
+
});
|
|
113
148
|
}
|
|
114
149
|
/**
|
|
115
|
-
*
|
|
150
|
+
* Lists a journey's published versions, most recent first, so you have a version
|
|
151
|
+
* id to roll back to. Paged by cursor.
|
|
116
152
|
*
|
|
117
153
|
* @example
|
|
118
154
|
* ```ts
|
|
@@ -124,24 +160,33 @@ export class Journeys extends APIResource {
|
|
|
124
160
|
return this._client.get(path `/journeys/${templateID}/versions`, options);
|
|
125
161
|
}
|
|
126
162
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* the journey has no draft to publish.
|
|
163
|
+
* Publishes a journey's current draft as a new version, making it live for new
|
|
164
|
+
* runs. Pass a version instead to roll back to an earlier one.
|
|
130
165
|
*
|
|
131
166
|
* @example
|
|
132
167
|
* ```ts
|
|
133
168
|
* const journeyResponse = await client.journeys.publish('x');
|
|
134
169
|
* ```
|
|
135
170
|
*/
|
|
136
|
-
publish(templateID,
|
|
137
|
-
|
|
171
|
+
publish(templateID, params = {}, options) {
|
|
172
|
+
const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params ?? {};
|
|
173
|
+
return this._client.post(path `/journeys/${templateID}/publish`, {
|
|
174
|
+
body,
|
|
175
|
+
...options,
|
|
176
|
+
headers: buildHeaders([
|
|
177
|
+
{
|
|
178
|
+
...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
|
|
179
|
+
...(xIdempotencyExpiration != null ?
|
|
180
|
+
{ 'x-idempotency-expiration': xIdempotencyExpiration }
|
|
181
|
+
: undefined),
|
|
182
|
+
},
|
|
183
|
+
options?.headers,
|
|
184
|
+
]),
|
|
185
|
+
});
|
|
138
186
|
}
|
|
139
187
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* `state: "PUBLISHED"` in this request to publish immediately. Send-node
|
|
143
|
-
* `template` ids must already exist and be scoped to this journey, and node ids
|
|
144
|
-
* must not be claimed by another journey.
|
|
188
|
+
* Replaces a journey's working draft, leaving the published version live until you
|
|
189
|
+
* publish. Reach for this when editing a journey already running.
|
|
145
190
|
*
|
|
146
191
|
* @example
|
|
147
192
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journeys.mjs","sourceRoot":"","sources":["../../src/resources/journeys/journeys.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,KAAK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CAAA,aAAa,UAAU,UAAU,EAAE;YAC9D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,sBAAsB,IAAI,IAAI,CAAC,CAAC;wBAClC,EAAE,0BAA0B,EAAE,sBAAsB,EAAE;wBACxD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,OAAO,CACL,UAAkB,EAClB,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AA4mCD,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -4,6 +4,9 @@ import * as JourneysAPI from "./journeys.mjs";
|
|
|
4
4
|
import * as NotificationsAPI from "../notifications/notifications.mjs";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Build, version, publish, invoke, and cancel multi-step notification workflows, along with the templates scoped to them.
|
|
9
|
+
*/
|
|
7
10
|
export declare class Templates extends APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* Create a notification template scoped to this journey. Defaults to `DRAFT`
|
|
@@ -27,11 +30,10 @@ export declare class Templates extends APIResource {
|
|
|
27
30
|
* });
|
|
28
31
|
* ```
|
|
29
32
|
*/
|
|
30
|
-
create(templateID: string,
|
|
33
|
+
create(templateID: string, params: TemplateCreateParams, options?: RequestOptions): APIPromise<JourneysAPI.JourneyTemplateGetResponse>;
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* historical version.
|
|
35
|
+
* Returns a journey's own notification template with its name, brand, subscription
|
|
36
|
+
* topic, and content. Defaults to the published version.
|
|
35
37
|
*
|
|
36
38
|
* @example
|
|
37
39
|
* ```ts
|
|
@@ -54,8 +56,8 @@ export declare class Templates extends APIResource {
|
|
|
54
56
|
*/
|
|
55
57
|
list(templateID: string, query?: TemplateListParams | null | undefined, options?: RequestOptions): APIPromise<JourneysAPI.JourneyTemplateListResponse>;
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
+
* Archives one journey's notification template, preventing further sends. Detach
|
|
60
|
+
* any send node referencing it beforehand.
|
|
59
61
|
*
|
|
60
62
|
* @example
|
|
61
63
|
* ```ts
|
|
@@ -66,8 +68,8 @@ export declare class Templates extends APIResource {
|
|
|
66
68
|
*/
|
|
67
69
|
archive(notificationID: string, params: TemplateArchiveParams, options?: RequestOptions): APIPromise<void>;
|
|
68
70
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
+
* Lists the published versions of a template that belongs to a journey, most
|
|
72
|
+
* recent first. Paged by cursor.
|
|
71
73
|
*
|
|
72
74
|
* @example
|
|
73
75
|
* ```ts
|
|
@@ -79,9 +81,8 @@ export declare class Templates extends APIResource {
|
|
|
79
81
|
*/
|
|
80
82
|
listVersions(notificationID: string, params: TemplateListVersionsParams, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationTemplateVersionListResponse>;
|
|
81
83
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* `{ "version": "vN" }`.
|
|
84
|
+
* Publishes a journey-scoped template's draft as a new version. Pass a version
|
|
85
|
+
* instead to roll back the template to an earlier publish.
|
|
85
86
|
*
|
|
86
87
|
* @example
|
|
87
88
|
* ```ts
|
|
@@ -129,7 +130,8 @@ export declare class Templates extends APIResource {
|
|
|
129
130
|
*/
|
|
130
131
|
putLocale(localeID: string, params: TemplatePutLocaleParams, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationContentMutationResponse>;
|
|
131
132
|
/**
|
|
132
|
-
*
|
|
133
|
+
* Replaces the draft content of one journey's notification template. Publish it
|
|
134
|
+
* before send nodes referencing it render the change.
|
|
133
135
|
*
|
|
134
136
|
* @example
|
|
135
137
|
* ```ts
|
|
@@ -148,11 +150,8 @@ export declare class Templates extends APIResource {
|
|
|
148
150
|
*/
|
|
149
151
|
replace(notificationID: string, params: TemplateReplaceParams, options?: RequestOptions): APIPromise<JourneysAPI.JourneyTemplateGetResponse>;
|
|
150
152
|
/**
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
* which can be used to detect changes between versions. Pass `?version=draft`
|
|
154
|
-
* (default `published`) to retrieve the working draft, or `?version=vN` for a
|
|
155
|
-
* historical version.
|
|
153
|
+
* Returns the Elemental elements and version of a journey-scoped template's
|
|
154
|
+
* content. Compare versions to see what changed between publishes.
|
|
156
155
|
*
|
|
157
156
|
* @example
|
|
158
157
|
* ```ts
|
|
@@ -165,10 +164,38 @@ export declare class Templates extends APIResource {
|
|
|
165
164
|
retrieveContent(notificationID: string, params: TemplateRetrieveContentParams, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationContentGetResponse>;
|
|
166
165
|
}
|
|
167
166
|
export interface TemplateCreateParams {
|
|
167
|
+
/**
|
|
168
|
+
* Body param
|
|
169
|
+
*/
|
|
168
170
|
channel: string;
|
|
171
|
+
/**
|
|
172
|
+
* Body param
|
|
173
|
+
*/
|
|
169
174
|
notification: TemplateCreateParams.Notification;
|
|
175
|
+
/**
|
|
176
|
+
* Body param
|
|
177
|
+
*/
|
|
170
178
|
providerKey?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Body param
|
|
181
|
+
*/
|
|
171
182
|
state?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Header param: A unique key that makes this request idempotent. If Courier
|
|
185
|
+
* receives another request with the same `Idempotency-Key`, it returns the stored
|
|
186
|
+
* response from the first request without performing the operation again
|
|
187
|
+
* (including the original status code and any error). Use it to safely retry
|
|
188
|
+
* `POST` requests after network failures without risking duplicate sends. The key
|
|
189
|
+
* is scoped to this endpoint.
|
|
190
|
+
*/
|
|
191
|
+
'Idempotency-Key'?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Header param: How long the idempotency key remains valid, as a Unix epoch
|
|
194
|
+
* timestamp in seconds or an ISO 8601 date string. Only applies when
|
|
195
|
+
* `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
|
|
196
|
+
* maximum is 1 year.
|
|
197
|
+
*/
|
|
198
|
+
'x-idempotency-expiration'?: string;
|
|
172
199
|
}
|
|
173
200
|
export declare namespace TemplateCreateParams {
|
|
174
201
|
interface Notification {
|
|
@@ -229,6 +256,22 @@ export interface TemplatePublishParams {
|
|
|
229
256
|
* Body param
|
|
230
257
|
*/
|
|
231
258
|
version?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Header param: A unique key that makes this request idempotent. If Courier
|
|
261
|
+
* receives another request with the same `Idempotency-Key`, it returns the stored
|
|
262
|
+
* response from the first request without performing the operation again
|
|
263
|
+
* (including the original status code and any error). Use it to safely retry
|
|
264
|
+
* `POST` requests after network failures without risking duplicate sends. The key
|
|
265
|
+
* is scoped to this endpoint.
|
|
266
|
+
*/
|
|
267
|
+
'Idempotency-Key'?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Header param: How long the idempotency key remains valid, as a Unix epoch
|
|
270
|
+
* timestamp in seconds or an ISO 8601 date string. Only applies when
|
|
271
|
+
* `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
|
|
272
|
+
* maximum is 1 year.
|
|
273
|
+
*/
|
|
274
|
+
'x-idempotency-expiration'?: string;
|
|
232
275
|
}
|
|
233
276
|
export interface TemplatePutContentParams {
|
|
234
277
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.mts","sourceRoot":"","sources":["../../src/resources/journeys/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,KAAK,gBAAgB,2CAAuC;AACnE,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,
|
|
1
|
+
{"version":3,"file":"templates.d.mts","sourceRoot":"","sources":["../../src/resources/journeys/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,KAAK,gBAAgB,2CAAuC;AACnE,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,0BAA0B,CAAC;IAqBrD;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,0BAA0B,CAAC;IAKrD;;;;;;;;;OASG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,2BAA2B,CAAC;IAItD;;;;;;;;;;OA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K,GAAG,IAAI,CAAC;QAEjC,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC;QAE9B,IAAI,EAAE,MAAM,CAAC;QAEb,YAAY,EAAE,YAAY,CAAC,YAAY,GAAG,IAAI,CAAC;QAE/C,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACrB;IAED,UAAiB,YAAY,CAAC;QAC5B,UAAiB,KAAK;YACpB,EAAE,EAAE,MAAM,CAAC;SACZ;QAED,UAAiB,OAAO;YACtB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;YAEtC,OAAO,EAAE,YAAY,CAAC;YAEtB,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;SAC9B;QAED,UAAiB,YAAY;YAC3B,QAAQ,EAAE,MAAM,CAAC;SAClB;KACF;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -4,6 +4,9 @@ import * as JourneysAPI from "./journeys.js";
|
|
|
4
4
|
import * as NotificationsAPI from "../notifications/notifications.js";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
+
/**
|
|
8
|
+
* Build, version, publish, invoke, and cancel multi-step notification workflows, along with the templates scoped to them.
|
|
9
|
+
*/
|
|
7
10
|
export declare class Templates extends APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* Create a notification template scoped to this journey. Defaults to `DRAFT`
|
|
@@ -27,11 +30,10 @@ export declare class Templates extends APIResource {
|
|
|
27
30
|
* });
|
|
28
31
|
* ```
|
|
29
32
|
*/
|
|
30
|
-
create(templateID: string,
|
|
33
|
+
create(templateID: string, params: TemplateCreateParams, options?: RequestOptions): APIPromise<JourneysAPI.JourneyTemplateGetResponse>;
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* historical version.
|
|
35
|
+
* Returns a journey's own notification template with its name, brand, subscription
|
|
36
|
+
* topic, and content. Defaults to the published version.
|
|
35
37
|
*
|
|
36
38
|
* @example
|
|
37
39
|
* ```ts
|
|
@@ -54,8 +56,8 @@ export declare class Templates extends APIResource {
|
|
|
54
56
|
*/
|
|
55
57
|
list(templateID: string, query?: TemplateListParams | null | undefined, options?: RequestOptions): APIPromise<JourneysAPI.JourneyTemplateListResponse>;
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
+
* Archives one journey's notification template, preventing further sends. Detach
|
|
60
|
+
* any send node referencing it beforehand.
|
|
59
61
|
*
|
|
60
62
|
* @example
|
|
61
63
|
* ```ts
|
|
@@ -66,8 +68,8 @@ export declare class Templates extends APIResource {
|
|
|
66
68
|
*/
|
|
67
69
|
archive(notificationID: string, params: TemplateArchiveParams, options?: RequestOptions): APIPromise<void>;
|
|
68
70
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
+
* Lists the published versions of a template that belongs to a journey, most
|
|
72
|
+
* recent first. Paged by cursor.
|
|
71
73
|
*
|
|
72
74
|
* @example
|
|
73
75
|
* ```ts
|
|
@@ -79,9 +81,8 @@ export declare class Templates extends APIResource {
|
|
|
79
81
|
*/
|
|
80
82
|
listVersions(notificationID: string, params: TemplateListVersionsParams, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationTemplateVersionListResponse>;
|
|
81
83
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* `{ "version": "vN" }`.
|
|
84
|
+
* Publishes a journey-scoped template's draft as a new version. Pass a version
|
|
85
|
+
* instead to roll back the template to an earlier publish.
|
|
85
86
|
*
|
|
86
87
|
* @example
|
|
87
88
|
* ```ts
|
|
@@ -129,7 +130,8 @@ export declare class Templates extends APIResource {
|
|
|
129
130
|
*/
|
|
130
131
|
putLocale(localeID: string, params: TemplatePutLocaleParams, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationContentMutationResponse>;
|
|
131
132
|
/**
|
|
132
|
-
*
|
|
133
|
+
* Replaces the draft content of one journey's notification template. Publish it
|
|
134
|
+
* before send nodes referencing it render the change.
|
|
133
135
|
*
|
|
134
136
|
* @example
|
|
135
137
|
* ```ts
|
|
@@ -148,11 +150,8 @@ export declare class Templates extends APIResource {
|
|
|
148
150
|
*/
|
|
149
151
|
replace(notificationID: string, params: TemplateReplaceParams, options?: RequestOptions): APIPromise<JourneysAPI.JourneyTemplateGetResponse>;
|
|
150
152
|
/**
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
* which can be used to detect changes between versions. Pass `?version=draft`
|
|
154
|
-
* (default `published`) to retrieve the working draft, or `?version=vN` for a
|
|
155
|
-
* historical version.
|
|
153
|
+
* Returns the Elemental elements and version of a journey-scoped template's
|
|
154
|
+
* content. Compare versions to see what changed between publishes.
|
|
156
155
|
*
|
|
157
156
|
* @example
|
|
158
157
|
* ```ts
|
|
@@ -165,10 +164,38 @@ export declare class Templates extends APIResource {
|
|
|
165
164
|
retrieveContent(notificationID: string, params: TemplateRetrieveContentParams, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationContentGetResponse>;
|
|
166
165
|
}
|
|
167
166
|
export interface TemplateCreateParams {
|
|
167
|
+
/**
|
|
168
|
+
* Body param
|
|
169
|
+
*/
|
|
168
170
|
channel: string;
|
|
171
|
+
/**
|
|
172
|
+
* Body param
|
|
173
|
+
*/
|
|
169
174
|
notification: TemplateCreateParams.Notification;
|
|
175
|
+
/**
|
|
176
|
+
* Body param
|
|
177
|
+
*/
|
|
170
178
|
providerKey?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Body param
|
|
181
|
+
*/
|
|
171
182
|
state?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Header param: A unique key that makes this request idempotent. If Courier
|
|
185
|
+
* receives another request with the same `Idempotency-Key`, it returns the stored
|
|
186
|
+
* response from the first request without performing the operation again
|
|
187
|
+
* (including the original status code and any error). Use it to safely retry
|
|
188
|
+
* `POST` requests after network failures without risking duplicate sends. The key
|
|
189
|
+
* is scoped to this endpoint.
|
|
190
|
+
*/
|
|
191
|
+
'Idempotency-Key'?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Header param: How long the idempotency key remains valid, as a Unix epoch
|
|
194
|
+
* timestamp in seconds or an ISO 8601 date string. Only applies when
|
|
195
|
+
* `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
|
|
196
|
+
* maximum is 1 year.
|
|
197
|
+
*/
|
|
198
|
+
'x-idempotency-expiration'?: string;
|
|
172
199
|
}
|
|
173
200
|
export declare namespace TemplateCreateParams {
|
|
174
201
|
interface Notification {
|
|
@@ -229,6 +256,22 @@ export interface TemplatePublishParams {
|
|
|
229
256
|
* Body param
|
|
230
257
|
*/
|
|
231
258
|
version?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Header param: A unique key that makes this request idempotent. If Courier
|
|
261
|
+
* receives another request with the same `Idempotency-Key`, it returns the stored
|
|
262
|
+
* response from the first request without performing the operation again
|
|
263
|
+
* (including the original status code and any error). Use it to safely retry
|
|
264
|
+
* `POST` requests after network failures without risking duplicate sends. The key
|
|
265
|
+
* is scoped to this endpoint.
|
|
266
|
+
*/
|
|
267
|
+
'Idempotency-Key'?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Header param: How long the idempotency key remains valid, as a Unix epoch
|
|
270
|
+
* timestamp in seconds or an ISO 8601 date string. Only applies when
|
|
271
|
+
* `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
|
|
272
|
+
* maximum is 1 year.
|
|
273
|
+
*/
|
|
274
|
+
'x-idempotency-expiration'?: string;
|
|
232
275
|
}
|
|
233
276
|
export interface TemplatePutContentParams {
|
|
234
277
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/resources/journeys/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,KAAK,gBAAgB,0CAAuC;AACnE,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/resources/journeys/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,KAAK,gBAAgB,0CAAuC;AACnE,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,0BAA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