@trycourier/courier 7.20.0 → 7.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +57 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +57 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +57 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +57 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/audiences.d.mts +13 -5
  12. package/resources/audiences.d.mts.map +1 -1
  13. package/resources/audiences.d.ts +13 -5
  14. package/resources/audiences.d.ts.map +1 -1
  15. package/resources/audiences.js +13 -5
  16. package/resources/audiences.js.map +1 -1
  17. package/resources/audiences.mjs +13 -5
  18. package/resources/audiences.mjs.map +1 -1
  19. package/resources/audit-events.d.mts +7 -2
  20. package/resources/audit-events.d.mts.map +1 -1
  21. package/resources/audit-events.d.ts +7 -2
  22. package/resources/audit-events.d.ts.map +1 -1
  23. package/resources/audit-events.js +7 -2
  24. package/resources/audit-events.js.map +1 -1
  25. package/resources/audit-events.mjs +7 -2
  26. package/resources/audit-events.mjs.map +1 -1
  27. package/resources/auth.d.mts +5 -1
  28. package/resources/auth.d.mts.map +1 -1
  29. package/resources/auth.d.ts +5 -1
  30. package/resources/auth.d.ts.map +1 -1
  31. package/resources/auth.js +5 -1
  32. package/resources/auth.js.map +1 -1
  33. package/resources/auth.mjs +5 -1
  34. package/resources/auth.mjs.map +1 -1
  35. package/resources/automations/automations.d.mts +5 -1
  36. package/resources/automations/automations.d.mts.map +1 -1
  37. package/resources/automations/automations.d.ts +5 -1
  38. package/resources/automations/automations.d.ts.map +1 -1
  39. package/resources/automations/automations.js +5 -1
  40. package/resources/automations/automations.js.map +1 -1
  41. package/resources/automations/automations.mjs +5 -1
  42. package/resources/automations/automations.mjs.map +1 -1
  43. package/resources/automations/invoke.d.mts +74 -7
  44. package/resources/automations/invoke.d.mts.map +1 -1
  45. package/resources/automations/invoke.d.ts +74 -7
  46. package/resources/automations/invoke.d.ts.map +1 -1
  47. package/resources/automations/invoke.js +38 -9
  48. package/resources/automations/invoke.js.map +1 -1
  49. package/resources/automations/invoke.mjs +38 -9
  50. package/resources/automations/invoke.mjs.map +1 -1
  51. package/resources/brands.d.mts +42 -7
  52. package/resources/brands.d.mts.map +1 -1
  53. package/resources/brands.d.ts +42 -7
  54. package/resources/brands.d.ts.map +1 -1
  55. package/resources/brands.js +28 -8
  56. package/resources/brands.js.map +1 -1
  57. package/resources/brands.mjs +28 -8
  58. package/resources/brands.mjs.map +1 -1
  59. package/resources/digests/schedules.d.mts +5 -3
  60. package/resources/digests/schedules.d.mts.map +1 -1
  61. package/resources/digests/schedules.d.ts +5 -3
  62. package/resources/digests/schedules.d.ts.map +1 -1
  63. package/resources/digests/schedules.js +5 -3
  64. package/resources/digests/schedules.js.map +1 -1
  65. package/resources/digests/schedules.mjs +5 -3
  66. package/resources/digests/schedules.mjs.map +1 -1
  67. package/resources/inbound.d.mts +5 -1
  68. package/resources/inbound.d.mts.map +1 -1
  69. package/resources/inbound.d.ts +5 -1
  70. package/resources/inbound.d.ts.map +1 -1
  71. package/resources/inbound.js +5 -1
  72. package/resources/inbound.js.map +1 -1
  73. package/resources/inbound.mjs +5 -1
  74. package/resources/inbound.mjs.map +1 -1
  75. package/resources/inbox/inbox.d.mts +10 -0
  76. package/resources/inbox/inbox.d.mts.map +1 -0
  77. package/resources/inbox/inbox.d.ts +10 -0
  78. package/resources/inbox/inbox.d.ts.map +1 -0
  79. package/resources/inbox/inbox.js +17 -0
  80. package/resources/inbox/inbox.js.map +1 -0
  81. package/resources/inbox/inbox.mjs +12 -0
  82. package/resources/inbox/inbox.mjs.map +1 -0
  83. package/resources/inbox/index.d.mts +3 -0
  84. package/resources/inbox/index.d.mts.map +1 -0
  85. package/resources/inbox/index.d.ts +3 -0
  86. package/resources/inbox/index.d.ts.map +1 -0
  87. package/resources/inbox/index.js +9 -0
  88. package/resources/inbox/index.js.map +1 -0
  89. package/resources/inbox/index.mjs +4 -0
  90. package/resources/inbox/index.mjs.map +1 -0
  91. package/resources/inbox/messages.d.mts +23 -0
  92. package/resources/inbox/messages.d.mts.map +1 -0
  93. package/resources/inbox/messages.d.ts +23 -0
  94. package/resources/inbox/messages.d.ts.map +1 -0
  95. package/resources/inbox/messages.js +34 -0
  96. package/resources/inbox/messages.js.map +1 -0
  97. package/resources/inbox/messages.mjs +30 -0
  98. package/resources/inbox/messages.mjs.map +1 -0
  99. package/resources/inbox.d.mts +2 -0
  100. package/resources/inbox.d.mts.map +1 -0
  101. package/resources/inbox.d.ts +2 -0
  102. package/resources/inbox.d.ts.map +1 -0
  103. package/resources/inbox.js +6 -0
  104. package/resources/inbox.js.map +1 -0
  105. package/resources/inbox.mjs +3 -0
  106. package/resources/inbox.mjs.map +1 -0
  107. package/resources/index.d.mts +1 -1
  108. package/resources/index.d.mts.map +1 -1
  109. package/resources/index.d.ts +1 -1
  110. package/resources/index.d.ts.map +1 -1
  111. package/resources/index.js +3 -3
  112. package/resources/index.js.map +1 -1
  113. package/resources/index.mjs +1 -1
  114. package/resources/index.mjs.map +1 -1
  115. package/resources/journeys/journeys.d.mts +130 -39
  116. package/resources/journeys/journeys.d.mts.map +1 -1
  117. package/resources/journeys/journeys.d.ts +130 -39
  118. package/resources/journeys/journeys.d.ts.map +1 -1
  119. package/resources/journeys/journeys.js +79 -34
  120. package/resources/journeys/journeys.js.map +1 -1
  121. package/resources/journeys/journeys.mjs +79 -34
  122. package/resources/journeys/journeys.mjs.map +1 -1
  123. package/resources/journeys/templates.d.mts +60 -17
  124. package/resources/journeys/templates.d.mts.map +1 -1
  125. package/resources/journeys/templates.d.ts +60 -17
  126. package/resources/journeys/templates.d.ts.map +1 -1
  127. package/resources/journeys/templates.js +41 -20
  128. package/resources/journeys/templates.js.map +1 -1
  129. package/resources/journeys/templates.mjs +41 -20
  130. package/resources/journeys/templates.mjs.map +1 -1
  131. package/resources/lists/lists.d.mts +40 -5
  132. package/resources/lists/lists.d.mts.map +1 -1
  133. package/resources/lists/lists.d.ts +40 -5
  134. package/resources/lists/lists.d.ts.map +1 -1
  135. package/resources/lists/lists.js +40 -5
  136. package/resources/lists/lists.js.map +1 -1
  137. package/resources/lists/lists.mjs +40 -5
  138. package/resources/lists/lists.mjs.map +1 -1
  139. package/resources/lists/subscriptions.d.mts +65 -5
  140. package/resources/lists/subscriptions.d.mts.map +1 -1
  141. package/resources/lists/subscriptions.d.ts +65 -5
  142. package/resources/lists/subscriptions.d.ts.map +1 -1
  143. package/resources/lists/subscriptions.js +57 -6
  144. package/resources/lists/subscriptions.js.map +1 -1
  145. package/resources/lists/subscriptions.mjs +57 -6
  146. package/resources/lists/subscriptions.mjs.map +1 -1
  147. package/resources/messages.d.mts +15 -14
  148. package/resources/messages.d.mts.map +1 -1
  149. package/resources/messages.d.ts +15 -14
  150. package/resources/messages.d.ts.map +1 -1
  151. package/resources/messages.js +15 -14
  152. package/resources/messages.js.map +1 -1
  153. package/resources/messages.mjs +15 -14
  154. package/resources/messages.mjs.map +1 -1
  155. package/resources/notifications/checks.d.mts +9 -3
  156. package/resources/notifications/checks.d.mts.map +1 -1
  157. package/resources/notifications/checks.d.ts +9 -3
  158. package/resources/notifications/checks.d.ts.map +1 -1
  159. package/resources/notifications/checks.js +9 -3
  160. package/resources/notifications/checks.js.map +1 -1
  161. package/resources/notifications/checks.mjs +9 -3
  162. package/resources/notifications/checks.mjs.map +1 -1
  163. package/resources/notifications/notifications.d.mts +62 -29
  164. package/resources/notifications/notifications.d.mts.map +1 -1
  165. package/resources/notifications/notifications.d.ts +62 -29
  166. package/resources/notifications/notifications.d.ts.map +1 -1
  167. package/resources/notifications/notifications.js +49 -26
  168. package/resources/notifications/notifications.js.map +1 -1
  169. package/resources/notifications/notifications.mjs +49 -26
  170. package/resources/notifications/notifications.mjs.map +1 -1
  171. package/resources/profiles/lists.d.mts +49 -5
  172. package/resources/profiles/lists.d.mts.map +1 -1
  173. package/resources/profiles/lists.d.ts +49 -5
  174. package/resources/profiles/lists.d.ts.map +1 -1
  175. package/resources/profiles/lists.js +45 -6
  176. package/resources/profiles/lists.js.map +1 -1
  177. package/resources/profiles/lists.mjs +45 -6
  178. package/resources/profiles/lists.mjs.map +1 -1
  179. package/resources/profiles/profiles.d.mts +70 -11
  180. package/resources/profiles/profiles.d.mts.map +1 -1
  181. package/resources/profiles/profiles.d.ts +70 -11
  182. package/resources/profiles/profiles.d.ts.map +1 -1
  183. package/resources/profiles/profiles.js +65 -12
  184. package/resources/profiles/profiles.js.map +1 -1
  185. package/resources/profiles/profiles.mjs +65 -12
  186. package/resources/profiles/profiles.mjs.map +1 -1
  187. package/resources/providers/catalog.d.mts +10 -4
  188. package/resources/providers/catalog.d.mts.map +1 -1
  189. package/resources/providers/catalog.d.ts +10 -4
  190. package/resources/providers/catalog.d.ts.map +1 -1
  191. package/resources/providers/catalog.js +10 -4
  192. package/resources/providers/catalog.js.map +1 -1
  193. package/resources/providers/catalog.mjs +10 -4
  194. package/resources/providers/catalog.mjs.map +1 -1
  195. package/resources/providers/providers.d.mts +68 -22
  196. package/resources/providers/providers.d.mts.map +1 -1
  197. package/resources/providers/providers.d.ts +68 -22
  198. package/resources/providers/providers.d.ts.map +1 -1
  199. package/resources/providers/providers.js +57 -14
  200. package/resources/providers/providers.js.map +1 -1
  201. package/resources/providers/providers.mjs +57 -14
  202. package/resources/providers/providers.mjs.map +1 -1
  203. package/resources/requests.d.mts +5 -1
  204. package/resources/requests.d.mts.map +1 -1
  205. package/resources/requests.d.ts +5 -1
  206. package/resources/requests.d.ts.map +1 -1
  207. package/resources/requests.js +5 -1
  208. package/resources/requests.js.map +1 -1
  209. package/resources/requests.mjs +5 -1
  210. package/resources/requests.mjs.map +1 -1
  211. package/resources/routing-strategies.d.mts +30 -11
  212. package/resources/routing-strategies.d.mts.map +1 -1
  213. package/resources/routing-strategies.d.ts +30 -11
  214. package/resources/routing-strategies.d.ts.map +1 -1
  215. package/resources/routing-strategies.js +22 -6
  216. package/resources/routing-strategies.js.map +1 -1
  217. package/resources/routing-strategies.mjs +22 -6
  218. package/resources/routing-strategies.mjs.map +1 -1
  219. package/resources/send.d.mts +24 -4
  220. package/resources/send.d.mts.map +1 -1
  221. package/resources/send.d.ts +24 -4
  222. package/resources/send.d.ts.map +1 -1
  223. package/resources/send.js +21 -3
  224. package/resources/send.js.map +1 -1
  225. package/resources/send.mjs +21 -3
  226. package/resources/send.mjs.map +1 -1
  227. package/resources/tenants/preferences/items.d.mts +7 -2
  228. package/resources/tenants/preferences/items.d.mts.map +1 -1
  229. package/resources/tenants/preferences/items.d.ts +7 -2
  230. package/resources/tenants/preferences/items.d.ts.map +1 -1
  231. package/resources/tenants/preferences/items.js +7 -2
  232. package/resources/tenants/preferences/items.js.map +1 -1
  233. package/resources/tenants/preferences/items.mjs +7 -2
  234. package/resources/tenants/preferences/items.mjs.map +1 -1
  235. package/resources/tenants/templates/templates.d.mts +13 -19
  236. package/resources/tenants/templates/templates.d.mts.map +1 -1
  237. package/resources/tenants/templates/templates.d.ts +13 -19
  238. package/resources/tenants/templates/templates.d.ts.map +1 -1
  239. package/resources/tenants/templates/templates.js +13 -19
  240. package/resources/tenants/templates/templates.js.map +1 -1
  241. package/resources/tenants/templates/templates.mjs +13 -19
  242. package/resources/tenants/templates/templates.mjs.map +1 -1
  243. package/resources/tenants/templates/versions.d.mts +5 -7
  244. package/resources/tenants/templates/versions.d.mts.map +1 -1
  245. package/resources/tenants/templates/versions.d.ts +5 -7
  246. package/resources/tenants/templates/versions.d.ts.map +1 -1
  247. package/resources/tenants/templates/versions.js +5 -7
  248. package/resources/tenants/templates/versions.js.map +1 -1
  249. package/resources/tenants/templates/versions.mjs +5 -7
  250. package/resources/tenants/templates/versions.mjs.map +1 -1
  251. package/resources/tenants/tenants.d.mts +13 -5
  252. package/resources/tenants/tenants.d.mts.map +1 -1
  253. package/resources/tenants/tenants.d.ts +13 -5
  254. package/resources/tenants/tenants.d.ts.map +1 -1
  255. package/resources/tenants/tenants.js +13 -5
  256. package/resources/tenants/tenants.js.map +1 -1
  257. package/resources/tenants/tenants.mjs +13 -5
  258. package/resources/tenants/tenants.mjs.map +1 -1
  259. package/resources/translations.d.mts +7 -2
  260. package/resources/translations.d.mts.map +1 -1
  261. package/resources/translations.d.ts +7 -2
  262. package/resources/translations.d.ts.map +1 -1
  263. package/resources/translations.js +7 -2
  264. package/resources/translations.js.map +1 -1
  265. package/resources/translations.mjs +7 -2
  266. package/resources/translations.mjs.map +1 -1
  267. package/resources/users/preferences.d.mts +64 -42
  268. package/resources/users/preferences.d.mts.map +1 -1
  269. package/resources/users/preferences.d.ts +64 -42
  270. package/resources/users/preferences.d.ts.map +1 -1
  271. package/resources/users/preferences.js +30 -42
  272. package/resources/users/preferences.js.map +1 -1
  273. package/resources/users/preferences.mjs +30 -42
  274. package/resources/users/preferences.mjs.map +1 -1
  275. package/resources/users/tenants.d.mts +13 -10
  276. package/resources/users/tenants.d.mts.map +1 -1
  277. package/resources/users/tenants.d.ts +13 -10
  278. package/resources/users/tenants.d.ts.map +1 -1
  279. package/resources/users/tenants.js +13 -10
  280. package/resources/users/tenants.js.map +1 -1
  281. package/resources/users/tenants.mjs +13 -10
  282. package/resources/users/tenants.mjs.map +1 -1
  283. package/resources/users/tokens.d.mts +15 -6
  284. package/resources/users/tokens.d.mts.map +1 -1
  285. package/resources/users/tokens.d.ts +15 -6
  286. package/resources/users/tokens.d.ts.map +1 -1
  287. package/resources/users/tokens.js +15 -6
  288. package/resources/users/tokens.js.map +1 -1
  289. package/resources/users/tokens.mjs +15 -6
  290. package/resources/users/tokens.mjs.map +1 -1
  291. package/resources/workspace-preferences/topics.d.mts +40 -18
  292. package/resources/workspace-preferences/topics.d.mts.map +1 -1
  293. package/resources/workspace-preferences/topics.d.ts +40 -18
  294. package/resources/workspace-preferences/topics.d.ts.map +1 -1
  295. package/resources/workspace-preferences/topics.js +26 -11
  296. package/resources/workspace-preferences/topics.js.map +1 -1
  297. package/resources/workspace-preferences/topics.mjs +26 -11
  298. package/resources/workspace-preferences/topics.mjs.map +1 -1
  299. package/resources/workspace-preferences/workspace-preferences.d.mts +56 -19
  300. package/resources/workspace-preferences/workspace-preferences.d.mts.map +1 -1
  301. package/resources/workspace-preferences/workspace-preferences.d.ts +56 -19
  302. package/resources/workspace-preferences/workspace-preferences.d.ts.map +1 -1
  303. package/resources/workspace-preferences/workspace-preferences.js +41 -13
  304. package/resources/workspace-preferences/workspace-preferences.js.map +1 -1
  305. package/resources/workspace-preferences/workspace-preferences.mjs +41 -13
  306. package/resources/workspace-preferences/workspace-preferences.mjs.map +1 -1
  307. package/src/client.ts +59 -25
  308. package/src/resources/audiences.ts +13 -5
  309. package/src/resources/audit-events.ts +7 -2
  310. package/src/resources/auth.ts +5 -1
  311. package/src/resources/automations/automations.ts +5 -1
  312. package/src/resources/automations/invoke.ts +115 -9
  313. package/src/resources/brands.ts +62 -8
  314. package/src/resources/digests/schedules.ts +5 -3
  315. package/src/resources/inbound.ts +5 -1
  316. package/src/resources/inbox/inbox.ts +15 -0
  317. package/src/resources/inbox/index.ts +4 -0
  318. package/src/resources/inbox/messages.ts +40 -0
  319. package/src/resources/inbox.ts +3 -0
  320. package/src/resources/index.ts +1 -11
  321. package/src/resources/journeys/journeys.ts +212 -43
  322. package/src/resources/journeys/templates.ts +98 -20
  323. package/src/resources/lists/lists.ts +40 -5
  324. package/src/resources/lists/subscriptions.ts +82 -6
  325. package/src/resources/messages.ts +15 -14
  326. package/src/resources/notifications/checks.ts +9 -3
  327. package/src/resources/notifications/notifications.ts +102 -31
  328. package/src/resources/profiles/lists.ts +70 -6
  329. package/src/resources/profiles/profiles.ts +90 -12
  330. package/src/resources/providers/catalog.ts +10 -4
  331. package/src/resources/providers/providers.ts +86 -21
  332. package/src/resources/requests.ts +5 -1
  333. package/src/resources/routing-strategies.ts +50 -12
  334. package/src/resources/send.ts +45 -5
  335. package/src/resources/tenants/preferences/items.ts +7 -2
  336. package/src/resources/tenants/templates/templates.ts +13 -19
  337. package/src/resources/tenants/templates/versions.ts +5 -7
  338. package/src/resources/tenants/tenants.ts +13 -5
  339. package/src/resources/translations.ts +7 -2
  340. package/src/resources/users/preferences.ts +86 -44
  341. package/src/resources/users/tenants.ts +13 -10
  342. package/src/resources/users/tokens.ts +15 -6
  343. package/src/resources/workspace-preferences/topics.ts +60 -19
  344. package/src/resources/workspace-preferences/workspace-preferences.ts +96 -21
  345. package/src/version.ts +1 -1
  346. package/version.d.mts +1 -1
  347. package/version.d.ts +1 -1
  348. package/version.js +1 -1
  349. package/version.mjs +1 -1
  350. package/resources/bulk.d.mts +0 -155
  351. package/resources/bulk.d.mts.map +0 -1
  352. package/resources/bulk.d.ts +0 -155
  353. package/resources/bulk.d.ts.map +0 -1
  354. package/resources/bulk.js +0 -58
  355. package/resources/bulk.js.map +0 -1
  356. package/resources/bulk.mjs +0 -54
  357. package/resources/bulk.mjs.map +0 -1
  358. package/src/resources/bulk.ts +0 -210
