intercom-client 7.0.1 → 7.0.2

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 (152) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +33 -28
  4. package/dist/cjs/api/resources/index.d.ts +1 -0
  5. package/dist/cjs/api/resources/index.js +2 -1
  6. package/dist/cjs/api/resources/ipAllowlist/client/Client.d.ts +56 -0
  7. package/dist/cjs/api/resources/ipAllowlist/client/Client.js +176 -0
  8. package/dist/cjs/api/resources/ipAllowlist/client/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/ipAllowlist/client/index.js +2 -0
  10. package/dist/cjs/api/resources/ipAllowlist/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/ipAllowlist/index.js +17 -0
  12. package/dist/cjs/api/resources/unstable/client/Client.d.ts +3 -0
  13. package/dist/cjs/api/resources/unstable/client/Client.js +5 -0
  14. package/dist/cjs/api/resources/unstable/resources/aiAgent/types/AiAgent.d.ts +1 -0
  15. package/dist/cjs/api/resources/unstable/resources/aiAgent/types/AiAgent.js +1 -0
  16. package/dist/cjs/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.d.ts +2 -0
  17. package/dist/cjs/api/resources/unstable/resources/contacts/types/Contact.d.ts +1 -1
  18. package/dist/cjs/api/resources/unstable/resources/conversations/client/Client.d.ts +18 -0
  19. package/dist/cjs/api/resources/unstable/resources/conversations/client/Client.js +56 -0
  20. package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/ListHandlingEventsRequest.d.ts +10 -0
  21. package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/ListHandlingEventsRequest.js +3 -0
  22. package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/unstable/resources/conversations/types/Conversation.d.ts +2 -0
  24. package/dist/cjs/api/resources/unstable/resources/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/unstable/resources/index.js +3 -1
  26. package/dist/cjs/api/resources/unstable/resources/workflows/client/Client.d.ts +39 -0
  27. package/dist/cjs/api/resources/unstable/resources/workflows/client/Client.js +122 -0
  28. package/dist/cjs/api/resources/unstable/resources/workflows/client/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/unstable/resources/workflows/client/index.js +17 -0
  30. package/dist/cjs/api/resources/unstable/resources/workflows/client/requests/ExportWorkflowRequest.d.ts +10 -0
  31. package/dist/cjs/api/resources/unstable/resources/workflows/client/requests/ExportWorkflowRequest.js +3 -0
  32. package/dist/cjs/api/resources/unstable/resources/workflows/client/requests/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/unstable/resources/workflows/client/requests/index.js +2 -0
  34. package/dist/cjs/api/resources/unstable/resources/workflows/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/unstable/resources/workflows/index.js +17 -0
  36. package/dist/cjs/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.d.ts +3 -1
  37. package/dist/cjs/api/resources/unstable/types/ConversationAttributeUpdatedByUser.d.ts +19 -0
  38. package/dist/cjs/api/resources/unstable/types/ConversationAttributeUpdatedByUser.js +3 -0
  39. package/dist/cjs/api/resources/unstable/types/ConversationSlaAppliedByRule.d.ts +24 -0
  40. package/dist/cjs/api/resources/unstable/types/ConversationSlaAppliedByRule.js +3 -0
  41. package/dist/cjs/api/resources/unstable/types/ConversationSlaAppliedByWorkflow.d.ts +24 -0
  42. package/dist/cjs/api/resources/unstable/types/ConversationSlaAppliedByWorkflow.js +3 -0
  43. package/dist/cjs/api/resources/unstable/types/ConversationSlaPaused.d.ts +29 -0
  44. package/dist/cjs/api/resources/unstable/types/ConversationSlaPaused.js +14 -0
  45. package/dist/cjs/api/resources/unstable/types/ConversationSlaRemoved.d.ts +7 -0
  46. package/dist/cjs/api/resources/unstable/types/ConversationSlaRemoved.js +3 -0
  47. package/dist/cjs/api/resources/unstable/types/ConversationSlaTargetMissed.d.ts +50 -0
  48. package/dist/cjs/api/resources/unstable/types/ConversationSlaTargetMissed.js +35 -0
  49. package/dist/cjs/api/resources/unstable/types/ConversationSlaUnpaused.d.ts +7 -0
  50. package/dist/cjs/api/resources/unstable/types/ConversationSlaUnpaused.js +3 -0
  51. package/dist/cjs/api/resources/unstable/types/ConversationTagsUpdated.d.ts +9 -0
  52. package/dist/cjs/api/resources/unstable/types/ConversationTagsUpdated.js +3 -0
  53. package/dist/cjs/api/resources/unstable/types/EventDetails.d.ts +1 -1
  54. package/dist/cjs/api/resources/unstable/types/HandlingEvent.d.ts +21 -0
  55. package/dist/cjs/api/resources/unstable/types/HandlingEvent.js +12 -0
  56. package/dist/cjs/api/resources/unstable/types/HandlingEventList.d.ts +8 -0
  57. package/dist/cjs/api/resources/unstable/types/HandlingEventList.js +3 -0
  58. package/dist/cjs/api/resources/unstable/types/PriorityChanged.d.ts +23 -0
  59. package/dist/cjs/api/resources/unstable/types/PriorityChanged.js +17 -0
  60. package/dist/cjs/api/resources/unstable/types/Snoozed.d.ts +9 -0
  61. package/dist/cjs/api/resources/unstable/types/Snoozed.js +3 -0
  62. package/dist/cjs/api/resources/unstable/types/TeammateReference.d.ts +22 -0
  63. package/dist/cjs/api/resources/unstable/types/TeammateReference.js +13 -0
  64. package/dist/cjs/api/resources/unstable/types/WorkflowExport.d.ts +55 -0
  65. package/dist/cjs/api/resources/unstable/types/WorkflowExport.js +16 -0
  66. package/dist/cjs/api/resources/unstable/types/index.d.ts +14 -0
  67. package/dist/cjs/api/resources/unstable/types/index.js +14 -0
  68. package/dist/cjs/api/types/ActivityLog.d.ts +6 -1
  69. package/dist/cjs/api/types/ActivityLog.js +6 -1
  70. package/dist/cjs/api/types/IpAllowlist.d.ts +16 -0
  71. package/dist/cjs/api/types/IpAllowlist.js +3 -0
  72. package/dist/cjs/api/types/index.d.ts +1 -0
  73. package/dist/cjs/api/types/index.js +1 -0
  74. package/dist/cjs/version.d.ts +1 -1
  75. package/dist/cjs/version.js +1 -1
  76. package/dist/esm/BaseClient.mjs +2 -2
  77. package/dist/esm/Client.d.mts +3 -0
  78. package/dist/esm/Client.mjs +5 -0
  79. package/dist/esm/api/resources/index.d.mts +1 -0
  80. package/dist/esm/api/resources/index.mjs +1 -0
  81. package/dist/esm/api/resources/ipAllowlist/client/Client.d.mts +56 -0
  82. package/dist/esm/api/resources/ipAllowlist/client/Client.mjs +139 -0
  83. package/dist/esm/api/resources/ipAllowlist/client/index.d.mts +1 -0
  84. package/dist/esm/api/resources/ipAllowlist/client/index.mjs +1 -0
  85. package/dist/esm/api/resources/ipAllowlist/index.d.mts +1 -0
  86. package/dist/esm/api/resources/ipAllowlist/index.mjs +1 -0
  87. package/dist/esm/api/resources/unstable/client/Client.d.mts +3 -0
  88. package/dist/esm/api/resources/unstable/client/Client.mjs +5 -0
  89. package/dist/esm/api/resources/unstable/resources/aiAgent/types/AiAgent.d.mts +1 -0
  90. package/dist/esm/api/resources/unstable/resources/aiAgent/types/AiAgent.mjs +1 -0
  91. package/dist/esm/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.d.mts +2 -0
  92. package/dist/esm/api/resources/unstable/resources/contacts/types/Contact.d.mts +1 -1
  93. package/dist/esm/api/resources/unstable/resources/conversations/client/Client.d.mts +18 -0
  94. package/dist/esm/api/resources/unstable/resources/conversations/client/Client.mjs +56 -0
  95. package/dist/esm/api/resources/unstable/resources/conversations/client/requests/ListHandlingEventsRequest.d.mts +10 -0
  96. package/dist/esm/api/resources/unstable/resources/conversations/client/requests/ListHandlingEventsRequest.mjs +2 -0
  97. package/dist/esm/api/resources/unstable/resources/conversations/client/requests/index.d.mts +1 -0
  98. package/dist/esm/api/resources/unstable/resources/conversations/types/Conversation.d.mts +2 -0
  99. package/dist/esm/api/resources/unstable/resources/index.d.mts +2 -0
  100. package/dist/esm/api/resources/unstable/resources/index.mjs +2 -0
  101. package/dist/esm/api/resources/unstable/resources/workflows/client/Client.d.mts +39 -0
  102. package/dist/esm/api/resources/unstable/resources/workflows/client/Client.mjs +85 -0
  103. package/dist/esm/api/resources/unstable/resources/workflows/client/index.d.mts +1 -0
  104. package/dist/esm/api/resources/unstable/resources/workflows/client/index.mjs +1 -0
  105. package/dist/esm/api/resources/unstable/resources/workflows/client/requests/ExportWorkflowRequest.d.mts +10 -0
  106. package/dist/esm/api/resources/unstable/resources/workflows/client/requests/ExportWorkflowRequest.mjs +2 -0
  107. package/dist/esm/api/resources/unstable/resources/workflows/client/requests/index.d.mts +1 -0
  108. package/dist/esm/api/resources/unstable/resources/workflows/client/requests/index.mjs +1 -0
  109. package/dist/esm/api/resources/unstable/resources/workflows/index.d.mts +1 -0
  110. package/dist/esm/api/resources/unstable/resources/workflows/index.mjs +1 -0
  111. package/dist/esm/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.d.mts +3 -1
  112. package/dist/esm/api/resources/unstable/types/ConversationAttributeUpdatedByUser.d.mts +19 -0
  113. package/dist/esm/api/resources/unstable/types/ConversationAttributeUpdatedByUser.mjs +2 -0
  114. package/dist/esm/api/resources/unstable/types/ConversationSlaAppliedByRule.d.mts +24 -0
  115. package/dist/esm/api/resources/unstable/types/ConversationSlaAppliedByRule.mjs +2 -0
  116. package/dist/esm/api/resources/unstable/types/ConversationSlaAppliedByWorkflow.d.mts +24 -0
  117. package/dist/esm/api/resources/unstable/types/ConversationSlaAppliedByWorkflow.mjs +2 -0
  118. package/dist/esm/api/resources/unstable/types/ConversationSlaPaused.d.mts +29 -0
  119. package/dist/esm/api/resources/unstable/types/ConversationSlaPaused.mjs +11 -0
  120. package/dist/esm/api/resources/unstable/types/ConversationSlaRemoved.d.mts +7 -0
  121. package/dist/esm/api/resources/unstable/types/ConversationSlaRemoved.mjs +2 -0
  122. package/dist/esm/api/resources/unstable/types/ConversationSlaTargetMissed.d.mts +50 -0
  123. package/dist/esm/api/resources/unstable/types/ConversationSlaTargetMissed.mjs +32 -0
  124. package/dist/esm/api/resources/unstable/types/ConversationSlaUnpaused.d.mts +7 -0
  125. package/dist/esm/api/resources/unstable/types/ConversationSlaUnpaused.mjs +2 -0
  126. package/dist/esm/api/resources/unstable/types/ConversationTagsUpdated.d.mts +9 -0
  127. package/dist/esm/api/resources/unstable/types/ConversationTagsUpdated.mjs +2 -0
  128. package/dist/esm/api/resources/unstable/types/EventDetails.d.mts +1 -1
  129. package/dist/esm/api/resources/unstable/types/HandlingEvent.d.mts +21 -0
  130. package/dist/esm/api/resources/unstable/types/HandlingEvent.mjs +9 -0
  131. package/dist/esm/api/resources/unstable/types/HandlingEventList.d.mts +8 -0
  132. package/dist/esm/api/resources/unstable/types/HandlingEventList.mjs +2 -0
  133. package/dist/esm/api/resources/unstable/types/PriorityChanged.d.mts +23 -0
  134. package/dist/esm/api/resources/unstable/types/PriorityChanged.mjs +14 -0
  135. package/dist/esm/api/resources/unstable/types/Snoozed.d.mts +9 -0
  136. package/dist/esm/api/resources/unstable/types/Snoozed.mjs +2 -0
  137. package/dist/esm/api/resources/unstable/types/TeammateReference.d.mts +22 -0
  138. package/dist/esm/api/resources/unstable/types/TeammateReference.mjs +10 -0
  139. package/dist/esm/api/resources/unstable/types/WorkflowExport.d.mts +55 -0
  140. package/dist/esm/api/resources/unstable/types/WorkflowExport.mjs +13 -0
  141. package/dist/esm/api/resources/unstable/types/index.d.mts +14 -0
  142. package/dist/esm/api/resources/unstable/types/index.mjs +14 -0
  143. package/dist/esm/api/types/ActivityLog.d.mts +6 -1
  144. package/dist/esm/api/types/ActivityLog.mjs +6 -1
  145. package/dist/esm/api/types/IpAllowlist.d.mts +16 -0
  146. package/dist/esm/api/types/IpAllowlist.mjs +2 -0
  147. package/dist/esm/api/types/index.d.mts +1 -0
  148. package/dist/esm/api/types/index.mjs +1 -0
  149. package/dist/esm/version.d.mts +1 -1
  150. package/dist/esm/version.mjs +1 -1
  151. package/package.json +1 -1
  152. package/reference.md +265 -0
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_js_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "intercom-client",
47
- "X-Fern-SDK-Version": "7.0.0",
48
- "User-Agent": "intercom-client/7.0.0",
47
+ "X-Fern-SDK-Version": "7.0.2",
48
+ "User-Agent": "intercom-client/7.0.2",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "Intercom-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2.14",
@@ -14,6 +14,7 @@ import { EventsClient } from "./api/resources/events/client/Client.js";
14
14
  import { ExportClient } from "./api/resources/export/client/Client.js";
