@trycourier/courier 6.1.3 → 6.2.1

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/Client.d.ts +3 -0
  2. package/Client.js +22 -17
  3. package/api/resources/audiences/client/Client.js +5 -5
  4. package/api/resources/auditEvents/client/Client.js +2 -2
  5. package/api/resources/authTokens/client/Client.js +1 -1
  6. package/api/resources/automations/client/Client.js +2 -2
  7. package/api/resources/brands/client/Client.js +5 -5
  8. package/api/resources/bulk/client/Client.js +5 -5
  9. package/api/resources/inbound/client/Client.d.ts +43 -0
  10. package/api/resources/inbound/client/Client.js +134 -0
  11. package/api/resources/inbound/client/index.d.ts +1 -0
  12. package/api/resources/inbound/client/index.js +2 -0
  13. package/api/resources/inbound/index.d.ts +2 -0
  14. package/api/resources/inbound/index.js +18 -0
  15. package/api/resources/inbound/types/InboundTrackEvent.d.ts +13 -0
  16. package/api/resources/inbound/types/TrackAcceptedResponse.d.ts +7 -0
  17. package/api/resources/inbound/types/index.d.ts +2 -0
  18. package/api/resources/inbound/types/index.js +18 -0
  19. package/api/resources/index.d.ts +2 -0
  20. package/api/resources/index.js +3 -1
  21. package/api/resources/lists/client/Client.js +10 -10
  22. package/api/resources/messages/client/Client.js +6 -6
  23. package/api/resources/notifications/client/Client.d.ts +0 -60
  24. package/api/resources/notifications/client/Client.js +6 -150
  25. package/api/resources/notifications/client/requests/index.d.ts +0 -2
  26. package/api/resources/profiles/client/Client.js +7 -7
  27. package/api/resources/templates/client/Client.js +1 -1
  28. package/api/resources/tenants/client/Client.js +7 -7
  29. package/api/resources/translations/client/Client.js +2 -2
  30. package/api/resources/users/resources/preferences/client/Client.js +3 -3
  31. package/api/resources/users/resources/preferences/types/UserPreferencesListResponse.d.ts +1 -0
  32. package/api/resources/users/resources/tenants/client/Client.js +5 -5
  33. package/api/resources/users/resources/tokens/client/Client.js +6 -6
  34. package/dist/Client.d.ts +3 -0
  35. package/dist/Client.js +22 -17
  36. package/dist/api/resources/audiences/client/Client.js +5 -5
  37. package/dist/api/resources/auditEvents/client/Client.js +2 -2
  38. package/dist/api/resources/authTokens/client/Client.js +1 -1
  39. package/dist/api/resources/automations/client/Client.js +2 -2
  40. package/dist/api/resources/brands/client/Client.js +5 -5
  41. package/dist/api/resources/bulk/client/Client.js +5 -5
  42. package/dist/api/resources/inbound/client/Client.d.ts +43 -0
  43. package/dist/api/resources/inbound/client/Client.js +134 -0
  44. package/dist/api/resources/inbound/client/index.d.ts +1 -0
  45. package/dist/api/resources/inbound/client/index.js +2 -0
  46. package/dist/api/resources/inbound/index.d.ts +2 -0
  47. package/dist/api/resources/inbound/index.js +18 -0
  48. package/dist/api/resources/inbound/types/InboundTrackEvent.d.ts +13 -0
  49. package/dist/api/resources/inbound/types/TrackAcceptedResponse.d.ts +7 -0
  50. package/dist/api/resources/inbound/types/index.d.ts +2 -0
  51. package/dist/api/resources/inbound/types/index.js +18 -0
  52. package/dist/api/resources/index.d.ts +2 -0
  53. package/dist/api/resources/index.js +3 -1
  54. package/dist/api/resources/lists/client/Client.js +10 -10
  55. package/dist/api/resources/messages/client/Client.js +6 -6
  56. package/dist/api/resources/notifications/client/Client.d.ts +0 -60
  57. package/dist/api/resources/notifications/client/Client.js +6 -150
  58. package/dist/api/resources/notifications/client/requests/index.d.ts +0 -2
  59. package/dist/api/resources/profiles/client/Client.js +7 -7
  60. package/dist/api/resources/templates/client/Client.js +1 -1
  61. package/dist/api/resources/tenants/client/Client.js +7 -7
  62. package/dist/api/resources/translations/client/Client.js +2 -2
  63. package/dist/api/resources/users/resources/preferences/client/Client.js +3 -3
  64. package/dist/api/resources/users/resources/preferences/types/UserPreferencesListResponse.d.ts +1 -0
  65. package/dist/api/resources/users/resources/tenants/client/Client.js +5 -5
  66. package/dist/api/resources/users/resources/tokens/client/Client.js +6 -6
  67. package/package.json +1 -1
  68. package/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.d.ts +0 -33
  69. package/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.d.ts +0 -33
  70. package/dist/api/resources/notifications/client/requests/NotificationDraftUpdateVariationsParams.d.ts +0 -33
  71. package/dist/api/resources/notifications/client/requests/NotificationUpdateVariationsParams.d.ts +0 -33
  72. /package/api/resources/{notifications/client/requests/NotificationDraftUpdateVariationsParams.js → inbound/types/InboundTrackEvent.js} +0 -0
  73. /package/api/resources/{notifications/client/requests/NotificationUpdateVariationsParams.js → inbound/types/TrackAcceptedResponse.js} +0 -0
  74. /package/dist/api/resources/{notifications/client/requests/NotificationDraftUpdateVariationsParams.js → inbound/types/InboundTrackEvent.js} +0 -0
  75. /package/dist/api/resources/{notifications/client/requests/NotificationUpdateVariationsParams.js → inbound/types/TrackAcceptedResponse.js} +0 -0
