intercom-client 6.2.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +7 -2
  3. package/README.md +7 -19
  4. package/api/resources/admins/client/Client.js +5 -5
  5. package/api/resources/aiContentSource/types/ContentSource.d.ts +1 -14
  6. package/api/resources/aiContentSource/types/ContentSource.js +0 -11
  7. package/api/resources/articles/client/Client.js +6 -6
  8. package/api/resources/companies/client/Client.d.ts +1 -1
  9. package/api/resources/companies/client/Client.js +11 -11
  10. package/api/resources/companies/types/CompaniesRetrieveResponse.d.ts +13 -0
  11. package/api/resources/companies/types/CompaniesRetrieveResponse.js +5 -0
  12. package/api/resources/companies/types/Company.d.ts +0 -2
  13. package/api/resources/companies/types/index.d.ts +1 -0
  14. package/api/resources/companies/types/index.js +1 -0
  15. package/api/resources/contacts/client/Client.js +15 -15
  16. package/api/resources/conversations/client/Client.js +12 -12
  17. package/api/resources/customChannelEvents/client/Client.d.ts +61 -0
  18. package/api/resources/customChannelEvents/client/Client.js +245 -0
  19. package/api/resources/customChannelEvents/client/index.d.ts +1 -0
  20. package/api/resources/customChannelEvents/client/index.js +2 -0
  21. package/api/resources/customChannelEvents/index.d.ts +1 -0
  22. package/api/resources/customChannelEvents/index.js +17 -0
  23. package/api/resources/dataAttributes/client/Client.js +3 -3
  24. package/api/resources/dataExport/client/Client.js +4 -4
  25. package/api/resources/events/client/Client.js +3 -3
  26. package/api/resources/helpCenters/client/Client.js +2 -2
  27. package/api/resources/helpCenters/resources/collections/client/Client.js +5 -5
  28. package/api/resources/index.d.ts +1 -0
  29. package/api/resources/index.js +2 -1
  30. package/api/resources/messages/client/Client.js +1 -1
  31. package/api/resources/news/resources/feeds/client/Client.js +3 -3
  32. package/api/resources/news/resources/items/client/Client.js +5 -5
  33. package/api/resources/notes/client/Client.js +3 -3
  34. package/api/resources/phoneCallRedirects/client/Client.js +1 -1
  35. package/api/resources/segments/client/Client.js +2 -2
  36. package/api/resources/subscriptionTypes/client/Client.js +1 -1
  37. package/api/resources/tags/client/Client.js +10 -10
  38. package/api/resources/teams/client/Client.js +2 -2
  39. package/api/resources/ticketTypes/client/Client.js +4 -4
  40. package/api/resources/ticketTypes/resources/attributes/client/Client.js +2 -2
  41. package/api/resources/tickets/client/Client.js +5 -5
  42. package/api/resources/visitors/client/Client.js +3 -3
  43. package/api/types/CompanyList.d.ts +0 -2
  44. package/api/types/TicketCustomAttributes.d.ts +1 -5
  45. package/api/types/TicketRequestCustomAttributes.d.ts +1 -4
  46. package/dist/Client.d.ts +3 -0
  47. package/dist/Client.js +7 -2
  48. package/dist/api/resources/admins/client/Client.js +5 -5
  49. package/dist/api/resources/aiContentSource/types/ContentSource.d.ts +1 -14
  50. package/dist/api/resources/aiContentSource/types/ContentSource.js +0 -11
  51. package/dist/api/resources/articles/client/Client.js +6 -6
  52. package/dist/api/resources/companies/client/Client.d.ts +1 -1
  53. package/dist/api/resources/companies/client/Client.js +11 -11
  54. package/dist/api/resources/companies/types/CompaniesRetrieveResponse.d.ts +13 -0
  55. package/dist/api/resources/companies/types/CompaniesRetrieveResponse.js +5 -0
  56. package/dist/api/resources/companies/types/Company.d.ts +0 -2
  57. package/dist/api/resources/companies/types/index.d.ts +1 -0
  58. package/dist/api/resources/companies/types/index.js +1 -0
  59. package/dist/api/resources/contacts/client/Client.js +15 -15
  60. package/dist/api/resources/conversations/client/Client.js +12 -12
  61. package/dist/api/resources/customChannelEvents/client/Client.d.ts +61 -0
  62. package/dist/api/resources/customChannelEvents/client/Client.js +245 -0
  63. package/dist/api/resources/customChannelEvents/client/index.d.ts +1 -0
  64. package/dist/api/resources/customChannelEvents/client/index.js +2 -0
  65. package/dist/api/resources/customChannelEvents/index.d.ts +1 -0
  66. package/dist/api/resources/customChannelEvents/index.js +17 -0
  67. package/dist/api/resources/dataAttributes/client/Client.js +3 -3
  68. package/dist/api/resources/dataExport/client/Client.js +4 -4
  69. package/dist/api/resources/events/client/Client.js +3 -3
  70. package/dist/api/resources/helpCenters/client/Client.js +2 -2
  71. package/dist/api/resources/helpCenters/resources/collections/client/Client.js +5 -5
  72. package/dist/api/resources/index.d.ts +1 -0
  73. package/dist/api/resources/index.js +2 -1
  74. package/dist/api/resources/messages/client/Client.js +1 -1
  75. package/dist/api/resources/news/resources/feeds/client/Client.js +3 -3
  76. package/dist/api/resources/news/resources/items/client/Client.js +5 -5
  77. package/dist/api/resources/notes/client/Client.js +3 -3
  78. package/dist/api/resources/phoneCallRedirects/client/Client.js +1 -1
  79. package/dist/api/resources/segments/client/Client.js +2 -2
  80. package/dist/api/resources/subscriptionTypes/client/Client.js +1 -1
  81. package/dist/api/resources/tags/client/Client.js +10 -10
  82. package/dist/api/resources/teams/client/Client.js +2 -2
  83. package/dist/api/resources/ticketTypes/client/Client.js +4 -4
  84. package/dist/api/resources/ticketTypes/resources/attributes/client/Client.js +2 -2
  85. package/dist/api/resources/tickets/client/Client.js +5 -5
  86. package/dist/api/resources/visitors/client/Client.js +3 -3
  87. package/dist/api/types/CompanyList.d.ts +0 -2
  88. package/dist/api/types/TicketCustomAttributes.d.ts +1 -5
  89. package/dist/api/types/TicketRequestCustomAttributes.d.ts +1 -4
  90. package/dist/version.d.ts +1 -1
  91. package/dist/version.js +1 -1
  92. package/package.json +1 -1
  93. package/reference.md +163 -1
  94. package/version.d.ts +1 -1
  95. package/version.js +1 -1