15
15
  import { HelpCentersClient } from "./api/resources/helpCenters/client/Client.js";
16
16
  import { InternalArticlesClient } from "./api/resources/internalArticles/client/Client.js";
17
+ import { IpAllowlistClient } from "./api/resources/ipAllowlist/client/Client.js";
17
18
  import { JobsClient } from "./api/resources/jobs/client/Client.js";
18
19
  import { MessagesClient } from "./api/resources/messages/client/Client.js";
19
20
  import { NewsClient } from "./api/resources/news/client/Client.js";
@@ -46,6 +47,7 @@ export declare class IntercomClient {
46
47
  protected _dataExport: DataExportClient | undefined;
47
48
  protected _helpCenters: HelpCentersClient | undefined;
48
49
  protected _internalArticles: InternalArticlesClient | undefined;
50
+ protected _ipAllowlist: IpAllowlistClient | undefined;
49
51
  protected _companies: CompaniesClient | undefined;
50
52
  protected _contacts: ContactsClient | undefined;
51
53
  protected _notes: NotesClient | undefined;
@@ -77,6 +79,7 @@ export declare class IntercomClient {
77
79
  get dataExport(): DataExportClient;
78
80
  get helpCenters(): HelpCentersClient;
79
81
  get internalArticles(): InternalArticlesClient;
82
+ get ipAllowlist(): IpAllowlistClient;
80
83
  get companies(): CompaniesClient;
81
84
  get contacts(): ContactsClient;
82
85
  get notes(): NotesClient;
@@ -18,20 +18,21 @@ const Client_js_13 = require("./api/resources/events/client/Client.js");
18
18
  const Client_js_14 = require("./api/resources/export/client/Client.js");
19
19
  const Client_js_15 = require("./api/resources/helpCenters/client/Client.js");
20
20
  const Client_js_16 = require("./api/resources/internalArticles/client/Client.js");
21
- const Client_js_17 = require("./api/resources/jobs/client/Client.js");
22
- const Client_js_18 = require("./api/resources/messages/client/Client.js");
23
- const Client_js_19 = require("./api/resources/news/client/Client.js");
24
- const Client_js_20 = require("./api/resources/notes/client/Client.js");
25
- const Client_js_21 = require("./api/resources/phoneCallRedirects/client/Client.js");
26
- const Client_js_22 = require("./api/resources/segments/client/Client.js");
27
- const Client_js_23 = require("./api/resources/subscriptionTypes/client/Client.js");
28
- const Client_js_24 = require("./api/resources/tags/client/Client.js");
29
- const Client_js_25 = require("./api/resources/teams/client/Client.js");
30
- const Client_js_26 = require("./api/resources/ticketStates/client/Client.js");
31
- const Client_js_27 = require("./api/resources/tickets/client/Client.js");
32
- const Client_js_28 = require("./api/resources/ticketTypes/client/Client.js");
33
- const Client_js_29 = require("./api/resources/unstable/client/Client.js");
34
- const Client_js_30 = require("./api/resources/visitors/client/Client.js");
21
+ const Client_js_17 = require("./api/resources/ipAllowlist/client/Client.js");
22
+ const Client_js_18 = require("./api/resources/jobs/client/Client.js");
23
+ const Client_js_19 = require("./api/resources/messages/client/Client.js");
24
+ const Client_js_20 = require("./api/resources/news/client/Client.js");
25
+ const Client_js_21 = require("./api/resources/notes/client/Client.js");
26
+ const Client_js_22 = require("./api/resources/phoneCallRedirects/client/Client.js");
27
+ const Client_js_23 = require("./api/resources/segments/client/Client.js");
28
+ const Client_js_24 = require("./api/resources/subscriptionTypes/client/Client.js");
29
+ const Client_js_25 = require("./api/resources/tags/client/Client.js");
30
+ const Client_js_26 = require("./api/resources/teams/client/Client.js");
31
+ const Client_js_27 = require("./api/resources/ticketStates/client/Client.js");
32
+ const Client_js_28 = require("./api/resources/tickets/client/Client.js");
33
+ const Client_js_29 = require("./api/resources/ticketTypes/client/Client.js");
34
+ const Client_js_30 = require("./api/resources/unstable/client/Client.js");
35
+ const Client_js_31 = require("./api/resources/visitors/client/Client.js");
35
36
  const BaseClient_js_1 = require("./BaseClient.js");
36
37
  class IntercomClient {
37
38
  constructor(options = {}) {
@@ -69,6 +70,10 @@ class IntercomClient {
69
70
  var _a;
70
71
  return ((_a = this._internalArticles) !== null && _a !== void 0 ? _a : (this._internalArticles = new Client_js_16.InternalArticlesClient(this._options)));
71
72
  }
73
+ get ipAllowlist() {
74
+ var _a;
75
+ return ((_a = this._ipAllowlist) !== null && _a !== void 0 ? _a : (this._ipAllowlist = new Client_js_17.IpAllowlistClient(this._options)));
76
+ }
72
77
  get companies() {
73
78
  var _a;
74
79
  return ((_a = this._companies) !== null && _a !== void 0 ? _a : (this._companies = new Client_js_6.CompaniesClient(this._options)));
@@ -79,11 +84,11 @@ class IntercomClient {
79
84
  }
80
85
  get notes() {
81
86
  var _a;
82
- return ((_a = this._notes) !== null && _a !== void 0 ? _a : (this._notes = new Client_js_20.NotesClient(this._options)));
87
+ return ((_a = this._notes) !== null && _a !== void 0 ? _a : (this._notes = new Client_js_21.NotesClient(this._options)));
83
88
  }
84
89
  get tags() {
85
90
  var _a;
86
- return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_24.TagsClient(this._options)));
91
+ return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_25.TagsClient(this._options)));
87
92
  }
88
93
  get conversations() {
89
94
  var _a;
@@ -107,23 +112,23 @@ class IntercomClient {
107
112
  }
108
113
  get jobs() {
109
114
  var _a;
110
- return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_js_17.JobsClient(this._options)));
115
+ return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_js_18.JobsClient(this._options)));
111
116
  }
