@trycourier/courier 6.1.2 → 6.1.3
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.
- package/Client.js +1 -1
- package/api/resources/audiences/client/Client.js +5 -5
- package/api/resources/auditEvents/client/Client.js +2 -2
- package/api/resources/authTokens/client/Client.js +1 -1
- package/api/resources/automations/client/Client.js +2 -2
- package/api/resources/brands/client/Client.js +5 -5
- package/api/resources/bulk/client/Client.js +5 -5
- package/api/resources/lists/client/Client.js +10 -10
- package/api/resources/messages/client/Client.js +6 -6
- package/api/resources/notifications/client/Client.js +8 -8
- package/api/resources/profiles/client/Client.js +7 -7
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/tenants/client/Client.js +7 -7
- package/api/resources/translations/client/Client.js +2 -2
- package/api/resources/users/resources/preferences/client/Client.js +3 -3
- package/api/resources/users/resources/tenants/client/Client.js +5 -5
- package/api/resources/users/resources/tokens/client/Client.d.ts +9 -0
- package/api/resources/users/resources/tokens/client/Client.js +55 -5
- package/dist/Client.js +1 -1
- package/dist/api/resources/audiences/client/Client.js +5 -5
- package/dist/api/resources/auditEvents/client/Client.js +2 -2
- package/dist/api/resources/authTokens/client/Client.js +1 -1
- package/dist/api/resources/automations/client/Client.js +2 -2
- package/dist/api/resources/brands/client/Client.js +5 -5
- package/dist/api/resources/bulk/client/Client.js +5 -5
- package/dist/api/resources/lists/client/Client.js +10 -10
- package/dist/api/resources/messages/client/Client.js +6 -6
- package/dist/api/resources/notifications/client/Client.js +8 -8
- package/dist/api/resources/profiles/client/Client.js +7 -7
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/tenants/client/Client.js +7 -7
- package/dist/api/resources/translations/client/Client.js +2 -2
- package/dist/api/resources/users/resources/preferences/client/Client.js +3 -3
- package/dist/api/resources/users/resources/tenants/client/Client.js +5 -5
- package/dist/api/resources/users/resources/tokens/client/Client.d.ts +9 -0
- package/dist/api/resources/users/resources/tokens/client/Client.js +55 -5
- package/package.json +1 -1
|
@@ -106,5 +106,14 @@ export declare class Tokens {
|
|
|
106
106
|
* await courier.users.tokens.list("string")
|
|
107
107
|
*/
|
|
108
108
|
list(userId: string, requestOptions?: Tokens.RequestOptions): Promise<Courier.users.GetAllTokensResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* @param {string} userId - The user's ID. This can be any uniquely identifiable string.
|
|
111
|
+
* @param {string} token - The full token string.
|
|
112
|
+
* @param {Tokens.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* await courier.users.tokens.delete("string", "string")
|
|
116
|
+
*/
|
|
117
|
+
delete(userId: string, token: string, requestOptions?: Tokens.RequestOptions): Promise<void>;
|
|
109
118
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
110
119
|
}
|
|
@@ -69,7 +69,7 @@ class Tokens {
|
|
|
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.
|
|
72
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
},
|
|
@@ -150,7 +150,7 @@ class Tokens {
|
|
|
150
150
|
Authorization: yield this._getAuthorizationHeader(),
|
|
151
151
|
"X-Fern-Language": "JavaScript",
|
|
152
152
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
153
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
153
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
154
154
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
155
155
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
156
156
|
},
|
|
@@ -213,7 +213,7 @@ class Tokens {
|
|
|
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.1.
|
|
216
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
217
217
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
218
218
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
219
219
|
},
|
|
@@ -273,7 +273,7 @@ class Tokens {
|
|
|
273
273
|
Authorization: yield this._getAuthorizationHeader(),
|
|
274
274
|
"X-Fern-Language": "JavaScript",
|
|
275
275
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
276
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
276
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
277
277
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
278
278
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
279
279
|
},
|
|
@@ -331,7 +331,7 @@ class Tokens {
|
|
|
331
331
|
Authorization: yield this._getAuthorizationHeader(),
|
|
332
332
|
"X-Fern-Language": "JavaScript",
|
|
333
333
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
334
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
334
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
335
335
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
336
336
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
337
337
|
},
|
|
@@ -368,6 +368,56 @@ class Tokens {
|
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
|
+
/**
|
|
372
|
+
* @param {string} userId - The user's ID. This can be any uniquely identifiable string.
|
|
373
|
+
* @param {string} token - The full token string.
|
|
374
|
+
* @param {Tokens.RequestOptions} requestOptions - Request-specific configuration.
|
|
375
|
+
*
|
|
376
|
+
* @example
|
|
377
|
+
* await courier.users.tokens.delete("string", "string")
|
|
378
|
+
*/
|
|
379
|
+
delete(userId, token, requestOptions) {
|
|
380
|
+
var _a, _b;
|
|
381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
383
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/users/${encodeURIComponent(userId)}/tokens/${encodeURIComponent(token)}`),
|
|
384
|
+
method: "DELETE",
|
|
385
|
+
headers: {
|
|
386
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
387
|
+
"X-Fern-Language": "JavaScript",
|
|
388
|
+
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
389
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
390
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
391
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
392
|
+
},
|
|
393
|
+
contentType: "application/json",
|
|
394
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
395
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
396
|
+
});
|
|
397
|
+
if (_response.ok) {
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
if (_response.error.reason === "status-code") {
|
|
401
|
+
throw new errors.CourierError({
|
|
402
|
+
statusCode: _response.error.statusCode,
|
|
403
|
+
body: _response.error.body,
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
switch (_response.error.reason) {
|
|
407
|
+
case "non-json":
|
|
408
|
+
throw new errors.CourierError({
|
|
409
|
+
statusCode: _response.error.statusCode,
|
|
410
|
+
body: _response.error.rawBody,
|
|
411
|
+
});
|
|
412
|
+
case "timeout":
|
|
413
|
+
throw new errors.CourierTimeoutError();
|
|
414
|
+
case "unknown":
|
|
415
|
+
throw new errors.CourierError({
|
|
416
|
+
message: _response.error.errorMessage,
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
}
|
|
371
421
|
_getAuthorizationHeader() {
|
|
372
422
|
var _a;
|
|
373
423
|
return __awaiter(this, void 0, void 0, function* () {
|
package/dist/Client.js
CHANGED
|
@@ -103,7 +103,7 @@ class CourierClient {
|
|
|
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.1.
|
|
106
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
107
107
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
108
108
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
109
109
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -67,7 +67,7 @@ class Audiences {
|
|
|
67
67
|
Authorization: yield this._getAuthorizationHeader(),
|
|
68
68
|
"X-Fern-Language": "JavaScript",
|
|
69
69
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
70
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
70
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
71
71
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
72
72
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
73
73
|
},
|
|
@@ -127,7 +127,7 @@ class Audiences {
|
|
|
127
127
|
Authorization: yield this._getAuthorizationHeader(),
|
|
128
128
|
"X-Fern-Language": "JavaScript",
|
|
129
129
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
130
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
130
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
131
131
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
132
132
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
133
133
|
},
|
|
@@ -179,7 +179,7 @@ class Audiences {
|
|
|
179
179
|
Authorization: yield this._getAuthorizationHeader(),
|
|
180
180
|
"X-Fern-Language": "JavaScript",
|
|
181
181
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
182
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
182
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
183
183
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
184
184
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
185
185
|
},
|
|
@@ -240,7 +240,7 @@ class Audiences {
|
|
|
240
240
|
Authorization: yield this._getAuthorizationHeader(),
|
|
241
241
|
"X-Fern-Language": "JavaScript",
|
|
242
242
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
243
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
243
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
244
244
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
245
245
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
246
246
|
},
|
|
@@ -306,7 +306,7 @@ class Audiences {
|
|
|
306
306
|
Authorization: yield this._getAuthorizationHeader(),
|
|
307
307
|
"X-Fern-Language": "JavaScript",
|
|
308
308
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
309
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
309
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
310
310
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
311
311
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
312
312
|
},
|
|
@@ -73,7 +73,7 @@ class AuditEvents {
|
|
|
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.
|
|
76
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
77
77
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
78
78
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
79
79
|
},
|
|
@@ -125,7 +125,7 @@ class AuditEvents {
|
|
|
125
125
|
Authorization: yield this._getAuthorizationHeader(),
|
|
126
126
|
"X-Fern-Language": "JavaScript",
|
|
127
127
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
128
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
128
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
129
129
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
130
130
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
131
131
|
},
|
|
@@ -69,7 +69,7 @@ class AuthTokens {
|
|
|
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.
|
|
72
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -79,7 +79,7 @@ class Automations {
|
|
|
79
79
|
Authorization: yield this._getAuthorizationHeader(),
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
82
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
82
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
83
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
85
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -151,7 +151,7 @@ class Automations {
|
|
|
151
151
|
Authorization: yield this._getAuthorizationHeader(),
|
|
152
152
|
"X-Fern-Language": "JavaScript",
|
|
153
153
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
154
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
154
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
155
155
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
156
156
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
157
157
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -74,7 +74,7 @@ class Brands {
|
|
|
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.1.
|
|
77
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
78
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
80
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -137,7 +137,7 @@ class Brands {
|
|
|
137
137
|
Authorization: yield this._getAuthorizationHeader(),
|
|
138
138
|
"X-Fern-Language": "JavaScript",
|
|
139
139
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
140
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
140
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
141
141
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
142
142
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
143
143
|
},
|
|
@@ -195,7 +195,7 @@ class Brands {
|
|
|
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.1.
|
|
198
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
199
199
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
200
200
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
201
201
|
},
|
|
@@ -249,7 +249,7 @@ class Brands {
|
|
|
249
249
|
Authorization: yield this._getAuthorizationHeader(),
|
|
250
250
|
"X-Fern-Language": "JavaScript",
|
|
251
251
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
252
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
252
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
253
253
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
254
254
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
255
255
|
},
|
|
@@ -322,7 +322,7 @@ class Brands {
|
|
|
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.1.
|
|
325
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
326
326
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
327
327
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
328
328
|
},
|
|
@@ -86,7 +86,7 @@ class Bulk {
|
|
|
86
86
|
Authorization: yield this._getAuthorizationHeader(),
|
|
87
87
|
"X-Fern-Language": "JavaScript",
|
|
88
88
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
89
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
89
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
90
90
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
91
91
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
92
92
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -158,7 +158,7 @@ class Bulk {
|
|
|
158
158
|
Authorization: yield this._getAuthorizationHeader(),
|
|
159
159
|
"X-Fern-Language": "JavaScript",
|
|
160
160
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
161
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
161
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
162
162
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
163
163
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
164
164
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -214,7 +214,7 @@ class Bulk {
|
|
|
214
214
|
Authorization: yield this._getAuthorizationHeader(),
|
|
215
215
|
"X-Fern-Language": "JavaScript",
|
|
216
216
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
217
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
217
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
218
218
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
219
219
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
220
220
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -274,7 +274,7 @@ class Bulk {
|
|
|
274
274
|
Authorization: yield this._getAuthorizationHeader(),
|
|
275
275
|
"X-Fern-Language": "JavaScript",
|
|
276
276
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
277
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
277
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
278
278
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
279
279
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
280
280
|
},
|
|
@@ -332,7 +332,7 @@ class Bulk {
|
|
|
332
332
|
Authorization: yield this._getAuthorizationHeader(),
|
|
333
333
|
"X-Fern-Language": "JavaScript",
|
|
334
334
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
335
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
335
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
336
336
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
337
337
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
338
338
|
},
|
|
@@ -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.
|
|
83
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
142
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
227
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
279
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
330
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
391
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
481
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
571
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
659
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
714
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
144
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
199
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
257
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
321
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
381
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
437
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
438
438
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
439
439
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
440
440
|
},
|
|
@@ -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.
|
|
74
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
124
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
173
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
174
174
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
175
175
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
176
176
|
},
|
|
@@ -241,7 +241,7 @@ class Notifications {
|
|
|
241
241
|
Authorization: yield this._getAuthorizationHeader(),
|
|
242
242
|
"X-Fern-Language": "JavaScript",
|
|
243
243
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
244
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
244
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
245
245
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
246
246
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
247
247
|
},
|
|
@@ -313,7 +313,7 @@ class Notifications {
|
|
|
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.
|
|
316
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
317
317
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
318
318
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
319
319
|
},
|
|
@@ -364,7 +364,7 @@ class Notifications {
|
|
|
364
364
|
Authorization: yield this._getAuthorizationHeader(),
|
|
365
365
|
"X-Fern-Language": "JavaScript",
|
|
366
366
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
367
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
367
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
368
368
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
369
369
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
370
370
|
},
|
|
@@ -421,7 +421,7 @@ class Notifications {
|
|
|
421
421
|
Authorization: yield this._getAuthorizationHeader(),
|
|
422
422
|
"X-Fern-Language": "JavaScript",
|
|
423
423
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
424
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
424
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
425
425
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
426
426
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
427
427
|
},
|
|
@@ -472,7 +472,7 @@ class Notifications {
|
|
|
472
472
|
Authorization: yield this._getAuthorizationHeader(),
|
|
473
473
|
"X-Fern-Language": "JavaScript",
|
|
474
474
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
475
|
-
"X-Fern-SDK-Version": "v6.1.
|
|
475
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
476
476
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
477
477
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
478
478
|
},
|
|
@@ -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.
|
|
72
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
137
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
208
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
267
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
333
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
395
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
456
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
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.
|
|
76
|
+
"X-Fern-SDK-Version": "v6.1.3",
|
|
77
77
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
78
78
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
79
79
|
},
|