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.
Files changed (305) hide show
  1. package/README.md +26 -30
  2. package/api/resources/admins/client/Client.js +10 -10
  3. package/api/resources/admins/types/Admin.d.ts +11 -2
  4. package/api/resources/articles/client/Client.js +12 -12
  5. package/api/resources/articles/client/requests/CreateArticleRequest.d.ts +9 -1
  6. package/api/resources/articles/client/requests/CreateArticleRequest.js +4 -0
  7. package/api/resources/articles/client/requests/UpdateArticleRequest.d.ts +9 -1
  8. package/api/resources/articles/client/requests/UpdateArticleRequest.js +4 -0
  9. package/api/resources/companies/client/Client.d.ts +2 -2
  10. package/api/resources/companies/client/Client.js +24 -24
  11. package/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.d.ts +1 -1
  12. package/api/resources/companies/types/Company.d.ts +1 -1
  13. package/api/resources/contacts/client/Client.d.ts +1 -2
  14. package/api/resources/contacts/client/Client.js +31 -32
  15. package/api/resources/contacts/types/Contact.d.ts +4 -11
  16. package/api/resources/conversations/client/Client.d.ts +28 -14
  17. package/api/resources/conversations/client/Client.js +52 -38
  18. package/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +2 -0
  19. package/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.ts +10 -20
  20. package/api/resources/dataAttributes/client/Client.js +6 -6
  21. package/api/resources/dataExport/client/Client.js +8 -8
  22. package/api/resources/events/client/Client.d.ts +0 -2
  23. package/api/resources/events/client/Client.js +6 -8
  24. package/api/resources/helpCenters/client/Client.js +4 -4
  25. package/api/resources/helpCenters/resources/collections/client/Client.js +10 -10
  26. package/api/resources/index.d.ts +0 -2
  27. package/api/resources/index.js +1 -3
  28. package/api/resources/messages/client/Client.d.ts +3 -23
  29. package/api/resources/messages/client/Client.js +5 -25
  30. package/api/resources/news/resources/feeds/client/Client.js +6 -6
  31. package/api/resources/news/resources/items/client/Client.js +10 -10
  32. package/api/resources/notes/client/Client.js +6 -6
  33. package/api/resources/phoneCallRedirects/client/Client.js +2 -2
  34. package/api/resources/segments/client/Client.js +4 -4
  35. package/api/resources/subscriptionTypes/client/Client.js +2 -2
  36. package/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +1 -1
  37. package/api/resources/tags/client/Client.d.ts +0 -1
  38. package/api/resources/tags/client/Client.js +20 -21
  39. package/api/resources/tags/types/Tag.d.ts +1 -1
  40. package/api/resources/teams/client/Client.js +4 -4
  41. package/api/resources/ticketTypes/client/Client.js +8 -8
  42. package/api/resources/ticketTypes/resources/attributes/client/Client.js +4 -4
  43. package/api/resources/tickets/client/Client.js +10 -10
  44. package/api/resources/visitors/client/Client.js +6 -6
  45. package/api/types/ActionComponent.d.ts +16 -0
  46. package/api/types/ArticleList.d.ts +1 -1
  47. package/api/types/ButtonComponent.d.ts +33 -0
  48. package/api/types/ButtonComponent.js +14 -0
  49. package/api/types/CanvasObject.d.ts +20 -0
  50. package/api/types/CheckboxComponent.d.ts +36 -0
  51. package/api/types/CheckboxComponent.js +14 -0
  52. package/api/types/CheckboxOption.d.ts +16 -0
  53. package/api/types/CheckboxOption.js +5 -0
  54. package/api/types/CollectionList.d.ts +1 -1
  55. package/api/types/CompanyList.d.ts +1 -1
  56. package/api/types/Component.d.ts +43 -0
  57. package/api/types/Component.js +5 -0
  58. package/api/types/ConfigureRequest.d.ts +22 -0
  59. package/api/types/ConfigureRequest.js +5 -0
  60. package/api/types/ConfigureResponse.d.ts +12 -0
  61. package/api/types/ConfigureResponse.js +5 -0
  62. package/api/types/ContactCompanies.d.ts +5 -0
  63. package/api/types/ContactCompany.d.ts +14 -0
  64. package/api/types/ContactCompany.js +5 -0
  65. package/api/types/ContentObject.d.ts +13 -0
  66. package/api/types/ContentObject.js +5 -0
  67. package/api/types/Context.d.ts +34 -0
  68. package/api/types/Context.js +15 -0
  69. package/api/types/ConversationSource.d.ts +19 -1
  70. package/api/types/ConversationSource.js +16 -0
  71. package/api/types/ConversationTeammates.d.ts +2 -2
  72. package/api/types/CurrentCanvas.d.ts +11 -0
  73. package/api/types/CurrentCanvas.js +5 -0
  74. package/api/types/CustomAttributes.d.ts +2 -6
  75. package/api/types/DataEventSummaryItem.d.ts +1 -1
  76. package/api/types/DataTableComponent.d.ts +11 -0
  77. package/api/types/DataTableComponent.js +5 -0
  78. package/api/types/DataTableItem.d.ts +14 -0
  79. package/api/types/DataTableItem.js +5 -0
  80. package/api/types/DividerComponent.d.ts +12 -0
  81. package/api/types/DividerComponent.js +5 -0
  82. package/api/types/DropdownComponent.d.ts +34 -0
  83. package/api/types/DropdownComponent.js +14 -0
  84. package/api/types/DropdownOption.d.ts +16 -0
  85. package/api/types/DropdownOption.js +5 -0
  86. package/api/types/Error_.d.ts +1 -1
  87. package/api/types/Event.d.ts +10 -0
  88. package/api/types/Event.js +5 -0
  89. package/api/types/ImageComponent.d.ts +40 -0
  90. package/api/types/ImageComponent.js +15 -0
  91. package/api/types/InitializeRequest.d.ts +23 -0
  92. package/api/types/InitializeRequest.js +5 -0
  93. package/api/types/InitializeResponse.d.ts +11 -0
  94. package/api/types/InitializeResponse.js +5 -0
  95. package/api/types/InputComponent.d.ts +37 -0
  96. package/api/types/InputComponent.js +14 -0
  97. package/api/types/ListComponent.d.ts +23 -0
  98. package/api/types/ListComponent.js +5 -0
  99. package/api/types/ListItem.d.ts +25 -0
  100. package/api/types/ListItem.js +5 -0
  101. package/api/types/ListItemWithImage.d.ts +12 -0
  102. package/api/types/ListItemWithImage.js +5 -0
  103. package/api/types/ListItemWithoutImage.d.ts +12 -0
  104. package/api/types/ListItemWithoutImage.js +5 -0
  105. package/api/types/LiveCanvasRequest.d.ts +21 -0
  106. package/api/types/LiveCanvasRequest.js +5 -0
  107. package/api/types/LiveCanvasResponse.d.ts +11 -0
  108. package/api/types/LiveCanvasResponse.js +5 -0
  109. package/api/types/MultipleFilterSearchRequest.d.ts +1 -8
  110. package/api/types/MultipleOrSingleFilterSearchRequest.d.ts +5 -0
  111. package/api/types/MultipleOrSingleFilterSearchRequest.js +5 -0
  112. package/api/types/NoteList.d.ts +1 -1
  113. package/api/types/OffsetPages.d.ts +14 -0
  114. package/api/types/OffsetPages.js +5 -0
  115. package/api/types/ResultsResponse.d.ts +10 -0
  116. package/api/types/ResultsResponse.js +5 -0
  117. package/api/types/SheetActionComponent.d.ts +12 -0
  118. package/api/types/SheetActionComponent.js +5 -0
  119. package/api/types/SingleFilterSearchRequest.d.ts +5 -1
  120. package/api/types/SingleSelectComponent.d.ts +39 -0
  121. package/api/types/SingleSelectComponent.js +14 -0
  122. package/api/types/SingleSelectOption.d.ts +16 -0
  123. package/api/types/SingleSelectOption.js +5 -0
  124. package/api/types/SocialProfile.d.ts +1 -1
  125. package/api/types/SpacerComponent.d.ts +25 -0
  126. package/api/types/SpacerComponent.js +16 -0
  127. package/api/types/SubmitActionComponent.d.ts +8 -0
  128. package/api/types/SubmitActionComponent.js +5 -0
  129. package/api/types/SubmitRequest.d.ts +29 -0
  130. package/api/types/SubmitRequest.js +5 -0
  131. package/api/types/SubmitResponse.d.ts +23 -0
  132. package/api/types/SubmitResponse.js +5 -0
  133. package/api/types/TextAreaComponent.d.ts +22 -0
  134. package/api/types/TextAreaComponent.js +5 -0
  135. package/api/types/TextComponent.d.ts +39 -0
  136. package/api/types/TextComponent.js +20 -0
  137. package/api/types/TicketTypeAttribute.d.ts +16 -1
  138. package/api/types/TicketTypeAttribute.js +13 -0
  139. package/api/types/UrlActionComponent.d.ts +10 -0
  140. package/api/types/UrlActionComponent.js +5 -0
  141. package/api/types/Visitor.d.ts +2 -2
  142. package/api/types/index.d.ts +42 -1
  143. package/api/types/index.js +42 -1
  144. package/dist/api/resources/admins/client/Client.js +10 -10
  145. package/dist/api/resources/admins/types/Admin.d.ts +11 -2
  146. package/dist/api/resources/articles/client/Client.js +12 -12
  147. package/dist/api/resources/articles/client/requests/CreateArticleRequest.d.ts +9 -1
  148. package/dist/api/resources/articles/client/requests/CreateArticleRequest.js +4 -0
  149. package/dist/api/resources/articles/client/requests/UpdateArticleRequest.d.ts +9 -1
  150. package/dist/api/resources/articles/client/requests/UpdateArticleRequest.js +4 -0
  151. package/dist/api/resources/companies/client/Client.d.ts +2 -2
  152. package/dist/api/resources/companies/client/Client.js +24 -24
  153. package/dist/api/resources/companies/client/requests/CreateOrUpdateCompanyRequest.d.ts +1 -1
  154. package/dist/api/resources/companies/types/Company.d.ts +1 -1
  155. package/dist/api/resources/contacts/client/Client.d.ts +1 -2
  156. package/dist/api/resources/contacts/client/Client.js +31 -32
  157. package/dist/api/resources/contacts/types/Contact.d.ts +4 -11
  158. package/dist/api/resources/conversations/client/Client.d.ts +28 -14
  159. package/dist/api/resources/conversations/client/Client.js +52 -38
  160. package/dist/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +2 -0
  161. package/dist/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.ts +10 -20
  162. package/dist/api/resources/dataAttributes/client/Client.js +6 -6
  163. package/dist/api/resources/dataExport/client/Client.js +8 -8
  164. package/dist/api/resources/events/client/Client.d.ts +0 -2
  165. package/dist/api/resources/events/client/Client.js +6 -8
  166. package/dist/api/resources/helpCenters/client/Client.js +4 -4
  167. package/dist/api/resources/helpCenters/resources/collections/client/Client.js +10 -10
  168. package/dist/api/resources/index.d.ts +0 -2
  169. package/dist/api/resources/index.js +1 -3
  170. package/dist/api/resources/messages/client/Client.d.ts +3 -23
  171. package/dist/api/resources/messages/client/Client.js +5 -25
  172. package/dist/api/resources/news/resources/feeds/client/Client.js +6 -6
  173. package/dist/api/resources/news/resources/items/client/Client.js +10 -10
  174. package/dist/api/resources/notes/client/Client.js +6 -6
  175. package/dist/api/resources/phoneCallRedirects/client/Client.js +2 -2
  176. package/dist/api/resources/segments/client/Client.js +4 -4
  177. package/dist/api/resources/subscriptionTypes/client/Client.js +2 -2
  178. package/dist/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +1 -1
  179. package/dist/api/resources/tags/client/Client.d.ts +0 -1
  180. package/dist/api/resources/tags/client/Client.js +20 -21
  181. package/dist/api/resources/tags/types/Tag.d.ts +1 -1
  182. package/dist/api/resources/teams/client/Client.js +4 -4
  183. package/dist/api/resources/ticketTypes/client/Client.js +8 -8
  184. package/dist/api/resources/ticketTypes/resources/attributes/client/Client.js +4 -4
  185. package/dist/api/resources/tickets/client/Client.js +10 -10
  186. package/dist/api/resources/visitors/client/Client.js +6 -6
  187. package/dist/api/types/ActionComponent.d.ts +16 -0
  188. package/dist/api/types/ActionComponent.js +5 -0
  189. package/dist/api/types/ArticleList.d.ts +1 -1
  190. package/dist/api/types/ButtonComponent.d.ts +33 -0
  191. package/dist/api/types/ButtonComponent.js +14 -0
  192. package/dist/api/types/CanvasObject.d.ts +20 -0
  193. package/dist/api/types/CanvasObject.js +5 -0
  194. package/dist/api/types/CheckboxComponent.d.ts +36 -0
  195. package/dist/api/types/CheckboxComponent.js +14 -0
  196. package/dist/api/types/CheckboxOption.d.ts +16 -0
  197. package/dist/api/types/CheckboxOption.js +5 -0
  198. package/dist/api/types/CollectionList.d.ts +1 -1
  199. package/dist/api/types/CompanyList.d.ts +1 -1
  200. package/dist/api/types/Component.d.ts +43 -0
  201. package/dist/api/types/Component.js +5 -0
  202. package/dist/api/types/ConfigureRequest.d.ts +22 -0
  203. package/dist/api/types/ConfigureRequest.js +5 -0
  204. package/dist/api/types/ConfigureResponse.d.ts +12 -0
  205. package/dist/api/types/ConfigureResponse.js +5 -0
  206. package/dist/api/types/ContactCompanies.d.ts +5 -0
  207. package/dist/api/types/ContactCompany.d.ts +14 -0
  208. package/dist/api/types/ContactCompany.js +5 -0
  209. package/dist/api/types/ContentObject.d.ts +13 -0
  210. package/dist/api/types/ContentObject.js +5 -0
  211. package/dist/api/types/Context.d.ts +34 -0
  212. package/dist/api/types/Context.js +15 -0
  213. package/dist/api/types/ConversationSource.d.ts +19 -1
  214. package/dist/api/types/ConversationSource.js +16 -0
  215. package/dist/api/types/ConversationTeammates.d.ts +2 -2
  216. package/dist/api/types/CurrentCanvas.d.ts +11 -0
  217. package/dist/api/types/CurrentCanvas.js +5 -0
  218. package/dist/api/types/CustomAttributes.d.ts +2 -6
  219. package/dist/api/types/DataEventSummaryItem.d.ts +1 -1
  220. package/dist/api/types/DataTableComponent.d.ts +11 -0
  221. package/dist/api/types/DataTableComponent.js +5 -0
  222. package/dist/api/types/DataTableItem.d.ts +14 -0
  223. package/dist/api/types/DataTableItem.js +5 -0
  224. package/dist/api/types/DividerComponent.d.ts +12 -0
  225. package/dist/api/types/DividerComponent.js +5 -0
  226. package/dist/api/types/DropdownComponent.d.ts +34 -0
  227. package/dist/api/types/DropdownComponent.js +14 -0
  228. package/dist/api/types/DropdownOption.d.ts +16 -0
  229. package/dist/api/types/DropdownOption.js +5 -0
  230. package/dist/api/types/Error_.d.ts +1 -1
  231. package/dist/api/types/Event.d.ts +10 -0
  232. package/dist/api/types/Event.js +5 -0
  233. package/dist/api/types/ImageComponent.d.ts +40 -0
  234. package/dist/api/types/ImageComponent.js +15 -0
  235. package/dist/api/types/InitializeRequest.d.ts +23 -0
  236. package/dist/api/types/InitializeRequest.js +5 -0
  237. package/dist/api/types/InitializeResponse.d.ts +11 -0
  238. package/dist/api/types/InitializeResponse.js +5 -0
  239. package/dist/api/types/InputComponent.d.ts +37 -0
  240. package/dist/api/types/InputComponent.js +14 -0
  241. package/dist/api/types/ListComponent.d.ts +23 -0
  242. package/dist/api/types/ListComponent.js +5 -0
  243. package/dist/api/types/ListItem.d.ts +25 -0
  244. package/dist/api/types/ListItem.js +5 -0
  245. package/dist/api/types/ListItemWithImage.d.ts +12 -0
  246. package/dist/api/types/ListItemWithImage.js +5 -0
  247. package/dist/api/types/ListItemWithoutImage.d.ts +12 -0
  248. package/dist/api/types/ListItemWithoutImage.js +5 -0
  249. package/dist/api/types/LiveCanvasRequest.d.ts +21 -0
  250. package/dist/api/types/LiveCanvasRequest.js +5 -0
  251. package/dist/api/types/LiveCanvasResponse.d.ts +11 -0
  252. package/dist/api/types/LiveCanvasResponse.js +5 -0
  253. package/dist/api/types/MultipleFilterSearchRequest.d.ts +1 -8
  254. package/dist/api/types/MultipleOrSingleFilterSearchRequest.d.ts +5 -0
  255. package/dist/api/types/MultipleOrSingleFilterSearchRequest.js +5 -0
  256. package/dist/api/types/NoteList.d.ts +1 -1
  257. package/dist/api/types/OffsetPages.d.ts +14 -0
  258. package/dist/api/types/OffsetPages.js +5 -0
  259. package/dist/api/types/ResultsResponse.d.ts +10 -0
  260. package/dist/api/types/ResultsResponse.js +5 -0
  261. package/dist/api/types/SheetActionComponent.d.ts +12 -0
  262. package/dist/api/types/SheetActionComponent.js +5 -0
  263. package/dist/api/types/SingleFilterSearchRequest.d.ts +5 -1
  264. package/dist/api/types/SingleSelectComponent.d.ts +39 -0
  265. package/dist/api/types/SingleSelectComponent.js +14 -0
  266. package/dist/api/types/SingleSelectOption.d.ts +16 -0
  267. package/dist/api/types/SingleSelectOption.js +5 -0
  268. package/dist/api/types/SocialProfile.d.ts +1 -1
  269. package/dist/api/types/SpacerComponent.d.ts +25 -0
  270. package/dist/api/types/SpacerComponent.js +16 -0
  271. package/dist/api/types/SubmitActionComponent.d.ts +8 -0
  272. package/dist/api/types/SubmitActionComponent.js +5 -0
  273. package/dist/api/types/SubmitRequest.d.ts +29 -0
  274. package/dist/api/types/SubmitRequest.js +5 -0
  275. package/dist/api/types/SubmitResponse.d.ts +23 -0
  276. package/dist/api/types/SubmitResponse.js +5 -0
  277. package/dist/api/types/TextAreaComponent.d.ts +22 -0
  278. package/dist/api/types/TextAreaComponent.js +5 -0
  279. package/dist/api/types/TextComponent.d.ts +39 -0
  280. package/dist/api/types/TextComponent.js +20 -0
  281. package/dist/api/types/TicketTypeAttribute.d.ts +16 -1
  282. package/dist/api/types/TicketTypeAttribute.js +13 -0
  283. package/dist/api/types/UrlActionComponent.d.ts +10 -0
  284. package/dist/api/types/UrlActionComponent.js +5 -0
  285. package/dist/api/types/Visitor.d.ts +2 -2
  286. package/dist/api/types/index.d.ts +42 -1
  287. package/dist/api/types/index.js +42 -1
  288. package/dist/version.d.ts +1 -1
  289. package/dist/version.js +1 -1
  290. package/package.json +10 -2
  291. package/reference.md +12 -15
  292. package/version.d.ts +1 -1
  293. package/version.js +1 -1
  294. package/api/resources/customObjectInstances/index.d.ts +0 -1
  295. package/api/resources/customObjectInstances/index.js +0 -17
  296. package/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +0 -16
  297. package/api/resources/customObjectInstances/types/index.d.ts +0 -1
  298. package/api/resources/customObjectInstances/types/index.js +0 -17
  299. package/dist/api/resources/customObjectInstances/index.d.ts +0 -1
  300. package/dist/api/resources/customObjectInstances/index.js +0 -17
  301. package/dist/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +0 -16
  302. package/dist/api/resources/customObjectInstances/types/index.d.ts +0 -1
  303. package/dist/api/resources/customObjectInstances/types/index.js +0 -17
  304. /package/api/{resources/customObjectInstances/types/CustomObjectInstance.js → types/ActionComponent.js} +0 -0
  305. /package/{dist/api/resources/customObjectInstances/types/CustomObjectInstance.js → api/types/CanvasObject.js} +0 -0
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * The response object returned when initializing an app, specifying the UI for the first screen using components.
7
+ */
8
+ export interface InitializeResponse {
9
+ /** The canvas object that defines the UI to be shown for the app. */
10
+ canvas: Intercom.CanvasObject;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * An input component is used to capture text input from the end user. You can submit the value of the input by:
7
+ *
8
+ * - Adding an `action` to the input component (which will render an inline button)
9
+ * - Using a ButtonComponent (which will submit all interactive components in the canvas)
10
+ */
11
+ export interface InputComponent {
12
+ /** A unique identifier for the component. */
13
+ id: string;
14
+ /** The text shown above the input. */
15
+ label?: string;
16
+ /** An example value shown inside the component when it's empty. */
17
+ placeholder?: string;
18
+ /** An entered value which is already inside the component. */
19
+ value?: string;
20
+ /** This can be a Submit Action, URL Action, or Sheets Action. */
21
+ action?: Intercom.ActionComponent;
22
+ /** Styles the input. Default is `unsaved`. Prevent action with `saved`. */
23
+ save_state?: InputComponent.SaveState;
24
+ /** Styles the input and prevents the action. Default is false. Will be overridden if save_state is saved. */
25
+ disabled?: boolean;
26
+ }
27
+ export declare namespace InputComponent {
28
+ /**
29
+ * Styles the input. Default is `unsaved`. Prevent action with `saved`.
30
+ */
31
+ type SaveState = "unsaved" | "saved" | "failed";
32
+ const SaveState: {
33
+ readonly Unsaved: "unsaved";
34
+ readonly Saved: "saved";
35
+ readonly Failed: "failed";
36
+ };
37
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.InputComponent = void 0;
7
+ var InputComponent;
8
+ (function (InputComponent) {
9
+ InputComponent.SaveState = {
10
+ Unsaved: "unsaved",
11
+ Saved: "saved",
12
+ Failed: "failed",
13
+ };
14
+ })(InputComponent = exports.InputComponent || (exports.InputComponent = {}));
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * A list component renders a list of items which you provide in an array. You can make each list item take an action by adding the relevant action object to the item:
7
+ *
8
+ * - [Trigger a submit request to be sent](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/submit-action) Inbox Messenger
9
+ * - [Open a link in a new page](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/url-action) Inbox Messenger
10
+ * - [Open a sheet](https://developers.intercom.com/docs/references/canvas-kit/actioncomponents/sheets-action) Messenger
11
+ */
12
+ export interface ListComponent {
13
+ /** The items that will be rendered in the list. */
14
+ items: ListComponent.Items.Item[];
15
+ /** Styles all list items and prevents the action. Default is `false`. */
16
+ disabled?: boolean;
17
+ }
18
+ export declare namespace ListComponent {
19
+ type Items = Items.Item[];
20
+ namespace Items {
21
+ type Item = Intercom.ListItemWithImage | Intercom.ListItemWithoutImage;
22
+ }
23
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * A list item component that can be rendered in a list.
7
+ */
8
+ export interface ListItem {
9
+ /** The type of component you are rendering. */
10
+ type: "item";
11
+ /** A unique identifier for the item. */
12
+ id: string;
13
+ /** The text shown as the title for the item. */
14
+ title: string;
15
+ /** The text shown underneath the item's title. */
16
+ subtitle?: string;
17
+ /** The text shown next to the subtitle, separates by a bullet. */
18
+ tertiary_text?: string;
19
+ /** Rounds the corners of the image. Default is `false`. */
20
+ rounded_image?: boolean;
21
+ /** Styles all list items and prevents the action. Default is `false`. */
22
+ disabled?: boolean;
23
+ /** This can be a Submit Action, URL Action, or Sheets Action. */
24
+ action?: Intercom.ActionComponent;
25
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ export interface ListItemWithImage extends Intercom.ListItem {
6
+ /** An image that will be displayed to the left of the item. */
7
+ image: string;
8
+ /** The exact width of the image in pixels. */
9
+ image_width: number;
10
+ /** The exact height of the image in pixels. */
11
+ image_height: number;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ export interface ListItemWithoutImage extends Intercom.ListItem {
6
+ /** An image that will be displayed to the left of the item. */
7
+ image?: string;
8
+ /** The exact width of the image in pixels. */
9
+ image_width?: number;
10
+ /** The exact height of the image in pixels. */
11
+ image_height?: number;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * Canvases are static by default and require a new request to come through in order to update them. Live canvases however will make requests every time the card is viewed without any interaction needed, meaning the canvas can be kept up-to-date with no action from the user.
7
+ *
8
+ * This works for every Messenger request that you can respond with a canvas object to. Instead of returning the content object within the canvas object, you should provide a `content_url` attribute instead with the value being the URL you want us to send a POST request to when someone views the app.
9
+ */
10
+ export interface LiveCanvasRequest {
11
+ /** The workspace ID of the teammate. Attribute is `app_id` for V1.2 and below. */
12
+ workspace_id: string;
13
+ /** The Intercom hosted region that this app is located in. */
14
+ workspace_region: string;
15
+ /** The current_canvas the teammate can see. */
16
+ canvas: Intercom.CanvasObject;
17
+ /** The context of where the app is added, where the user last visited, and information on the Messenger settings. */
18
+ context: Intercom.Context;
19
+ /** The contact who viewed the card. */
20
+ contact: Intercom.Contact;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * The response object returned when responding to a Live Canvas request. This contains the components you want to show.
7
+ */
8
+ export interface LiveCanvasResponse {
9
+ /** The content object that defines the components to be shown. */
10
+ content: Intercom.ContentObject;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,7 +8,7 @@ import * as Intercom from "../index";
8
8
  export interface MultipleFilterSearchRequest {
9
9
  /** An operator to allow boolean inspection between multiple fields. */
10
10
  operator?: MultipleFilterSearchRequest.Operator;
11
- value?: MultipleFilterSearchRequest.Value;
11
+ value?: Intercom.MultipleOrSingleFilterSearchRequest[];
12
12
  }
13
13
  export declare namespace MultipleFilterSearchRequest {
14
14
  /**
@@ -19,11 +19,4 @@ export declare namespace MultipleFilterSearchRequest {
19
19
  readonly And: "AND";
20
20
  readonly Or: "OR";
21
21
  };
22
- type Value =
23
- /**
24
- * Add mutiple filters. */
25
- Intercom.MultipleFilterSearchRequest[]
26
- /**
27
- * Add a single filter field. */
28
- | Intercom.SingleFilterSearchRequest[];
29
22
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ export declare type MultipleOrSingleFilterSearchRequest = Intercom.MultipleFilterSearchRequest | Intercom.SingleFilterSearchRequest;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,5 +12,5 @@ export interface NoteList {
12
12
  data: Intercom.Note[];
13
13
  /** A count of the total number of notes. */
14
14
  total_count: number;
15
- pages?: Intercom.CursorPages;
15
+ pages?: Intercom.OffsetPages;
16
16
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface OffsetPages {
5
+ /** the type of object `offset_pages` */
6
+ type: "offset_pages";
7
+ /** The current offset */
8
+ page?: number;
9
+ next?: string;
10
+ /** Number of results per page */
11
+ per_page?: number;
12
+ /** Total number of pages */
13
+ total_pages?: number;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The results object should be sent when you want to end configuration of the app and trigger the [Initialize request](https://developers.intercom.com/docs/canvas-kit/#initialize) to be sent. You provide the key-value pairs of data you want access to and we will send these in the Initialize request within a [card_creation_options object](https://developers.intercom.com/docs/references/canvas-kit/requestobjects/card-creation-options/#card-creation-options).
6
+ */
7
+ export interface ResultsResponse {
8
+ /** Key-value pairs of data you want access to in the Initialize request */
9
+ results: Record<string, unknown>;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A sheet action opens the link you give within the Messenger as an embedded iframe.
6
+ *
7
+ * [More on how Sheets work is in our Canvas Kit documentation.](https://developers.intercom.com/docs/canvas-kit#sheets-optional)
8
+ */
9
+ export interface SheetActionComponent {
10
+ /** The link which hosts your sheet. */
11
+ url: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,7 +10,7 @@ export interface SingleFilterSearchRequest {
10
10
  /** The accepted operators you can use to define how you want to search for the value. */
11
11
  operator?: SingleFilterSearchRequest.Operator;
12
12
  /** The value that you want to search on. */
13
- value?: string;
13
+ value?: SingleFilterSearchRequest.Value;
14
14
  }
15
15
  export declare namespace SingleFilterSearchRequest {
16
16
  /**
@@ -29,4 +29,8 @@ export declare namespace SingleFilterSearchRequest {
29
29
  readonly StartsWith: "^";
30
30
  readonly EndsWith: "$";
31
31
  };
32
+ /**
33
+ * The value that you want to search on.
34
+ */
35
+ type Value = string | number | string[] | number[];
32
36
  }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * A single-select component is used to capture a choice from up to 10 options that you provide. You can submit the value of the select option by:
7
+ *
8
+ * - Adding an `action` to the single-select component
9
+ * - Using a ButtonComponent (which will submit all interactive components in the canvas)
10
+ *
11
+ * When a submit action takes place, the results are given in a hash with the `id` from the single-select component used as the key and the `id` from the chosen option as the value.
12
+ */
13
+ export interface SingleSelectComponent {
14
+ /** A unique identifier for the component. */
15
+ id: string;
16
+ /** The list of options. Can provide 2 to 10. */
17
+ options: Intercom.SingleSelectOption[];
18
+ /** The text shown above the options. */
19
+ label?: string;
20
+ /** The option that is selected by default. */
21
+ value?: string;
22
+ /** Styles the input. Default is `unsaved`. Prevent action with `saved`. */
23
+ save_state?: SingleSelectComponent.SaveState;
24
+ /** Styles all options and prevents the action. Default is false. Will be overridden if save_state is saved. */
25
+ disabled?: boolean;
26
+ /** This can be a Submit Action, URL Action, or Sheets Action. */
27
+ action?: Intercom.ActionComponent;
28
+ }
29
+ export declare namespace SingleSelectComponent {
30
+ /**
31
+ * Styles the input. Default is `unsaved`. Prevent action with `saved`.
32
+ */
33
+ type SaveState = "unsaved" | "saved" | "failed";
34
+ const SaveState: {
35
+ readonly Unsaved: "unsaved";
36
+ readonly Saved: "saved";
37
+ readonly Failed: "failed";
38
+ };
39
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SingleSelectComponent = void 0;
7
+ var SingleSelectComponent;
8
+ (function (SingleSelectComponent) {
9
+ SingleSelectComponent.SaveState = {
10
+ Unsaved: "unsaved",
11
+ Saved: "saved",
12
+ Failed: "failed",
13
+ };
14
+ })(SingleSelectComponent = exports.SingleSelectComponent || (exports.SingleSelectComponent = {}));
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A single select option component that can be selected.
6
+ */
7
+ export interface SingleSelectOption {
8
+ /** The type of component you are rendering. */
9
+ type: "option";
10
+ /** A unique identifier for the option. */
11
+ id: string;
12
+ /** The text shown within this option. */
13
+ text: string;
14
+ /** Styles the option and prevents the action. Default is false. */
15
+ disabled?: boolean;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,7 +6,7 @@
6
6
  */
7
7
  export interface SocialProfile {
8
8
  /** value is "social_profile" */
9
- type: string;
9
+ type: "social_profile";
10
10
  /** The name of the Social media profile */
11
11
  name: string;
12
12
  /** The name of the Social media profile */
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A spacer component is used to create empty space between components.
6
+ */
7
+ export interface SpacerComponent {
8
+ /** A unique identifier for the component. */
9
+ id?: string;
10
+ /** The amount of space between components. Default is `s`. */
11
+ size?: SpacerComponent.Size;
12
+ }
13
+ export declare namespace SpacerComponent {
14
+ /**
15
+ * The amount of space between components. Default is `s`.
16
+ */
17
+ type Size = "xs" | "s" | "m" | "l" | "xl";
18
+ const Size: {
19
+ readonly Xs: "xs";
20
+ readonly S: "s";
21
+ readonly M: "m";
22
+ readonly L: "l";
23
+ readonly Xl: "xl";
24
+ };
25
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SpacerComponent = void 0;
7
+ var SpacerComponent;
8
+ (function (SpacerComponent) {
9
+ SpacerComponent.Size = {
10
+ Xs: "xs",
11
+ S: "s",
12
+ M: "m",
13
+ L: "l",
14
+ Xl: "xl",
15
+ };
16
+ })(SpacerComponent = exports.SpacerComponent || (exports.SpacerComponent = {}));
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A submit action triggers a [Submit Request](https://developers.intercom.com/docs/canvas-kit#submit-request) to be sent. This request will include all values which have been entered into all the interactive components on the current canvas.
6
+ */
7
+ export interface SubmitActionComponent {
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * The Submit request is triggered when a component with a submit action is interacted with in Messenger Inbox.
7
+ */
8
+ export interface SubmitRequest {
9
+ /** The workspace ID of the teammate. Attribute is `app_id` for V1.2 and below. */
10
+ workspace_id: string;
11
+ /** The Intercom hosted region that this app is located in. */
12
+ workspace_region: string;
13
+ /** The Intercom teammate viewing the conversation. */
14
+ admin: Intercom.Admin;
15
+ /** The id of the component clicked by the teammate to trigger the request. */
16
+ component_id: string;
17
+ /** The context of where the app is added, where the user last visited, and information on the Messenger settings. */
18
+ context: Intercom.Context;
19
+ /** The conversation where your app is being shown. */
20
+ conversation: Intercom.Conversation;
21
+ /** The current canvas the teammate can see. */
22
+ current_canvas: Intercom.CurrentCanvas;
23
+ /** The contact which is currently being viewed by the teammate in the conversation details panel. */
24
+ contact: Intercom.Contact;
25
+ /** A list of key/value pairs of data, inputted by the teammate on the current canvas. */
26
+ input_values: Record<string, unknown>;
27
+ /** The user who took the action. */
28
+ user: Intercom.Contact;
29
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * The response object returned when submitting an app interaction. This will replace the previous canvas that was visible until the app was interacted with.
7
+ *
8
+ * You can optionally provide an event object with the attribute `type` given as `completed` to tell us if the app has completed its purpose. For example, an email collector app would be complete when the end-user submits their email address.
9
+ *
10
+ * Apps in conversation details can also optionally insert an app into the conversation reply:
11
+ *
12
+ * 1. You respond with a card_creation_options object (https://developers.intercom.com/canvas-kit-reference/reference/card-creation-options)
13
+ * 2. We send a request to the initialize URL for Messenger capabilities (https://developers.intercom.com/docs/build-an-integration/getting-started/build-an-app-for-your-messenger/request-flows) with the card_creation_options object present
14
+ * 3. You respond with a canvas object with the components you want to insert into the conversation reply
15
+ */
16
+ export interface SubmitResponse {
17
+ /** The canvas object that defines the new UI to be shown. */
18
+ canvas: Intercom.CanvasObject;
19
+ /** Optional. Key-value pairs that will be sent in the initialize request to insert an app into the conversation reply. */
20
+ card_creation_options?: Record<string, unknown>;
21
+ /** Optional. Indicates if the app has completed its purpose. */
22
+ event?: Intercom.Event;
23
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A text area component is used to capture a large amount of text as input with a multi-line text box. You can submit the value of the text area by:
6
+ *
7
+ * - Using a ButtonComponent (which will submit all interactive components in the canvas)
8
+ */
9
+ export interface TextAreaComponent {
10
+ /** A unique identifier for the component. */
11
+ id: string;
12
+ /** The text shown above the text area. */
13
+ label?: string;
14
+ /** An example value shown inside the component when it's empty. */
15
+ placeholder?: string;
16
+ /** An entered value which is already inside the component. */
17
+ value?: string;
18
+ /** Styles the input as failed. Default is false. */
19
+ error?: boolean;
20
+ /** Styles the input and prevents the action. Default is false. */
21
+ disabled?: boolean;
22
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A text component is used for rendering blocks of text. Links and bold font can be rendered through Markdown. There are different styles provided which edit the color, weight, and font size. These cannot be edited through Markdown.
6
+ */
7
+ export interface TextComponent {
8
+ /** A unique identifier for the component. */
9
+ id?: string;
10
+ /** The text that will be rendered. */
11
+ text: string;
12
+ /** Aligns the text. Default is `left`. */
13
+ align?: TextComponent.Align;
14
+ /** Styles the text. Default is `paragraph`. */
15
+ style?: TextComponent.Style;
16
+ /** Disables a component's margin-bottom of 10px. */
17
+ bottom_margin?: "none";
18
+ }
19
+ export declare namespace TextComponent {
20
+ /**
21
+ * Aligns the text. Default is `left`.
22
+ */
23
+ type Align = "left" | "center" | "right";
24
+ const Align: {
25
+ readonly Left: "left";
26
+ readonly Center: "center";
27
+ readonly Right: "right";
28
+ };
29
+ /**
30
+ * Styles the text. Default is `paragraph`.
31
+ */
32
+ type Style = "header" | "paragraph" | "muted" | "error";
33
+ const Style: {
34
+ readonly Header: "header";
35
+ readonly Paragraph: "paragraph";
36
+ readonly Muted: "muted";
37
+ readonly Error: "error";
38
+ };
39
+ }