@trycourier/courier 9.5.0 → 9.7.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 (75) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/broadcasts.d.mts +1 -1
  10. package/resources/broadcasts.d.ts +1 -1
  11. package/resources/broadcasts.js +1 -1
  12. package/resources/broadcasts.mjs +1 -1
  13. package/resources/digests/digests.d.mts +67 -1
  14. package/resources/digests/digests.d.mts.map +1 -1
  15. package/resources/digests/digests.d.ts +67 -1
  16. package/resources/digests/digests.d.ts.map +1 -1
  17. package/resources/digests/digests.js.map +1 -1
  18. package/resources/digests/digests.mjs.map +1 -1
  19. package/resources/digests/index.d.mts +1 -1
  20. package/resources/digests/index.d.mts.map +1 -1
  21. package/resources/digests/index.d.ts +1 -1
  22. package/resources/digests/index.d.ts.map +1 -1
  23. package/resources/digests/index.js.map +1 -1
  24. package/resources/digests/index.mjs.map +1 -1
  25. package/resources/index.d.mts +2 -2
  26. package/resources/index.d.mts.map +1 -1
  27. package/resources/index.d.ts +2 -2
  28. package/resources/index.d.ts.map +1 -1
  29. package/resources/index.js.map +1 -1
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/journeys/journeys.d.mts +51 -2
  32. package/resources/journeys/journeys.d.mts.map +1 -1
  33. package/resources/journeys/journeys.d.ts +51 -2
  34. package/resources/journeys/journeys.d.ts.map +1 -1
  35. package/resources/journeys/journeys.js.map +1 -1
  36. package/resources/journeys/journeys.mjs.map +1 -1
  37. package/resources/users/preferences.d.mts +20 -0
  38. package/resources/users/preferences.d.mts.map +1 -1
  39. package/resources/users/preferences.d.ts +20 -0
  40. package/resources/users/preferences.d.ts.map +1 -1
  41. package/resources/workspace-preferences/index.d.mts +2 -2
  42. package/resources/workspace-preferences/index.d.mts.map +1 -1
  43. package/resources/workspace-preferences/index.d.ts +2 -2
  44. package/resources/workspace-preferences/index.d.ts.map +1 -1
  45. package/resources/workspace-preferences/index.js.map +1 -1
  46. package/resources/workspace-preferences/index.mjs.map +1 -1
  47. package/resources/workspace-preferences/topics.d.mts +141 -4
  48. package/resources/workspace-preferences/topics.d.mts.map +1 -1
  49. package/resources/workspace-preferences/topics.d.ts +141 -4
  50. package/resources/workspace-preferences/topics.d.ts.map +1 -1
  51. package/resources/workspace-preferences/topics.js +48 -3
  52. package/resources/workspace-preferences/topics.js.map +1 -1
  53. package/resources/workspace-preferences/topics.mjs +48 -3
  54. package/resources/workspace-preferences/topics.mjs.map +1 -1
  55. package/resources/workspace-preferences/workspace-preferences.d.mts +271 -3
  56. package/resources/workspace-preferences/workspace-preferences.d.mts.map +1 -1
  57. package/resources/workspace-preferences/workspace-preferences.d.ts +271 -3
  58. package/resources/workspace-preferences/workspace-preferences.d.ts.map +1 -1
  59. package/resources/workspace-preferences/workspace-preferences.js.map +1 -1
  60. package/resources/workspace-preferences/workspace-preferences.mjs.map +1 -1
  61. package/src/client.ts +16 -0
  62. package/src/resources/broadcasts.ts +1 -1
  63. package/src/resources/digests/digests.ts +89 -0
  64. package/src/resources/digests/index.ts +3 -0
  65. package/src/resources/index.ts +8 -0
  66. package/src/resources/journeys/journeys.ts +55 -2
  67. package/src/resources/users/preferences.ts +22 -0
  68. package/src/resources/workspace-preferences/index.ts +7 -0
  69. package/src/resources/workspace-preferences/topics.ts +172 -3
  70. package/src/resources/workspace-preferences/workspace-preferences.ts +312 -0
  71. package/src/version.ts +1 -1
  72. package/version.d.mts +1 -1
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. package/version.mjs +1 -1
@@ -1,7 +1,9 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
+ import * as WorkspacePreferencesAPI from "./workspace-preferences.mjs";
2
3
  import * as Shared from "../shared.mjs";
4
+ import * as DigestsAPI from "../digests/digests.mjs";
3
5
  import * as TopicsAPI from "./topics.mjs";
4
- import { TopicArchiveParams, TopicCreateParams, TopicReplaceParams, TopicRetrieveParams, Topics } from "./topics.mjs";
6
+ import { TopicArchiveParams, TopicCreateParams, TopicDeleteDigestParams, TopicReleaseDigestParams, TopicReplaceParams, TopicRetrieveParams, Topics } from "./topics.mjs";
5
7
  import { APIPromise } from "../../core/api-promise.mjs";