112
117
  get messages() {
113
118
  var _a;
114
- return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_18.MessagesClient(this._options)));
119
+ return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_19.MessagesClient(this._options)));
115
120
  }
116
121
  get segments() {
117
122
  var _a;
118
- return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_js_22.SegmentsClient(this._options)));
123
+ return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_js_23.SegmentsClient(this._options)));
119
124
  }
120
125
  get subscriptionTypes() {
121
126
  var _a;
122
- return ((_a = this._subscriptionTypes) !== null && _a !== void 0 ? _a : (this._subscriptionTypes = new Client_js_23.SubscriptionTypesClient(this._options)));
127
+ return ((_a = this._subscriptionTypes) !== null && _a !== void 0 ? _a : (this._subscriptionTypes = new Client_js_24.SubscriptionTypesClient(this._options)));
123
128
  }
124
129
  get phoneCallRedirects() {
125
130
  var _a;
126
- return ((_a = this._phoneCallRedirects) !== null && _a !== void 0 ? _a : (this._phoneCallRedirects = new Client_js_21.PhoneCallRedirectsClient(this._options)));
131
+ return ((_a = this._phoneCallRedirects) !== null && _a !== void 0 ? _a : (this._phoneCallRedirects = new Client_js_22.PhoneCallRedirectsClient(this._options)));
127
132
  }
