@trycourier/courier 6.2.2 → 6.3.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 (91) hide show
  1. package/Client.d.ts +72 -11
  2. package/Client.js +73 -12
  3. package/api/client/requests/SendMessageRequest.d.ts +72 -11
  4. package/api/resources/audiences/client/Client.js +5 -5
  5. package/api/resources/auditEvents/client/Client.js +2 -2
  6. package/api/resources/authTokens/client/Client.js +1 -1
  7. package/api/resources/automations/client/Client.js +2 -2
  8. package/api/resources/brands/client/Client.d.ts +38 -4
  9. package/api/resources/brands/client/Client.js +43 -9
  10. package/api/resources/brands/client/requests/BrandUpdateParameters.d.ts +13 -2
  11. package/api/resources/bulk/client/Client.d.ts +92 -3
  12. package/api/resources/bulk/client/Client.js +97 -8
  13. package/api/resources/bulk/client/requests/BulkCreateJobParams.d.ts +71 -1
  14. package/api/resources/inbound/client/Client.js +1 -1
  15. package/api/resources/lists/client/Client.d.ts +8 -96
  16. package/api/resources/lists/client/Client.js +18 -106
  17. package/api/resources/lists/client/requests/AddSubscribersToList.d.ts +2 -24
  18. package/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +2 -24
  19. package/api/resources/lists/client/requests/SubscribeUsersToListRequest.d.ts +2 -24
  20. package/api/resources/messages/client/Client.js +6 -6
  21. package/api/resources/notifications/client/Client.js +6 -6
  22. package/api/resources/profiles/client/Client.d.ts +20 -1
  23. package/api/resources/profiles/client/Client.js +69 -8
  24. package/api/resources/profiles/types/UserProfilePatch.d.ts +11 -0
  25. package/api/resources/profiles/types/UserProfilePatch.js +5 -0
  26. package/api/resources/profiles/types/index.d.ts +1 -0
  27. package/api/resources/profiles/types/index.js +1 -0
  28. package/api/resources/send/types/BaseMessage.d.ts +1 -1
  29. package/api/resources/send/types/Delay.d.ts +3 -1
  30. package/api/resources/templates/client/Client.js +1 -1
  31. package/api/resources/tenants/client/Client.d.ts +6 -1
  32. package/api/resources/tenants/client/Client.js +13 -8
  33. package/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.d.ts +6 -1
  34. package/api/resources/translations/client/Client.js +2 -2
  35. package/api/resources/users/resources/preferences/client/Client.d.ts +10 -4
  36. package/api/resources/users/resources/preferences/client/Client.js +43 -8
  37. package/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.d.ts +15 -0
  38. package/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.js +5 -0
  39. package/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.d.ts +15 -0
  40. package/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.js +5 -0
  41. package/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.d.ts +4 -0
  42. package/api/resources/users/resources/preferences/client/requests/index.d.ts +2 -0
  43. package/api/resources/users/resources/tenants/client/Client.js +5 -5
  44. package/api/resources/users/resources/tokens/client/Client.d.ts +5 -1
  45. package/api/resources/users/resources/tokens/client/Client.js +11 -7
  46. package/dist/Client.d.ts +72 -11
  47. package/dist/Client.js +73 -12
  48. package/dist/api/client/requests/SendMessageRequest.d.ts +72 -11
  49. package/dist/api/resources/audiences/client/Client.js +5 -5
  50. package/dist/api/resources/auditEvents/client/Client.js +2 -2
  51. package/dist/api/resources/authTokens/client/Client.js +1 -1
  52. package/dist/api/resources/automations/client/Client.js +2 -2
  53. package/dist/api/resources/brands/client/Client.d.ts +38 -4
  54. package/dist/api/resources/brands/client/Client.js +43 -9
  55. package/dist/api/resources/brands/client/requests/BrandUpdateParameters.d.ts +13 -2
  56. package/dist/api/resources/bulk/client/Client.d.ts +92 -3
  57. package/dist/api/resources/bulk/client/Client.js +97 -8
  58. package/dist/api/resources/bulk/client/requests/BulkCreateJobParams.d.ts +71 -1
  59. package/dist/api/resources/inbound/client/Client.js +1 -1
  60. package/dist/api/resources/lists/client/Client.d.ts +8 -96
  61. package/dist/api/resources/lists/client/Client.js +18 -106
  62. package/dist/api/resources/lists/client/requests/AddSubscribersToList.d.ts +2 -24
  63. package/dist/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +2 -24
  64. package/dist/api/resources/lists/client/requests/SubscribeUsersToListRequest.d.ts +2 -24
  65. package/dist/api/resources/messages/client/Client.js +6 -6
  66. package/dist/api/resources/notifications/client/Client.js +6 -6
  67. package/dist/api/resources/profiles/client/Client.d.ts +20 -1
  68. package/dist/api/resources/profiles/client/Client.js +69 -8
  69. package/dist/api/resources/profiles/types/UserProfilePatch.d.ts +11 -0
  70. package/dist/api/resources/profiles/types/UserProfilePatch.js +5 -0
  71. package/dist/api/resources/profiles/types/index.d.ts +1 -0
  72. package/dist/api/resources/profiles/types/index.js +1 -0
  73. package/dist/api/resources/send/types/BaseMessage.d.ts +1 -1
  74. package/dist/api/resources/send/types/Delay.d.ts +3 -1
  75. package/dist/api/resources/templates/client/Client.js +1 -1
  76. package/dist/api/resources/tenants/client/Client.d.ts +6 -1
  77. package/dist/api/resources/tenants/client/Client.js +13 -8
  78. package/dist/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.d.ts +6 -1
  79. package/dist/api/resources/translations/client/Client.js +2 -2
  80. package/dist/api/resources/users/resources/preferences/client/Client.d.ts +10 -4
  81. package/dist/api/resources/users/resources/preferences/client/Client.js +43 -8
  82. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.d.ts +15 -0
  83. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.js +5 -0
  84. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.d.ts +15 -0
  85. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.js +5 -0
  86. package/dist/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.d.ts +4 -0
  87. package/dist/api/resources/users/resources/preferences/client/requests/index.d.ts +2 -0
  88. package/dist/api/resources/users/resources/tenants/client/Client.js +5 -5
  89. package/dist/api/resources/users/resources/tokens/client/Client.d.ts +5 -1
  90. package/dist/api/resources/users/resources/tokens/client/Client.js +11 -7
  91. package/package.json +1 -1