6
8
  import { RequestOptions } from "../../internal/request-options.mjs";
7
9
  /**
@@ -130,6 +132,189 @@ export interface PublishPreferencesResponse {
130
132
  */
131
133
  published_by?: string | null;
132
134
  }
135
+ /**
136
+ * How events collected under a category key are retained when a digest holds more
137
+ * than it will render.
138
+ */
139
+ export interface TopicDigestCategory {
140
+ /**
141
+ * The key that identifies the category within the digest.
142
+ */
143
+ category_key: string;
144
+ /**
145
+ * How many collected events are carried into the rendered digest. Defaults to 10.
146
+ *
147
+ * Events beyond the limit are discarded, not held back for the next digest: the
148
+ * release consumes everything collected so far and only `limit` of them appear.
149
+ * `retain` decides which ones those are.
150
+ */
151
+ limit?: number;
152
+ /**
153
+ * Which collected events survive the `limit`. `FIRST` and `LOWEST` keep the
154
+ * earliest or smallest; `LAST` and `HIGHEST` keep the latest or largest. Accepted
155
+ * case-insensitively, returned uppercase.
156
+ */
157
+ retain?: 'FIRST' | 'LAST' | 'HIGHEST' | 'LOWEST' | 'NONE';
158
+ /**
159
+ * The data key used to rank events. Required when `retain` is `HIGHEST` or
160
+ * `LOWEST`.
161
+ */
162
+ sort_key?: string;
163
+ }
164
+ /**
165
+ * Which recipient's held digest to release.
166
+ */
167
+ export interface TopicDigestReleaseRequest {
168
+ /**
169
+ * The recipient whose digest to release. Required: there is no "release everyone
170
+ * on this topic" form, because a whole-schedule flush already has its own endpoint
171
+ * and a body-shaped difference between one recipient and all of them is too easy
172
+ * to get wrong.
173
+ */
174
+ user_id: string;
175
+ /**
176
+ * The recipient's tenant, when they were sent to as part of one -- the same value
177
+ * returned as `tenant_id` on a digest instance and sent as
178
+ * `message.context.tenant_id`. It is part of the held digest's key, so a tenanted
179
+ * recipient cannot be found without it. Omit for an ordinary recipient.
180
+ */
181
+ tenant_id?: string;
182
+ }
183
+ /**
184
+ * A topic's digest configuration: the template that renders it, the cadences it
185
+ * delivers on, and how collected events are retained.
186
+ *
187
+ * Send `null` for the whole object to turn a digest off, which unlinks the
188
+ * template and removes its schedules. There is no `enabled` flag, and
189
+ * `schedules: []` is rejected, because both states are un-deliverable rather than
190
+ * merely off.
191
+ */
192
+ export interface TopicDigestRequest {
193
+ /**
194
+ * The notification template that renders the digest. A digest with no template
195
+ * collects nothing, so this is required.
196
+ */
197
+ template_id: string;
198
+ /**
199
+ * Optional audience the digest is scoped to.
200
+ */
201
+ audience_id?: string;
202
+ /**
203
+ * Retention rules per category key. Defaults to a single `digest` category
204
+ * retaining `FIRST`.
205
+ */
206
+ categories?: Array<TopicDigestCategory>;
207
+ /**
208
+ * The cadences this digest delivers on.
209
+ *
210
+ * The array replaces the stored schedules wholesale, so a schedule you leave out
211
+ * of it is deleted along with its delivery rule. Omit the key entirely to leave
212
+ * the stored schedules untouched — useful for changing `template_id` or
213
+ * `categories` without restating every schedule.
214
+ *
215
+ * A digest must end up with at least one schedule, because one with none collects
216
+ * events into an instance that can never fire. So sending `[]` is always a `400`,
217
+ * and so is omitting the key on a topic that has no schedules stored yet.
218
+ *
219
+ * On **create** the key is required outright: a topic being created has nothing
220
+ * stored to leave alone, and the topic row is written before its digest, so
221
+ * rejecting it any later would leave the topic behind and let a retry duplicate
222
+ * it.
223
+ */
224
+ schedules?: Array<TopicDigestScheduleRequest>;
225
+ /**
226
+ * Whether to deliver the digest even when nothing was collected.
227
+ */
228
+ trigger_empty?: boolean;
229
+ }
230
+ /**
231
+ * A topic's digest configuration.
232
+ */
233
+ export interface TopicDigestResponse {
234
+ /**
235
+ * Retention rules per category key.
236
+ */
237
+ categories: Array<TopicDigestCategory>;
238
+ /**
239
+ * The digest's delivery cadences, each with its server-assigned `schedule_id`.
240
+ */
241
+ schedules: Array<DigestsAPI.TopicDigestScheduleResponse>;
242
+ /**
243
+ * The notification template that renders the digest.
244
+ */
245
+ template_id: string;
246
+ /**
247
+ * The audience the digest is scoped to, when set.
248
+ */
249
+ audience_id?: string;
250
+ /**
251
+ * ISO-8601 timestamp of when the digest was configured.
252
+ */
253
+ created?: string;
254
+ /**
255
+ * Whether the digest is delivered even when nothing was collected.
256
+ */
257
+ trigger_empty?: boolean;
258
+ /**
259
+ * ISO-8601 timestamp of the last update.
260
+ */
261
+ updated?: string;
262
+ }
263
+ /**
264
+ * One delivery cadence for a topic's digest. Supply `schedule_id` to update an
265
+ * existing schedule in place; omit it and one is assigned and returned. The
266
+ * `schedules` array is a full replacement, so a stored schedule absent from it is
267
+ * deleted along with its delivery rule.
268
+ *
269
+ * Updating by `schedule_id` replaces that schedule rather than merging into it:
270
+ * any field you leave out is cleared. Two of those change delivery silently — an
271
+ * omitted `timezone` reverts the schedule to UTC, and an omitted `is_default` can
272
+ * leave the topic with no default schedule, which is what recipients who have not
273
+ * chosen one fall back to. Restate every field you want to keep.
274
+ */
275
+ export interface TopicDigestScheduleRequest {
276
+ /**
277
+ * How often a digest is delivered. `instant` delivers immediately without
278
+ * batching, and is the one value that takes no `time`.
279
+ */
280
+ frequency: DigestsAPI.DigestFrequency;
281
+ /**
282
+ * Required when `frequency` is `monthly`.
283
+ */
284
+ day_of_month?: number;
285
+ /**
286
+ * Required when `frequency` is `weekly`.
287
+ */
288
+ day_of_week?: DigestsAPI.DigestDayOfWeek;
289
+ /**
290
+ * Required when `frequency` is `custom_days`.
291
+ */
292
+ days_of_week?: Array<DigestsAPI.DigestDayOfWeek>;
293
+ /**
294
+ * Whether the schedule is disabled.
295
+ */
296
+ disabled?: boolean;
297
+ /**
298
+ * The schedule recipients are placed on when they have not chosen one. Set this
299
+ * explicitly rather than relying on array position.
300
+ */
301
+ is_default?: boolean;
302
+ /**
303
+ * Identifier of an existing schedule to update. Omit when creating a new one.
304
+ */
305
+ schedule_id?: string;
306
+ /**
307
+ * 24-hour local delivery time, `HH:MM`. Required for every frequency except
308
+ * `instant`.
309
+ */
310
+ time?: string;
311
+ /**
312
+ * IANA timezone the `time` and day fields are expressed in, e.g.
313
+ * `America/New_York`. Absent means UTC. Delivery follows the same local wall-clock
314
+ * across daylight-saving changes.
315
+ */
316
+ timezone?: string;
317
+ }
133
318
  /**
134
319
  * Request body for creating a workspace preference.
135
320
  */