128
133
  get calls() {
129
134
  var _a;
@@ -131,31 +136,31 @@ class IntercomClient {
131
136
  }
132
137
  get teams() {
133
138
  var _a;
134
- return ((_a = this._teams) !== null && _a !== void 0 ? _a : (this._teams = new Client_js_25.TeamsClient(this._options)));
139
+ return ((_a = this._teams) !== null && _a !== void 0 ? _a : (this._teams = new Client_js_26.TeamsClient(this._options)));
135
140
  }
136
141
  get ticketStates() {
137
142
  var _a;
138
- return ((_a = this._ticketStates) !== null && _a !== void 0 ? _a : (this._ticketStates = new Client_js_26.TicketStatesClient(this._options)));
143
+ return ((_a = this._ticketStates) !== null && _a !== void 0 ? _a : (this._ticketStates = new Client_js_27.TicketStatesClient(this._options)));
139
144
  }
140
145
  get ticketTypes() {
141
146
  var _a;
142
- return ((_a = this._ticketTypes) !== null && _a !== void 0 ? _a : (this._ticketTypes = new Client_js_28.TicketTypesClient(this._options)));
147
+ return ((_a = this._ticketTypes) !== null && _a !== void 0 ? _a : (this._ticketTypes = new Client_js_29.TicketTypesClient(this._options)));
143
148
  }
144
149
  get tickets() {
145
150
  var _a;
146
- return ((_a = this._tickets) !== null && _a !== void 0 ? _a : (this._tickets = new Client_js_27.TicketsClient(this._options)));
151
+ return ((_a = this._tickets) !== null && _a !== void 0 ? _a : (this._tickets = new Client_js_28.TicketsClient(this._options)));
147
152
  }
148
153
  get visitors() {
149
154
  var _a;
150
- return ((_a = this._visitors) !== null && _a !== void 0 ? _a : (this._visitors = new Client_js_30.VisitorsClient(this._options)));
155
+ return ((_a = this._visitors) !== null && _a !== void 0 ? _a : (this._visitors = new Client_js_31.VisitorsClient(this._options)));
151
156
  }
152
157
  get news() {
153
158
  var _a;
154
- return ((_a = this._news) !== null && _a !== void 0 ? _a : (this._news = new Client_js_19.NewsClient(this._options)));
159
+ return ((_a = this._news) !== null && _a !== void 0 ? _a : (this._news = new Client_js_20.NewsClient(this._options)));
155
160
  }
156
161
  get unstable() {
157
162
  var _a;
158
- return ((_a = this._unstable) !== null && _a !== void 0 ? _a : (this._unstable = new Client_js_29.UnstableClient(this._options)));
163
+ return ((_a = this._unstable) !== null && _a !== void 0 ? _a : (this._unstable = new Client_js_30.UnstableClient(this._options)));
159
164
  }
160
165
  }