@@ -57,7 +57,77 @@ class Bulk {
57
57
  * @example
58
58
  * await courier.bulk.createJob({
59
59
  * message: {
60
- * message: {},
60
+ * message: {
61
+ * template: "string",
62
+ * data: {
63
+ * "string": {
64
+ * "key": "value"
65
+ * }
66
+ * },
67
+ * brand_id: "string",
68
+ * channels: {
69
+ * "string": {
70
+ * brand_id: undefined,
71
+ * providers: undefined,
72
+ * routing_method: undefined,
73
+ * if: undefined,
74
+ * timeouts: undefined,
75
+ * override: undefined,
76
+ * metadata: undefined
77
+ * }
78
+ * },
79
+ * context: {
80
+ * tenant_id: "string"
81
+ * },
82
+ * metadata: {
83
+ * event: "string",
84
+ * tags: [],
85
+ * utm: {
86
+ * source: undefined,
87
+ * medium: undefined,
88
+ * campaign: undefined,
89
+ * term: undefined,
90
+ * content: undefined
91
+ * },
92
+ * trace_id: "string"
93
+ * },
94
+ * preferences: {
95
+ * subscription_topic_id: "string"
96
+ * },
97
+ * providers: {
98
+ * "string": {
99
+ * override: undefined,
100
+ * if: undefined,
101
+ * timeouts: undefined,
102
+ * metadata: undefined
103
+ * }
104
+ * },
105
+ * routing: {
106
+ * method: Courier.RoutingMethod.All,
107
+ * channels: [{
108
+ * channel: "string",
109
+ * config: undefined,
110
+ * method: undefined,
111
+ * providers: undefined,
112
+ * if: undefined
113
+ * }]
114
+ * },
115
+ * timeout: {
116
+ * provider: {},
117
+ * channel: {},
118
+ * message: 1,
119
+ * escalation: 1,
120
+ * criteria: Courier.Criteria.NoEscalation
121
+ * },
122
+ * delay: {
123
+ * duration: 1,
124
+ * until: "string"
125
+ * },
126
+ * expiry: {
127
+ * expires_at: "string",
128
+ * expires_in: "string"
129
+ * }
130
+ * },
61
131
  * brand: "string",
62
132
  * data: {
63
133
  * "string": {
@@ -86,7 +156,7 @@ class Bulk {
86
156
  Authorization: yield this._getAuthorizationHeader(),
87
157
  "X-Fern-Language": "JavaScript",
88
158
  "X-Fern-SDK-Name": "@trycourier/courier",
89
- "X-Fern-SDK-Version": "v6.2.2",
159
+ "X-Fern-SDK-Version": "v6.3.0",
90
160
  "X-Fern-Runtime": core.RUNTIME.type,
91
161
  "X-Fern-Runtime-Version": core.RUNTIME.version,
92
162
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -136,7 +206,10 @@ class Bulk {
136
206
  * @example
137
207
  * await courier.bulk.ingestUsers("string", {
138
208
  * users: [{
139
- * preferences: {},
209
+ * preferences: {
210
+ * categories: {},
211
+ * notifications: {}
212
+ * },
140
213
  * profile: {
141
214
  * "key": "value"
142
215
  * },
@@ -144,7 +217,23 @@ class Bulk {
144
217
  * data: {
145
218
  * "key": "value"
146
219
  * },
147
- * to: {}
220
+ * to: {
221
+ * account_id: "string",
222
+ * context: {
223
+ * tenant_id: "string"
224
+ * },
225
+ * data: {},
226
+ * email: "string",
227
+ * locale: "string",
228
+ * user_id: "string",
229
+ * phone_number: "string",
230
+ * preferences: {
231
+ * categories: undefined,
232
+ * notifications: {},
233
+ * templateId: undefined
234
+ * },
235
+ * tenant_id: "string"
236
+ * }
148
237
  * }]
149
238
  * })
150
239
  */
@@ -158,7 +247,7 @@ class Bulk {
158
247
  Authorization: yield this._getAuthorizationHeader(),
159
248
  "X-Fern-Language": "JavaScript",
160
249
  "X-Fern-SDK-Name": "@trycourier/courier",
161
- "X-Fern-SDK-Version": "v6.2.2",
250
+ "X-Fern-SDK-Version": "v6.3.0",
162
251
  "X-Fern-Runtime": core.RUNTIME.type,
163
252
  "X-Fern-Runtime-Version": core.RUNTIME.version,
164
253
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -214,7 +303,7 @@ class Bulk {
214
303
  Authorization: yield this._getAuthorizationHeader(),
215
304
  "X-Fern-Language": "JavaScript",
216
305
  "X-Fern-SDK-Name": "@trycourier/courier",
217
- "X-Fern-SDK-Version": "v6.2.2",
306
+ "X-Fern-SDK-Version": "v6.3.0",
218
307
  "X-Fern-Runtime": core.RUNTIME.type,
219
308
  "X-Fern-Runtime-Version": core.RUNTIME.version,
220
309
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -274,7 +363,7 @@ class Bulk {
274
363
  Authorization: yield this._getAuthorizationHeader(),
275
364
  "X-Fern-Language": "JavaScript",
276
365
  "X-Fern-SDK-Name": "@trycourier/courier",
277
- "X-Fern-SDK-Version": "v6.2.2",
366
+ "X-Fern-SDK-Version": "v6.3.0",
278
367
  "X-Fern-Runtime": core.RUNTIME.type,
279
368
  "X-Fern-Runtime-Version": core.RUNTIME.version,
280
369
  },
@@ -332,7 +421,7 @@ class Bulk {
332
421
  Authorization: yield this._getAuthorizationHeader(),
333
422
  "X-Fern-Language": "JavaScript",
334
423
  "X-Fern-SDK-Name": "@trycourier/courier",
335
- "X-Fern-SDK-Version": "v6.2.2",
424
+ "X-Fern-SDK-Version": "v6.3.0",
336
425
  "X-Fern-Runtime": core.RUNTIME.type,
337
426
  "X-Fern-Runtime-Version": core.RUNTIME.version,
338
427
  },
@@ -6,7 +6,77 @@ import * as Courier from "../../../../index";
6
6
  * @example
7
7
  * {
8
8
  * message: {
9
- * message: {},
9
+ * message: {
10
+ * template: "string",
11
+ * data: {
12
+ * "string": {
13
+ * "key": "value"
14
+ * }
15
+ * },
16
+ * brand_id: "string",
17
+ * channels: {
18
+ * "string": {
19
+ * brand_id: undefined,
20
+ * providers: undefined,
21
+ * routing_method: undefined,
22
+ * if: undefined,
23
+ * timeouts: undefined,
24
+ * override: undefined,
25
+ * metadata: undefined
26
+ * }
27
+ * },
28
+ * context: {
29
+ * tenant_id: "string"
30
+ * },
31
+ * metadata: {
32
+ * event: "string",
33
+ * tags: [],
34
+ * utm: {
35
+ * source: undefined,
36
+ * medium: undefined,
37
+ * campaign: undefined,
38
+ * term: undefined,
39
+ * content: undefined
40
+ * },
41
+ * trace_id: "string"
42
+ * },
43
+ * preferences: {
44
+ * subscription_topic_id: "string"
45
+ * },
46
+ * providers: {
47
+ * "string": {
48
+ * override: undefined,
49
+ * if: undefined,
50
+ * timeouts: undefined,
51
+ * metadata: undefined
52
+ * }
53
+ * },
54
+ * routing: {
55
+ * method: Courier.RoutingMethod.All,
56
+ * channels: [{
57
+ * channel: "string",
58
+ * config: undefined,
59
+ * method: undefined,
60
+ * providers: undefined,
61
+ * if: undefined
62
+ * }]
63
+ * },
64
+ * timeout: {
65
+ * provider: {},
66
+ * channel: {},
67
+ * message: 1,
68
+ * escalation: 1,
69
+ * criteria: Courier.Criteria.NoEscalation
70
+ * },
71
+ * delay: {
72
+ * duration: 1,
73
+ * until: "string"
74
+ * },
75
+ * expiry: {
76
+ * expires_at: "string",
77
+ * expires_in: "string"
78
+ * }
79
+ * },
10
80
  * brand: "string",
11
81
  * data: {
12
82
  * "string": {
@@ -78,7 +78,7 @@ class Inbound {
78
78
  Authorization: yield this._getAuthorizationHeader(),
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "@trycourier/courier",
81
- "X-Fern-SDK-Version": "v6.2.2",
81
+ "X-Fern-SDK-Version": "v6.3.0",
82
82
  "X-Fern-Runtime": core.RUNTIME.type,
83
83
  "X-Fern-Runtime-Version": core.RUNTIME.version,
84
84
  },
@@ -60,30 +60,8 @@ export declare class Lists {
60
60
  * await courier.lists.update("string", {
61
61
  * name: "string",
62
62
  * preferences: {
63
- * categories: {
64
- * "string": {
65
- * status: Courier.PreferenceStatus.OptedIn,
66
- * rules: [{
67
- * start: "string",
68
- * until: "string"
69
- * }],
70
- * channel_preferences: [{
71
- * channel: Courier.ChannelClassification.DirectMessage
72
- * }]
73
- * }
74
- * },
75
- * notifications: {
76
- * "string": {
77
- * status: Courier.PreferenceStatus.OptedIn,
78
- * rules: [{
79
- * start: "string",
80
- * until: "string"
81
- * }],
82
- * channel_preferences: [{
83
- * channel: Courier.ChannelClassification.DirectMessage
84
- * }]
85
- * }
86
- * }
63
+ * categories: {},
64
+ * notifications: {}
87
65
  * }
88
66
  * })
89
67
  */
@@ -137,30 +115,8 @@ export declare class Lists {
137
115
  * recipients: [{
138
116
  * recipientId: "string",
139
117
  * preferences: {
140
- * categories: {
141
- * "string": {
142
- * status: Courier.PreferenceStatus.OptedIn,
143
- * rules: [{
144
- * start: "string",
145
- * until: "string"
146
- * }],
147
- * channel_preferences: [{
148
- * channel: Courier.ChannelClassification.DirectMessage
149
- * }]
150
- * }
151
- * },
152
- * notifications: {
153
- * "string": {
154
- * status: Courier.PreferenceStatus.OptedIn,
155
- * rules: [{
156
- * start: "string",
157
- * until: "string"
158
- * }],
159
- * channel_preferences: [{
160
- * channel: Courier.ChannelClassification.DirectMessage
161
- * }]
162
- * }
163
- * }
118
+ * categories: {},
119
+ * notifications: {}
164
120
  * }
165
121
  * }]
166
122
  * })
@@ -180,30 +136,8 @@ export declare class Lists {
180
136
  * recipients: [{
181
137
  * recipientId: "string",
182
138
  * preferences: {
183
- * categories: {
184
- * "string": {
185
- * status: Courier.PreferenceStatus.OptedIn,
186
- * rules: [{
187
- * start: "string",
188
- * until: "string"
189
- * }],
190
- * channel_preferences: [{
191
- * channel: Courier.ChannelClassification.DirectMessage
192
- * }]
193
- * }
194
- * },
195
- * notifications: {
196
- * "string": {
197
- * status: Courier.PreferenceStatus.OptedIn,
198
- * rules: [{
199
- * start: "string",
200
- * until: "string"
201
- * }],
202
- * channel_preferences: [{
203
- * channel: Courier.ChannelClassification.DirectMessage
204
- * }]
205
- * }
206
- * }
139
+ * categories: {},
140
+ * notifications: {}
207
141
  * }
208
142
  * }]
209
143
  * })
@@ -220,30 +154,8 @@ export declare class Lists {
220
154
  * @example
221
155
  * await courier.lists.subscribe("string", "string", {
222
156
  * preferences: {
223
- * categories: {
224
- * "string": {
225
- * status: Courier.PreferenceStatus.OptedIn,
226
- * rules: [{
227
- * start: "string",
228
- * until: "string"
229
- * }],
230
- * channel_preferences: [{
231
- * channel: Courier.ChannelClassification.DirectMessage
232
- * }]
233
- * }
234
- * },
235
- * notifications: {
236
- * "string": {
237
- * status: Courier.PreferenceStatus.OptedIn,
238
- * rules: [{
239
- * start: "string",
240
- * until: "string"
241
- * }],
242
- * channel_preferences: [{
243
- * channel: Courier.ChannelClassification.DirectMessage
244
- * }]
245
- * }
246
- * }
157
+ * categories: {},
158
+ * notifications: {}
247
159
  * }
248
160
  * })
249
161
  */
@@ -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.2.2",
83
+ "X-Fern-SDK-Version": "v6.3.0",
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.2.2",
142
+ "X-Fern-SDK-Version": "v6.3.0",
143
143
  "X-Fern-Runtime": core.RUNTIME.type,
144
144
  "X-Fern-Runtime-Version": core.RUNTIME.version,
145
145
  },
@@ -187,30 +187,8 @@ class Lists {
187
187
  * await courier.lists.update("string", {
188
188
  * name: "string",
189
189
  * preferences: {
190
- * categories: {
191
- * "string": {
192
- * status: Courier.PreferenceStatus.OptedIn,
193
- * rules: [{
194
- * start: "string",
195
- * until: "string"
196
- * }],
197
- * channel_preferences: [{
198
- * channel: Courier.ChannelClassification.DirectMessage
199
- * }]
200
- * }
201
- * },
202
- * notifications: {
203
- * "string": {
204
- * status: Courier.PreferenceStatus.OptedIn,
205
- * rules: [{
206
- * start: "string",
207
- * until: "string"
208
- * }],
209
- * channel_preferences: [{
210
- * channel: Courier.ChannelClassification.DirectMessage
211
- * }]
212
- * }
213
- * }
190
+ * categories: {},
191
+ * notifications: {}
214
192
  * }
215
193
  * })
216
194
  */
@@ -224,7 +202,7 @@ class Lists {
224
202
  Authorization: yield this._getAuthorizationHeader(),
225
203
  "X-Fern-Language": "JavaScript",
226
204
  "X-Fern-SDK-Name": "@trycourier/courier",
227
- "X-Fern-SDK-Version": "v6.2.2",
205
+ "X-Fern-SDK-Version": "v6.3.0",
228
206
  "X-Fern-Runtime": core.RUNTIME.type,
229
207
  "X-Fern-Runtime-Version": core.RUNTIME.version,
230
208
  },
@@ -276,7 +254,7 @@ class Lists {
276
254
  Authorization: yield this._getAuthorizationHeader(),
277
255
  "X-Fern-Language": "JavaScript",
278
256
  "X-Fern-SDK-Name": "@trycourier/courier",
279
- "X-Fern-SDK-Version": "v6.2.2",
257
+ "X-Fern-SDK-Version": "v6.3.0",
280
258
  "X-Fern-Runtime": core.RUNTIME.type,
281
259
  "X-Fern-Runtime-Version": core.RUNTIME.version,
282
260
  },
@@ -327,7 +305,7 @@ class Lists {
327
305
  Authorization: yield this._getAuthorizationHeader(),
328
306
  "X-Fern-Language": "JavaScript",
329
307
  "X-Fern-SDK-Name": "@trycourier/courier",
330
- "X-Fern-SDK-Version": "v6.2.2",
308
+ "X-Fern-SDK-Version": "v6.3.0",
331
309
  "X-Fern-Runtime": core.RUNTIME.type,
332
310
  "X-Fern-Runtime-Version": core.RUNTIME.version,
333
311
  },
@@ -388,7 +366,7 @@ class Lists {
388
366
  Authorization: yield this._getAuthorizationHeader(),
389
367
  "X-Fern-Language": "JavaScript",
390
368
  "X-Fern-SDK-Name": "@trycourier/courier",
391
- "X-Fern-SDK-Version": "v6.2.2",
369
+ "X-Fern-SDK-Version": "v6.3.0",
392
370
  "X-Fern-Runtime": core.RUNTIME.type,
393
371
  "X-Fern-Runtime-Version": core.RUNTIME.version,
394
372
  },
@@ -440,30 +418,8 @@ class Lists {
440
418
  * recipients: [{
441
419
  * recipientId: "string",
442
420
  * preferences: {
443
- * categories: {
444
- * "string": {
445
- * status: Courier.PreferenceStatus.OptedIn,
446
- * rules: [{
447
- * start: "string",
448
- * until: "string"
449
- * }],
450
- * channel_preferences: [{
451
- * channel: Courier.ChannelClassification.DirectMessage
452
- * }]
453
- * }
454
- * },
455
- * notifications: {
456
- * "string": {
457
- * status: Courier.PreferenceStatus.OptedIn,
458
- * rules: [{
459
- * start: "string",
460
- * until: "string"
461
- * }],
462
- * channel_preferences: [{
463
- * channel: Courier.ChannelClassification.DirectMessage
464
- * }]
465
- * }
466
- * }
421
+ * categories: {},
422
+ * notifications: {}
467
423
  * }
468
424
  * }]
469
425
  * })
@@ -478,7 +434,7 @@ class Lists {
478
434
  Authorization: yield this._getAuthorizationHeader(),
479
435
  "X-Fern-Language": "JavaScript",
480
436
  "X-Fern-SDK-Name": "@trycourier/courier",
481
- "X-Fern-SDK-Version": "v6.2.2",
437
+ "X-Fern-SDK-Version": "v6.3.0",
482
438
  "X-Fern-Runtime": core.RUNTIME.type,
483
439
  "X-Fern-Runtime-Version": core.RUNTIME.version,
484
440
  },
@@ -530,30 +486,8 @@ class Lists {
530
486
  * recipients: [{
531
487
  * recipientId: "string",
532
488
  * preferences: {
533
- * categories: {
534
- * "string": {
535
- * status: Courier.PreferenceStatus.OptedIn,
536
- * rules: [{
537
- * start: "string",
538
- * until: "string"
539
- * }],
540
- * channel_preferences: [{
541
- * channel: Courier.ChannelClassification.DirectMessage
542
- * }]
543
- * }
544
- * },
545
- * notifications: {
546
- * "string": {
547
- * status: Courier.PreferenceStatus.OptedIn,
548
- * rules: [{
549
- * start: "string",
550
- * until: "string"
551
- * }],
552
- * channel_preferences: [{
553
- * channel: Courier.ChannelClassification.DirectMessage
554
- * }]
555
- * }
556
- * }
489
+ * categories: {},
490
+ * notifications: {}
557
491
  * }
558
492
  * }]
559
493
  * })
@@ -568,7 +502,7 @@ class Lists {
568
502
  Authorization: yield this._getAuthorizationHeader(),
569
503
  "X-Fern-Language": "JavaScript",
570
504
  "X-Fern-SDK-Name": "@trycourier/courier",
571
- "X-Fern-SDK-Version": "v6.2.2",
505
+ "X-Fern-SDK-Version": "v6.3.0",
572
506
  "X-Fern-Runtime": core.RUNTIME.type,
573
507
  "X-Fern-Runtime-Version": core.RUNTIME.version,
574
508
  "Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
@@ -619,30 +553,8 @@ class Lists {
619
553
  * @example
620
554
  * await courier.lists.subscribe("string", "string", {
621
555
  * preferences: {
622
- * categories: {
623
- * "string": {
624
- * status: Courier.PreferenceStatus.OptedIn,
625
- * rules: [{
626
- * start: "string",
627
- * until: "string"
628
- * }],
629
- * channel_preferences: [{
630
- * channel: Courier.ChannelClassification.DirectMessage
631
- * }]
632
- * }
633
- * },
634
- * notifications: {
635
- * "string": {
636
- * status: Courier.PreferenceStatus.OptedIn,
637
- * rules: [{
638
- * start: "string",
639
- * until: "string"
640
- * }],
641
- * channel_preferences: [{
642
- * channel: Courier.ChannelClassification.DirectMessage
643
- * }]
644
- * }
645
- * }
556
+ * categories: {},
557
+ * notifications: {}
646
558
  * }
647
559
  * })
648
560
  */
@@ -656,7 +568,7 @@ class Lists {
656
568
  Authorization: yield this._getAuthorizationHeader(),
657
569
  "X-Fern-Language": "JavaScript",
658
570
  "X-Fern-SDK-Name": "@trycourier/courier",
659
- "X-Fern-SDK-Version": "v6.2.2",
571
+ "X-Fern-SDK-Version": "v6.3.0",
660
572
  "X-Fern-Runtime": core.RUNTIME.type,
661
573
  "X-Fern-Runtime-Version": core.RUNTIME.version,
662
574
  },
@@ -711,7 +623,7 @@ class Lists {
711
623
  Authorization: yield this._getAuthorizationHeader(),
712
624
  "X-Fern-Language": "JavaScript",
713
625
  "X-Fern-SDK-Name": "@trycourier/courier",
714
- "X-Fern-SDK-Version": "v6.2.2",
626
+ "X-Fern-SDK-Version": "v6.3.0",
715
627
  "X-Fern-Runtime": core.RUNTIME.type,
716
628
  "X-Fern-Runtime-Version": core.RUNTIME.version,
717
629
  },
@@ -8,30 +8,8 @@ import * as Courier from "../../../../index";
8
8
  * recipients: [{
9
9
  * recipientId: "string",
10
10
  * preferences: {
11
- * categories: {
12
- * "string": {
13
- * status: Courier.PreferenceStatus.OptedIn,
14
- * rules: [{
15
- * start: "string",
16
- * until: "string"
17
- * }],
18
- * channel_preferences: [{
19
- * channel: Courier.ChannelClassification.DirectMessage
20
- * }]
21
- * }
22
- * },
23
- * notifications: {
24
- * "string": {
25
- * status: Courier.PreferenceStatus.OptedIn,
26
- * rules: [{
27
- * start: "string",
28
- * until: "string"
29
- * }],
30
- * channel_preferences: [{
31
- * channel: Courier.ChannelClassification.DirectMessage
32
- * }]
33
- * }
34
- * }
11
+ * categories: {},
12
+ * notifications: {}
35
13
  * }
36
14
  * }]
37
15
  * }
@@ -6,30 +6,8 @@ import * as Courier from "../../../../index";
6
6
  * @example
7
7
  * {
8
8
  * preferences: {
9
- * categories: {
10
- * "string": {
11
- * status: Courier.PreferenceStatus.OptedIn,
12
- * rules: [{
13
- * start: "string",
14
- * until: "string"
15
- * }],
16
- * channel_preferences: [{
17
- * channel: Courier.ChannelClassification.DirectMessage
18
- * }]
19
- * }
20
- * },
21
- * notifications: {
22
- * "string": {
23
- * status: Courier.PreferenceStatus.OptedIn,
24
- * rules: [{
25
- * start: "string",
26
- * until: "string"
27
- * }],
28
- * channel_preferences: [{
29
- * channel: Courier.ChannelClassification.DirectMessage
30
- * }]
31
- * }
32
- * }
9
+ * categories: {},
10
+ * notifications: {}
33
11
  * }
34
12
  * }
35
13
  */