Skip to content

Commit caf6919

Browse files
committed
SDK regeneration
1 parent 38db2d6 commit caf6919

File tree

483 files changed

+18550
-6245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

483 files changed

+18550
-6245
lines changed

README.md

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fintercom%2Fintercom-node)
44
[![npm shield](https://img.shields.io/npm/v/intercom-client)](https://www.npmjs.com/package/intercom-client)
55

6-
The Intercom TypeScript library provides convenient access to the Intercom API from TypeScript.
6+
The Intercom TypeScript library provides convenient access to the Intercom APIs from TypeScript.
77

88
## Project Updates
99

@@ -27,12 +27,8 @@ Instantiate and use the client with the following:
2727
import { IntercomClient } from "intercom-client";
2828

2929
const client = new IntercomClient({ token: "YOUR_TOKEN" });
30-
await client.articles.create({
31-
title: "Thanks for everything",
32-
description: "Description of the Article",
33-
body: "Body of the Article",
34-
author_id: 1295,
35-
state: "published",
30+
await client.aiContent.createContentImportSource({
31+
url: "https://www.example.com",
3632
});
3733
```
3834

@@ -58,7 +54,7 @@ will be thrown.
5854
import { IntercomError } from "intercom-client";
5955

6056
try {
61-
await client.articles.create(...);
57+
await client.aiContent.createContentImportSource(...);
6258
} catch (err) {
6359
if (err instanceof IntercomError) {
6460
console.log(err.statusCode);
@@ -96,7 +92,7 @@ while (page.hasNextPage()) {
9692
If you would like to send additional headers as part of the request, use the `headers` request option.
9793

9894
```typescript
99-
const response = await client.articles.create(..., {
95+
const response = await client.aiContent.createContentImportSource(..., {
10096
headers: {
10197
'X-Custom-Header': 'custom value'
10298
}
@@ -118,7 +114,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
118114
Use the `maxRetries` request option to configure this behavior.
119115

120116
```typescript
121-
const response = await client.articles.create(..., {
117+
const response = await client.aiContent.createContentImportSource(..., {
122118
maxRetries: 0 // override maxRetries at the request level
123119
});
124120
```
@@ -128,7 +124,7 @@ const response = await client.articles.create(..., {
128124
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
129125

130126
```typescript
131-
const response = await client.articles.create(..., {
127+
const response = await client.aiContent.createContentImportSource(..., {
132128
timeoutInSeconds: 30 // override timeout to 30s
133129
});
134130
```
@@ -139,7 +135,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
139135

140136
```typescript
141137
const controller = new AbortController();
142-
const response = await client.articles.create(..., {
138+
const response = await client.aiContent.createContentImportSource(..., {
143139
abortSignal: controller.signal
144140
});
145141
controller.abort(); // aborts the request
@@ -151,7 +147,7 @@ The SDK provides access to raw response data, including headers, through the `.w
151147
The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
152148

153149
```typescript
154-
const { data, rawResponse } = await client.articles.create(...).withRawResponse();
150+
const { data, rawResponse } = await client.aiContent.createContentImportSource(...).withRawResponse();
155151

156152
console.log(data);
157153
console.log(rawResponse.headers['X-My-Header']);
@@ -192,13 +188,3 @@ a proof of concept, but know that we will not be able to merge it as-is. We sugg
192188
an issue first to discuss with us!
193189

194190
On the other hand, contributions to the README are always very welcome!
195-
196-
## Contributing
197-
198-
While we value open-source contributions to this SDK, this library is generated programmatically.
199-
Additions made directly to this library would have to be moved over to our generation code,
200-
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
201-
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
202-
an issue first to discuss with us!
203-
204-
On the other hand, contributions to the README are always very welcome!

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intercom-client",
3-
"version": "6.4.0",
3+
"version": "7.0.0",
44
"private": false,
55
"repository": "https://github.com/intercom/intercom-node",
66
"main": "./index.js",

0 commit comments

Comments
 (0)