@trycourier/courier 6.0.3 → 6.0.4

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 (55) hide show
  1. package/Client.js +1 -1
  2. package/api/resources/audiences/client/Client.js +5 -5
  3. package/api/resources/auditEvents/client/Client.js +2 -2
  4. package/api/resources/authTokens/client/Client.js +1 -1
  5. package/api/resources/automations/client/Client.js +2 -2
  6. package/api/resources/brands/client/Client.js +5 -5
  7. package/api/resources/bulk/client/Client.js +5 -5
  8. package/api/resources/lists/client/Client.js +10 -10
  9. package/api/resources/messages/client/Client.js +6 -6
  10. package/api/resources/notifications/client/Client.js +8 -8
  11. package/api/resources/profiles/client/Client.d.ts +1 -1
  12. package/api/resources/profiles/client/Client.js +8 -8
  13. package/api/resources/profiles/types/GetListSubscriptionsList.d.ts +14 -0
  14. package/api/resources/profiles/types/GetListSubscriptionsList.js +5 -0
  15. package/api/resources/profiles/types/GetListSubscriptionsResponse.d.ts +9 -0
  16. package/api/resources/profiles/types/GetListSubscriptionsResponse.js +5 -0
  17. package/api/resources/profiles/types/SubscribeToListsRequest.d.ts +1 -2
  18. package/api/resources/profiles/types/SubscribeToListsRequestListObject.d.ts +8 -0
  19. package/api/resources/profiles/types/SubscribeToListsRequestListObject.js +5 -0
  20. package/api/resources/profiles/types/index.d.ts +3 -0
  21. package/api/resources/profiles/types/index.js +3 -0
  22. package/api/resources/templates/client/Client.js +1 -1
  23. package/api/resources/tenants/client/Client.js +4 -4
  24. package/api/resources/translations/client/Client.js +2 -2
  25. package/api/resources/users/resources/preferences/client/Client.js +3 -3
  26. package/api/resources/users/resources/tenants/client/Client.js +4 -4
  27. package/api/resources/users/resources/tokens/client/Client.js +5 -5
  28. package/dist/Client.js +1 -1
  29. package/dist/api/resources/audiences/client/Client.js +5 -5
  30. package/dist/api/resources/auditEvents/client/Client.js +2 -2
  31. package/dist/api/resources/authTokens/client/Client.js +1 -1
  32. package/dist/api/resources/automations/client/Client.js +2 -2
  33. package/dist/api/resources/brands/client/Client.js +5 -5
  34. package/dist/api/resources/bulk/client/Client.js +5 -5
  35. package/dist/api/resources/lists/client/Client.js +10 -10
  36. package/dist/api/resources/messages/client/Client.js +6 -6
  37. package/dist/api/resources/notifications/client/Client.js +8 -8
  38. package/dist/api/resources/profiles/client/Client.d.ts +1 -1
  39. package/dist/api/resources/profiles/client/Client.js +8 -8
  40. package/dist/api/resources/profiles/types/GetListSubscriptionsList.d.ts +14 -0
  41. package/dist/api/resources/profiles/types/GetListSubscriptionsList.js +5 -0
  42. package/dist/api/resources/profiles/types/GetListSubscriptionsResponse.d.ts +9 -0
  43. package/dist/api/resources/profiles/types/GetListSubscriptionsResponse.js +5 -0
  44. package/dist/api/resources/profiles/types/SubscribeToListsRequest.d.ts +1 -2
  45. package/dist/api/resources/profiles/types/SubscribeToListsRequestListObject.d.ts +8 -0
  46. package/dist/api/resources/profiles/types/SubscribeToListsRequestListObject.js +5 -0
  47. package/dist/api/resources/profiles/types/index.d.ts +3 -0
  48. package/dist/api/resources/profiles/types/index.js +3 -0
  49. package/dist/api/resources/templates/client/Client.js +1 -1
  50. package/dist/api/resources/tenants/client/Client.js +4 -4
  51. package/dist/api/resources/translations/client/Client.js +2 -2
  52. package/dist/api/resources/users/resources/preferences/client/Client.js +3 -3
  53. package/dist/api/resources/users/resources/tenants/client/Client.js +4 -4
  54. package/dist/api/resources/users/resources/tokens/client/Client.js +5 -5
  55. package/package.json +1 -1