161
166
  exports.IntercomClient = IntercomClient;
@@ -49,6 +49,7 @@ export * as helpCenters from "./helpCenters/index.js";
49
49
  export * from "./internalArticles/client/requests/index.js";
50
50
  export * as internalArticles from "./internalArticles/index.js";
51
51
  export * from "./internalArticles/types/index.js";
52
+ export * as ipAllowlist from "./ipAllowlist/index.js";
52
53
  export * from "./jobs/client/requests/index.js";
53
54
  export * as jobs from "./jobs/index.js";
54
55
  export * from "./jobs/types/index.js";
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.visitors = exports.unstable = exports.ticketTypes = exports.tickets = exports.ticketStates = exports.teams = exports.tags = exports.subscriptionTypes = exports.segments = exports.phoneCallRedirects = exports.notes = exports.news = exports.messages = exports.jobs = exports.internalArticles = exports.helpCenters = exports.helpCenter = exports.export_ = exports.events = exports.dataExport = exports.dataEvents = exports.dataAttributes = exports.customObjectInstances = exports.customChannelEvents = exports.conversations = exports.contacts = exports.companies = exports.calls = exports.awayStatusReasons = exports.articles = exports.aiContentSource = exports.aiContent = exports.aiAgent = exports.admins = void 0;
39
+ exports.visitors = exports.unstable = exports.ticketTypes = exports.tickets = exports.ticketStates = exports.teams = exports.tags = exports.subscriptionTypes = exports.segments = exports.phoneCallRedirects = exports.notes = exports.news = exports.messages = exports.jobs = exports.ipAllowlist = exports.internalArticles = exports.helpCenters = exports.helpCenter = exports.export_ = exports.events = exports.dataExport = exports.dataEvents = exports.dataAttributes = exports.customObjectInstances = exports.customChannelEvents = exports.conversations = exports.contacts = exports.companies = exports.calls = exports.awayStatusReasons = exports.articles = exports.aiContentSource = exports.aiContent = exports.aiAgent = exports.admins = void 0;
40
40
  __exportStar(require("./admins/client/requests/index.js"), exports);
41
41
  exports.admins = __importStar(require("./admins/index.js"));
42
42
  __exportStar(require("./admins/types/index.js"), exports);
