@trycourier/courier 7.11.0 → 7.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +123 -0
- package/README.md +1 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +15 -1
- package/client.js.map +1 -1
- package/client.mjs +15 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audiences.d.mts +5 -2
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +5 -2
- package/resources/audiences.d.ts.map +1 -1
- package/resources/brands.d.mts +35 -2
- package/resources/brands.d.mts.map +1 -1
- package/resources/brands.d.ts +35 -2
- package/resources/brands.d.ts.map +1 -1
- package/resources/brands.js +34 -1
- package/resources/brands.js.map +1 -1
- package/resources/brands.mjs +34 -1
- package/resources/brands.mjs.map +1 -1
- package/resources/digests/digests.d.mts +94 -0
- package/resources/digests/digests.d.mts.map +1 -0
- package/resources/digests/digests.d.ts +94 -0
- package/resources/digests/digests.d.ts.map +1 -0
- package/resources/digests/digests.js +17 -0
- package/resources/digests/digests.js.map +1 -0
- package/resources/digests/digests.mjs +12 -0
- package/resources/digests/digests.mjs.map +1 -0
- package/resources/digests/index.d.mts +3 -0
- package/resources/digests/index.d.mts.map +1 -0
- package/resources/digests/index.d.ts +3 -0
- package/resources/digests/index.d.ts.map +1 -0
- package/resources/digests/index.js +9 -0
- package/resources/digests/index.js.map +1 -0
- package/resources/digests/index.mjs +4 -0
- package/resources/digests/index.mjs.map +1 -0
- package/resources/digests/schedules.d.mts +32 -0
- package/resources/digests/schedules.d.mts.map +1 -0
- package/resources/digests/schedules.d.ts +32 -0
- package/resources/digests/schedules.d.ts.map +1 -0
- package/resources/digests/schedules.js +29 -0
- package/resources/digests/schedules.js.map +1 -0
- package/resources/digests/schedules.mjs +25 -0
- package/resources/digests/schedules.mjs.map +1 -0
- package/resources/digests.d.mts +2 -0
- package/resources/digests.d.mts.map +1 -0
- package/resources/digests.d.ts +2 -0
- package/resources/digests.d.ts.map +1 -0
- package/resources/digests.js +6 -0
- package/resources/digests.js.map +1 -0
- package/resources/digests.mjs +3 -0
- package/resources/digests.mjs.map +1 -0
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- 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/index.d.mts +2 -2
- package/resources/journeys/index.d.mts.map +1 -1
- package/resources/journeys/index.d.ts +2 -2
- package/resources/journeys/index.d.ts.map +1 -1
- package/resources/journeys/index.js.map +1 -1
- package/resources/journeys/index.mjs.map +1 -1
- package/resources/journeys/journeys.d.mts +198 -7
- package/resources/journeys/journeys.d.mts.map +1 -1
- package/resources/journeys/journeys.d.ts +198 -7
- package/resources/journeys/journeys.d.ts.map +1 -1
- package/resources/journeys/journeys.js +18 -0
- package/resources/journeys/journeys.js.map +1 -1
- package/resources/journeys/journeys.mjs +18 -0
- package/resources/journeys/journeys.mjs.map +1 -1
- package/resources/journeys/templates.d.mts +120 -1
- package/resources/journeys/templates.d.mts.map +1 -1
- package/resources/journeys/templates.d.ts +120 -1
- package/resources/journeys/templates.d.ts.map +1 -1
- package/resources/journeys/templates.js +71 -0
- package/resources/journeys/templates.js.map +1 -1
- package/resources/journeys/templates.mjs +71 -0
- package/resources/journeys/templates.mjs.map +1 -1
- package/resources/messages.d.mts +16 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +16 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +10 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +10 -0
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications/checks.d.mts +3 -3
- package/resources/notifications/checks.d.ts +3 -3
- package/resources/notifications/checks.js +3 -3
- package/resources/notifications/checks.mjs +3 -3
- package/resources/notifications/notifications.d.mts +7 -3
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +7 -3
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js +7 -3
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs +7 -3
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/shared.d.mts +6 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +6 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/users/index.d.mts +1 -1
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/preferences.d.mts +211 -1
- package/resources/users/preferences.d.mts.map +1 -1
- package/resources/users/preferences.d.ts +211 -1
- package/resources/users/preferences.d.ts.map +1 -1
- package/resources/users/preferences.js +105 -0
- package/resources/users/preferences.js.map +1 -1
- package/resources/users/preferences.mjs +105 -0
- package/resources/users/preferences.mjs.map +1 -1
- package/resources/users/users.d.mts +2 -2
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +2 -2
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/workspace-preferences/index.d.mts +3 -0
- package/resources/workspace-preferences/index.d.mts.map +1 -0
- package/resources/workspace-preferences/index.d.ts +3 -0
- package/resources/workspace-preferences/index.d.ts.map +1 -0
- package/resources/workspace-preferences/index.js +9 -0
- package/resources/workspace-preferences/index.js.map +1 -0
- package/resources/workspace-preferences/index.mjs +4 -0
- package/resources/workspace-preferences/index.mjs.map +1 -0
- package/resources/workspace-preferences/topics.d.mts +168 -0
- package/resources/workspace-preferences/topics.d.mts.map +1 -0
- package/resources/workspace-preferences/topics.d.ts +168 -0
- package/resources/workspace-preferences/topics.d.ts.map +1 -0
- package/resources/workspace-preferences/topics.js +103 -0
- package/resources/workspace-preferences/topics.js.map +1 -0
- package/resources/workspace-preferences/topics.mjs +99 -0
- package/resources/workspace-preferences/topics.mjs.map +1 -0
- package/resources/workspace-preferences/workspace-preferences.d.mts +410 -0
- package/resources/workspace-preferences/workspace-preferences.d.mts.map +1 -0
- package/resources/workspace-preferences/workspace-preferences.d.ts +410 -0
- package/resources/workspace-preferences/workspace-preferences.d.ts.map +1 -0
- package/resources/workspace-preferences/workspace-preferences.js +104 -0
- package/resources/workspace-preferences/workspace-preferences.js.map +1 -0
- package/resources/workspace-preferences/workspace-preferences.mjs +99 -0
- package/resources/workspace-preferences/workspace-preferences.mjs.map +1 -0
- package/resources/workspace-preferences.d.mts +2 -0
- package/resources/workspace-preferences.d.mts.map +1 -0
- package/resources/workspace-preferences.d.ts +2 -0
- package/resources/workspace-preferences.d.ts.map +1 -0
- package/resources/workspace-preferences.js +6 -0
- package/resources/workspace-preferences.js.map +1 -0
- package/resources/workspace-preferences.mjs +3 -0
- package/resources/workspace-preferences.mjs.map +1 -0
- package/src/client.ts +71 -1
- package/src/resources/audiences.ts +5 -2
- package/src/resources/brands.ts +36 -3
- package/src/resources/digests/digests.ts +120 -0
- package/src/resources/digests/index.ts +9 -0
- package/src/resources/digests/schedules.ts +51 -0
- package/src/resources/digests.ts +3 -0
- package/src/resources/index.ts +28 -0
- package/src/resources/journeys/index.ts +8 -0
- package/src/resources/journeys/journeys.ts +246 -4
- package/src/resources/journeys/templates.ts +168 -0
- package/src/resources/messages.ts +20 -0
- package/src/resources/notifications/checks.ts +3 -3
- package/src/resources/notifications/notifications.ts +7 -3
- package/src/resources/shared.ts +7 -0
- package/src/resources/users/index.ts +6 -0
- package/src/resources/users/preferences.ts +269 -0
- package/src/resources/users/users.ts +12 -0
- package/src/resources/workspace-preferences/index.ts +25 -0
- package/src/resources/workspace-preferences/topics.ts +229 -0
- package/src/resources/workspace-preferences/workspace-preferences.ts +534 -0
- package/src/resources/workspace-preferences.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
3
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
5
|
export class Preferences extends APIResource {
|
|
5
6
|
/**
|
|
@@ -15,6 +16,110 @@ export class Preferences extends APIResource {
|
|
|
15
16
|
retrieve(userID, query = {}, options) {
|
|
16
17
|
return this._client.get(path `/users/${userID}/preferences`, { query, ...options });
|
|
17
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Replace a user's complete set of preference overrides in a single request. The
|
|
21
|
+
* topics in the request body become the recipient's entire set of overrides:
|
|
22
|
+
* listed topics are created or updated, and every existing override that is not
|
|
23
|
+
* included in the body is reset to its topic default. Submitting an empty `topics`
|
|
24
|
+
* array is a valid clear-all that resets every existing override.
|
|
25
|
+
*
|
|
26
|
+
* This operation is validation-atomic (all-or-nothing): structural validation
|
|
27
|
+
* fails fast with a single `400`, and if any topic is semantically invalid (an
|
|
28
|
+
* unknown topic, a `REQUIRED` topic that cannot be opted out, or a custom routing
|
|
29
|
+
* request that is not available on the workspace's plan) the request returns a
|
|
30
|
+
* single `400` aggregating every failure in `errors` and writes nothing. On
|
|
31
|
+
* success it returns `200` with `items` (the complete resulting override set) and
|
|
32
|
+
* `deleted` (the ids of the overrides that were reset to default).
|
|
33
|
+
*
|
|
34
|
+
* Every `topic_id` in the response — in `items`, `deleted`, and any `errors` — is
|
|
35
|
+
* returned in Courier's canonical topic id form, regardless of the form supplied
|
|
36
|
+
* in the request.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const response = await client.users.preferences.bulkReplace(
|
|
41
|
+
* 'user_id',
|
|
42
|
+
* {
|
|
43
|
+
* topics: [
|
|
44
|
+
* {
|
|
45
|
+
* topic_id: 'pt_01kx4h2jdafq8bk996nn92357r',
|
|
46
|
+
* status: 'OPTED_IN',
|
|
47
|
+
* has_custom_routing: true,
|
|
48
|
+
* custom_routing: ['inbox', 'email'],
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
51
|
+
* },
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
bulkReplace(userID, params, options) {
|
|
56
|
+
const { tenant_id, ...body } = params;
|
|
57
|
+
return this._client.put(path `/users/${userID}/preferences`, { query: { tenant_id }, body, ...options });
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Additively create or update a user's preferences for one or more subscription
|
|
61
|
+
* topics in a single request. Only the topics included in the request body are
|
|
62
|
+
* created or updated; any existing overrides for topics not listed are left
|
|
63
|
+
* untouched.
|
|
64
|
+
*
|
|
65
|
+
* Structural validation of the request body fails fast with a single `400`. Beyond
|
|
66
|
+
* that, each topic is processed independently (partial-success, not
|
|
67
|
+
* all-or-nothing): valid topics are written and returned in `items`, while topics
|
|
68
|
+
* that cannot be applied are collected in `errors` with a per-topic `reason` (for
|
|
69
|
+
* example an unknown topic, a `REQUIRED` topic that cannot be opted out, a custom
|
|
70
|
+
* routing request that is not available on the workspace's plan, or a write
|
|
71
|
+
* failure). The request therefore returns `200` with both lists whenever the body
|
|
72
|
+
* is structurally valid.
|
|
73
|
+
*
|
|
74
|
+
* Every `topic_id` in the response — in both `items` and `errors` — is returned in
|
|
75
|
+
* Courier's canonical topic id form, regardless of the form supplied in the
|
|
76
|
+
* request.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const response = await client.users.preferences.bulkUpdate(
|
|
81
|
+
* 'user_id',
|
|
82
|
+
* {
|
|
83
|
+
* topics: [
|
|
84
|
+
* {
|
|
85
|
+
* topic_id: 'pt_01kx4h2jdafq8bk996nn92357r',
|
|
86
|
+
* status: 'OPTED_IN',
|
|
87
|
+
* has_custom_routing: true,
|
|
88
|
+
* custom_routing: ['inbox', 'email'],
|
|
89
|
+
* },
|
|
90
|
+
* {
|
|
91
|
+
* topic_id: 'pt_01kx4h2jdafq8bk99eyt3dx43x',
|
|
92
|
+
* status: 'OPTED_OUT',
|
|
93
|
+
* },
|
|
94
|
+
* ],
|
|
95
|
+
* },
|
|
96
|
+
* );
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
bulkUpdate(userID, params, options) {
|
|
100
|
+
const { tenant_id, ...body } = params;
|
|
101
|
+
return this._client.post(path `/users/${userID}/preferences`, { query: { tenant_id }, body, ...options });
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Remove a user's preferences for a specific subscription topic, resetting the
|
|
105
|
+
* topic to its effective default. This operation is idempotent: deleting a
|
|
106
|
+
* preference that does not exist succeeds with no error.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```ts
|
|
110
|
+
* await client.users.preferences.deleteTopic('topic_id', {
|
|
111
|
+
* user_id: 'user_id',
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
deleteTopic(topicID, params, options) {
|
|
116
|
+
const { user_id, tenant_id } = params;
|
|
117
|
+
return this._client.delete(path `/users/${user_id}/preferences/${topicID}`, {
|
|
118
|
+
query: { tenant_id },
|
|
119
|
+
...options,
|
|
120
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
121
|
+
});
|
|
122
|
+
}
|
|
18
123
|
/**
|
|
19
124
|
* Fetch user preferences for a specific subscription topic.
|
|
20
125
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preferences.mjs","sourceRoot":"","sources":["../../src/resources/users/preferences.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;
|
|
1
|
+
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;QAExB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,UAAU,OAAO,gBAAgB,OAAO,EAAE,EAAE;YACzE,KAAK,EAAE,EAAE,SAAS,EAAE;YACpB,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,aAAa,CACX,OAAe,EACf,MAAqC,EACrC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,OAAO,gBAAgB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,mBAAmB,CACjB,OAAe,EACf,MAA2C,EAC3C,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,OAAO,gBAAgB,OAAO,EAAE,EAAE;YACtE,KAAK,EAAE,EAAE,SAAS,EAAE;YACpB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as PreferencesAPI from "./preferences.mjs";
|
|
3
|
-
import { PreferenceRetrieveParams, PreferenceRetrieveResponse, PreferenceRetrieveTopicParams, PreferenceRetrieveTopicResponse, PreferenceUpdateOrCreateTopicParams, PreferenceUpdateOrCreateTopicResponse, Preferences, TopicPreference } from "./preferences.mjs";
|
|
3
|
+
import { BulkPreferenceTopic, PreferenceBulkReplaceParams, PreferenceBulkReplaceResponse, PreferenceBulkUpdateParams, PreferenceBulkUpdateResponse, PreferenceDeleteTopicParams, PreferenceRetrieveParams, PreferenceRetrieveResponse, PreferenceRetrieveTopicParams, PreferenceRetrieveTopicResponse, PreferenceUpdateOrCreateTopicParams, PreferenceUpdateOrCreateTopicResponse, Preferences, TopicPreference } from "./preferences.mjs";
|
|
4
4
|
import * as TenantsAPI from "./tenants.mjs";
|
|
5
5
|
import { TenantAddMultipleParams, TenantAddSingleParams, TenantListParams, TenantListResponse, TenantRemoveSingleParams, Tenants } from "./tenants.mjs";
|
|
6
6
|
import * as TokensAPI from "./tokens.mjs";
|
|
@@ -11,7 +11,7 @@ export declare class Users extends APIResource {
|
|
|
11
11
|
tokens: TokensAPI.Tokens;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace Users {
|
|
14
|
-
export { Preferences as Preferences, type TopicPreference as TopicPreference, type PreferenceRetrieveResponse as PreferenceRetrieveResponse, type PreferenceRetrieveTopicResponse as PreferenceRetrieveTopicResponse, type PreferenceUpdateOrCreateTopicResponse as PreferenceUpdateOrCreateTopicResponse, type PreferenceRetrieveParams as PreferenceRetrieveParams, type PreferenceRetrieveTopicParams as PreferenceRetrieveTopicParams, type PreferenceUpdateOrCreateTopicParams as PreferenceUpdateOrCreateTopicParams, };
|
|
14
|
+
export { Preferences as Preferences, type BulkPreferenceTopic as BulkPreferenceTopic, type TopicPreference as TopicPreference, type PreferenceRetrieveResponse as PreferenceRetrieveResponse, type PreferenceBulkReplaceResponse as PreferenceBulkReplaceResponse, type PreferenceBulkUpdateResponse as PreferenceBulkUpdateResponse, type PreferenceRetrieveTopicResponse as PreferenceRetrieveTopicResponse, type PreferenceUpdateOrCreateTopicResponse as PreferenceUpdateOrCreateTopicResponse, type PreferenceRetrieveParams as PreferenceRetrieveParams, type PreferenceBulkReplaceParams as PreferenceBulkReplaceParams, type PreferenceBulkUpdateParams as PreferenceBulkUpdateParams, type PreferenceDeleteTopicParams as PreferenceDeleteTopicParams, type PreferenceRetrieveTopicParams as PreferenceRetrieveTopicParams, type PreferenceUpdateOrCreateTopicParams as PreferenceUpdateOrCreateTopicParams, };
|
|
15
15
|
export { Tenants as Tenants, type TenantListResponse as TenantListResponse, type TenantListParams as TenantListParams, type TenantAddMultipleParams as TenantAddMultipleParams, type TenantAddSingleParams as TenantAddSingleParams, type TenantRemoveSingleParams as TenantRemoveSingleParams, };
|
|
16
16
|
export { Tokens as Tokens, type UserToken as UserToken, type TokenRetrieveResponse as TokenRetrieveResponse, type TokenListResponse as TokenListResponse, type TokenRetrieveParams as TokenRetrieveParams, type TokenUpdateParams as TokenUpdateParams, type TokenDeleteParams as TokenDeleteParams, type TokenAddSingleParams as TokenAddSingleParams, };
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,qCAAqC,EACrC,WAAW,EACX,eAAe,EAChB,0BAAsB;AACvB,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACxB,OAAO,EACR,sBAAkB;AACnB,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,EACN,SAAS,EACV,qBAAiB;AAElB,qBAAa,KAAM,SAAQ,WAAW;IACpC,WAAW,EAAE,cAAc,CAAC,W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BAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as PreferencesAPI from "./preferences.js";
|
|
3
|
-
import { PreferenceRetrieveParams, PreferenceRetrieveResponse, PreferenceRetrieveTopicParams, PreferenceRetrieveTopicResponse, PreferenceUpdateOrCreateTopicParams, PreferenceUpdateOrCreateTopicResponse, Preferences, TopicPreference } from "./preferences.js";
|
|
3
|
+
import { BulkPreferenceTopic, PreferenceBulkReplaceParams, PreferenceBulkReplaceResponse, PreferenceBulkUpdateParams, PreferenceBulkUpdateResponse, PreferenceDeleteTopicParams, PreferenceRetrieveParams, PreferenceRetrieveResponse, PreferenceRetrieveTopicParams, PreferenceRetrieveTopicResponse, PreferenceUpdateOrCreateTopicParams, PreferenceUpdateOrCreateTopicResponse, Preferences, TopicPreference } from "./preferences.js";
|
|
4
4
|
import * as TenantsAPI from "./tenants.js";
|
|
5
5
|
import { TenantAddMultipleParams, TenantAddSingleParams, TenantListParams, TenantListResponse, TenantRemoveSingleParams, Tenants } from "./tenants.js";
|
|
6
6
|
import * as TokensAPI from "./tokens.js";
|
|
@@ -11,7 +11,7 @@ export declare class Users extends APIResource {
|
|
|
11
11
|
tokens: TokensAPI.Tokens;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace Users {
|
|
14
|
-
export { Preferences as Preferences, type TopicPreference as TopicPreference, type PreferenceRetrieveResponse as PreferenceRetrieveResponse, type PreferenceRetrieveTopicResponse as PreferenceRetrieveTopicResponse, type PreferenceUpdateOrCreateTopicResponse as PreferenceUpdateOrCreateTopicResponse, type PreferenceRetrieveParams as PreferenceRetrieveParams, type PreferenceRetrieveTopicParams as PreferenceRetrieveTopicParams, type PreferenceUpdateOrCreateTopicParams as PreferenceUpdateOrCreateTopicParams, };
|
|
14
|
+
export { Preferences as Preferences, type BulkPreferenceTopic as BulkPreferenceTopic, type TopicPreference as TopicPreference, type PreferenceRetrieveResponse as PreferenceRetrieveResponse, type PreferenceBulkReplaceResponse as PreferenceBulkReplaceResponse, type PreferenceBulkUpdateResponse as PreferenceBulkUpdateResponse, type PreferenceRetrieveTopicResponse as PreferenceRetrieveTopicResponse, type PreferenceUpdateOrCreateTopicResponse as PreferenceUpdateOrCreateTopicResponse, type PreferenceRetrieveParams as PreferenceRetrieveParams, type PreferenceBulkReplaceParams as PreferenceBulkReplaceParams, type PreferenceBulkUpdateParams as PreferenceBulkUpdateParams, type PreferenceDeleteTopicParams as PreferenceDeleteTopicParams, type PreferenceRetrieveTopicParams as PreferenceRetrieveTopicParams, type PreferenceUpdateOrCreateTopicParams as PreferenceUpdateOrCreateTopicParams, };
|
|
15
15
|
export { Tenants as Tenants, type TenantListResponse as TenantListResponse, type TenantListParams as TenantListParams, type TenantAddMultipleParams as TenantAddMultipleParams, type TenantAddSingleParams as TenantAddSingleParams, type TenantRemoveSingleParams as TenantRemoveSingleParams, };
|
|
16
16
|
export { Tokens as Tokens, type UserToken as UserToken, type TokenRetrieveResponse as TokenRetrieveResponse, type TokenListResponse as TokenListResponse, type TokenRetrieveParams as TokenRetrieveParams, type TokenUpdateParams as TokenUpdateParams, type TokenDeleteParams as TokenDeleteParams, type TokenAddSingleParams as TokenAddSingleParams, };
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file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AqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAC3B,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,qCAAqC,EACrC,WAAW,EACX,eAAe,EAChB,yBAAsB;AACvB,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACxB,OAAO,EACR,qBAAkB;AACnB,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,EACN,SAAS,EACV,oBAAiB;AAElB,qBAAa,KAAM,SAAQ,WAAW;IACpC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAMD,M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3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAeuB;AACvB,iEAAwC;AACxC,0CAOmB;AACnB,+DAAsC;AACtC,wCASkB;AAElB,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAJD,sBAIC;AAED,KAAK,CAAC,WAAW,GAAG,yBAAW,CAAC;AAChC,KAAK,CAAC,OAAO,GAAG,iBAAO,CAAC;AACxB,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EAaL,WAAW,GAEZ,0BAAsB;AACvB,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAML,OAAO,GACR,sBAAkB;AACnB,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAOL,MAAM,GAEP,qBAAiB;AAElB,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;AAChC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;AACxB,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Topics, type TopicCreateParams, type TopicRetrieveParams, type TopicArchiveParams, type TopicReplaceParams, } from "./topics.mjs";
|
|
2
|
+
export { WorkspacePreferences, type PublishPreferencesRequest, type PublishPreferencesResponse, type WorkspacePreferenceCreateRequest, type WorkspacePreferenceGetResponse, type WorkspacePreferenceListResponse, type WorkspacePreferenceReplaceRequest, type WorkspacePreferenceTopicCreateRequest, type WorkspacePreferenceTopicGetResponse, type WorkspacePreferenceTopicListResponse, type WorkspacePreferenceTopicReplaceRequest, type WorkspacePreferenceCreateParams, type WorkspacePreferencePublishParams, type WorkspacePreferenceReplaceParams, } from "./workspace-preferences.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-preferences/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,qBAAiB;AAClB,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,sCAAsC,EAC3C,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,GACtC,oCAAgC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Topics, type TopicCreateParams, type TopicRetrieveParams, type TopicArchiveParams, type TopicReplaceParams, } from "./topics.js";
|
|
2
|
+
export { WorkspacePreferences, type PublishPreferencesRequest, type PublishPreferencesResponse, type WorkspacePreferenceCreateRequest, type WorkspacePreferenceGetResponse, type WorkspacePreferenceListResponse, type WorkspacePreferenceReplaceRequest, type WorkspacePreferenceTopicCreateRequest, type WorkspacePreferenceTopicGetResponse, type WorkspacePreferenceTopicListResponse, type WorkspacePreferenceTopicReplaceRequest, type WorkspacePreferenceCreateParams, type WorkspacePreferencePublishParams, type WorkspacePreferenceReplaceParams, } from "./workspace-preferences.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-preferences/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,oBAAiB;AAClB,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,sCAAsC,EAC3C,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,GACtC,mCAAgC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WorkspacePreferences = exports.Topics = void 0;
|
|
5
|
+
var topics_1 = require("./topics.js");
|
|
6
|
+
Object.defineProperty(exports, "Topics", { enumerable: true, get: function () { return topics_1.Topics; } });
|
|
7
|
+
var workspace_preferences_1 = require("./workspace-preferences.js");
|
|
8
|
+
Object.defineProperty(exports, "WorkspacePreferences", { enumerable: true, get: function () { return workspace_preferences_1.WorkspacePreferences; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/workspace-preferences/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,oEAeiC;AAd/B,6HAAA,oBAAoB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/workspace-preferences/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAKP,qBAAiB;AAClB,OAAO,EACL,oBAAoB,GAcrB,oCAAgC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../shared.mjs";
|
|
3
|
+
import * as WorkspacePreferencesAPI from "./workspace-preferences.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare class Topics extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a subscription preference topic inside a workspace preference. Fails with
|
|
9
|
+
* 404 if the workspace preference does not exist. The topic id is generated and
|
|
10
|
+
* returned.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const workspacePreferenceTopicGetResponse =
|
|
15
|
+
* await client.workspacePreferences.topics.create(
|
|
16
|
+
* 'section_id',
|
|
17
|
+
* { default_status: 'OPTED_OUT', name: 'Marketing' },
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(sectionID: string, body: TopicCreateParams, options?: RequestOptions): APIPromise<WorkspacePreferencesAPI.WorkspacePreferenceTopicGetResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve a topic within a workspace preference. Returns 404 if the workspace
|
|
24
|
+
* preference does not exist, the topic does not exist, or the topic belongs to a
|
|
25
|
+
* different workspace preference.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const workspacePreferenceTopicGetResponse =
|
|
30
|
+
* await client.workspacePreferences.topics.retrieve(
|
|
31
|
+
* 'topic_id',
|
|
32
|
+
* { section_id: 'section_id' },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(topicID: string, params: TopicRetrieveParams, options?: RequestOptions): APIPromise<WorkspacePreferencesAPI.WorkspacePreferenceTopicGetResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* List the topics in a workspace preference.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const workspacePreferenceTopicListResponse =
|
|
43
|
+
* await client.workspacePreferences.topics.list(
|
|
44
|
+
* 'section_id',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
list(sectionID: string, options?: RequestOptions): APIPromise<WorkspacePreferencesAPI.WorkspacePreferenceTopicListResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Archive a topic and remove it from its workspace preference. Same 404 rules as
|
|
51
|
+
* GET.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* await client.workspacePreferences.topics.archive(
|
|
56
|
+
* 'topic_id',
|
|
57
|
+
* { section_id: 'section_id' },
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
archive(topicID: string, params: TopicArchiveParams, options?: RequestOptions): APIPromise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Replace a topic within a workspace preference. Full document replacement;
|
|
64
|
+
* missing optional fields are cleared. Same 404 rules as GET.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const workspacePreferenceTopicGetResponse =
|
|
69
|
+
* await client.workspacePreferences.topics.replace(
|
|
70
|
+
* 'topic_id',
|
|
71
|
+
* {
|
|
72
|
+
* section_id: 'section_id',
|
|
73
|
+
* default_status: 'OPTED_OUT',
|
|
74
|
+
* name: 'name',
|
|
75
|
+
* },
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
replace(topicID: string, params: TopicReplaceParams, options?: RequestOptions): APIPromise<WorkspacePreferencesAPI.WorkspacePreferenceTopicGetResponse>;
|
|
80
|
+
}
|
|
81
|
+
export interface TopicCreateParams {
|
|
82
|
+
/**
|
|
83
|
+
* The default subscription status applied when a recipient has not set their own.
|
|
84
|
+
*/
|
|
85
|
+
default_status: 'OPTED_OUT' | 'OPTED_IN' | 'REQUIRED';
|
|
86
|
+
/**
|
|
87
|
+
* Human-readable name for the preference topic.
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* Preference controls a recipient may customize for this topic. Defaults to empty
|
|
92
|
+
* if omitted.
|
|
93
|
+
*/
|
|
94
|
+
allowed_preferences?: Array<'snooze' | 'channel_preferences'> | null;
|
|
95
|
+
/**
|
|
96
|
+
* Optional description shown under the topic on the hosted preferences page.
|
|
97
|
+
*/
|
|
98
|
+
description?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Whether to include a list-unsubscribe header on emails for this topic.
|
|
101
|
+
*/
|
|
102
|
+
include_unsubscribe_header?: boolean | null;
|
|
103
|
+
/**
|
|
104
|
+
* Default channels delivered for this topic. Defaults to empty if omitted.
|
|
105
|
+
*/
|
|
106
|
+
routing_options?: Array<Shared.ChannelClassification> | null;
|
|
107
|
+
/**
|
|
108
|
+
* Arbitrary metadata associated with the topic.
|
|
109
|
+
*/
|
|
110
|
+
topic_data?: {
|
|
111
|
+
[key: string]: unknown;
|
|
112
|
+
} | null;
|
|
113
|
+
}
|
|
114
|
+
export interface TopicRetrieveParams {
|
|
115
|
+
/**
|
|
116
|
+
* Id of the workspace preference.
|
|
117
|
+
*/
|
|
118
|
+
section_id: string;
|
|
119
|
+
}
|
|
120
|
+
export interface TopicArchiveParams {
|
|
121
|
+
/**
|
|
122
|
+
* Id of the workspace preference.
|
|
123
|
+
*/
|
|
124
|
+
section_id: string;
|
|
125
|
+
}
|
|
126
|
+
export interface TopicReplaceParams {
|
|
127
|
+
/**
|
|
128
|
+
* Path param: Id of the workspace preference.
|
|
129
|
+
*/
|
|
130
|
+
section_id: string;
|
|
131
|
+
/**
|
|
132
|
+
* Body param: The default subscription status applied when a recipient has not set
|
|
133
|
+
* their own.
|
|
134
|
+
*/
|
|
135
|
+
default_status: 'OPTED_OUT' | 'OPTED_IN' | 'REQUIRED';
|
|
136
|
+
/**
|
|
137
|
+
* Body param: Human-readable name for the preference topic.
|
|
138
|
+
*/
|
|
139
|
+
name: string;
|
|
140
|
+
/**
|
|
141
|
+
* Body param: Preference controls a recipient may customize. Omit to clear.
|
|
142
|
+
*/
|
|
143
|
+
allowed_preferences?: Array<'snooze' | 'channel_preferences'> | null;
|
|
144
|
+
/**
|
|
145
|
+
* Body param: Optional description shown under the topic on the hosted preferences
|
|
146
|
+
* page. Omit to clear.
|
|
147
|
+
*/
|
|
148
|
+
description?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* Body param: Whether to include a list-unsubscribe header on emails for this
|
|
151
|
+
* topic.
|
|
152
|
+
*/
|
|
153
|
+
include_unsubscribe_header?: boolean | null;
|
|
154
|
+
/**
|
|
155
|
+
* Body param: Default channels delivered for this topic. Omit to clear.
|
|
156
|
+
*/
|
|
157
|
+
routing_options?: Array<Shared.ChannelClassification> | null;
|
|
158
|
+
/**
|
|
159
|
+
* Body param: Arbitrary metadata associated with the topic. Omit to clear.
|
|
160
|
+
*/
|
|
161
|
+
topic_data?: {
|
|
162
|
+
[key: string]: unknown;
|
|
163
|
+
} | null;
|
|
164
|
+
}
|
|
165
|
+
export declare namespace Topics {
|
|
166
|
+
export { type TopicCreateParams as TopicCreateParams, type TopicRetrieveParams as TopicRetrieveParams, type TopicArchiveParams as TopicArchiveParams, type TopicReplaceParams as TopicReplaceParams, };
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=topics.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topics.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-preferences/topics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,uBAAuB,oCAAgC;AACnE,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC,mCAAmC,CAAC;IAI1E;;;;;;;;;;;;;OAaG;IACH,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC,mCAAmC,CAAC;IAK1E;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC,oCAAoC,CAAC;IAI3E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mB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAErE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;;OAGG;IACH,0BAA0B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE5C;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAE7D;;OAEG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CAChD;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as Shared from "../shared.js";
|
|
3
|
+
import * as WorkspacePreferencesAPI from "./workspace-preferences.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
+
export declare class Topics extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a subscription preference topic inside a workspace preference. Fails with
|
|
9
|
+
* 404 if the workspace preference does not exist. The topic id is generated and
|
|
10
|
+
* returned.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const workspacePreferenceTopicGetResponse =
|
|
15
|
+
* await client.workspacePreferences.topics.create(
|
|
16
|
+
* 'section_id',
|
|
17
|
+
* { default_status: 'OPTED_OUT', name: 'Marketing' },
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(sectionID: string, body: TopicCreateParams, options?: RequestOptions): APIPromise<WorkspacePreferencesAPI.WorkspacePreferenceTopicGetResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve a topic within a workspace preference. Returns 404 if the workspace
|
|
24
|
+
* preference does not exist, the topic does not exist, or the topic belongs to a
|
|
25
|
+
* different workspace preference.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const workspacePreferenceTopicGetResponse =
|
|
30
|
+
* await client.workspacePreferences.topics.retrieve(
|
|
31
|
+
* 'topic_id',
|
|
32
|
+
* { section_id: 'section_id' },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(topicID: string, params: TopicRetrieveParams, options?: RequestOptions): APIPromise<WorkspacePreferencesAPI.WorkspacePreferenceTopicGetResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* List the topics in a workspace preference.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const workspacePreferenceTopicListResponse =
|
|
43
|
+
* await client.workspacePreferences.topics.list(
|
|
44
|
+
* 'section_id',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
list(sectionID: string, options?: RequestOptions): APIPromise<WorkspacePreferencesAPI.WorkspacePreferenceTopicListResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Archive a topic and remove it from its workspace preference. Same 404 rules as
|
|
51
|
+
* GET.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* await client.workspacePreferences.topics.archive(
|
|
56
|
+
* 'topic_id',
|
|
57
|
+
* { section_id: 'section_id' },
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
archive(topicID: string, params: TopicArchiveParams, options?: RequestOptions): APIPromise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Replace a topic within a workspace preference. Full document replacement;
|
|
64
|
+
* missing optional fields are cleared. Same 404 rules as GET.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const workspacePreferenceTopicGetResponse =
|
|
69
|
+
* await client.workspacePreferences.topics.replace(
|
|
70
|
+
* 'topic_id',
|
|
71
|
+
* {
|
|
72
|
+
* section_id: 'section_id',
|
|
73
|
+
* default_status: 'OPTED_OUT',
|
|
74
|
+
* name: 'name',
|
|
75
|
+
* },
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
replace(topicID: string, params: TopicReplaceParams, options?: RequestOptions): APIPromise<WorkspacePreferencesAPI.WorkspacePreferenceTopicGetResponse>;
|
|
80
|
+
}
|
|
81
|
+
export interface TopicCreateParams {
|
|
82
|
+
/**
|
|
83
|
+
* The default subscription status applied when a recipient has not set their own.
|
|
84
|
+
*/
|
|
85
|
+
default_status: 'OPTED_OUT' | 'OPTED_IN' | 'REQUIRED';
|
|
86
|
+
/**
|
|
87
|
+
* Human-readable name for the preference topic.
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* Preference controls a recipient may customize for this topic. Defaults to empty
|
|
92
|
+
* if omitted.
|
|
93
|
+
*/
|
|
94
|
+
allowed_preferences?: Array<'snooze' | 'channel_preferences'> | null;
|
|
95
|
+
/**
|
|
96
|
+
* Optional description shown under the topic on the hosted preferences page.
|
|
97
|
+
*/
|
|
98
|
+
description?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Whether to include a list-unsubscribe header on emails for this topic.
|
|
101
|
+
*/
|
|
102
|
+
include_unsubscribe_header?: boolean | null;
|
|
103
|
+
/**
|
|
104
|
+
* Default channels delivered for this topic. Defaults to empty if omitted.
|
|
105
|
+
*/
|
|
106
|
+
routing_options?: Array<Shared.ChannelClassification> | null;
|
|
107
|
+
/**
|
|
108
|
+
* Arbitrary metadata associated with the topic.
|
|
109
|
+
*/
|
|
110
|
+
topic_data?: {
|
|
111
|
+
[key: string]: unknown;
|
|
112
|
+
} | null;
|
|
113
|
+
}
|
|
114
|
+
export interface TopicRetrieveParams {
|
|
115
|
+
/**
|
|
116
|
+
* Id of the workspace preference.
|
|
117
|
+
*/
|
|
118
|
+
section_id: string;
|
|
119
|
+
}
|
|
120
|
+
export interface TopicArchiveParams {
|
|
121
|
+
/**
|
|
122
|
+
* Id of the workspace preference.
|
|
123
|
+
*/
|
|
124
|
+
section_id: string;
|
|
125
|
+
}
|
|
126
|
+
export interface TopicReplaceParams {
|
|
127
|
+
/**
|
|
128
|
+
* Path param: Id of the workspace preference.
|
|
129
|
+
*/
|
|
130
|
+
section_id: string;
|
|
131
|
+
/**
|
|
132
|
+
* Body param: The default subscription status applied when a recipient has not set
|
|
133
|
+
* their own.
|
|
134
|
+
*/
|
|
135
|
+
default_status: 'OPTED_OUT' | 'OPTED_IN' | 'REQUIRED';
|
|
136
|
+
/**
|
|
137
|
+
* Body param: Human-readable name for the preference topic.
|
|
138
|
+
*/
|
|
139
|
+
name: string;
|
|
140
|
+
/**
|
|
141
|
+
* Body param: Preference controls a recipient may customize. Omit to clear.
|
|
142
|
+
*/
|
|
143
|
+
allowed_preferences?: Array<'snooze' | 'channel_preferences'> | null;
|
|
144
|
+
/**
|
|
145
|
+
* Body param: Optional description shown under the topic on the hosted preferences
|
|
146
|
+
* page. Omit to clear.
|
|
147
|
+
*/
|
|
148
|
+
description?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* Body param: Whether to include a list-unsubscribe header on emails for this
|
|
151
|
+
* topic.
|
|
152
|
+
*/
|
|
153
|
+
include_unsubscribe_header?: boolean | null;
|
|
154
|
+
/**
|
|
155
|
+
* Body param: Default channels delivered for this topic. Omit to clear.
|
|
156
|
+
*/
|
|
157
|
+
routing_options?: Array<Shared.ChannelClassification> | null;
|
|
158
|
+
/**
|
|
159
|
+
* Body param: Arbitrary metadata associated with the topic. Omit to clear.
|
|
160
|
+
*/
|
|
161
|
+
topic_data?: {
|
|
162
|
+
[key: string]: unknown;
|
|
163
|
+
} | null;
|
|
164
|
+
}
|
|
165
|
+
export declare namespace Topics {
|
|
166
|
+
export { type TopicCreateParams as TopicCreateParams, type TopicRetrieveParams as TopicRetrieveParams, type TopicArchiveParams as TopicArchiveParams, type TopicReplaceParams as TopicReplaceParams, };
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=topics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topics.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-preferences/topics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,uBAAuB,mCAAgC;AACnE,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC,mCAAmC,CAAC;IAI1E;;;;;;;;;;;;;OAaG;IACH,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC,mCAAmC,CAAC;IAK1E;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC,oCAAoC,CAAC;IAI3E;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQhG;;;;;;;;;;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