package/Client.js CHANGED
@@ -74,7 +74,7 @@ class CourierClient {
74
74
  Authorization: yield this._getAuthorizationHeader(),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "@trycourier/courier",
77
- "X-Fern-SDK-Version": "v6.0.3",
77
+ "X-Fern-SDK-Version": "v6.0.4",
78
78
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
79
79
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
80
80
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -61,7 +61,7 @@ class Audiences {
61
61
  Authorization: yield this._getAuthorizationHeader(),
62
62
  "X-Fern-Language": "JavaScript",
63
63
  "X-Fern-SDK-Name": "@trycourier/courier",
64
- "X-Fern-SDK-Version": "v6.0.3",
64
+ "X-Fern-SDK-Version": "v6.0.4",
65
65
  },
66
66
  contentType: "application/json",
67
67
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -104,7 +104,7 @@ class Audiences {
104
104
  Authorization: yield this._getAuthorizationHeader(),
105
105
  "X-Fern-Language": "JavaScript",
106
106
  "X-Fern-SDK-Name": "@trycourier/courier",
107
- "X-Fern-SDK-Version": "v6.0.3",
107
+ "X-Fern-SDK-Version": "v6.0.4",
108
108
  },
109
109
  contentType: "application/json",
110
110
  body: request,
@@ -148,7 +148,7 @@ class Audiences {
148
148
  Authorization: yield this._getAuthorizationHeader(),
149
149
  "X-Fern-Language": "JavaScript",
150
150
  "X-Fern-SDK-Name": "@trycourier/courier",
151
- "X-Fern-SDK-Version": "v6.0.3",
151
+ "X-Fern-SDK-Version": "v6.0.4",
152
152
  },
153
153
  contentType: "application/json",
154
154
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -197,7 +197,7 @@ class Audiences {
197
197
  Authorization: yield this._getAuthorizationHeader(),
198
198
  "X-Fern-Language": "JavaScript",
199
199
  "X-Fern-SDK-Name": "@trycourier/courier",
200
- "X-Fern-SDK-Version": "v6.0.3",
200
+ "X-Fern-SDK-Version": "v6.0.4",
201
201
  },
202
202
  contentType: "application/json",
203
203
  queryParameters: _queryParams,
@@ -252,7 +252,7 @@ class Audiences {
252
252
  Authorization: yield this._getAuthorizationHeader(),
253
253
  "X-Fern-Language": "JavaScript",
254
254
  "X-Fern-SDK-Name": "@trycourier/courier",
255
- "X-Fern-SDK-Version": "v6.0.3",
255
+ "X-Fern-SDK-Version": "v6.0.4",
256
256
  },
257
257
  contentType: "application/json",
258
258
  queryParameters: _queryParams,
@@ -65,7 +65,7 @@ class AuditEvents {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@trycourier/courier",
68
- "X-Fern-SDK-Version": "v6.0.3",
68
+ "X-Fern-SDK-Version": "v6.0.4",
69
69
  },
70
70
  contentType: "application/json",
71
71
  queryParameters: _queryParams,
@@ -109,7 +109,7 @@ class AuditEvents {
109
109
  Authorization: yield this._getAuthorizationHeader(),
110
110
  "X-Fern-Language": "JavaScript",
111
111
  "X-Fern-SDK-Name": "@trycourier/courier",
112
- "X-Fern-SDK-Version": "v6.0.3",
112
+ "X-Fern-SDK-Version": "v6.0.4",
113
113
  },
114
114
  contentType: "application/json",
115
115
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -60,7 +60,7 @@ class AuthTokens {
60
60
  Authorization: yield this._getAuthorizationHeader(),
61
61
  "X-Fern-Language": "JavaScript",
62
62
  "X-Fern-SDK-Name": "@trycourier/courier",
63
- "X-Fern-SDK-Version": "v6.0.3",
63
+ "X-Fern-SDK-Version": "v6.0.4",
64
64
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
65
65
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
66
66
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -60,7 +60,7 @@ class Automations {
60
60
  Authorization: yield this._getAuthorizationHeader(),
61
61
  "X-Fern-Language": "JavaScript",
62
62
  "X-Fern-SDK-Name": "@trycourier/courier",
63
- "X-Fern-SDK-Version": "v6.0.3",
63
+ "X-Fern-SDK-Version": "v6.0.4",
64
64
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
65
65
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
66
66
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -108,7 +108,7 @@ class Automations {
108
108
  Authorization: yield this._getAuthorizationHeader(),
109
109
  "X-Fern-Language": "JavaScript",
110
110
  "X-Fern-SDK-Name": "@trycourier/courier",
111
- "X-Fern-SDK-Version": "v6.0.3",
111
+ "X-Fern-SDK-Version": "v6.0.4",
112
112
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
113
113
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
114
114
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -63,7 +63,7 @@ class Brands {
63
63
  Authorization: yield this._getAuthorizationHeader(),
64
64
  "X-Fern-Language": "JavaScript",
65
65
  "X-Fern-SDK-Name": "@trycourier/courier",
66
- "X-Fern-SDK-Version": "v6.0.3",
66
+ "X-Fern-SDK-Version": "v6.0.4",
67
67
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
68
68
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
69
69
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -120,7 +120,7 @@ class Brands {
120
120
  Authorization: yield this._getAuthorizationHeader(),
121
121
  "X-Fern-Language": "JavaScript",
122
122
  "X-Fern-SDK-Name": "@trycourier/courier",
123
- "X-Fern-SDK-Version": "v6.0.3",
123
+ "X-Fern-SDK-Version": "v6.0.4",
124
124
  },
125
125
  contentType: "application/json",
126
126
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -168,7 +168,7 @@ class Brands {
168
168
  Authorization: yield this._getAuthorizationHeader(),
169
169
  "X-Fern-Language": "JavaScript",
170
170
  "X-Fern-SDK-Name": "@trycourier/courier",
171
- "X-Fern-SDK-Version": "v6.0.3",
171
+ "X-Fern-SDK-Version": "v6.0.4",
172
172
  },
173
173
  contentType: "application/json",
174
174
  queryParameters: _queryParams,
@@ -213,7 +213,7 @@ class Brands {
213
213
  Authorization: yield this._getAuthorizationHeader(),
214
214
  "X-Fern-Language": "JavaScript",
215
215
  "X-Fern-SDK-Name": "@trycourier/courier",
216
- "X-Fern-SDK-Version": "v6.0.3",
216
+ "X-Fern-SDK-Version": "v6.0.4",
217
217
  },
218
218
  contentType: "application/json",
219
219
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -261,7 +261,7 @@ class Brands {
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.0.3",
264
+ "X-Fern-SDK-Version": "v6.0.4",
265
265
  },
266
266
  contentType: "application/json",
267
267
  body: request,
@@ -61,7 +61,7 @@ class Bulk {
61
61
  Authorization: yield this._getAuthorizationHeader(),
62
62
  "X-Fern-Language": "JavaScript",
63
63
  "X-Fern-SDK-Name": "@trycourier/courier",
64
- "X-Fern-SDK-Version": "v6.0.3",
64
+ "X-Fern-SDK-Version": "v6.0.4",
65
65
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
66
66
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
67
67
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -114,7 +114,7 @@ class Bulk {
114
114
  Authorization: yield this._getAuthorizationHeader(),
115
115
  "X-Fern-Language": "JavaScript",
116
116
  "X-Fern-SDK-Name": "@trycourier/courier",
117
- "X-Fern-SDK-Version": "v6.0.3",
117
+ "X-Fern-SDK-Version": "v6.0.4",
118
118
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
119
119
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
120
120
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -163,7 +163,7 @@ class Bulk {
163
163
  Authorization: yield this._getAuthorizationHeader(),
164
164
  "X-Fern-Language": "JavaScript",
165
165
  "X-Fern-SDK-Name": "@trycourier/courier",
166
- "X-Fern-SDK-Version": "v6.0.3",
166
+ "X-Fern-SDK-Version": "v6.0.4",
167
167
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
168
168
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
169
169
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -216,7 +216,7 @@ class Bulk {
216
216
  Authorization: yield this._getAuthorizationHeader(),
217
217
  "X-Fern-Language": "JavaScript",
218
218
  "X-Fern-SDK-Name": "@trycourier/courier",
219
- "X-Fern-SDK-Version": "v6.0.3",
219
+ "X-Fern-SDK-Version": "v6.0.4",
220
220
  },
221
221
  contentType: "application/json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -265,7 +265,7 @@ class Bulk {
265
265
  Authorization: yield this._getAuthorizationHeader(),
266
266
  "X-Fern-Language": "JavaScript",
267
267
  "X-Fern-SDK-Name": "@trycourier/courier",
268
- "X-Fern-SDK-Version": "v6.0.3",
268
+ "X-Fern-SDK-Version": "v6.0.4",
269
269
  },
270
270
  contentType: "application/json",
271
271
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -70,7 +70,7 @@ class Lists {
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.0.3",
73
+ "X-Fern-SDK-Version": "v6.0.4",
74
74
  },
75
75
  contentType: "application/json",
76
76
  queryParameters: _queryParams,
@@ -128,7 +128,7 @@ class Lists {
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.0.3",
131
+ "X-Fern-SDK-Version": "v6.0.4",
132
132
  },
133
133
  contentType: "application/json",
134
134
  queryParameters: _queryParams,
@@ -177,7 +177,7 @@ class Lists {
177
177
  Authorization: yield this._getAuthorizationHeader(),
178
178
  "X-Fern-Language": "JavaScript",
179
179
  "X-Fern-SDK-Name": "@trycourier/courier",
180
- "X-Fern-SDK-Version": "v6.0.3",
180
+ "X-Fern-SDK-Version": "v6.0.4",
181
181
  },
182
182
  contentType: "application/json",
183
183
  body: request,
@@ -221,7 +221,7 @@ class Lists {
221
221
  Authorization: yield this._getAuthorizationHeader(),
222
222
  "X-Fern-Language": "JavaScript",
223
223
  "X-Fern-SDK-Name": "@trycourier/courier",
224
- "X-Fern-SDK-Version": "v6.0.3",
224
+ "X-Fern-SDK-Version": "v6.0.4",
225
225
  },
226
226
  contentType: "application/json",
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -264,7 +264,7 @@ class Lists {
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.0.3",
267
+ "X-Fern-SDK-Version": "v6.0.4",
268
268
  },
269
269
  contentType: "application/json",
270
270
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -313,7 +313,7 @@ class Lists {
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.0.3",
316
+ "X-Fern-SDK-Version": "v6.0.4",
317
317
  },
318
318
  contentType: "application/json",
319
319
  queryParameters: _queryParams,
@@ -363,7 +363,7 @@ class Lists {
363
363
  Authorization: yield this._getAuthorizationHeader(),
364
364
  "X-Fern-Language": "JavaScript",
365
365
  "X-Fern-SDK-Name": "@trycourier/courier",
366
- "X-Fern-SDK-Version": "v6.0.3",
366
+ "X-Fern-SDK-Version": "v6.0.4",
367
367
  },
368
368
  contentType: "application/json",
369
369
  body: request,
@@ -413,7 +413,7 @@ class Lists {
413
413
  Authorization: yield this._getAuthorizationHeader(),
414
414
  "X-Fern-Language": "JavaScript",
415
415
  "X-Fern-SDK-Name": "@trycourier/courier",
416
- "X-Fern-SDK-Version": "v6.0.3",
416
+ "X-Fern-SDK-Version": "v6.0.4",
417
417
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
418
418
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
419
419
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -466,7 +466,7 @@ class Lists {
466
466
  Authorization: yield this._getAuthorizationHeader(),
467
467
  "X-Fern-Language": "JavaScript",
468
468
  "X-Fern-SDK-Name": "@trycourier/courier",
469
- "X-Fern-SDK-Version": "v6.0.3",
469
+ "X-Fern-SDK-Version": "v6.0.4",
470
470
  },
471
471
  contentType: "application/json",
472
472
  body: request,
@@ -511,7 +511,7 @@ class Lists {
511
511
  Authorization: yield this._getAuthorizationHeader(),
512
512
  "X-Fern-Language": "JavaScript",
513
513
  "X-Fern-SDK-Name": "@trycourier/courier",
514
- "X-Fern-SDK-Version": "v6.0.3",
514
+ "X-Fern-SDK-Version": "v6.0.4",
515
515
  },
516
516
  contentType: "application/json",
517
517
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -96,7 +96,7 @@ class Messages {
96
96
  Authorization: yield this._getAuthorizationHeader(),
97
97
  "X-Fern-Language": "JavaScript",
98
98
  "X-Fern-SDK-Name": "@trycourier/courier",
99
- "X-Fern-SDK-Version": "v6.0.3",
99
+ "X-Fern-SDK-Version": "v6.0.4",
100
100
  },
101
101
  contentType: "application/json",
102
102
  queryParameters: _queryParams,
@@ -142,7 +142,7 @@ class Messages {
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.0.3",
145
+ "X-Fern-SDK-Version": "v6.0.4",
146
146
  },
147
147
  contentType: "application/json",
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -192,7 +192,7 @@ class Messages {
192
192
  Authorization: yield this._getAuthorizationHeader(),
193
193
  "X-Fern-Language": "JavaScript",
194
194
  "X-Fern-SDK-Name": "@trycourier/courier",
195
- "X-Fern-SDK-Version": "v6.0.3",
195
+ "X-Fern-SDK-Version": "v6.0.4",
196
196
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
197
197
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
198
198
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -246,7 +246,7 @@ class Messages {
246
246
  Authorization: yield this._getAuthorizationHeader(),
247
247
  "X-Fern-Language": "JavaScript",
248
248
  "X-Fern-SDK-Name": "@trycourier/courier",
249
- "X-Fern-SDK-Version": "v6.0.3",
249
+ "X-Fern-SDK-Version": "v6.0.4",
250
250
  },
251
251
  contentType: "application/json",
252
252
  queryParameters: _queryParams,
@@ -298,7 +298,7 @@ class Messages {
298
298
  Authorization: yield this._getAuthorizationHeader(),
299
299
  "X-Fern-Language": "JavaScript",
300
300
  "X-Fern-SDK-Name": "@trycourier/courier",
301
- "X-Fern-SDK-Version": "v6.0.3",
301
+ "X-Fern-SDK-Version": "v6.0.4",
302
302
  },
303
303
  contentType: "application/json",
304
304
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -345,7 +345,7 @@ class Messages {
345
345
  Authorization: yield this._getAuthorizationHeader(),
346
346
  "X-Fern-Language": "JavaScript",
347
347
  "X-Fern-SDK-Name": "@trycourier/courier",
348
- "X-Fern-SDK-Version": "v6.0.3",
348
+ "X-Fern-SDK-Version": "v6.0.4",
349
349
  },
350
350
  contentType: "application/json",
351
351
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -62,7 +62,7 @@ class Notifications {
62
62
  Authorization: yield this._getAuthorizationHeader(),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "@trycourier/courier",
65
- "X-Fern-SDK-Version": "v6.0.3",
65
+ "X-Fern-SDK-Version": "v6.0.4",
66
66
  },
67
67
  contentType: "application/json",
68
68
  queryParameters: _queryParams,
@@ -103,7 +103,7 @@ class Notifications {
103
103
  Authorization: yield this._getAuthorizationHeader(),
104
104
  "X-Fern-Language": "JavaScript",
105
105
  "X-Fern-SDK-Name": "@trycourier/courier",
106
- "X-Fern-SDK-Version": "v6.0.3",
106
+ "X-Fern-SDK-Version": "v6.0.4",
107
107
  },
108
108
  contentType: "application/json",
109
109
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -143,7 +143,7 @@ class Notifications {
143
143
  Authorization: yield this._getAuthorizationHeader(),
144
144
  "X-Fern-Language": "JavaScript",
145
145
  "X-Fern-SDK-Name": "@trycourier/courier",
146
- "X-Fern-SDK-Version": "v6.0.3",
146
+ "X-Fern-SDK-Version": "v6.0.4",
147
147
  },
148
148
  contentType: "application/json",
149
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -183,7 +183,7 @@ class Notifications {
183
183
  Authorization: yield this._getAuthorizationHeader(),
184
184
  "X-Fern-Language": "JavaScript",
185
185
  "X-Fern-SDK-Name": "@trycourier/courier",
186
- "X-Fern-SDK-Version": "v6.0.3",
186
+ "X-Fern-SDK-Version": "v6.0.4",
187
187
  },
188
188
  contentType: "application/json",
189
189
  body: request,
@@ -224,7 +224,7 @@ class Notifications {
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.0.3",
227
+ "X-Fern-SDK-Version": "v6.0.4",
228
228
  },
229
229
  contentType: "application/json",
230
230
  body: request,
@@ -265,7 +265,7 @@ class Notifications {
265
265
  Authorization: yield this._getAuthorizationHeader(),
266
266
  "X-Fern-Language": "JavaScript",
267
267
  "X-Fern-SDK-Name": "@trycourier/courier",
268
- "X-Fern-SDK-Version": "v6.0.3",
268
+ "X-Fern-SDK-Version": "v6.0.4",
269
269
  },
270
270
  contentType: "application/json",
271
271
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -305,7 +305,7 @@ class Notifications {
305
305
  Authorization: yield this._getAuthorizationHeader(),
306
306
  "X-Fern-Language": "JavaScript",
307
307
  "X-Fern-SDK-Name": "@trycourier/courier",
308
- "X-Fern-SDK-Version": "v6.0.3",
308
+ "X-Fern-SDK-Version": "v6.0.4",
309
309
  },
310
310
  contentType: "application/json",
311
311
  body: request,
@@ -346,7 +346,7 @@ class Notifications {
346
346
  Authorization: yield this._getAuthorizationHeader(),
347
347
  "X-Fern-Language": "JavaScript",
348
348
  "X-Fern-SDK-Name": "@trycourier/courier",
349
- "X-Fern-SDK-Version": "v6.0.3",
349
+ "X-Fern-SDK-Version": "v6.0.4",
350
350
  },
351
351
  contentType: "application/json",
352
352
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -48,7 +48,7 @@ export declare class Profiles {
48
48
  * Returns the subscribed lists for a specified user.
49
49
  * @throws {@link Courier.BadRequestError}
50
50
  */
51
- getListSubscriptions(userId: string, request?: Courier.GetListSubscriptionsRequest, requestOptions?: Profiles.RequestOptions): Promise<void>;
51
+ getListSubscriptions(userId: string, request?: Courier.GetListSubscriptionsRequest, requestOptions?: Profiles.RequestOptions): Promise<Courier.GetListSubscriptionsResponse>;
52
52
  /**
53
53
  * Subscribes the given user to one or more lists. If the list does not exist, it will be created.
54
54
  * @throws {@link Courier.BadRequestError}
@@ -62,7 +62,7 @@ class Profiles {
62
62
  Authorization: yield this._getAuthorizationHeader(),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "@trycourier/courier",
65
- "X-Fern-SDK-Version": "v6.0.3",
65
+ "X-Fern-SDK-Version": "v6.0.4",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class Profiles {
111
111
  Authorization: yield this._getAuthorizationHeader(),
112
112
  "X-Fern-Language": "JavaScript",
113
113
  "X-Fern-SDK-Name": "@trycourier/courier",
114
- "X-Fern-SDK-Version": "v6.0.3",
114
+ "X-Fern-SDK-Version": "v6.0.4",
115
115
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
116
116
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
117
117
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -168,7 +168,7 @@ class Profiles {
168
168
  Authorization: yield this._getAuthorizationHeader(),
169
169
  "X-Fern-Language": "JavaScript",
170
170
  "X-Fern-SDK-Name": "@trycourier/courier",
171
- "X-Fern-SDK-Version": "v6.0.3",
171
+ "X-Fern-SDK-Version": "v6.0.4",
172
172
  },
173
173
  contentType: "application/json",
174
174
  body: request,
@@ -218,7 +218,7 @@ class Profiles {
218
218
  Authorization: yield this._getAuthorizationHeader(),
219
219
  "X-Fern-Language": "JavaScript",
220
220
  "X-Fern-SDK-Name": "@trycourier/courier",
221
- "X-Fern-SDK-Version": "v6.0.3",
221
+ "X-Fern-SDK-Version": "v6.0.4",
222
222
  },
223
223
  contentType: "application/json",
224
224
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -272,7 +272,7 @@ class Profiles {
272
272
  Authorization: yield this._getAuthorizationHeader(),
273
273
  "X-Fern-Language": "JavaScript",
274
274
  "X-Fern-SDK-Name": "@trycourier/courier",
275
- "X-Fern-SDK-Version": "v6.0.3",
275
+ "X-Fern-SDK-Version": "v6.0.4",
276
276
  },
277
277
  contentType: "application/json",
278
278
  queryParameters: _queryParams,
@@ -280,7 +280,7 @@ class Profiles {
280
280
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
281
281
  });
282
282
  if (_response.ok) {
283
- return;
283
+ return _response.body;
284
284
  }
285
285
  if (_response.error.reason === "status-code") {
286
286
  switch (_response.error.statusCode) {
@@ -322,7 +322,7 @@ class Profiles {
322
322
  Authorization: yield this._getAuthorizationHeader(),
323
323
  "X-Fern-Language": "JavaScript",
324
324
  "X-Fern-SDK-Name": "@trycourier/courier",
325
- "X-Fern-SDK-Version": "v6.0.3",
325
+ "X-Fern-SDK-Version": "v6.0.4",
326
326
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
327
327
  "X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
328
328
  ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
@@ -376,7 +376,7 @@ class Profiles {
376
376
  Authorization: yield this._getAuthorizationHeader(),
377
377
  "X-Fern-Language": "JavaScript",
378
378
  "X-Fern-SDK-Name": "@trycourier/courier",
379
- "X-Fern-SDK-Version": "v6.0.3",
379
+ "X-Fern-SDK-Version": "v6.0.4",
380
380
  },
381
381
  contentType: "application/json",
382
382
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface GetListSubscriptionsList {
6
+ id: string;
7
+ /** List name */
8
+ name: string;
9
+ /** The date/time of when the list was created. Represented as a string in ISO format. */
10
+ created: string;
11
+ /** The date/time of when the list was updated. Represented as a string in ISO format. */
12
+ updated: string;
13
+ preferences?: Courier.RecipientPreferences;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface GetListSubscriptionsResponse {
6
+ paging: Courier.Paging;
7
+ /** An array of lists */
8
+ results: Courier.GetListSubscriptionsList[];
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,5 @@
3
3
  */
4
4
  import * as Courier from "../../..";
5
5
  export interface SubscribeToListsRequest {
6
- lists?: Courier.List[];
7
- preferences?: Courier.RecipientPreferences;
6
+ lists: Courier.SubscribeToListsRequestListObject[];
8
7
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface SubscribeToListsRequestListObject {
6
+ listId: string;
7
+ preferences?: Courier.RecipientPreferences;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,5 +21,8 @@ export * from "./ProfileGetResponse";
21
21
  export * from "./MergeProfileResponse";
22
22
  export * from "./ReplaceProfileResponse";
23
23
  export * from "./SubscribeToListsRequest";
24
+ export * from "./SubscribeToListsRequestListObject";
24
25
  export * from "./SubscribeToListsResponse";
25
26
  export * from "./DeleteListSubscriptionResponse";
27
+ export * from "./GetListSubscriptionsList";
28
+ export * from "./GetListSubscriptionsResponse";
@@ -37,5 +37,8 @@ __exportStar(require("./ProfileGetResponse"), exports);
37
37
  __exportStar(require("./MergeProfileResponse"), exports);
38
38
  __exportStar(require("./ReplaceProfileResponse"), exports);
39
39
  __exportStar(require("./SubscribeToListsRequest"), exports);
40
+ __exportStar(require("./SubscribeToListsRequestListObject"), exports);
40
41
  __exportStar(require("./SubscribeToListsResponse"), exports);
41
42
  __exportStar(require("./DeleteListSubscriptionResponse"), exports);
43
+ __exportStar(require("./GetListSubscriptionsList"), exports);
44
+ __exportStar(require("./GetListSubscriptionsResponse"), exports);
@@ -65,7 +65,7 @@ class Templates {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@trycourier/courier",
68
- "X-Fern-SDK-Version": "v6.0.3",
68
+ "X-Fern-SDK-Version": "v6.0.4",
69
69
  },
70
70
  contentType: "application/json",
71
71
  queryParameters: _queryParams,
@@ -61,7 +61,7 @@ class Tenants {
61
61
  Authorization: yield this._getAuthorizationHeader(),
62
62
  "X-Fern-Language": "JavaScript",
63
63
  "X-Fern-SDK-Name": "@trycourier/courier",
64
- "X-Fern-SDK-Version": "v6.0.3",
64
+ "X-Fern-SDK-Version": "v6.0.4",
65
65
  },
66
66
  contentType: "application/json",
67
67
  body: request,
@@ -110,7 +110,7 @@ class Tenants {
110
110
  Authorization: yield this._getAuthorizationHeader(),
111
111
  "X-Fern-Language": "JavaScript",
112
112
  "X-Fern-SDK-Name": "@trycourier/courier",
113
- "X-Fern-SDK-Version": "v6.0.3",
113
+ "X-Fern-SDK-Version": "v6.0.4",
114
114
  },
115
115
  contentType: "application/json",
116
116
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -155,7 +155,7 @@ class Tenants {
155
155
  Authorization: yield this._getAuthorizationHeader(),
156
156
  "X-Fern-Language": "JavaScript",
157
157
  "X-Fern-SDK-Name": "@trycourier/courier",
158
- "X-Fern-SDK-Version": "v6.0.3",
158
+ "X-Fern-SDK-Version": "v6.0.4",
159
159
  },
160
160
  contentType: "application/json",
161
161
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -195,7 +195,7 @@ class Tenants {
195
195
  Authorization: yield this._getAuthorizationHeader(),
196
196
  "X-Fern-Language": "JavaScript",
197
197
  "X-Fern-SDK-Name": "@trycourier/courier",
198
- "X-Fern-SDK-Version": "v6.0.3",
198
+ "X-Fern-SDK-Version": "v6.0.4",
199
199
  },
200
200
  contentType: "application/json",
201
201
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,