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,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.CheckboxComponent = void 0;
7
+ var CheckboxComponent;
8
+ (function (CheckboxComponent) {
9
+ CheckboxComponent.SaveState = {
10
+ Unsaved: "unsaved",
11
+ Saved: "saved",
12
+ Failed: "failed",
13
+ };
14
+ })(CheckboxComponent = exports.CheckboxComponent || (exports.CheckboxComponent = {}));
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A checkbox option component that can be selected.
6
+ */
7
+ export interface CheckboxOption {
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 next to the checkbox. */
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 });
@@ -8,7 +8,7 @@ import * as Intercom from "../index";
8
8
  export interface CollectionList {
9
9
  /** The type of the object - `list`. */
10
10
  type: "list";
11
- pages?: Intercom.CursorPages;
11
+ pages?: Intercom.OffsetPages;
12
12
  /** A count of the total number of collections. */
13
13
  total_count: number;
14
14
  /** An array of collection objects */
@@ -8,7 +8,7 @@ import * as Intercom from "../index";
8
8
  export interface CompanyList {
9
9
  /** The type of object - `list`. */
10
10
  type: "list";
11
- pages?: Intercom.CursorPages;
11
+ pages?: Intercom.OffsetPages;
12
12
  /** The total number of companies. */
13
13
  total_count: number;
14
14
  /** An array containing Company Objects. */
@@ -0,0 +1,43 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ export declare type Component = Intercom.Component.Button | Intercom.Component.Checkbox | Intercom.Component.Dropdown | Intercom.Component.Input | Intercom.Component.List | Intercom.Component.SingleSelect | Intercom.Component.Textarea | Intercom.Component.DataTable | Intercom.Component.Divider | Intercom.Component.Image | Intercom.Component.Spacer | Intercom.Component.Text;
6
+ export declare namespace Component {
7
+ interface Button extends Intercom.ButtonComponent {
8
+ type: "button";
9
+ }
10
+ interface Checkbox extends Intercom.CheckboxComponent {
11
+ type: "checkbox";
12
+ }
13
+ interface Dropdown extends Intercom.DropdownComponent {
14
+ type: "dropdown";
15
+ }
16
+ interface Input extends Intercom.InputComponent {
17
+ type: "input";
18
+ }
19
+ interface List extends Intercom.ListComponent {
20
+ type: "list";
21
+ }
22
+ interface SingleSelect extends Intercom.SingleSelectComponent {
23
+ type: "single-select";
24
+ }
25
+ interface Textarea extends Intercom.TextAreaComponent {
26
+ type: "textarea";
27
+ }
28
+ interface DataTable extends Intercom.DataTableComponent {
29
+ type: "data-table";
30
+ }
31
+ interface Divider extends Intercom.DividerComponent {
32
+ type: "divider";
33
+ }
34
+ interface Image extends Intercom.ImageComponent {
35
+ type: "image";
36
+ }
37
+ interface Spacer extends Intercom.SpacerComponent {
38
+ type: "spacer";
39
+ }
40
+ interface Text extends Intercom.TextComponent {
41
+ type: "text";
42
+ }
43
+ }
@@ -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
+ import * as Intercom from "../index";
5
+ /**
6
+ * The first request we send will allow you to know the workspace where this is happening, the admin who will be configuring the app, and additional context such as where this will be added once complete.
7
+ *
8
+ * For subsequent requests whereby an admin has interacted with a component with a submit action, the request payload will contain the same details with `current_canvas`, `input_values` and the `component_id` also present. This allows you to understand what component the request came from, see what the value of any input was, action anything in your codebase, and then respond knowing what canvas was previously shown beforehand.
9
+ */
10
+ export declare type ConfigureRequest = {
11
+ workspace_id: string;
12
+ admin: Intercom.Admin;
13
+ context: Intercom.Context;
14
+ } | {
15
+ workspace_id: string;
16
+ workspace_region: string;
17
+ component_id: string;
18
+ admin: Intercom.Admin;
19
+ context: Intercom.Context;
20
+ current_canvas: Intercom.CanvasObject;
21
+ input_values: Record<string, unknown>;
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,12 @@
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 configuring an app. This will either:
7
+ * - A canvas object which will replace the previous canvas that was visible until the teammate interacted with your app
8
+ * - A results object which will end the configuration and trigger the initialize request to be sent. There will be a card_creation_options object in the payload showing your key-value pairs from the results object.
9
+ */
10
+ export declare type ConfigureResponse = Intercom.ResultsResponse | {
11
+ canvas: Intercom.CanvasObject;
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 });
@@ -1,10 +1,15 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Intercom from "../index";
4
5
  /**
5
6
  * An object containing companies meta data about the companies that a contact has. Up to 10 will be displayed here. Use the url to get more.
6
7
  */
7
8
  export interface ContactCompanies {
9
+ /** The type of object */
10
+ type?: "list";
11
+ /** An array containing Company Objects */
12
+ data?: Intercom.ContactCompany[];
8
13
  /** Url to get more company resources for this contact */
9
14
  url: string;
10
15
  /** Int representing the total number of companyies attached to this contact */
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A reference to a company associated with a contact
6
+ */
7
+ export interface ContactCompany {
8
+ /** The unique identifier for the company */
9
+ id: string;
10
+ /** The type of the object */
11
+ type: "company";
12
+ /** URL to get the full company resource */
13
+ url: string;
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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * The content object is where you specify the UI of your app. You provide us with a set of `components` in a components array that we then render.
7
+ *
8
+ * The content object should usually be returned within the [canvas object](https://developers.intercom.com/docs/references/canvas-kit/responseobjects/canvas). If you're responding to a Live Canvas request however, then you should only respond with the content object.
9
+ */
10
+ export interface ContentObject {
11
+ /** The list of components to be rendered. */
12
+ components: Intercom.Component[];
13
+ }
@@ -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,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The context object provides additional details on where the app has been added (or is currently being used), what page the app is being used on, and information on the Messenger settings. This is in order for you give a fully customised experience based on the customers use case.
6
+ *
7
+ * If the `location` is `conversation` then you will also be given a `conversation_id`. If you need to use details about the conversation, then you have to use the `conversation_id` to [make a call to our Conversations API and retrieve the conversation object](https://developers.intercom.com/intercom-api-reference/reference#get-a-single-conversation).
8
+ */
9
+ export interface Context {
10
+ /** The id of the conversation where the app is added or being used. */
11
+ conversation_id?: number;
12
+ /** Where the app is added or the action took place. Can be either 'conversation', 'home', 'message', or 'operator'. */
13
+ location?: Context.Location;
14
+ /** The default end-user language of the Messenger. Use to localise Messenger App content. */
15
+ locale?: string;
16
+ /** The messengers action colour. Use in Sheets and Icons to make a Messenger App experience feel part of the host Messenger. */
17
+ messenger_action_colour?: string;
18
+ /** The messengers background colour. Use in Sheets and Icons to make a Messenger App experience feel part of the host Messenger. */
19
+ messenger_background_colour?: string;
20
+ /** The current page URL where the app is being used. */
21
+ referrer?: string;
22
+ }
23
+ export declare namespace Context {
24
+ /**
25
+ * Where the app is added or the action took place. Can be either 'conversation', 'home', 'message', or 'operator'.
26
+ */
27
+ type Location = "conversation" | "home" | "message" | "operator";
28
+ const Location: {
29
+ readonly Conversation: "conversation";
30
+ readonly Home: "home";
31
+ readonly Message: "message";
32
+ readonly Operator: "operator";
33
+ };
34
+ }
@@ -0,0 +1,15 @@
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.Context = void 0;
7
+ var Context;
8
+ (function (Context) {
9
+ Context.Location = {
10
+ Conversation: "conversation",
11
+ Home: "home",
12
+ Message: "message",
13
+ Operator: "operator",
14
+ };
15
+ })(Context = exports.Context || (exports.Context = {}));
@@ -7,7 +7,7 @@ import * as Intercom from "../index";
7
7
  */
8
8
  export interface ConversationSource {
9
9
  /** This includes conversation, email, facebook, instagram, phone_call, phone_switch, push, sms, twitter and whatsapp. */
10
- type: string;
10
+ type: ConversationSource.Type;
11
11
  /** The id representing the message. */
12
12
  id: string;
13
13
  /** The conversation's initiation type. Possible values are customer_initiated, campaigns_initiated (legacy campaigns), operator_initiated (Custom bot), automated (Series and other outbounds with dynamic audience message) and admin_initiated (fixed audience message, ticket initiated by an admin, group email). */
@@ -24,3 +24,21 @@ export interface ConversationSource {
24
24
  /** Whether or not the source message has been redacted. Only applicable for contact initiated messages. */
25
25
  redacted: boolean;
26
26
  }
27
+ export declare namespace ConversationSource {
28
+ /**
29
+ * This includes conversation, email, facebook, instagram, phone_call, phone_switch, push, sms, twitter and whatsapp.
30
+ */
31
+ type Type = "conversation" | "email" | "facebook" | "instagram" | "phone_call" | "phone_switch" | "push" | "sms" | "twitter" | "whatsapp";
32
+ const Type: {
33
+ readonly Conversation: "conversation";
34
+ readonly Email: "email";
35
+ readonly Facebook: "facebook";
36
+ readonly Instagram: "instagram";
37
+ readonly PhoneCall: "phone_call";
38
+ readonly PhoneSwitch: "phone_switch";
39
+ readonly Push: "push";
40
+ readonly Sms: "sms";
41
+ readonly Twitter: "twitter";
42
+ readonly Whatsapp: "whatsapp";
43
+ };
44
+ }
@@ -3,3 +3,19 @@
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.ConversationSource = void 0;
7
+ var ConversationSource;
8
+ (function (ConversationSource) {
9
+ ConversationSource.Type = {
10
+ Conversation: "conversation",
11
+ Email: "email",
12
+ Facebook: "facebook",
13
+ Instagram: "instagram",
14
+ PhoneCall: "phone_call",
15
+ PhoneSwitch: "phone_switch",
16
+ Push: "push",
17
+ Sms: "sms",
18
+ Twitter: "twitter",
19
+ Whatsapp: "whatsapp",
20
+ };
21
+ })(ConversationSource = exports.ConversationSource || (exports.ConversationSource = {}));
@@ -7,7 +7,7 @@ import * as Intercom from "../index";
7
7
  */
8
8
  export interface ConversationTeammates {
9
9
  /** The type of the object - `admin.list`. */
10
- type: string;
10
+ type: "admin.list";
11
11
  /** The list of teammates who participated in the conversation (wrote at least one conversation part). */
12
- teammates: Intercom.Reference[];
12
+ admins: Intercom.Reference[];
13
13
  }
@@ -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 current canvas that was most recently showing before the request was sent. This object mirrors the same format as the Canvas Object.
7
+ */
8
+ export interface CurrentCanvas {
9
+ /** The canvas object representing the current canvas state. */
10
+ current_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 });
@@ -1,11 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Intercom from "../index";
5
4
  /**
6
- * An object containing the different custom attributes associated to the conversation as key-value pairs. For relationship attributes the value will be a list of custom object instance models.
5
+ * Custom data set for this data.
7
6
  */
8
- export declare type CustomAttributes = Record<string, CustomAttributes.Value>;
9
- export declare namespace CustomAttributes {
10
- type Value = string | Intercom.CustomObjectInstance;
11
- }
7
+ export declare type CustomAttributes = Record<string, unknown>;
@@ -14,5 +14,5 @@ export interface DataEventSummaryItem {
14
14
  /** The number of times the event was sent */
15
15
  count: number;
16
16
  /** The description of the event */
17
- description: string;
17
+ description?: string;
18
18
  }
@@ -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
+ * A data-table component is used for rendering a table of key-value pairs. For Messenger, text will wrap around on multiple lines. For Inbox and Frame (ie. Configure) views, we will truncate and use tooltips on hover if the text overflows.
7
+ */
8
+ export interface DataTableComponent {
9
+ /** The items that will be rendered in the data-table. */
10
+ items: Intercom.DataTableItem[];
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,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A field-value pair component for use in a data table.
6
+ */
7
+ export interface DataTableItem {
8
+ /** The type of component you are rendering. */
9
+ type: "field-value";
10
+ /** The text of the key in your key-value pair. */
11
+ field: string;
12
+ /** The text of the value in your key-value pair. */
13
+ value: string;
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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A divider component is used to separate components with a line.
6
+ */
7
+ export interface DividerComponent {
8
+ /** A unique identifier for the component. */
9
+ id?: string;
10
+ /** Disables a component's margin-bottom of 10px. */
11
+ bottom_margin?: "none";
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,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * A dropdown component is used to capture a choice from the options that you provide.
7
+ *
8
+ * When submitted, the dropdown choices are returned in a hash with the id from the dropdown component used as the key and the id from the chosen option as the value.
9
+ */
10
+ export interface DropdownComponent {
11
+ /** A unique identifier for the component. */
12
+ id: string;
13
+ /** The list of options. Can provide 2 to 10. */
14
+ options: Intercom.DropdownOption[];
15
+ /** The text shown above the dropdown. */
16
+ label?: string;
17
+ /** The option that is selected by default. */
18
+ value?: string;
19
+ /** Styles all options and prevents the action. Default is `unsaved`. Will be overridden if `save_state` is `saved`. */
20
+ save_state?: DropdownComponent.SaveState;
21
+ /** Styles all options and prevents the action. Default is false. Will be overridden if save_state is saved. */
22
+ disabled?: boolean;
23
+ }
24
+ export declare namespace DropdownComponent {
25
+ /**
26
+ * Styles all options and prevents the action. Default is `unsaved`. Will be overridden if `save_state` is `saved`.
27
+ */
28
+ type SaveState = "unsaved" | "saved" | "failed";
29
+ const SaveState: {
30
+ readonly Unsaved: "unsaved";
31
+ readonly Saved: "saved";
32
+ readonly Failed: "failed";
33
+ };
34
+ }
@@ -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.DropdownComponent = void 0;
7
+ var DropdownComponent;
8
+ (function (DropdownComponent) {
9
+ DropdownComponent.SaveState = {
10
+ Unsaved: "unsaved",
11
+ Saved: "saved",
12
+ Failed: "failed",
13
+ };
14
+ })(DropdownComponent = exports.DropdownComponent || (exports.DropdownComponent = {}));
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A dropdown option component that can be selected.
6
+ */
7
+ export interface DropdownOption {
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 Error_ {
8
8
  /** The type is error.list */
9
- type: string;
9
+ type: "error.list";
10
10
  /** */
11
11
  request_id?: string;
12
12
  /** An array of one or more error objects */
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The event object enables Intercom to know more about the actions that took place in your app. Currently, you can only tell us when an app's flow has been completed.
6
+ */
7
+ export interface Event {
8
+ /** What action took place. The only value currently accepted is `completed`. */
9
+ type: "completed";
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,40 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Intercom from "../index";
5
+ /**
6
+ * An image component is used to display an image.
7
+ *
8
+ * HTTPS Images:
9
+ * If your request URLs (or website URLs) are over HTTPS, you will need to ensure that images are loaded over HTTPS likewise. Otherwise, they will not work.
10
+ */
11
+ export interface ImageComponent {
12
+ /** A unique identifier for the component. */
13
+ id?: string;
14
+ /** The URL where the image is located. */
15
+ url: string;
16
+ /** Aligns the image inside the component. Default is `left`. */
17
+ align?: ImageComponent.Align;
18
+ /** The exact width of the image in pixels. */
19
+ width: number;
20
+ /** The exact height of the image in pixels. */
21
+ height: number;
22
+ /** Rounds the corners of the image. Default is `false`. */
23
+ rounded?: boolean;
24
+ /** Disables a component's margin-bottom of 10px. */
25
+ bottom_margin?: "none";
26
+ /** This can be a URL Action only. */
27
+ action?: Intercom.UrlActionComponent;
28
+ }
29
+ export declare namespace ImageComponent {
30
+ /**
31
+ * Aligns the image inside the component. Default is `left`.
32
+ */
33
+ type Align = "left" | "center" | "right" | "full_width";
34
+ const Align: {
35
+ readonly Left: "left";
36
+ readonly Center: "center";
37
+ readonly Right: "right";
38
+ readonly FullWidth: "full_width";
39
+ };
40
+ }
@@ -0,0 +1,15 @@
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.ImageComponent = void 0;
7
+ var ImageComponent;
8
+ (function (ImageComponent) {
9
+ ImageComponent.Align = {
10
+ Left: "left",
11
+ Center: "center",
12
+ Right: "right",
13
+ FullWidth: "full_width",
14
+ };
15
+ })(ImageComponent = exports.ImageComponent || (exports.ImageComponent = {}));
@@ -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 request payload will have all the data needed for you to understand who is using your app, where they are using it, and how you should respond. There are different request payloads for Messenger capabilities and Inbox capabilities.
7
+ */
8
+ export interface InitializeRequest {
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
+ /** Key-value pairs which were given as results in response to the Configure request. */
16
+ card_creation_options: Record<string, unknown>;
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 your app is being shown for. */
20
+ conversation: Intercom.Conversation;
21
+ /** The contact which is currently being viewed by the teammate in the conversation details panel. We send an individual initialize request for each customer when it's a group conversation. */
22
+ contact: Intercom.Contact;
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 });