@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.
Files changed (188) hide show
  1. package/CHANGELOG.md +123 -0
  2. package/README.md +1 -0
  3. package/client.d.mts +10 -4
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +10 -4
  6. package/client.d.ts.map +1 -1
  7. package/client.js +15 -1
  8. package/client.js.map +1 -1
  9. package/client.mjs +15 -1
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/audiences.d.mts +5 -2
  13. package/resources/audiences.d.mts.map +1 -1
  14. package/resources/audiences.d.ts +5 -2
  15. package/resources/audiences.d.ts.map +1 -1
  16. package/resources/brands.d.mts +35 -2
  17. package/resources/brands.d.mts.map +1 -1
  18. package/resources/brands.d.ts +35 -2
  19. package/resources/brands.d.ts.map +1 -1
  20. package/resources/brands.js +34 -1
  21. package/resources/brands.js.map +1 -1
  22. package/resources/brands.mjs +34 -1
  23. package/resources/brands.mjs.map +1 -1
  24. package/resources/digests/digests.d.mts +94 -0
  25. package/resources/digests/digests.d.mts.map +1 -0
  26. package/resources/digests/digests.d.ts +94 -0
  27. package/resources/digests/digests.d.ts.map +1 -0
  28. package/resources/digests/digests.js +17 -0
  29. package/resources/digests/digests.js.map +1 -0
  30. package/resources/digests/digests.mjs +12 -0
  31. package/resources/digests/digests.mjs.map +1 -0
  32. package/resources/digests/index.d.mts +3 -0
  33. package/resources/digests/index.d.mts.map +1 -0
  34. package/resources/digests/index.d.ts +3 -0
  35. package/resources/digests/index.d.ts.map +1 -0
  36. package/resources/digests/index.js +9 -0
  37. package/resources/digests/index.js.map +1 -0
  38. package/resources/digests/index.mjs +4 -0
  39. package/resources/digests/index.mjs.map +1 -0
  40. package/resources/digests/schedules.d.mts +32 -0
  41. package/resources/digests/schedules.d.mts.map +1 -0
  42. package/resources/digests/schedules.d.ts +32 -0
  43. package/resources/digests/schedules.d.ts.map +1 -0
  44. package/resources/digests/schedules.js +29 -0
  45. package/resources/digests/schedules.js.map +1 -0
  46. package/resources/digests/schedules.mjs +25 -0
  47. package/resources/digests/schedules.mjs.map +1 -0
  48. package/resources/digests.d.mts +2 -0
  49. package/resources/digests.d.mts.map +1 -0
  50. package/resources/digests.d.ts +2 -0
  51. package/resources/digests.d.ts.map +1 -0
  52. package/resources/digests.js +6 -0
  53. package/resources/digests.js.map +1 -0
  54. package/resources/digests.mjs +3 -0
  55. package/resources/digests.mjs.map +1 -0
  56. package/resources/index.d.mts +4 -2
  57. package/resources/index.d.mts.map +1 -1
  58. package/resources/index.d.ts +4 -2
  59. package/resources/index.d.ts.map +1 -1
  60. package/resources/index.js +5 -1
  61. package/resources/index.js.map +1 -1
  62. package/resources/index.mjs +2 -0
  63. package/resources/index.mjs.map +1 -1
  64. package/resources/journeys/index.d.mts +2 -2
  65. package/resources/journeys/index.d.mts.map +1 -1
  66. package/resources/journeys/index.d.ts +2 -2
  67. package/resources/journeys/index.d.ts.map +1 -1
  68. package/resources/journeys/index.js.map +1 -1
  69. package/resources/journeys/index.mjs.map +1 -1
  70. package/resources/journeys/journeys.d.mts +198 -7
  71. package/resources/journeys/journeys.d.mts.map +1 -1
  72. package/resources/journeys/journeys.d.ts +198 -7
  73. package/resources/journeys/journeys.d.ts.map +1 -1
  74. package/resources/journeys/journeys.js +18 -0
  75. package/resources/journeys/journeys.js.map +1 -1
  76. package/resources/journeys/journeys.mjs +18 -0
  77. package/resources/journeys/journeys.mjs.map +1 -1
  78. package/resources/journeys/templates.d.mts +120 -1
  79. package/resources/journeys/templates.d.mts.map +1 -1
  80. package/resources/journeys/templates.d.ts +120 -1
  81. package/resources/journeys/templates.d.ts.map +1 -1
  82. package/resources/journeys/templates.js +71 -0
  83. package/resources/journeys/templates.js.map +1 -1
  84. package/resources/journeys/templates.mjs +71 -0
  85. package/resources/journeys/templates.mjs.map +1 -1
  86. package/resources/messages.d.mts +16 -1
  87. package/resources/messages.d.mts.map +1 -1
  88. package/resources/messages.d.ts +16 -1
  89. package/resources/messages.d.ts.map +1 -1
  90. package/resources/messages.js +10 -0
  91. package/resources/messages.js.map +1 -1
  92. package/resources/messages.mjs +10 -0
  93. package/resources/messages.mjs.map +1 -1
  94. package/resources/notifications/checks.d.mts +3 -3
  95. package/resources/notifications/checks.d.ts +3 -3
  96. package/resources/notifications/checks.js +3 -3
  97. package/resources/notifications/checks.mjs +3 -3
  98. package/resources/notifications/notifications.d.mts +7 -3
  99. package/resources/notifications/notifications.d.mts.map +1 -1
  100. package/resources/notifications/notifications.d.ts +7 -3
  101. package/resources/notifications/notifications.d.ts.map +1 -1
  102. package/resources/notifications/notifications.js +7 -3
  103. package/resources/notifications/notifications.js.map +1 -1
  104. package/resources/notifications/notifications.mjs +7 -3
  105. package/resources/notifications/notifications.mjs.map +1 -1
  106. package/resources/shared.d.mts +6 -0
  107. package/resources/shared.d.mts.map +1 -1
  108. package/resources/shared.d.ts +6 -0
  109. package/resources/shared.d.ts.map +1 -1
  110. package/resources/users/index.d.mts +1 -1
  111. package/resources/users/index.d.mts.map +1 -1
  112. package/resources/users/index.d.ts +1 -1
  113. package/resources/users/index.d.ts.map +1 -1
  114. package/resources/users/index.js.map +1 -1
  115. package/resources/users/index.mjs.map +1 -1
  116. package/resources/users/preferences.d.mts +211 -1
  117. package/resources/users/preferences.d.mts.map +1 -1
  118. package/resources/users/preferences.d.ts +211 -1
  119. package/resources/users/preferences.d.ts.map +1 -1
  120. package/resources/users/preferences.js +105 -0
  121. package/resources/users/preferences.js.map +1 -1
  122. package/resources/users/preferences.mjs +105 -0
  123. package/resources/users/preferences.mjs.map +1 -1
  124. package/resources/users/users.d.mts +2 -2
  125. package/resources/users/users.d.mts.map +1 -1
  126. package/resources/users/users.d.ts +2 -2
  127. package/resources/users/users.d.ts.map +1 -1
  128. package/resources/users/users.js.map +1 -1
  129. package/resources/users/users.mjs.map +1 -1
  130. package/resources/workspace-preferences/index.d.mts +3 -0
  131. package/resources/workspace-preferences/index.d.mts.map +1 -0
  132. package/resources/workspace-preferences/index.d.ts +3 -0
  133. package/resources/workspace-preferences/index.d.ts.map +1 -0
  134. package/resources/workspace-preferences/index.js +9 -0
  135. package/resources/workspace-preferences/index.js.map +1 -0
  136. package/resources/workspace-preferences/index.mjs +4 -0
  137. package/resources/workspace-preferences/index.mjs.map +1 -0
  138. package/resources/workspace-preferences/topics.d.mts +168 -0
  139. package/resources/workspace-preferences/topics.d.mts.map +1 -0
  140. package/resources/workspace-preferences/topics.d.ts +168 -0
  141. package/resources/workspace-preferences/topics.d.ts.map +1 -0
  142. package/resources/workspace-preferences/topics.js +103 -0
  143. package/resources/workspace-preferences/topics.js.map +1 -0
  144. package/resources/workspace-preferences/topics.mjs +99 -0
  145. package/resources/workspace-preferences/topics.mjs.map +1 -0
  146. package/resources/workspace-preferences/workspace-preferences.d.mts +410 -0
  147. package/resources/workspace-preferences/workspace-preferences.d.mts.map +1 -0
  148. package/resources/workspace-preferences/workspace-preferences.d.ts +410 -0
  149. package/resources/workspace-preferences/workspace-preferences.d.ts.map +1 -0
  150. package/resources/workspace-preferences/workspace-preferences.js +104 -0
  151. package/resources/workspace-preferences/workspace-preferences.js.map +1 -0
  152. package/resources/workspace-preferences/workspace-preferences.mjs +99 -0
  153. package/resources/workspace-preferences/workspace-preferences.mjs.map +1 -0
  154. package/resources/workspace-preferences.d.mts +2 -0
  155. package/resources/workspace-preferences.d.mts.map +1 -0
  156. package/resources/workspace-preferences.d.ts +2 -0
  157. package/resources/workspace-preferences.d.ts.map +1 -0
  158. package/resources/workspace-preferences.js +6 -0
  159. package/resources/workspace-preferences.js.map +1 -0
  160. package/resources/workspace-preferences.mjs +3 -0
  161. package/resources/workspace-preferences.mjs.map +1 -0
  162. package/src/client.ts +71 -1
  163. package/src/resources/audiences.ts +5 -2
  164. package/src/resources/brands.ts +36 -3
  165. package/src/resources/digests/digests.ts +120 -0
  166. package/src/resources/digests/index.ts +9 -0
  167. package/src/resources/digests/schedules.ts +51 -0
  168. package/src/resources/digests.ts +3 -0
  169. package/src/resources/index.ts +28 -0
  170. package/src/resources/journeys/index.ts +8 -0
  171. package/src/resources/journeys/journeys.ts +246 -4
  172. package/src/resources/journeys/templates.ts +168 -0
  173. package/src/resources/messages.ts +20 -0
  174. package/src/resources/notifications/checks.ts +3 -3
  175. package/src/resources/notifications/notifications.ts +7 -3
  176. package/src/resources/shared.ts +7 -0
  177. package/src/resources/users/index.ts +6 -0
  178. package/src/resources/users/preferences.ts +269 -0
  179. package/src/resources/users/users.ts +12 -0
  180. package/src/resources/workspace-preferences/index.ts +25 -0
  181. package/src/resources/workspace-preferences/topics.ts +229 -0
  182. package/src/resources/workspace-preferences/workspace-preferences.ts +534 -0
  183. package/src/resources/workspace-preferences.ts +3 -0
  184. package/src/version.ts +1 -1
  185. package/version.d.mts +1 -1
  186. package/version.d.ts +1 -1
  187. package/version.js +1 -1
  188. 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;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;OASG;IACH,QAAQ,CACN,MAAc,EACd,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;OAUG;IACH,aAAa,CACX,OAAe,EACf,MAAqC,EACrC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG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H,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,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3C,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.mts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,0BAAsB;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,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,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAMD,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1,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":"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,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,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,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AAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDASuB;AACvB,iEAAwC;AACxC,0CAOmB;AACnB,+DAAsC;AACtC,wCASkB;AAElB,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAJD,sBAIC;AAED,KAAK,CAAC,WAAW,GAAG,yBAAW,CAAC;AAChC,KAAK,CAAC,OAAO,GAAG,iBAAO,CAAC;AACxB,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC"}
1
+ {"version":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,EAOL,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"}
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,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Topics, } from "./topics.mjs";
3
+ export { WorkspacePreferences, } from "./workspace-preferences.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -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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G;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,mBAAmB,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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