diff --git a/README.md b/README.md index 0b1ad88a..a9441d7c 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,10 @@ -# Intercom TypeScript Library (intercom-client) +# Intercom TypeScript Library [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fintercom%2Fintercom-node) [![npm shield](https://img.shields.io/npm/v/intercom-client)](https://www.npmjs.com/package/intercom-client) The Intercom TypeScript library provides convenient access to the Intercom API from TypeScript. -[![npm](https://img.shields.io/npm/v/intercom-client)](https://www.npmjs.com/package/intercom-client) -![Intercom API Version](https://img.shields.io/badge/Intercom%20API%20Version-2.11-blue) -![Typescript Supported](https://img.shields.io/badge/Typescript-Supported-lightgrey) - ## Project Updates The TypeScript SDK has been updated to support latest API version (2.11). @@ -32,9 +28,9 @@ import { IntercomClient } from "intercom-client"; const client = new IntercomClient({ token: "YOUR_TOKEN" }); await client.articles.create({ - title: "How to create an account", - description: "Example article about creating an account.", - body: "Here are the steps to create an account.", + title: "Thanks for everything", + description: "Description of the Article", + body: "Body of the Article", author_id: 1295, state: "published", }); @@ -72,6 +68,26 @@ try { } ``` +## Pagination + +List endpoints are paginated. The SDK provides an iterator so that you can simply loop over the items: + +```typescript +import { IntercomClient } from "intercom-client"; + +const client = new IntercomClient({ token: "YOUR_TOKEN" }); +const response = await client.articles.list(); +for await (const item of response) { + console.log(item); +} + +// Or you can manually iterate page-by-page +const page = await client.articles.list(); +while (page.hasNextPage()) { + page = page.getNextPage(); +} +``` + ## Request Options This client library also supports passing in [`request` options](https://github.com/axios/axios#request-config): @@ -94,26 +110,6 @@ client.useRequestOpts({ }); ``` -## Pagination - -List endpoints are paginated. The SDK provides an iterator so that you can simply loop over the items: - -```typescript -import { IntercomClient } from "intercom-client"; - -const client = new IntercomClient({ token: "YOUR_TOKEN" }); -const response = await client.articles.list(); -for await (const item of response) { - console.log(item); -} - -// Or you can manually iterate page-by-page -const page = await client.articles.list(); -while (page.hasNextPage()) { - page = page.getNextPage(); -} -``` - ## Advanced ### Additional Headers diff --git a/package.json b/package.json index 3692ca63..a5eef981 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "intercom-client", - "version": "6.0.0", + "version": "v6.1.0b0", "private": false, "repository": "https://github.com/intercom/intercom-node", "main": "./index.js", @@ -39,5 +39,13 @@ "fs": false, "os": false, "path": false - } + }, + "license": "Apache-2.0", + "description": "Official Node bindings to the Intercom API", + "homepage": "https://github.com/intercom/intercom-node", + "bugs": "https://github.com/intercom/intercom-node/issues", + "keywords": [ + "intercom", + "api" + ] } diff --git a/reference.md b/reference.md index 09ab857e..e07b5d97 100644 --- a/reference.md +++ b/reference.md @@ -973,7 +973,7 @@ Companies will be only visible in Intercom when there is at least one associated Companies are looked up via `company_id` in a `POST` request, if not found via `company_id`, the new company will be created, if found, that company will be updated. -{% admonition type="attention" name="Using `company_id`" %} +{% admonition type="warning" name="Using `company_id`" %} You can set a unique `company_id` value when creating a company. However, it is not possible to update `company_id`. Be sure to set a unique value once upon creation of the company. {% /admonition %} @@ -1109,7 +1109,7 @@ await client.companies.find({ You can update a single company using the Intercom provisioned `id`. -{% admonition type="attention" name="Using `company_id`" %} +{% admonition type="warning" name="Using `company_id`" %} When updating a company it is not possible to update `company_id`. This can only be set once upon creation of the company. {% /admonition %} @@ -2400,7 +2400,6 @@ Most key listed as part of the Contacts Model are searchable, whether writeable | email | String | | email_domain | String | | phone | String | -| formatted_phone | String | | external_id | String | | created_at | Date (UNIX Timestamp) | | signed_up_at | Date (UNIX Timestamp) | @@ -2438,7 +2437,7 @@ Most key listed as part of the Contacts Model are searchable, whether writeable ### Accepted Operators -{% admonition type="attention" name="Searching based on `created_at`" %} +{% admonition type="warning" name="Searching based on `created_at`" %} You cannot use the `<=` or `>=` operators to search by `created_at`. {% /admonition %} @@ -4300,11 +4299,9 @@ For managing conversations you can: await client.conversations.manage({ conversation_id: "123", body: { - message_type: "assignment", + message_type: "close", type: "admin", admin_id: "12345", - assignee_id: "4324241", - body: "Goodbye :)", }, }); ``` @@ -4353,8 +4350,11 @@ await client.conversations.manage({
+{% admonition type="danger" name="Deprecation of Run Assignment Rules" %} +Run assignment rules is now deprecated in version 2.12 and future versions and will be permanently removed on December 31, 2026. After this date, any requests made to this endpoint will fail. +{% /admonition %} You can let a conversation be automatically assigned following assignment rules. -{% admonition type="attention" name="When using workflows" %} +{% admonition type="warning" name="When using workflows" %} It is not possible to use this endpoint with Workflows. {% /admonition %} @@ -4423,7 +4423,7 @@ await client.conversations.runAssignmentRules({ You can add participants who are contacts to a conversation, on behalf of either another contact or an admin. -{% admonition type="attention" name="Contacts without an email" %} +{% admonition type="warning" name="Contacts without an email" %} If you add a contact via the email parameter and there is no user/lead found on that workspace with he given email, then we will create a new contact with `role` set to `lead`. {% /admonition %} @@ -4496,7 +4496,7 @@ await client.conversations.attachContactAsAdmin({ You can add participants who are contacts to a conversation, on behalf of either another contact or an admin. -{% admonition type="attention" name="Contacts without an email" %} +{% admonition type="warning" name="Contacts without an email" %} If you add a contact via the email parameter and there is no user/lead found on that workspace with he given email, then we will create a new contact with `role` set to `lead`. {% /admonition %} @@ -5477,9 +5477,9 @@ This will return the Message model that has been created. ```typescript await client.messages.create({ - message_type: "inapp", + message_type: "email", subject: "Thanks for everything", - body: "heyy", + body: "Hello there", template: "plain", from: { type: "admin", @@ -5489,8 +5489,6 @@ await client.messages.create({ type: "user", id: "536e564f316c83104c000020", }, - created_at: 1590000000, - create_conversation_without_contact_reply: true, }); ``` diff --git a/src/api/resources/admins/client/Client.ts b/src/api/resources/admins/client/Client.ts index 05d639d7..97bae9ec 100644 --- a/src/api/resources/admins/client/Client.ts +++ b/src/api/resources/admins/client/Client.ts @@ -97,8 +97,8 @@ export class Admins { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -106,7 +106,7 @@ export class Admins { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -167,8 +167,8 @@ export class Admins { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -177,7 +177,7 @@ export class Admins { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -249,8 +249,8 @@ export class Admins { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -259,7 +259,7 @@ export class Admins { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -315,8 +315,8 @@ export class Admins { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -324,7 +324,7 @@ export class Admins { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -388,8 +388,8 @@ export class Admins { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -397,7 +397,7 @@ export class Admins { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/admins/types/Admin.ts b/src/api/resources/admins/types/Admin.ts index 0551b7d5..33266da0 100644 --- a/src/api/resources/admins/types/Admin.ts +++ b/src/api/resources/admins/types/Admin.ts @@ -26,7 +26,17 @@ export interface Admin { has_inbox_seat: boolean; /** This object represents the avatar associated with the admin. */ team_ids: number[]; - /** Image for the associated team or teammate */ - avatar?: string; + /** The avatar object associated with the admin */ + avatar?: Admin.Avatar; team_priority_level?: Intercom.TeamPriorityLevel; } + +export namespace Admin { + /** + * The avatar object associated with the admin + */ + export interface Avatar { + /** URL of the admin's avatar image */ + image_url: string; + } +} diff --git a/src/api/resources/articles/client/Client.ts b/src/api/resources/articles/client/Client.ts index c902cb40..0889be7c 100644 --- a/src/api/resources/articles/client/Client.ts +++ b/src/api/resources/articles/client/Client.ts @@ -112,8 +112,8 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -122,7 +122,7 @@ export class Articles { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -219,8 +219,8 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -229,7 +229,7 @@ export class Articles { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -295,8 +295,8 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -304,7 +304,7 @@ export class Articles { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -372,8 +372,8 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -382,7 +382,7 @@ export class Articles { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -448,8 +448,8 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -457,7 +457,7 @@ export class Articles { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -540,8 +540,8 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -550,7 +550,7 @@ export class Articles { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/companies/client/Client.ts b/src/api/resources/companies/client/Client.ts index e16b780d..41228706 100644 --- a/src/api/resources/companies/client/Client.ts +++ b/src/api/resources/companies/client/Client.ts @@ -140,8 +140,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -150,7 +150,7 @@ export class Companies { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -194,7 +194,7 @@ export class Companies { * * Companies are looked up via `company_id` in a `POST` request, if not found via `company_id`, the new company will be created, if found, that company will be updated. * - * {% admonition type="attention" name="Using `company_id`" %} + * {% admonition type="warning" name="Using `company_id`" %} * You can set a unique `company_id` value when creating a company. However, it is not possible to update `company_id`. Be sure to set a unique value once upon creation of the company. * {% /admonition %} * @@ -228,8 +228,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -238,7 +238,7 @@ export class Companies { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -304,8 +304,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -313,7 +313,7 @@ export class Companies { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -353,7 +353,7 @@ export class Companies { /** * You can update a single company using the Intercom provisioned `id`. * - * {% admonition type="attention" name="Using `company_id`" %} + * {% admonition type="warning" name="Using `company_id`" %} * When updating a company it is not possible to update `company_id`. This can only be set once upon creation of the company. * {% /admonition %} * @@ -383,8 +383,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -392,7 +392,7 @@ export class Companies { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -458,8 +458,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -467,7 +467,7 @@ export class Companies { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -542,8 +542,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -552,7 +552,7 @@ export class Companies { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -620,8 +620,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -629,7 +629,7 @@ export class Companies { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -716,8 +716,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -726,7 +726,7 @@ export class Companies { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -816,8 +816,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -826,7 +826,7 @@ export class Companies { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -911,8 +911,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -921,7 +921,7 @@ export class Companies { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -992,8 +992,8 @@ export class Companies { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1001,7 +1001,7 @@ export class Companies { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/contacts/client/Client.ts b/src/api/resources/contacts/client/Client.ts index 61b69bf1..4083569c 100644 --- a/src/api/resources/contacts/client/Client.ts +++ b/src/api/resources/contacts/client/Client.ts @@ -113,8 +113,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -123,7 +123,7 @@ export class Contacts { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -200,8 +200,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -209,7 +209,7 @@ export class Contacts { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -283,8 +283,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -292,7 +292,7 @@ export class Contacts { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -375,8 +375,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -385,7 +385,7 @@ export class Contacts { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -454,8 +454,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -463,7 +463,7 @@ export class Contacts { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -531,8 +531,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -540,7 +540,7 @@ export class Contacts { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -605,8 +605,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -614,7 +614,7 @@ export class Contacts { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -679,8 +679,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -689,7 +689,7 @@ export class Contacts { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -752,8 +752,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -761,7 +761,7 @@ export class Contacts { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -824,8 +824,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -834,7 +834,7 @@ export class Contacts { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -914,7 +914,6 @@ export class Contacts { * | email | String | * | email_domain | String | * | phone | String | - * | formatted_phone | String | * | external_id | String | * | created_at | Date (UNIX Timestamp) | * | signed_up_at | Date (UNIX Timestamp) | @@ -952,7 +951,7 @@ export class Contacts { * * ### Accepted Operators * - * {% admonition type="attention" name="Searching based on `created_at`" %} + * {% admonition type="warning" name="Searching based on `created_at`" %} * You cannot use the `<=` or `>=` operators to search by `created_at`. * {% /admonition %} * @@ -1007,8 +1006,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1017,7 +1016,7 @@ export class Contacts { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -1103,8 +1102,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1113,7 +1112,7 @@ export class Contacts { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -1182,8 +1181,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1192,7 +1191,7 @@ export class Contacts { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -1253,8 +1252,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1262,7 +1261,7 @@ export class Contacts { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -1320,8 +1319,8 @@ export class Contacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1329,7 +1328,7 @@ export class Contacts { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/contacts/types/Contact.ts b/src/api/resources/contacts/types/Contact.ts index c4b7c47a..7bfc681b 100644 --- a/src/api/resources/contacts/types/Contact.ts +++ b/src/api/resources/contacts/types/Contact.ts @@ -19,7 +19,7 @@ export interface Contact { /** The role of the contact. */ role: string; /** The contact's email. */ - email: string; + email?: string; /** The contact's email domain. */ email_domain?: string; /** The contacts phone. */ diff --git a/src/api/resources/conversations/client/Client.ts b/src/api/resources/conversations/client/Client.ts index a6bffd8a..6dbb141f 100644 --- a/src/api/resources/conversations/client/Client.ts +++ b/src/api/resources/conversations/client/Client.ts @@ -117,8 +117,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -127,7 +127,7 @@ export class Conversations { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -222,8 +222,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -232,7 +232,7 @@ export class Conversations { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -316,8 +316,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -326,7 +326,7 @@ export class Conversations { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -414,8 +414,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -425,7 +425,7 @@ export class Conversations { queryParameters: _queryParams, requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -601,8 +601,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -611,7 +611,7 @@ export class Conversations { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -719,8 +719,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -729,7 +729,7 @@ export class Conversations { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -788,11 +788,28 @@ export class Conversations { * await client.conversations.manage({ * conversation_id: "123", * body: { - * message_type: "assignment", + * message_type: "close", * type: "admin", - * admin_id: "12345", - * assignee_id: "4324241", - * body: "Goodbye :)" + * admin_id: "12345" + * } + * }) + * + * @example + * await client.conversations.manage({ + * conversation_id: "123", + * body: { + * message_type: "snoozed", + * admin_id: "5017691", + * snoozed_until: 1673609604 + * } + * }) + * + * @example + * await client.conversations.manage({ + * conversation_id: "123", + * body: { + * message_type: "open", + * admin_id: "5017690" * } * }) * @@ -803,8 +820,7 @@ export class Conversations { * message_type: "assignment", * type: "admin", * admin_id: "12345", - * assignee_id: "4324241", - * body: "Let me pass you over to one of my colleagues." + * assignee_id: "4324241" * } * }) */ @@ -823,8 +839,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -833,7 +849,7 @@ export class Conversations { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -875,8 +891,11 @@ export class Conversations { } /** + * {% admonition type="danger" name="Deprecation of Run Assignment Rules" %} + * Run assignment rules is now deprecated in version 2.12 and future versions and will be permanently removed on December 31, 2026. After this date, any requests made to this endpoint will fail. + * {% /admonition %} * You can let a conversation be automatically assigned following assignment rules. - * {% admonition type="attention" name="When using workflows" %} + * {% admonition type="warning" name="When using workflows" %} * It is not possible to use this endpoint with Workflows. * {% /admonition %} * @@ -907,8 +926,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -916,7 +935,7 @@ export class Conversations { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -960,7 +979,7 @@ export class Conversations { /** * You can add participants who are contacts to a conversation, on behalf of either another contact or an admin. * - * {% admonition type="attention" name="Contacts without an email" %} + * {% admonition type="warning" name="Contacts without an email" %} * If you add a contact via the email parameter and there is no user/lead found on that workspace with he given email, then we will create a new contact with `role` set to `lead`. * {% /admonition %} * @@ -1005,8 +1024,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1015,7 +1034,7 @@ export class Conversations { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -1059,7 +1078,7 @@ export class Conversations { /** * You can add participants who are contacts to a conversation, on behalf of either another contact or an admin. * - * {% admonition type="attention" name="Contacts without an email" %} + * {% admonition type="warning" name="Contacts without an email" %} * If you add a contact via the email parameter and there is no user/lead found on that workspace with he given email, then we will create a new contact with `role` set to `lead`. * {% /admonition %} * @@ -1094,8 +1113,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1104,7 +1123,7 @@ export class Conversations { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -1189,8 +1208,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1199,7 +1218,7 @@ export class Conversations { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -1271,8 +1290,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1281,7 +1300,7 @@ export class Conversations { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/conversations/client/requests/CreateConversationRequest.ts b/src/api/resources/conversations/client/requests/CreateConversationRequest.ts index 24e5403f..4c82a814 100644 --- a/src/api/resources/conversations/client/requests/CreateConversationRequest.ts +++ b/src/api/resources/conversations/client/requests/CreateConversationRequest.ts @@ -25,6 +25,8 @@ export interface CreateConversationRequest { from: CreateConversationRequest.From; /** The content of the message. HTML is not supported. */ body: string; + /** The time the conversation was created as a UTC Unix timestamp. If not provided, the current time will be used. This field is only recommneded for migrating past conversations from another source into Intercom. */ + created_at?: number; } export namespace CreateConversationRequest { diff --git a/src/api/resources/conversations/client/requests/ManageConversationPartsRequest.ts b/src/api/resources/conversations/client/requests/ManageConversationPartsRequest.ts index 1ad1d15b..48c245e7 100644 --- a/src/api/resources/conversations/client/requests/ManageConversationPartsRequest.ts +++ b/src/api/resources/conversations/client/requests/ManageConversationPartsRequest.ts @@ -9,11 +9,9 @@ import * as Intercom from "../../../../index"; * { * conversation_id: "123", * body: { - * message_type: "assignment", + * message_type: "close", * type: "admin", - * admin_id: "12345", - * assignee_id: "4324241", - * body: "Goodbye :)" + * admin_id: "12345" * } * } * @@ -21,11 +19,9 @@ import * as Intercom from "../../../../index"; * { * conversation_id: "123", * body: { - * message_type: "assignment", - * type: "admin", - * admin_id: "12345", - * assignee_id: "4324241", - * body: "Let me pass you over to one of my colleagues." + * message_type: "snoozed", + * admin_id: "5017691", + * snoozed_until: 1673609604 * } * } * @@ -33,11 +29,8 @@ import * as Intercom from "../../../../index"; * { * conversation_id: "123", * body: { - * message_type: "assignment", - * type: "admin", - * admin_id: "12345", - * assignee_id: "4324241", - * body: "Let me pass you over to one of my colleagues." + * message_type: "open", + * admin_id: "5017690" * } * } * @@ -48,8 +41,7 @@ import * as Intercom from "../../../../index"; * message_type: "assignment", * type: "admin", * admin_id: "12345", - * assignee_id: "4324241", - * body: "Let me pass you over to one of my colleagues." + * assignee_id: "4324241" * } * } * @@ -57,11 +49,9 @@ import * as Intercom from "../../../../index"; * { * conversation_id: "123", * body: { - * message_type: "assignment", + * message_type: "close", * type: "admin", - * admin_id: "12345", - * assignee_id: "4324241", - * body: "Goodbye :)" + * admin_id: "12345" * } * } */ diff --git a/src/api/resources/customObjectInstances/index.ts b/src/api/resources/customObjectInstances/index.ts deleted file mode 100644 index eea524d6..00000000 --- a/src/api/resources/customObjectInstances/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/api/resources/customObjectInstances/types/CustomObjectInstance.ts b/src/api/resources/customObjectInstances/types/CustomObjectInstance.ts deleted file mode 100644 index 4f43cee0..00000000 --- a/src/api/resources/customObjectInstances/types/CustomObjectInstance.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * A Custom Object Instance represents an instance of a custom object type. This allows you to create and set custom attributes to store data about your customers that is not already captured by Intercom. The parent object includes recommended default attributes and you can add your own custom attributes. - */ -export interface CustomObjectInstance { - /** The Intercom defined id representing the custom object instance. */ - id: string; - /** The id you have defined for the custom object instance. */ - external_id?: string; - /** The identifier of the custom object type that defines the structure of the custom object instance. */ - type: string; - /** The custom attributes you have set on the custom object instance. */ - custom_attributes?: Record; -} diff --git a/src/api/resources/customObjectInstances/types/index.ts b/src/api/resources/customObjectInstances/types/index.ts deleted file mode 100644 index d5c782f8..00000000 --- a/src/api/resources/customObjectInstances/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./CustomObjectInstance"; diff --git a/src/api/resources/dataAttributes/client/Client.ts b/src/api/resources/dataAttributes/client/Client.ts index d3ca59dc..c993f4a4 100644 --- a/src/api/resources/dataAttributes/client/Client.ts +++ b/src/api/resources/dataAttributes/client/Client.ts @@ -108,8 +108,8 @@ export class DataAttributes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -118,7 +118,7 @@ export class DataAttributes { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -220,8 +220,8 @@ export class DataAttributes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -230,7 +230,7 @@ export class DataAttributes { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -329,8 +329,8 @@ export class DataAttributes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -339,7 +339,7 @@ export class DataAttributes { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/dataExport/client/Client.ts b/src/api/resources/dataExport/client/Client.ts index 47032822..f48a8280 100644 --- a/src/api/resources/dataExport/client/Client.ts +++ b/src/api/resources/dataExport/client/Client.ts @@ -113,8 +113,8 @@ export class DataExport { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -123,7 +123,7 @@ export class DataExport { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -183,8 +183,8 @@ export class DataExport { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -192,7 +192,7 @@ export class DataExport { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -250,8 +250,8 @@ export class DataExport { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -259,7 +259,7 @@ export class DataExport { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -323,8 +323,8 @@ export class DataExport { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -332,7 +332,7 @@ export class DataExport { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts index 6862abba..19721b72 100644 --- a/src/api/resources/events/client/Client.ts +++ b/src/api/resources/events/client/Client.ts @@ -140,8 +140,8 @@ export class Events { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -150,7 +150,7 @@ export class Events { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -255,8 +255,8 @@ export class Events { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -265,7 +265,7 @@ export class Events { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -326,8 +326,8 @@ export class Events { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -336,7 +336,7 @@ export class Events { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/helpCenters/client/Client.ts b/src/api/resources/helpCenters/client/Client.ts index dc51ba65..0345854c 100644 --- a/src/api/resources/helpCenters/client/Client.ts +++ b/src/api/resources/helpCenters/client/Client.ts @@ -106,8 +106,8 @@ export class HelpCenters { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -115,7 +115,7 @@ export class HelpCenters { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -189,8 +189,8 @@ export class HelpCenters { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -199,7 +199,7 @@ export class HelpCenters { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/helpCenters/resources/collections/client/Client.ts b/src/api/resources/helpCenters/resources/collections/client/Client.ts index cd6fe1d3..6eeeb417 100644 --- a/src/api/resources/helpCenters/resources/collections/client/Client.ts +++ b/src/api/resources/helpCenters/resources/collections/client/Client.ts @@ -107,8 +107,8 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -117,7 +117,7 @@ export class Collections { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -197,8 +197,8 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -207,7 +207,7 @@ export class Collections { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -273,8 +273,8 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -282,7 +282,7 @@ export class Collections { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -351,8 +351,8 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -361,7 +361,7 @@ export class Collections { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -429,8 +429,8 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -438,7 +438,7 @@ export class Collections { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 2f3cb340..b97ae198 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -32,8 +32,6 @@ export * as helpCenter from "./helpCenter"; export * from "./helpCenter/types"; export * as aiContentSource from "./aiContentSource"; export * from "./aiContentSource/types"; -export * as customObjectInstances from "./customObjectInstances"; -export * from "./customObjectInstances/types"; export * as dataEvents from "./dataEvents"; export * from "./dataEvents/types"; export * as news from "./news"; diff --git a/src/api/resources/messages/client/Client.ts b/src/api/resources/messages/client/Client.ts index c69a0fad..0683dd1a 100644 --- a/src/api/resources/messages/client/Client.ts +++ b/src/api/resources/messages/client/Client.ts @@ -96,9 +96,9 @@ export class Messages { * * @example * await client.messages.create({ - * message_type: "inapp", + * message_type: "email", * subject: "Thanks for everything", - * body: "heyy", + * body: "Hello there", * template: "plain", * from: { * type: "admin", @@ -107,27 +107,7 @@ export class Messages { * to: { * type: "user", * id: "536e564f316c83104c000020" - * }, - * created_at: 1590000000, - * create_conversation_without_contact_reply: true - * }) - * - * @example - * await client.messages.create({ - * message_type: "inapp", - * subject: "Thanks for everything", - * body: "heyy", - * template: "plain", - * from: { - * type: "admin", - * id: 394051 - * }, - * to: { - * type: "user", - * id: "667d616c8a68186f43bafe52" - * }, - * created_at: 1590000000, - * create_conversation_without_contact_reply: true + * } * }) * * @example @@ -198,8 +178,8 @@ export class Messages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -208,7 +188,7 @@ export class Messages { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/news/resources/feeds/client/Client.ts b/src/api/resources/news/resources/feeds/client/Client.ts index 277de3c0..11588503 100644 --- a/src/api/resources/news/resources/feeds/client/Client.ts +++ b/src/api/resources/news/resources/feeds/client/Client.ts @@ -98,8 +98,8 @@ export class Feeds { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -107,7 +107,7 @@ export class Feeds { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -165,8 +165,8 @@ export class Feeds { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -174,7 +174,7 @@ export class Feeds { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -237,8 +237,8 @@ export class Feeds { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -246,7 +246,7 @@ export class Feeds { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/news/resources/items/client/Client.ts b/src/api/resources/news/resources/items/client/Client.ts index 472e49fb..eacc879f 100644 --- a/src/api/resources/news/resources/items/client/Client.ts +++ b/src/api/resources/news/resources/items/client/Client.ts @@ -91,8 +91,8 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -100,7 +100,7 @@ export class Items { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -172,8 +172,8 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -182,7 +182,7 @@ export class Items { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -246,8 +246,8 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -255,7 +255,7 @@ export class Items { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -338,8 +338,8 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -348,7 +348,7 @@ export class Items { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -416,8 +416,8 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -425,7 +425,7 @@ export class Items { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/notes/client/Client.ts b/src/api/resources/notes/client/Client.ts index f01df098..c18f9ece 100644 --- a/src/api/resources/notes/client/Client.ts +++ b/src/api/resources/notes/client/Client.ts @@ -110,8 +110,8 @@ export class Notes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -120,7 +120,7 @@ export class Notes { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -196,8 +196,8 @@ export class Notes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -206,7 +206,7 @@ export class Notes { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -272,8 +272,8 @@ export class Notes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -281,7 +281,7 @@ export class Notes { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/phoneCallRedirects/client/Client.ts b/src/api/resources/phoneCallRedirects/client/Client.ts index 7e3d3829..4bc24182 100644 --- a/src/api/resources/phoneCallRedirects/client/Client.ts +++ b/src/api/resources/phoneCallRedirects/client/Client.ts @@ -115,8 +115,8 @@ export class PhoneCallRedirects { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -125,7 +125,7 @@ export class PhoneCallRedirects { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/segments/client/Client.ts b/src/api/resources/segments/client/Client.ts index 6af0a5bd..c940ccca 100644 --- a/src/api/resources/segments/client/Client.ts +++ b/src/api/resources/segments/client/Client.ts @@ -104,8 +104,8 @@ export class Segments { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -114,7 +114,7 @@ export class Segments { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -178,8 +178,8 @@ export class Segments { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -187,7 +187,7 @@ export class Segments { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/subscriptionTypes/client/Client.ts b/src/api/resources/subscriptionTypes/client/Client.ts index c2914911..9556c87d 100644 --- a/src/api/resources/subscriptionTypes/client/Client.ts +++ b/src/api/resources/subscriptionTypes/client/Client.ts @@ -94,8 +94,8 @@ export class SubscriptionTypes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -103,7 +103,7 @@ export class SubscriptionTypes { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/tags/client/Client.ts b/src/api/resources/tags/client/Client.ts index 7e4729c9..cf382c37 100644 --- a/src/api/resources/tags/client/Client.ts +++ b/src/api/resources/tags/client/Client.ts @@ -109,8 +109,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -119,7 +119,7 @@ export class Tags { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -188,8 +188,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -197,7 +197,7 @@ export class Tags { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -267,8 +267,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -277,7 +277,7 @@ export class Tags { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -347,8 +347,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -357,7 +357,7 @@ export class Tags { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -418,8 +418,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -427,7 +427,7 @@ export class Tags { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -524,8 +524,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -534,7 +534,7 @@ export class Tags { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -600,8 +600,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -609,7 +609,7 @@ export class Tags { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -673,8 +673,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -682,7 +682,7 @@ export class Tags { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -752,8 +752,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -762,7 +762,7 @@ export class Tags { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -830,8 +830,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -840,7 +840,7 @@ export class Tags { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/teams/client/Client.ts b/src/api/resources/teams/client/Client.ts index 5cffe77d..7989ff2d 100644 --- a/src/api/resources/teams/client/Client.ts +++ b/src/api/resources/teams/client/Client.ts @@ -94,8 +94,8 @@ export class Teams { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -103,7 +103,7 @@ export class Teams { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -167,8 +167,8 @@ export class Teams { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -176,7 +176,7 @@ export class Teams { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/ticketTypes/client/Client.ts b/src/api/resources/ticketTypes/client/Client.ts index 4d37e791..fdc7c65d 100644 --- a/src/api/resources/ticketTypes/client/Client.ts +++ b/src/api/resources/ticketTypes/client/Client.ts @@ -101,8 +101,8 @@ export class TicketTypes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -110,7 +110,7 @@ export class TicketTypes { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -179,8 +179,8 @@ export class TicketTypes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -189,7 +189,7 @@ export class TicketTypes { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -252,8 +252,8 @@ export class TicketTypes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -261,7 +261,7 @@ export class TicketTypes { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -332,8 +332,8 @@ export class TicketTypes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -342,7 +342,7 @@ export class TicketTypes { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/ticketTypes/resources/attributes/client/Client.ts b/src/api/resources/ticketTypes/resources/attributes/client/Client.ts index f2a677b5..8063ea19 100644 --- a/src/api/resources/ticketTypes/resources/attributes/client/Client.ts +++ b/src/api/resources/ticketTypes/resources/attributes/client/Client.ts @@ -102,8 +102,8 @@ export class Attributes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -112,7 +112,7 @@ export class Attributes { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -179,8 +179,8 @@ export class Attributes { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -189,7 +189,7 @@ export class Attributes { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/tickets/client/Client.ts b/src/api/resources/tickets/client/Client.ts index 1f86b3b8..f8b1da05 100644 --- a/src/api/resources/tickets/client/Client.ts +++ b/src/api/resources/tickets/client/Client.ts @@ -148,8 +148,8 @@ export class Tickets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -158,7 +158,7 @@ export class Tickets { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -231,8 +231,8 @@ export class Tickets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -241,7 +241,7 @@ export class Tickets { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -304,8 +304,8 @@ export class Tickets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -313,7 +313,7 @@ export class Tickets { }, contentType: "application/json", requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -416,8 +416,8 @@ export class Tickets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -426,7 +426,7 @@ export class Tickets { contentType: "application/json", requestType: "json", body: _body, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -560,8 +560,8 @@ export class Tickets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -570,7 +570,7 @@ export class Tickets { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/resources/visitors/client/Client.ts b/src/api/resources/visitors/client/Client.ts index 284b58b3..128c9304 100644 --- a/src/api/resources/visitors/client/Client.ts +++ b/src/api/resources/visitors/client/Client.ts @@ -104,8 +104,8 @@ export class Visitors { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -114,7 +114,7 @@ export class Visitors { contentType: "application/json", queryParameters: _queryParams, requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -190,8 +190,8 @@ export class Visitors { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -200,7 +200,7 @@ export class Visitors { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); @@ -275,8 +275,8 @@ export class Visitors { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.0.0", - "User-Agent": "intercom-client/6.0.0", + "X-Fern-SDK-Version": "v6.1.0b0", + "User-Agent": "intercom-client/v6.1.0b0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -285,7 +285,7 @@ export class Visitors { contentType: "application/json", requestType: "json", body: request, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 20000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); diff --git a/src/api/types/ActionComponent.ts b/src/api/types/ActionComponent.ts new file mode 100644 index 00000000..c97feba7 --- /dev/null +++ b/src/api/types/ActionComponent.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +export type ActionComponent = + | Intercom.ActionComponent.Sheet + | Intercom.ActionComponent.Url + | Intercom.ActionComponent.Submit; + +export namespace ActionComponent { + export interface Sheet extends Intercom.SheetActionComponent { + type: "sheet"; + } + + export interface Url extends Intercom.UrlActionComponent { + type: "url"; + } + + export interface Submit extends Intercom.SubmitActionComponent { + type: "submit"; + } +} diff --git a/src/api/types/ButtonComponent.ts b/src/api/types/ButtonComponent.ts new file mode 100644 index 00000000..fa419ed8 --- /dev/null +++ b/src/api/types/ButtonComponent.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * A button component is used to take an action by clicking a button. This can either: + * - [Trigger a submit request to be sent](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/submit-action) Inbox Messenger + * - [Open a link in a new page](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/url-action) Inbox Messenger + * - [Open a sheet](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/sheets-action) Messenger + */ +export interface ButtonComponent { + /** A unique identifier for the component. */ + id: string; + /** The text that will be rendered inside the button. */ + label: string; + /** This can be a Submit Action, URL Action, or Sheets Action. */ + action: Intercom.ActionComponent; + /** Styles the button. Default is 'primary'. */ + style?: ButtonComponent.Style; + /** Styles the button and prevents the action. Default is false. */ + disabled?: boolean; +} + +export namespace ButtonComponent { + /** + * Styles the button. Default is 'primary'. + */ + export type Style = "primary" | "secondary" | "link"; + export const Style = { + Primary: "primary", + Secondary: "secondary", + Link: "link", + } as const; +} diff --git a/src/api/types/CanvasObject.ts b/src/api/types/CanvasObject.ts new file mode 100644 index 00000000..bb6161d3 --- /dev/null +++ b/src/api/types/CanvasObject.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * You have to respond to the majority of requests with a canvas object. This will tell us what UI to show for your app. + * + * A canvas can either be static (meaning we send you the next request only when an action takes place) or live (meaning we send you the next request when someone views the app). + * + * - A static canvas needs a ContentObject which will contain the components to show. + * - A live canvas needs a `content_url` which we we will make the Live Canvas requests to when the app is viewed. This is only possible for apps viewed or used in the Messenger. + */ +export interface CanvasObject { + /** The content object that will be shown as the UI of the app. Max Size is 64KB. */ + content: Intercom.ContentObject; + /** The URL which we make Live Canvas requests to. You must respond to these with a content object. Max size is 64KB. */ + content_url?: string; + /** Optional Stored Data that you want to be returned in the next sent request. Max Size is 64KB. */ + stored_data?: Record; +} diff --git a/src/api/types/CheckboxComponent.ts b/src/api/types/CheckboxComponent.ts new file mode 100644 index 00000000..ddd79298 --- /dev/null +++ b/src/api/types/CheckboxComponent.ts @@ -0,0 +1,39 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * A checkbox component is used to capture multiple choices from as many options as you want to provide. You can submit the options by: + * + * - Using a ButtonComponent (which will submit all interactive components in the canvas) + * + * When a submit action takes place, the results are given in a hash with the `id` from the checkbox component used as the key and an array containing the `id` of each chosen option as the value. + */ +export interface CheckboxComponent { + /** A unique identifier for the component. */ + id: string; + /** The list of options. Minimum of 1. */ + option: Intercom.CheckboxOption[]; + /** The text shown above the options. */ + label: string; + /** The option's that are selected by default. */ + value?: string[]; + /** Styles the input. Default is `unsaved`. Prevent action with `saved`. */ + save_state?: CheckboxComponent.SaveState; + /** Styles all options and prevents the action. Default is false. Will be overridden if save_state is saved. */ + disabled?: boolean; +} + +export namespace CheckboxComponent { + /** + * Styles the input. Default is `unsaved`. Prevent action with `saved`. + */ + export type SaveState = "unsaved" | "saved" | "failed"; + export const SaveState = { + Unsaved: "unsaved", + Saved: "saved", + Failed: "failed", + } as const; +} diff --git a/src/api/types/CheckboxOption.ts b/src/api/types/CheckboxOption.ts new file mode 100644 index 00000000..d33bb8fe --- /dev/null +++ b/src/api/types/CheckboxOption.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A checkbox option component that can be selected. + */ +export interface CheckboxOption { + /** The type of component you are rendering. */ + type: "option"; + /** A unique identifier for the option. */ + id: string; + /** The text shown next to the checkbox. */ + text: string; + /** Styles the option and prevents the action. Default is false. */ + disabled?: boolean; +} diff --git a/src/api/types/Component.ts b/src/api/types/Component.ts new file mode 100644 index 00000000..d2de298c --- /dev/null +++ b/src/api/types/Component.ts @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +export type Component = + | Intercom.Component.Button + | Intercom.Component.Checkbox + | Intercom.Component.Dropdown + | Intercom.Component.Input + | Intercom.Component.List + | Intercom.Component.SingleSelect + | Intercom.Component.Textarea + | Intercom.Component.DataTable + | Intercom.Component.Divider + | Intercom.Component.Image + | Intercom.Component.Spacer + | Intercom.Component.Text; + +export namespace Component { + export interface Button extends Intercom.ButtonComponent { + type: "button"; + } + + export interface Checkbox extends Intercom.CheckboxComponent { + type: "checkbox"; + } + + export interface Dropdown extends Intercom.DropdownComponent { + type: "dropdown"; + } + + export interface Input extends Intercom.InputComponent { + type: "input"; + } + + export interface List extends Intercom.ListComponent { + type: "list"; + } + + export interface SingleSelect extends Intercom.SingleSelectComponent { + type: "single-select"; + } + + export interface Textarea extends Intercom.TextAreaComponent { + type: "textarea"; + } + + export interface DataTable extends Intercom.DataTableComponent { + type: "data-table"; + } + + export interface Divider extends Intercom.DividerComponent { + type: "divider"; + } + + export interface Image extends Intercom.ImageComponent { + type: "image"; + } + + export interface Spacer extends Intercom.SpacerComponent { + type: "spacer"; + } + + export interface Text extends Intercom.TextComponent { + type: "text"; + } +} diff --git a/src/api/types/ConfigureRequest.ts b/src/api/types/ConfigureRequest.ts new file mode 100644 index 00000000..b565bb2b --- /dev/null +++ b/src/api/types/ConfigureRequest.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * The first request we send will allow you to know the workspace where this is happening, the admin who will be configuring the app, and additional context such as where this will be added once complete. + * + * For subsequent requests whereby an admin has interacted with a component with a submit action, the request payload will contain the same details with `current_canvas`, `input_values` and the `component_id` also present. This allows you to understand what component the request came from, see what the value of any input was, action anything in your codebase, and then respond knowing what canvas was previously shown beforehand. + */ +export type ConfigureRequest = + | { + workspace_id: string; + admin: Intercom.Admin; + context: Intercom.Context; + } + | { + workspace_id: string; + workspace_region: string; + component_id: string; + admin: Intercom.Admin; + context: Intercom.Context; + current_canvas: Intercom.CanvasObject; + input_values: Record; + }; diff --git a/src/api/types/ConfigureResponse.ts b/src/api/types/ConfigureResponse.ts new file mode 100644 index 00000000..08ad2508 --- /dev/null +++ b/src/api/types/ConfigureResponse.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * The response object returned when configuring an app. This will either: + * - A canvas object which will replace the previous canvas that was visible until the teammate interacted with your app + * - A results object which will end the configuration and trigger the initialize request to be sent. There will be a card_creation_options object in the payload showing your key-value pairs from the results object. + */ +export type ConfigureResponse = + | Intercom.ResultsResponse + | { + canvas: Intercom.CanvasObject; + }; diff --git a/src/api/types/ContactCompanies.ts b/src/api/types/ContactCompanies.ts index c452e42e..88980a31 100644 --- a/src/api/types/ContactCompanies.ts +++ b/src/api/types/ContactCompanies.ts @@ -2,10 +2,16 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Intercom from "../index"; + /** * An object containing companies meta data about the companies that a contact has. Up to 10 will be displayed here. Use the url to get more. */ export interface ContactCompanies { + /** The type of object */ + type?: "list"; + /** An array containing Company Objects */ + data?: Intercom.ContactCompany[]; /** Url to get more company resources for this contact */ url: string; /** Int representing the total number of companyies attached to this contact */ diff --git a/src/api/types/ContactCompany.ts b/src/api/types/ContactCompany.ts new file mode 100644 index 00000000..cfe15a56 --- /dev/null +++ b/src/api/types/ContactCompany.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A reference to a company associated with a contact + */ +export interface ContactCompany { + /** The unique identifier for the company */ + id: string; + /** The type of the object */ + type: "company"; + /** URL to get the full company resource */ + url: string; +} diff --git a/src/api/types/ContentObject.ts b/src/api/types/ContentObject.ts new file mode 100644 index 00000000..127b8d88 --- /dev/null +++ b/src/api/types/ContentObject.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * The content object is where you specify the UI of your app. You provide us with a set of `components` in a components array that we then render. + * + * The content object should usually be returned within the [canvas object](https://developers.intercom.com/docs/references/canvas-kit/responseobjects/canvas). If you're responding to a Live Canvas request however, then you should only respond with the content object. + */ +export interface ContentObject { + /** The list of components to be rendered. */ + components: Intercom.Component[]; +} diff --git a/src/api/types/Context.ts b/src/api/types/Context.ts new file mode 100644 index 00000000..c86d4597 --- /dev/null +++ b/src/api/types/Context.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The context object provides additional details on where the app has been added (or is currently being used), what page the app is being used on, and information on the Messenger settings. This is in order for you give a fully customised experience based on the customers use case. + * + * If the `location` is `conversation` then you will also be given a `conversation_id`. If you need to use details about the conversation, then you have to use the `conversation_id` to [make a call to our Conversations API and retrieve the conversation object](https://developers.intercom.com/intercom-api-reference/reference#get-a-single-conversation). + */ +export interface Context { + /** The id of the conversation where the app is added or being used. */ + conversation_id?: number; + /** Where the app is added or the action took place. Can be either 'conversation', 'home', 'message', or 'operator'. */ + location?: Context.Location; + /** The default end-user language of the Messenger. Use to localise Messenger App content. */ + locale?: string; + /** The messengers action colour. Use in Sheets and Icons to make a Messenger App experience feel part of the host Messenger. */ + messenger_action_colour?: string; + /** The messengers background colour. Use in Sheets and Icons to make a Messenger App experience feel part of the host Messenger. */ + messenger_background_colour?: string; + /** The current page URL where the app is being used. */ + referrer?: string; +} + +export namespace Context { + /** + * Where the app is added or the action took place. Can be either 'conversation', 'home', 'message', or 'operator'. + */ + export type Location = "conversation" | "home" | "message" | "operator"; + export const Location = { + Conversation: "conversation", + Home: "home", + Message: "message", + Operator: "operator", + } as const; +} diff --git a/src/api/types/ConversationSource.ts b/src/api/types/ConversationSource.ts index 1b1e352d..7dcaf810 100644 --- a/src/api/types/ConversationSource.ts +++ b/src/api/types/ConversationSource.ts @@ -9,7 +9,7 @@ import * as Intercom from "../index"; */ export interface ConversationSource { /** This includes conversation, email, facebook, instagram, phone_call, phone_switch, push, sms, twitter and whatsapp. */ - type: string; + type: ConversationSource.Type; /** The id representing the message. */ id: string; /** The conversation's initiation type. Possible values are customer_initiated, campaigns_initiated (legacy campaigns), operator_initiated (Custom bot), automated (Series and other outbounds with dynamic audience message) and admin_initiated (fixed audience message, ticket initiated by an admin, group email). */ @@ -26,3 +26,32 @@ export interface ConversationSource { /** Whether or not the source message has been redacted. Only applicable for contact initiated messages. */ redacted: boolean; } + +export namespace ConversationSource { + /** + * This includes conversation, email, facebook, instagram, phone_call, phone_switch, push, sms, twitter and whatsapp. + */ + export type Type = + | "conversation" + | "email" + | "facebook" + | "instagram" + | "phone_call" + | "phone_switch" + | "push" + | "sms" + | "twitter" + | "whatsapp"; + export const Type = { + Conversation: "conversation", + Email: "email", + Facebook: "facebook", + Instagram: "instagram", + PhoneCall: "phone_call", + PhoneSwitch: "phone_switch", + Push: "push", + Sms: "sms", + Twitter: "twitter", + Whatsapp: "whatsapp", + } as const; +} diff --git a/src/api/types/CurrentCanvas.ts b/src/api/types/CurrentCanvas.ts new file mode 100644 index 00000000..d985ac0f --- /dev/null +++ b/src/api/types/CurrentCanvas.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * The current canvas that was most recently showing before the request was sent. This object mirrors the same format as the Canvas Object. + */ +export interface CurrentCanvas { + /** The canvas object representing the current canvas state. */ + current_canvas: Intercom.CanvasObject; +} diff --git a/src/api/types/CustomAttributes.ts b/src/api/types/CustomAttributes.ts index 39701626..ebc3d771 100644 --- a/src/api/types/CustomAttributes.ts +++ b/src/api/types/CustomAttributes.ts @@ -2,13 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Intercom from "../index"; - /** - * An object containing the different custom attributes associated to the conversation as key-value pairs. For relationship attributes the value will be a list of custom object instance models. + * Custom data set for this data. */ -export type CustomAttributes = Record; - -export namespace CustomAttributes { - export type Value = string | Intercom.CustomObjectInstance; -} +export type CustomAttributes = Record; diff --git a/src/api/types/DataEventSummaryItem.ts b/src/api/types/DataEventSummaryItem.ts index ec12ab27..581a8e54 100644 --- a/src/api/types/DataEventSummaryItem.ts +++ b/src/api/types/DataEventSummaryItem.ts @@ -15,5 +15,5 @@ export interface DataEventSummaryItem { /** The number of times the event was sent */ count: number; /** The description of the event */ - description: string; + description?: string; } diff --git a/src/api/types/DataTableComponent.ts b/src/api/types/DataTableComponent.ts new file mode 100644 index 00000000..64e38560 --- /dev/null +++ b/src/api/types/DataTableComponent.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * A data-table component is used for rendering a table of key-value pairs. For Messenger, text will wrap around on multiple lines. For Inbox and Frame (ie. Configure) views, we will truncate and use tooltips on hover if the text overflows. + */ +export interface DataTableComponent { + /** The items that will be rendered in the data-table. */ + items: Intercom.DataTableItem[]; +} diff --git a/src/api/types/DataTableItem.ts b/src/api/types/DataTableItem.ts new file mode 100644 index 00000000..f0b9e04f --- /dev/null +++ b/src/api/types/DataTableItem.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A field-value pair component for use in a data table. + */ +export interface DataTableItem { + /** The type of component you are rendering. */ + type: "field-value"; + /** The text of the key in your key-value pair. */ + field: string; + /** The text of the value in your key-value pair. */ + value: string; +} diff --git a/src/api/types/DividerComponent.ts b/src/api/types/DividerComponent.ts new file mode 100644 index 00000000..7b37b3c8 --- /dev/null +++ b/src/api/types/DividerComponent.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A divider component is used to separate components with a line. + */ +export interface DividerComponent { + /** A unique identifier for the component. */ + id?: string; + /** Disables a component's margin-bottom of 10px. */ + bottom_margin?: "none"; +} diff --git a/src/api/types/DropdownComponent.ts b/src/api/types/DropdownComponent.ts new file mode 100644 index 00000000..f0d36aaa --- /dev/null +++ b/src/api/types/DropdownComponent.ts @@ -0,0 +1,37 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * A dropdown component is used to capture a choice from the options that you provide. + * + * When submitted, the dropdown choices are returned in a hash with the id from the dropdown component used as the key and the id from the chosen option as the value. + */ +export interface DropdownComponent { + /** A unique identifier for the component. */ + id: string; + /** The list of options. Can provide 2 to 10. */ + options: Intercom.DropdownOption[]; + /** The text shown above the dropdown. */ + label?: string; + /** The option that is selected by default. */ + value?: string; + /** Styles all options and prevents the action. Default is `unsaved`. Will be overridden if `save_state` is `saved`. */ + save_state?: DropdownComponent.SaveState; + /** Styles all options and prevents the action. Default is false. Will be overridden if save_state is saved. */ + disabled?: boolean; +} + +export namespace DropdownComponent { + /** + * Styles all options and prevents the action. Default is `unsaved`. Will be overridden if `save_state` is `saved`. + */ + export type SaveState = "unsaved" | "saved" | "failed"; + export const SaveState = { + Unsaved: "unsaved", + Saved: "saved", + Failed: "failed", + } as const; +} diff --git a/src/api/types/DropdownOption.ts b/src/api/types/DropdownOption.ts new file mode 100644 index 00000000..17bd18e5 --- /dev/null +++ b/src/api/types/DropdownOption.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A dropdown option component that can be selected. + */ +export interface DropdownOption { + /** The type of component you are rendering. */ + type: "option"; + /** A unique identifier for the option. */ + id: string; + /** The text shown within this option. */ + text: string; + /** Styles the option and prevents the action. Default is false. */ + disabled?: boolean; +} diff --git a/src/api/types/Event.ts b/src/api/types/Event.ts new file mode 100644 index 00000000..b6bbe375 --- /dev/null +++ b/src/api/types/Event.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The event object enables Intercom to know more about the actions that took place in your app. Currently, you can only tell us when an app's flow has been completed. + */ +export interface Event { + /** What action took place. The only value currently accepted is `completed`. */ + type: "completed"; +} diff --git a/src/api/types/ImageComponent.ts b/src/api/types/ImageComponent.ts new file mode 100644 index 00000000..52e8d603 --- /dev/null +++ b/src/api/types/ImageComponent.ts @@ -0,0 +1,43 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * An image component is used to display an image. + * + * HTTPS Images: + * If your request URLs (or website URLs) are over HTTPS, you will need to ensure that images are loaded over HTTPS likewise. Otherwise, they will not work. + */ +export interface ImageComponent { + /** A unique identifier for the component. */ + id?: string; + /** The URL where the image is located. */ + url: string; + /** Aligns the image inside the component. Default is `left`. */ + align?: ImageComponent.Align; + /** The exact width of the image in pixels. */ + width: number; + /** The exact height of the image in pixels. */ + height: number; + /** Rounds the corners of the image. Default is `false`. */ + rounded?: boolean; + /** Disables a component's margin-bottom of 10px. */ + bottom_margin?: "none"; + /** This can be a URL Action only. */ + action?: Intercom.UrlActionComponent; +} + +export namespace ImageComponent { + /** + * Aligns the image inside the component. Default is `left`. + */ + export type Align = "left" | "center" | "right" | "full_width"; + export const Align = { + Left: "left", + Center: "center", + Right: "right", + FullWidth: "full_width", + } as const; +} diff --git a/src/api/types/InitializeRequest.ts b/src/api/types/InitializeRequest.ts new file mode 100644 index 00000000..e3d617b9 --- /dev/null +++ b/src/api/types/InitializeRequest.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * The request payload will have all the data needed for you to understand who is using your app, where they are using it, and how you should respond. There are different request payloads for Messenger capabilities and Inbox capabilities. + */ +export interface InitializeRequest { + /** The workspace ID of the teammate. Attribute is `app_id` for V1.2 and below. */ + workspace_id: string; + /** The Intercom hosted region that this app is located in. */ + workspace_region: string; + /** The Intercom teammate viewing the conversation. */ + admin: Intercom.Admin; + /** Key-value pairs which were given as results in response to the Configure request. */ + card_creation_options: Record; + /** The context of where the app is added, where the user last visited, and information on the Messenger settings. */ + context: Intercom.Context; + /** The conversation your app is being shown for. */ + conversation: Intercom.Conversation; + /** The contact which is currently being viewed by the teammate in the conversation details panel. We send an individual initialize request for each customer when it's a group conversation. */ + contact: Intercom.Contact; +} diff --git a/src/api/types/InitializeResponse.ts b/src/api/types/InitializeResponse.ts new file mode 100644 index 00000000..a675eeaa --- /dev/null +++ b/src/api/types/InitializeResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * The response object returned when initializing an app, specifying the UI for the first screen using components. + */ +export interface InitializeResponse { + /** The canvas object that defines the UI to be shown for the app. */ + canvas: Intercom.CanvasObject; +} diff --git a/src/api/types/InputComponent.ts b/src/api/types/InputComponent.ts new file mode 100644 index 00000000..cd7f86fb --- /dev/null +++ b/src/api/types/InputComponent.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * An input component is used to capture text input from the end user. You can submit the value of the input by: + * + * - Adding an `action` to the input component (which will render an inline button) + * - Using a ButtonComponent (which will submit all interactive components in the canvas) + */ +export interface InputComponent { + /** A unique identifier for the component. */ + id: string; + /** The text shown above the input. */ + label?: string; + /** An example value shown inside the component when it's empty. */ + placeholder?: string; + /** An entered value which is already inside the component. */ + value?: string; + /** This can be a Submit Action, URL Action, or Sheets Action. */ + action?: Intercom.ActionComponent; + /** Styles the input. Default is `unsaved`. Prevent action with `saved`. */ + save_state?: InputComponent.SaveState; + /** Styles the input and prevents the action. Default is false. Will be overridden if save_state is saved. */ + disabled?: boolean; +} + +export namespace InputComponent { + /** + * Styles the input. Default is `unsaved`. Prevent action with `saved`. + */ + export type SaveState = "unsaved" | "saved" | "failed"; + export const SaveState = { + Unsaved: "unsaved", + Saved: "saved", + Failed: "failed", + } as const; +} diff --git a/src/api/types/ListComponent.ts b/src/api/types/ListComponent.ts new file mode 100644 index 00000000..b80e900d --- /dev/null +++ b/src/api/types/ListComponent.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * A list component renders a list of items which you provide in an array. You can make each list item take an action by adding the relevant action object to the item: + * + * - [Trigger a submit request to be sent](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/submit-action) Inbox Messenger + * - [Open a link in a new page](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/url-action) Inbox Messenger + * - [Open a sheet](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/sheets-action) Messenger + */ +export interface ListComponent { + /** The items that will be rendered in the list. */ + items: ListComponent.Items.Item[]; + /** Styles all list items and prevents the action. Default is `false`. */ + disabled?: boolean; +} + +export namespace ListComponent { + export type Items = Items.Item[]; + + export namespace Items { + export type Item = Intercom.ListItemWithImage | Intercom.ListItemWithoutImage; + } +} diff --git a/src/api/types/ListItem.ts b/src/api/types/ListItem.ts new file mode 100644 index 00000000..d85d821c --- /dev/null +++ b/src/api/types/ListItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * A list item component that can be rendered in a list. + */ +export interface ListItem { + /** The type of component you are rendering. */ + type: "item"; + /** A unique identifier for the item. */ + id: string; + /** The text shown as the title for the item. */ + title: string; + /** The text shown underneath the item's title. */ + subtitle?: string; + /** The text shown next to the subtitle, separates by a bullet. */ + tertiary_text?: string; + /** Rounds the corners of the image. Default is `false`. */ + rounded_image?: boolean; + /** Styles all list items and prevents the action. Default is `false`. */ + disabled?: boolean; + /** This can be a Submit Action, URL Action, or Sheets Action. */ + action?: Intercom.ActionComponent; +} diff --git a/src/api/types/ListItemWithImage.ts b/src/api/types/ListItemWithImage.ts new file mode 100644 index 00000000..4d62f441 --- /dev/null +++ b/src/api/types/ListItemWithImage.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +export interface ListItemWithImage extends Intercom.ListItem { + /** An image that will be displayed to the left of the item. */ + image: string; + /** The exact width of the image in pixels. */ + image_width: number; + /** The exact height of the image in pixels. */ + image_height: number; +} diff --git a/src/api/types/ListItemWithoutImage.ts b/src/api/types/ListItemWithoutImage.ts new file mode 100644 index 00000000..d5f911ec --- /dev/null +++ b/src/api/types/ListItemWithoutImage.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +export interface ListItemWithoutImage extends Intercom.ListItem { + /** An image that will be displayed to the left of the item. */ + image?: string; + /** The exact width of the image in pixels. */ + image_width?: number; + /** The exact height of the image in pixels. */ + image_height?: number; +} diff --git a/src/api/types/LiveCanvasRequest.ts b/src/api/types/LiveCanvasRequest.ts new file mode 100644 index 00000000..4c90a1d5 --- /dev/null +++ b/src/api/types/LiveCanvasRequest.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * Canvases are static by default and require a new request to come through in order to update them. Live canvases however will make requests every time the card is viewed without any interaction needed, meaning the canvas can be kept up-to-date with no action from the user. + * + * This works for every Messenger request that you can respond with a canvas object to. Instead of returning the content object within the canvas object, you should provide a `content_url` attribute instead with the value being the URL you want us to send a POST request to when someone views the app. + */ +export interface LiveCanvasRequest { + /** The workspace ID of the teammate. Attribute is `app_id` for V1.2 and below. */ + workspace_id: string; + /** The Intercom hosted region that this app is located in. */ + workspace_region: string; + /** The current_canvas the teammate can see. */ + canvas: Intercom.CanvasObject; + /** The context of where the app is added, where the user last visited, and information on the Messenger settings. */ + context: Intercom.Context; + /** The contact who viewed the card. */ + contact: Intercom.Contact; +} diff --git a/src/api/types/LiveCanvasResponse.ts b/src/api/types/LiveCanvasResponse.ts new file mode 100644 index 00000000..fca96ef7 --- /dev/null +++ b/src/api/types/LiveCanvasResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * The response object returned when responding to a Live Canvas request. This contains the components you want to show. + */ +export interface LiveCanvasResponse { + /** The content object that defines the components to be shown. */ + content: Intercom.ContentObject; +} diff --git a/src/api/types/MultipleFilterSearchRequest.ts b/src/api/types/MultipleFilterSearchRequest.ts index cdaf21d8..8554380e 100644 --- a/src/api/types/MultipleFilterSearchRequest.ts +++ b/src/api/types/MultipleFilterSearchRequest.ts @@ -10,7 +10,7 @@ import * as Intercom from "../index"; export interface MultipleFilterSearchRequest { /** An operator to allow boolean inspection between multiple fields. */ operator?: MultipleFilterSearchRequest.Operator; - value?: MultipleFilterSearchRequest.Value; + value?: Intercom.MultipleOrSingleFilterSearchRequest[]; } export namespace MultipleFilterSearchRequest { @@ -22,11 +22,4 @@ export namespace MultipleFilterSearchRequest { And: "AND", Or: "OR", } as const; - export type Value = - /** - * Add mutiple filters. */ - | Intercom.MultipleFilterSearchRequest[] - /** - * Add a single filter field. */ - | Intercom.SingleFilterSearchRequest[]; } diff --git a/src/api/types/MultipleOrSingleFilterSearchRequest.ts b/src/api/types/MultipleOrSingleFilterSearchRequest.ts new file mode 100644 index 00000000..05b7916a --- /dev/null +++ b/src/api/types/MultipleOrSingleFilterSearchRequest.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +export type MultipleOrSingleFilterSearchRequest = + | Intercom.MultipleFilterSearchRequest + | Intercom.SingleFilterSearchRequest; diff --git a/src/api/types/ResultsResponse.ts b/src/api/types/ResultsResponse.ts new file mode 100644 index 00000000..118b3e37 --- /dev/null +++ b/src/api/types/ResultsResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The results object should be sent when you want to end configuration of the app and trigger the [Initialize request](https://developers.intercom.com/docs/canvas-kit/#initialize) to be sent. You provide the key-value pairs of data you want access to and we will send these in the Initialize request within a [card_creation_options object](https://developers.intercom.com/docs/references/canvas-kit/requestobjects/card-creation-options/#card-creation-options). + */ +export interface ResultsResponse { + /** Key-value pairs of data you want access to in the Initialize request */ + results: Record; +} diff --git a/src/api/types/SheetActionComponent.ts b/src/api/types/SheetActionComponent.ts new file mode 100644 index 00000000..655b7039 --- /dev/null +++ b/src/api/types/SheetActionComponent.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A sheet action opens the link you give within the Messenger as an embedded iframe. + * + * [More on how Sheets work is in our Canvas Kit documentation.](https://developers.intercom.com/docs/canvas-kit#sheets-optional) + */ +export interface SheetActionComponent { + /** The link which hosts your sheet. */ + url: string; +} diff --git a/src/api/types/SingleFilterSearchRequest.ts b/src/api/types/SingleFilterSearchRequest.ts index 95f869cf..94aa9dfc 100644 --- a/src/api/types/SingleFilterSearchRequest.ts +++ b/src/api/types/SingleFilterSearchRequest.ts @@ -11,7 +11,7 @@ export interface SingleFilterSearchRequest { /** The accepted operators you can use to define how you want to search for the value. */ operator?: SingleFilterSearchRequest.Operator; /** The value that you want to search on. */ - value?: string; + value?: SingleFilterSearchRequest.Value; } export namespace SingleFilterSearchRequest { @@ -31,4 +31,8 @@ export namespace SingleFilterSearchRequest { StartsWith: "^", EndsWith: "$", } as const; + /** + * The value that you want to search on. + */ + export type Value = string | number | string[] | number[]; } diff --git a/src/api/types/SingleSelectComponent.ts b/src/api/types/SingleSelectComponent.ts new file mode 100644 index 00000000..04f9cf85 --- /dev/null +++ b/src/api/types/SingleSelectComponent.ts @@ -0,0 +1,42 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * A single-select component is used to capture a choice from up to 10 options that you provide. You can submit the value of the select option by: + * + * - Adding an `action` to the single-select component + * - Using a ButtonComponent (which will submit all interactive components in the canvas) + * + * When a submit action takes place, the results are given in a hash with the `id` from the single-select component used as the key and the `id` from the chosen option as the value. + */ +export interface SingleSelectComponent { + /** A unique identifier for the component. */ + id: string; + /** The list of options. Can provide 2 to 10. */ + options: Intercom.SingleSelectOption[]; + /** The text shown above the options. */ + label?: string; + /** The option that is selected by default. */ + value?: string; + /** Styles the input. Default is `unsaved`. Prevent action with `saved`. */ + save_state?: SingleSelectComponent.SaveState; + /** Styles all options and prevents the action. Default is false. Will be overridden if save_state is saved. */ + disabled?: boolean; + /** This can be a Submit Action, URL Action, or Sheets Action. */ + action?: Intercom.ActionComponent; +} + +export namespace SingleSelectComponent { + /** + * Styles the input. Default is `unsaved`. Prevent action with `saved`. + */ + export type SaveState = "unsaved" | "saved" | "failed"; + export const SaveState = { + Unsaved: "unsaved", + Saved: "saved", + Failed: "failed", + } as const; +} diff --git a/src/api/types/SingleSelectOption.ts b/src/api/types/SingleSelectOption.ts new file mode 100644 index 00000000..4fc06e87 --- /dev/null +++ b/src/api/types/SingleSelectOption.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A single select option component that can be selected. + */ +export interface SingleSelectOption { + /** The type of component you are rendering. */ + type: "option"; + /** A unique identifier for the option. */ + id: string; + /** The text shown within this option. */ + text: string; + /** Styles the option and prevents the action. Default is false. */ + disabled?: boolean; +} diff --git a/src/api/types/SpacerComponent.ts b/src/api/types/SpacerComponent.ts new file mode 100644 index 00000000..d8215aa3 --- /dev/null +++ b/src/api/types/SpacerComponent.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A spacer component is used to create empty space between components. + */ +export interface SpacerComponent { + /** A unique identifier for the component. */ + id?: string; + /** The amount of space between components. Default is `s`. */ + size?: SpacerComponent.Size; +} + +export namespace SpacerComponent { + /** + * The amount of space between components. Default is `s`. + */ + export type Size = "xs" | "s" | "m" | "l" | "xl"; + export const Size = { + Xs: "xs", + S: "s", + M: "m", + L: "l", + Xl: "xl", + } as const; +} diff --git a/src/api/types/SubmitActionComponent.ts b/src/api/types/SubmitActionComponent.ts new file mode 100644 index 00000000..c1eec8c9 --- /dev/null +++ b/src/api/types/SubmitActionComponent.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A submit action triggers a [Submit Request](https://developers.intercom.com/docs/canvas-kit#submit-request) to be sent. This request will include all values which have been entered into all the interactive components on the current canvas. + */ +export interface SubmitActionComponent {} diff --git a/src/api/types/SubmitRequest.ts b/src/api/types/SubmitRequest.ts new file mode 100644 index 00000000..38aa3f2c --- /dev/null +++ b/src/api/types/SubmitRequest.ts @@ -0,0 +1,31 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * The Submit request is triggered when a component with a submit action is interacted with in Messenger Inbox. + */ +export interface SubmitRequest { + /** The workspace ID of the teammate. Attribute is `app_id` for V1.2 and below. */ + workspace_id: string; + /** The Intercom hosted region that this app is located in. */ + workspace_region: string; + /** The Intercom teammate viewing the conversation. */ + admin: Intercom.Admin; + /** The id of the component clicked by the teammate to trigger the request. */ + component_id: string; + /** The context of where the app is added, where the user last visited, and information on the Messenger settings. */ + context: Intercom.Context; + /** The conversation where your app is being shown. */ + conversation: Intercom.Conversation; + /** The current canvas the teammate can see. */ + current_canvas: Intercom.CurrentCanvas; + /** The contact which is currently being viewed by the teammate in the conversation details panel. */ + contact: Intercom.Contact; + /** A list of key/value pairs of data, inputted by the teammate on the current canvas. */ + input_values: Record; + /** The user who took the action. */ + user: Intercom.Contact; +} diff --git a/src/api/types/SubmitResponse.ts b/src/api/types/SubmitResponse.ts new file mode 100644 index 00000000..9e2ff974 --- /dev/null +++ b/src/api/types/SubmitResponse.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Intercom from "../index"; + +/** + * The response object returned when submitting an app interaction. This will replace the previous canvas that was visible until the app was interacted with. + * + * You can optionally provide an event object with the attribute `type` given as `completed` to tell us if the app has completed its purpose. For example, an email collector app would be complete when the end-user submits their email address. + * + * Apps in conversation details can also optionally insert an app into the conversation reply: + * + * 1. You respond with a card_creation_options object (https://developers.intercom.com/canvas-kit-reference/reference/card-creation-options) + * 2. We send a request to the initialize URL for Messenger capabilities (https://developers.intercom.com/docs/build-an-integration/getting-started/build-an-app-for-your-messenger/request-flows) with the card_creation_options object present + * 3. You respond with a canvas object with the components you want to insert into the conversation reply + */ +export interface SubmitResponse { + /** The canvas object that defines the new UI to be shown. */ + canvas: Intercom.CanvasObject; + /** Optional. Key-value pairs that will be sent in the initialize request to insert an app into the conversation reply. */ + card_creation_options?: Record; + /** Optional. Indicates if the app has completed its purpose. */ + event?: Intercom.Event; +} diff --git a/src/api/types/TextAreaComponent.ts b/src/api/types/TextAreaComponent.ts new file mode 100644 index 00000000..1a2d215c --- /dev/null +++ b/src/api/types/TextAreaComponent.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A text area component is used to capture a large amount of text as input with a multi-line text box. You can submit the value of the text area by: + * + * - Using a ButtonComponent (which will submit all interactive components in the canvas) + */ +export interface TextAreaComponent { + /** A unique identifier for the component. */ + id: string; + /** The text shown above the text area. */ + label?: string; + /** An example value shown inside the component when it's empty. */ + placeholder?: string; + /** An entered value which is already inside the component. */ + value?: string; + /** Styles the input as failed. Default is false. */ + error?: boolean; + /** Styles the input and prevents the action. Default is false. */ + disabled?: boolean; +} diff --git a/src/api/types/TextComponent.ts b/src/api/types/TextComponent.ts new file mode 100644 index 00000000..1fe6bce2 --- /dev/null +++ b/src/api/types/TextComponent.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A text component is used for rendering blocks of text. Links and bold font can be rendered through Markdown. There are different styles provided which edit the color, weight, and font size. These cannot be edited through Markdown. + */ +export interface TextComponent { + /** A unique identifier for the component. */ + id?: string; + /** The text that will be rendered. */ + text: string; + /** Aligns the text. Default is `left`. */ + align?: TextComponent.Align; + /** Styles the text. Default is `paragraph`. */ + style?: TextComponent.Style; + /** Disables a component's margin-bottom of 10px. */ + bottom_margin?: "none"; +} + +export namespace TextComponent { + /** + * Aligns the text. Default is `left`. + */ + export type Align = "left" | "center" | "right"; + export const Align = { + Left: "left", + Center: "center", + Right: "right", + } as const; + /** + * Styles the text. Default is `paragraph`. + */ + export type Style = "header" | "paragraph" | "muted" | "error"; + export const Style = { + Header: "header", + Paragraph: "paragraph", + Muted: "muted", + Error: "error", + } as const; +} diff --git a/src/api/types/UrlActionComponent.ts b/src/api/types/UrlActionComponent.ts new file mode 100644 index 00000000..34d44dcf --- /dev/null +++ b/src/api/types/UrlActionComponent.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A URL action opens a given link in a new browser tab. + */ +export interface UrlActionComponent { + /** The link you want to open. */ + url: string; +} diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 589b9a06..03b2def2 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -1,3 +1,4 @@ +export * from "./ActionComponent"; export * from "./ActivityLog"; export * from "./ActivityLogList"; export * from "./ActivityLogMetadata"; @@ -13,15 +14,23 @@ export * from "./ArticleList"; export * from "./ArticleStatistics"; export * from "./ArticleTranslatedContent"; export * from "./AssignConversationRequest"; +export * from "./ButtonComponent"; +export * from "./CanvasObject"; +export * from "./CheckboxOption"; +export * from "./CheckboxComponent"; export * from "./CloseConversationRequest"; export * from "./CollectionList"; export * from "./CompanyAttachedContacts"; export * from "./CompanyAttachedSegments"; export * from "./CompanyList"; export * from "./CompanyScroll"; +export * from "./Component"; +export * from "./ConfigureRequest"; +export * from "./ConfigureResponse"; export * from "./ContactArchived"; export * from "./ContactAttachedCompanies"; export * from "./ContactCompanies"; +export * from "./ContactCompany"; export * from "./ContactDeleted"; export * from "./ContactList"; export * from "./ContactLocation"; @@ -41,7 +50,9 @@ export * from "./ContactSocialProfiles"; export * from "./ContactSubscriptionTypes"; export * from "./ContactTags"; export * from "./ContactUnarchived"; +export * from "./ContentObject"; export * from "./ContentSourcesList"; +export * from "./Context"; export * from "./ConversationAttachmentFiles"; export * from "./ConversationContacts"; export * from "./ConversationFirstContactReply"; @@ -58,24 +69,41 @@ export * from "./CreateDataEventRequest"; export * from "./CreateMessageRequest"; export * from "./CreateOrUpdateTagRequest"; export * from "./CreateTicketReplyWithCommentRequest"; +export * from "./CurrentCanvas"; export * from "./CursorPages"; -export * from "./CustomAttributes"; export * from "./CustomerRequest"; export * from "./DataAttributeList"; export * from "./DataEventList"; export * from "./DataEventSummary"; export * from "./DataEventSummaryItem"; export * from "./DataExportCsv"; +export * from "./DataTableItem"; +export * from "./DataTableComponent"; export * from "./DeletedArticleObject"; export * from "./DeletedCollectionObject"; export * from "./DeletedCompanyObject"; export * from "./DeletedObject"; +export * from "./DividerComponent"; +export * from "./DropdownOption"; +export * from "./DropdownComponent"; export * from "./Error_"; +export * from "./Event"; export * from "./FileAttribute"; export * from "./GroupContent"; export * from "./GroupTranslatedContent"; +export * from "./ImageComponent"; +export * from "./InitializeRequest"; +export * from "./InitializeResponse"; +export * from "./InputComponent"; export * from "./LinkedObject"; export * from "./LinkedObjectList"; +export * from "./ListItem"; +export * from "./ListItemWithImage"; +export * from "./ListItemWithoutImage"; +export * from "./ListComponent"; +export * from "./LiveCanvasRequest"; +export * from "./LiveCanvasResponse"; +export * from "./MultipleOrSingleFilterSearchRequest"; export * from "./MultipleFilterSearchRequest"; export * from "./NewsItemRequest"; export * from "./NoteList"; @@ -88,13 +116,21 @@ export * from "./PhoneSwitch"; export * from "./RedactConversationRequest"; export * from "./Reference"; export * from "./ReplyConversationRequest"; +export * from "./ResultsResponse"; export * from "./SearchRequest"; export * from "./SegmentList"; +export * from "./SheetActionComponent"; export * from "./SingleFilterSearchRequest"; +export * from "./SingleSelectOption"; +export * from "./SingleSelectComponent"; export * from "./SlaApplied"; export * from "./SnoozeConversationRequest"; export * from "./SocialProfile"; +export * from "./SpacerComponent"; export * from "./StartingAfterPaging"; +export * from "./SubmitActionComponent"; +export * from "./SubmitRequest"; +export * from "./SubmitResponse"; export * from "./SubscriptionTypeList"; export * from "./TagCompanyRequest"; export * from "./TagList"; @@ -102,6 +138,8 @@ export * from "./TagMultipleUsersRequest"; export * from "./Tags"; export * from "./TeamList"; export * from "./TeamPriorityLevel"; +export * from "./TextComponent"; +export * from "./TextAreaComponent"; export * from "./TicketCustomAttributes"; export * from "./TicketList"; export * from "./TicketPartAuthor"; @@ -114,5 +152,7 @@ export * from "./TicketTypeList"; export * from "./Translation"; export * from "./UntagCompanyRequest"; export * from "./UpdateVisitorRequest"; +export * from "./UrlActionComponent"; export * from "./Visitor"; export * from "./VisitorDeletedObject"; +export * from "./CustomAttributes"; diff --git a/src/version.ts b/src/version.ts index 7ba3a938..8f23d47a 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "6.0.0"; +export const SDK_VERSION = "v6.1.0b0"; diff --git a/yarn.lock b/yarn.lock index 281e9091..377d0828 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,7 +10,7 @@ "@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.25.9", "@babel/code-frame@^7.26.0", "@babel/code-frame@^7.26.2": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.26.2": version "7.26.2" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.26.2.tgz#4b5fab97d33338eff916235055f0ebc21e573a85" integrity sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ== @@ -19,49 +19,49 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/compat-data@^7.25.9": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.3.tgz#99488264a56b2aded63983abd6a417f03b92ed02" - integrity sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g== +"@babel/compat-data@^7.26.5": + version "7.26.8" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.8.tgz#821c1d35641c355284d4a870b8a4a7b0c141e367" + integrity sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.0.tgz#d78b6023cc8f3114ccf049eb219613f74a747b40" - integrity sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg== + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.10.tgz#5c876f83c8c4dcb233ee4b670c0606f2ac3000f9" + integrity sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.26.0" - "@babel/generator" "^7.26.0" - "@babel/helper-compilation-targets" "^7.25.9" + "@babel/code-frame" "^7.26.2" + "@babel/generator" "^7.26.10" + "@babel/helper-compilation-targets" "^7.26.5" "@babel/helper-module-transforms" "^7.26.0" - "@babel/helpers" "^7.26.0" - "@babel/parser" "^7.26.0" - "@babel/template" "^7.25.9" - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.26.0" + "@babel/helpers" "^7.26.10" + "@babel/parser" "^7.26.10" + "@babel/template" "^7.26.9" + "@babel/traverse" "^7.26.10" + "@babel/types" "^7.26.10" 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.26.0", "@babel/generator@^7.26.3", "@babel/generator@^7.7.2": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.3.tgz#ab8d4360544a425c90c248df7059881f4b2ce019" - integrity sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ== +"@babel/generator@^7.26.10", "@babel/generator@^7.7.2": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.10.tgz#a60d9de49caca16744e6340c3658dfef6138c3f7" + integrity sha512-rRHT8siFIXQrAYOYqZQVsAr8vJ+cBNqcVAY6m5V8/4QqzaPl+zDBe6cLEPRDuNOUf3ww8RfJVlOyQMoSI+5Ang== dependencies: - "@babel/parser" "^7.26.3" - "@babel/types" "^7.26.3" + "@babel/parser" "^7.26.10" + "@babel/types" "^7.26.10" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^3.0.2" -"@babel/helper-compilation-targets@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz#55af025ce365be3cdc0c1c1e56c6af617ce88875" - integrity sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ== +"@babel/helper-compilation-targets@^7.26.5": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz#75d92bb8d8d51301c0d49e52a65c9a7fe94514d8" + integrity sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA== dependencies: - "@babel/compat-data" "^7.25.9" + "@babel/compat-data" "^7.26.5" "@babel/helper-validator-option" "^7.25.9" browserslist "^4.24.0" lru-cache "^5.1.1" @@ -85,9 +85,9 @@ "@babel/traverse" "^7.25.9" "@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.9", "@babel/helper-plugin-utils@^7.8.0": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz#9cbdd63a9443a2c92a725cca7ebca12cc8dd9f46" - integrity sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw== + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz#18580d00c9934117ad719392c4f6585c9333cc35" + integrity sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg== "@babel/helper-string-parser@^7.25.9": version "7.25.9" @@ -104,20 +104,20 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz#86e45bd8a49ab7e03f276577f96179653d41da72" integrity sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw== -"@babel/helpers@^7.26.0": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.0.tgz#30e621f1eba5aa45fe6f4868d2e9154d884119a4" - integrity sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw== +"@babel/helpers@^7.26.10": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.10.tgz#6baea3cd62ec2d0c1068778d63cb1314f6637384" + integrity sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g== dependencies: - "@babel/template" "^7.25.9" - "@babel/types" "^7.26.0" + "@babel/template" "^7.26.9" + "@babel/types" "^7.26.10" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.9", "@babel/parser@^7.26.0", "@babel/parser@^7.26.3": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.3.tgz#8c51c5db6ddf08134af1ddbacf16aaab48bac234" - integrity sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.26.10", "@babel/parser@^7.26.9": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.10.tgz#e9bdb82f14b97df6569b0b038edd436839c57749" + integrity sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA== dependencies: - "@babel/types" "^7.26.3" + "@babel/types" "^7.26.10" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -238,32 +238,32 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.9" -"@babel/template@^7.25.9", "@babel/template@^7.3.3": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.9.tgz#ecb62d81a8a6f5dc5fe8abfc3901fc52ddf15016" - integrity sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg== +"@babel/template@^7.26.9", "@babel/template@^7.3.3": + version "7.26.9" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.26.9.tgz#4577ad3ddf43d194528cff4e1fa6b232fa609bb2" + integrity sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA== dependencies: - "@babel/code-frame" "^7.25.9" - "@babel/parser" "^7.25.9" - "@babel/types" "^7.25.9" + "@babel/code-frame" "^7.26.2" + "@babel/parser" "^7.26.9" + "@babel/types" "^7.26.9" -"@babel/traverse@^7.25.9": - version "7.26.4" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.4.tgz#ac3a2a84b908dde6d463c3bfa2c5fdc1653574bd" - integrity sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w== +"@babel/traverse@^7.25.9", "@babel/traverse@^7.26.10": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.10.tgz#43cca33d76005dbaa93024fae536cc1946a4c380" + integrity sha512-k8NuDrxr0WrPH5Aupqb2LCVURP/S0vBEn5mK6iH+GIYob66U5EtoZvcdudR2jQ4cmTwhEwW1DLB+Yyas9zjF6A== dependencies: "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.3" - "@babel/parser" "^7.26.3" - "@babel/template" "^7.25.9" - "@babel/types" "^7.26.3" + "@babel/generator" "^7.26.10" + "@babel/parser" "^7.26.10" + "@babel/template" "^7.26.9" + "@babel/types" "^7.26.10" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.0", "@babel/types@^7.26.3", "@babel/types@^7.3.3": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.3.tgz#37e79830f04c2b5687acc77db97fbc75fb81f3c0" - integrity sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.10", "@babel/types@^7.26.9", "@babel/types@^7.3.3": + version "7.26.10" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.10.tgz#396382f6335bd4feb65741eacfc808218f859259" + integrity sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ== dependencies: "@babel/helper-string-parser" "^7.25.9" "@babel/helper-validator-identifier" "^7.25.9" @@ -642,7 +642,7 @@ "@types/tough-cookie" "*" parse5 "^7.0.0" -"@types/json-schema@*", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": +"@types/json-schema@*", "@types/json-schema@^7.0.9": version "7.0.15" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== @@ -656,9 +656,9 @@ form-data "^4.0.0" "@types/node@*": - version "22.10.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.2.tgz#a485426e6d1fdafc7b0d4c7b24e2c78182ddabb9" - integrity sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ== + version "22.13.10" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.10.tgz#df9ea358c5ed991266becc3109dc2dc9125d77e4" + integrity sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw== dependencies: undici-types "~6.20.0" @@ -866,9 +866,9 @@ acorn-walk@^8.0.2: acorn "^8.11.0" acorn@^8.1.0, acorn@^8.11.0, acorn@^8.14.0, acorn@^8.8.1, acorn@^8.8.2: - version "8.14.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.0.tgz#063e2c70cac5fb4f6467f0b11152e04c682795b0" - integrity sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA== + version "8.14.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.1.tgz#721d5dc10f7d5b5609a891773d47731796935dfb" + integrity sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg== agent-base@6: version "6.0.2" @@ -884,11 +884,6 @@ ajv-formats@^2.1.1: dependencies: ajv "^8.0.0" -ajv-keywords@^3.5.2: - version "3.5.2" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" - integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== - ajv-keywords@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" @@ -896,16 +891,6 @@ ajv-keywords@^5.1.0: dependencies: fast-deep-equal "^3.1.3" -ajv@^6.12.5: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - ajv@^8.0.0, ajv@^8.9.0: version "8.17.1" resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" @@ -1049,9 +1034,9 @@ braces@^3.0.3: fill-range "^7.1.1" browserslist@^4.24.0: - version "4.24.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.3.tgz#5fc2725ca8fb3c1432e13dac278c7cc103e026d2" - integrity sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA== + version "4.24.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b" + integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== dependencies: caniuse-lite "^1.0.30001688" electron-to-chromium "^1.5.73" @@ -1085,21 +1070,21 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -call-bind-apply-helpers@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz#32e5892e6361b29b0b545ba6f7763378daca2840" - integrity sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g== +call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" + integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== dependencies: es-errors "^1.3.0" function-bind "^1.1.2" call-bound@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.3.tgz#41cfd032b593e39176a71533ab4f384aa04fd681" - integrity sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA== + version "1.0.4" + resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.4.tgz#238de935d2a2a692928c538c7ccfa91067fd062a" + integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== dependencies: - call-bind-apply-helpers "^1.0.1" - get-intrinsic "^1.2.6" + call-bind-apply-helpers "^1.0.2" + get-intrinsic "^1.3.0" callsites@^3.0.0: version "3.1.0" @@ -1117,9 +1102,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001688: - version "1.0.30001690" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz#f2d15e3aaf8e18f76b2b8c1481abde063b8104c8" - integrity sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w== + version "1.0.30001703" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001703.tgz#977cb4920598c158f491ecf4f4f2cfed9e354718" + integrity sha512-kRlAGTRWgPsOj7oARC9m1okJEXdL/8fekFVcxA8Hl7GH4r/sN4OJn/i6Flde373T50KS7Y37oFbMwlE8+F42kQ== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1145,9 +1130,9 @@ ci-info@^3.2.0: integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== cjs-module-lexer@^1.0.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz#707413784dbb3a72aa11c2f2b042a0bef4004170" - integrity sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA== + version "1.4.3" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz#0f79731eb8cfe1ec72acd4066efac9d61991b00d" + integrity sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q== cliui@^8.0.1: version "8.0.1" @@ -1258,9 +1243,9 @@ debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: ms "^2.1.3" decimal.js@^10.4.2: - version "10.4.3" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23" - integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA== + version "10.5.0" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.5.0.tgz#0f371c7cf6c4898ce0afb09836db73cd82010f22" + integrity sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw== dedent@^1.0.0: version "1.5.3" @@ -1294,7 +1279,7 @@ domexception@^4.0.0: dependencies: webidl-conversions "^7.0.0" -dunder-proto@^1.0.0: +dunder-proto@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== @@ -1304,9 +1289,9 @@ dunder-proto@^1.0.0: gopd "^1.2.0" electron-to-chromium@^1.5.73: - version "1.5.75" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.75.tgz#bba96eabf0e8ca36324679caa38b982800acc87d" - integrity sha512-Lf3++DumRE/QmweGjU+ZcKqQ+3bKkU/qjaKYhIJKEOhgIO9Xs6IiAQFkfFoj+RhgDk4LUeNsLo6plExHqSyu6Q== + version "1.5.115" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.115.tgz#193dd534948b3ea77e3d95dd38ca12cdc01c76a9" + integrity sha512-MN1nahVHAQMOz6dz6bNZ7apgqc9InZy7Ja4DBEVCTdeiUcegbyOYE9bi/f2Z/z6ZxLi0RxLpyJ3EGe+4h3w73A== emittery@^0.13.1: version "0.13.1" @@ -1319,9 +1304,9 @@ emoji-regex@^8.0.0: integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.1: - version "5.18.0" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.0.tgz#91eb1db193896b9801251eeff1c6980278b1e404" - integrity sha512-0/r0MySGYG8YqlayBZ6MuCfECmHFdJ5qyPh8s8wa5Hnm6SaFLSK1VYCbj+NKp090Nm1caZhD+QTnmxO7esYGyQ== + version "5.18.1" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz#728ab082f8b7b6836de51f1637aab5d3b9568faf" + integrity sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" @@ -1349,17 +1334,27 @@ es-errors@^1.3.0: integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== es-module-lexer@^1.2.1: - version "1.5.4" - resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.5.4.tgz#a8efec3a3da991e60efa6b633a7cad6ab8d26b78" - integrity sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw== + version "1.6.0" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.6.0.tgz#da49f587fd9e68ee2404fe4e256c0c7d3a81be21" + integrity sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ== -es-object-atoms@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz#ddb55cd47ac2e240701260bc2a8e31ecb643d941" - integrity sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw== +es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1" + integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA== dependencies: es-errors "^1.3.0" +es-set-tostringtag@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz#f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d" + integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA== + dependencies: + es-errors "^1.3.0" + get-intrinsic "^1.2.6" + has-tostringtag "^1.0.2" + hasown "^2.0.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" @@ -1457,20 +1452,20 @@ expect@^29.0.0, expect@^29.7.0: jest-message-util "^29.7.0" jest-util "^29.7.0" -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: +fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== fast-uri@^3.0.1: - version "3.0.3" - resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.3.tgz#892a1c91802d5d7860de728f18608a0573142241" - integrity sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw== + version "3.0.6" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.6.tgz#88f130b77cfaea2378d56bf970dea21257a68748" + integrity sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw== fb-watchman@^2.0.0: version "2.0.2" @@ -1495,12 +1490,13 @@ find-up@^4.0.0, find-up@^4.1.0: path-exists "^4.0.0" form-data@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.1.tgz#ba1076daaaa5bfd7e99c1a6cb02aa0a5cff90d48" - integrity sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw== + version "4.0.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.2.tgz#35cabbdd30c3ce73deb2c42d3c8d3ed9ca51794c" + integrity sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w== dependencies: asynckit "^0.4.0" combined-stream "^1.0.8" + es-set-tostringtag "^2.1.0" mime-types "^2.1.12" formdata-node@^6.0.3: @@ -1533,27 +1529,35 @@ get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.2.5, get-intrinsic@^1.2.6: - version "1.2.6" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.6.tgz#43dd3dd0e7b49b82b2dfcad10dc824bf7fc265d5" - integrity sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA== +get-intrinsic@^1.2.5, get-intrinsic@^1.2.6, get-intrinsic@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01" + integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== dependencies: - call-bind-apply-helpers "^1.0.1" - dunder-proto "^1.0.0" + call-bind-apply-helpers "^1.0.2" es-define-property "^1.0.1" es-errors "^1.3.0" - es-object-atoms "^1.0.0" + es-object-atoms "^1.1.1" function-bind "^1.1.2" + get-proto "^1.0.1" gopd "^1.2.0" has-symbols "^1.1.0" hasown "^2.0.2" - math-intrinsics "^1.0.0" + math-intrinsics "^1.1.0" get-package-type@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== +get-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + get-stream@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" @@ -1596,11 +1600,18 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-symbols@^1.1.0: +has-symbols@^1.0.3, has-symbols@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== +has-tostringtag@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== + dependencies: + has-symbols "^1.0.3" + hasown@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" @@ -1686,9 +1697,9 @@ is-arrayish@^0.2.1: integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-core-module@^2.16.0: - version "2.16.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.0.tgz#6c01ffdd5e33c49c1d2abfa93334a85cb56bd81c" - integrity sha512-urTSINYfAYgcbLb0yDQ6egFm6h3Mo1DcF9EkyXSRjjzdHbsulg01qhwWuXdOoUBuTkbQ80KDboXa0vFJ+BDH+g== + version "2.16.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.1.tgz#2a98801a849f43e2add644fbb6bc6229b19a4ef4" + integrity sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w== dependencies: hasown "^2.0.2" @@ -2216,11 +2227,6 @@ json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - json-schema-traverse@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" @@ -2289,7 +2295,7 @@ makeerror@1.0.12: dependencies: tmpl "1.0.5" -math-intrinsics@^1.0.0: +math-intrinsics@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== @@ -2376,14 +2382,14 @@ npm-run-path@^4.0.1: path-key "^3.0.0" nwsapi@^2.2.2: - version "2.2.16" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.16.tgz#177760bba02c351df1d2644e220c31dfec8cdb43" - integrity sha512-F1I/bimDpj3ncaNDhfyMWuFqmQDBwDB0Fogc2qpL3BWvkQteFD/8BzWuIRl83rq0DXfm8SGt/HFhLXZyljTXcQ== + version "2.2.18" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.18.tgz#3c4d7927e1ef4d042d319438ecfda6cd81b7ee41" + integrity sha512-p1TRH/edngVEHVbwqWnxUViEmq5znDvyB+Sik5cmuLpGOIfDf/39zLiq3swPF8Vakqn+gvNiOQAZu8djYlQILA== object-inspect@^1.13.3: - version "1.13.3" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.3.tgz#f14c183de51130243d6d18ae149375ff50ea488a" - integrity sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA== + version "1.13.4" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.4.tgz#8375265e21bc20d0fa582c22e1b13485d6e00213" + integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew== once@^1.3.0: version "1.4.0" @@ -2462,7 +2468,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.1.0: +picocolors@^1.0.0, picocolors@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== @@ -2518,7 +2524,7 @@ psl@^1.1.33: dependencies: punycode "^2.3.1" -punycode@^2.1.0, punycode@^2.1.1, punycode@^2.3.1: +punycode@^2.1.1, punycode@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== @@ -2553,9 +2559,9 @@ react-is@^18.0.0: integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== readable-stream@^4.5.2: - version "4.6.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.6.0.tgz#ce412dfb19c04efde1c5936d99c27f37a1ff94c9" - integrity sha512-cbAdYt0VcnpN2Bekq7PU+k363ZRsPwJoEEJOEtSJQlJXzwaxt3FIo/uL+KeDSGIjJqtkwyge4KQgD2S2kd+CQw== + version "4.7.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.7.0.tgz#cedbd8a1146c13dfff8dab14068028d58c15ac91" + integrity sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg== dependencies: abort-controller "^3.0.0" buffer "^6.0.3" @@ -2626,15 +2632,6 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -schema-utils@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe" - integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg== - dependencies: - "@types/json-schema" "^7.0.8" - ajv "^6.12.5" - ajv-keywords "^3.5.2" - schema-utils@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.0.tgz#3b669f04f71ff2dfb5aba7ce2d5a9d79b35622c0" @@ -2651,9 +2648,9 @@ semver@^6.3.0, semver@^6.3.1: integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== semver@^7.3.4, semver@^7.5.3, semver@^7.5.4: - version "7.6.3" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" - integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== + version "7.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.1.tgz#abd5098d82b18c6c81f6074ff2647fd3e7220c9f" + integrity sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA== serialize-javascript@^6.0.2: version "6.0.2" @@ -2842,10 +2839,10 @@ tapable@^2.1.1, tapable@^2.2.0: resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== -terser-webpack-plugin@^5.3.10: - version "5.3.11" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.11.tgz#93c21f44ca86634257cac176f884f942b7ba3832" - integrity sha512-RVCsMfuD0+cTt3EwX8hSl2Ks56EbFHWmhluwcqoPKtBnfjiT6olaq7PRIRfhyU8nnC2MrnDrBLfrD/RGE+cVXQ== +terser-webpack-plugin@^5.3.11: + version "5.3.14" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.14.tgz#9031d48e57ab27567f02ace85c7d690db66c3e06" + integrity sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw== dependencies: "@jridgewell/trace-mapping" "^0.3.25" jest-worker "^27.4.5" @@ -2854,9 +2851,9 @@ terser-webpack-plugin@^5.3.10: terser "^5.31.1" terser@^5.31.1: - version "5.37.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.37.0.tgz#38aa66d1cfc43d0638fab54e43ff8a4f72a21ba3" - integrity sha512-B8wRRkmre4ERucLM/uXx4MOV5cbnOlVAqUst+1+iLKPI0dOgFO28f84ptoQt9HEI537PMzfYa/d+GEPKTRXmYA== + version "5.39.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.39.0.tgz#0e82033ed57b3ddf1f96708d123cca717d86ca3a" + integrity sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw== dependencies: "@jridgewell/source-map" "^0.3.3" acorn "^8.8.2" @@ -2921,9 +2918,9 @@ ts-jest@29.1.1: yargs-parser "^21.0.1" ts-loader@^9.3.1: - version "9.5.1" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.1.tgz#63d5912a86312f1fbe32cef0859fb8b2193d9b89" - integrity sha512-rNH3sK9kGZcH9dYzC7CewQm4NtxJTjSEVRJ2DyBZR7f8/wcta+iV44UPCXc5+nzDzivKtlzV6c9P4e+oFhDLYg== + version "9.5.2" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.2.tgz#1f3d7f4bb709b487aaa260e8f19b301635d08020" + integrity sha512-Qo4piXvOTWcMGIgRiuFa6nHNm+54HbYaZCKqc9eeZCLRy3XqafQgwX2F7mofrbJG3g7EEb+lkiR+z2Lic2s3Zw== dependencies: chalk "^4.1.0" enhanced-resolve "^5.0.0" @@ -2957,19 +2954,12 @@ universalify@^0.2.0: integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== update-browserslist-db@^1.1.1: - 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== + version "1.1.3" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz#348377dd245216f9e7060ff50b15a1b740b75420" + integrity sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw== dependencies: escalade "^3.2.0" - picocolors "^1.1.0" - -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" + picocolors "^1.1.1" url-join@4.0.1: version "4.0.1" @@ -3031,9 +3021,9 @@ webpack-sources@^3.2.3: integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== webpack@^5.94.0: - version "5.97.1" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.97.1.tgz#972a8320a438b56ff0f1d94ade9e82eac155fa58" - integrity sha512-EksG6gFY3L1eFMROS/7Wzgrii5mBAFe4rIr3r2BTfo7bcc+DWwFZ4OJ/miOuHJO/A85HwyI4eQ0F6IKXesO7Fg== + version "5.98.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.98.0.tgz#44ae19a8f2ba97537978246072fb89d10d1fbd17" + integrity sha512-UFynvx+gM44Gv9qFgj0acCQK2VE1CtdfwFdimkapco3hlPCJ/zeq73n2yVKimVbtm+TnApIugGhLJnkU6gjYXA== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.6" @@ -3053,9 +3043,9 @@ webpack@^5.94.0: loader-runner "^4.2.0" mime-types "^2.1.27" neo-async "^2.6.2" - schema-utils "^3.2.0" + schema-utils "^4.3.0" tapable "^2.1.1" - terser-webpack-plugin "^5.3.10" + terser-webpack-plugin "^5.3.11" watchpack "^2.4.1" webpack-sources "^3.2.3" @@ -3117,9 +3107,9 @@ write-file-atomic@^4.0.2: signal-exit "^3.0.7" ws@^8.11.0: - version "8.18.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc" - integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw== + version "8.18.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.1.tgz#ea131d3784e1dfdff91adb0a4a116b127515e3cb" + integrity sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w== xml-name-validator@^4.0.0: version "4.0.0"