Skip to content

Commit c484b93

Browse files
SDK regeneration (#481)
1 parent 217f6d3 commit c484b93

File tree

35 files changed

+271
-272
lines changed

35 files changed

+271
-272
lines changed

README.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -88,28 +88,6 @@ while (page.hasNextPage()) {
8888
}
8989
```
9090

91-
## Request Options
92-
93-
This client library also supports passing in [`request` options](https://github.com/axios/axios#request-config):
94-
95-
```typescript
96-
client.useRequestOpts({
97-
baseURL: "http://local.test-server.com",
98-
});
99-
```
100-
101-
Note that certain request options (such as `json`, and certain `headers` names cannot be overriden).
102-
103-
### Setting the API base url
104-
105-
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:
106-
107-
```typescript
108-
client.useRequestOpts({
109-
baseURL: "https://api.eu.intercom.io",
110-
});
111-
```
112-
11391
## Advanced
11492

11593
### Additional Headers
@@ -192,6 +170,28 @@ const client = new IntercomClient({
192170
});
193171
```
194172

173+
## Request Options
174+
175+
This client library also supports passing in [`request` options](https://github.com/axios/axios#request-config):
176+
177+
```typescript
178+
client.useRequestOpts({
179+
baseURL: "http://local.test-server.com",
180+
});
181+
```
182+
183+
Note that certain request options (such as `json`, and certain `headers` names cannot be overriden).
184+
185+
### Setting the API base url
186+
187+
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:
188+
189+
```typescript
190+
client.useRequestOpts({
191+
baseURL: "https://api.eu.intercom.io",
192+
});
193+
```
194+
195195
## Contributing
196196

197197
While we value open-source contributions to this SDK, this library is generated programmatically.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intercom-client",
3-
"version": "6.1.0",
3+
"version": "v6.1.1",
44
"private": false,
55
"repository": "https://github.com/intercom/intercom-node",
66
"main": "./index.js",

reference.md

-1
Original file line numberDiff line numberDiff line change
@@ -5032,7 +5032,6 @@ Duplicated events are responded to using the normal `202 Accepted` code - an err
50325032
- Events sent about users that cannot be found will return a `404 Not Found`.
50335033
- Event lists containing duplicate events will have those duplicates ignored.
50345034
- Server errors will return a `500` response code and may contain an error message in the body.
5035-
50365035
</dd>
50375036
</dl>
50385037
</dd>

src/api/resources/admins/client/Client.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export class Admins {
9797
Authorization: await this._getAuthorizationHeader(),
9898
"X-Fern-Language": "JavaScript",
9999
"X-Fern-SDK-Name": "intercom-client",
100-
"X-Fern-SDK-Version": "6.1.0",
101-
"User-Agent": "intercom-client/6.1.0",
100+
"X-Fern-SDK-Version": "v6.1.1",
101+
"User-Agent": "intercom-client/v6.1.1",
102102
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
103103
"X-Fern-Runtime": core.RUNTIME.type,
104104
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -167,8 +167,8 @@ export class Admins {
167167
Authorization: await this._getAuthorizationHeader(),
168168
"X-Fern-Language": "JavaScript",
169169
"X-Fern-SDK-Name": "intercom-client",
170-
"X-Fern-SDK-Version": "6.1.0",
171-
"User-Agent": "intercom-client/6.1.0",
170+
"X-Fern-SDK-Version": "v6.1.1",
171+
"User-Agent": "intercom-client/v6.1.1",
172172
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
173173
"X-Fern-Runtime": core.RUNTIME.type,
174174
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -249,8 +249,8 @@ export class Admins {
249249
Authorization: await this._getAuthorizationHeader(),
250250
"X-Fern-Language": "JavaScript",
251251
"X-Fern-SDK-Name": "intercom-client",
252-
"X-Fern-SDK-Version": "6.1.0",
253-
"User-Agent": "intercom-client/6.1.0",
252+
"X-Fern-SDK-Version": "v6.1.1",
253+
"User-Agent": "intercom-client/v6.1.1",
254254
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
255255
"X-Fern-Runtime": core.RUNTIME.type,
256256
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -315,8 +315,8 @@ export class Admins {
315315
Authorization: await this._getAuthorizationHeader(),
316316
"X-Fern-Language": "JavaScript",
317317
"X-Fern-SDK-Name": "intercom-client",
318-
"X-Fern-SDK-Version": "6.1.0",
319-
"User-Agent": "intercom-client/6.1.0",
318+
"X-Fern-SDK-Version": "v6.1.1",
319+
"User-Agent": "intercom-client/v6.1.1",
320320
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
321321
"X-Fern-Runtime": core.RUNTIME.type,
322322
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -388,8 +388,8 @@ export class Admins {
388388
Authorization: await this._getAuthorizationHeader(),
389389
"X-Fern-Language": "JavaScript",
390390
"X-Fern-SDK-Name": "intercom-client",
391-
"X-Fern-SDK-Version": "6.1.0",
392-
"User-Agent": "intercom-client/6.1.0",
391+
"X-Fern-SDK-Version": "v6.1.1",
392+
"User-Agent": "intercom-client/v6.1.1",
393393
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
394394
"X-Fern-Runtime": core.RUNTIME.type,
395395
"X-Fern-Runtime-Version": core.RUNTIME.version,

src/api/resources/articles/client/Client.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ export class Articles {
112112
Authorization: await this._getAuthorizationHeader(),
113113
"X-Fern-Language": "JavaScript",
114114
"X-Fern-SDK-Name": "intercom-client",
115-
"X-Fern-SDK-Version": "6.1.0",
116-
"User-Agent": "intercom-client/6.1.0",
115+
"X-Fern-SDK-Version": "v6.1.1",
116+
"User-Agent": "intercom-client/v6.1.1",
117117
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
118118
"X-Fern-Runtime": core.RUNTIME.type,
119119
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -219,8 +219,8 @@ export class Articles {
219219
Authorization: await this._getAuthorizationHeader(),
220220
"X-Fern-Language": "JavaScript",
221221
"X-Fern-SDK-Name": "intercom-client",
222-
"X-Fern-SDK-Version": "6.1.0",
223-
"User-Agent": "intercom-client/6.1.0",
222+
"X-Fern-SDK-Version": "v6.1.1",
223+
"User-Agent": "intercom-client/v6.1.1",
224224
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
225225
"X-Fern-Runtime": core.RUNTIME.type,
226226
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -295,8 +295,8 @@ export class Articles {
295295
Authorization: await this._getAuthorizationHeader(),
296296
"X-Fern-Language": "JavaScript",
297297
"X-Fern-SDK-Name": "intercom-client",
298-
"X-Fern-SDK-Version": "6.1.0",
299-
"User-Agent": "intercom-client/6.1.0",
298+
"X-Fern-SDK-Version": "v6.1.1",
299+
"User-Agent": "intercom-client/v6.1.1",
300300
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
301301
"X-Fern-Runtime": core.RUNTIME.type,
302302
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -372,8 +372,8 @@ export class Articles {
372372
Authorization: await this._getAuthorizationHeader(),
373373
"X-Fern-Language": "JavaScript",
374374
"X-Fern-SDK-Name": "intercom-client",
375-
"X-Fern-SDK-Version": "6.1.0",
376-
"User-Agent": "intercom-client/6.1.0",
375+
"X-Fern-SDK-Version": "v6.1.1",
376+
"User-Agent": "intercom-client/v6.1.1",
377377
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
378378
"X-Fern-Runtime": core.RUNTIME.type,
379379
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -448,8 +448,8 @@ export class Articles {
448448
Authorization: await this._getAuthorizationHeader(),
449449
"X-Fern-Language": "JavaScript",
450450
"X-Fern-SDK-Name": "intercom-client",
451-
"X-Fern-SDK-Version": "6.1.0",
452-
"User-Agent": "intercom-client/6.1.0",
451+
"X-Fern-SDK-Version": "v6.1.1",
452+
"User-Agent": "intercom-client/v6.1.1",
453453
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
454454
"X-Fern-Runtime": core.RUNTIME.type,
455455
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -540,8 +540,8 @@ export class Articles {
540540
Authorization: await this._getAuthorizationHeader(),
541541
"X-Fern-Language": "JavaScript",
542542
"X-Fern-SDK-Name": "intercom-client",
543-
"X-Fern-SDK-Version": "6.1.0",
544-
"User-Agent": "intercom-client/6.1.0",
543+
"X-Fern-SDK-Version": "v6.1.1",
544+
"User-Agent": "intercom-client/v6.1.1",
545545
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
546546
"X-Fern-Runtime": core.RUNTIME.type,
547547
"X-Fern-Runtime-Version": core.RUNTIME.version,

src/api/resources/companies/client/Client.ts

+22-22
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export class Companies {
140140
Authorization: await this._getAuthorizationHeader(),
141141
"X-Fern-Language": "JavaScript",
142142
"X-Fern-SDK-Name": "intercom-client",
143-
"X-Fern-SDK-Version": "6.1.0",
144-
"User-Agent": "intercom-client/6.1.0",
143+
"X-Fern-SDK-Version": "v6.1.1",
144+
"User-Agent": "intercom-client/v6.1.1",
145145
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
146146
"X-Fern-Runtime": core.RUNTIME.type,
147147
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -228,8 +228,8 @@ export class Companies {
228228
Authorization: await this._getAuthorizationHeader(),
229229
"X-Fern-Language": "JavaScript",
230230
"X-Fern-SDK-Name": "intercom-client",
231-
"X-Fern-SDK-Version": "6.1.0",
232-
"User-Agent": "intercom-client/6.1.0",
231+
"X-Fern-SDK-Version": "v6.1.1",
232+
"User-Agent": "intercom-client/v6.1.1",
233233
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
234234
"X-Fern-Runtime": core.RUNTIME.type,
235235
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -304,8 +304,8 @@ export class Companies {
304304
Authorization: await this._getAuthorizationHeader(),
305305
"X-Fern-Language": "JavaScript",
306306
"X-Fern-SDK-Name": "intercom-client",
307-
"X-Fern-SDK-Version": "6.1.0",
308-
"User-Agent": "intercom-client/6.1.0",
307+
"X-Fern-SDK-Version": "v6.1.1",
308+
"User-Agent": "intercom-client/v6.1.1",
309309
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
310310
"X-Fern-Runtime": core.RUNTIME.type,
311311
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -383,8 +383,8 @@ export class Companies {
383383
Authorization: await this._getAuthorizationHeader(),
384384
"X-Fern-Language": "JavaScript",
385385
"X-Fern-SDK-Name": "intercom-client",
386-
"X-Fern-SDK-Version": "6.1.0",
387-
"User-Agent": "intercom-client/6.1.0",
386+
"X-Fern-SDK-Version": "v6.1.1",
387+
"User-Agent": "intercom-client/v6.1.1",
388388
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
389389
"X-Fern-Runtime": core.RUNTIME.type,
390390
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -458,8 +458,8 @@ export class Companies {
458458
Authorization: await this._getAuthorizationHeader(),
459459
"X-Fern-Language": "JavaScript",
460460
"X-Fern-SDK-Name": "intercom-client",
461-
"X-Fern-SDK-Version": "6.1.0",
462-
"User-Agent": "intercom-client/6.1.0",
461+
"X-Fern-SDK-Version": "v6.1.1",
462+
"User-Agent": "intercom-client/v6.1.1",
463463
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
464464
"X-Fern-Runtime": core.RUNTIME.type,
465465
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -542,8 +542,8 @@ export class Companies {
542542
Authorization: await this._getAuthorizationHeader(),
543543
"X-Fern-Language": "JavaScript",
544544
"X-Fern-SDK-Name": "intercom-client",
545-
"X-Fern-SDK-Version": "6.1.0",
546-
"User-Agent": "intercom-client/6.1.0",
545+
"X-Fern-SDK-Version": "v6.1.1",
546+
"User-Agent": "intercom-client/v6.1.1",
547547
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
548548
"X-Fern-Runtime": core.RUNTIME.type,
549549
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -620,8 +620,8 @@ export class Companies {
620620
Authorization: await this._getAuthorizationHeader(),
621621
"X-Fern-Language": "JavaScript",
622622
"X-Fern-SDK-Name": "intercom-client",
623-
"X-Fern-SDK-Version": "6.1.0",
624-
"User-Agent": "intercom-client/6.1.0",
623+
"X-Fern-SDK-Version": "v6.1.1",
624+
"User-Agent": "intercom-client/v6.1.1",
625625
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
626626
"X-Fern-Runtime": core.RUNTIME.type,
627627
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -716,8 +716,8 @@ export class Companies {
716716
Authorization: await this._getAuthorizationHeader(),
717717
"X-Fern-Language": "JavaScript",
718718
"X-Fern-SDK-Name": "intercom-client",
719-
"X-Fern-SDK-Version": "6.1.0",
720-
"User-Agent": "intercom-client/6.1.0",
719+
"X-Fern-SDK-Version": "v6.1.1",
720+
"User-Agent": "intercom-client/v6.1.1",
721721
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
722722
"X-Fern-Runtime": core.RUNTIME.type,
723723
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -816,8 +816,8 @@ export class Companies {
816816
Authorization: await this._getAuthorizationHeader(),
817817
"X-Fern-Language": "JavaScript",
818818
"X-Fern-SDK-Name": "intercom-client",
819-
"X-Fern-SDK-Version": "6.1.0",
820-
"User-Agent": "intercom-client/6.1.0",
819+
"X-Fern-SDK-Version": "v6.1.1",
820+
"User-Agent": "intercom-client/v6.1.1",
821821
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
822822
"X-Fern-Runtime": core.RUNTIME.type,
823823
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -911,8 +911,8 @@ export class Companies {
911911
Authorization: await this._getAuthorizationHeader(),
912912
"X-Fern-Language": "JavaScript",
913913
"X-Fern-SDK-Name": "intercom-client",
914-
"X-Fern-SDK-Version": "6.1.0",
915-
"User-Agent": "intercom-client/6.1.0",
914+
"X-Fern-SDK-Version": "v6.1.1",
915+
"User-Agent": "intercom-client/v6.1.1",
916916
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
917917
"X-Fern-Runtime": core.RUNTIME.type,
918918
"X-Fern-Runtime-Version": core.RUNTIME.version,
@@ -992,8 +992,8 @@ export class Companies {
992992
Authorization: await this._getAuthorizationHeader(),
993993
"X-Fern-Language": "JavaScript",
994994
"X-Fern-SDK-Name": "intercom-client",
995-
"X-Fern-SDK-Version": "6.1.0",
996-
"User-Agent": "intercom-client/6.1.0",
995+
"X-Fern-SDK-Version": "v6.1.1",
996+
"User-Agent": "intercom-client/v6.1.1",
997997
"Intercom-Version": requestOptions?.version ?? this._options?.version ?? "2.11",
998998
"X-Fern-Runtime": core.RUNTIME.type,
999999
"X-Fern-Runtime-Version": core.RUNTIME.version,

0 commit comments

Comments
 (0)