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,20 @@
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.TextComponent = void 0;
7
+ var TextComponent;
8
+ (function (TextComponent) {
9
+ TextComponent.Align = {
10
+ Left: "left",
11
+ Center: "center",
12
+ Right: "right",
13
+ };
14
+ TextComponent.Style = {
15
+ Header: "header",
16
+ Paragraph: "paragraph",
17
+ Muted: "muted",
18
+ Error: "error",
19
+ };
20
+ })(TextComponent = exports.TextComponent || (exports.TextComponent = {}));
@@ -16,7 +16,7 @@ export interface TicketTypeAttribute {
16
16
  /** The description of the ticket type attribute */
17
17
  description: string;
18
18
  /** The type of the data attribute (allowed values: "string list integer decimal boolean datetime files") */
19
- data_type: string;
19
+ data_type: TicketTypeAttribute.DataType;
20
20
  /** Input options for the attribute */
21
21
  input_options: Record<string, unknown>;
22
22
  /** The order of the attribute against other attributes */
@@ -40,3 +40,18 @@ export interface TicketTypeAttribute {
40
40
  /** The date and time the ticket type attribute was last updated. */
41
41
  updated_at?: number;
42
42
  }
43
+ export declare namespace TicketTypeAttribute {
44
+ /**
45
+ * The type of the data attribute (allowed values: "string list integer decimal boolean datetime files")
46
+ */
47
+ type DataType = "string" | "list" | "integer" | "decimal" | "boolean" | "datetime" | "files";
48
+ const DataType: {
49
+ readonly String: "string";
50
+ readonly List: "list";
51
+ readonly Integer: "integer";
52
+ readonly Decimal: "decimal";
53
+ readonly Boolean: "boolean";
54
+ readonly Datetime: "datetime";
55
+ readonly Files: "files";
56
+ };
57
+ }
@@ -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 = {}));
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A URL action opens a given link in a new browser tab.
6
+ */
7
+ export interface UrlActionComponent {
8
+ /** The link you want to open. */
9
+ url: string;
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 });
@@ -7,7 +7,7 @@ import * as Intercom from "../index";
7
7
  */
8
8
  export interface Visitor {
9
9
  /** Value is 'visitor' */
10
- type: string;
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, 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. */
@@ -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,8 @@ 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";
159
+ export * from "./OffsetPages";
@@ -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,8 @@ __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);
175
+ __exportStar(require("./OffsetPages"), 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.0.0", "User-Agent": "intercom-client/6.0.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),
84
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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.0.0", "User-Agent": "intercom-client/6.0.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),
138
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
139
  contentType: "application/json",
140
140
  requestType: "json",
141
141
  body: _body,
142
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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.0.0", "User-Agent": "intercom-client/6.0.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),
203
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
204
  contentType: "application/json",
205
205
  queryParameters: _queryParams,
206
206
  requestType: "json",
207
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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.0.0", "User-Agent": "intercom-client/6.0.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),
256
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
257
257
  contentType: "application/json",
258
258
  requestType: "json",
259
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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.0.0", "User-Agent": "intercom-client/6.0.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),
313
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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
- /** Image for the associated team or teammate */
28
- avatar?: string;
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.0.0", "User-Agent": "intercom-client/6.0.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),
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
99
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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.0.0", "User-Agent": "intercom-client/6.0.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),
188
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
189
189
  contentType: "application/json",
190
190
  requestType: "json",
191
191
  body: request,
192
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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.0.0", "User-Agent": "intercom-client/6.0.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),
248
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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.0.0", "User-Agent": "intercom-client/6.0.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),
309
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
310
310
  contentType: "application/json",
311
311
  requestType: "json",
312
312
  body: _body,
313
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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.0.0", "User-Agent": "intercom-client/6.0.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),
369
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
370
370
  contentType: "application/json",
371
371
  requestType: "json",
372
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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.0.0", "User-Agent": "intercom-client/6.0.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),
441
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "v6.1.1", "User-Agent": "intercom-client/v6.1.1", "Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
442
442
  contentType: "application/json",
443
443
  queryParameters: _queryParams,
444
444
  requestType: "json",
445
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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?: string;
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?: string;
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 = {}));