@@ -139,7 +139,7 @@ class Tickets {
139
139
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
140
140
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `tickets/${encodeURIComponent(ticketId)}/reply`),
141
141
  method: "POST",
142
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.2.0", "User-Agent": "intercom-client/6.2.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.3.0", "User-Agent": "intercom-client/6.3.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
143
  contentType: "application/json",
144
144
  requestType: "json",
145
145
  body: _body,
@@ -206,7 +206,7 @@ class Tickets {
206
206
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
207
207
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "tickets"),
208
208
  method: "POST",
209
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.2.0", "User-Agent": "intercom-client/6.2.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.3.0", "User-Agent": "intercom-client/6.3.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
210
  contentType: "application/json",
211
211
  requestType: "json",
212
212
  body: request,
@@ -263,7 +263,7 @@ class Tickets {
263
263
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
264
264
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `tickets/${encodeURIComponent(ticketId)}`),
265
265
  method: "GET",
266
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.2.0", "User-Agent": "intercom-client/6.2.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
266
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.3.0", "User-Agent": "intercom-client/6.3.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
267
267
  contentType: "application/json",
268
268
  requestType: "json",
269
269
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
@@ -359,7 +359,7 @@ class Tickets {
359
359
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
360
360
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `tickets/${encodeURIComponent(ticketId)}`),
361
361
  method: "PUT",
362
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.2.0", "User-Agent": "intercom-client/6.2.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
362
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.3.0", "User-Agent": "intercom-client/6.3.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
363
  contentType: "application/json",
364
364
  requestType: "json",
365
365
  body: _body,
@@ -486,7 +486,7 @@ class Tickets {
486
486
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
487
487
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "tickets/search"),
488
488
  method: "POST",
489
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.2.0", "User-Agent": "intercom-client/6.2.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
489
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.3.0", "User-Agent": "intercom-client/6.3.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
490
490
  contentType: "application/json",
491
491
  requestType: "json",
492
492
  body: request,
@@ -84,7 +84,7 @@ class Visitors {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "visitors"),
86
86
  method: "GET",