@@ -2,11 +2,13 @@
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import { buildHeaders } from "../../internal/headers.mjs";
4
4
  import { path } from "../../internal/utils/path.mjs";
5
+ /**
6
+ * Manage the workspace catalog of subscription topics, the sections that group them, and publishing the preference page.
7
+ */
5
8
  export class Topics extends APIResource {
6
9
  /**
7
- * Create a subscription preference topic inside a workspace preference. Fails with
8
- * 404 if the workspace preference does not exist. The topic id is generated and
9
- * returned.
10
+ * Creates a subscription topic inside a workspace preference. The default status
11
+ * sets whether users start opted in, opted out, or required.
10
12
  *
11
13
  * @example
12
14
  * ```ts
@@ -17,13 +19,25 @@ export class Topics extends APIResource {
17
19
  * );
18
20
  * ```
19
21
  */
20
- create(sectionID, body, options) {
21
- return this._client.post(path `/preferences/sections/${sectionID}/topics`, { body, ...options });
22
+ create(sectionID, params, options) {
23
+ const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params;
24
+ return this._client.post(path `/preferences/sections/${sectionID}/topics`, {
25
+ body,
26
+ ...options,
27
+ headers: buildHeaders([
28
+ {
29
+ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
30
+ ...(xIdempotencyExpiration != null ?
31
+ { 'x-idempotency-expiration': xIdempotencyExpiration }
32
+ : undefined),
33
+ },
34
+ options?.headers,
35
+ ]),
36
+ });
22
37
  }
23
38
  /**
24
- * Retrieve a topic within a workspace preference. Returns 404 if the workspace
25
- * preference does not exist, the topic does not exist, or the topic belongs to a
26
- * different workspace preference.
39
+ * Returns one subscription topic with its default status, routing options, allowed
40
+ * preferences, and unsubscribe header setting.
27
41
  *
28
42
  * @example
29
43
  * ```ts
@@ -39,7 +53,8 @@ export class Topics extends APIResource {
39
53
  return this._client.get(path `/preferences/sections/${section_id}/topics/${topicID}`, options);
40
54
  }
41
55
  /**
42
- * List the topics in a workspace preference.
56
+ * Returns the subscription topics inside a workspace preference, each with its
57
+ * default status and routing options.
43
58
  *
44
59
  * @example
45
60
  * ```ts
@@ -53,8 +68,8 @@ export class Topics extends APIResource {
53
68
  return this._client.get(path `/preferences/sections/${sectionID}/topics`, options);
54
69
  }
55
70
  /**
56
- * Archive a topic and remove it from its workspace preference. Same 404 rules as
57
- * GET.
71
+ * Archives a subscription topic and removes it from its workspace preference,
72
+ * addressed by section id and topic id.
58
73
  *
59
74
  * @example
60
75
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"topics.mjs","sourceRoot":"","sources":["../../src/resources/workspace-preferences/topics.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAuB,EACvB,OAAwB;Q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;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"topics.mjs","sourceRoot":"","sources":["../../src/resources/workspace-preferences/topics.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,SAAiB,EACjB,MAAyB,EACzB,OAAwB;QAExB,MAAM,EACJ,iBAAiB,EAAE,cAAc,EACjC,0BAA0B,EAAE,sBAAsB,EAClD,GAAG,IAAI,EACR,GAAG,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,yBAAyB,SAAS,SAAS,EAAE;YACxE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,sBAAsB,IAAI,IAAI,CAAC,CAAC;wBAClC,EAAE,0BAA0B,EAAE,sBAAsB,EAAE;wBACxD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,OAAe,EACf,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,UAAU,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,SAAiB,EACjB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,OAAe,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,UAAU,WAAW,OAAO,EAAE,EAAE;YACtF,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;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CACL,OAAe,EACf,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,UAAU,WAAW,OAAO,EAAE,EAAE;YACnF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -4,12 +4,14 @@ import * as TopicsAPI from "./topics.mjs";
4
4
  import { TopicArchiveParams, TopicCreateParams, TopicReplaceParams, TopicRetrieveParams, Topics } from "./topics.mjs";
5
5
  import { APIPromise } from "../../core/api-promise.mjs";
6
6
  import { RequestOptions } from "../../internal/request-options.mjs";
7
+ /**
8
+ * Manage the workspace catalog of subscription topics, the sections that group them, and publishing the preference page.
9
+ */
7
10
  export declare class WorkspacePreferences extends APIResource {
8
11
  topics: TopicsAPI.Topics;
9
12
  /**
10
- * Create a workspace preference. The workspace preference id is generated and
11
- * returned. Topics are created inside a workspace preference via POST
12
- * /preferences/sections/{section_id}/topics.
13
+ * Creates a workspace preference and returns its generated id. Add subscription
14
+ * topics to it afterwards with the topics endpoint.
13
15
  *
14
16
  * @example
15
17
  * ```ts
@@ -19,9 +21,10 @@ export declare class WorkspacePreferences extends APIResource {
19
21
  * });
20
22
  * ```
21
23
  */
22
- create(body: WorkspacePreferenceCreateParams, options?: RequestOptions): APIPromise<WorkspacePreferenceGetResponse>;
24
+ create(params: WorkspacePreferenceCreateParams, options?: RequestOptions): APIPromise<WorkspacePreferenceGetResponse>;
23
25
  /**
24
- * Retrieve a workspace preference by id, including its topics.
26
+ * Returns one workspace preference by id, including its subscription topics,
27
+ * routing options, and custom routing flag.
25
28
  *
26
29
  * @example
27
30
  * ```ts
@@ -31,8 +34,8 @@ export declare class WorkspacePreferences extends APIResource {
31
34
  */
32
35
  retrieve(sectionID: string, options?: RequestOptions): APIPromise<WorkspacePreferenceGetResponse>;
33
36
  /**
34
- * List the workspace's preferences. Each workspace preference embeds its topics.
35
- * Scoped to the workspace of the API key.
37
+ * Returns the workspace's preferences, each embedding its subscription topics,
38
+ * routing options, and whether custom routing is allowed.
36
39
  *
37
40
  * @example
38
41
  * ```ts
@@ -52,9 +55,8 @@ export declare class WorkspacePreferences extends APIResource {
52
55
  */
53
56
  archive(sectionID: string, options?: RequestOptions): APIPromise<void>;
54
57
  /**
55
- * Publish the workspace's preferences page. Takes a snapshot of every workspace
56
- * preference with its topics under a new published version, making the current
57
- * state visible on the hosted preferences page (non-draft).
58
+ * Publishes the workspace preference page, snapshotting every preference and
59
+ * topic, and returns the page id and a preview URL.
58
60
  *
59
61
  * @example
60
62
  * ```ts
@@ -62,7 +64,7 @@ export declare class WorkspacePreferences extends APIResource {
62
64
  * await client.workspacePreferences.publish();
63
65
  * ```
64
66
  */
65
- publish(body?: WorkspacePreferencePublishParams | null | undefined, options?: RequestOptions): APIPromise<PublishPreferencesResponse>;
67
+ publish(params?: WorkspacePreferencePublishParams | null | undefined, options?: RequestOptions): APIPromise<PublishPreferencesResponse>;
66
68
  /**
67
69
  * Replace a workspace preference. Full document replacement; missing optional
68
70
  * fields are cleared. Topics attached to the workspace preference are unaffected.
@@ -353,36 +355,71 @@ export interface WorkspacePreferenceTopicReplaceRequest {
353
355
  }
354
356
  export interface WorkspacePreferenceCreateParams {
355
357
  /**
356
- * Human-readable name for the workspace preference.
358
+ * Body param: Human-readable name for the workspace preference.
357
359
  */
358
360
  name: string;
359
361
  /**
360
- * Optional description shown under the section on the hosted preferences page.
362
+ * Body param: Optional description shown under the section on the hosted
363
+ * preferences page.
361
364
  */
362
365
  description?: string | null;
363
366
  /**
364
- * Whether the workspace preference defines custom routing for its topics.
367
+ * Body param: Whether the workspace preference defines custom routing for its
368
+ * topics.
365
369
  */
366
370
  has_custom_routing?: boolean | null;
367
371
  /**
368
- * Default channels for the workspace preference. Defaults to empty if omitted.
372
+ * Body param: Default channels for the workspace preference. Defaults to empty if
373
+ * omitted.
369
374
  */
370
375
  routing_options?: Array<Shared.ChannelClassification> | null;
376
+ /**
377
+ * Header param: A unique key that makes this request idempotent. If Courier
378
+ * receives another request with the same `Idempotency-Key`, it returns the stored
379
+ * response from the first request without performing the operation again
380
+ * (including the original status code and any error). Use it to safely retry
381
+ * `POST` requests after network failures without risking duplicate sends. The key
382
+ * is scoped to this endpoint.
383
+ */
384
+ 'Idempotency-Key'?: string;
385
+ /**
386
+ * Header param: How long the idempotency key remains valid, as a Unix epoch
387
+ * timestamp in seconds or an ISO 8601 date string. Only applies when
388
+ * `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
389
+ * maximum is 1 year.
390
+ */
391
+ 'x-idempotency-expiration'?: string;
371
392
  }
372
393
  export interface WorkspacePreferencePublishParams {
373
394
  /**
374
- * Brand for the hosted page - "default" (workspace default brand), "none" (no
375
- * brand), or a specific brand id. Defaults to "default".
395
+ * Body param: Brand for the hosted page - "default" (workspace default brand),
396
+ * "none" (no brand), or a specific brand id. Defaults to "default".
376
397
  */
377
398
  brand_id?: string | null;
378
399
  /**
379
- * Description shown under the heading on the hosted preferences page.
400
+ * Body param: Description shown under the heading on the hosted preferences page.
380
401
  */
381
402
  description?: string | null;
382
403
  /**
383
- * Heading shown at the top of the hosted preferences page.
404
+ * Body param: Heading shown at the top of the hosted preferences page.
384
405
  */
385
406
  heading?: string | null;
407
+ /**
408
+ * Header param: A unique key that makes this request idempotent. If Courier
409
+ * receives another request with the same `Idempotency-Key`, it returns the stored
410
+ * response from the first request without performing the operation again
411
+ * (including the original status code and any error). Use it to safely retry
412
+ * `POST` requests after network failures without risking duplicate sends. The key
413
+ * is scoped to this endpoint.
414
+ */
415
+ 'Idempotency-Key'?: string;
416
+ /**
417
+ * Header param: How long the idempotency key remains valid, as a Unix epoch
418
+ * timestamp in seconds or an ISO 8601 date string. Only applies when
419
+ * `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
420
+ * maximum is 1 year.
421
+ */
422
+ 'x-idempotency-expiration'?: string;
386
423
  }
387
424
  export interface WorkspacePreferenceReplaceParams {
388
425
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-preferences.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-preferences/workspace-preferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,MAAM,EACP,qBAAiB;AAClB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,oBAAqB,SAAQ,WAAW;IACnD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;;;;;;;OAQG;IACH,QAAQ,CAAC,SAAS,EAAE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CACzB;AAED,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;CAC9D;AAID,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
1
+ {"version":3,"file":"workspace-preferences.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-preferences/workspace-preferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,SAAS,qBAAiB;AACtC,OA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KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -4,12 +4,14 @@ import * as TopicsAPI from "./topics.js";
4
4
  import { TopicArchiveParams, TopicCreateParams, TopicReplaceParams, TopicRetrieveParams, Topics } from "./topics.js";
5
5
  import { APIPromise } from "../../core/api-promise.js";
6
6
  import { RequestOptions } from "../../internal/request-options.js";
7
+ /**
8
+ * Manage the workspace catalog of subscription topics, the sections that group them, and publishing the preference page.
9
+ */
7
10
  export declare class WorkspacePreferences extends APIResource {
8
11
  topics: TopicsAPI.Topics;
9
12
  /**
10
- * Create a workspace preference. The workspace preference id is generated and
11
- * returned. Topics are created inside a workspace preference via POST
12
- * /preferences/sections/{section_id}/topics.
13
+ * Creates a workspace preference and returns its generated id. Add subscription
14
+ * topics to it afterwards with the topics endpoint.
13
15
  *
14
16
  * @example
15
17
  * ```ts
@@ -19,9 +21,10 @@ export declare class WorkspacePreferences extends APIResource {
19
21
  * });
20
22
  * ```
21
23
  */
22
- create(body: WorkspacePreferenceCreateParams, options?: RequestOptions): APIPromise<WorkspacePreferenceGetResponse>;
24
+ create(params: WorkspacePreferenceCreateParams, options?: RequestOptions): APIPromise<WorkspacePreferenceGetResponse>;
23
25
  /**
24
- * Retrieve a workspace preference by id, including its topics.
26
+ * Returns one workspace preference by id, including its subscription topics,
27
+ * routing options, and custom routing flag.
25
28
  *
26
29
  * @example
27
30
  * ```ts
@@ -31,8 +34,8 @@ export declare class WorkspacePreferences extends APIResource {
31
34
  */
32
35
  retrieve(sectionID: string, options?: RequestOptions): APIPromise<WorkspacePreferenceGetResponse>;
33
36
  /**
34
- * List the workspace's preferences. Each workspace preference embeds its topics.
35
- * Scoped to the workspace of the API key.
37
+ * Returns the workspace's preferences, each embedding its subscription topics,
38
+ * routing options, and whether custom routing is allowed.
36
39
  *
37
40
  * @example
38
41
  * ```ts
@@ -52,9 +55,8 @@ export declare class WorkspacePreferences extends APIResource {
52
55
  */
53
56
  archive(sectionID: string, options?: RequestOptions): APIPromise<void>;
54
57
  /**
55
- * Publish the workspace's preferences page. Takes a snapshot of every workspace
56
- * preference with its topics under a new published version, making the current
57
- * state visible on the hosted preferences page (non-draft).
58
+ * Publishes the workspace preference page, snapshotting every preference and
59
+ * topic, and returns the page id and a preview URL.
58
60
  *
59
61
  * @example
60
62
  * ```ts
@@ -62,7 +64,7 @@ export declare class WorkspacePreferences extends APIResource {
62
64
  * await client.workspacePreferences.publish();
63
65
  * ```
64
66
  */
65
- publish(body?: WorkspacePreferencePublishParams | null | undefined, options?: RequestOptions): APIPromise<PublishPreferencesResponse>;
67
+ publish(params?: WorkspacePreferencePublishParams | null | undefined, options?: RequestOptions): APIPromise<PublishPreferencesResponse>;
66
68
  /**
67
69
  * Replace a workspace preference. Full document replacement; missing optional
68
70
  * fields are cleared. Topics attached to the workspace preference are unaffected.
@@ -353,36 +355,71 @@ export interface WorkspacePreferenceTopicReplaceRequest {
353
355
  }
354
356
  export interface WorkspacePreferenceCreateParams {
355
357
  /**
356
- * Human-readable name for the workspace preference.
358
+ * Body param: Human-readable name for the workspace preference.
357
359
  */
358
360
  name: string;
359
361
  /**
360
- * Optional description shown under the section on the hosted preferences page.
362
+ * Body param: Optional description shown under the section on the hosted
363
+ * preferences page.
361
364
  */
362
365
  description?: string | null;
363
366
  /**
364
- * Whether the workspace preference defines custom routing for its topics.
367
+ * Body param: Whether the workspace preference defines custom routing for its
368
+ * topics.
365
369
  */
366
370
  has_custom_routing?: boolean | null;
367
371
  /**
368
- * Default channels for the workspace preference. Defaults to empty if omitted.
372
+ * Body param: Default channels for the workspace preference. Defaults to empty if
373
+ * omitted.
369
374
  */
370
375
  routing_options?: Array<Shared.ChannelClassification> | null;
376
+ /**
377
+ * Header param: A unique key that makes this request idempotent. If Courier
378
+ * receives another request with the same `Idempotency-Key`, it returns the stored
379
+ * response from the first request without performing the operation again
380
+ * (including the original status code and any error). Use it to safely retry
381
+ * `POST` requests after network failures without risking duplicate sends. The key
382
+ * is scoped to this endpoint.
383
+ */
384
+ 'Idempotency-Key'?: string;
385
+ /**
386
+ * Header param: How long the idempotency key remains valid, as a Unix epoch
387
+ * timestamp in seconds or an ISO 8601 date string. Only applies when
388
+ * `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
389
+ * maximum is 1 year.
390
+ */
391
+ 'x-idempotency-expiration'?: string;
371
392
  }
372
393
  export interface WorkspacePreferencePublishParams {
373
394
  /**
374
- * Brand for the hosted page - "default" (workspace default brand), "none" (no
375
- * brand), or a specific brand id. Defaults to "default".
395
+ * Body param: Brand for the hosted page - "default" (workspace default brand),
396
+ * "none" (no brand), or a specific brand id. Defaults to "default".
376
397
  */
377
398
  brand_id?: string | null;
378
399
  /**
379
- * Description shown under the heading on the hosted preferences page.
400
+ * Body param: Description shown under the heading on the hosted preferences page.
380
401
  */
381
402
  description?: string | null;
382
403
  /**
383
- * Heading shown at the top of the hosted preferences page.
404
+ * Body param: Heading shown at the top of the hosted preferences page.
384
405
  */
385
406
  heading?: string | null;
407
+ /**
408
+ * Header param: A unique key that makes this request idempotent. If Courier
409
+ * receives another request with the same `Idempotency-Key`, it returns the stored
410
+ * response from the first request without performing the operation again
411
+ * (including the original status code and any error). Use it to safely retry
412
+ * `POST` requests after network failures without risking duplicate sends. The key
413
+ * is scoped to this endpoint.
414
+ */
415
+ 'Idempotency-Key'?: string;
416
+ /**
417
+ * Header param: How long the idempotency key remains valid, as a Unix epoch
418
+ * timestamp in seconds or an ISO 8601 date string. Only applies when
419
+ * `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
420
+ * maximum is 1 year.
421
+ */
422
+ 'x-idempotency-expiration'?: string;
386
423
  }
387
424
  export interface WorkspacePreferenceReplaceParams {
388
425
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-preferences.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-preferences/workspace-preferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,MAAM,EACP,oBAAiB;AAClB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,oBAAqB,SAAQ,WAAW;IACnD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;;;;;;;OAQG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAIjG;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;IAI3E;;;;;;;;OAQG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOtE;;;;;;;;;;OAUG;IACH,OAAO,CACL,IAAI,GAAE,gCAAgC,GAAG,IAAI,GAAG,SAAc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AK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
1
+ {"version":3,"file":"workspace-preferences.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-preferences/workspace-preferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,MAAM,EACP,oBAAiB;AAClB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC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,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -8,15 +8,17 @@ const TopicsAPI = tslib_1.__importStar(require("./topics.js"));
8
8
  const topics_1 = require("./topics.js");
9
9
  const headers_1 = require("../../internal/headers.js");
10
10
  const path_1 = require("../../internal/utils/path.js");
11
+ /**
12
+ * Manage the workspace catalog of subscription topics, the sections that group them, and publishing the preference page.
13
+ */
11
14
  class WorkspacePreferences extends resource_1.APIResource {
12
15
  constructor() {
13
16
  super(...arguments);
14
17
  this.topics = new TopicsAPI.Topics(this._client);
15
18
  }
16
19
  /**
17
- * Create a workspace preference. The workspace preference id is generated and
18
- * returned. Topics are created inside a workspace preference via POST
19
- * /preferences/sections/{section_id}/topics.
20
+ * Creates a workspace preference and returns its generated id. Add subscription
21
+ * topics to it afterwards with the topics endpoint.
20
22
  *
21
23
  * @example
22
24
  * ```ts
@@ -26,11 +28,25 @@ class WorkspacePreferences extends resource_1.APIResource {
26
28
  * });
27
29
  * ```
28
30
  */
29
- create(body, options) {
30
- return this._client.post('/preferences/sections', { body, ...options });
31
+ create(params, options) {
32
+ const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params;
33
+ return this._client.post('/preferences/sections', {
34
+ body,
35
+ ...options,
36
+ headers: (0, headers_1.buildHeaders)([
37
+ {
38
+ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
39
+ ...(xIdempotencyExpiration != null ?
40
+ { 'x-idempotency-expiration': xIdempotencyExpiration }
41
+ : undefined),
42
+ },
43
+ options?.headers,
44
+ ]),
45
+ });
31
46
  }
32
47
  /**
33
- * Retrieve a workspace preference by id, including its topics.
48
+ * Returns one workspace preference by id, including its subscription topics,
49
+ * routing options, and custom routing flag.
34
50
  *
35
51
  * @example
36
52
  * ```ts
@@ -42,8 +58,8 @@ class WorkspacePreferences extends resource_1.APIResource {
42
58
  return this._client.get((0, path_1.path) `/preferences/sections/${sectionID}`, options);
43
59
  }
44
60
  /**
45
- * List the workspace's preferences. Each workspace preference embeds its topics.
46
- * Scoped to the workspace of the API key.
61
+ * Returns the workspace's preferences, each embedding its subscription topics,
62
+ * routing options, and whether custom routing is allowed.
47
63
  *
48
64
  * @example
49
65
  * ```ts
@@ -70,9 +86,8 @@ class WorkspacePreferences extends resource_1.APIResource {
70
86
  });
71
87
  }
72
88
  /**
73
- * Publish the workspace's preferences page. Takes a snapshot of every workspace
74
- * preference with its topics under a new published version, making the current
75
- * state visible on the hosted preferences page (non-draft).
89
+ * Publishes the workspace preference page, snapshotting every preference and
90
+ * topic, and returns the page id and a preview URL.
76
91
  *
77
92
  * @example
78
93
  * ```ts
@@ -80,8 +95,21 @@ class WorkspacePreferences extends resource_1.APIResource {
80
95
  * await client.workspacePreferences.publish();
81
96
  * ```
82
97
  */
83
- publish(body = {}, options) {
84
- return this._client.post('/preferences/publish', { body, ...options });
98
+ publish(params = {}, options) {
99
+ const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params ?? {};
100
+ return this._client.post('/preferences/publish', {
101
+ body,
102
+ ...options,
103
+ headers: (0, headers_1.buildHeaders)([
104
+ {
105
+ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
106
+ ...(xIdempotencyExpiration != null ?
107
+ { 'x-idempotency-expiration': xIdempotencyExpiration }
108
+ : undefined),
109
+ },
110
+ options?.headers,
111
+ ]),
112
+ });
85
113
  }
86
114
  /**
87
115
  * Replace a workspace preference. Full document replacement; missing optional
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-preferences.js","sourceRoot":"","sources":["../../src/resources/workspace-preferences/workspace-preferences.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,+DAAsC;AACtC,wCAMkB;AAElB,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,oBAAqB,SAAQ,sBAAW;IAArD;;QAC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AyB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;CACF;AAvGD,oDAuGC;AAmYD,oBAAoB,CAAC,MAAM,GAAG,eAAM,CAAC"}
1
+ {"version":3,"file":"workspace-preferences.js","sourceRoot":"","sources":["../../src/resources/workspace-preferences/workspace-preferences.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,+DAAsC;AACtC,wCAMkB;AAElB,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,oBAAqB,SAAQ,sBAAW;IAArD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuIhE,CAAC;IArIC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,MAAuC,EACvC,OAAwB;QAExB,MAAM,EACJ,iBAAiB,EAAE,cAAc,EACjC,0BAA0B,EAAE,sBAAsB,EAClD,GAAG,IAAI,EACR,GAAG,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAChD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,sBAAsB,IAAI,IAAI,CAAC,CAAC;wBAClC,EAAE,0BAA0B,EAAE,sBAAsB,EAAE;wBACxD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB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C,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;CACF;AAxID,oDAwIC;AA0aD,oBAAoB,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -4,15 +4,17 @@ import * as TopicsAPI from "./topics.mjs";
4
4
  import { Topics, } from "./topics.mjs";
5
5
  import { buildHeaders } from "../../internal/headers.mjs";
6
6
  import { path } from "../../internal/utils/path.mjs";
7
+ /**
8
+ * Manage the workspace catalog of subscription topics, the sections that group them, and publishing the preference page.
9
+ */
7
10
  export class WorkspacePreferences extends APIResource {
8
11
  constructor() {
9
12
  super(...arguments);
10
13
  this.topics = new TopicsAPI.Topics(this._client);
11
14
  }
12
15
  /**
13
- * Create a workspace preference. The workspace preference id is generated and
14
- * returned. Topics are created inside a workspace preference via POST
15
- * /preferences/sections/{section_id}/topics.
16
+ * Creates a workspace preference and returns its generated id. Add subscription
17
+ * topics to it afterwards with the topics endpoint.
16
18
  *
17
19
  * @example
18
20
  * ```ts
@@ -22,11 +24,25 @@ export class WorkspacePreferences extends APIResource {
22
24
  * });
23
25
  * ```
24
26
  */
25
- create(body, options) {
26
- return this._client.post('/preferences/sections', { body, ...options });
27
+ create(params, options) {
28
+ const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params;
29
+ return this._client.post('/preferences/sections', {
30
+ body,
31
+ ...options,
32
+ headers: buildHeaders([
33
+ {
34
+ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
35
+ ...(xIdempotencyExpiration != null ?
36
+ { 'x-idempotency-expiration': xIdempotencyExpiration }
37
+ : undefined),
38
+ },
39
+ options?.headers,
40
+ ]),
41
+ });
27
42
  }
28
43
  /**
29
- * Retrieve a workspace preference by id, including its topics.
44
+ * Returns one workspace preference by id, including its subscription topics,
45
+ * routing options, and custom routing flag.
30
46
  *
31
47
  * @example
32
48
  * ```ts
@@ -38,8 +54,8 @@ export class WorkspacePreferences extends APIResource {
38
54
  return this._client.get(path `/preferences/sections/${sectionID}`, options);
39
55
  }
40
56
  /**
41
- * List the workspace's preferences. Each workspace preference embeds its topics.
42
- * Scoped to the workspace of the API key.
57
+ * Returns the workspace's preferences, each embedding its subscription topics,
58
+ * routing options, and whether custom routing is allowed.
43
59
  *
44
60
  * @example
45
61
  * ```ts
@@ -66,9 +82,8 @@ export class WorkspacePreferences extends APIResource {
66
82
  });
67
83
  }
68
84
  /**
69
- * Publish the workspace's preferences page. Takes a snapshot of every workspace
70
- * preference with its topics under a new published version, making the current
71
- * state visible on the hosted preferences page (non-draft).
85
+ * Publishes the workspace preference page, snapshotting every preference and
86
+ * topic, and returns the page id and a preview URL.
72
87
  *
73
88
  * @example
74
89
  * ```ts
@@ -76,8 +91,21 @@ export class WorkspacePreferences extends APIResource {
76
91
  * await client.workspacePreferences.publish();
77
92
  * ```
78
93
  */
79
- publish(body = {}, options) {
80
- return this._client.post('/preferences/publish', { body, ...options });
94
+ publish(params = {}, options) {
95
+ const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params ?? {};
96
+ return this._client.post('/preferences/publish', {
97
+ body,
98
+ ...options,
99
+ headers: buildHeaders([
100
+ {
101
+ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
102
+ ...(xIdempotencyExpiration != null ?
103
+ { 'x-idempotency-expiration': xIdempotencyExpiration }
104
+ : undefined),
105
+ },
106
+ options?.headers,
107
+ ]),
108
+ });
81
109
  }
82
110
  /**
83
111
  * Replace a workspace preference. Full document replacement; missing optional