Skip to content

🌿 Fern Regeneration -- March 14, 2025 #480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 0 additions & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

</dd>
</dl>
</dd>
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/admins/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
24 changes: 12 additions & 12 deletions src/api/resources/articles/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
44 changes: 22 additions & 22 deletions src/api/resources/companies/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Loading