From ea2c43963e31be9676adab9227151af1380f1366 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 14 Mar 2025 18:13:04 +0000 Subject: [PATCH] SDK regeneration --- README.md | 44 +++++++------- package.json | 2 +- reference.md | 1 - src/api/resources/admins/client/Client.ts | 20 +++---- src/api/resources/articles/client/Client.ts | 24 ++++---- src/api/resources/companies/client/Client.ts | 44 +++++++------- src/api/resources/contacts/client/Client.ts | 60 +++++++++---------- src/api/resources/contacts/types/Contact.ts | 12 +--- .../resources/conversations/client/Client.ts | 53 ++++++++-------- .../resources/dataAttributes/client/Client.ts | 12 ++-- src/api/resources/dataExport/client/Client.ts | 16 ++--- src/api/resources/events/client/Client.ts | 14 ++--- .../resources/helpCenters/client/Client.ts | 8 +-- .../resources/collections/client/Client.ts | 20 +++---- src/api/resources/messages/client/Client.ts | 4 +- .../news/resources/feeds/client/Client.ts | 12 ++-- .../news/resources/items/client/Client.ts | 20 +++---- src/api/resources/notes/client/Client.ts | 12 ++-- .../phoneCallRedirects/client/Client.ts | 4 +- src/api/resources/segments/client/Client.ts | 8 +-- .../subscriptionTypes/client/Client.ts | 4 +- src/api/resources/tags/client/Client.ts | 41 +++++++------ src/api/resources/teams/client/Client.ts | 8 +-- .../resources/ticketTypes/client/Client.ts | 16 ++--- .../resources/attributes/client/Client.ts | 8 +-- src/api/resources/tickets/client/Client.ts | 20 +++---- src/api/resources/visitors/client/Client.ts | 12 ++-- src/api/types/ArticleList.ts | 2 +- src/api/types/CollectionList.ts | 2 +- src/api/types/CompanyList.ts | 2 +- src/api/types/NoteList.ts | 2 +- src/api/types/OffsetPages.ts | 15 +++++ src/api/types/index.ts | 1 + src/version.ts | 2 +- yarn.lock | 6 +- 35 files changed, 265 insertions(+), 266 deletions(-) create mode 100644 src/api/types/OffsetPages.ts diff --git a/README.md b/README.md index a9441d7c..b55707b6 100644 --- a/README.md +++ b/README.md @@ -88,28 +88,6 @@ while (page.hasNextPage()) { } ``` -## Request Options - -This client library also supports passing in [`request` options](https://github.com/axios/axios#request-config): - -```typescript -client.useRequestOpts({ - baseURL: "http://local.test-server.com", -}); -``` - -Note that certain request options (such as `json`, and certain `headers` names cannot be overriden). - -### Setting the API base url - -If you are using the european instance of intercom and would like to call it directly and not be redirected through our US instance, you can set the `baseUrl` as follows: - -```typescript -client.useRequestOpts({ - baseURL: "https://api.eu.intercom.io", -}); -``` - ## Advanced ### Additional Headers @@ -192,6 +170,28 @@ const client = new IntercomClient({ }); ``` +## Request Options + +This client library also supports passing in [`request` options](https://github.com/axios/axios#request-config): + +```typescript +client.useRequestOpts({ + baseURL: "http://local.test-server.com", +}); +``` + +Note that certain request options (such as `json`, and certain `headers` names cannot be overriden). + +### Setting the API base url + +If you are using the european instance of intercom and would like to call it directly and not be redirected through our US instance, you can set the `baseUrl` as follows: + +```typescript +client.useRequestOpts({ + baseURL: "https://api.eu.intercom.io", +}); +``` + ## Contributing While we value open-source contributions to this SDK, this library is generated programmatically. diff --git a/package.json b/package.json index faac874b..c125c886 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "intercom-client", - "version": "6.1.0", + "version": "6.2.0", "private": false, "repository": "https://github.com/intercom/intercom-node", "main": "./index.js", diff --git a/reference.md b/reference.md index e07b5d97..65fd0e3b 100644 --- a/reference.md +++ b/reference.md @@ -5032,7 +5032,6 @@ Duplicated events are responded to using the normal `202 Accepted` code - an err - Events sent about users that cannot be found will return a `404 Not Found`. - Event lists containing duplicate events will have those duplicates ignored. - Server errors will return a `500` response code and may contain an error message in the body. - diff --git a/src/api/resources/admins/client/Client.ts b/src/api/resources/admins/client/Client.ts index 25141fbf..33e48218 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/articles/client/Client.ts b/src/api/resources/articles/client/Client.ts index a37c5569..ae4ce187 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/companies/client/Client.ts b/src/api/resources/companies/client/Client.ts index 75bb59c4..e9af513e 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/contacts/client/Client.ts b/src/api/resources/contacts/client/Client.ts index 6d654f3a..b9e393cd 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1006,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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1102,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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1181,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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1252,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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1319,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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/contacts/types/Contact.ts b/src/api/resources/contacts/types/Contact.ts index 2b1c744e..a9bed2d3 100644 --- a/src/api/resources/contacts/types/Contact.ts +++ b/src/api/resources/contacts/types/Contact.ts @@ -88,19 +88,11 @@ export interface Contact { ios_last_seen_at?: number; /** The custom attributes which are set for the contact. */ custom_attributes?: Record; - avatar?: Contact.Avatar; + /** An image URL containing the avatar of a contact. */ + avatar?: string; tags?: Intercom.ContactTags; notes?: Intercom.ContactNotes; companies?: Intercom.ContactCompanies; location: Intercom.ContactLocation; social_profiles: Intercom.ContactSocialProfiles; } - -export namespace Contact { - export interface Avatar { - /** The type of object */ - type?: "avatar"; - /** An image URL containing the avatar of a contact. */ - image_url?: string; - } -} diff --git a/src/api/resources/conversations/client/Client.ts b/src/api/resources/conversations/client/Client.ts index feedc547..602dee74 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "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,6 @@ export class Conversations { * * This will return the Message model that has been created. * - * * @param {Intercom.CreateConversationRequest} request * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration. * @@ -222,8 +221,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -316,8 +315,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -375,7 +374,6 @@ export class Conversations { * If you want to reply to a coveration or take an action such as assign, unassign, open, close or snooze, take a look at the reply and manage endpoints. * {% /admonition %} * - * * @param {Intercom.UpdateConversationRequest} request * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration. * @@ -414,8 +412,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -601,8 +599,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -719,8 +717,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -839,8 +837,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -926,8 +924,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -983,7 +981,6 @@ export class Conversations { * 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 %} * - * * @param {Intercom.AttachContactToConversationRequest} request * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration. * @@ -1024,8 +1021,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1082,7 +1079,6 @@ export class Conversations { * 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 %} * - * * @param {Intercom.DetachContactFromConversationRequest} request * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration. * @@ -1113,8 +1109,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1173,7 +1169,6 @@ export class Conversations { * If you are redacting a conversation part, it must have a `body`. If you are redacting a source message, it must have been created by a contact. We will return a `conversation_part_not_redactable` error if these criteria are not met. * {% /admonition %} * - * * @param {Intercom.RedactConversationRequest} request * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration. * @@ -1208,8 +1203,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1290,8 +1285,8 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/dataAttributes/client/Client.ts b/src/api/resources/dataAttributes/client/Client.ts index f24256a1..3cf416d3 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/dataExport/client/Client.ts b/src/api/resources/dataExport/client/Client.ts index 8a9064d8..f7d2e238 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts index 67de1e49..a9cfc0b6 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -228,7 +228,6 @@ export class Events { * - Event lists containing duplicate events will have those duplicates ignored. * - Server errors will return a `500` response code and may contain an error message in the body. * - * * @param {Intercom.CreateDataEventRequest} request * @param {Events.RequestOptions} requestOptions - Request-specific configuration. * @@ -255,8 +254,8 @@ export class Events { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -303,7 +302,6 @@ export class Events { /** * Create event summaries for a user. Event summaries are used to track the number of times an event has occurred, the first time it occurred and the last time it occurred. * - * * @param {Intercom.ListEventSummariesRequest} request * @param {Events.RequestOptions} requestOptions - Request-specific configuration. * @@ -326,8 +324,8 @@ export class Events { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/helpCenters/client/Client.ts b/src/api/resources/helpCenters/client/Client.ts index 82e0cb17..02e92aab 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/helpCenters/resources/collections/client/Client.ts b/src/api/resources/helpCenters/resources/collections/client/Client.ts index bcba68d6..345c4d8d 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/messages/client/Client.ts b/src/api/resources/messages/client/Client.ts index 9656e54f..c74ed615 100644 --- a/src/api/resources/messages/client/Client.ts +++ b/src/api/resources/messages/client/Client.ts @@ -178,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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/news/resources/feeds/client/Client.ts b/src/api/resources/news/resources/feeds/client/Client.ts index 755013e9..508d7aa3 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/news/resources/items/client/Client.ts b/src/api/resources/news/resources/items/client/Client.ts index ce135ffe..128db5ee 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/notes/client/Client.ts b/src/api/resources/notes/client/Client.ts index 668debcb..9d1639da 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/phoneCallRedirects/client/Client.ts b/src/api/resources/phoneCallRedirects/client/Client.ts index 0216809a..2f66fece 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/segments/client/Client.ts b/src/api/resources/segments/client/Client.ts index 4b044c01..7313cfc1 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/subscriptionTypes/client/Client.ts b/src/api/resources/subscriptionTypes/client/Client.ts index e8bdfb4b..3296200a 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/tags/client/Client.ts b/src/api/resources/tags/client/Client.ts index 5d47d7fd..af577875 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -399,7 +399,6 @@ export class Tags { /** * You can fetch a list of all tags for a given workspace. * - * * @param {Tags.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Intercom.UnauthorizedError} @@ -418,8 +417,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -524,8 +523,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -600,8 +599,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -673,8 +672,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -752,8 +751,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -830,8 +829,8 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", - "X-Fern-SDK-Version": "6.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/teams/client/Client.ts b/src/api/resources/teams/client/Client.ts index 8d996de9..8245f3c8 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/ticketTypes/client/Client.ts b/src/api/resources/ticketTypes/client/Client.ts index ad8aa653..0c224b62 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/ticketTypes/resources/attributes/client/Client.ts b/src/api/resources/ticketTypes/resources/attributes/client/Client.ts index d11b193b..ba140d80 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/tickets/client/Client.ts b/src/api/resources/tickets/client/Client.ts index 20106a19..4a560692 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/visitors/client/Client.ts b/src/api/resources/visitors/client/Client.ts index ec8654a2..177ff7e6 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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -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.1.0", - "User-Agent": "intercom-client/6.1.0", + "X-Fern-SDK-Version": "6.2.0", + "User-Agent": "intercom-client/6.2.0", "Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/types/ArticleList.ts b/src/api/types/ArticleList.ts index 9bb7744b..faf9ef31 100644 --- a/src/api/types/ArticleList.ts +++ b/src/api/types/ArticleList.ts @@ -10,7 +10,7 @@ import * as Intercom from "../index"; export interface ArticleList { /** The type of the object - `list`. */ type: "list"; - pages?: Intercom.CursorPages; + pages?: unknown; /** A count of the total number of articles. */ total_count: number; /** An array of Article objects */ diff --git a/src/api/types/CollectionList.ts b/src/api/types/CollectionList.ts index 240ee1e5..3260e2c6 100644 --- a/src/api/types/CollectionList.ts +++ b/src/api/types/CollectionList.ts @@ -10,7 +10,7 @@ import * as Intercom from "../index"; export interface CollectionList { /** The type of the object - `list`. */ type: "list"; - pages?: Intercom.CursorPages; + pages?: Intercom.OffsetPages; /** A count of the total number of collections. */ total_count: number; /** An array of collection objects */ diff --git a/src/api/types/CompanyList.ts b/src/api/types/CompanyList.ts index 90a0ff32..4bd8a082 100644 --- a/src/api/types/CompanyList.ts +++ b/src/api/types/CompanyList.ts @@ -10,7 +10,7 @@ import * as Intercom from "../index"; export interface CompanyList { /** The type of object - `list`. */ type: "list"; - pages?: Intercom.CursorPages; + pages?: Intercom.OffsetPages; /** The total number of companies. */ total_count: number; /** An array containing Company Objects. */ diff --git a/src/api/types/NoteList.ts b/src/api/types/NoteList.ts index a9af4e69..e9bf93ee 100644 --- a/src/api/types/NoteList.ts +++ b/src/api/types/NoteList.ts @@ -14,5 +14,5 @@ export interface NoteList { data: Intercom.Note[]; /** A count of the total number of notes. */ total_count: number; - pages?: Intercom.CursorPages; + pages?: Intercom.OffsetPages; } diff --git a/src/api/types/OffsetPages.ts b/src/api/types/OffsetPages.ts new file mode 100644 index 00000000..618d4b85 --- /dev/null +++ b/src/api/types/OffsetPages.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface OffsetPages { + /** the type of object `offset_pages` */ + type: "offset_pages"; + /** The current offset */ + page?: number; + next?: string; + /** Number of results per page */ + per_page?: number; + /** Total number of pages */ + total_pages?: number; +} diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 03b2def2..ded80781 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -156,3 +156,4 @@ export * from "./UrlActionComponent"; export * from "./Visitor"; export * from "./VisitorDeletedObject"; export * from "./CustomAttributes"; +export * from "./OffsetPages"; diff --git a/src/version.ts b/src/version.ts index 0105d13d..35d67468 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "6.1.0"; +export const SDK_VERSION = "6.2.0"; diff --git a/yarn.lock b/yarn.lock index a53e591d..b24bc044 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1289,9 +1289,9 @@ dunder-proto@^1.0.1: gopd "^1.2.0" electron-to-chromium@^1.5.73: - version "1.5.116" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.116.tgz#b779d73cd0cc75305d12ae4f061d7f7bcee4c761" - integrity sha512-mufxTCJzLBQVvSdZzX1s5YAuXsN1M4tTyYxOOL1TcSKtIzQ9rjIrm7yFK80rN5dwGTePgdoABDSHpuVtRQh0Zw== + version "1.5.118" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.118.tgz#064bda9bfea1611074288adb1fdd1f787a131e21" + integrity sha512-yNDUus0iultYyVoEFLnQeei7LOQkL8wg8GQpkPCRrOlJXlcCwa6eGKZkxQ9ciHsqZyYbj8Jd94X1CTPzGm+uIA== emittery@^0.13.1: version "0.13.1"