diff --git a/package.json b/package.json index 10a7614..79cea5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@trycourier/courier", - "version": "v6.2.2", + "version": "v6.2.3", "private": false, "repository": "https://github.com/trycourier/courier-node", "main": "./index.js", diff --git a/src/Client.ts b/src/Client.ts index a51107d..6cee682 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -53,7 +53,15 @@ export class CourierClient { * @example * await courier.send({ * message: { - * content: {}, + * content: { + * version: "string", + * brand: { + * "key": "value" + * }, + * elements: [{ + * type: "text" + * }] + * }, * data: { * "string": { * "key": "value" @@ -61,19 +69,71 @@ export class CourierClient { * }, * brand_id: "string", * channels: { - * "string": {} + * "string": { + * brand_id: undefined, + * providers: undefined, + * routing_method: undefined, + * if: undefined, + * timeouts: undefined, + * override: undefined, + * metadata: undefined + * } + * }, + * context: { + * tenant_id: "string" + * }, + * metadata: { + * event: "string", + * tags: [], + * utm: { + * source: undefined, + * medium: undefined, + * campaign: undefined, + * term: undefined, + * content: undefined + * }, + * trace_id: "string" + * }, + * preferences: { + * subscription_topic_id: "string" * }, - * context: {}, - * metadata: {}, - * preferences: {}, * providers: { - * "string": {} + * "string": { + * override: undefined, + * if: undefined, + * timeouts: undefined, + * metadata: undefined + * } + * }, + * routing: { + * method: Courier.RoutingMethod.All, + * channels: [{ + * channel: "string", + * config: undefined, + * method: undefined, + * providers: undefined, + * if: undefined + * }] + * }, + * timeout: { + * provider: {}, + * channel: {}, + * message: 1, + * escalation: 1, + * criteria: Courier.Criteria.NoEscalation + * }, + * delay: { + * duration: 1 + * }, + * expiry: { + * expires_at: "string", + * expires_in: "string" * }, - * routing: {}, - * timeout: {}, - * delay: {}, - * expiry: {}, - * to: {} + * to: { + * audience_id: "string", + * data: {}, + * filters: [] + * } * } * }) */ @@ -91,7 +151,7 @@ export class CourierClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, diff --git a/src/api/client/requests/SendMessageRequest.ts b/src/api/client/requests/SendMessageRequest.ts index 7d0bb9f..e28c85e 100644 --- a/src/api/client/requests/SendMessageRequest.ts +++ b/src/api/client/requests/SendMessageRequest.ts @@ -8,7 +8,15 @@ import * as Courier from "../../index"; * @example * { * message: { - * content: {}, + * content: { + * version: "string", + * brand: { + * "key": "value" + * }, + * elements: [{ + * type: "text" + * }] + * }, * data: { * "string": { * "key": "value" @@ -16,19 +24,71 @@ import * as Courier from "../../index"; * }, * brand_id: "string", * channels: { - * "string": {} + * "string": { + * brand_id: undefined, + * providers: undefined, + * routing_method: undefined, + * if: undefined, + * timeouts: undefined, + * override: undefined, + * metadata: undefined + * } + * }, + * context: { + * tenant_id: "string" + * }, + * metadata: { + * event: "string", + * tags: [], + * utm: { + * source: undefined, + * medium: undefined, + * campaign: undefined, + * term: undefined, + * content: undefined + * }, + * trace_id: "string" + * }, + * preferences: { + * subscription_topic_id: "string" * }, - * context: {}, - * metadata: {}, - * preferences: {}, * providers: { - * "string": {} + * "string": { + * override: undefined, + * if: undefined, + * timeouts: undefined, + * metadata: undefined + * } + * }, + * routing: { + * method: Courier.RoutingMethod.All, + * channels: [{ + * channel: "string", + * config: undefined, + * method: undefined, + * providers: undefined, + * if: undefined + * }] + * }, + * timeout: { + * provider: {}, + * channel: {}, + * message: 1, + * escalation: 1, + * criteria: Courier.Criteria.NoEscalation + * }, + * delay: { + * duration: 1 + * }, + * expiry: { + * expires_at: "string", + * expires_in: "string" * }, - * routing: {}, - * timeout: {}, - * delay: {}, - * expiry: {}, - * to: {} + * to: { + * audience_id: "string", + * data: {}, + * filters: [] + * } * } * } */ diff --git a/src/api/resources/audiences/client/Client.ts b/src/api/resources/audiences/client/Client.ts index cc1c080..d027acf 100644 --- a/src/api/resources/audiences/client/Client.ts +++ b/src/api/resources/audiences/client/Client.ts @@ -44,7 +44,7 @@ export class Audiences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -111,7 +111,7 @@ export class Audiences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -166,7 +166,7 @@ export class Audiences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -235,7 +235,7 @@ export class Audiences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -308,7 +308,7 @@ export class Audiences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/auditEvents/client/Client.ts b/src/api/resources/auditEvents/client/Client.ts index 5a8177c..763d37a 100644 --- a/src/api/resources/auditEvents/client/Client.ts +++ b/src/api/resources/auditEvents/client/Client.ts @@ -55,7 +55,7 @@ export class AuditEvents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -110,7 +110,7 @@ export class AuditEvents { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/authTokens/client/Client.ts b/src/api/resources/authTokens/client/Client.ts index 1caa593..1c1354a 100644 --- a/src/api/resources/authTokens/client/Client.ts +++ b/src/api/resources/authTokens/client/Client.ts @@ -55,7 +55,7 @@ export class AuthTokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, diff --git a/src/api/resources/automations/client/Client.ts b/src/api/resources/automations/client/Client.ts index 1f7fd89..e6ccd90 100644 --- a/src/api/resources/automations/client/Client.ts +++ b/src/api/resources/automations/client/Client.ts @@ -66,7 +66,7 @@ export class Automations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, @@ -145,7 +145,7 @@ export class Automations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, diff --git a/src/api/resources/brands/client/Client.ts b/src/api/resources/brands/client/Client.ts index b28caa4..82530cd 100644 --- a/src/api/resources/brands/client/Client.ts +++ b/src/api/resources/brands/client/Client.ts @@ -41,8 +41,31 @@ export class Brands { * await courier.brands.create({ * id: "string", * name: "string", - * settings: {}, - * snippets: {} + * settings: { + * colors: { + * primary: "string", + * secondary: "string", + * tertiary: "string" + * }, + * inapp: { + * "key": "value" + * }, + * email: { + * footer: { + * "key": "value" + * }, + * header: { + * "key": "value" + * } + * } + * }, + * snippets: { + * items: [{ + * format: "handlebars", + * name: "string", + * value: "string" + * }] + * } * }) */ public async create( @@ -59,7 +82,7 @@ export class Brands { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, @@ -126,7 +149,7 @@ export class Brands { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -191,7 +214,7 @@ export class Brands { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -248,7 +271,7 @@ export class Brands { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -298,11 +321,22 @@ export class Brands { * await courier.brands.replace("string", { * name: "string", * settings: { - * colors: {}, + * colors: { + * primary: "string", + * secondary: "string", + * tertiary: "string" + * }, * inapp: { * "key": "value" * }, - * email: {} + * email: { + * footer: { + * "key": "value" + * }, + * header: { + * "key": "value" + * } + * } * }, * snippets: { * items: [{ @@ -328,7 +362,7 @@ export class Brands { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/brands/client/requests/BrandUpdateParameters.ts b/src/api/resources/brands/client/requests/BrandUpdateParameters.ts index f7ad542..566d0d3 100644 --- a/src/api/resources/brands/client/requests/BrandUpdateParameters.ts +++ b/src/api/resources/brands/client/requests/BrandUpdateParameters.ts @@ -9,11 +9,22 @@ import * as Courier from "../../../../index"; * { * name: "string", * settings: { - * colors: {}, + * colors: { + * primary: "string", + * secondary: "string", + * tertiary: "string" + * }, * inapp: { * "key": "value" * }, - * email: {} + * email: { + * footer: { + * "key": "value" + * }, + * header: { + * "key": "value" + * } + * } * }, * snippets: { * items: [{ diff --git a/src/api/resources/bulk/client/Client.ts b/src/api/resources/bulk/client/Client.ts index 02a7f1f..dfddb73 100644 --- a/src/api/resources/bulk/client/Client.ts +++ b/src/api/resources/bulk/client/Client.ts @@ -38,7 +38,76 @@ export class Bulk { * @example * await courier.bulk.createJob({ * message: { - * message: {}, + * message: { + * template: "string", + * data: { + * "string": { + * "key": "value" + * } + * }, + * brand_id: "string", + * channels: { + * "string": { + * brand_id: undefined, + * providers: undefined, + * routing_method: undefined, + * if: undefined, + * timeouts: undefined, + * override: undefined, + * metadata: undefined + * } + * }, + * context: { + * tenant_id: "string" + * }, + * metadata: { + * event: "string", + * tags: [], + * utm: { + * source: undefined, + * medium: undefined, + * campaign: undefined, + * term: undefined, + * content: undefined + * }, + * trace_id: "string" + * }, + * preferences: { + * subscription_topic_id: "string" + * }, + * providers: { + * "string": { + * override: undefined, + * if: undefined, + * timeouts: undefined, + * metadata: undefined + * } + * }, + * routing: { + * method: Courier.RoutingMethod.All, + * channels: [{ + * channel: "string", + * config: undefined, + * method: undefined, + * providers: undefined, + * if: undefined + * }] + * }, + * timeout: { + * provider: {}, + * channel: {}, + * message: 1, + * escalation: 1, + * criteria: Courier.Criteria.NoEscalation + * }, + * delay: { + * duration: 1 + * }, + * expiry: { + * expires_at: "string", + * expires_in: "string" + * } + * }, * brand: "string", * data: { * "string": { @@ -71,7 +140,7 @@ export class Bulk { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, @@ -124,7 +193,10 @@ export class Bulk { * @example * await courier.bulk.ingestUsers("string", { * users: [{ - * preferences: {}, + * preferences: { + * categories: {}, + * notifications: {} + * }, * profile: { * "key": "value" * }, @@ -132,7 +204,23 @@ export class Bulk { * data: { * "key": "value" * }, - * to: {} + * to: { + * account_id: "string", + * context: { + * tenant_id: "string" + * }, + * data: {}, + * email: "string", + * locale: "string", + * user_id: "string", + * phone_number: "string", + * preferences: { + * categories: undefined, + * notifications: {}, + * templateId: undefined + * }, + * tenant_id: "string" + * } * }] * }) */ @@ -151,7 +239,7 @@ export class Bulk { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, @@ -211,7 +299,7 @@ export class Bulk { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, @@ -275,7 +363,7 @@ export class Bulk { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -339,7 +427,7 @@ export class Bulk { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/bulk/client/requests/BulkCreateJobParams.ts b/src/api/resources/bulk/client/requests/BulkCreateJobParams.ts index 519ec63..0f91e22 100644 --- a/src/api/resources/bulk/client/requests/BulkCreateJobParams.ts +++ b/src/api/resources/bulk/client/requests/BulkCreateJobParams.ts @@ -8,7 +8,76 @@ import * as Courier from "../../../../index"; * @example * { * message: { - * message: {}, + * message: { + * template: "string", + * data: { + * "string": { + * "key": "value" + * } + * }, + * brand_id: "string", + * channels: { + * "string": { + * brand_id: undefined, + * providers: undefined, + * routing_method: undefined, + * if: undefined, + * timeouts: undefined, + * override: undefined, + * metadata: undefined + * } + * }, + * context: { + * tenant_id: "string" + * }, + * metadata: { + * event: "string", + * tags: [], + * utm: { + * source: undefined, + * medium: undefined, + * campaign: undefined, + * term: undefined, + * content: undefined + * }, + * trace_id: "string" + * }, + * preferences: { + * subscription_topic_id: "string" + * }, + * providers: { + * "string": { + * override: undefined, + * if: undefined, + * timeouts: undefined, + * metadata: undefined + * } + * }, + * routing: { + * method: Courier.RoutingMethod.All, + * channels: [{ + * channel: "string", + * config: undefined, + * method: undefined, + * providers: undefined, + * if: undefined + * }] + * }, + * timeout: { + * provider: {}, + * channel: {}, + * message: 1, + * escalation: 1, + * criteria: Courier.Criteria.NoEscalation + * }, + * delay: { + * duration: 1 + * }, + * expiry: { + * expires_at: "string", + * expires_in: "string" + * } + * }, * brand: "string", * data: { * "string": { diff --git a/src/api/resources/inbound/client/Client.ts b/src/api/resources/inbound/client/Client.ts index 2ba3e2f..36f76f6 100644 --- a/src/api/resources/inbound/client/Client.ts +++ b/src/api/resources/inbound/client/Client.ts @@ -58,7 +58,7 @@ export class Inbound { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/lists/client/Client.ts b/src/api/resources/lists/client/Client.ts index 90513ae..0faa4b7 100644 --- a/src/api/resources/lists/client/Client.ts +++ b/src/api/resources/lists/client/Client.ts @@ -67,7 +67,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -129,7 +129,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -179,30 +179,8 @@ export class Lists { * await courier.lists.update("string", { * name: "string", * preferences: { - * categories: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * }, - * notifications: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * } + * categories: {}, + * notifications: {} * } * }) */ @@ -221,7 +199,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -276,7 +254,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -330,7 +308,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -399,7 +377,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -453,30 +431,8 @@ export class Lists { * recipients: [{ * recipientId: "string", * preferences: { - * categories: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * }, - * notifications: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * } + * categories: {}, + * notifications: {} * } * }] * }) @@ -496,7 +452,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -550,30 +506,8 @@ export class Lists { * recipients: [{ * recipientId: "string", * preferences: { - * categories: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * }, - * notifications: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * } + * categories: {}, + * notifications: {} * } * }] * }) @@ -593,7 +527,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, @@ -647,30 +581,8 @@ export class Lists { * @example * await courier.lists.subscribe("string", "string", { * preferences: { - * categories: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * }, - * notifications: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * } + * categories: {}, + * notifications: {} * } * }) */ @@ -690,7 +602,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -748,7 +660,7 @@ export class Lists { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/lists/client/requests/AddSubscribersToList.ts b/src/api/resources/lists/client/requests/AddSubscribersToList.ts index f4ea613..f28fac3 100644 --- a/src/api/resources/lists/client/requests/AddSubscribersToList.ts +++ b/src/api/resources/lists/client/requests/AddSubscribersToList.ts @@ -10,30 +10,8 @@ import * as Courier from "../../../../index"; * recipients: [{ * recipientId: "string", * preferences: { - * categories: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * }, - * notifications: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * } + * categories: {}, + * notifications: {} * } * }] * } diff --git a/src/api/resources/lists/client/requests/SubscribeUserToListRequest.ts b/src/api/resources/lists/client/requests/SubscribeUserToListRequest.ts index 47c54bf..038cbea 100644 --- a/src/api/resources/lists/client/requests/SubscribeUserToListRequest.ts +++ b/src/api/resources/lists/client/requests/SubscribeUserToListRequest.ts @@ -8,30 +8,8 @@ import * as Courier from "../../../../index"; * @example * { * preferences: { - * categories: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * }, - * notifications: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * } + * categories: {}, + * notifications: {} * } * } */ diff --git a/src/api/resources/lists/client/requests/SubscribeUsersToListRequest.ts b/src/api/resources/lists/client/requests/SubscribeUsersToListRequest.ts index b0e6c1b..6ab7990 100644 --- a/src/api/resources/lists/client/requests/SubscribeUsersToListRequest.ts +++ b/src/api/resources/lists/client/requests/SubscribeUsersToListRequest.ts @@ -10,30 +10,8 @@ import * as Courier from "../../../../index"; * recipients: [{ * recipientId: "string", * preferences: { - * categories: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * }, - * notifications: { - * "string": { - * status: Courier.PreferenceStatus.OptedIn, - * rules: [{ - * start: "string", - * until: "string" - * }], - * channel_preferences: [{ - * channel: Courier.ChannelClassification.DirectMessage - * }] - * } - * } + * categories: {}, + * notifications: {} * } * }] * } diff --git a/src/api/resources/messages/client/Client.ts b/src/api/resources/messages/client/Client.ts index 4c4ae1d..31acbf6 100644 --- a/src/api/resources/messages/client/Client.ts +++ b/src/api/resources/messages/client/Client.ts @@ -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.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -210,7 +210,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -274,7 +274,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, @@ -347,7 +347,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -413,7 +413,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -472,7 +472,7 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/notifications/client/Client.ts b/src/api/resources/notifications/client/Client.ts index 2ec8d48..2522a1e 100644 --- a/src/api/resources/notifications/client/Client.ts +++ b/src/api/resources/notifications/client/Client.ts @@ -58,7 +58,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -114,7 +114,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -169,7 +169,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -226,7 +226,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -291,7 +291,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -349,7 +349,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/profiles/client/Client.ts b/src/api/resources/profiles/client/Client.ts index 013889a..9ab8fcc 100644 --- a/src/api/resources/profiles/client/Client.ts +++ b/src/api/resources/profiles/client/Client.ts @@ -51,7 +51,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -123,7 +123,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, @@ -202,7 +202,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -264,7 +264,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -338,7 +338,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -389,7 +389,13 @@ export class Profiles { * * @example * await courier.profiles.subscribeToLists("string", { - * lists: [{}] + * lists: [{ + * listId: "string", + * preferences: { + * categories: {}, + * notifications: {} + * } + * }] * }) */ public async subscribeToLists( @@ -407,7 +413,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Idempotency-Key": requestOptions?.idempotencyKey != null ? requestOptions?.idempotencyKey : undefined, @@ -475,7 +481,7 @@ export class Profiles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/templates/client/Client.ts b/src/api/resources/templates/client/Client.ts index 68766dc..d88e651 100644 --- a/src/api/resources/templates/client/Client.ts +++ b/src/api/resources/templates/client/Client.ts @@ -55,7 +55,7 @@ export class Templates { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/tenants/client/Client.ts b/src/api/resources/tenants/client/Client.ts index 7a564ba..01c9fc0 100644 --- a/src/api/resources/tenants/client/Client.ts +++ b/src/api/resources/tenants/client/Client.ts @@ -36,7 +36,12 @@ export class Tenants { * name: "string", * parent_tenant_id: "string", * default_preferences: { - * items: [{}] + * items: [{ + * id: "string", + * status: Courier.SubscriptionTopicStatus.OptedOut, + * has_custom_routing: undefined, + * custom_routing: undefined + * }] * }, * properties: { * "string": { @@ -66,7 +71,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -126,7 +131,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -204,7 +209,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -257,7 +262,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -329,7 +334,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -398,7 +403,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -456,7 +461,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.ts b/src/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.ts index 5d6227b..001f3b0 100644 --- a/src/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.ts +++ b/src/api/resources/tenants/client/requests/TenantCreateOrReplaceParams.ts @@ -10,7 +10,12 @@ import * as Courier from "../../../../index"; * name: "string", * parent_tenant_id: "string", * default_preferences: { - * items: [{}] + * items: [{ + * id: "string", + * status: Courier.SubscriptionTopicStatus.OptedOut, + * has_custom_routing: undefined, + * custom_routing: undefined + * }] * }, * properties: { * "string": { diff --git a/src/api/resources/translations/client/Client.ts b/src/api/resources/translations/client/Client.ts index ec25877..c15e654 100644 --- a/src/api/resources/translations/client/Client.ts +++ b/src/api/resources/translations/client/Client.ts @@ -47,7 +47,7 @@ export class Translations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -115,7 +115,7 @@ export class Translations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/users/resources/preferences/client/Client.ts b/src/api/resources/users/resources/preferences/client/Client.ts index 2cb9863..533c4f1 100644 --- a/src/api/resources/users/resources/preferences/client/Client.ts +++ b/src/api/resources/users/resources/preferences/client/Client.ts @@ -28,17 +28,27 @@ export class Preferences { * Fetch all user preferences. * * @param {string} userId - A unique identifier associated with the user whose preferences you wish to retrieve. + * @param {Courier.users.UserPreferencesParams} request * @param {Preferences.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Courier.BadRequestError} * * @example - * await courier.users.preferences.list("string") + * await courier.users.preferences.list("string", { + * tenant_id: "string" + * }) */ public async list( userId: string, + request: Courier.users.UserPreferencesParams = {}, requestOptions?: Preferences.RequestOptions ): Promise { + const { tenant_id: tenantId } = request; + const _queryParams: Record = {}; + if (tenantId != null) { + _queryParams["tenant_id"] = tenantId; + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.CourierEnvironment.Production, @@ -49,11 +59,12 @@ export class Preferences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", + queryParameters: _queryParams, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, }); @@ -93,18 +104,28 @@ export class Preferences { * * @param {string} userId - A unique identifier associated with the user whose preferences you wish to retrieve. * @param {string} topicId - A unique identifier associated with a subscription topic. + * @param {Courier.users.UserPreferencesTopicParams} request * @param {Preferences.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Courier.NotFoundError} * * @example - * await courier.users.preferences.get("string", "string") + * await courier.users.preferences.get("string", "string", { + * tenant_id: "string" + * }) */ public async get( userId: string, topicId: string, + request: Courier.users.UserPreferencesTopicParams = {}, requestOptions?: Preferences.RequestOptions ): Promise { + const { tenant_id: tenantId } = request; + const _queryParams: Record = {}; + if (tenantId != null) { + _queryParams["tenant_id"] = tenantId; + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.CourierEnvironment.Production, @@ -115,11 +136,12 @@ export class Preferences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", + queryParameters: _queryParams, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, }); @@ -179,6 +201,12 @@ export class Preferences { request: Courier.users.UserPreferencesUpdateParams, requestOptions?: Preferences.RequestOptions ): Promise { + const { tenant_id: tenantId, ..._body } = request; + const _queryParams: Record = {}; + if (tenantId != null) { + _queryParams["tenant_id"] = tenantId; + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.CourierEnvironment.Production, @@ -189,12 +217,13 @@ export class Preferences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", - body: request, + queryParameters: _queryParams, + body: _body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, }); diff --git a/src/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.ts b/src/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.ts new file mode 100644 index 0000000..4f7300d --- /dev/null +++ b/src/api/resources/users/resources/preferences/client/requests/UserPreferencesParams.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * tenant_id: "string" + * } + */ +export interface UserPreferencesParams { + /** + * Query the preferences of a user for this specific tenant context. + */ + tenant_id?: string; +} diff --git a/src/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.ts b/src/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.ts new file mode 100644 index 0000000..3bcf845 --- /dev/null +++ b/src/api/resources/users/resources/preferences/client/requests/UserPreferencesTopicParams.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * tenant_id: "string" + * } + */ +export interface UserPreferencesTopicParams { + /** + * Query the preferences of a user for this specific tenant context. + */ + tenant_id?: string; +} diff --git a/src/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.ts b/src/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.ts index 1e6f223..2e08362 100644 --- a/src/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.ts +++ b/src/api/resources/users/resources/preferences/client/requests/UserPreferencesUpdateParams.ts @@ -15,5 +15,9 @@ import * as Courier from "../../../../../../index"; * } */ export interface UserPreferencesUpdateParams { + /** + * Update the preferences of a user for this specific tenant context. + */ + tenant_id?: string; topic: Courier.users.TopicPreferenceUpdate; } diff --git a/src/api/resources/users/resources/preferences/client/requests/index.ts b/src/api/resources/users/resources/preferences/client/requests/index.ts index ccac62d..7fbb1ea 100644 --- a/src/api/resources/users/resources/preferences/client/requests/index.ts +++ b/src/api/resources/users/resources/preferences/client/requests/index.ts @@ -1 +1,3 @@ +export { type UserPreferencesParams } from "./UserPreferencesParams"; +export { type UserPreferencesTopicParams } from "./UserPreferencesTopicParams"; export { type UserPreferencesUpdateParams } from "./UserPreferencesUpdateParams"; diff --git a/src/api/resources/users/resources/tenants/client/Client.ts b/src/api/resources/users/resources/tenants/client/Client.ts index 0cceb48..e4fd4dc 100644 --- a/src/api/resources/users/resources/tenants/client/Client.ts +++ b/src/api/resources/users/resources/tenants/client/Client.ts @@ -64,7 +64,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -136,7 +136,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -191,7 +191,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -246,7 +246,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -318,7 +318,7 @@ export class Tenants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/users/resources/tokens/client/Client.ts b/src/api/resources/users/resources/tokens/client/Client.ts index d3fc640..f4bb1c6 100644 --- a/src/api/resources/users/resources/tokens/client/Client.ts +++ b/src/api/resources/users/resources/tokens/client/Client.ts @@ -46,7 +46,7 @@ export class Tokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -135,7 +135,7 @@ export class Tokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -187,7 +187,11 @@ export class Tokens { * * @example * await courier.users.tokens.update("string", "string", { - * patch: [{}] + * patch: [{ + * op: "string", + * path: "string", + * value: "string" + * }] * }) */ public async update( @@ -206,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.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -273,7 +277,7 @@ export class Tokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -337,7 +341,7 @@ export class Tokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -395,7 +399,7 @@ export class Tokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@trycourier/courier", - "X-Fern-SDK-Version": "v6.2.2", + "X-Fern-SDK-Version": "v6.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/yarn.lock b/yarn.lock index 9288183..618c39b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,131 +10,131 @@ "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.24" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" - integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.25.7.tgz#438f2c524071531d643c6f0188e1e28f130cebc7" + integrity sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g== dependencies: - "@babel/highlight" "^7.24.7" + "@babel/highlight" "^7.25.7" picocolors "^1.0.0" -"@babel/compat-data@^7.25.2": - version "7.25.4" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.4.tgz#7d2a80ce229890edcf4cc259d4d696cb4dae2fcb" - integrity sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ== +"@babel/compat-data@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.7.tgz#b8479fe0018ef0ac87b6b7a5c6916fcd67ae2c9c" + integrity sha512-9ickoLz+hcXCeh7jrcin+/SLWm+GkxE2kTvoYyp38p4WkdFXfQJxDFGWp/YHjiKLPx06z2A7W8XKuqbReXDzsw== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.2.tgz#ed8eec275118d7613e77a352894cd12ded8eba77" - integrity sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA== + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.7.tgz#1b3d144157575daf132a3bc80b2b18e6e3ca6ece" + integrity sha512-yJ474Zv3cwiSOO9nXJuqzvwEeM+chDuQ8GJirw+pZ91sCGCyOZ3dJkVE09fTV0VEVzXyLWhh3G/AolYTPX7Mow== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.25.0" - "@babel/helper-compilation-targets" "^7.25.2" - "@babel/helper-module-transforms" "^7.25.2" - "@babel/helpers" "^7.25.0" - "@babel/parser" "^7.25.0" - "@babel/template" "^7.25.0" - "@babel/traverse" "^7.25.2" - "@babel/types" "^7.25.2" + "@babel/code-frame" "^7.25.7" + "@babel/generator" "^7.25.7" + "@babel/helper-compilation-targets" "^7.25.7" + "@babel/helper-module-transforms" "^7.25.7" + "@babel/helpers" "^7.25.7" + "@babel/parser" "^7.25.7" + "@babel/template" "^7.25.7" + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.25.0", "@babel/generator@^7.25.6", "@babel/generator@^7.7.2": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.6.tgz#0df1ad8cb32fe4d2b01d8bf437f153d19342a87c" - integrity sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw== +"@babel/generator@^7.25.7", "@babel/generator@^7.7.2": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.7.tgz#de86acbeb975a3e11ee92dd52223e6b03b479c56" + integrity sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA== dependencies: - "@babel/types" "^7.25.6" + "@babel/types" "^7.25.7" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" - jsesc "^2.5.1" + jsesc "^3.0.2" -"@babel/helper-compilation-targets@^7.25.2": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz#e1d9410a90974a3a5a66e84ff55ef62e3c02d06c" - integrity sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw== +"@babel/helper-compilation-targets@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.7.tgz#11260ac3322dda0ef53edfae6e97b961449f5fa4" + integrity sha512-DniTEax0sv6isaw6qSQSfV4gVRNtw2rte8HHM45t9ZR0xILaufBRNkpMifCRiAPyvL4ACD6v0gfCwCmtOQaV4A== dependencies: - "@babel/compat-data" "^7.25.2" - "@babel/helper-validator-option" "^7.24.8" - browserslist "^4.23.1" + "@babel/compat-data" "^7.25.7" + "@babel/helper-validator-option" "^7.25.7" + browserslist "^4.24.0" lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-module-imports@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" - integrity sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA== - dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-module-transforms@^7.25.2": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz#ee713c29768100f2776edf04d4eb23b8d27a66e6" - integrity sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ== - dependencies: - "@babel/helper-module-imports" "^7.24.7" - "@babel/helper-simple-access" "^7.24.7" - "@babel/helper-validator-identifier" "^7.24.7" - "@babel/traverse" "^7.25.2" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.24.8", "@babel/helper-plugin-utils@^7.8.0": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" - integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== - -"@babel/helper-simple-access@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3" - integrity sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg== - dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-string-parser@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" - integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== - -"@babel/helper-validator-identifier@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" - integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== - -"@babel/helper-validator-option@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" - integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== - -"@babel/helpers@^7.25.0": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.6.tgz#57ee60141829ba2e102f30711ffe3afab357cc60" - integrity sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q== - dependencies: - "@babel/template" "^7.25.0" - "@babel/types" "^7.25.6" - -"@babel/highlight@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d" - integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw== - dependencies: - "@babel/helper-validator-identifier" "^7.24.7" +"@babel/helper-module-imports@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.25.7.tgz#dba00d9523539152906ba49263e36d7261040472" + integrity sha512-o0xCgpNmRohmnoWKQ0Ij8IdddjyBFE4T2kagL/x6M3+4zUgc+4qTOUBoNe4XxDskt1HPKO007ZPiMgLDq2s7Kw== + dependencies: + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/helper-module-transforms@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.7.tgz#2ac9372c5e001b19bc62f1fe7d96a18cb0901d1a" + integrity sha512-k/6f8dKG3yDz/qCwSM+RKovjMix563SLxQFo0UhRNo239SP6n9u5/eLtKD6EAjwta2JHJ49CsD8pms2HdNiMMQ== + dependencies: + "@babel/helper-module-imports" "^7.25.7" + "@babel/helper-simple-access" "^7.25.7" + "@babel/helper-validator-identifier" "^7.25.7" + "@babel/traverse" "^7.25.7" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.25.7", "@babel/helper-plugin-utils@^7.8.0": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.7.tgz#8ec5b21812d992e1ef88a9b068260537b6f0e36c" + integrity sha512-eaPZai0PiqCi09pPs3pAFfl/zYgGaE6IdXtYvmf0qlcDTd3WCtO7JWCcRd64e0EQrcYgiHibEZnOGsSY4QSgaw== + +"@babel/helper-simple-access@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.25.7.tgz#5eb9f6a60c5d6b2e0f76057004f8dacbddfae1c0" + integrity sha512-FPGAkJmyoChQeM+ruBGIDyrT2tKfZJO8NcxdC+CWNJi7N8/rZpSxK7yvBJ5O/nF1gfu5KzN7VKG3YVSLFfRSxQ== + dependencies: + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/helper-string-parser@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz#d50e8d37b1176207b4fe9acedec386c565a44a54" + integrity sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g== + +"@babel/helper-validator-identifier@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz#77b7f60c40b15c97df735b38a66ba1d7c3e93da5" + integrity sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg== + +"@babel/helper-validator-option@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.25.7.tgz#97d1d684448228b30b506d90cace495d6f492729" + integrity sha512-ytbPLsm+GjArDYXJ8Ydr1c/KJuutjF2besPNbIZnZ6MKUxi/uTA22t2ymmA4WFjZFpjiAMO0xuuJPqK2nvDVfQ== + +"@babel/helpers@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.7.tgz#091b52cb697a171fe0136ab62e54e407211f09c2" + integrity sha512-Sv6pASx7Esm38KQpF/U/OXLwPPrdGHNKoeblRxgZRLXnAtnkEe4ptJPDtAZM7fBLadbc1Q07kQpSiGQ0Jg6tRA== + dependencies: + "@babel/template" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/highlight@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.25.7.tgz#20383b5f442aa606e7b5e3043b0b1aafe9f37de5" + integrity sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw== + dependencies: + "@babel/helper-validator-identifier" "^7.25.7" chalk "^2.4.2" js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f" - integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.7.tgz#99b927720f4ddbfeb8cd195a363ed4532f87c590" + integrity sha512-aZn7ETtQsjjGG5HruveUK06cU3Hljuhd9Iojm4M8WWv3wLE6OkE5PWbDUkItmMgegmccaITudyuW5RPYrYlgWw== dependencies: - "@babel/types" "^7.25.6" + "@babel/types" "^7.25.7" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -165,11 +165,11 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-import-attributes@^7.24.7": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.6.tgz#6d4c78f042db0e82fd6436cd65fec5dc78ad2bde" - integrity sha512-sXaDXaJN9SNLymBdlWFA+bjzBhFD617ZaFiY13dGt7TVslVvVgA6fkZOP7Ki3IGElC45lwHdOTrCtKZGVAWeLQ== + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.7.tgz#d78dd0499d30df19a598e63ab895e21b909bc43f" + integrity sha512-AqVo+dguCgmpi/3mYBdu9lkngOBlQ2w2vnNpa6gfiCxQZLzV4ZbhsXitJ2Yblkoe1VQwtHSaNmIaGll/26YWRw== dependencies: - "@babel/helper-plugin-utils" "^7.24.8" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-import-meta@^7.10.4": version "7.10.4" @@ -186,11 +186,11 @@ "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-jsx@^7.7.2": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz#39a1fa4a7e3d3d7f34e2acc6be585b718d30e02d" - integrity sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ== + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.7.tgz#5352d398d11ea5e7ef330c854dea1dae0bf18165" + integrity sha512-ruZOnKO+ajVL/MVx+PwNBPOkrnXTXoWMtte1MBpegfCArhqOe3Bj52avVj1huLLxNKYKXYaSxZ2F+woK1ekXfw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-logical-assignment-operators@^7.10.4": version "7.10.4" @@ -249,41 +249,41 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.7.2": - version "7.25.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz#04db9ce5a9043d9c635e75ae7969a2cd50ca97ff" - integrity sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg== - dependencies: - "@babel/helper-plugin-utils" "^7.24.8" - -"@babel/template@^7.25.0", "@babel/template@^7.3.3": - version "7.25.0" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.0.tgz#e733dc3134b4fede528c15bc95e89cb98c52592a" - integrity sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q== - dependencies: - "@babel/code-frame" "^7.24.7" - "@babel/parser" "^7.25.0" - "@babel/types" "^7.25.0" - -"@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.6.tgz#04fad980e444f182ecf1520504941940a90fea41" - integrity sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ== - dependencies: - "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.25.6" - "@babel/parser" "^7.25.6" - "@babel/template" "^7.25.0" - "@babel/types" "^7.25.6" + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.7.tgz#bfc05b0cc31ebd8af09964650cee723bb228108b" + integrity sha512-rR+5FDjpCHqqZN2bzZm18bVYGaejGq5ZkpVCJLXor/+zlSrSoc4KWcHI0URVWjl/68Dyr1uwZUz/1njycEAv9g== + dependencies: + "@babel/helper-plugin-utils" "^7.25.7" + +"@babel/template@^7.25.7", "@babel/template@^7.3.3": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.7.tgz#27f69ce382855d915b14ab0fe5fb4cbf88fa0769" + integrity sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA== + dependencies: + "@babel/code-frame" "^7.25.7" + "@babel/parser" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/traverse@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.7.tgz#83e367619be1cab8e4f2892ef30ba04c26a40fa8" + integrity sha512-jatJPT1Zjqvh/1FyJs6qAHL+Dzb7sTb+xr7Q+gM1b+1oBsMsQQ4FkVKb6dFlJvLlVssqkRzV05Jzervt9yhnzg== + dependencies: + "@babel/code-frame" "^7.25.7" + "@babel/generator" "^7.25.7" + "@babel/parser" "^7.25.7" + "@babel/template" "^7.25.7" + "@babel/types" "^7.25.7" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.3.3": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6" - integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.7", "@babel/types@^7.3.3": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.7.tgz#1b7725c1d3a59f328cb700ce704c46371e6eef9b" + integrity sha512-vwIVdXG+j+FOpkwqHRcBgHLYNL7XMkufrlaFvL9o6Ai9sJn9+PdyIL5qa0XzTZw084c+u9LOls53eoZWP/W5WQ== dependencies: - "@babel/helper-string-parser" "^7.24.8" - "@babel/helper-validator-identifier" "^7.24.7" + "@babel/helper-string-parser" "^7.25.7" + "@babel/helper-validator-identifier" "^7.25.7" to-fast-properties "^2.0.0" "@bcoe/v8-coverage@^0.2.3": @@ -640,9 +640,9 @@ form-data "^4.0.0" "@types/node@*": - version "22.5.4" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.4.tgz#83f7d1f65bc2ed223bdbf57c7884f1d5a4fa84e8" - integrity sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg== + version "22.7.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.5.tgz#cfde981727a7ab3611a481510b473ae54442b92b" + integrity sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ== dependencies: undici-types "~6.19.2" @@ -849,13 +849,13 @@ braces@^3.0.3: dependencies: fill-range "^7.1.1" -browserslist@^4.23.1: - version "4.23.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.3.tgz#debb029d3c93ebc97ffbc8d9cbb03403e227c800" - integrity sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA== +browserslist@^4.24.0: + version "4.24.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.0.tgz#a1325fe4bc80b64fda169629fc01b3d6cecd38d4" + integrity sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A== dependencies: - caniuse-lite "^1.0.30001646" - electron-to-chromium "^1.5.4" + caniuse-lite "^1.0.30001663" + electron-to-chromium "^1.5.28" node-releases "^2.0.18" update-browserslist-db "^1.1.0" @@ -904,10 +904,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001646: - version "1.0.30001660" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz#31218de3463fabb44d0b7607b652e56edf2e2355" - integrity sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg== +caniuse-lite@^1.0.30001663: + version "1.0.30001667" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001667.tgz#99fc5ea0d9c6e96897a104a8352604378377f949" + integrity sha512-7LTwJjcRkzKFmtqGsibMeuXmvFDfZq/nzIjnmgCGzKKRVzjD72selLDK1oPF/Oxzmt4fNcPvTDvGqSDG4tCALw== chalk@^2.4.2: version "2.4.2" @@ -1102,10 +1102,10 @@ domexception@^4.0.0: dependencies: webidl-conversions "^7.0.0" -electron-to-chromium@^1.5.4: - version "1.5.22" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.22.tgz#5ae58990a35391bad7605742e52855a0f281ef82" - integrity sha512-tKYm5YHPU1djz0O+CGJ+oJIvimtsCcwR2Z9w7Skh08lUdyzXY5djods3q+z2JkWdb7tCcmM//eVavSRAiaPRNg== +electron-to-chromium@^1.5.28: + version "1.5.33" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.33.tgz#8f64698661240e70fdbc4b032e6085e391f05e09" + integrity sha512-+cYTcFB1QqD4j4LegwLfpCNxifb6dDFUAwk6RsLusCwIaZI6or2f+q8rs5tTB2YC53HhOlIbEaqHMAAC8IOIwA== emittery@^0.13.1: version "0.13.1" @@ -1141,7 +1141,7 @@ es-errors@^1.3.0: resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== -escalade@^3.1.1, escalade@^3.1.2: +escalade@^3.1.1, escalade@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== @@ -1947,10 +1947,10 @@ jsdom@^20.0.0: ws "^8.11.0" xml-name-validator "^4.0.0" -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" - integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== +jsesc@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e" + integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== json-parse-even-better-errors@^2.3.0: version "2.3.1" @@ -2092,9 +2092,9 @@ npm-run-path@^4.0.1: path-key "^3.0.0" nwsapi@^2.2.2: - version "2.2.12" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.12.tgz#fb6af5c0ec35b27b4581eb3bbad34ec9e5c696f8" - integrity sha512-qXDmcVlZV4XRtKFzddidpfVP4oMSGhga+xdMc25mv8kaLUHtgzCDhUxkrN8exkGdTlLNaXj7CV3GtON7zuGZ+w== + version "2.2.13" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.13.tgz#e56b4e98960e7a040e5474536587e599c4ff4655" + integrity sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ== object-inspect@^1.13.1: version "1.13.2" @@ -2178,7 +2178,7 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -picocolors@^1.0.0, picocolors@^1.0.1: +picocolors@^1.0.0, picocolors@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== @@ -2544,12 +2544,12 @@ universalify@^0.2.0: integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== update-browserslist-db@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" - integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== + version "1.1.1" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz#80846fba1d79e82547fb661f8d141e0945755fe5" + integrity sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A== dependencies: - escalade "^3.1.2" - picocolors "^1.0.1" + escalade "^3.2.0" + picocolors "^1.1.0" url-join@4.0.1: version "4.0.1"