diff --git a/package.json b/package.json index c0b1e51..9e77b3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@trycourier/courier", - "version": "v6.0.3", + "version": "v6.0.4", "private": false, "repository": "https://github.com/trycourier/courier-node", "main": "./index.js", diff --git a/src/Client.ts b/src/Client.ts index 68c863a..3b46983 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -59,7 +59,7 @@ export class CourierClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null diff --git a/src/api/resources/audiences/client/Client.ts b/src/api/resources/audiences/client/Client.ts index 3fe3213..1854e9b 100644 --- a/src/api/resources/audiences/client/Client.ts +++ b/src/api/resources/audiences/client/Client.ts @@ -37,7 +37,7 @@ export class Audiences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -87,7 +87,7 @@ export class Audiences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -134,7 +134,7 @@ export class Audiences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -191,7 +191,7 @@ export class Audiences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -253,7 +253,7 @@ export class Audiences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/auditEvents/client/Client.ts b/src/api/resources/auditEvents/client/Client.ts index 81ef74e..d9f7758 100644 --- a/src/api/resources/auditEvents/client/Client.ts +++ b/src/api/resources/auditEvents/client/Client.ts @@ -46,7 +46,7 @@ export class AuditEvents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -93,7 +93,7 @@ export class AuditEvents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/authTokens/client/Client.ts b/src/api/resources/authTokens/client/Client.ts index c17897d..61dd005 100644 --- a/src/api/resources/authTokens/client/Client.ts +++ b/src/api/resources/authTokens/client/Client.ts @@ -45,7 +45,7 @@ export class AuthTokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null diff --git a/src/api/resources/automations/client/Client.ts b/src/api/resources/automations/client/Client.ts index 5322c07..0ff8957 100644 --- a/src/api/resources/automations/client/Client.ts +++ b/src/api/resources/automations/client/Client.ts @@ -46,7 +46,7 @@ export class Automations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null @@ -101,7 +101,7 @@ export class Automations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null diff --git a/src/api/resources/brands/client/Client.ts b/src/api/resources/brands/client/Client.ts index 2a8f52f..28f408a 100644 --- a/src/api/resources/brands/client/Client.ts +++ b/src/api/resources/brands/client/Client.ts @@ -47,7 +47,7 @@ export class Brands { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null @@ -108,7 +108,7 @@ export class Brands { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -163,7 +163,7 @@ export class Brands { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -211,7 +211,7 @@ export class Brands { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -266,7 +266,7 @@ export class Brands { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, diff --git a/src/api/resources/bulk/client/Client.ts b/src/api/resources/bulk/client/Client.ts index a4977b3..7baff41 100644 --- a/src/api/resources/bulk/client/Client.ts +++ b/src/api/resources/bulk/client/Client.ts @@ -45,7 +45,7 @@ export class Bulk { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null @@ -106,7 +106,7 @@ export class Bulk { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null @@ -159,7 +159,7 @@ export class Bulk { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null @@ -216,7 +216,7 @@ export class Bulk { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -271,7 +271,7 @@ export class Bulk { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/lists/client/Client.ts b/src/api/resources/lists/client/Client.ts index 1f8dced..e6feee7 100644 --- a/src/api/resources/lists/client/Client.ts +++ b/src/api/resources/lists/client/Client.ts @@ -56,7 +56,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -123,7 +123,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -179,7 +179,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -226,7 +226,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -272,7 +272,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -329,7 +329,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -386,7 +386,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -443,7 +443,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null @@ -505,7 +505,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -553,7 +553,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/messages/client/Client.ts b/src/api/resources/messages/client/Client.ts index 2e2eee1..61532fb 100644 --- a/src/api/resources/messages/client/Client.ts +++ b/src/api/resources/messages/client/Client.ts @@ -103,7 +103,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -152,7 +152,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -208,7 +208,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null @@ -271,7 +271,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -329,7 +329,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -379,7 +379,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/notifications/client/Client.ts b/src/api/resources/notifications/client/Client.ts index bd1f823..56f6dcd 100644 --- a/src/api/resources/notifications/client/Client.ts +++ b/src/api/resources/notifications/client/Client.ts @@ -43,7 +43,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -90,7 +90,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -136,7 +136,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -183,7 +183,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -231,7 +231,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -279,7 +279,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -327,7 +327,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -375,7 +375,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/profiles/client/Client.ts b/src/api/resources/profiles/client/Client.ts index 8d4318e..59ec98b 100644 --- a/src/api/resources/profiles/client/Client.ts +++ b/src/api/resources/profiles/client/Client.ts @@ -43,7 +43,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -99,7 +99,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null @@ -164,7 +164,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -217,7 +217,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -262,7 +262,7 @@ export class Profiles { userId: string, request: Courier.GetListSubscriptionsRequest = {}, requestOptions?: Profiles.RequestOptions - ): Promise { + ): Promise { const { cursor } = request; const _queryParams: Record = {}; if (cursor != null) { @@ -279,7 +279,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -287,7 +287,7 @@ export class Profiles { maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return; + return _response.body as Courier.GetListSubscriptionsResponse; } if (_response.error.reason === "status-code") { @@ -336,7 +336,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, "X-Idempotency-Expiration": requestOptions?.idempotencyExpiry != null @@ -397,7 +397,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/profiles/types/GetListSubscriptionsList.ts b/src/api/resources/profiles/types/GetListSubscriptionsList.ts new file mode 100644 index 0000000..53e861d --- /dev/null +++ b/src/api/resources/profiles/types/GetListSubscriptionsList.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface GetListSubscriptionsList { + id: string; + /** List name */ + name: string; + /** The date/time of when the list was created. Represented as a string in ISO format. */ + created: string; + /** The date/time of when the list was updated. Represented as a string in ISO format. */ + updated: string; + preferences?: Courier.RecipientPreferences; +} diff --git a/src/api/resources/profiles/types/GetListSubscriptionsResponse.ts b/src/api/resources/profiles/types/GetListSubscriptionsResponse.ts new file mode 100644 index 0000000..d863c29 --- /dev/null +++ b/src/api/resources/profiles/types/GetListSubscriptionsResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface GetListSubscriptionsResponse { + paging: Courier.Paging; + /** An array of lists */ + results: Courier.GetListSubscriptionsList[]; +} diff --git a/src/api/resources/profiles/types/SubscribeToListsRequest.ts b/src/api/resources/profiles/types/SubscribeToListsRequest.ts index e0a894c..21b9a8a 100644 --- a/src/api/resources/profiles/types/SubscribeToListsRequest.ts +++ b/src/api/resources/profiles/types/SubscribeToListsRequest.ts @@ -5,6 +5,5 @@ import * as Courier from "../../.."; export interface SubscribeToListsRequest { - lists?: Courier.List[]; - preferences?: Courier.RecipientPreferences; + lists: Courier.SubscribeToListsRequestListObject[]; } diff --git a/src/api/resources/profiles/types/SubscribeToListsRequestListObject.ts b/src/api/resources/profiles/types/SubscribeToListsRequestListObject.ts new file mode 100644 index 0000000..d66b3b9 --- /dev/null +++ b/src/api/resources/profiles/types/SubscribeToListsRequestListObject.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface SubscribeToListsRequestListObject { + listId: string; + preferences?: Courier.RecipientPreferences; +} diff --git a/src/api/resources/profiles/types/index.ts b/src/api/resources/profiles/types/index.ts index 47de25b..f2ed162 100644 --- a/src/api/resources/profiles/types/index.ts +++ b/src/api/resources/profiles/types/index.ts @@ -21,5 +21,8 @@ export * from "./ProfileGetResponse"; export * from "./MergeProfileResponse"; export * from "./ReplaceProfileResponse"; export * from "./SubscribeToListsRequest"; +export * from "./SubscribeToListsRequestListObject"; export * from "./SubscribeToListsResponse"; export * from "./DeleteListSubscriptionResponse"; +export * from "./GetListSubscriptionsList"; +export * from "./GetListSubscriptionsResponse"; diff --git a/src/api/resources/templates/client/Client.ts b/src/api/resources/templates/client/Client.ts index 1afb095..c2d9824 100644 --- a/src/api/resources/templates/client/Client.ts +++ b/src/api/resources/templates/client/Client.ts @@ -46,7 +46,7 @@ export class Templates { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/tenants/client/Client.ts b/src/api/resources/tenants/client/Client.ts index b2c01e2..9be91a9 100644 --- a/src/api/resources/tenants/client/Client.ts +++ b/src/api/resources/tenants/client/Client.ts @@ -41,7 +41,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -93,7 +93,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -141,7 +141,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -184,7 +184,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/translations/client/Client.ts b/src/api/resources/translations/client/Client.ts index 49e18c9..ce0dc13 100644 --- a/src/api/resources/translations/client/Client.ts +++ b/src/api/resources/translations/client/Client.ts @@ -38,7 +38,7 @@ export class Translations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -95,7 +95,7 @@ export class Translations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, diff --git a/src/api/resources/users/resources/preferences/client/Client.ts b/src/api/resources/users/resources/preferences/client/Client.ts index ae0286a..3251de0 100644 --- a/src/api/resources/users/resources/preferences/client/Client.ts +++ b/src/api/resources/users/resources/preferences/client/Client.ts @@ -41,7 +41,7 @@ export class Preferences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -97,7 +97,7 @@ export class Preferences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -154,7 +154,7 @@ export class Preferences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, diff --git a/src/api/resources/users/resources/tenants/client/Client.ts b/src/api/resources/users/resources/tenants/client/Client.ts index 0a9761d..b48574e 100644 --- a/src/api/resources/users/resources/tenants/client/Client.ts +++ b/src/api/resources/users/resources/tenants/client/Client.ts @@ -45,7 +45,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -101,7 +101,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -148,7 +148,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -208,7 +208,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/users/resources/tokens/client/Client.ts b/src/api/resources/users/resources/tokens/client/Client.ts index 9131238..183410e 100644 --- a/src/api/resources/users/resources/tokens/client/Client.ts +++ b/src/api/resources/users/resources/tokens/client/Client.ts @@ -38,7 +38,7 @@ export class Tokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -95,7 +95,7 @@ export class Tokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -153,7 +153,7 @@ export class Tokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", body: request, @@ -210,7 +210,7 @@ export class Tokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -265,7 +265,7 @@ export class Tokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.0.3", + "X-Fern-SDK-Version": "v6.0.4", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/yarn.lock b/yarn.lock index be2677c..7b8409b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11,9 +11,9 @@ form-data "^4.0.0" "@types/node@*": - version "20.11.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.0.tgz#8e0b99e70c0c1ade1a86c4a282f7b7ef87c9552f" - integrity sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ== + version "20.11.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.5.tgz#be10c622ca7fcaa3cf226cf80166abc31389d86e" + integrity sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w== dependencies: undici-types "~5.26.4" @@ -98,7 +98,7 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -has-property-descriptors@^1.0.0: +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz#52ba30b6c5ec87fd89fa574bc1c39125c6f65340" integrity sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg== @@ -164,14 +164,15 @@ qs@6.11.2: side-channel "^1.0.4" set-function-length@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.1.1.tgz#4bc39fafb0307224a33e106a7d35ca1218d659ed" - integrity sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ== + version "1.2.0" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.0.tgz#2f81dc6c16c7059bda5ab7c82c11f03a515ed8e1" + integrity sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w== dependencies: define-data-property "^1.1.1" - get-intrinsic "^1.2.1" + function-bind "^1.1.2" + get-intrinsic "^1.2.2" gopd "^1.0.1" - has-property-descriptors "^1.0.0" + has-property-descriptors "^1.0.1" side-channel@^1.0.4: version "1.0.4"