@@ -246,6 +431,21 @@ export interface WorkspacePreferenceTopicCreateRequest {
246
431
  * Optional description shown under the topic on the hosted preferences page.
247
432
  */
248
433
  description?: string | null;
434
+ /**
435
+ * A topic's digest, as supplied when the topic itself is created: the template
436
+ * that renders it, the cadences it delivers on, and how collected events are
437
+ * retained.
438
+ *
439
+ * Identical to `TopicDigestRequest`, which a replace uses, except that `schedules`
440
+ * is required — a topic being created has no stored schedules for an absent key to
441
+ * leave alone.
442
+ *
443
+ * Send `null` for the whole object to turn a digest off, which unlinks the
444
+ * template and removes its schedules. There is no `enabled` flag, and
445
+ * `schedules: []` is rejected, because both states are un-deliverable rather than
446
+ * merely off.
447
+ */
448
+ digest?: WorkspacePreferenceTopicCreateRequest.Digest | null;
249
449
  /**
250
450
  * Whether to include a list-unsubscribe header on emails for this topic.
251
451
  */
@@ -261,6 +461,60 @@ export interface WorkspacePreferenceTopicCreateRequest {
261
461
  [key: string]: unknown;
262
462
  } | null;
263
463
  }
464
+ export declare namespace WorkspacePreferenceTopicCreateRequest {
465
+ /**
466
+ * A topic's digest, as supplied when the topic itself is created: the template
467
+ * that renders it, the cadences it delivers on, and how collected events are
468
+ * retained.
469
+ *
470
+ * Identical to `TopicDigestRequest`, which a replace uses, except that `schedules`
471
+ * is required — a topic being created has no stored schedules for an absent key to
472
+ * leave alone.
473
+ *
474
+ * Send `null` for the whole object to turn a digest off, which unlinks the
475
+ * template and removes its schedules. There is no `enabled` flag, and
476
+ * `schedules: []` is rejected, because both states are un-deliverable rather than
477
+ * merely off.
478
+ */
479
+ interface Digest {
480
+ /**
481
+ * The cadences this digest delivers on.
482
+ *
483
+ * The array replaces the stored schedules wholesale, so a schedule you leave out
484
+ * of it is deleted along with its delivery rule. Omit the key entirely to leave
485
+ * the stored schedules untouched — useful for changing `template_id` or
486
+ * `categories` without restating every schedule.
487
+ *
488
+ * A digest must end up with at least one schedule, because one with none collects
489
+ * events into an instance that can never fire. So sending `[]` is always a `400`,
490
+ * and so is omitting the key on a topic that has no schedules stored yet.
491
+ *
492
+ * On **create** the key is required outright: a topic being created has nothing
493
+ * stored to leave alone, and the topic row is written before its digest, so
494
+ * rejecting it any later would leave the topic behind and let a retry duplicate
495
+ * it.
496
+ */
497
+ schedules: Array<WorkspacePreferencesAPI.TopicDigestScheduleRequest>;
498
+ /**
499
+ * The notification template that renders the digest. A digest with no template
500
+ * collects nothing, so this is required.
501
+ */
502
+ template_id: string;
503
+ /**
504
+ * Optional audience the digest is scoped to.
505
+ */
506
+ audience_id?: string;
507
+ /**
508
+ * Retention rules per category key. Defaults to a single `digest` category
509
+ * retaining `FIRST`.
510
+ */
511
+ categories?: Array<WorkspacePreferencesAPI.TopicDigestCategory>;
512
+ /**
513
+ * Whether to deliver the digest even when nothing was collected.
514
+ */
515
+ trigger_empty?: boolean;
516
+ }
517
+ }
264
518
  /**
265
519
  * A subscription preference topic in your workspace.
266
520
  */