@@ -80,7 +80,7 @@ class Lists {
80
80
  Authorization: yield this._getAuthorizationHeader(),
81
81
  "X-Fern-Language": "JavaScript",
82
82
  "X-Fern-SDK-Name": "@trycourier/courier",
83
- "X-Fern-SDK-Version": "v6.1.3",
83
+ "X-Fern-SDK-Version": "v6.2.1",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  },
@@ -139,7 +139,7 @@ class Lists {
139
139
  Authorization: yield this._getAuthorizationHeader(),
140
140
  "X-Fern-Language": "JavaScript",
141
141
  "X-Fern-SDK-Name": "@trycourier/courier",
142
- "X-Fern-SDK-Version": "v6.1.3",
142
+ "X-Fern-SDK-Version": "v6.2.1",
143
143
  "X-Fern-Runtime": core.RUNTIME.type,
144
144
  "X-Fern-Runtime-Version": core.RUNTIME.version,
145
145
  },
@@ -224,7 +224,7 @@ class Lists {
224
224
  Authorization: yield this._getAuthorizationHeader(),
225
225
  "X-Fern-Language": "JavaScript",
226
226
  "X-Fern-SDK-Name": "@trycourier/courier",
227
- "X-Fern-SDK-Version": "v6.1.3",
227
+ "X-Fern-SDK-Version": "v6.2.1",
228
228
  "X-Fern-Runtime": core.RUNTIME.type,
229
229
  "X-Fern-Runtime-Version": core.RUNTIME.version,
230
230
  },
@@ -276,7 +276,7 @@ class Lists {
276
276
  Authorization: yield this._getAuthorizationHeader(),
277
277
  "X-Fern-Language": "JavaScript",
278
278
  "X-Fern-SDK-Name": "@trycourier/courier",
279
- "X-Fern-SDK-Version": "v6.1.3",
279
+ "X-Fern-SDK-Version": "v6.2.1",
280
280
  "X-Fern-Runtime": core.RUNTIME.type,
281
281
  "X-Fern-Runtime-Version": core.RUNTIME.version,
282
282
  },
@@ -327,7 +327,7 @@ class Lists {
327
327
  Authorization: yield this._getAuthorizationHeader(),
328
328
  "X-Fern-Language": "JavaScript",
329
329
  "X-Fern-SDK-Name": "@trycourier/courier",
330
- "X-Fern-SDK-Version": "v6.1.3",
330
+ "X-Fern-SDK-Version": "v6.2.1",
331
331
  "X-Fern-Runtime": core.RUNTIME.type,
332
332
  "X-Fern-Runtime-Version": core.RUNTIME.version,
333
333
  },
@@ -388,7 +388,7 @@ class Lists {
388
388
  Authorization: yield this._getAuthorizationHeader(),
389
389
  "X-Fern-Language": "JavaScript",
390
390
  "X-Fern-SDK-Name": "@trycourier/courier",
391
- "X-Fern-SDK-Version": "v6.1.3",
391
+ "X-Fern-SDK-Version": "v6.2.1",
392
392
  "X-Fern-Runtime": core.RUNTIME.type,
393
393
  "X-Fern-Runtime-Version": core.RUNTIME.version,
394
394
  },
@@ -478,7 +478,7 @@ class Lists {
478
478
  Authorization: yield this._getAuthorizationHeader(),
479
479
  "X-Fern-Language": "JavaScript",
480
480
  "X-Fern-SDK-Name": "@trycourier/courier",
481
- "X-Fern-SDK-Version": "v6.1.3",
481
+ "X-Fern-SDK-Version": "v6.2.1",
482
482
  "X-Fern-Runtime": core.RUNTIME.type,
483
483
  "X-Fern-Runtime-Version": core.RUNTIME.version,
484
484
  },
