diff --git a/package.json b/package.json index e267cf8..629dba5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@trycourier/courier", - "version": "v6.0.5", + "version": "v6.0.6", "private": false, "repository": "https://github.com/trycourier/courier-node", "main": "./index.js", diff --git a/src/Client.ts b/src/Client.ts index be38f50..6ab5378 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.5", + "X-Fern-SDK-Version": "v6.0.6", "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 6c35bc3..0b72ada 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/auditEvents/client/Client.ts b/src/api/resources/auditEvents/client/Client.ts index 3d1a6d9..e892a1f 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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 a46a544..b959695 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.5", + "X-Fern-SDK-Version": "v6.0.6", "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 6ce58d6..5eb98ed 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.5", + "X-Fern-SDK-Version": "v6.0.6", "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.5", + "X-Fern-SDK-Version": "v6.0.6", "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 c632a0f..1ded0b8 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.5", + "X-Fern-SDK-Version": "v6.0.6", "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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, contentType: "application/json", body: request, diff --git a/src/api/resources/bulk/client/Client.ts b/src/api/resources/bulk/client/Client.ts index f217baf..cc39863 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.5", + "X-Fern-SDK-Version": "v6.0.6", "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.5", + "X-Fern-SDK-Version": "v6.0.6", "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.5", + "X-Fern-SDK-Version": "v6.0.6", "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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/users/resources/tenants/types/UserTenantAssociation.ts b/src/api/resources/commons/types/UserTenantAssociation.ts similarity index 51% rename from src/api/resources/users/resources/tenants/types/UserTenantAssociation.ts rename to src/api/resources/commons/types/UserTenantAssociation.ts index fb8fd0b..83110e8 100644 --- a/src/api/resources/users/resources/tenants/types/UserTenantAssociation.ts +++ b/src/api/resources/commons/types/UserTenantAssociation.ts @@ -3,7 +3,10 @@ */ export interface UserTenantAssociation { - /** Tenant ID the user association is tied to. */ + /** User ID for the assocation between tenant and user */ + user_id: string; + type: "user"; + /** Tenant ID for the assocation between tenant and user */ tenant_id: string; profile: Record; } diff --git a/src/api/resources/commons/types/index.ts b/src/api/resources/commons/types/index.ts index dbe9b26..261bdf6 100644 --- a/src/api/resources/commons/types/index.ts +++ b/src/api/resources/commons/types/index.ts @@ -14,3 +14,4 @@ export * from "./NotificationPreferences"; export * from "./NotificationPreferenceDetails"; export * from "./RecipientPreferences"; export * from "./Email"; +export * from "./UserTenantAssociation"; diff --git a/src/api/resources/lists/client/Client.ts b/src/api/resources/lists/client/Client.ts index c1d010a..f014015 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", "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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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 f5292df..c3f13b7 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", "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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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 4acfd5b..d81e4d0 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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 bffe1eb..f6cbc8e 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", "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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -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.5", + "X-Fern-SDK-Version": "v6.0.6", }, contentType: "application/json", queryParameters: _queryParams, @@ -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.5", + "X-Fern-SDK-Version": "v6.0.6", "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.5", + "X-Fern-SDK-Version": "v6.0.6", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/profiles/types/Intercom.ts b/src/api/resources/profiles/types/Intercom.ts index 887e1a9..db421a6 100644 --- a/src/api/resources/profiles/types/Intercom.ts +++ b/src/api/resources/profiles/types/Intercom.ts @@ -6,5 +6,5 @@ import * as Courier from "../../.."; export interface Intercom { from: string; - to: Courier.IntercomeRecipient; + to: Courier.IntercomRecipient; } diff --git a/src/api/resources/profiles/types/IntercomeRecipient.ts b/src/api/resources/profiles/types/IntercomRecipient.ts similarity index 70% rename from src/api/resources/profiles/types/IntercomeRecipient.ts rename to src/api/resources/profiles/types/IntercomRecipient.ts index a073746..bc7cd33 100644 --- a/src/api/resources/profiles/types/IntercomeRecipient.ts +++ b/src/api/resources/profiles/types/IntercomRecipient.ts @@ -2,6 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface IntercomeRecipient { +export interface IntercomRecipient { id: string; } diff --git a/src/api/resources/profiles/types/MsTeams.ts b/src/api/resources/profiles/types/MsTeams.ts index 81d15b0..c2cebf9 100644 --- a/src/api/resources/profiles/types/MsTeams.ts +++ b/src/api/resources/profiles/types/MsTeams.ts @@ -4,4 +4,9 @@ import * as Courier from "../../.."; -export type MsTeams = Courier.SendToMsTeamsChannel | Courier.SendToMsTeamsUser; +export type MsTeams = + | Courier.SendToMsTeamsUserId + | Courier.SendToMsTeamsEmail + | Courier.SendToMsTeamsChannelId + | Courier.SendToMsTeamsConversationId + | Courier.SendToMsTeamsChannelName; diff --git a/src/api/resources/profiles/types/SendToMsTeamsUser.ts b/src/api/resources/profiles/types/MsTeamsBaseProperties.ts similarity index 68% rename from src/api/resources/profiles/types/SendToMsTeamsUser.ts rename to src/api/resources/profiles/types/MsTeamsBaseProperties.ts index 9ad3763..c7e61dc 100644 --- a/src/api/resources/profiles/types/SendToMsTeamsUser.ts +++ b/src/api/resources/profiles/types/MsTeamsBaseProperties.ts @@ -2,8 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface SendToMsTeamsUser { - user_id: string; +export interface MsTeamsBaseProperties { tenant_id: string; service_url: string; } diff --git a/src/api/resources/profiles/types/SendToMsTeamsChannel.ts b/src/api/resources/profiles/types/SendToMsTeamsChannel.ts deleted file mode 100644 index ff16aaf..0000000 --- a/src/api/resources/profiles/types/SendToMsTeamsChannel.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SendToMsTeamsChannel { - conversation_id: string; - tenant_id: string; - service_url: string; -} diff --git a/src/api/resources/profiles/types/SendToMsTeamsChannelId.ts b/src/api/resources/profiles/types/SendToMsTeamsChannelId.ts new file mode 100644 index 0000000..2ec732b --- /dev/null +++ b/src/api/resources/profiles/types/SendToMsTeamsChannelId.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface SendToMsTeamsChannelId extends Courier.MsTeamsBaseProperties { + channel_id: string; +} diff --git a/src/api/resources/profiles/types/SendToMsTeamsChannelName.ts b/src/api/resources/profiles/types/SendToMsTeamsChannelName.ts new file mode 100644 index 0000000..b1b6255 --- /dev/null +++ b/src/api/resources/profiles/types/SendToMsTeamsChannelName.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface SendToMsTeamsChannelName extends Courier.MsTeamsBaseProperties { + channel_name: string; + team_id: string; +} diff --git a/src/api/resources/profiles/types/SendToMsTeamsConversationId.ts b/src/api/resources/profiles/types/SendToMsTeamsConversationId.ts new file mode 100644 index 0000000..186e015 --- /dev/null +++ b/src/api/resources/profiles/types/SendToMsTeamsConversationId.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface SendToMsTeamsConversationId extends Courier.MsTeamsBaseProperties { + conversation_id: string; +} diff --git a/src/api/resources/profiles/types/SendToMsTeamsEmail.ts b/src/api/resources/profiles/types/SendToMsTeamsEmail.ts new file mode 100644 index 0000000..7fd0925 --- /dev/null +++ b/src/api/resources/profiles/types/SendToMsTeamsEmail.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface SendToMsTeamsEmail extends Courier.MsTeamsBaseProperties { + email: string; +} diff --git a/src/api/resources/profiles/types/SendToMsTeamsUserId.ts b/src/api/resources/profiles/types/SendToMsTeamsUserId.ts new file mode 100644 index 0000000..9b87826 --- /dev/null +++ b/src/api/resources/profiles/types/SendToMsTeamsUserId.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface SendToMsTeamsUserId extends Courier.MsTeamsBaseProperties { + user_id: string; +} diff --git a/src/api/resources/profiles/types/SendToSlackChannel.ts b/src/api/resources/profiles/types/SendToSlackChannel.ts new file mode 100644 index 0000000..e265666 --- /dev/null +++ b/src/api/resources/profiles/types/SendToSlackChannel.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface SendToSlackChannel extends Courier.SlackBaseProperties { + channel: string; +} diff --git a/src/api/resources/profiles/types/SendToSlackEmail.ts b/src/api/resources/profiles/types/SendToSlackEmail.ts new file mode 100644 index 0000000..8eb1e5a --- /dev/null +++ b/src/api/resources/profiles/types/SendToSlackEmail.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface SendToSlackEmail extends Courier.SlackBaseProperties { + email: string; +} diff --git a/src/api/resources/profiles/types/SendToSlackUserId.ts b/src/api/resources/profiles/types/SendToSlackUserId.ts new file mode 100644 index 0000000..158dbf0 --- /dev/null +++ b/src/api/resources/profiles/types/SendToSlackUserId.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface SendToSlackUserId extends Courier.SlackBaseProperties { + user_id: string; +} diff --git a/src/api/resources/profiles/types/Slack.ts b/src/api/resources/profiles/types/Slack.ts new file mode 100644 index 0000000..2254993 --- /dev/null +++ b/src/api/resources/profiles/types/Slack.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export type Slack = Courier.SendToSlackChannel | Courier.SendToSlackEmail | Courier.SendToSlackUserId; diff --git a/src/api/resources/profiles/types/SlackBaseProperties.ts b/src/api/resources/profiles/types/SlackBaseProperties.ts new file mode 100644 index 0000000..6185e17 --- /dev/null +++ b/src/api/resources/profiles/types/SlackBaseProperties.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface SlackBaseProperties { + access_token: string; +} diff --git a/src/api/resources/profiles/types/UserProfile.ts b/src/api/resources/profiles/types/UserProfile.ts index 9d43133..aa0b36a 100644 --- a/src/api/resources/profiles/types/UserProfile.ts +++ b/src/api/resources/profiles/types/UserProfile.ts @@ -35,5 +35,6 @@ export interface UserProfile { facebookPSID: string; firebaseToken: string; intercom: Courier.Intercom; + slack: Courier.Slack; ms_teams: Courier.MsTeams; } diff --git a/src/api/resources/profiles/types/index.ts b/src/api/resources/profiles/types/index.ts index f2ed162..9690b8f 100644 --- a/src/api/resources/profiles/types/index.ts +++ b/src/api/resources/profiles/types/index.ts @@ -12,10 +12,19 @@ export * from "./Expo"; export * from "./Token"; export * from "./MultipleTokens"; export * from "./Intercom"; -export * from "./IntercomeRecipient"; +export * from "./IntercomRecipient"; +export * from "./Slack"; +export * from "./SlackBaseProperties"; +export * from "./SendToSlackChannel"; +export * from "./SendToSlackEmail"; +export * from "./SendToSlackUserId"; export * from "./MsTeams"; -export * from "./SendToMsTeamsUser"; -export * from "./SendToMsTeamsChannel"; +export * from "./MsTeamsBaseProperties"; +export * from "./SendToMsTeamsUserId"; +export * from "./SendToMsTeamsEmail"; +export * from "./SendToMsTeamsConversationId"; +export * from "./SendToMsTeamsChannelId"; +export * from "./SendToMsTeamsChannelName"; export * from "./ProfileGetParameters"; export * from "./ProfileGetResponse"; export * from "./MergeProfileResponse"; diff --git a/src/api/resources/send/types/Recipient.ts b/src/api/resources/send/types/Recipient.ts index 01ce69e..99e89bc 100644 --- a/src/api/resources/send/types/Recipient.ts +++ b/src/api/resources/send/types/Recipient.ts @@ -8,4 +8,6 @@ export type Recipient = | Courier.AudienceRecipient | Courier.ListRecipient | Courier.ListPatternRecipient - | Courier.UserRecipient; + | Courier.UserRecipient + | Courier.Slack + | Courier.MsTeams; diff --git a/src/api/resources/templates/client/Client.ts b/src/api/resources/templates/client/Client.ts index 0773af6..b96acd0 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/tenants/client/Client.ts b/src/api/resources/tenants/client/Client.ts index 173f212..287a0a2 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -216,6 +216,60 @@ export class Tenants { } } + /** + * @throws {@link Courier.BadRequestError} + */ + public async getUsersByTenant( + tenantId: string, + requestOptions?: Tenants.RequestOptions + ): Promise { + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.CourierEnvironment.Production, + `/tenants/${tenantId}/users` + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@trycourier/courier", + "X-Fern-SDK-Version": "v6.0.6", + }, + contentType: "application/json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return _response.body as Courier.ListUsersForTenantResponse; + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new Courier.BadRequestError(_response.error.body as Courier.BadRequest); + default: + throw new errors.CourierError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.CourierError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.CourierTimeoutError(); + case "unknown": + throw new errors.CourierError({ + message: _response.error.errorMessage, + }); + } + } + protected async _getAuthorizationHeader() { const bearer = (await core.Supplier.get(this._options.authorizationToken)) ?? process.env["COURIER_AUTH_TOKEN"]; if (bearer == null) { diff --git a/src/api/resources/tenants/types/ListUsersForTenantResponse.ts b/src/api/resources/tenants/types/ListUsersForTenantResponse.ts new file mode 100644 index 0000000..b284b7c --- /dev/null +++ b/src/api/resources/tenants/types/ListUsersForTenantResponse.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Courier from "../../.."; + +export interface ListUsersForTenantResponse { + items?: Courier.UserTenantAssociation; + /** Set to true when there are more pages that can be retrieved. */ + has_more: boolean; + /** A url that may be used to generate these results. */ + url: string; + /** + * A url that may be used to generate fetch the next set of results. + * Defined only when `has_more` is set to true + */ + next_url?: string; + /** + * A pointer to the next page of results. Defined + * only when `has_more` is set to true + */ + cursor?: string; + /** Always set to `list`. Represents the type of this object. */ + type: "list"; +} diff --git a/src/api/resources/tenants/types/TenantListResponse.ts b/src/api/resources/tenants/types/TenantListResponse.ts index 4875f07..347a659 100644 --- a/src/api/resources/tenants/types/TenantListResponse.ts +++ b/src/api/resources/tenants/types/TenantListResponse.ts @@ -5,7 +5,7 @@ import * as Courier from "../../.."; export interface TenantListResponse { - /** A pointer to the next page of results. Defined only whenhas_more is set to true. */ + /** A pointer to the next page of results. Defined only when has_more is set to true. */ cursor?: string; /** Set to true when there are more pages that can be retrieved. */ has_more: boolean; @@ -13,7 +13,7 @@ export interface TenantListResponse { items: Courier.Tenant[]; /** * A url that may be used to generate fetch the next set of results. - * Defined only whenhas_more is set to true + * Defined only when has_more is set to true */ next_url?: string; /** A url that may be used to generate these results. */ diff --git a/src/api/resources/tenants/types/index.ts b/src/api/resources/tenants/types/index.ts index af52fb2..e3ca501 100644 --- a/src/api/resources/tenants/types/index.ts +++ b/src/api/resources/tenants/types/index.ts @@ -3,4 +3,5 @@ export * from "./SubscriptionTopic"; export * from "./SubscriptionTopicStatus"; export * from "./Tenant"; export * from "./TenantListResponse"; +export * from "./ListUsersForTenantResponse"; export * from "./TemplateProperty"; diff --git a/src/api/resources/translations/client/Client.ts b/src/api/resources/translations/client/Client.ts index 12f0b64..864ccb6 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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 1ef6579..de382cc 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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 222bd01..f20d825 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.ts b/src/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.ts index 4be61c4..ace3d19 100644 --- a/src/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.ts +++ b/src/api/resources/users/resources/tenants/client/requests/AddUserToMultipleTenantsParams.ts @@ -5,5 +5,5 @@ import * as Courier from "../../../../../.."; export interface AddUserToMultipleTenantsParams { - tenants: Courier.users.UserTenantAssociation[]; + tenants: Courier.UserTenantAssociation[]; } diff --git a/src/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.ts b/src/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.ts index a324459..670ddc1 100644 --- a/src/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.ts +++ b/src/api/resources/users/resources/tenants/types/ListTenantsForUserResponse.ts @@ -5,7 +5,7 @@ import * as Courier from "../../../../.."; export interface ListTenantsForUserResponse { - items?: Courier.users.UserTenantAssociation; + items?: Courier.UserTenantAssociation; /** Set to true when there are more pages that can be retrieved. */ has_more: boolean; /** A url that may be used to generate these results. */ diff --git a/src/api/resources/users/resources/tenants/types/index.ts b/src/api/resources/users/resources/tenants/types/index.ts index 21b9b4d..2ea9103 100644 --- a/src/api/resources/users/resources/tenants/types/index.ts +++ b/src/api/resources/users/resources/tenants/types/index.ts @@ -1,3 +1,2 @@ export * from "./AddUserToSingleTenantsParamsProfile"; -export * from "./UserTenantAssociation"; export * from "./ListTenantsForUserResponse"; diff --git a/src/api/resources/users/resources/tokens/client/Client.ts b/src/api/resources/users/resources/tokens/client/Client.ts index ef2a66b..67cef31 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, 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.5", + "X-Fern-SDK-Version": "v6.0.6", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/yarn.lock b/yarn.lock index 7b8409b..d17e789 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11,9 +11,9 @@ form-data "^4.0.0" "@types/node@*": - version "20.11.5" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.5.tgz#be10c622ca7fcaa3cf226cf80166abc31389d86e" - integrity sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w== + version "20.11.14" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.14.tgz#9fdc9c2550c2f6693508ca4530f821474c4ee3bb" + integrity sha512-w3yWCcwULefjP9DmDDsgUskrMoOy5Z8MiwKHr1FvqGPtx7CvJzQvxD7eKpxNtklQxLruxSXWddyeRtyud0RcXQ== dependencies: undici-types "~5.26.4"