diff --git a/README.md b/README.md index a9441d7..b55707b 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 faac874..0a5a610 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "intercom-client", - "version": "6.1.0", + "version": "v6.1.1", "private": false, "repository": "https://github.com/intercom/intercom-node", "main": "./index.js", diff --git a/reference.md b/reference.md index e07b5d9..65fd0e3 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 25141fb..8877835 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 a37c556..660e6d8 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 75bb59c..9ff6fdb 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 6d654f3..28fae74 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 2b1c744..a9bed2d 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 feedc54..df17095 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 f24256a..303e547 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 8a9064d..1696efc 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 67de1e4..d4fcbd9 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 82e0cb1..a0e9487 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 bcba68d..1daef23 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 9656e54..e5ed854 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 755013e..010b3fe 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 ce135ff..feaf5a9 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 668debc..b023e82 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 0216809..8ab0791 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 4b044c0..9a980a7 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 e8bdfb4..249ba18 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 5d47d7f..68729f8 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 8d996de..3aa7071 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 ad8aa65..53ca5a7 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 d11b193..8619054 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 20106a1..b4720b2 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 ec8654a..dc9e4d3 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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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": "v6.1.1", + "User-Agent": "intercom-client/v6.1.1", "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 9bb7744..faf9ef3 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 240ee1e..3260e2c 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 90a0ff3..4bd8a08 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 a9af4e6..e9bf93e 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 0000000..618d4b8 --- /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 03b2def..ded8078 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 0105d13..9e9f5ed 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "6.1.0"; +export const SDK_VERSION = "v6.1.1"; diff --git a/yarn.lock b/yarn.lock index a53e591..970f6ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1102,9 +1102,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001688: - version "1.0.30001704" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001704.tgz#6644fe909d924ac3a7125e8a0ab6af95b1f32990" - integrity sha512-+L2IgBbV6gXB4ETf0keSvLr7JUrRVbIaB/lrQ1+z8mRcQiisG5k+lG6O4n6Y5q6f5EuNfaYXKgymucphlEXQew== + version "1.0.30001706" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001706.tgz#902c3f896f4b2968031c3a546ab2ef8b465a2c8f" + integrity sha512-3ZczoTApMAZwPKYWmwVbQMFpXBDds3/0VciVoUwPUbldlYyVLmRVuRs/PcUZtHpbLRpzzDvrvnFuREsGt6lUug== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -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.122" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.122.tgz#4fabd37b30b71dc041f6c6c4bab309b3f8348fcb" + integrity sha512-EML1wnwkY5MFh/xUnCvY8FrhUuKzdYhowuZExZOfwJo+Zu9OsNCI23Cgl5y7awy7HrUHSwB1Z8pZX5TI34lsUg== emittery@^0.13.1: version "0.13.1" @@ -2382,9 +2382,9 @@ npm-run-path@^4.0.1: path-key "^3.0.0" nwsapi@^2.2.2: - version "2.2.18" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.18.tgz#3c4d7927e1ef4d042d319438ecfda6cd81b7ee41" - integrity sha512-p1TRH/edngVEHVbwqWnxUViEmq5znDvyB+Sik5cmuLpGOIfDf/39zLiq3swPF8Vakqn+gvNiOQAZu8djYlQILA== + version "2.2.19" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.19.tgz#586660f7c24c34691907002309a8dc28064c9c0b" + integrity sha512-94bcyI3RsqiZufXjkr3ltkI86iEl+I7uiHVDtcq9wJUTwYQJ5odHDeSzkkrRzi80jJ8MaeZgqKjH1bAWAFw9bA== object-inspect@^1.13.3: version "1.13.4"