@@ -568,7 +568,7 @@ class Lists {
568
568
  Authorization: yield this._getAuthorizationHeader(),
569
569
  "X-Fern-Language": "JavaScript",
570
570
  "X-Fern-SDK-Name": "@trycourier/courier",
571
- "X-Fern-SDK-Version": "v6.1.3",
571
+ "X-Fern-SDK-Version": "v6.2.1",
572
572
  "X-Fern-Runtime": core.RUNTIME.type,
573
573
  "X-Fern-Runtime-Version": core.RUNTIME.version,
574
574
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -656,7 +656,7 @@ class Lists {
656
656
  Authorization: yield this._getAuthorizationHeader(),
657
657
  "X-Fern-Language": "JavaScript",
658
658
  "X-Fern-SDK-Name": "@trycourier/courier",
659
- "X-Fern-SDK-Version": "v6.1.3",
659
+ "X-Fern-SDK-Version": "v6.2.1",
660
660
  "X-Fern-Runtime": core.RUNTIME.type,
661
661
  "X-Fern-Runtime-Version": core.RUNTIME.version,
662
662
  },
@@ -711,7 +711,7 @@ class Lists {
711
711
  Authorization: yield this._getAuthorizationHeader(),
712
712
  "X-Fern-Language": "JavaScript",
713
713
  "X-Fern-SDK-Name": "@trycourier/courier",
714
- "X-Fern-SDK-Version": "v6.1.3",
714
+ "X-Fern-SDK-Version": "v6.2.1",
715
715
  "X-Fern-Runtime": core.RUNTIME.type,
716
716
  "X-Fern-Runtime-Version": core.RUNTIME.version,
717
717
  },
@@ -141,7 +141,7 @@ class Messages {
141
141
  Authorization: yield this._getAuthorizationHeader(),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "@trycourier/courier",
144
- "X-Fern-SDK-Version": "v6.1.3",
144
+ "X-Fern-SDK-Version": "v6.2.1",
145
145
  "X-Fern-Runtime": core.RUNTIME.type,
146
146
  "X-Fern-Runtime-Version": core.RUNTIME.version,
147
147
  },
@@ -196,7 +196,7 @@ class Messages {
196
196
  Authorization: yield this._getAuthorizationHeader(),
197
197
  "X-Fern-Language": "JavaScript",
198
198
  "X-Fern-SDK-Name": "@trycourier/courier",
199
- "X-Fern-SDK-Version": "v6.1.3",
199
+ "X-Fern-SDK-Version": "v6.2.1",
200
200
  "X-Fern-Runtime": core.RUNTIME.type,
201
201
  "X-Fern-Runtime-Version": core.RUNTIME.version,
202
202
  },
@@ -254,7 +254,7 @@ class Messages {
254
254
  Authorization: yield this._getAuthorizationHeader(),
255
255
  "X-Fern-Language": "JavaScript",
256
256
  "X-Fern-SDK-Name": "@trycourier/courier",
257
- "X-Fern-SDK-Version": "v6.1.3",
257
+ "X-Fern-SDK-Version": "v6.2.1",
258
258
  "X-Fern-Runtime": core.RUNTIME.type,
259
259
  "X-Fern-Runtime-Version": core.RUNTIME.version,
260
260
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -318,7 +318,7 @@ class Messages {
318
318
  Authorization: yield this._getAuthorizationHeader(),
319
319
  "X-Fern-Language": "JavaScript",
320
320
  "X-Fern-SDK-Name": "@trycourier/courier",
321
- "X-Fern-SDK-Version": "v6.1.3",
321
+ "X-Fern-SDK-Version": "v6.2.1",
322
322
  "X-Fern-Runtime": core.RUNTIME.type,
323
323
  "X-Fern-Runtime-Version": core.RUNTIME.version,
324
324
  },
@@ -378,7 +378,7 @@ class Messages {
378
378
  Authorization: yield this._getAuthorizationHeader(),
379
379
  "X-Fern-Language": "JavaScript",
380
380
  "X-Fern-SDK-Name": "@trycourier/courier",
381
- "X-Fern-SDK-Version": "v6.1.3",
381
+ "X-Fern-SDK-Version": "v6.2.1",
382
382
  "X-Fern-Runtime": core.RUNTIME.type,
383
383
  "X-Fern-Runtime-Version": core.RUNTIME.version,
384
384
  },
@@ -434,7 +434,7 @@ class Messages {
434
434
  Authorization: yield this._getAuthorizationHeader(),
435
435
  "X-Fern-Language": "JavaScript",
436
436
  "X-Fern-SDK-Name": "@trycourier/courier",
437
- "X-Fern-SDK-Version": "v6.1.3",
437
+ "X-Fern-SDK-Version": "v6.2.1",
438
438
  "X-Fern-Runtime": core.RUNTIME.type,
439
439
  "X-Fern-Runtime-Version": core.RUNTIME.version,
440
440
  },
@@ -44,66 +44,6 @@ export declare class Notifications {
44
44
  * await courier.notifications.getDraftContent("string")
45
45
  */
46
46
  getDraftContent(id: string, requestOptions?: Notifications.RequestOptions): Promise<Courier.NotificationGetContentResponse>;
47
- /**
48
- * @param {string} id
49
- * @param {Courier.NotificationUpdateVariationsParams} request
50
- * @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
51
- *
52
- * @example
53
- * await courier.notifications.updateVariations("string", {
54
- * blocks: [{
55
- * alias: "string",
56
- * context: "string",
57
- * id: "string",
58
- * type: Courier.BlockType.Action,
59
- * content: "string",
60
- * locales: {
61
- * "string": "string"
62
- * },
63
- * checksum: "string"
64
- * }],
65
- * channels: [{
66
- * id: "string",
67
- * type: "string",
68
- * content: {},
69
- * locales: {
70
- * "string": {}
71
- * },
72
- * checksum: "string"
73
- * }]
74
- * })
75
- */
76
- updateVariations(id: string, request?: Courier.NotificationUpdateVariationsParams, requestOptions?: Notifications.RequestOptions): Promise<void>;
77
- /**
78
- * @param {string} id
79
- * @param {Courier.NotificationDraftUpdateVariationsParams} request
80
- * @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
81
- *
82
- * @example
83
- * await courier.notifications.updateDraftVariations("string", {
84
- * blocks: [{
85
- * alias: "string",
86
- * context: "string",
87
- * id: "string",
88
- * type: Courier.BlockType.Action,
89
- * content: "string",
90
- * locales: {
91
- * "string": "string"
92
- * },
93
- * checksum: "string"
94
- * }],
95
- * channels: [{
96
- * id: "string",
97
- * type: "string",
98
- * content: {},
99
- * locales: {
100
- * "string": {}
101
- * },
102
- * checksum: "string"
103
- * }]
104
- * })
105
- */
106
- updateDraftVariations(id: string, request?: Courier.NotificationDraftUpdateVariationsParams, requestOptions?: Notifications.RequestOptions): Promise<void>;
107
47
  /**
108
48
  * @param {string} id
109
49
  * @param {string} submissionId
@@ -71,7 +71,7 @@ class Notifications {
71
71
  Authorization: yield this._getAuthorizationHeader(),
72
72
  "X-Fern-Language": "JavaScript",
73
73
  "X-Fern-SDK-Name": "@trycourier/courier",
74
- "X-Fern-SDK-Version": "v6.1.3",
74
+ "X-Fern-SDK-Version": "v6.2.1",
75
75
  "X-Fern-Runtime": core.RUNTIME.type,
76
76
  "X-Fern-Runtime-Version": core.RUNTIME.version,
77
77
  },
@@ -121,7 +121,7 @@ class Notifications {
121
121
  Authorization: yield this._getAuthorizationHeader(),
122
122
  "X-Fern-Language": "JavaScript",
123
123
  "X-Fern-SDK-Name": "@trycourier/courier",
124
- "X-Fern-SDK-Version": "v6.1.3",
124
+ "X-Fern-SDK-Version": "v6.2.1",
125
125
  "X-Fern-Runtime": core.RUNTIME.type,
126
126
  "X-Fern-Runtime-Version": core.RUNTIME.version,
127
127
  },
@@ -170,7 +170,7 @@ class Notifications {
170
170
  Authorization: yield this._getAuthorizationHeader(),
171
171
  "X-Fern-Language": "JavaScript",
172
172
  "X-Fern-SDK-Name": "@trycourier/courier",
173
- "X-Fern-SDK-Version": "v6.1.3",
173
+ "X-Fern-SDK-Version": "v6.2.1",
174
174
  "X-Fern-Runtime": core.RUNTIME.type,
175
175
  "X-Fern-Runtime-Version": core.RUNTIME.version,
176
176
  },
@@ -202,150 +202,6 @@ class Notifications {
202
202
  }
203
203
  });
204
204
  }
205
- /**
206
- * @param {string} id
207
- * @param {Courier.NotificationUpdateVariationsParams} request
208
- * @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
209
- *
210
- * @example
211
- * await courier.notifications.updateVariations("string", {
212
- * blocks: [{
213
- * alias: "string",
214
- * context: "string",
215
- * id: "string",
216
- * type: Courier.BlockType.Action,
217
- * content: "string",
218
- * locales: {
219
- * "string": "string"
220
- * },
221
- * checksum: "string"
222
- * }],
223
- * channels: [{
224
- * id: "string",
225
- * type: "string",
226
- * content: {},
227
- * locales: {
228
- * "string": {}
229
- * },
230
- * checksum: "string"
231
- * }]
232
- * })
233
- */
234
- updateVariations(id, request = {}, requestOptions) {
235
- var _a, _b;
236
- return __awaiter(this, void 0, void 0, function* () {
237
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
238
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/notifications/${encodeURIComponent(id)}/variations`),
239
- method: "POST",
240
- headers: {
241
- Authorization: yield this._getAuthorizationHeader(),
242
- "X-Fern-Language": "JavaScript",
243
- "X-Fern-SDK-Name": "@trycourier/courier",
244
- "X-Fern-SDK-Version": "v6.1.3",
245
- "X-Fern-Runtime": core.RUNTIME.type,
246
- "X-Fern-Runtime-Version": core.RUNTIME.version,
247
- },
248
- contentType: "application/json",
249
- body: request,
250
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
251
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
252
- });
253
- if (_response.ok) {
254
- return;
255
- }
256
- if (_response.error.reason === "status-code") {
257
- throw new errors.CourierError({
258
- statusCode: _response.error.statusCode,
259
- body: _response.error.body,
260
- });
261
- }
262
- switch (_response.error.reason) {
263
- case "non-json":
264
- throw new errors.CourierError({
265
- statusCode: _response.error.statusCode,
266
- body: _response.error.rawBody,
267
- });
268
- case "timeout":
269
- throw new errors.CourierTimeoutError();
270
- case "unknown":
271
- throw new errors.CourierError({
272
- message: _response.error.errorMessage,
273
- });
274
- }
275
- });
276
- }
277
- /**
278
- * @param {string} id
279
- * @param {Courier.NotificationDraftUpdateVariationsParams} request
280
- * @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
281
- *
282
- * @example
283
- * await courier.notifications.updateDraftVariations("string", {
284
- * blocks: [{
285
- * alias: "string",
286
- * context: "string",
287
- * id: "string",
288
- * type: Courier.BlockType.Action,
289
- * content: "string",
290
- * locales: {
291
- * "string": "string"
292
- * },
293
- * checksum: "string"
294
- * }],
295
- * channels: [{
296
- * id: "string",
297
- * type: "string",
298
- * content: {},
299
- * locales: {
300
- * "string": {}
301
- * },
302
- * checksum: "string"
303
- * }]
304
- * })
305
- */
306
- updateDraftVariations(id, request = {}, requestOptions) {
307
- var _a, _b;
308
- return __awaiter(this, void 0, void 0, function* () {
309
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
310
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/notifications/${encodeURIComponent(id)}/draft/variations`),
311
- method: "POST",
312
- headers: {
313
- Authorization: yield this._getAuthorizationHeader(),
314
- "X-Fern-Language": "JavaScript",
315
- "X-Fern-SDK-Name": "@trycourier/courier",
316
- "X-Fern-SDK-Version": "v6.1.3",
317
- "X-Fern-Runtime": core.RUNTIME.type,
318
- "X-Fern-Runtime-Version": core.RUNTIME.version,
319
- },
320
- contentType: "application/json",
321
- body: request,
322
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
323
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
324
- });
325
- if (_response.ok) {
326
- return;
327
- }
328
- if (_response.error.reason === "status-code") {
329
- throw new errors.CourierError({
330
- statusCode: _response.error.statusCode,
331
- body: _response.error.body,
332
- });
333
- }
334
- switch (_response.error.reason) {
335
- case "non-json":
336
- throw new errors.CourierError({
337
- statusCode: _response.error.statusCode,
338
- body: _response.error.rawBody,
339
- });
340
- case "timeout":
341
- throw new errors.CourierTimeoutError();
342
- case "unknown":
343
- throw new errors.CourierError({
344
- message: _response.error.errorMessage,
345
- });
346
- }
347
- });
348
- }
349
205
  /**
350
206
  * @param {string} id
351
207
  * @param {string} submissionId
@@ -364,7 +220,7 @@ class Notifications {
364
220
  Authorization: yield this._getAuthorizationHeader(),
365
221
  "X-Fern-Language": "JavaScript",
366
222
  "X-Fern-SDK-Name": "@trycourier/courier",
367
- "X-Fern-SDK-Version": "v6.1.3",
223
+ "X-Fern-SDK-Version": "v6.2.1",
368
224
  "X-Fern-Runtime": core.RUNTIME.type,
369
225
  "X-Fern-Runtime-Version": core.RUNTIME.version,
370
226
  },
@@ -421,7 +277,7 @@ class Notifications {
421
277
  Authorization: yield this._getAuthorizationHeader(),
422
278
  "X-Fern-Language": "JavaScript",
423
279
  "X-Fern-SDK-Name": "@trycourier/courier",
424
- "X-Fern-SDK-Version": "v6.1.3",
280
+ "X-Fern-SDK-Version": "v6.2.1",
425
281
  "X-Fern-Runtime": core.RUNTIME.type,
426
282
  "X-Fern-Runtime-Version": core.RUNTIME.version,
427
283
  },
@@ -472,7 +328,7 @@ class Notifications {
472
328
  Authorization: yield this._getAuthorizationHeader(),
473
329
  "X-Fern-Language": "JavaScript",
474
330
  "X-Fern-SDK-Name": "@trycourier/courier",
475
- "X-Fern-SDK-Version": "v6.1.3",
331
+ "X-Fern-SDK-Version": "v6.2.1",
476
332
  "X-Fern-Runtime": core.RUNTIME.type,
477
333
  "X-Fern-Runtime-Version": core.RUNTIME.version,
478
334
  },
@@ -1,4 +1,2 @@
1
1
  export { type NotificationListParams } from "./NotificationListParams";
2
- export { type NotificationUpdateVariationsParams } from "./NotificationUpdateVariationsParams";
3
- export { type NotificationDraftUpdateVariationsParams } from "./NotificationDraftUpdateVariationsParams";
4
2
  export { type SubmissionChecksReplaceParams } from "./SubmissionChecksReplaceParams";
@@ -69,7 +69,7 @@ class Profiles {
69
69
  Authorization: yield this._getAuthorizationHeader(),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "@trycourier/courier",
72
- "X-Fern-SDK-Version": "v6.1.3",
72
+ "X-Fern-SDK-Version": "v6.2.1",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  },
@@ -134,7 +134,7 @@ class Profiles {
134
134
  Authorization: yield this._getAuthorizationHeader(),
135
135
  "X-Fern-Language": "JavaScript",
136
136
  "X-Fern-SDK-Name": "@trycourier/courier",
137
- "X-Fern-SDK-Version": "v6.1.3",
137
+ "X-Fern-SDK-Version": "v6.2.1",
138
138
  "X-Fern-Runtime": core.RUNTIME.type,
139
139
  "X-Fern-Runtime-Version": core.RUNTIME.version,
140
140
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -205,7 +205,7 @@ class Profiles {
205
205
  Authorization: yield this._getAuthorizationHeader(),
206
206
  "X-Fern-Language": "JavaScript",
207
207
  "X-Fern-SDK-Name": "@trycourier/courier",
208
- "X-Fern-SDK-Version": "v6.1.3",
208
+ "X-Fern-SDK-Version": "v6.2.1",
209
209
  "X-Fern-Runtime": core.RUNTIME.type,
210
210
  "X-Fern-Runtime-Version": core.RUNTIME.version,
211
211
  },
@@ -264,7 +264,7 @@ class Profiles {
264
264
  Authorization: yield this._getAuthorizationHeader(),
265
265
  "X-Fern-Language": "JavaScript",
266
266
  "X-Fern-SDK-Name": "@trycourier/courier",
267
- "X-Fern-SDK-Version": "v6.1.3",
267
+ "X-Fern-SDK-Version": "v6.2.1",
268
268
  "X-Fern-Runtime": core.RUNTIME.type,
269
269
  "X-Fern-Runtime-Version": core.RUNTIME.version,
270
270
  },
@@ -330,7 +330,7 @@ class Profiles {
330
330
  Authorization: yield this._getAuthorizationHeader(),
331
331
  "X-Fern-Language": "JavaScript",
332
332
  "X-Fern-SDK-Name": "@trycourier/courier",
333
- "X-Fern-SDK-Version": "v6.1.3",
333
+ "X-Fern-SDK-Version": "v6.2.1",
334
334
  "X-Fern-Runtime": core.RUNTIME.type,
335
335
  "X-Fern-Runtime-Version": core.RUNTIME.version,
336
336
  },
@@ -392,7 +392,7 @@ class Profiles {
392
392
  Authorization: yield this._getAuthorizationHeader(),
393
393
  "X-Fern-Language": "JavaScript",
394
394
  "X-Fern-SDK-Name": "@trycourier/courier",
395
- "X-Fern-SDK-Version": "v6.1.3",
395
+ "X-Fern-SDK-Version": "v6.2.1",
396
396
  "X-Fern-Runtime": core.RUNTIME.type,
397
397
  "X-Fern-Runtime-Version": core.RUNTIME.version,
398
398
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -453,7 +453,7 @@ class Profiles {
453
453
  Authorization: yield this._getAuthorizationHeader(),
454
454
  "X-Fern-Language": "JavaScript",
455
455
  "X-Fern-SDK-Name": "@trycourier/courier",
456
- "X-Fern-SDK-Version": "v6.1.3",
456
+ "X-Fern-SDK-Version": "v6.2.1",
457
457
  "X-Fern-Runtime": core.RUNTIME.type,
458
458
  "X-Fern-Runtime-Version": core.RUNTIME.version,
459
459
  },
@@ -73,7 +73,7 @@ class Templates {
73
73
  Authorization: yield this._getAuthorizationHeader(),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "@trycourier/courier",
76
- "X-Fern-SDK-Version": "v6.1.3",
76
+ "X-Fern-SDK-Version": "v6.2.1",
77
77
  "X-Fern-Runtime": core.RUNTIME.type,
78
78
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
79
  },
@@ -85,7 +85,7 @@ class Tenants {
85
85
  Authorization: yield this._getAuthorizationHeader(),
86
86
  "X-Fern-Language": "JavaScript",
87
87
  "X-Fern-SDK-Name": "@trycourier/courier",
88
- "X-Fern-SDK-Version": "v6.1.3",
88
+ "X-Fern-SDK-Version": "v6.2.1",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -142,7 +142,7 @@ class Tenants {
142
142
  Authorization: yield this._getAuthorizationHeader(),
143
143
  "X-Fern-Language": "JavaScript",
144
144
  "X-Fern-SDK-Name": "@trycourier/courier",
145
- "X-Fern-SDK-Version": "v6.1.3",
145
+ "X-Fern-SDK-Version": "v6.2.1",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -211,7 +211,7 @@ class Tenants {
211
211
  Authorization: yield this._getAuthorizationHeader(),
212
212
  "X-Fern-Language": "JavaScript",
213
213
  "X-Fern-SDK-Name": "@trycourier/courier",
214
- "X-Fern-SDK-Version": "v6.1.3",
214
+ "X-Fern-SDK-Version": "v6.2.1",
215
215
  "X-Fern-Runtime": core.RUNTIME.type,
216
216
  "X-Fern-Runtime-Version": core.RUNTIME.version,
217
217
  },
@@ -261,7 +261,7 @@ class Tenants {
261
261
  Authorization: yield this._getAuthorizationHeader(),
262
262
  "X-Fern-Language": "JavaScript",
263
263
  "X-Fern-SDK-Name": "@trycourier/courier",
264
- "X-Fern-SDK-Version": "v6.1.3",
264
+ "X-Fern-SDK-Version": "v6.2.1",
265
265
  "X-Fern-Runtime": core.RUNTIME.type,
266
266
  "X-Fern-Runtime-Version": core.RUNTIME.version,
267
267
  },
@@ -324,7 +324,7 @@ class Tenants {
324
324
  Authorization: yield this._getAuthorizationHeader(),
325
325
  "X-Fern-Language": "JavaScript",
326
326
  "X-Fern-SDK-Name": "@trycourier/courier",
327
- "X-Fern-SDK-Version": "v6.1.3",
327
+ "X-Fern-SDK-Version": "v6.2.1",
328
328
  "X-Fern-Runtime": core.RUNTIME.type,
329
329
  "X-Fern-Runtime-Version": core.RUNTIME.version,
330
330
  },
@@ -385,7 +385,7 @@ class Tenants {
385
385
  Authorization: yield this._getAuthorizationHeader(),
386
386
  "X-Fern-Language": "JavaScript",
387
387
  "X-Fern-SDK-Name": "@trycourier/courier",
388
- "X-Fern-SDK-Version": "v6.1.3",
388
+ "X-Fern-SDK-Version": "v6.2.1",
389
389
  "X-Fern-Runtime": core.RUNTIME.type,
390
390
  "X-Fern-Runtime-Version": core.RUNTIME.version,
391
391
  },
@@ -436,7 +436,7 @@ class Tenants {
436
436
  Authorization: yield this._getAuthorizationHeader(),
437
437
  "X-Fern-Language": "JavaScript",
438
438
  "X-Fern-SDK-Name": "@trycourier/courier",
439
- "X-Fern-SDK-Version": "v6.1.3",
439
+ "X-Fern-SDK-Version": "v6.2.1",
440
440
  "X-Fern-Runtime": core.RUNTIME.type,
441
441
  "X-Fern-Runtime-Version": core.RUNTIME.version,
442
442
  },
@@ -70,7 +70,7 @@ class Translations {
70
70
  Authorization: yield this._getAuthorizationHeader(),
71
71
  "X-Fern-Language": "JavaScript",
72
72
  "X-Fern-SDK-Name": "@trycourier/courier",
73
- "X-Fern-SDK-Version": "v6.1.3",
73
+ "X-Fern-SDK-Version": "v6.2.1",
74
74
  "X-Fern-Runtime": core.RUNTIME.type,
75
75
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
76
  },
@@ -130,7 +130,7 @@ class Translations {
130
130
  Authorization: yield this._getAuthorizationHeader(),
131
131
  "X-Fern-Language": "JavaScript",
132
132
  "X-Fern-SDK-Name": "@trycourier/courier",
133
- "X-Fern-SDK-Version": "v6.1.3",
133
+ "X-Fern-SDK-Version": "v6.2.1",
134
134
  "X-Fern-Runtime": core.RUNTIME.type,
135
135
  "X-Fern-Runtime-Version": core.RUNTIME.version,
136
136
  },
@@ -69,7 +69,7 @@ class Preferences {
69
69
  Authorization: yield this._getAuthorizationHeader(),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "@trycourier/courier",
72
- "X-Fern-SDK-Version": "v6.1.3",
72
+ "X-Fern-SDK-Version": "v6.2.1",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  },
@@ -128,7 +128,7 @@ class Preferences {
128
128
  Authorization: yield this._getAuthorizationHeader(),
129
129
  "X-Fern-Language": "JavaScript",
130
130
  "X-Fern-SDK-Name": "@trycourier/courier",
131
- "X-Fern-SDK-Version": "v6.1.3",
131
+ "X-Fern-SDK-Version": "v6.2.1",
132
132
  "X-Fern-Runtime": core.RUNTIME.type,
133
133
  "X-Fern-Runtime-Version": core.RUNTIME.version,
134
134
  },
@@ -194,7 +194,7 @@ class Preferences {
194
194
  Authorization: yield this._getAuthorizationHeader(),
195
195
  "X-Fern-Language": "JavaScript",
196
196
  "X-Fern-SDK-Name": "@trycourier/courier",
197
- "X-Fern-SDK-Version": "v6.1.3",
197
+ "X-Fern-SDK-Version": "v6.2.1",
198
198
  "X-Fern-Runtime": core.RUNTIME.type,
199
199
  "X-Fern-Runtime-Version": core.RUNTIME.version,
200
200
  },
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Courier from "../../../../../index";
5
5
  export interface UserPreferencesListResponse {
6
+ /** Deprecated - Paging not implemented on this endpoint */
6
7
  paging: Courier.Paging;