87
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.2.0", "User-Agent": "intercom-client/6.2.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.3.0", "User-Agent": "intercom-client/6.3.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -154,7 +154,7 @@ class Visitors {
154
154
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
155
155
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "visitors"),
156
156
  method: "PUT",
157
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.2.0", "User-Agent": "intercom-client/6.2.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.3.0", "User-Agent": "intercom-client/6.3.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
158
158
  contentType: "application/json",
159
159
  requestType: "json",
160
160
  body: request,
@@ -223,7 +223,7 @@ class Visitors {
223
223
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
224
224
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "visitors/convert"),
225
225
  method: "POST",
226
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.2.0", "User-Agent": "intercom-client/6.2.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
226
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.3.0", "User-Agent": "intercom-client/6.3.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
227
  contentType: "application/json",
228
228
  requestType: "json",
229
229
  body: request,
@@ -6,8 +6,6 @@ import * as Intercom from "../index";
6
6
  * This will return a list of companies for the App.
7
7
  */
8
8
  export interface CompanyList {
9
- /** The type of object - `list`. */
10
- type: "list";
11
9
  pages?: Intercom.OffsetPages;
12
10
  /** The total number of companies. */
13
11
  total_count: number;
@@ -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
5
  * An object containing the different attributes associated to the ticket as key-value pairs. For the default title and description attributes, the keys are `_default_title_` and `_default_description_`.
7
6
  */
8
- export type TicketCustomAttributes = Record<string, TicketCustomAttributes.Value>;
9
- export declare namespace TicketCustomAttributes {
10
- type Value = string | undefined | number | boolean | unknown[] | Intercom.FileAttribute;
11
- }
7
+ export type TicketCustomAttributes = Record<string, unknown>;
@@ -4,7 +4,4 @@
4
4
  /**
5
5
  * The attributes set on the ticket. When setting the default title and description attributes, the attribute keys that should be used are `_default_title_` and `_default_description_`. When setting ticket type attributes of the list attribute type, the key should be the attribute name and the value of the attribute should be the list item id, obtainable by [listing the ticket type](ref:get_ticket-types). For example, if the ticket type has an attribute called `priority` of type `list`, the key should be `priority` and the value of the attribute should be the guid of the list item (e.g. `de1825a0-0164-4070-8ca6-13e22462fa7e`).
6
6
  */
7
- export type TicketRequestCustomAttributes = Record<string, TicketRequestCustomAttributes.Value>;
8
- export declare namespace TicketRequestCustomAttributes {
9
- type Value = string | undefined | number | boolean | unknown[];
10
- }
7
+ export type TicketRequestCustomAttributes = Record<string, unknown>;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.2.0";
1
+ export declare const SDK_VERSION = "6.3.0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "6.2.0";
4
+ exports.SDK_VERSION = "6.3.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intercom-client",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "private": false,
5
5
  "repository": "https://github.com/intercom/intercom-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -877,7 +877,7 @@ while (page.hasNextPage()) {
877
877
 
878
878
  ## Companies
879
879
 
880
- <details><summary><code>client.companies.<a href="/src/api/resources/companies/client/Client.ts">retrieve</a>({ ...params }) -> Intercom.CompanyList</code></summary>
880
+ <details><summary><code>client.companies.<a href="/src/api/resources/companies/client/Client.ts">retrieve</a>({ ...params }) -> Intercom.CompaniesRetrieveResponse</code></summary>
881
881
  <dl>
882
882
  <dd>
883
883
 
@@ -6833,6 +6833,168 @@ await client.visitors.mergeToContact({
6833
6833
  </dl>
6834
6834
  </details>
6835
6835
 
6836
+ ## CustomChannelEvents
6837
+
6838
+ <details><summary><code>client.customChannelEvents.<a href="/src/api/resources/customChannelEvents/client/Client.ts">notifyAttributeCollected</a>() -> void</code></summary>
6839
+ <dl>
6840
+ <dd>
6841
+
6842
+ #### 🔌 Usage
6843
+
6844
+ <dl>
6845
+ <dd>
6846
+
6847
+ <dl>
6848
+ <dd>
6849
+
6850
+ ```typescript
6851
+ await client.customChannelEvents.notifyAttributeCollected();
6852
+ ```
6853
+
6854
+ </dd>
6855
+ </dl>
6856
+ </dd>
6857
+ </dl>
6858
+
6859
+ #### ⚙️ Parameters
6860
+
6861
+ <dl>
6862
+ <dd>
6863
+
6864
+ <dl>
6865
+ <dd>
6866
+
6867
+ **requestOptions:** `CustomChannelEvents.RequestOptions`
6868
+
6869
+ </dd>
6870
+ </dl>
6871
+ </dd>
6872
+ </dl>
6873
+
6874
+ </dd>
6875
+ </dl>
6876
+ </details>
6877
+
6878
+ <details><summary><code>client.customChannelEvents.<a href="/src/api/resources/customChannelEvents/client/Client.ts">notifyNewMessage</a>() -> void</code></summary>
6879
+ <dl>
6880
+ <dd>
6881
+
6882
+ #### 🔌 Usage
6883
+
6884
+ <dl>
6885
+ <dd>
6886
+
6887
+ <dl>
6888
+ <dd>
6889
+
6890
+ ```typescript
6891
+ await client.customChannelEvents.notifyNewMessage();
6892
+ ```
6893
+
6894
+ </dd>
6895
+ </dl>
6896
+ </dd>
6897
+ </dl>
6898
+
6899
+ #### ⚙️ Parameters
6900
+
6901
+ <dl>
6902
+ <dd>
6903
+
6904
+ <dl>
6905
+ <dd>
6906
+
6907
+ **requestOptions:** `CustomChannelEvents.RequestOptions`
6908
+
6909
+ </dd>
6910
+ </dl>
6911
+ </dd>
6912
+ </dl>
6913
+
6914
+ </dd>
6915
+ </dl>
6916
+ </details>
6917
+
6918
+ <details><summary><code>client.customChannelEvents.<a href="/src/api/resources/customChannelEvents/client/Client.ts">notifyNewConversation</a>() -> void</code></summary>
6919
+ <dl>
6920
+ <dd>
6921
+
6922
+ #### 🔌 Usage
6923
+
6924
+ <dl>
6925
+ <dd>
6926
+
6927
+ <dl>
6928
+ <dd>
6929
+
6930
+ ```typescript
6931
+ await client.customChannelEvents.notifyNewConversation();
6932
+ ```
6933
+
6934
+ </dd>
6935
+ </dl>
6936
+ </dd>
6937
+ </dl>
6938
+
6939
+ #### ⚙️ Parameters
6940
+
6941
+ <dl>
6942
+ <dd>
6943
+
6944
+ <dl>
6945
+ <dd>
6946
+
6947
+ **requestOptions:** `CustomChannelEvents.RequestOptions`
6948
+
6949
+ </dd>
6950
+ </dl>
6951
+ </dd>
6952
+ </dl>
6953
+
6954
+ </dd>
6955
+ </dl>
6956
+ </details>
6957
+
6958
+ <details><summary><code>client.customChannelEvents.<a href="/src/api/resources/customChannelEvents/client/Client.ts">notifyQuickReplySelected</a>() -> void</code></summary>
6959
+ <dl>
6960
+ <dd>
6961
+
6962
+ #### 🔌 Usage
6963
+
6964
+ <dl>
6965
+ <dd>
6966
+
6967
+ <dl>
6968
+ <dd>
6969
+
6970
+ ```typescript
6971
+ await client.customChannelEvents.notifyQuickReplySelected();
6972
+ ```
6973
+
6974
+ </dd>
6975
+ </dl>
6976
+ </dd>
6977
+ </dl>
6978
+
6979
+ #### ⚙️ Parameters
6980
+
6981
+ <dl>
6982
+ <dd>
6983
+
6984
+ <dl>
6985
+ <dd>
6986
+
6987
+ **requestOptions:** `CustomChannelEvents.RequestOptions`
6988
+
6989
+ </dd>
6990
+ </dl>
6991
+ </dd>
6992
+ </dl>
6993
+
6994
+ </dd>
6995
+ </dl>
6996
+ </details>
6997
+
6836
6998
  ## HelpCenters Collections
6837
6999
 
6838
7000
  <details><summary><code>client.helpCenters.collections.<a href="/src/api/resources/helpCenters/resources/collections/client/Client.ts">list</a>({ ...params }) -> core.Page<Intercom.Collection></code></summary>
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.2.0";
1
+ export declare const SDK_VERSION = "6.3.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "6.2.0";
4
+ exports.SDK_VERSION = "6.3.0";