@@ -311,6 +565,10 @@ export interface WorkspacePreferenceTopicGetResponse {
311
565
  * Optional description shown under the topic on the hosted preferences page.
312
566
  */
313
567
  description?: string | null;
568
+ /**
569
+ * A topic's digest configuration.
570
+ */
571
+ digest?: TopicDigestResponse | null;
314
572
  /**
315
573
  * Id of the last updater.
316
574
  */
@@ -344,6 +602,16 @@ export interface WorkspacePreferenceTopicReplaceRequest {
344
602
  * to clear.
345
603
  */
346
604
  description?: string | null;
605
+ /**
606
+ * A topic's digest configuration: the template that renders it, the cadences it
607
+ * delivers on, and how collected events are retained.
608
+ *
609
+ * Send `null` for the whole object to turn a digest off, which unlinks the
610
+ * template and removes its schedules. There is no `enabled` flag, and
611
+ * `schedules: []` is rejected, because both states are un-deliverable rather than
612
+ * merely off.
613
+ */
614
+ digest?: TopicDigestRequest | null;
347
615
  /**
348
616
  * Whether to include a list-unsubscribe header on emails for this topic.
349
617
  */
@@ -447,7 +715,7 @@ export interface WorkspacePreferenceReplaceParams {
447
715
  routing_options?: Array<Shared.ChannelClassification> | null;
448
716
  }
449
717
  export declare namespace WorkspacePreferences {
450
- export { type PublishPreferencesRequest as PublishPreferencesRequest, type PublishPreferencesResponse as PublishPreferencesResponse, type WorkspacePreferenceCreateRequest as WorkspacePreferenceCreateRequest, type WorkspacePreferenceGetResponse as WorkspacePreferenceGetResponse, type WorkspacePreferenceListResponse as WorkspacePreferenceListResponse, type WorkspacePreferenceReplaceRequest as WorkspacePreferenceReplaceRequest, type WorkspacePreferenceTopicCreateRequest as WorkspacePreferenceTopicCreateRequest, type WorkspacePreferenceTopicGetResponse as WorkspacePreferenceTopicGetResponse, type WorkspacePreferenceTopicListResponse as WorkspacePreferenceTopicListResponse, type WorkspacePreferenceTopicReplaceRequest as WorkspacePreferenceTopicReplaceRequest, type WorkspacePreferenceCreateParams as WorkspacePreferenceCreateParams, type WorkspacePreferencePublishParams as WorkspacePreferencePublishParams, type WorkspacePreferenceReplaceParams as WorkspacePreferenceReplaceParams, };
451
- export { Topics as Topics, type TopicCreateParams as TopicCreateParams, type TopicRetrieveParams as TopicRetrieveParams, type TopicArchiveParams as TopicArchiveParams, type TopicReplaceParams as TopicReplaceParams, };
718
+ export { type PublishPreferencesRequest as PublishPreferencesRequest, type PublishPreferencesResponse as PublishPreferencesResponse, type TopicDigestCategory as TopicDigestCategory, type TopicDigestReleaseRequest as TopicDigestReleaseRequest, type TopicDigestRequest as TopicDigestRequest, type TopicDigestResponse as TopicDigestResponse, type TopicDigestScheduleRequest as TopicDigestScheduleRequest, type WorkspacePreferenceCreateRequest as WorkspacePreferenceCreateRequest, type WorkspacePreferenceGetResponse as WorkspacePreferenceGetResponse, type WorkspacePreferenceListResponse as WorkspacePreferenceListResponse, type WorkspacePreferenceReplaceRequest as WorkspacePreferenceReplaceRequest, type WorkspacePreferenceTopicCreateRequest as WorkspacePreferenceTopicCreateRequest, type WorkspacePreferenceTopicGetResponse as WorkspacePreferenceTopicGetResponse, type WorkspacePreferenceTopicListResponse as WorkspacePreferenceTopicListResponse, type WorkspacePreferenceTopicReplaceRequest as WorkspacePreferenceTopicReplaceRequest, type WorkspacePreferenceCreateParams as WorkspacePreferenceCreateParams, type WorkspacePreferencePublishParams as WorkspacePreferencePublishParams, type WorkspacePreferenceReplaceParams as WorkspacePreferenceReplaceParams, };
719
+ export { Topics as Topics, type TopicCreateParams as TopicCreateParams, type TopicRetrieveParams as TopicRetrieveParams, type TopicArchiveParams as TopicArchiveParams, type TopicDeleteDigestParams as TopicDeleteDigestParams, type TopicReleaseDigestParams as TopicReleaseDigestParams, type TopicReplaceParams as TopicReplaceParams, };
452
720
  }
453
721
  //# sourceMappingURL=workspace-preferences.d.mts.map
@@ -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;;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,U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AI,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,uBAAuB,oCAAgC;AACnE,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,UAAU,+BAA2B;AACjD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,MAAM,EACP,qBAAiB;AAClB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;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,8BAA8B,CAAC;IAqB7C;;;;;;;;;OASG;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;;;;;;;;;;;;;OAaG;IACH,OAAO,CACL,MAAM,GAAE,gCAAgC,GAAG,IAAI,GAAG,SAAc,EAChE,OAAO,CAAC,EAAE,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AAC,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,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,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,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,7 +1,9 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
+ import * as WorkspacePreferencesAPI from "./workspace-preferences.js";
2
3
  import * as Shared from "../shared.js";
4
+ import * as DigestsAPI from "../digests/digests.js";
3
5
  import * as TopicsAPI from "./topics.js";
4
- import { TopicArchiveParams, TopicCreateParams, TopicReplaceParams, TopicRetrieveParams, Topics } from "./topics.js";
6
+ import { TopicArchiveParams, TopicCreateParams, TopicDeleteDigestParams, TopicReleaseDigestParams, TopicReplaceParams, TopicRetrieveParams, Topics } from "./topics.js";
5
7
  import { APIPromise } from "../../core/api-promise.js";
6
8
  import { RequestOptions } from "../../internal/request-options.js";
7
9
  /**
@@ -130,6 +132,189 @@ export interface PublishPreferencesResponse {
130
132
  */
131
133
  published_by?: string | null;
132
134
  }
135
+ /**
136
+ * How events collected under a category key are retained when a digest holds more
137
+ * than it will render.
138
+ */
139
+ export interface TopicDigestCategory {
140
+ /**
141
+ * The key that identifies the category within the digest.
142
+ */
143
+ category_key: string;
144
+ /**
145
+ * How many collected events are carried into the rendered digest. Defaults to 10.
146
+ *
147
+ * Events beyond the limit are discarded, not held back for the next digest: the
148
+ * release consumes everything collected so far and only `limit` of them appear.
149
+ * `retain` decides which ones those are.
150
+ */
151
+ limit?: number;
152
+ /**
153
+ * Which collected events survive the `limit`. `FIRST` and `LOWEST` keep the
154
+ * earliest or smallest; `LAST` and `HIGHEST` keep the latest or largest. Accepted
155
+ * case-insensitively, returned uppercase.
156
+ */
157
+ retain?: 'FIRST' | 'LAST' | 'HIGHEST' | 'LOWEST' | 'NONE';
158
+ /**
159
+ * The data key used to rank events. Required when `retain` is `HIGHEST` or
160
+ * `LOWEST`.
161
+ */
162
+ sort_key?: string;
163
+ }
164
+ /**
165
+ * Which recipient's held digest to release.
166
+ */
167
+ export interface TopicDigestReleaseRequest {
168
+ /**
169
+ * The recipient whose digest to release. Required: there is no "release everyone
170
+ * on this topic" form, because a whole-schedule flush already has its own endpoint
171
+ * and a body-shaped difference between one recipient and all of them is too easy
172
+ * to get wrong.
173
+ */
174
+ user_id: string;
175
+ /**
176
+ * The recipient's tenant, when they were sent to as part of one -- the same value
177
+ * returned as `tenant_id` on a digest instance and sent as
178
+ * `message.context.tenant_id`. It is part of the held digest's key, so a tenanted
179
+ * recipient cannot be found without it. Omit for an ordinary recipient.
180
+ */
181
+ tenant_id?: string;
182
+ }
183
+ /**
184
+ * A topic's digest configuration: the template that renders it, the cadences it
185
+ * delivers on, and how collected events are retained.
186
+ *
187
+ * Send `null` for the whole object to turn a digest off, which unlinks the
188
+ * template and removes its schedules. There is no `enabled` flag, and
189
+ * `schedules: []` is rejected, because both states are un-deliverable rather than
190
+ * merely off.
191
+ */
192
+ export interface TopicDigestRequest {
193
+ /**
194
+ * The notification template that renders the digest. A digest with no template
195
+ * collects nothing, so this is required.
196
+ */
197
+ template_id: string;
198
+ /**
199
+ * Optional audience the digest is scoped to.
200
+ */
201
+ audience_id?: string;
202
+ /**
203
+ * Retention rules per category key. Defaults to a single `digest` category
204
+ * retaining `FIRST`.
205
+ */
206
+ categories?: Array<TopicDigestCategory>;
207
+ /**
208
+ * The cadences this digest delivers on.
209
+ *
210
+ * The array replaces the stored schedules wholesale, so a schedule you leave out
211
+ * of it is deleted along with its delivery rule. Omit the key entirely to leave
212
+ * the stored schedules untouched — useful for changing `template_id` or
213
+ * `categories` without restating every schedule.
214
+ *
215
+ * A digest must end up with at least one schedule, because one with none collects
216
+ * events into an instance that can never fire. So sending `[]` is always a `400`,
217
+ * and so is omitting the key on a topic that has no schedules stored yet.
218
+ *
219
+ * On **create** the key is required outright: a topic being created has nothing
220
+ * stored to leave alone, and the topic row is written before its digest, so
221
+ * rejecting it any later would leave the topic behind and let a retry duplicate
222
+ * it.
223
+ */
224
+ schedules?: Array<TopicDigestScheduleRequest>;
225
+ /**
226
+ * Whether to deliver the digest even when nothing was collected.
227
+ */
228
+ trigger_empty?: boolean;
229
+ }
230
+ /**
231
+ * A topic's digest configuration.
232
+ */
233
+ export interface TopicDigestResponse {
234
+ /**
235
+ * Retention rules per category key.
236
+ */
237
+ categories: Array<TopicDigestCategory>;
238
+ /**
239
+ * The digest's delivery cadences, each with its server-assigned `schedule_id`.
240
+ */
241
+ schedules: Array<DigestsAPI.TopicDigestScheduleResponse>;
242
+ /**
243
+ * The notification template that renders the digest.
244
+ */
245
+ template_id: string;
246
+ /**
247
+ * The audience the digest is scoped to, when set.
248
+ */
249
+ audience_id?: string;
250
+ /**
251
+ * ISO-8601 timestamp of when the digest was configured.
252
+ */
253
+ created?: string;
254
+ /**
255
+ * Whether the digest is delivered even when nothing was collected.
256
+ */
257
+ trigger_empty?: boolean;
258
+ /**
259
+ * ISO-8601 timestamp of the last update.
260
+ */
261
+ updated?: string;
262
+ }
263
+ /**
264
+ * One delivery cadence for a topic's digest. Supply `schedule_id` to update an
265
+ * existing schedule in place; omit it and one is assigned and returned. The
266
+ * `schedules` array is a full replacement, so a stored schedule absent from it is
267
+ * deleted along with its delivery rule.
268
+ *
269
+ * Updating by `schedule_id` replaces that schedule rather than merging into it:
270
+ * any field you leave out is cleared. Two of those change delivery silently — an
271
+ * omitted `timezone` reverts the schedule to UTC, and an omitted `is_default` can
272
+ * leave the topic with no default schedule, which is what recipients who have not
273
+ * chosen one fall back to. Restate every field you want to keep.
274
+ */
275
+ export interface TopicDigestScheduleRequest {
276
+ /**
277
+ * How often a digest is delivered. `instant` delivers immediately without
278
+ * batching, and is the one value that takes no `time`.
279
+ */
280
+ frequency: DigestsAPI.DigestFrequency;
281
+ /**
282
+ * Required when `frequency` is `monthly`.
283
+ */
284
+ day_of_month?: number;
285
+ /**
286
+ * Required when `frequency` is `weekly`.
287
+ */
288
+ day_of_week?: DigestsAPI.DigestDayOfWeek;
289
+ /**
290
+ * Required when `frequency` is `custom_days`.
291
+ */
292
+ days_of_week?: Array<DigestsAPI.DigestDayOfWeek>;
293
+ /**
294
+ * Whether the schedule is disabled.
295
+ */
296
+ disabled?: boolean;
297
+ /**
298
+ * The schedule recipients are placed on when they have not chosen one. Set this
299
+ * explicitly rather than relying on array position.
300
+ */
301
+ is_default?: boolean;
302
+ /**
303
+ * Identifier of an existing schedule to update. Omit when creating a new one.
304
+ */
305
+ schedule_id?: string;
306
+ /**
307
+ * 24-hour local delivery time, `HH:MM`. Required for every frequency except
308
+ * `instant`.
309
+ */
310
+ time?: string;
311
+ /**
312
+ * IANA timezone the `time` and day fields are expressed in, e.g.
313
+ * `America/New_York`. Absent means UTC. Delivery follows the same local wall-clock
314
+ * across daylight-saving changes.
315
+ */
316
+ timezone?: string;
317
+ }
133
318
  /**
134
319
  * Request body for creating a workspace preference.
135
320
  */
@@ -246,6 +431,21 @@ export interface WorkspacePreferenceTopicCreateRequest {
246
431
  * Optional description shown under the topic on the hosted preferences page.
247
432
  */
248
433
  description?: string | null;
434
+ /**
435
+ * A topic's digest, as supplied when the topic itself is created: the template
436
+ * that renders it, the cadences it delivers on, and how collected events are
437
+ * retained.
438
+ *
439
+ * Identical to `TopicDigestRequest`, which a replace uses, except that `schedules`
440
+ * is required — a topic being created has no stored schedules for an absent key to
441
+ * leave alone.
442
+ *
443
+ * Send `null` for the whole object to turn a digest off, which unlinks the
444
+ * template and removes its schedules. There is no `enabled` flag, and
445
+ * `schedules: []` is rejected, because both states are un-deliverable rather than
446
+ * merely off.
447
+ */
448
+ digest?: WorkspacePreferenceTopicCreateRequest.Digest | null;
249
449
  /**
250
450
  * Whether to include a list-unsubscribe header on emails for this topic.
251
451
  */
@@ -261,6 +461,60 @@ export interface WorkspacePreferenceTopicCreateRequest {
261
461
  [key: string]: unknown;
262
462
  } | null;
263
463
  }
464
+ export declare namespace WorkspacePreferenceTopicCreateRequest {
465
+ /**
466
+ * A topic's digest, as supplied when the topic itself is created: the template
467
+ * that renders it, the cadences it delivers on, and how collected events are
468
+ * retained.
469
+ *
470
+ * Identical to `TopicDigestRequest`, which a replace uses, except that `schedules`
471
+ * is required — a topic being created has no stored schedules for an absent key to
472
+ * leave alone.
473
+ *
474
+ * Send `null` for the whole object to turn a digest off, which unlinks the
475
+ * template and removes its schedules. There is no `enabled` flag, and
476
+ * `schedules: []` is rejected, because both states are un-deliverable rather than
477
+ * merely off.
478
+ */
479
+ interface Digest {
480
+ /**
481
+ * The cadences this digest delivers on.
482
+ *
483
+ * The array replaces the stored schedules wholesale, so a schedule you leave out
484
+ * of it is deleted along with its delivery rule. Omit the key entirely to leave
485
+ * the stored schedules untouched — useful for changing `template_id` or
486
+ * `categories` without restating every schedule.
487
+ *
488
+ * A digest must end up with at least one schedule, because one with none collects
489
+ * events into an instance that can never fire. So sending `[]` is always a `400`,
490
+ * and so is omitting the key on a topic that has no schedules stored yet.
491
+ *
492
+ * On **create** the key is required outright: a topic being created has nothing
493
+ * stored to leave alone, and the topic row is written before its digest, so
494
+ * rejecting it any later would leave the topic behind and let a retry duplicate
495
+ * it.
496
+ */
497
+ schedules: Array<WorkspacePreferencesAPI.TopicDigestScheduleRequest>;
498
+ /**
499
+ * The notification template that renders the digest. A digest with no template
500
+ * collects nothing, so this is required.
501
+ */
502
+ template_id: string;
503
+ /**
504
+ * Optional audience the digest is scoped to.
505
+ */
506
+ audience_id?: string;
507
+ /**
508
+ * Retention rules per category key. Defaults to a single `digest` category
509
+ * retaining `FIRST`.
510
+ */
511
+ categories?: Array<WorkspacePreferencesAPI.TopicDigestCategory>;
512
+ /**
513
+ * Whether to deliver the digest even when nothing was collected.
514
+ */
515
+ trigger_empty?: boolean;
516
+ }
517
+ }
264
518
  /**
265
519
  * A subscription preference topic in your workspace.
266
520
  */
@@ -311,6 +565,10 @@ export interface WorkspacePreferenceTopicGetResponse {
311
565
  * Optional description shown under the topic on the hosted preferences page.
312
566
  */
313
567
  description?: string | null;
568
+ /**
569
+ * A topic's digest configuration.
570
+ */
571
+ digest?: TopicDigestResponse | null;
314
572
  /**
315
573
  * Id of the last updater.
316
574
  */
@@ -344,6 +602,16 @@ export interface WorkspacePreferenceTopicReplaceRequest {
344
602
  * to clear.
345
603
  */
346
604
  description?: string | null;
605
+ /**
606
+ * A topic's digest configuration: the template that renders it, the cadences it
607
+ * delivers on, and how collected events are retained.
608
+ *
609
+ * Send `null` for the whole object to turn a digest off, which unlinks the
610
+ * template and removes its schedules. There is no `enabled` flag, and
611
+ * `schedules: []` is rejected, because both states are un-deliverable rather than
612
+ * merely off.
613
+ */
614
+ digest?: TopicDigestRequest | null;
347
615
  /**
348
616
  * Whether to include a list-unsubscribe header on emails for this topic.
349
617
  */
@@ -447,7 +715,7 @@ export interface WorkspacePreferenceReplaceParams {
447
715
  routing_options?: Array<Shared.ChannelClassification> | null;
448
716
  }
449
717
  export declare namespace WorkspacePreferences {
450
- export { type PublishPreferencesRequest as PublishPreferencesRequest, type PublishPreferencesResponse as PublishPreferencesResponse, type WorkspacePreferenceCreateRequest as WorkspacePreferenceCreateRequest, type WorkspacePreferenceGetResponse as WorkspacePreferenceGetResponse, type WorkspacePreferenceListResponse as WorkspacePreferenceListResponse, type WorkspacePreferenceReplaceRequest as WorkspacePreferenceReplaceRequest, type WorkspacePreferenceTopicCreateRequest as WorkspacePreferenceTopicCreateRequest, type WorkspacePreferenceTopicGetResponse as WorkspacePreferenceTopicGetResponse, type WorkspacePreferenceTopicListResponse as WorkspacePreferenceTopicListResponse, type WorkspacePreferenceTopicReplaceRequest as WorkspacePreferenceTopicReplaceRequest, type WorkspacePreferenceCreateParams as WorkspacePreferenceCreateParams, type WorkspacePreferencePublishParams as WorkspacePreferencePublishParams, type WorkspacePreferenceReplaceParams as WorkspacePreferenceReplaceParams, };
451
- export { Topics as Topics, type TopicCreateParams as TopicCreateParams, type TopicRetrieveParams as TopicRetrieveParams, type TopicArchiveParams as TopicArchiveParams, type TopicReplaceParams as TopicReplaceParams, };
718
+ export { type PublishPreferencesRequest as PublishPreferencesRequest, type PublishPreferencesResponse as PublishPreferencesResponse, type TopicDigestCategory as TopicDigestCategory, type TopicDigestReleaseRequest as TopicDigestReleaseRequest, type TopicDigestRequest as TopicDigestRequest, type TopicDigestResponse as TopicDigestResponse, type TopicDigestScheduleRequest as TopicDigestScheduleRequest, type WorkspacePreferenceCreateRequest as WorkspacePreferenceCreateRequest, type WorkspacePreferenceGetResponse as WorkspacePreferenceGetResponse, type WorkspacePreferenceListResponse as WorkspacePreferenceListResponse, type WorkspacePreferenceReplaceRequest as WorkspacePreferenceReplaceRequest, type WorkspacePreferenceTopicCreateRequest as WorkspacePreferenceTopicCreateRequest, type WorkspacePreferenceTopicGetResponse as WorkspacePreferenceTopicGetResponse, type WorkspacePreferenceTopicListResponse as WorkspacePreferenceTopicListResponse, type WorkspacePreferenceTopicReplaceRequest as WorkspacePreferenceTopicReplaceRequest, type WorkspacePreferenceCreateParams as WorkspacePreferenceCreateParams, type WorkspacePreferencePublishParams as WorkspacePreferencePublishParams, type WorkspacePreferenceReplaceParams as WorkspacePreferenceReplaceParams, };
719
+ export { Topics as Topics, type TopicCreateParams as TopicCreateParams, type TopicRetrieveParams as TopicRetrieveParams, type TopicArchiveParams as TopicArchiveParams, type TopicDeleteDigestParams as TopicDeleteDigestParams, type TopicReleaseDigestParams as TopicReleaseDigestParams, type TopicReplaceParams as TopicReplaceParams, };
452
720
  }
453
721
  //# sourceMappingURL=workspace-preferences.d.ts.map