@@ -88,6 +88,7 @@ exports.helpCenters = __importStar(require("./helpCenters/index.js"));
88
88
  __exportStar(require("./internalArticles/client/requests/index.js"), exports);
89
89
  exports.internalArticles = __importStar(require("./internalArticles/index.js"));
90
90
  __exportStar(require("./internalArticles/types/index.js"), exports);
91
+ exports.ipAllowlist = __importStar(require("./ipAllowlist/index.js"));
91
92
  __exportStar(require("./jobs/client/requests/index.js"), exports);
92
93
  exports.jobs = __importStar(require("./jobs/index.js"));
93
94
  __exportStar(require("./jobs/types/index.js"), exports);
@@ -0,0 +1,56 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as Intercom from "../../../index.js";
5
+ export declare namespace IpAllowlistClient {
6
+ interface Options extends BaseClientOptions {
7
+ }
8
+ interface RequestOptions extends BaseRequestOptions {
9
+ }
10
+ }
11
+ /**
12
+ * Manage IP allowlist settings for your workspace.
13
+ *
14
+ * The IP Allowlist API allows you to configure which IP addresses are allowed to access the Intercom API and web application for your workspace. This is useful for restricting access to your Intercom workspace to specific corporate networks or VPNs.
15
+ *
16
+ * {% admonition type="info" name="Authentication" %}
17
+ * This endpoint requires the `manage_ip_allowlist` OAuth scope.
18
+ * {% /admonition %}
19
+ */
20
+ export declare class IpAllowlistClient {
21
+ protected readonly _options: NormalizedClientOptionsWithAuth<IpAllowlistClient.Options>;
22
+ constructor(options?: IpAllowlistClient.Options);
23
+ /**
24
+ * Retrieve the current IP allowlist configuration for the workspace.
25
+ *
26
+ * @param {IpAllowlistClient.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Intercom.UnauthorizedError}
29
+ *
30
+ * @example
31
+ * await client.ipAllowlist.getIpAllowlist()
32
+ */
33
+ getIpAllowlist(requestOptions?: IpAllowlistClient.RequestOptions): core.HttpResponsePromise<Intercom.IpAllowlist>;
34
+ private __getIpAllowlist;
35
+ /**
36
+ * Update the IP allowlist configuration for the workspace.
37
+ *
38
+ * {% admonition type="warning" name="Lockout Protection" %}
39
+ * The API will reject updates that would lock out the caller's IP address. Ensure your current IP is included in the allowlist when enabling the feature.
40
+ * {% /admonition %}
41
+ *
42
+ * @param {Intercom.IpAllowlist} request
43
+ * @param {IpAllowlistClient.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
45
+ * @throws {@link Intercom.UnauthorizedError}
46
+ * @throws {@link Intercom.UnprocessableEntityError}
47
+ *
48
+ * @example
49
+ * await client.ipAllowlist.updateIpAllowlist({
50
+ * enabled: true,
51
+ * ip_allowlist: ["192.168.1.0/24", "10.0.0.1"]
52
+ * })
53
+ */
54
+ updateIpAllowlist(request: Intercom.IpAllowlist, requestOptions?: IpAllowlistClient.RequestOptions): core.HttpResponsePromise<Intercom.IpAllowlist>;
55
+ private __updateIpAllowlist;
56
+ }
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.IpAllowlistClient = void 0;
47
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../core/index.js"));
50
+ const environments = __importStar(require("../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
52
+ const errors = __importStar(require("../../../../errors/index.js"));
53
+ const Intercom = __importStar(require("../../../index.js"));
54
+ /**
55
+ * Manage IP allowlist settings for your workspace.
56
+ *
57
+ * The IP Allowlist API allows you to configure which IP addresses are allowed to access the Intercom API and web application for your workspace. This is useful for restricting access to your Intercom workspace to specific corporate networks or VPNs.
58
+ *
59
+ * {% admonition type="info" name="Authentication" %}
60
+ * This endpoint requires the `manage_ip_allowlist` OAuth scope.
61
+ * {% /admonition %}
62
+ */
63
+ class IpAllowlistClient {
64
+ constructor(options = {}) {
65
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
66
+ }
67
+ /**
68
+ * Retrieve the current IP allowlist configuration for the workspace.
69
+ *
70
+ * @param {IpAllowlistClient.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link Intercom.UnauthorizedError}
73
+ *
74
+ * @example
75
+ * await client.ipAllowlist.getIpAllowlist()
76
+ */
77
+ getIpAllowlist(requestOptions) {
78
+ return core.HttpResponsePromise.fromPromise(this.__getIpAllowlist(requestOptions));
79
+ }
80
+ __getIpAllowlist(requestOptions) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
83
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
84
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Intercom-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
85
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
86
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.IntercomEnvironment.UsProduction, "ip_allowlist"),
87
+ method: "GET",
88
+ headers: _headers,
89
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
90
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 20) * 1000,
91
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
92
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
93
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
94
+ logging: this._options.logging,
95
+ });
96
+ if (_response.ok) {
97
+ return { data: _response.body, rawResponse: _response.rawResponse };
98
+ }
99
+ if (_response.error.reason === "status-code") {
100
+ switch (_response.error.statusCode) {
101
+ case 401:
102
+ throw new Intercom.UnauthorizedError(_response.error.body, _response.rawResponse);
103
+ default:
104
+ throw new errors.IntercomError({
105
+ statusCode: _response.error.statusCode,
106
+ body: _response.error.body,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
110
+ }
111
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/ip_allowlist");
112
+ });
113
+ }
114
+ /**
115
+ * Update the IP allowlist configuration for the workspace.
116
+ *
117
+ * {% admonition type="warning" name="Lockout Protection" %}
118
+ * The API will reject updates that would lock out the caller's IP address. Ensure your current IP is included in the allowlist when enabling the feature.
119
+ * {% /admonition %}
120
+ *
121
+ * @param {Intercom.IpAllowlist} request
122
+ * @param {IpAllowlistClient.RequestOptions} requestOptions - Request-specific configuration.
123
+ *
124
+ * @throws {@link Intercom.UnauthorizedError}
125
+ * @throws {@link Intercom.UnprocessableEntityError}
126
+ *
127
+ * @example
128
+ * await client.ipAllowlist.updateIpAllowlist({
129
+ * enabled: true,
130
+ * ip_allowlist: ["192.168.1.0/24", "10.0.0.1"]
131
+ * })
132
+ */
133
+ updateIpAllowlist(request, requestOptions) {
134
+ return core.HttpResponsePromise.fromPromise(this.__updateIpAllowlist(request, requestOptions));
135
+ }
136
+ __updateIpAllowlist(request, requestOptions) {
137
+ return __awaiter(this, void 0, void 0, function* () {
138
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
139
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
140
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Intercom-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
141
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
142
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.IntercomEnvironment.UsProduction, "ip_allowlist"),
143
+ method: "PUT",
144
+ headers: _headers,
145
+ contentType: "application/json",
146
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
147
+ requestType: "json",
148
+ body: request,
149
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 20) * 1000,
150
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
151
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
152
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
153
+ logging: this._options.logging,
154
+ });
155
+ if (_response.ok) {
156
+ return { data: _response.body, rawResponse: _response.rawResponse };
157
+ }
158
+ if (_response.error.reason === "status-code") {
159
+ switch (_response.error.statusCode) {
160
+ case 401:
161
+ throw new Intercom.UnauthorizedError(_response.error.body, _response.rawResponse);
162
+ case 422:
163
+ throw new Intercom.UnprocessableEntityError(_response.error.body, _response.rawResponse);
164
+ default:
165
+ throw new errors.IntercomError({
166
+ statusCode: _response.error.statusCode,
167
+ body: _response.error.body,
168
+ rawResponse: _response.rawResponse,
169
+ });
170
+ }
171
+ }
172
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/ip_allowlist");
173
+ });
174
+ }
175
+ }
176
+ exports.IpAllowlistClient = IpAllowlistClient;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -33,6 +33,7 @@ import { TicketsClient } from "../resources/tickets/client/Client.js";
33
33
  import { TicketTypeAttributesClient } from "../resources/ticketTypeAttributes/client/Client.js";
