intercom-client 6.0.0 → 6.1.0
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 +24 -28
- 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 +3 -3
- package/api/resources/conversations/client/Client.d.ts +28 -9
- package/api/resources/conversations/client/Client.js +52 -33
- 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.js +6 -6
- 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.js +20 -20
- 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/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/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/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 +41 -1
- package/api/types/index.js +41 -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 +3 -3
- package/dist/api/resources/conversations/client/Client.d.ts +28 -9
- package/dist/api/resources/conversations/client/Client.js +52 -33
- 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.js +6 -6
- 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.js +20 -20
- 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/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/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/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 +41 -1
- package/dist/api/types/index.js +41 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +10 -2
- package/reference.md +12 -14
- 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
|
@@ -3,3 +3,16 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TicketTypeAttribute = void 0;
|
|
7
|
+
var TicketTypeAttribute;
|
|
8
|
+
(function (TicketTypeAttribute) {
|
|
9
|
+
TicketTypeAttribute.DataType = {
|
|
10
|
+
String: "string",
|
|
11
|
+
List: "list",
|
|
12
|
+
Integer: "integer",
|
|
13
|
+
Decimal: "decimal",
|
|
14
|
+
Boolean: "boolean",
|
|
15
|
+
Datetime: "datetime",
|
|
16
|
+
Files: "files",
|
|
17
|
+
};
|
|
18
|
+
})(TicketTypeAttribute = exports.TicketTypeAttribute || (exports.TicketTypeAttribute = {}));
|
package/api/types/Visitor.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as Intercom from "../index";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface Visitor {
|
|
9
9
|
/** Value is 'visitor' */
|
|
10
|
-
type:
|
|
10
|
+
type: "visitor";
|
|
11
11
|
/** The Intercom defined id representing the Visitor. */
|
|
12
12
|
id: string;
|
|
13
13
|
/** Automatically generated identifier for the Visitor. */
|
|
@@ -51,7 +51,7 @@ export interface Visitor {
|
|
|
51
51
|
tags?: Visitor.Tags;
|
|
52
52
|
segments?: Visitor.Segments;
|
|
53
53
|
/** The custom attributes you have set on the Visitor. */
|
|
54
|
-
custom_attributes?: Record<string,
|
|
54
|
+
custom_attributes?: Record<string, unknown>;
|
|
55
55
|
/** The referer of the visitor. */
|
|
56
56
|
referrer?: string;
|
|
57
57
|
/** The utm_campaign of the visitor. */
|
package/api/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./ActionComponent";
|
|
1
2
|
export * from "./ActivityLog";
|
|
2
3
|
export * from "./ActivityLogList";
|
|
3
4
|
export * from "./ActivityLogMetadata";
|
|
@@ -13,15 +14,23 @@ export * from "./ArticleList";
|
|
|
13
14
|
export * from "./ArticleStatistics";
|
|
14
15
|
export * from "./ArticleTranslatedContent";
|
|
15
16
|
export * from "./AssignConversationRequest";
|
|
17
|
+
export * from "./ButtonComponent";
|
|
18
|
+
export * from "./CanvasObject";
|
|
19
|
+
export * from "./CheckboxOption";
|
|
20
|
+
export * from "./CheckboxComponent";
|
|
16
21
|
export * from "./CloseConversationRequest";
|
|
17
22
|
export * from "./CollectionList";
|
|
18
23
|
export * from "./CompanyAttachedContacts";
|
|
19
24
|
export * from "./CompanyAttachedSegments";
|
|
20
25
|
export * from "./CompanyList";
|
|
21
26
|
export * from "./CompanyScroll";
|
|
27
|
+
export * from "./Component";
|
|
28
|
+
export * from "./ConfigureRequest";
|
|
29
|
+
export * from "./ConfigureResponse";
|
|
22
30
|
export * from "./ContactArchived";
|
|
23
31
|
export * from "./ContactAttachedCompanies";
|
|
24
32
|
export * from "./ContactCompanies";
|
|
33
|
+
export * from "./ContactCompany";
|
|
25
34
|
export * from "./ContactDeleted";
|
|
26
35
|
export * from "./ContactList";
|
|
27
36
|
export * from "./ContactLocation";
|
|
@@ -41,7 +50,9 @@ export * from "./ContactSocialProfiles";
|
|
|
41
50
|
export * from "./ContactSubscriptionTypes";
|
|
42
51
|
export * from "./ContactTags";
|
|
43
52
|
export * from "./ContactUnarchived";
|
|
53
|
+
export * from "./ContentObject";
|
|
44
54
|
export * from "./ContentSourcesList";
|
|
55
|
+
export * from "./Context";
|
|
45
56
|
export * from "./ConversationAttachmentFiles";
|
|
46
57
|
export * from "./ConversationContacts";
|
|
47
58
|
export * from "./ConversationFirstContactReply";
|
|
@@ -58,24 +69,41 @@ export * from "./CreateDataEventRequest";
|
|
|
58
69
|
export * from "./CreateMessageRequest";
|
|
59
70
|
export * from "./CreateOrUpdateTagRequest";
|
|
60
71
|
export * from "./CreateTicketReplyWithCommentRequest";
|
|
72
|
+
export * from "./CurrentCanvas";
|
|
61
73
|
export * from "./CursorPages";
|
|
62
|
-
export * from "./CustomAttributes";
|
|
63
74
|
export * from "./CustomerRequest";
|
|
64
75
|
export * from "./DataAttributeList";
|
|
65
76
|
export * from "./DataEventList";
|
|
66
77
|
export * from "./DataEventSummary";
|
|
67
78
|
export * from "./DataEventSummaryItem";
|
|
68
79
|
export * from "./DataExportCsv";
|
|
80
|
+
export * from "./DataTableItem";
|
|
81
|
+
export * from "./DataTableComponent";
|
|
69
82
|
export * from "./DeletedArticleObject";
|
|
70
83
|
export * from "./DeletedCollectionObject";
|
|
71
84
|
export * from "./DeletedCompanyObject";
|
|
72
85
|
export * from "./DeletedObject";
|
|
86
|
+
export * from "./DividerComponent";
|
|
87
|
+
export * from "./DropdownOption";
|
|
88
|
+
export * from "./DropdownComponent";
|
|
73
89
|
export * from "./Error_";
|
|
90
|
+
export * from "./Event";
|
|
74
91
|
export * from "./FileAttribute";
|
|
75
92
|
export * from "./GroupContent";
|
|
76
93
|
export * from "./GroupTranslatedContent";
|
|
94
|
+
export * from "./ImageComponent";
|
|
95
|
+
export * from "./InitializeRequest";
|
|
96
|
+
export * from "./InitializeResponse";
|
|
97
|
+
export * from "./InputComponent";
|
|
77
98
|
export * from "./LinkedObject";
|
|
78
99
|
export * from "./LinkedObjectList";
|
|
100
|
+
export * from "./ListItem";
|
|
101
|
+
export * from "./ListItemWithImage";
|
|
102
|
+
export * from "./ListItemWithoutImage";
|
|
103
|
+
export * from "./ListComponent";
|
|
104
|
+
export * from "./LiveCanvasRequest";
|
|
105
|
+
export * from "./LiveCanvasResponse";
|
|
106
|
+
export * from "./MultipleOrSingleFilterSearchRequest";
|
|
79
107
|
export * from "./MultipleFilterSearchRequest";
|
|
80
108
|
export * from "./NewsItemRequest";
|
|
81
109
|
export * from "./NoteList";
|
|
@@ -88,13 +116,21 @@ export * from "./PhoneSwitch";
|
|
|
88
116
|
export * from "./RedactConversationRequest";
|
|
89
117
|
export * from "./Reference";
|
|
90
118
|
export * from "./ReplyConversationRequest";
|
|
119
|
+
export * from "./ResultsResponse";
|
|
91
120
|
export * from "./SearchRequest";
|
|
92
121
|
export * from "./SegmentList";
|
|
122
|
+
export * from "./SheetActionComponent";
|
|
93
123
|
export * from "./SingleFilterSearchRequest";
|
|
124
|
+
export * from "./SingleSelectOption";
|
|
125
|
+
export * from "./SingleSelectComponent";
|
|
94
126
|
export * from "./SlaApplied";
|
|
95
127
|
export * from "./SnoozeConversationRequest";
|
|
96
128
|
export * from "./SocialProfile";
|
|
129
|
+
export * from "./SpacerComponent";
|
|
97
130
|
export * from "./StartingAfterPaging";
|
|
131
|
+
export * from "./SubmitActionComponent";
|
|
132
|
+
export * from "./SubmitRequest";
|
|
133
|
+
export * from "./SubmitResponse";
|
|
98
134
|
export * from "./SubscriptionTypeList";
|
|
99
135
|
export * from "./TagCompanyRequest";
|
|
100
136
|
export * from "./TagList";
|
|
@@ -102,6 +138,8 @@ export * from "./TagMultipleUsersRequest";
|
|
|
102
138
|
export * from "./Tags";
|
|
103
139
|
export * from "./TeamList";
|
|
104
140
|
export * from "./TeamPriorityLevel";
|
|
141
|
+
export * from "./TextComponent";
|
|
142
|
+
export * from "./TextAreaComponent";
|
|
105
143
|
export * from "./TicketCustomAttributes";
|
|
106
144
|
export * from "./TicketList";
|
|
107
145
|
export * from "./TicketPartAuthor";
|
|
@@ -114,5 +152,7 @@ export * from "./TicketTypeList";
|
|
|
114
152
|
export * from "./Translation";
|
|
115
153
|
export * from "./UntagCompanyRequest";
|
|
116
154
|
export * from "./UpdateVisitorRequest";
|
|
155
|
+
export * from "./UrlActionComponent";
|
|
117
156
|
export * from "./Visitor";
|
|
118
157
|
export * from "./VisitorDeletedObject";
|
|
158
|
+
export * from "./CustomAttributes";
|
package/api/types/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ActionComponent"), exports);
|
|
17
18
|
__exportStar(require("./ActivityLog"), exports);
|
|
18
19
|
__exportStar(require("./ActivityLogList"), exports);
|
|
19
20
|
__exportStar(require("./ActivityLogMetadata"), exports);
|
|
@@ -29,15 +30,23 @@ __exportStar(require("./ArticleList"), exports);
|
|
|
29
30
|
__exportStar(require("./ArticleStatistics"), exports);
|
|
30
31
|
__exportStar(require("./ArticleTranslatedContent"), exports);
|
|
31
32
|
__exportStar(require("./AssignConversationRequest"), exports);
|
|
33
|
+
__exportStar(require("./ButtonComponent"), exports);
|
|
34
|
+
__exportStar(require("./CanvasObject"), exports);
|
|
35
|
+
__exportStar(require("./CheckboxOption"), exports);
|
|
36
|
+
__exportStar(require("./CheckboxComponent"), exports);
|
|
32
37
|
__exportStar(require("./CloseConversationRequest"), exports);
|
|
33
38
|
__exportStar(require("./CollectionList"), exports);
|
|
34
39
|
__exportStar(require("./CompanyAttachedContacts"), exports);
|
|
35
40
|
__exportStar(require("./CompanyAttachedSegments"), exports);
|
|
36
41
|
__exportStar(require("./CompanyList"), exports);
|
|
37
42
|
__exportStar(require("./CompanyScroll"), exports);
|
|
43
|
+
__exportStar(require("./Component"), exports);
|
|
44
|
+
__exportStar(require("./ConfigureRequest"), exports);
|
|
45
|
+
__exportStar(require("./ConfigureResponse"), exports);
|
|
38
46
|
__exportStar(require("./ContactArchived"), exports);
|
|
39
47
|
__exportStar(require("./ContactAttachedCompanies"), exports);
|
|
40
48
|
__exportStar(require("./ContactCompanies"), exports);
|
|
49
|
+
__exportStar(require("./ContactCompany"), exports);
|
|
41
50
|
__exportStar(require("./ContactDeleted"), exports);
|
|
42
51
|
__exportStar(require("./ContactList"), exports);
|
|
43
52
|
__exportStar(require("./ContactLocation"), exports);
|
|
@@ -57,7 +66,9 @@ __exportStar(require("./ContactSocialProfiles"), exports);
|
|
|
57
66
|
__exportStar(require("./ContactSubscriptionTypes"), exports);
|
|
58
67
|
__exportStar(require("./ContactTags"), exports);
|
|
59
68
|
__exportStar(require("./ContactUnarchived"), exports);
|
|
69
|
+
__exportStar(require("./ContentObject"), exports);
|
|
60
70
|
__exportStar(require("./ContentSourcesList"), exports);
|
|
71
|
+
__exportStar(require("./Context"), exports);
|
|
61
72
|
__exportStar(require("./ConversationAttachmentFiles"), exports);
|
|
62
73
|
__exportStar(require("./ConversationContacts"), exports);
|
|
63
74
|
__exportStar(require("./ConversationFirstContactReply"), exports);
|
|
@@ -74,24 +85,41 @@ __exportStar(require("./CreateDataEventRequest"), exports);
|
|
|
74
85
|
__exportStar(require("./CreateMessageRequest"), exports);
|
|
75
86
|
__exportStar(require("./CreateOrUpdateTagRequest"), exports);
|
|
76
87
|
__exportStar(require("./CreateTicketReplyWithCommentRequest"), exports);
|
|
88
|
+
__exportStar(require("./CurrentCanvas"), exports);
|
|
77
89
|
__exportStar(require("./CursorPages"), exports);
|
|
78
|
-
__exportStar(require("./CustomAttributes"), exports);
|
|
79
90
|
__exportStar(require("./CustomerRequest"), exports);
|
|
80
91
|
__exportStar(require("./DataAttributeList"), exports);
|
|
81
92
|
__exportStar(require("./DataEventList"), exports);
|
|
82
93
|
__exportStar(require("./DataEventSummary"), exports);
|
|
83
94
|
__exportStar(require("./DataEventSummaryItem"), exports);
|
|
84
95
|
__exportStar(require("./DataExportCsv"), exports);
|
|
96
|
+
__exportStar(require("./DataTableItem"), exports);
|
|
97
|
+
__exportStar(require("./DataTableComponent"), exports);
|
|
85
98
|
__exportStar(require("./DeletedArticleObject"), exports);
|
|
86
99
|
__exportStar(require("./DeletedCollectionObject"), exports);
|
|
87
100
|
__exportStar(require("./DeletedCompanyObject"), exports);
|
|
88
101
|
__exportStar(require("./DeletedObject"), exports);
|
|
102
|
+
__exportStar(require("./DividerComponent"), exports);
|
|
103
|
+
__exportStar(require("./DropdownOption"), exports);
|
|
104
|
+
__exportStar(require("./DropdownComponent"), exports);
|
|
89
105
|
__exportStar(require("./Error_"), exports);
|
|
106
|
+
__exportStar(require("./Event"), exports);
|
|
90
107
|
__exportStar(require("./FileAttribute"), exports);
|
|
91
108
|
__exportStar(require("./GroupContent"), exports);
|
|
92
109
|
__exportStar(require("./GroupTranslatedContent"), exports);
|
|
110
|
+
__exportStar(require("./ImageComponent"), exports);
|
|
111
|
+
__exportStar(require("./InitializeRequest"), exports);
|
|
112
|
+
__exportStar(require("./InitializeResponse"), exports);
|
|
113
|
+
__exportStar(require("./InputComponent"), exports);
|
|
93
114
|
__exportStar(require("./LinkedObject"), exports);
|
|
94
115
|
__exportStar(require("./LinkedObjectList"), exports);
|
|
116
|
+
__exportStar(require("./ListItem"), exports);
|
|
117
|
+
__exportStar(require("./ListItemWithImage"), exports);
|
|
118
|
+
__exportStar(require("./ListItemWithoutImage"), exports);
|
|
119
|
+
__exportStar(require("./ListComponent"), exports);
|
|
120
|
+
__exportStar(require("./LiveCanvasRequest"), exports);
|
|
121
|
+
__exportStar(require("./LiveCanvasResponse"), exports);
|
|
122
|
+
__exportStar(require("./MultipleOrSingleFilterSearchRequest"), exports);
|
|
95
123
|
__exportStar(require("./MultipleFilterSearchRequest"), exports);
|
|
96
124
|
__exportStar(require("./NewsItemRequest"), exports);
|
|
97
125
|
__exportStar(require("./NoteList"), exports);
|
|
@@ -104,13 +132,21 @@ __exportStar(require("./PhoneSwitch"), exports);
|
|
|
104
132
|
__exportStar(require("./RedactConversationRequest"), exports);
|
|
105
133
|
__exportStar(require("./Reference"), exports);
|
|
106
134
|
__exportStar(require("./ReplyConversationRequest"), exports);
|
|
135
|
+
__exportStar(require("./ResultsResponse"), exports);
|
|
107
136
|
__exportStar(require("./SearchRequest"), exports);
|
|
108
137
|
__exportStar(require("./SegmentList"), exports);
|
|
138
|
+
__exportStar(require("./SheetActionComponent"), exports);
|
|
109
139
|
__exportStar(require("./SingleFilterSearchRequest"), exports);
|
|
140
|
+
__exportStar(require("./SingleSelectOption"), exports);
|
|
141
|
+
__exportStar(require("./SingleSelectComponent"), exports);
|
|
110
142
|
__exportStar(require("./SlaApplied"), exports);
|
|
111
143
|
__exportStar(require("./SnoozeConversationRequest"), exports);
|
|
112
144
|
__exportStar(require("./SocialProfile"), exports);
|
|
145
|
+
__exportStar(require("./SpacerComponent"), exports);
|
|
113
146
|
__exportStar(require("./StartingAfterPaging"), exports);
|
|
147
|
+
__exportStar(require("./SubmitActionComponent"), exports);
|
|
148
|
+
__exportStar(require("./SubmitRequest"), exports);
|
|
149
|
+
__exportStar(require("./SubmitResponse"), exports);
|
|
114
150
|
__exportStar(require("./SubscriptionTypeList"), exports);
|
|
115
151
|
__exportStar(require("./TagCompanyRequest"), exports);
|
|
116
152
|
__exportStar(require("./TagList"), exports);
|
|
@@ -118,6 +154,8 @@ __exportStar(require("./TagMultipleUsersRequest"), exports);
|
|
|
118
154
|
__exportStar(require("./Tags"), exports);
|
|
119
155
|
__exportStar(require("./TeamList"), exports);
|
|
120
156
|
__exportStar(require("./TeamPriorityLevel"), exports);
|
|
157
|
+
__exportStar(require("./TextComponent"), exports);
|
|
158
|
+
__exportStar(require("./TextAreaComponent"), exports);
|
|
121
159
|
__exportStar(require("./TicketCustomAttributes"), exports);
|
|
122
160
|
__exportStar(require("./TicketList"), exports);
|
|
123
161
|
__exportStar(require("./TicketPartAuthor"), exports);
|
|
@@ -130,5 +168,7 @@ __exportStar(require("./TicketTypeList"), exports);
|
|
|
130
168
|
__exportStar(require("./Translation"), exports);
|
|
131
169
|
__exportStar(require("./UntagCompanyRequest"), exports);
|
|
132
170
|
__exportStar(require("./UpdateVisitorRequest"), exports);
|
|
171
|
+
__exportStar(require("./UrlActionComponent"), exports);
|
|
133
172
|
__exportStar(require("./Visitor"), exports);
|
|
134
173
|
__exportStar(require("./VisitorDeletedObject"), exports);
|
|
174
|
+
__exportStar(require("./CustomAttributes"), exports);
|
|
@@ -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": "6.
|
|
84
|
+
headers: Object.assign({ Authorization: yield 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", "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": "6.
|
|
138
|
+
headers: Object.assign({ Authorization: yield 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", "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": "6.
|
|
203
|
+
headers: Object.assign({ Authorization: yield 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", "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": "6.
|
|
256
|
+
headers: Object.assign({ Authorization: yield 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", "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": "6.
|
|
313
|
+
headers: Object.assign({ Authorization: yield 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", "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": "6.
|
|
95
|
+
headers: Object.assign({ Authorization: yield 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", "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": "6.
|
|
188
|
+
headers: Object.assign({ Authorization: yield 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", "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": "6.
|
|
248
|
+
headers: Object.assign({ Authorization: yield 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", "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": "6.
|
|
309
|
+
headers: Object.assign({ Authorization: yield 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", "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": "6.
|
|
369
|
+
headers: Object.assign({ Authorization: yield 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", "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": "6.
|
|
441
|
+
headers: Object.assign({ Authorization: yield 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", "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
|
*
|