intercom-client 6.0.0 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -30
- package/api/resources/admins/client/Client.js +10 -10
- package/api/resources/admins/types/Admin.d.ts +11 -2
- package/api/resources/articles/client/Client.js +12 -12
- package/api/resources/articles/client/requests/CreateArticleRequest.d.ts +9 -1
- package/api/resources/articles/client/requests/CreateArticleRequest.js +4 -0
- package/api/resources/articles/client/requests/UpdateArticleRequest.d.ts +9 -1
- package/api/resources/articles/client/requests/UpdateArticleRequest.js +4 -0
- package/api/resources/companies/client/Client.d.ts +2 -2
- package/api/resources/companies/client/Client.js +24 -24
- package/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.d.ts +1 -1
- package/api/resources/companies/types/Company.d.ts +1 -1
- package/api/resources/contacts/client/Client.d.ts +1 -2
- package/api/resources/contacts/client/Client.js +31 -32
- package/api/resources/contacts/types/Contact.d.ts +4 -11
- package/api/resources/conversations/client/Client.d.ts +28 -14
- package/api/resources/conversations/client/Client.js +52 -38
- package/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +2 -0
- package/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.ts +10 -20
- package/api/resources/dataAttributes/client/Client.js +6 -6
- package/api/resources/dataExport/client/Client.js +8 -8
- package/api/resources/events/client/Client.d.ts +0 -2
- package/api/resources/events/client/Client.js +6 -8
- package/api/resources/helpCenters/client/Client.js +4 -4
- package/api/resources/helpCenters/resources/collections/client/Client.js +10 -10
- package/api/resources/index.d.ts +0 -2
- package/api/resources/index.js +1 -3
- package/api/resources/messages/client/Client.d.ts +3 -23
- package/api/resources/messages/client/Client.js +5 -25
- package/api/resources/news/resources/feeds/client/Client.js +6 -6
- package/api/resources/news/resources/items/client/Client.js +10 -10
- package/api/resources/notes/client/Client.js +6 -6
- package/api/resources/phoneCallRedirects/client/Client.js +2 -2
- package/api/resources/segments/client/Client.js +4 -4
- package/api/resources/subscriptionTypes/client/Client.js +2 -2
- package/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +1 -1
- package/api/resources/tags/client/Client.d.ts +0 -1
- package/api/resources/tags/client/Client.js +20 -21
- package/api/resources/tags/types/Tag.d.ts +1 -1
- package/api/resources/teams/client/Client.js +4 -4
- package/api/resources/ticketTypes/client/Client.js +8 -8
- package/api/resources/ticketTypes/resources/attributes/client/Client.js +4 -4
- package/api/resources/tickets/client/Client.js +10 -10
- package/api/resources/visitors/client/Client.js +6 -6
- package/api/types/ActionComponent.d.ts +16 -0
- package/api/types/ArticleList.d.ts +1 -1
- package/api/types/ButtonComponent.d.ts +33 -0
- package/api/types/ButtonComponent.js +14 -0
- package/api/types/CanvasObject.d.ts +20 -0
- package/api/types/CheckboxComponent.d.ts +36 -0
- package/api/types/CheckboxComponent.js +14 -0
- package/api/types/CheckboxOption.d.ts +16 -0
- package/api/types/CheckboxOption.js +5 -0
- package/api/types/CollectionList.d.ts +1 -1
- package/api/types/CompanyList.d.ts +1 -1
- package/api/types/Component.d.ts +43 -0
- package/api/types/Component.js +5 -0
- package/api/types/ConfigureRequest.d.ts +22 -0
- package/api/types/ConfigureRequest.js +5 -0
- package/api/types/ConfigureResponse.d.ts +12 -0
- package/api/types/ConfigureResponse.js +5 -0
- package/api/types/ContactCompanies.d.ts +5 -0
- package/api/types/ContactCompany.d.ts +14 -0
- package/api/types/ContactCompany.js +5 -0
- package/api/types/ContentObject.d.ts +13 -0
- package/api/types/ContentObject.js +5 -0
- package/api/types/Context.d.ts +34 -0
- package/api/types/Context.js +15 -0
- package/api/types/ConversationSource.d.ts +19 -1
- package/api/types/ConversationSource.js +16 -0
- package/api/types/ConversationTeammates.d.ts +2 -2
- package/api/types/CurrentCanvas.d.ts +11 -0
- package/api/types/CurrentCanvas.js +5 -0
- package/api/types/CustomAttributes.d.ts +2 -6
- package/api/types/DataEventSummaryItem.d.ts +1 -1
- package/api/types/DataTableComponent.d.ts +11 -0
- package/api/types/DataTableComponent.js +5 -0
- package/api/types/DataTableItem.d.ts +14 -0
- package/api/types/DataTableItem.js +5 -0
- package/api/types/DividerComponent.d.ts +12 -0
- package/api/types/DividerComponent.js +5 -0
- package/api/types/DropdownComponent.d.ts +34 -0
- package/api/types/DropdownComponent.js +14 -0
- package/api/types/DropdownOption.d.ts +16 -0
- package/api/types/DropdownOption.js +5 -0
- package/api/types/Error_.d.ts +1 -1
- package/api/types/Event.d.ts +10 -0
- package/api/types/Event.js +5 -0
- package/api/types/ImageComponent.d.ts +40 -0
- package/api/types/ImageComponent.js +15 -0
- package/api/types/InitializeRequest.d.ts +23 -0
- package/api/types/InitializeRequest.js +5 -0
- package/api/types/InitializeResponse.d.ts +11 -0
- package/api/types/InitializeResponse.js +5 -0
- package/api/types/InputComponent.d.ts +37 -0
- package/api/types/InputComponent.js +14 -0
- package/api/types/ListComponent.d.ts +23 -0
- package/api/types/ListComponent.js +5 -0
- package/api/types/ListItem.d.ts +25 -0
- package/api/types/ListItem.js +5 -0
- package/api/types/ListItemWithImage.d.ts +12 -0
- package/api/types/ListItemWithImage.js +5 -0
- package/api/types/ListItemWithoutImage.d.ts +12 -0
- package/api/types/ListItemWithoutImage.js +5 -0
- package/api/types/LiveCanvasRequest.d.ts +21 -0
- package/api/types/LiveCanvasRequest.js +5 -0
- package/api/types/LiveCanvasResponse.d.ts +11 -0
- package/api/types/LiveCanvasResponse.js +5 -0
- package/api/types/MultipleFilterSearchRequest.d.ts +1 -8
- package/api/types/MultipleOrSingleFilterSearchRequest.d.ts +5 -0
- package/api/types/MultipleOrSingleFilterSearchRequest.js +5 -0
- package/api/types/NoteList.d.ts +1 -1
- package/api/types/OffsetPages.d.ts +14 -0
- package/api/types/OffsetPages.js +5 -0
- package/api/types/ResultsResponse.d.ts +10 -0
- package/api/types/ResultsResponse.js +5 -0
- package/api/types/SheetActionComponent.d.ts +12 -0
- package/api/types/SheetActionComponent.js +5 -0
- package/api/types/SingleFilterSearchRequest.d.ts +5 -1
- package/api/types/SingleSelectComponent.d.ts +39 -0
- package/api/types/SingleSelectComponent.js +14 -0
- package/api/types/SingleSelectOption.d.ts +16 -0
- package/api/types/SingleSelectOption.js +5 -0
- package/api/types/SocialProfile.d.ts +1 -1
- package/api/types/SpacerComponent.d.ts +25 -0
- package/api/types/SpacerComponent.js +16 -0
- package/api/types/SubmitActionComponent.d.ts +8 -0
- package/api/types/SubmitActionComponent.js +5 -0
- package/api/types/SubmitRequest.d.ts +29 -0
- package/api/types/SubmitRequest.js +5 -0
- package/api/types/SubmitResponse.d.ts +23 -0
- package/api/types/SubmitResponse.js +5 -0
- package/api/types/TextAreaComponent.d.ts +22 -0
- package/api/types/TextAreaComponent.js +5 -0
- package/api/types/TextComponent.d.ts +39 -0
- package/api/types/TextComponent.js +20 -0
- package/api/types/TicketTypeAttribute.d.ts +16 -1
- package/api/types/TicketTypeAttribute.js +13 -0
- package/api/types/UrlActionComponent.d.ts +10 -0
- package/api/types/UrlActionComponent.js +5 -0
- package/api/types/Visitor.d.ts +2 -2
- package/api/types/index.d.ts +42 -1
- package/api/types/index.js +42 -1
- package/dist/api/resources/admins/client/Client.js +10 -10
- package/dist/api/resources/admins/types/Admin.d.ts +11 -2
- package/dist/api/resources/articles/client/Client.js +12 -12
- package/dist/api/resources/articles/client/requests/CreateArticleRequest.d.ts +9 -1
- package/dist/api/resources/articles/client/requests/CreateArticleRequest.js +4 -0
- package/dist/api/resources/articles/client/requests/UpdateArticleRequest.d.ts +9 -1
- package/dist/api/resources/articles/client/requests/UpdateArticleRequest.js +4 -0
- package/dist/api/resources/companies/client/Client.d.ts +2 -2
- package/dist/api/resources/companies/client/Client.js +24 -24
- package/dist/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.d.ts +1 -1
- package/dist/api/resources/companies/types/Company.d.ts +1 -1
- package/dist/api/resources/contacts/client/Client.d.ts +1 -2
- package/dist/api/resources/contacts/client/Client.js +31 -32
- package/dist/api/resources/contacts/types/Contact.d.ts +4 -11
- package/dist/api/resources/conversations/client/Client.d.ts +28 -14
- package/dist/api/resources/conversations/client/Client.js +52 -38
- package/dist/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +2 -0
- package/dist/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.ts +10 -20
- package/dist/api/resources/dataAttributes/client/Client.js +6 -6
- package/dist/api/resources/dataExport/client/Client.js +8 -8
- package/dist/api/resources/events/client/Client.d.ts +0 -2
- package/dist/api/resources/events/client/Client.js +6 -8
- package/dist/api/resources/helpCenters/client/Client.js +4 -4
- package/dist/api/resources/helpCenters/resources/collections/client/Client.js +10 -10
- package/dist/api/resources/index.d.ts +0 -2
- package/dist/api/resources/index.js +1 -3
- package/dist/api/resources/messages/client/Client.d.ts +3 -23
- package/dist/api/resources/messages/client/Client.js +5 -25
- package/dist/api/resources/news/resources/feeds/client/Client.js +6 -6
- package/dist/api/resources/news/resources/items/client/Client.js +10 -10
- package/dist/api/resources/notes/client/Client.js +6 -6
- package/dist/api/resources/phoneCallRedirects/client/Client.js +2 -2
- package/dist/api/resources/segments/client/Client.js +4 -4
- package/dist/api/resources/subscriptionTypes/client/Client.js +2 -2
- package/dist/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +1 -1
- package/dist/api/resources/tags/client/Client.d.ts +0 -1
- package/dist/api/resources/tags/client/Client.js +20 -21
- package/dist/api/resources/tags/types/Tag.d.ts +1 -1
- package/dist/api/resources/teams/client/Client.js +4 -4
- package/dist/api/resources/ticketTypes/client/Client.js +8 -8
- package/dist/api/resources/ticketTypes/resources/attributes/client/Client.js +4 -4
- package/dist/api/resources/tickets/client/Client.js +10 -10
- package/dist/api/resources/visitors/client/Client.js +6 -6
- package/dist/api/types/ActionComponent.d.ts +16 -0
- package/dist/api/types/ActionComponent.js +5 -0
- package/dist/api/types/ArticleList.d.ts +1 -1
- package/dist/api/types/ButtonComponent.d.ts +33 -0
- package/dist/api/types/ButtonComponent.js +14 -0
- package/dist/api/types/CanvasObject.d.ts +20 -0
- package/dist/api/types/CanvasObject.js +5 -0
- package/dist/api/types/CheckboxComponent.d.ts +36 -0
- package/dist/api/types/CheckboxComponent.js +14 -0
- package/dist/api/types/CheckboxOption.d.ts +16 -0
- package/dist/api/types/CheckboxOption.js +5 -0
- package/dist/api/types/CollectionList.d.ts +1 -1
- package/dist/api/types/CompanyList.d.ts +1 -1
- package/dist/api/types/Component.d.ts +43 -0
- package/dist/api/types/Component.js +5 -0
- package/dist/api/types/ConfigureRequest.d.ts +22 -0
- package/dist/api/types/ConfigureRequest.js +5 -0
- package/dist/api/types/ConfigureResponse.d.ts +12 -0
- package/dist/api/types/ConfigureResponse.js +5 -0
- package/dist/api/types/ContactCompanies.d.ts +5 -0
- package/dist/api/types/ContactCompany.d.ts +14 -0
- package/dist/api/types/ContactCompany.js +5 -0
- package/dist/api/types/ContentObject.d.ts +13 -0
- package/dist/api/types/ContentObject.js +5 -0
- package/dist/api/types/Context.d.ts +34 -0
- package/dist/api/types/Context.js +15 -0
- package/dist/api/types/ConversationSource.d.ts +19 -1
- package/dist/api/types/ConversationSource.js +16 -0
- package/dist/api/types/ConversationTeammates.d.ts +2 -2
- package/dist/api/types/CurrentCanvas.d.ts +11 -0
- package/dist/api/types/CurrentCanvas.js +5 -0
- package/dist/api/types/CustomAttributes.d.ts +2 -6
- package/dist/api/types/DataEventSummaryItem.d.ts +1 -1
- package/dist/api/types/DataTableComponent.d.ts +11 -0
- package/dist/api/types/DataTableComponent.js +5 -0
- package/dist/api/types/DataTableItem.d.ts +14 -0
- package/dist/api/types/DataTableItem.js +5 -0
- package/dist/api/types/DividerComponent.d.ts +12 -0
- package/dist/api/types/DividerComponent.js +5 -0
- package/dist/api/types/DropdownComponent.d.ts +34 -0
- package/dist/api/types/DropdownComponent.js +14 -0
- package/dist/api/types/DropdownOption.d.ts +16 -0
- package/dist/api/types/DropdownOption.js +5 -0
- package/dist/api/types/Error_.d.ts +1 -1
- package/dist/api/types/Event.d.ts +10 -0
- package/dist/api/types/Event.js +5 -0
- package/dist/api/types/ImageComponent.d.ts +40 -0
- package/dist/api/types/ImageComponent.js +15 -0
- package/dist/api/types/InitializeRequest.d.ts +23 -0
- package/dist/api/types/InitializeRequest.js +5 -0
- package/dist/api/types/InitializeResponse.d.ts +11 -0
- package/dist/api/types/InitializeResponse.js +5 -0
- package/dist/api/types/InputComponent.d.ts +37 -0
- package/dist/api/types/InputComponent.js +14 -0
- package/dist/api/types/ListComponent.d.ts +23 -0
- package/dist/api/types/ListComponent.js +5 -0
- package/dist/api/types/ListItem.d.ts +25 -0
- package/dist/api/types/ListItem.js +5 -0
- package/dist/api/types/ListItemWithImage.d.ts +12 -0
- package/dist/api/types/ListItemWithImage.js +5 -0
- package/dist/api/types/ListItemWithoutImage.d.ts +12 -0
- package/dist/api/types/ListItemWithoutImage.js +5 -0
- package/dist/api/types/LiveCanvasRequest.d.ts +21 -0
- package/dist/api/types/LiveCanvasRequest.js +5 -0
- package/dist/api/types/LiveCanvasResponse.d.ts +11 -0
- package/dist/api/types/LiveCanvasResponse.js +5 -0
- package/dist/api/types/MultipleFilterSearchRequest.d.ts +1 -8
- package/dist/api/types/MultipleOrSingleFilterSearchRequest.d.ts +5 -0
- package/dist/api/types/MultipleOrSingleFilterSearchRequest.js +5 -0
- package/dist/api/types/NoteList.d.ts +1 -1
- package/dist/api/types/OffsetPages.d.ts +14 -0
- package/dist/api/types/OffsetPages.js +5 -0
- package/dist/api/types/ResultsResponse.d.ts +10 -0
- package/dist/api/types/ResultsResponse.js +5 -0
- package/dist/api/types/SheetActionComponent.d.ts +12 -0
- package/dist/api/types/SheetActionComponent.js +5 -0
- package/dist/api/types/SingleFilterSearchRequest.d.ts +5 -1
- package/dist/api/types/SingleSelectComponent.d.ts +39 -0
- package/dist/api/types/SingleSelectComponent.js +14 -0
- package/dist/api/types/SingleSelectOption.d.ts +16 -0
- package/dist/api/types/SingleSelectOption.js +5 -0
- package/dist/api/types/SocialProfile.d.ts +1 -1
- package/dist/api/types/SpacerComponent.d.ts +25 -0
- package/dist/api/types/SpacerComponent.js +16 -0
- package/dist/api/types/SubmitActionComponent.d.ts +8 -0
- package/dist/api/types/SubmitActionComponent.js +5 -0
- package/dist/api/types/SubmitRequest.d.ts +29 -0
- package/dist/api/types/SubmitRequest.js +5 -0
- package/dist/api/types/SubmitResponse.d.ts +23 -0
- package/dist/api/types/SubmitResponse.js +5 -0
- package/dist/api/types/TextAreaComponent.d.ts +22 -0
- package/dist/api/types/TextAreaComponent.js +5 -0
- package/dist/api/types/TextComponent.d.ts +39 -0
- package/dist/api/types/TextComponent.js +20 -0
- package/dist/api/types/TicketTypeAttribute.d.ts +16 -1
- package/dist/api/types/TicketTypeAttribute.js +13 -0
- package/dist/api/types/UrlActionComponent.d.ts +10 -0
- package/dist/api/types/UrlActionComponent.js +5 -0
- package/dist/api/types/Visitor.d.ts +2 -2
- package/dist/api/types/index.d.ts +42 -1
- package/dist/api/types/index.js +42 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +10 -2
- package/reference.md +12 -15
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/customObjectInstances/index.d.ts +0 -1
- package/api/resources/customObjectInstances/index.js +0 -17
- package/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +0 -16
- package/api/resources/customObjectInstances/types/index.d.ts +0 -1
- package/api/resources/customObjectInstances/types/index.js +0 -17
- package/dist/api/resources/customObjectInstances/index.d.ts +0 -1
- package/dist/api/resources/customObjectInstances/index.js +0 -17
- package/dist/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +0 -16
- package/dist/api/resources/customObjectInstances/types/index.d.ts +0 -1
- package/dist/api/resources/customObjectInstances/types/index.js +0 -17
- /package/api/{resources/customObjectInstances/types/CustomObjectInstance.js → types/ActionComponent.js} +0 -0
- /package/{dist/api/resources/customObjectInstances/types/CustomObjectInstance.js → api/types/CanvasObject.js} +0 -0
package/README.md
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
# Intercom TypeScript Library
|
|
1
|
+
# Intercom TypeScript Library
|
|
2
2
|
|
|
3
3
|
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fintercom%2Fintercom-node)
|
|
4
4
|
[](https://www.npmjs.com/package/intercom-client)
|
|
5
5
|
|
|
6
6
|
The Intercom TypeScript library provides convenient access to the Intercom API from TypeScript.
|
|
7
7
|
|
|
8
|
-
[](https://www.npmjs.com/package/intercom-client)
|
|
9
|
-

|
|
10
|
-

|
|
11
|
-
|
|
12
8
|
## Project Updates
|
|
13
9
|
|
|
14
10
|
The TypeScript SDK has been updated to support latest API version (2.11).
|
|
@@ -32,9 +28,9 @@ import { IntercomClient } from "intercom-client";
|
|
|
32
28
|
|
|
33
29
|
const client = new IntercomClient({ token: "YOUR_TOKEN" });
|
|
34
30
|
await client.articles.create({
|
|
35
|
-
title: "
|
|
36
|
-
description: "
|
|
37
|
-
body: "
|
|
31
|
+
title: "Thanks for everything",
|
|
32
|
+
description: "Description of the Article",
|
|
33
|
+
body: "Body of the Article",
|
|
38
34
|
author_id: 1295,
|
|
39
35
|
state: "published",
|
|
40
36
|
});
|
|
@@ -72,28 +68,6 @@ try {
|
|
|
72
68
|
}
|
|
73
69
|
```
|
|
74
70
|
|
|
75
|
-
## Request Options
|
|
76
|
-
|
|
77
|
-
This client library also supports passing in [`request` options](https://github.com/axios/axios#request-config):
|
|
78
|
-
|
|
79
|
-
```typescript
|
|
80
|
-
client.useRequestOpts({
|
|
81
|
-
baseURL: "http://local.test-server.com",
|
|
82
|
-
});
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
Note that certain request options (such as `json`, and certain `headers` names cannot be overriden).
|
|
86
|
-
|
|
87
|
-
### Setting the API base url
|
|
88
|
-
|
|
89
|
-
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:
|
|
90
|
-
|
|
91
|
-
```typescript
|
|
92
|
-
client.useRequestOpts({
|
|
93
|
-
baseURL: "https://api.eu.intercom.io",
|
|
94
|
-
});
|
|
95
|
-
```
|
|
96
|
-
|
|
97
71
|
## Pagination
|
|
98
72
|
|
|
99
73
|
List endpoints are paginated. The SDK provides an iterator so that you can simply loop over the items:
|
|
@@ -196,6 +170,28 @@ const client = new IntercomClient({
|
|
|
196
170
|
});
|
|
197
171
|
```
|
|
198
172
|
|
|
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
|
+
|
|
199
195
|
## Contributing
|
|
200
196
|
|
|
201
197
|
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
@@ -81,10 +81,10 @@ class Admins {
|
|
|
81
81
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
82
82
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "me"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
84
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
87
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
88
88
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
89
89
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
90
90
|
});
|
|
@@ -135,11 +135,11 @@ class Admins {
|
|
|
135
135
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
136
136
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `admins/${encodeURIComponent(adminId)}/away`),
|
|
137
137
|
method: "PUT",
|
|
138
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
138
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
139
139
|
contentType: "application/json",
|
|
140
140
|
requestType: "json",
|
|
141
141
|
body: _body,
|
|
142
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
142
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
143
143
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
144
144
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
145
145
|
});
|
|
@@ -200,11 +200,11 @@ class Admins {
|
|
|
200
200
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
201
201
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "admins/activity_logs"),
|
|
202
202
|
method: "GET",
|
|
203
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
203
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
204
204
|
contentType: "application/json",
|
|
205
205
|
queryParameters: _queryParams,
|
|
206
206
|
requestType: "json",
|
|
207
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
207
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
208
208
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
209
209
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
210
210
|
});
|
|
@@ -253,10 +253,10 @@ class Admins {
|
|
|
253
253
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
254
254
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "admins"),
|
|
255
255
|
method: "GET",
|
|
256
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
256
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
257
257
|
contentType: "application/json",
|
|
258
258
|
requestType: "json",
|
|
259
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
259
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
260
260
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
261
261
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
262
262
|
});
|
|
@@ -310,10 +310,10 @@ class Admins {
|
|
|
310
310
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
311
311
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `admins/${encodeURIComponent(adminId)}`),
|
|
312
312
|
method: "GET",
|
|
313
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
313
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
314
314
|
contentType: "application/json",
|
|
315
315
|
requestType: "json",
|
|
316
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
316
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
317
317
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
318
318
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
319
319
|
});
|
|
@@ -24,7 +24,16 @@ export interface Admin {
|
|
|
24
24
|
has_inbox_seat: boolean;
|
|
25
25
|
/** This object represents the avatar associated with the admin. */
|
|
26
26
|
team_ids: number[];
|
|
27
|
-
/**
|
|
28
|
-
avatar?:
|
|
27
|
+
/** The avatar object associated with the admin */
|
|
28
|
+
avatar?: Admin.Avatar;
|
|
29
29
|
team_priority_level?: Intercom.TeamPriorityLevel;
|
|
30
30
|
}
|
|
31
|
+
export declare namespace Admin {
|
|
32
|
+
/**
|
|
33
|
+
* The avatar object associated with the admin
|
|
34
|
+
*/
|
|
35
|
+
interface Avatar {
|
|
36
|
+
/** URL of the admin's avatar image */
|
|
37
|
+
image_url: string;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -92,11 +92,11 @@ class Articles {
|
|
|
92
92
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
93
93
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "articles"),
|
|
94
94
|
method: "GET",
|
|
95
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
95
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
96
96
|
contentType: "application/json",
|
|
97
97
|
queryParameters: _queryParams,
|
|
98
98
|
requestType: "json",
|
|
99
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
99
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
100
100
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
101
101
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
102
102
|
});
|
|
@@ -185,11 +185,11 @@ class Articles {
|
|
|
185
185
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
186
186
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "articles"),
|
|
187
187
|
method: "POST",
|
|
188
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
188
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
189
189
|
contentType: "application/json",
|
|
190
190
|
requestType: "json",
|
|
191
191
|
body: request,
|
|
192
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
192
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
193
193
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
194
194
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
195
195
|
});
|
|
@@ -245,10 +245,10 @@ class Articles {
|
|
|
245
245
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
246
246
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `articles/${encodeURIComponent(articleId)}`),
|
|
247
247
|
method: "GET",
|
|
248
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
248
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
249
249
|
contentType: "application/json",
|
|
250
250
|
requestType: "json",
|
|
251
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
251
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
252
252
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
253
253
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
254
254
|
});
|
|
@@ -306,11 +306,11 @@ class Articles {
|
|
|
306
306
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
307
307
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `articles/${encodeURIComponent(articleId)}`),
|
|
308
308
|
method: "PUT",
|
|
309
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
309
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
310
310
|
contentType: "application/json",
|
|
311
311
|
requestType: "json",
|
|
312
312
|
body: _body,
|
|
313
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
313
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
314
314
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
315
315
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
316
316
|
});
|
|
@@ -366,10 +366,10 @@ class Articles {
|
|
|
366
366
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
367
367
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `articles/${encodeURIComponent(articleId)}`),
|
|
368
368
|
method: "DELETE",
|
|
369
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
369
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
370
370
|
contentType: "application/json",
|
|
371
371
|
requestType: "json",
|
|
372
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
372
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
373
373
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
374
374
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
375
375
|
});
|
|
@@ -438,11 +438,11 @@ class Articles {
|
|
|
438
438
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
439
439
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "articles/search"),
|
|
440
440
|
method: "GET",
|
|
441
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
441
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
442
442
|
contentType: "application/json",
|
|
443
443
|
queryParameters: _queryParams,
|
|
444
444
|
requestType: "json",
|
|
445
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
445
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
446
446
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
447
447
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
448
448
|
});
|
|
@@ -47,7 +47,7 @@ export interface CreateArticleRequest {
|
|
|
47
47
|
/** The id of the article's parent collection or section. An article without this field stands alone. */
|
|
48
48
|
parent_id?: number;
|
|
49
49
|
/** The type of parent, which can either be a `collection` or `section`. */
|
|
50
|
-
parent_type?:
|
|
50
|
+
parent_type?: CreateArticleRequest.ParentType;
|
|
51
51
|
translated_content?: Intercom.ArticleTranslatedContent;
|
|
52
52
|
}
|
|
53
53
|
export declare namespace CreateArticleRequest {
|
|
@@ -59,4 +59,12 @@ export declare namespace CreateArticleRequest {
|
|
|
59
59
|
readonly Published: "published";
|
|
60
60
|
readonly Draft: "draft";
|
|
61
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* The type of parent, which can either be a `collection` or `section`.
|
|
64
|
+
*/
|
|
65
|
+
type ParentType = "collection" | "section";
|
|
66
|
+
const ParentType: {
|
|
67
|
+
readonly Collection: "collection";
|
|
68
|
+
readonly Section: "section";
|
|
69
|
+
};
|
|
62
70
|
}
|
|
@@ -10,4 +10,8 @@ var CreateArticleRequest;
|
|
|
10
10
|
Published: "published",
|
|
11
11
|
Draft: "draft",
|
|
12
12
|
};
|
|
13
|
+
CreateArticleRequest.ParentType = {
|
|
14
|
+
Collection: "collection",
|
|
15
|
+
Section: "section",
|
|
16
|
+
};
|
|
13
17
|
})(CreateArticleRequest = exports.CreateArticleRequest || (exports.CreateArticleRequest = {}));
|
|
@@ -35,7 +35,7 @@ export interface UpdateArticleRequest {
|
|
|
35
35
|
/** The id of the article's parent collection or section. An article without this field stands alone. */
|
|
36
36
|
parent_id?: string;
|
|
37
37
|
/** The type of parent, which can either be a `collection` or `section`. */
|
|
38
|
-
parent_type?:
|
|
38
|
+
parent_type?: UpdateArticleRequest.ParentType;
|
|
39
39
|
translated_content?: Intercom.ArticleTranslatedContent;
|
|
40
40
|
}
|
|
41
41
|
export declare namespace UpdateArticleRequest {
|
|
@@ -47,4 +47,12 @@ export declare namespace UpdateArticleRequest {
|
|
|
47
47
|
readonly Published: "published";
|
|
48
48
|
readonly Draft: "draft";
|
|
49
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* The type of parent, which can either be a `collection` or `section`.
|
|
52
|
+
*/
|
|
53
|
+
type ParentType = "collection" | "section";
|
|
54
|
+
const ParentType: {
|
|
55
|
+
readonly Collection: "collection";
|
|
56
|
+
readonly Section: "section";
|
|
57
|
+
};
|
|
50
58
|
}
|
|
@@ -10,4 +10,8 @@ var UpdateArticleRequest;
|
|
|
10
10
|
Published: "published",
|
|
11
11
|
Draft: "draft",
|
|
12
12
|
};
|
|
13
|
+
UpdateArticleRequest.ParentType = {
|
|
14
|
+
Collection: "collection",
|
|
15
|
+
Section: "section",
|
|
16
|
+
};
|
|
13
17
|
})(UpdateArticleRequest = exports.UpdateArticleRequest || (exports.UpdateArticleRequest = {}));
|
|
@@ -66,7 +66,7 @@ export declare class Companies {
|
|
|
66
66
|
*
|
|
67
67
|
* Companies are looked up via `company_id` in a `POST` request, if not found via `company_id`, the new company will be created, if found, that company will be updated.
|
|
68
68
|
*
|
|
69
|
-
* {% admonition type="
|
|
69
|
+
* {% admonition type="warning" name="Using `company_id`" %}
|
|
70
70
|
* You can set a unique `company_id` value when creating a company. However, it is not possible to update `company_id`. Be sure to set a unique value once upon creation of the company.
|
|
71
71
|
* {% /admonition %}
|
|
72
72
|
*
|
|
@@ -105,7 +105,7 @@ export declare class Companies {
|
|
|
105
105
|
/**
|
|
106
106
|
* You can update a single company using the Intercom provisioned `id`.
|
|
107
107
|
*
|
|
108
|
-
* {% admonition type="
|
|
108
|
+
* {% admonition type="warning" name="Using `company_id`" %}
|
|
109
109
|
* When updating a company it is not possible to update `company_id`. This can only be set once upon creation of the company.
|
|
110
110
|
* {% /admonition %}
|
|
111
111
|
*
|
|
@@ -115,11 +115,11 @@ class Companies {
|
|
|
115
115
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
116
116
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "companies"),
|
|
117
117
|
method: "GET",
|
|
118
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
118
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
119
119
|
contentType: "application/json",
|
|
120
120
|
queryParameters: _queryParams,
|
|
121
121
|
requestType: "json",
|
|
122
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
122
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
123
123
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
124
124
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
125
125
|
});
|
|
@@ -161,7 +161,7 @@ class Companies {
|
|
|
161
161
|
*
|
|
162
162
|
* Companies are looked up via `company_id` in a `POST` request, if not found via `company_id`, the new company will be created, if found, that company will be updated.
|
|
163
163
|
*
|
|
164
|
-
* {% admonition type="
|
|
164
|
+
* {% admonition type="warning" name="Using `company_id`" %}
|
|
165
165
|
* You can set a unique `company_id` value when creating a company. However, it is not possible to update `company_id`. Be sure to set a unique value once upon creation of the company.
|
|
166
166
|
* {% /admonition %}
|
|
167
167
|
*
|
|
@@ -187,11 +187,11 @@ class Companies {
|
|
|
187
187
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
188
188
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "companies"),
|
|
189
189
|
method: "POST",
|
|
190
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
190
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
191
191
|
contentType: "application/json",
|
|
192
192
|
requestType: "json",
|
|
193
193
|
body: request,
|
|
194
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
194
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
195
195
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
196
196
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
197
197
|
});
|
|
@@ -247,10 +247,10 @@ class Companies {
|
|
|
247
247
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
248
248
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `companies/${encodeURIComponent(companyId)}`),
|
|
249
249
|
method: "GET",
|
|
250
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
250
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
251
251
|
contentType: "application/json",
|
|
252
252
|
requestType: "json",
|
|
253
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
253
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
254
254
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
255
255
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
256
256
|
});
|
|
@@ -288,7 +288,7 @@ class Companies {
|
|
|
288
288
|
/**
|
|
289
289
|
* You can update a single company using the Intercom provisioned `id`.
|
|
290
290
|
*
|
|
291
|
-
* {% admonition type="
|
|
291
|
+
* {% admonition type="warning" name="Using `company_id`" %}
|
|
292
292
|
* When updating a company it is not possible to update `company_id`. This can only be set once upon creation of the company.
|
|
293
293
|
* {% /admonition %}
|
|
294
294
|
*
|
|
@@ -310,10 +310,10 @@ class Companies {
|
|
|
310
310
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
311
311
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `companies/${encodeURIComponent(companyId)}`),
|
|
312
312
|
method: "PUT",
|
|
313
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
313
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
314
314
|
contentType: "application/json",
|
|
315
315
|
requestType: "json",
|
|
316
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
316
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
317
317
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
318
318
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
319
319
|
});
|
|
@@ -369,10 +369,10 @@ class Companies {
|
|
|
369
369
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
370
370
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `companies/${encodeURIComponent(companyId)}`),
|
|
371
371
|
method: "DELETE",
|
|
372
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
372
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
373
373
|
contentType: "application/json",
|
|
374
374
|
requestType: "json",
|
|
375
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
375
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
376
376
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
377
377
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
378
378
|
});
|
|
@@ -435,11 +435,11 @@ class Companies {
|
|
|
435
435
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
436
436
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `companies/${encodeURIComponent(companyId)}/contacts`),
|
|
437
437
|
method: "GET",
|
|
438
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
438
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
439
439
|
contentType: "application/json",
|
|
440
440
|
queryParameters: _queryParams,
|
|
441
441
|
requestType: "json",
|
|
442
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
442
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
443
443
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
444
444
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
445
445
|
});
|
|
@@ -495,10 +495,10 @@ class Companies {
|
|
|
495
495
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
496
496
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `companies/${encodeURIComponent(companyId)}/segments`),
|
|
497
497
|
method: "GET",
|
|
498
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
498
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
499
499
|
contentType: "application/json",
|
|
500
500
|
requestType: "json",
|
|
501
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
501
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
502
502
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
503
503
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
504
504
|
});
|
|
@@ -572,11 +572,11 @@ class Companies {
|
|
|
572
572
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
573
573
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "companies/list"),
|
|
574
574
|
method: "POST",
|
|
575
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
575
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
576
576
|
contentType: "application/json",
|
|
577
577
|
queryParameters: _queryParams,
|
|
578
578
|
requestType: "json",
|
|
579
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
579
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
580
580
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
581
581
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
582
582
|
});
|
|
@@ -657,11 +657,11 @@ class Companies {
|
|
|
657
657
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
658
658
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "companies/scroll"),
|
|
659
659
|
method: "GET",
|
|
660
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
660
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
661
661
|
contentType: "application/json",
|
|
662
662
|
queryParameters: _queryParams,
|
|
663
663
|
requestType: "json",
|
|
664
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
664
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
665
665
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
666
666
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
667
667
|
});
|
|
@@ -738,11 +738,11 @@ class Companies {
|
|
|
738
738
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
739
739
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/companies`),
|
|
740
740
|
method: "POST",
|
|
741
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
741
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
742
742
|
contentType: "application/json",
|
|
743
743
|
requestType: "json",
|
|
744
744
|
body: _body,
|
|
745
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
745
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
746
746
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
747
747
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
748
748
|
});
|
|
@@ -801,10 +801,10 @@ class Companies {
|
|
|
801
801
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
802
802
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/companies/${encodeURIComponent(companyId)}`),
|
|
803
803
|
method: "DELETE",
|
|
804
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "
|
|
804
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
805
805
|
contentType: "application/json",
|
|
806
806
|
requestType: "json",
|
|
807
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
807
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
808
808
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
809
809
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
810
810
|
});
|
|
@@ -26,7 +26,7 @@ export interface CreateOrUpdateCompanyRequest {
|
|
|
26
26
|
/** The industry that this company operates in. */
|
|
27
27
|
industry?: string;
|
|
28
28
|
/** A hash of key/value pairs containing any other data about the company you want Intercom to store. */
|
|
29
|
-
custom_attributes?: Record<string,
|
|
29
|
+
custom_attributes?: Record<string, unknown>;
|
|
30
30
|
/** The time the company was created by you. */
|
|
31
31
|
remote_created_at?: number;
|
|
32
32
|
/** How much revenue the company generates for your business. Note that this will truncate floats. i.e. it only allow for whole integers, 155.98 will be truncated to 155. Note that this has an upper limit of 2**31-1 or 2147483647.. */
|
|
@@ -38,7 +38,7 @@ export interface Company {
|
|
|
38
38
|
/** The number of users in the company. */
|
|
39
39
|
user_count: number;
|
|
40
40
|
/** The custom attributes you have set on the company. */
|
|
41
|
-
custom_attributes?: Record<string,
|
|
41
|
+
custom_attributes?: Record<string, unknown>;
|
|
42
42
|
/** The list of tags associated with the company */
|
|
43
43
|
tags?: Company.Tags;
|
|
44
44
|
/** The list of segments associated with the company */
|