34
34
  import { TicketTypesClient } from "../resources/ticketTypes/client/Client.js";
35
35
  import { VisitorsClient } from "../resources/visitors/client/Client.js";
36
+ import { WorkflowsClient } from "../resources/workflows/client/Client.js";
36
37
  export declare namespace UnstableClient {
37
38
  interface Options extends BaseClientOptions {
38
39
  }
@@ -57,6 +58,7 @@ export declare class UnstableClient {
57
58
  protected _dataAttributes: DataAttributesClient | undefined;
58
59
  protected _dataEvents: DataEventsClient | undefined;
59
60
  protected _dataExport: DataExportClient | undefined;
61
+ protected _workflows: WorkflowsClient | undefined;
60
62
  protected _jobs: JobsClient | undefined;
61
63
  protected _macros: MacrosClient | undefined;
62
64
  protected _messages: MessagesClient | undefined;
@@ -91,6 +93,7 @@ export declare class UnstableClient {
91
93
  get dataAttributes(): DataAttributesClient;
92
94
  get dataEvents(): DataEventsClient;
93
95
  get dataExport(): DataExportClient;
96
+ get workflows(): WorkflowsClient;
94
97
  get jobs(): JobsClient;
95
98
  get macros(): MacrosClient;
96
99
  get messages(): MessagesClient;
@@ -36,6 +36,7 @@ const Client_js_30 = require("../resources/tickets/client/Client.js");
36
36
  const Client_js_31 = require("../resources/ticketTypeAttributes/client/Client.js");
37
37
  const Client_js_32 = require("../resources/ticketTypes/client/Client.js");
38
38
  const Client_js_33 = require("../resources/visitors/client/Client.js");
39
+ const Client_js_34 = require("../resources/workflows/client/Client.js");
39
40
  class UnstableClient {
40
41
  constructor(options = {}) {
41
42
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
@@ -112,6 +113,10 @@ class UnstableClient {
112
113
  var _a;
113
114
  return ((_a = this._dataExport) !== null && _a !== void 0 ? _a : (this._dataExport = new Client_js_14.DataExportClient(this._options)));
114
115
  }
116
+ get workflows() {
117
+ var _a;
118
+ return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_34.WorkflowsClient(this._options)));
119
+ }
115
120
  get jobs() {
116
121
  var _a;
117
122
  return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_js_19.JobsClient(this._options)));
@@ -43,6 +43,7 @@ export declare namespace AiAgent {
43
43
  readonly ConfirmedResolution: "confirmed_resolution";
44
44
  readonly Escalated: "escalated";
45
45
  readonly NegativeFeedback: "negative_feedback";
46
+ readonly ProcedureHandoff: "procedure_handoff";
46
47
  };
47
48
  type ResolutionState = (typeof ResolutionState)[keyof typeof ResolutionState];
48
49
  }
@@ -23,5 +23,6 @@ var AiAgent;
23
23
  ConfirmedResolution: "confirmed_resolution",
24
24
  Escalated: "escalated",
25
25
  NegativeFeedback: "negative_feedback",
26
+ ProcedureHandoff: "procedure_handoff",
26
27
  };