7
8
  /** The Preferences associated with the user_id. */
8
9
  items: Courier.users.TopicPreference[];
@@ -82,7 +82,7 @@ class Tenants {
82
82
  Authorization: yield this._getAuthorizationHeader(),
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "@trycourier/courier",
85
- "X-Fern-SDK-Version": "v6.1.3",
85
+ "X-Fern-SDK-Version": "v6.2.1",
86
86
  "X-Fern-Runtime": core.RUNTIME.type,
87
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
88
  },
@@ -146,7 +146,7 @@ class Tenants {
146
146
  Authorization: yield this._getAuthorizationHeader(),
147
147
  "X-Fern-Language": "JavaScript",
148
148
  "X-Fern-SDK-Name": "@trycourier/courier",
149
- "X-Fern-SDK-Version": "v6.1.3",
149
+ "X-Fern-SDK-Version": "v6.2.1",
150
150
  "X-Fern-Runtime": core.RUNTIME.type,
151
151
  "X-Fern-Runtime-Version": core.RUNTIME.version,
152
152
  },
@@ -198,7 +198,7 @@ class Tenants {
198
198
  Authorization: yield this._getAuthorizationHeader(),
199
199
  "X-Fern-Language": "JavaScript",
200
200
  "X-Fern-SDK-Name": "@trycourier/courier",
201
- "X-Fern-SDK-Version": "v6.1.3",
201
+ "X-Fern-SDK-Version": "v6.2.1",
202
202
  "X-Fern-Runtime": core.RUNTIME.type,
203
203
  "X-Fern-Runtime-Version": core.RUNTIME.version,
204
204
  },
@@ -250,7 +250,7 @@ class Tenants {
250
250
  Authorization: yield this._getAuthorizationHeader(),
251
251
  "X-Fern-Language": "JavaScript",
252
252
  "X-Fern-SDK-Name": "@trycourier/courier",
253
- "X-Fern-SDK-Version": "v6.1.3",
253
+ "X-Fern-SDK-Version": "v6.2.1",
254
254
  "X-Fern-Runtime": core.RUNTIME.type,
255
255
  "X-Fern-Runtime-Version": core.RUNTIME.version,
256
256
  },
@@ -313,7 +313,7 @@ class Tenants {
313
313
  Authorization: yield this._getAuthorizationHeader(),
314
314
  "X-Fern-Language": "JavaScript",
315
315
  "X-Fern-SDK-Name": "@trycourier/courier",
316
- "X-Fern-SDK-Version": "v6.1.3",
316
+ "X-Fern-SDK-Version": "v6.2.1",
317
317
  "X-Fern-Runtime": core.RUNTIME.type,
318
318
  "X-Fern-Runtime-Version": core.RUNTIME.version,
319
319
  },