intercom-client 7.0.1 → 7.0.3

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 (166) 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/contacts/types/Contact.d.ts +9 -9
  5. package/dist/cjs/api/resources/conversations/types/Conversation.d.ts +10 -10
  6. package/dist/cjs/api/resources/dataEvents/types/DataEvent.d.ts +1 -1
  7. package/dist/cjs/api/resources/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/index.js +2 -1
  9. package/dist/cjs/api/resources/ipAllowlist/client/Client.d.ts +56 -0
  10. package/dist/cjs/api/resources/ipAllowlist/client/Client.js +176 -0
  11. package/dist/cjs/api/resources/ipAllowlist/client/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/ipAllowlist/client/index.js +2 -0
  13. package/dist/cjs/api/resources/ipAllowlist/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/ipAllowlist/index.js +17 -0
  15. package/dist/cjs/api/resources/messages/types/Message.d.ts +1 -1
  16. package/dist/cjs/api/resources/notes/types/Note.d.ts +4 -4
  17. package/dist/cjs/api/resources/tickets/types/Ticket.d.ts +6 -6
  18. package/dist/cjs/api/resources/unstable/client/Client.d.ts +3 -0
  19. package/dist/cjs/api/resources/unstable/client/Client.js +5 -0
  20. package/dist/cjs/api/resources/unstable/resources/aiAgent/types/AiAgent.d.ts +1 -0
  21. package/dist/cjs/api/resources/unstable/resources/aiAgent/types/AiAgent.js +1 -0
  22. package/dist/cjs/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.d.ts +2 -0
  23. package/dist/cjs/api/resources/unstable/resources/contacts/types/Contact.d.ts +1 -1
  24. package/dist/cjs/api/resources/unstable/resources/conversations/client/Client.d.ts +18 -0
  25. package/dist/cjs/api/resources/unstable/resources/conversations/client/Client.js +56 -0
  26. package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/ListHandlingEventsRequest.d.ts +10 -0
  27. package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/ListHandlingEventsRequest.js +3 -0
  28. package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/unstable/resources/conversations/types/Conversation.d.ts +2 -0
  30. package/dist/cjs/api/resources/unstable/resources/index.d.ts +2 -0
  31. package/dist/cjs/api/resources/unstable/resources/index.js +3 -1
  32. package/dist/cjs/api/resources/unstable/resources/workflows/client/Client.d.ts +39 -0
  33. package/dist/cjs/api/resources/unstable/resources/workflows/client/Client.js +122 -0
  34. package/dist/cjs/api/resources/unstable/resources/workflows/client/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/unstable/resources/workflows/client/index.js +17 -0
  36. package/dist/cjs/api/resources/unstable/resources/workflows/client/requests/ExportWorkflowRequest.d.ts +10 -0
  37. package/dist/cjs/api/resources/unstable/resources/workflows/client/requests/ExportWorkflowRequest.js +3 -0
  38. package/dist/cjs/api/resources/unstable/resources/workflows/client/requests/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/unstable/resources/workflows/client/requests/index.js +2 -0
  40. package/dist/cjs/api/resources/unstable/resources/workflows/index.d.ts +1 -0
  41. package/dist/cjs/api/resources/unstable/resources/workflows/index.js +17 -0
  42. package/dist/cjs/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.d.ts +3 -1
  43. package/dist/cjs/api/resources/unstable/types/ConversationAttributeUpdatedByUser.d.ts +19 -0
  44. package/dist/cjs/api/resources/unstable/types/ConversationAttributeUpdatedByUser.js +3 -0
  45. package/dist/cjs/api/resources/unstable/types/ConversationSlaAppliedByRule.d.ts +24 -0
  46. package/dist/cjs/api/resources/unstable/types/ConversationSlaAppliedByRule.js +3 -0
  47. package/dist/cjs/api/resources/unstable/types/ConversationSlaAppliedByWorkflow.d.ts +24 -0
  48. package/dist/cjs/api/resources/unstable/types/ConversationSlaAppliedByWorkflow.js +3 -0
  49. package/dist/cjs/api/resources/unstable/types/ConversationSlaPaused.d.ts +29 -0
  50. package/dist/cjs/api/resources/unstable/types/ConversationSlaPaused.js +14 -0
  51. package/dist/cjs/api/resources/unstable/types/ConversationSlaRemoved.d.ts +7 -0
  52. package/dist/cjs/api/resources/unstable/types/ConversationSlaRemoved.js +3 -0
  53. package/dist/cjs/api/resources/unstable/types/ConversationSlaTargetMissed.d.ts +50 -0
  54. package/dist/cjs/api/resources/unstable/types/ConversationSlaTargetMissed.js +35 -0
  55. package/dist/cjs/api/resources/unstable/types/ConversationSlaUnpaused.d.ts +7 -0
  56. package/dist/cjs/api/resources/unstable/types/ConversationSlaUnpaused.js +3 -0
  57. package/dist/cjs/api/resources/unstable/types/ConversationTagsUpdated.d.ts +9 -0
  58. package/dist/cjs/api/resources/unstable/types/ConversationTagsUpdated.js +3 -0
  59. package/dist/cjs/api/resources/unstable/types/EventDetails.d.ts +1 -1
  60. package/dist/cjs/api/resources/unstable/types/HandlingEvent.d.ts +21 -0
  61. package/dist/cjs/api/resources/unstable/types/HandlingEvent.js +12 -0
  62. package/dist/cjs/api/resources/unstable/types/HandlingEventList.d.ts +8 -0
  63. package/dist/cjs/api/resources/unstable/types/HandlingEventList.js +3 -0
  64. package/dist/cjs/api/resources/unstable/types/PriorityChanged.d.ts +23 -0
  65. package/dist/cjs/api/resources/unstable/types/PriorityChanged.js +17 -0
  66. package/dist/cjs/api/resources/unstable/types/Snoozed.d.ts +9 -0
  67. package/dist/cjs/api/resources/unstable/types/Snoozed.js +3 -0
  68. package/dist/cjs/api/resources/unstable/types/TeammateReference.d.ts +22 -0
  69. package/dist/cjs/api/resources/unstable/types/TeammateReference.js +13 -0
  70. package/dist/cjs/api/resources/unstable/types/WorkflowExport.d.ts +55 -0
  71. package/dist/cjs/api/resources/unstable/types/WorkflowExport.js +16 -0
  72. package/dist/cjs/api/resources/unstable/types/index.d.ts +14 -0
  73. package/dist/cjs/api/resources/unstable/types/index.js +14 -0
  74. package/dist/cjs/api/types/ActivityLog.d.ts +6 -1
  75. package/dist/cjs/api/types/ActivityLog.js +6 -1
  76. package/dist/cjs/api/types/IpAllowlist.d.ts +16 -0
  77. package/dist/cjs/api/types/IpAllowlist.js +3 -0
  78. package/dist/cjs/api/types/Visitor.d.ts +3 -3
  79. package/dist/cjs/api/types/index.d.ts +1 -0
  80. package/dist/cjs/api/types/index.js +1 -0
  81. package/dist/cjs/version.d.ts +1 -1
  82. package/dist/cjs/version.js +1 -1
  83. package/dist/esm/BaseClient.mjs +2 -2
  84. package/dist/esm/Client.d.mts +3 -0
  85. package/dist/esm/Client.mjs +5 -0
  86. package/dist/esm/api/resources/contacts/types/Contact.d.mts +9 -9
  87. package/dist/esm/api/resources/conversations/types/Conversation.d.mts +10 -10
  88. package/dist/esm/api/resources/dataEvents/types/DataEvent.d.mts +1 -1
  89. package/dist/esm/api/resources/index.d.mts +1 -0
  90. package/dist/esm/api/resources/index.mjs +1 -0
  91. package/dist/esm/api/resources/ipAllowlist/client/Client.d.mts +56 -0
  92. package/dist/esm/api/resources/ipAllowlist/client/Client.mjs +139 -0
  93. package/dist/esm/api/resources/ipAllowlist/client/index.d.mts +1 -0
  94. package/dist/esm/api/resources/ipAllowlist/client/index.mjs +1 -0
  95. package/dist/esm/api/resources/ipAllowlist/index.d.mts +1 -0
  96. package/dist/esm/api/resources/ipAllowlist/index.mjs +1 -0
  97. package/dist/esm/api/resources/messages/types/Message.d.mts +1 -1
  98. package/dist/esm/api/resources/notes/types/Note.d.mts +4 -4
  99. package/dist/esm/api/resources/tickets/types/Ticket.d.mts +6 -6
  100. package/dist/esm/api/resources/unstable/client/Client.d.mts +3 -0
  101. package/dist/esm/api/resources/unstable/client/Client.mjs +5 -0
  102. package/dist/esm/api/resources/unstable/resources/aiAgent/types/AiAgent.d.mts +1 -0
  103. package/dist/esm/api/resources/unstable/resources/aiAgent/types/AiAgent.mjs +1 -0
  104. package/dist/esm/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.d.mts +2 -0
  105. package/dist/esm/api/resources/unstable/resources/contacts/types/Contact.d.mts +1 -1
  106. package/dist/esm/api/resources/unstable/resources/conversations/client/Client.d.mts +18 -0
  107. package/dist/esm/api/resources/unstable/resources/conversations/client/Client.mjs +56 -0
  108. package/dist/esm/api/resources/unstable/resources/conversations/client/requests/ListHandlingEventsRequest.d.mts +10 -0
  109. package/dist/esm/api/resources/unstable/resources/conversations/client/requests/ListHandlingEventsRequest.mjs +2 -0
  110. package/dist/esm/api/resources/unstable/resources/conversations/client/requests/index.d.mts +1 -0
  111. package/dist/esm/api/resources/unstable/resources/conversations/types/Conversation.d.mts +2 -0
  112. package/dist/esm/api/resources/unstable/resources/index.d.mts +2 -0
  113. package/dist/esm/api/resources/unstable/resources/index.mjs +2 -0
  114. package/dist/esm/api/resources/unstable/resources/workflows/client/Client.d.mts +39 -0
  115. package/dist/esm/api/resources/unstable/resources/workflows/client/Client.mjs +85 -0
  116. package/dist/esm/api/resources/unstable/resources/workflows/client/index.d.mts +1 -0
  117. package/dist/esm/api/resources/unstable/resources/workflows/client/index.mjs +1 -0
  118. package/dist/esm/api/resources/unstable/resources/workflows/client/requests/ExportWorkflowRequest.d.mts +10 -0
  119. package/dist/esm/api/resources/unstable/resources/workflows/client/requests/ExportWorkflowRequest.mjs +2 -0
  120. package/dist/esm/api/resources/unstable/resources/workflows/client/requests/index.d.mts +1 -0
  121. package/dist/esm/api/resources/unstable/resources/workflows/client/requests/index.mjs +1 -0
  122. package/dist/esm/api/resources/unstable/resources/workflows/index.d.mts +1 -0
  123. package/dist/esm/api/resources/unstable/resources/workflows/index.mjs +1 -0
  124. package/dist/esm/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.d.mts +3 -1
  125. package/dist/esm/api/resources/unstable/types/ConversationAttributeUpdatedByUser.d.mts +19 -0
  126. package/dist/esm/api/resources/unstable/types/ConversationAttributeUpdatedByUser.mjs +2 -0
  127. package/dist/esm/api/resources/unstable/types/ConversationSlaAppliedByRule.d.mts +24 -0
  128. package/dist/esm/api/resources/unstable/types/ConversationSlaAppliedByRule.mjs +2 -0
  129. package/dist/esm/api/resources/unstable/types/ConversationSlaAppliedByWorkflow.d.mts +24 -0
  130. package/dist/esm/api/resources/unstable/types/ConversationSlaAppliedByWorkflow.mjs +2 -0
  131. package/dist/esm/api/resources/unstable/types/ConversationSlaPaused.d.mts +29 -0
  132. package/dist/esm/api/resources/unstable/types/ConversationSlaPaused.mjs +11 -0
  133. package/dist/esm/api/resources/unstable/types/ConversationSlaRemoved.d.mts +7 -0
  134. package/dist/esm/api/resources/unstable/types/ConversationSlaRemoved.mjs +2 -0
  135. package/dist/esm/api/resources/unstable/types/ConversationSlaTargetMissed.d.mts +50 -0
  136. package/dist/esm/api/resources/unstable/types/ConversationSlaTargetMissed.mjs +32 -0
  137. package/dist/esm/api/resources/unstable/types/ConversationSlaUnpaused.d.mts +7 -0
  138. package/dist/esm/api/resources/unstable/types/ConversationSlaUnpaused.mjs +2 -0
  139. package/dist/esm/api/resources/unstable/types/ConversationTagsUpdated.d.mts +9 -0
  140. package/dist/esm/api/resources/unstable/types/ConversationTagsUpdated.mjs +2 -0
  141. package/dist/esm/api/resources/unstable/types/EventDetails.d.mts +1 -1
  142. package/dist/esm/api/resources/unstable/types/HandlingEvent.d.mts +21 -0
  143. package/dist/esm/api/resources/unstable/types/HandlingEvent.mjs +9 -0
  144. package/dist/esm/api/resources/unstable/types/HandlingEventList.d.mts +8 -0
  145. package/dist/esm/api/resources/unstable/types/HandlingEventList.mjs +2 -0
  146. package/dist/esm/api/resources/unstable/types/PriorityChanged.d.mts +23 -0
  147. package/dist/esm/api/resources/unstable/types/PriorityChanged.mjs +14 -0
  148. package/dist/esm/api/resources/unstable/types/Snoozed.d.mts +9 -0
  149. package/dist/esm/api/resources/unstable/types/Snoozed.mjs +2 -0
  150. package/dist/esm/api/resources/unstable/types/TeammateReference.d.mts +22 -0
  151. package/dist/esm/api/resources/unstable/types/TeammateReference.mjs +10 -0
  152. package/dist/esm/api/resources/unstable/types/WorkflowExport.d.mts +55 -0
  153. package/dist/esm/api/resources/unstable/types/WorkflowExport.mjs +13 -0
  154. package/dist/esm/api/resources/unstable/types/index.d.mts +14 -0
  155. package/dist/esm/api/resources/unstable/types/index.mjs +14 -0
  156. package/dist/esm/api/types/ActivityLog.d.mts +6 -1
  157. package/dist/esm/api/types/ActivityLog.mjs +6 -1
  158. package/dist/esm/api/types/IpAllowlist.d.mts +16 -0
  159. package/dist/esm/api/types/IpAllowlist.mjs +2 -0
  160. package/dist/esm/api/types/Visitor.d.mts +3 -3
  161. package/dist/esm/api/types/index.d.mts +1 -0
  162. package/dist/esm/api/types/index.mjs +1 -0
  163. package/dist/esm/version.d.mts +1 -1
  164. package/dist/esm/version.mjs +1 -1
  165. package/package.json +1 -1
  166. package/reference.md +265 -0
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Contains complete status of all SLA targets when a breach occurs for conversation part type <code>conversation_sla_target_missed</code>.
3
+ */
4
+ export interface ConversationSlaTargetMissed {
5
+ /** Name of the SLA */
6
+ sla_name?: string;
7
+ /** Which specific target was missed */
8
+ sla_target_type?: ConversationSlaTargetMissed.SlaTargetType;
9
+ /** Overall SLA status */
10
+ current_sla_status?: ConversationSlaTargetMissed.CurrentSlaStatus;
11
+ /** Status of all SLA targets at the time of breach */
12
+ sla_states?: Record<string, ConversationSlaTargetMissed.SlaStates.Value>;
13
+ }
14
+ export declare namespace ConversationSlaTargetMissed {
15
+ /** Which specific target was missed */
16
+ const SlaTargetType: {
17
+ readonly FirstReplyTime: "first_reply_time";
18
+ readonly NextReplyTime: "next_reply_time";
19
+ readonly ResolutionTime: "resolution_time";
20
+ readonly TimeToClose: "time_to_close";
21
+ };
22
+ type SlaTargetType = (typeof SlaTargetType)[keyof typeof SlaTargetType];
23
+ /** Overall SLA status */
24
+ const CurrentSlaStatus: {
25
+ readonly Hit: "hit";
26
+ readonly Missed: "missed";
27
+ readonly Active: "active";
28
+ readonly Paused: "paused";
29
+ readonly Canceled: "canceled";
30
+ };
31
+ type CurrentSlaStatus = (typeof CurrentSlaStatus)[keyof typeof CurrentSlaStatus];
32
+ namespace SlaStates {
33
+ interface Value {
34
+ /** Status of this specific target */
35
+ status?: Value.Status;
36
+ /** Time remaining for active/paused targets (null for hit/missed) */
37
+ seconds_remaining?: number;
38
+ }
39
+ namespace Value {
40
+ /** Status of this specific target */
41
+ const Status: {
42
+ readonly Hit: "hit";
43
+ readonly Missed: "missed";
44
+ readonly Active: "active";
45
+ readonly Paused: "paused";
46
+ };
47
+ type Status = (typeof Status)[keyof typeof Status];
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ConversationSlaTargetMissed = void 0;
5
+ var ConversationSlaTargetMissed;
6
+ (function (ConversationSlaTargetMissed) {
7
+ /** Which specific target was missed */
8
+ ConversationSlaTargetMissed.SlaTargetType = {
9
+ FirstReplyTime: "first_reply_time",
10
+ NextReplyTime: "next_reply_time",
11
+ ResolutionTime: "resolution_time",
12
+ TimeToClose: "time_to_close",
13
+ };
14
+ /** Overall SLA status */
15
+ ConversationSlaTargetMissed.CurrentSlaStatus = {
16
+ Hit: "hit",
17
+ Missed: "missed",
18
+ Active: "active",
19
+ Paused: "paused",
20
+ Canceled: "canceled",
21
+ };
22
+ let SlaStates;
23
+ (function (SlaStates) {
24
+ let Value;
25
+ (function (Value) {
26
+ /** Status of this specific target */
27
+ Value.Status = {
28
+ Hit: "hit",
29
+ Missed: "missed",
30
+ Active: "active",
31
+ Paused: "paused",
32
+ };
33
+ })(Value = SlaStates.Value || (SlaStates.Value = {}));
34
+ })(SlaStates = ConversationSlaTargetMissed.SlaStates || (ConversationSlaTargetMissed.SlaStates = {}));
35
+ })(ConversationSlaTargetMissed || (exports.ConversationSlaTargetMissed = ConversationSlaTargetMissed = {}));
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Contains basic SLA information when unpaused for conversation part type <code>conversation_sla_unpaused</code>.
3
+ */
4
+ export interface ConversationSlaUnpaused {
5
+ /** Name of the SLA being unpaused */
6
+ sla_name?: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Contains details about tags that were added or removed from a conversation for conversation part type <code>conversation_tags_updated</code>.
3
+ */
4
+ export interface ConversationTagsUpdated {
5
+ /** Array of tag names that were added */
6
+ tags_added?: string[];
7
+ /** Array of tag names that were removed */
8
+ tags_removed?: string[];
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  import type * as Intercom from "../../../index.js";
2
- export type EventDetails = Intercom.unstable.ConversationAttributeUpdatedByWorkflow | Intercom.unstable.ConversationAttributeUpdatedByAdmin | Intercom.unstable.CustomActionStarted | Intercom.unstable.CustomActionFinished | Intercom.unstable.OperatorWorkflowEvent;
2
+ export type EventDetails = Intercom.unstable.ConversationAttributeUpdatedByWorkflow | Intercom.unstable.ConversationAttributeUpdatedByAdmin | Intercom.unstable.ConversationAttributeUpdatedByUser | Intercom.unstable.CustomActionStarted | Intercom.unstable.CustomActionFinished | Intercom.unstable.OperatorWorkflowEvent | Intercom.unstable.ConversationTagsUpdated | Intercom.unstable.Snoozed | Intercom.unstable.PriorityChanged | Intercom.unstable.ConversationSlaAppliedByRule | Intercom.unstable.ConversationSlaAppliedByWorkflow | Intercom.unstable.ConversationSlaTargetMissed | Intercom.unstable.ConversationSlaPaused | Intercom.unstable.ConversationSlaUnpaused | Intercom.unstable.ConversationSlaRemoved;
@@ -0,0 +1,21 @@
1
+ import type * as Intercom from "../../../index.js";
2
+ /**
3
+ * A pause or resume event for a conversation
4
+ */
5
+ export interface HandlingEvent {
6
+ teammate: Intercom.unstable.TeammateReference;
7
+ /** The type of handling event */
8
+ type: HandlingEvent.Type;
9
+ /** ISO8601 timestamp when the event occurred */
10
+ timestamp: string;
11
+ /** Optional reason for the event (e.g., "Paused", "Away") */
12
+ reason?: string;
13
+ }
14
+ export declare namespace HandlingEvent {
15
+ /** The type of handling event */
16
+ const Type: {
17
+ readonly Paused: "paused";
18
+ readonly Resumed: "resumed";
19
+ };
20
+ type Type = (typeof Type)[keyof typeof Type];
21
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.HandlingEvent = void 0;
5
+ var HandlingEvent;
6
+ (function (HandlingEvent) {
7
+ /** The type of handling event */
8
+ HandlingEvent.Type = {
9
+ Paused: "paused",
10
+ Resumed: "resumed",
11
+ };
12
+ })(HandlingEvent || (exports.HandlingEvent = HandlingEvent = {}));
@@ -0,0 +1,8 @@
1
+ import type * as Intercom from "../../../index.js";
2
+ /**
3
+ * A list of handling events for a conversation
4
+ */
5
+ export interface HandlingEventList {
6
+ /** Array of handling events */
7
+ handling_events?: Intercom.unstable.HandlingEvent[];
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Contains details about priority changes for conversation part type <code>priority_changed</code>.
3
+ */
4
+ export interface PriorityChanged {
5
+ /** Current priority state */
6
+ current_priority?: PriorityChanged.CurrentPriority;
7
+ /** Previous priority state */
8
+ previous_priority?: PriorityChanged.PreviousPriority;
9
+ }
10
+ export declare namespace PriorityChanged {
11
+ /** Current priority state */
12
+ const CurrentPriority: {
13
+ readonly Priority: "priority";
14
+ readonly NotPriority: "not_priority";
15
+ };
16
+ type CurrentPriority = (typeof CurrentPriority)[keyof typeof CurrentPriority];
17
+ /** Previous priority state */
18
+ const PreviousPriority: {
19
+ readonly Priority: "priority";
20
+ readonly NotPriority: "not_priority";
21
+ };
22
+ type PreviousPriority = (typeof PreviousPriority)[keyof typeof PreviousPriority];
23
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PriorityChanged = void 0;
5
+ var PriorityChanged;
6
+ (function (PriorityChanged) {
7
+ /** Current priority state */
8
+ PriorityChanged.CurrentPriority = {
9
+ Priority: "priority",
10
+ NotPriority: "not_priority",
11
+ };
12
+ /** Previous priority state */
13
+ PriorityChanged.PreviousPriority = {
14
+ Priority: "priority",
15
+ NotPriority: "not_priority",
16
+ };
17
+ })(PriorityChanged || (exports.PriorityChanged = PriorityChanged = {}));
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Contains details about conversation snooze timing for conversation part type <code>snoozed</code>.
3
+ */
4
+ export interface Snoozed {
5
+ /** Human-readable description of snooze duration */
6
+ until?: string;
7
+ /** ISO timestamp for custom snooze times (null for general snoozes) */
8
+ custom_until_time?: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * A reference to a teammate (admin, team, or bot)
3
+ */
4
+ export interface TeammateReference {
5
+ /** The type of teammate */
6
+ type: TeammateReference.Type;
7
+ /** The unique identifier of the teammate */
8
+ id: number;
9
+ /** The display name of the teammate */
10
+ name: string;
11
+ /** The email address of the teammate (optional for teams/bots) */
12
+ email?: string;
13
+ }
14
+ export declare namespace TeammateReference {
15
+ /** The type of teammate */
16
+ const Type: {
17
+ readonly Admin: "admin";
18
+ readonly Team: "team";
19
+ readonly Bot: "bot";
20
+ };
21
+ type Type = (typeof Type)[keyof typeof Type];
22
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TeammateReference = void 0;
5
+ var TeammateReference;
6
+ (function (TeammateReference) {
7
+ /** The type of teammate */
8
+ TeammateReference.Type = {
9
+ Admin: "admin",
10
+ Team: "team",
11
+ Bot: "bot",
12
+ };
13
+ })(TeammateReference || (exports.TeammateReference = TeammateReference = {}));
@@ -0,0 +1,55 @@
1
+ /**
2
+ * A workflow export containing the complete workflow configuration.
3
+ */
4
+ export interface WorkflowExport {
5
+ /** The version of the export format. */
6
+ export_version?: string;
7
+ /** The timestamp when the export was generated. */
8
+ exported_at?: string;
9
+ /** The workspace identifier. */
10
+ app_id?: number;
11
+ /** The workflow configuration. */
12
+ workflow?: WorkflowExport.Workflow;
13
+ }
14
+ export declare namespace WorkflowExport {
15
+ /**
16
+ * The workflow configuration.
17
+ */
18
+ interface Workflow {
19
+ /** The unique identifier for the workflow. */
20
+ id?: string;
21
+ /** The title of the workflow. */
22
+ title?: string;
23
+ /** The description of the workflow. */
24
+ description?: string;
25
+ /** The type of trigger that starts this workflow. */
26
+ trigger_type?: string;
27
+ /** The current state of the workflow. */
28
+ state?: Workflow.State;
29
+ /** The channels this workflow targets. */
30
+ target_channels?: string[];
31
+ /** The preferred devices for this workflow. */
32
+ preferred_devices?: string[];
33
+ /** When the workflow was created. */
34
+ created_at?: string;
35
+ /** When the workflow was last updated. */
36
+ updated_at?: string;
37
+ /** The targeting rules for this workflow. */
38
+ targeting?: Record<string, unknown>;
39
+ /** The current snapshot of workflow steps and configuration. */
40
+ snapshot?: Record<string, unknown>;
41
+ /** Custom attributes defined for this workflow. */
42
+ attributes?: Record<string, unknown>[];
43
+ /** Rules embedded within the workflow steps. */
44
+ embedded_rules?: Record<string, unknown>[];
45
+ }
46
+ namespace Workflow {
47
+ /** The current state of the workflow. */
48
+ const State: {
49
+ readonly Live: "live";
50
+ readonly Draft: "draft";
51
+ readonly Paused: "paused";
52
+ };
53
+ type State = (typeof State)[keyof typeof State];
54
+ }
55
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WorkflowExport = void 0;
5
+ var WorkflowExport;
6
+ (function (WorkflowExport) {
7
+ let Workflow;
8
+ (function (Workflow) {
9
+ /** The current state of the workflow. */
10
+ Workflow.State = {
11
+ Live: "live",
12
+ Draft: "draft",
13
+ Paused: "paused",
14
+ };
15
+ })(Workflow = WorkflowExport.Workflow || (WorkflowExport.Workflow = {}));
16
+ })(WorkflowExport || (exports.WorkflowExport = WorkflowExport = {}));
@@ -49,6 +49,7 @@ export * from "./ContactUnarchived.js";
49
49
  export * from "./ContentSourcesList.js";
50
50
  export * from "./ConversationAttachmentFiles.js";
51
51
  export * from "./ConversationAttributeUpdatedByAdmin.js";
52
+ export * from "./ConversationAttributeUpdatedByUser.js";
52
53
  export * from "./ConversationAttributeUpdatedByWorkflow.js";
53
54
  export * from "./ConversationContacts.js";
54
55
  export * from "./ConversationDeleted.js";
@@ -60,8 +61,15 @@ export * from "./ConversationPartMetadata.js";
60
61
  export * from "./ConversationParts.js";
61
62
  export * from "./ConversationRating.js";
62
63
  export * from "./ConversationResponseTime.js";
64
+ export * from "./ConversationSlaAppliedByRule.js";
65
+ export * from "./ConversationSlaAppliedByWorkflow.js";
66
+ export * from "./ConversationSlaPaused.js";
67
+ export * from "./ConversationSlaRemoved.js";
68
+ export * from "./ConversationSlaTargetMissed.js";
69
+ export * from "./ConversationSlaUnpaused.js";
63
70
  export * from "./ConversationSource.js";
64
71
  export * from "./ConversationStatistics.js";
72
+ export * from "./ConversationTagsUpdated.js";
65
73
  export * from "./ConversationTeammates.js";
66
74
  export * from "./CreateArticleRequest.js";
67
75
  export * from "./CreateDataAttributeRequest.js";
@@ -102,6 +110,8 @@ export * from "./EventDetails.js";
102
110
  export * from "./FileAttribute.js";
103
111
  export * from "./GroupContent.js";
104
112
  export * from "./GroupTranslatedContent.js";
113
+ export * from "./HandlingEvent.js";
114
+ export * from "./HandlingEventList.js";
105
115
  export * from "./InternalArticleList.js";
106
116
  export * from "./LinkedObject.js";
107
117
  export * from "./LinkedObjectList.js";
@@ -116,6 +126,7 @@ export * from "./PaginatedResponse.js";
116
126
  export * from "./PaginatedResponseDataItem.js";
117
127
  export * from "./PartAttachment.js";
118
128
  export * from "./PhoneSwitch.js";
129
+ export * from "./PriorityChanged.js";
119
130
  export * from "./QuickReplyOption.js";
120
131
  export * from "./Recipient.js";
121
132
  export * from "./RedactConversationRequest.js";
@@ -127,6 +138,7 @@ export * from "./SegmentList.js";
127
138
  export * from "./SingleFilterSearchRequest.js";
128
139
  export * from "./SlaApplied.js";
129
140
  export * from "./SnoozeConversationRequest.js";
141
+ export * from "./Snoozed.js";
130
142
  export * from "./SocialProfile.js";
131
143
  export * from "./StartingAfterPaging.js";
132
144
  export * from "./SubscriptionTypeList.js";
@@ -135,6 +147,7 @@ export * from "./TagList.js";
135
147
  export * from "./TagMultipleUsersRequest.js";
136
148
  export * from "./Tags.js";
137
149
  export * from "./TeamList.js";
150
+ export * from "./TeammateReference.js";
138
151
  export * from "./TeamPriorityLevel.js";
139
152
  export * from "./TicketCustomAttributes.js";
140
153
  export * from "./TicketList.js";
@@ -152,3 +165,4 @@ export * from "./UpdateDataAttributeRequestBody.js";
152
165
  export * from "./Visitor.js";
153
166
  export * from "./VisitorDeletedObject.js";
154
167
  export * from "./WhatsappMessageStatusList.js";
168
+ export * from "./WorkflowExport.js";
@@ -65,6 +65,7 @@ __exportStar(require("./ContactUnarchived.js"), exports);
65
65
  __exportStar(require("./ContentSourcesList.js"), exports);
66
66
  __exportStar(require("./ConversationAttachmentFiles.js"), exports);
67
67
  __exportStar(require("./ConversationAttributeUpdatedByAdmin.js"), exports);
68
+ __exportStar(require("./ConversationAttributeUpdatedByUser.js"), exports);
68
69
  __exportStar(require("./ConversationAttributeUpdatedByWorkflow.js"), exports);
69
70
  __exportStar(require("./ConversationContacts.js"), exports);
70
71
  __exportStar(require("./ConversationDeleted.js"), exports);
@@ -76,8 +77,15 @@ __exportStar(require("./ConversationPartMetadata.js"), exports);
76
77
  __exportStar(require("./ConversationParts.js"), exports);
77
78
  __exportStar(require("./ConversationRating.js"), exports);
78
79
  __exportStar(require("./ConversationResponseTime.js"), exports);
80
+ __exportStar(require("./ConversationSlaAppliedByRule.js"), exports);
81
+ __exportStar(require("./ConversationSlaAppliedByWorkflow.js"), exports);
82
+ __exportStar(require("./ConversationSlaPaused.js"), exports);
83
+ __exportStar(require("./ConversationSlaRemoved.js"), exports);
84
+ __exportStar(require("./ConversationSlaTargetMissed.js"), exports);
85
+ __exportStar(require("./ConversationSlaUnpaused.js"), exports);
79
86
  __exportStar(require("./ConversationSource.js"), exports);
80
87
  __exportStar(require("./ConversationStatistics.js"), exports);
88
+ __exportStar(require("./ConversationTagsUpdated.js"), exports);
81
89
  __exportStar(require("./ConversationTeammates.js"), exports);
82
90
  __exportStar(require("./CreateArticleRequest.js"), exports);
83
91
  __exportStar(require("./CreateDataAttributeRequest.js"), exports);
@@ -118,6 +126,8 @@ __exportStar(require("./EventDetails.js"), exports);
118
126
  __exportStar(require("./FileAttribute.js"), exports);
119
127
  __exportStar(require("./GroupContent.js"), exports);
120
128
  __exportStar(require("./GroupTranslatedContent.js"), exports);
129
+ __exportStar(require("./HandlingEvent.js"), exports);
130
+ __exportStar(require("./HandlingEventList.js"), exports);
121
131
  __exportStar(require("./InternalArticleList.js"), exports);
122
132
  __exportStar(require("./LinkedObject.js"), exports);
123
133
  __exportStar(require("./LinkedObjectList.js"), exports);
@@ -132,6 +142,7 @@ __exportStar(require("./PaginatedResponse.js"), exports);
132
142
  __exportStar(require("./PaginatedResponseDataItem.js"), exports);
133
143
  __exportStar(require("./PartAttachment.js"), exports);
134
144
  __exportStar(require("./PhoneSwitch.js"), exports);
145
+ __exportStar(require("./PriorityChanged.js"), exports);
135
146
  __exportStar(require("./QuickReplyOption.js"), exports);
136
147
  __exportStar(require("./Recipient.js"), exports);
137
148
  __exportStar(require("./RedactConversationRequest.js"), exports);
@@ -143,6 +154,7 @@ __exportStar(require("./SegmentList.js"), exports);
143
154
  __exportStar(require("./SingleFilterSearchRequest.js"), exports);
144
155
  __exportStar(require("./SlaApplied.js"), exports);
145
156
  __exportStar(require("./SnoozeConversationRequest.js"), exports);
157
+ __exportStar(require("./Snoozed.js"), exports);
146
158
  __exportStar(require("./SocialProfile.js"), exports);
147
159
  __exportStar(require("./StartingAfterPaging.js"), exports);
148
160
  __exportStar(require("./SubscriptionTypeList.js"), exports);
@@ -151,6 +163,7 @@ __exportStar(require("./TagList.js"), exports);
151
163
  __exportStar(require("./TagMultipleUsersRequest.js"), exports);
152
164
  __exportStar(require("./Tags.js"), exports);
153
165
  __exportStar(require("./TeamList.js"), exports);
166
+ __exportStar(require("./TeammateReference.js"), exports);
154
167
  __exportStar(require("./TeamPriorityLevel.js"), exports);
155
168
  __exportStar(require("./TicketCustomAttributes.js"), exports);
156
169
  __exportStar(require("./TicketList.js"), exports);
@@ -168,3 +181,4 @@ __exportStar(require("./UpdateDataAttributeRequestBody.js"), exports);
168
181
  __exportStar(require("./Visitor.js"), exports);
169
182
  __exportStar(require("./VisitorDeletedObject.js"), exports);
170
183
  __exportStar(require("./WhatsappMessageStatusList.js"), exports);
184
+ __exportStar(require("./WorkflowExport.js"), exports);
@@ -83,7 +83,7 @@ export declare namespace ActivityLog {
83
83
  readonly InboxAccessChange: "inbox_access_change";
84
84
  readonly MacroCreation: "macro_creation";
85
85
  readonly MacroDeletion: "macro_deletion";
86
- readonly MacroUpdated: "macro_updated";
86
+ readonly MacroUpdate: "macro_update";
87
87
  readonly MaliciousDomainsSettingChange: "malicious_domains_setting_change";
88
88
  readonly MessageDeletion: "message_deletion";
89
89
  readonly MessageStateChange: "message_state_change";
@@ -105,6 +105,11 @@ export declare namespace ActivityLog {
105
105
  readonly SeatChange: "seat_change";
106
106
  readonly SeatRevoke: "seat_revoke";
107
107
  readonly SecuritySettingsChange: "security_settings_change";
108
+ readonly SeriesCreation: "series_creation";
109
+ readonly SeriesDeletion: "series_deletion";
110
+ readonly SeriesSettingsUpdate: "series_settings_update";
111
+ readonly SeriesStatusChange: "series_status_change";
112
+ readonly SeriesUpdate: "series_update";
108
113
  readonly StripInboundEmailLinksChange: "strip_inbound_email_links_change";
109
114
  readonly TemporaryExpectationChange: "temporary_expectation_change";
110
115
  readonly TeamAssignmentLimitChange: "team_assignment_limit_change";
@@ -59,7 +59,7 @@ var ActivityLog;
59
59
  InboxAccessChange: "inbox_access_change",
60
60
  MacroCreation: "macro_creation",
61
61
  MacroDeletion: "macro_deletion",
62
- MacroUpdated: "macro_updated",
62
+ MacroUpdate: "macro_update",
63
63
  MaliciousDomainsSettingChange: "malicious_domains_setting_change",
64
64
  MessageDeletion: "message_deletion",
65
65
  MessageStateChange: "message_state_change",
@@ -81,6 +81,11 @@ var ActivityLog;
81
81
  SeatChange: "seat_change",
82
82
  SeatRevoke: "seat_revoke",
83
83
  SecuritySettingsChange: "security_settings_change",
84
+ SeriesCreation: "series_creation",
85
+ SeriesDeletion: "series_deletion",
86
+ SeriesSettingsUpdate: "series_settings_update",
87
+ SeriesStatusChange: "series_status_change",
88
+ SeriesUpdate: "series_update",
84
89
  StripInboundEmailLinksChange: "strip_inbound_email_links_change",
85
90
  TemporaryExpectationChange: "temporary_expectation_change",
86
91
  TeamAssignmentLimitChange: "team_assignment_limit_change",
@@ -0,0 +1,16 @@
1
+ /**
2
+ * IP allowlist settings for the workspace.
3
+ */
4
+ export interface IpAllowlist {
5
+ /** String representing the object's type. Always has the value `ip_allowlist`. */
6
+ type?: string;
7
+ /** Whether the IP allowlist is enabled for the workspace. */
8
+ enabled?: boolean;
9
+ /**
10
+ * List of allowed IP addresses and/or IP ranges in CIDR notation.
11
+ * Examples:
12
+ * - Single IP: `192.168.0.1`
13
+ * - IP range: `192.168.0.1/24` (allows 192.168.0.0 - 192.168.0.255)
14
+ */
15
+ ip_allowlist?: string[];
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,11 +4,11 @@ import type * as Intercom from "../index.js";
4
4
  */
5
5
  export interface Visitor {
6
6
  /** Value is 'visitor' */
7
- type?: "visitor";
7
+ type: "visitor";
8
8
  /** The Intercom defined id representing the Visitor. */
9
- id?: string;
9
+ id: string;
10
10
  /** Automatically generated identifier for the Visitor. */
11
- user_id?: string;
11
+ user_id: string;
12
12
  /** Identifies if this visitor is anonymous. */
13
13
  anonymous?: boolean;
14
14
  /** The email of the visitor. */
@@ -106,6 +106,7 @@ export * from "./FileAttribute.js";
106
106
  export * from "./GroupContent.js";
107
107
  export * from "./GroupTranslatedContent.js";
108
108
  export * from "./InternalArticleList.js";
109
+ export * from "./IpAllowlist.js";
109
110
  export * from "./LinkedObject.js";
110
111
  export * from "./LinkedObjectList.js";
111
112
  export * from "./Metadata.js";
@@ -122,6 +122,7 @@ __exportStar(require("./FileAttribute.js"), exports);
122
122
  __exportStar(require("./GroupContent.js"), exports);
123
123
  __exportStar(require("./GroupTranslatedContent.js"), exports);
124
124
  __exportStar(require("./InternalArticleList.js"), exports);
125
+ __exportStar(require("./IpAllowlist.js"), exports);
125
126
  __exportStar(require("./LinkedObject.js"), exports);
126
127
  __exportStar(require("./LinkedObjectList.js"), exports);
127
128
  __exportStar(require("./Metadata.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "7.0.0";
1
+ export declare const SDK_VERSION = "7.0.3";
@@ -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 = "7.0.0";
4
+ exports.SDK_VERSION = "7.0.3";
@@ -7,8 +7,8 @@ export function normalizeClientOptions(options) {
7
7
  const headers = mergeHeaders({
8
8
  "X-Fern-Language": "JavaScript",
9
9
  "X-Fern-SDK-Name": "intercom-client",
10
- "X-Fern-SDK-Version": "7.0.0",
11
- "User-Agent": "intercom-client/7.0.0",
10
+ "X-Fern-SDK-Version": "7.0.3",
11
+ "User-Agent": "intercom-client/7.0.3",
12
12
  "X-Fern-Runtime": core.RUNTIME.type,
13
13
  "X-Fern-Runtime-Version": core.RUNTIME.version,
14
14
  "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.mjs";
14
14
  import { ExportClient } from "./api/resources/export/client/Client.mjs";
15
15
  import { HelpCentersClient } from "./api/resources/helpCenters/client/Client.mjs";
16
16
  import { InternalArticlesClient } from "./api/resources/internalArticles/client/Client.mjs";
17
+ import { IpAllowlistClient } from "./api/resources/ipAllowlist/client/Client.mjs";
17
18
  import { JobsClient } from "./api/resources/jobs/client/Client.mjs";
18
19
  import { MessagesClient } from "./api/resources/messages/client/Client.mjs";
19
20
  import { NewsClient } from "./api/resources/news/client/Client.mjs";
@@ -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;
@@ -15,6 +15,7 @@ import { EventsClient } from "./api/resources/events/client/Client.mjs";
15
15
  import { ExportClient } from "./api/resources/export/client/Client.mjs";
16
16
  import { HelpCentersClient } from "./api/resources/helpCenters/client/Client.mjs";
17
17
  import { InternalArticlesClient } from "./api/resources/internalArticles/client/Client.mjs";
18
+ import { IpAllowlistClient } from "./api/resources/ipAllowlist/client/Client.mjs";
18
19
  import { JobsClient } from "./api/resources/jobs/client/Client.mjs";
19
20
  import { MessagesClient } from "./api/resources/messages/client/Client.mjs";
20
21
  import { NewsClient } from "./api/resources/news/client/Client.mjs";
@@ -66,6 +67,10 @@ export class IntercomClient {
66
67
  var _a;
67
68
  return ((_a = this._internalArticles) !== null && _a !== void 0 ? _a : (this._internalArticles = new InternalArticlesClient(this._options)));
68
69
  }
70
+ get ipAllowlist() {
71
+ var _a;
72
+ return ((_a = this._ipAllowlist) !== null && _a !== void 0 ? _a : (this._ipAllowlist = new IpAllowlistClient(this._options)));
73
+ }
69
74
  get companies() {
70
75
  var _a;
71
76
  return ((_a = this._companies) !== null && _a !== void 0 ? _a : (this._companies = new CompaniesClient(this._options)));