27
28
  })(AiAgent || (exports.AiAgent = AiAgent = {}));
@@ -39,6 +39,8 @@ export interface UpdateContactRequest {
39
39
  owner_id?: number;
40
40
  /** Whether the contact is unsubscribed from emails */
41
41
  unsubscribed_from_emails?: boolean;
42
+ /** A preferred language setting for the contact, used by Intercom as the language of Fin and the Messenger even if their browser has a different setting. Supports ISO 639-1 two-letter language codes. If an unsupported code is supplied, the field will be set to null. */
43
+ language_override?: string;
42
44
  /** The custom attributes which are set for the contact */
43
45
  custom_attributes?: Record<string, unknown>;
44
46
  }
@@ -47,7 +47,7 @@ export interface Contact {
47
47
  last_email_opened_at?: number;
48
48
  /** (UNIX timestamp) The time when the contact last clicked a link in an email. */
49
49
  last_email_clicked_at?: number;
50
- /** A preferred language setting for the contact, used by the Intercom Messenger even if their browser settings change. */
50
+ /** A preferred language setting for the contact, used by Intercom as the language of Fin and the Messenger even if their browser has a different setting. Supports ISO 639-1 two-letter language codes. If an unsupported code is supplied, the field will be set to null. */
51
51
  language_override?: string;
52
52
  /** The name of the browser which the contact is using. */
53
53
  browser?: string;
@@ -479,6 +479,24 @@ export declare class ConversationsClient {
479
479
  */
480
480
  detachContactFromConversation(request: Intercom.unstable.DetachContactFromConversationRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<Intercom.unstable.Conversation>;
481
481
  private __detachContactFromConversation;
482
+ /**
483
+ * List all pause/resume events for a conversation. These events track when teammates paused or resumed handling a conversation.
484
+ *
485
+ * Requires the `read_conversations` OAuth scope.
486
+ *
487
+ * @param {Intercom.unstable.ListHandlingEventsRequest} request
488
+ * @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
489
+ *
490
+ * @throws {@link Intercom.unstable.UnauthorizedError}
491
+ * @throws {@link Intercom.unstable.NotFoundError}
492
+ *
493
+ * @example
494
+ * await client.unstable.conversations.listHandlingEvents({
495
+ * id: "123"
496
+ * })
497
+ */
498
+ listHandlingEvents(request: Intercom.unstable.ListHandlingEventsRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<Intercom.unstable.HandlingEventList>;
499
+ private __listHandlingEvents;
482
500
  /**
483
501
  * You can redact a conversation part or the source message of a conversation (as seen in the source object).
484
502
  *
@@ -963,6 +963,62 @@ class ConversationsClient {
963
963
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/conversations/{conversation_id}/customers/{contact_id}");
964
964
  });
965
965
  }
966
+ /**
967
+ * List all pause/resume events for a conversation. These events track when teammates paused or resumed handling a conversation.
968
+ *
969
+ * Requires the `read_conversations` OAuth scope.
970
+ *
971
+ * @param {Intercom.unstable.ListHandlingEventsRequest} request
972
+ * @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
973
+ *
974
+ * @throws {@link Intercom.unstable.UnauthorizedError}
975
+ * @throws {@link Intercom.unstable.NotFoundError}
976
+ *
977
+ * @example
978
+ * await client.unstable.conversations.listHandlingEvents({
979
+ * id: "123"
980
+ * })
981
+ */
982
+ listHandlingEvents(request, requestOptions) {
983
+ return core.HttpResponsePromise.fromPromise(this.__listHandlingEvents(request, requestOptions));
984
+ }
985
+ __listHandlingEvents(request, requestOptions) {
986
+ return __awaiter(this, void 0, void 0, function* () {
987
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
988
+ const { id } = request;
989
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
990
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Intercom-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
991
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
992
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.IntercomEnvironment.UsProduction, `conversations/${core.url.encodePathParam(id)}/handling_events`),
993
+ method: "GET",
994
+ headers: _headers,
995
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
996
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 20) * 1000,
997
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
998
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
999
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
1000
+ logging: this._options.logging,
1001
+ });
1002
+ if (_response.ok) {
1003
+ return { data: _response.body, rawResponse: _response.rawResponse };
1004
+ }
1005
+ if (_response.error.reason === "status-code") {
1006
+ switch (_response.error.statusCode) {
1007
+ case 401:
1008
+ throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
1009
+ case 404:
1010
+ throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
1011
+ default:
1012
+ throw new errors.IntercomError({
1013
+ statusCode: _response.error.statusCode,
1014
+ body: _response.error.body,
1015
+ rawResponse: _response.rawResponse,
1016
+ });
1017
+ }
1018
+ }
1019
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/conversations/{id}/handling_events");
1020
+ });
1021
+ }
966
1022
  /**
967
1023
  * You can redact a conversation part or the source message of a conversation (as seen in the source object).
968
1024
  *