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
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Contains SLA status at the moment of pausing for conversation part type <code>conversation_sla_paused</code>.
3
+ */
4
+ export interface ConversationSlaPaused {
5
+ /** Name of the SLA being paused */
6
+ sla_name?: string;
7
+ /** Overall SLA status at pause time */
8
+ current_sla_status?: ConversationSlaPaused.CurrentSlaStatus;
9
+ /** Status of all SLA targets at pause time */
10
+ sla_states?: Record<string, ConversationSlaPaused.SlaStates.Value>;
11
+ }
12
+ export declare namespace ConversationSlaPaused {
13
+ /** Overall SLA status at pause time */
14
+ const CurrentSlaStatus: {
15
+ readonly Active: "active";
16
+ readonly Hit: "hit";
17
+ readonly Missed: "missed";
18
+ readonly Canceled: "canceled";
19
+ };
20
+ type CurrentSlaStatus = (typeof CurrentSlaStatus)[keyof typeof CurrentSlaStatus];
21
+ namespace SlaStates {
22
+ interface Value {
23
+ /** Status of this specific target (always paused) */
24
+ status?: "paused";
25
+ /** Time remaining when paused */
26
+ seconds_remaining?: number;
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,11 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var ConversationSlaPaused;
3
+ (function (ConversationSlaPaused) {
4
+ /** Overall SLA status at pause time */
5
+ ConversationSlaPaused.CurrentSlaStatus = {
6
+ Active: "active",
7
+ Hit: "hit",
8
+ Missed: "missed",
9
+ Canceled: "canceled",
10
+ };
11
+ })(ConversationSlaPaused || (ConversationSlaPaused = {}));
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Contains basic SLA information when removed for conversation part type <code>conversation_sla_removed</code>.
3
+ */
4
+ export interface ConversationSlaRemoved {
5
+ /** Name of the SLA that was removed */
6
+ sla_name?: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,32 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var ConversationSlaTargetMissed;
3
+ (function (ConversationSlaTargetMissed) {
4
+ /** Which specific target was missed */
5
+ ConversationSlaTargetMissed.SlaTargetType = {
6
+ FirstReplyTime: "first_reply_time",
7
+ NextReplyTime: "next_reply_time",
8
+ ResolutionTime: "resolution_time",
9
+ TimeToClose: "time_to_close",
10
+ };
11
+ /** Overall SLA status */
12
+ ConversationSlaTargetMissed.CurrentSlaStatus = {
13
+ Hit: "hit",
14
+ Missed: "missed",
15
+ Active: "active",
16
+ Paused: "paused",
17
+ Canceled: "canceled",
18
+ };
19
+ let SlaStates;
20
+ (function (SlaStates) {
21
+ let Value;
22
+ (function (Value) {
23
+ /** Status of this specific target */
24
+ Value.Status = {
25
+ Hit: "hit",
26
+ Missed: "missed",
27
+ Active: "active",
28
+ Paused: "paused",
29
+ };
30
+ })(Value = SlaStates.Value || (SlaStates.Value = {}));
31
+ })(SlaStates = ConversationSlaTargetMissed.SlaStates || (ConversationSlaTargetMissed.SlaStates = {}));
32
+ })(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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,2 +1,2 @@
1
1
  import type * as Intercom from "../../../index.mjs";
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.mjs";
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,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var HandlingEvent;
3
+ (function (HandlingEvent) {
4
+ /** The type of handling event */
5
+ HandlingEvent.Type = {
6
+ Paused: "paused",
7
+ Resumed: "resumed",
8
+ };
9
+ })(HandlingEvent || (HandlingEvent = {}));
@@ -0,0 +1,8 @@
1
+ import type * as Intercom from "../../../index.mjs";
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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,14 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var PriorityChanged;
3
+ (function (PriorityChanged) {
4
+ /** Current priority state */
5
+ PriorityChanged.CurrentPriority = {
6
+ Priority: "priority",
7
+ NotPriority: "not_priority",
8
+ };
9
+ /** Previous priority state */
10
+ PriorityChanged.PreviousPriority = {
11
+ Priority: "priority",
12
+ NotPriority: "not_priority",
13
+ };
14
+ })(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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var TeammateReference;
3
+ (function (TeammateReference) {
4
+ /** The type of teammate */
5
+ TeammateReference.Type = {
6
+ Admin: "admin",
7
+ Team: "team",
8
+ Bot: "bot",
9
+ };
10
+ })(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,13 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var WorkflowExport;
3
+ (function (WorkflowExport) {
4
+ let Workflow;
5
+ (function (Workflow) {
6
+ /** The current state of the workflow. */
7
+ Workflow.State = {
8
+ Live: "live",
9
+ Draft: "draft",
10
+ Paused: "paused",
11
+ };
12
+ })(Workflow = WorkflowExport.Workflow || (WorkflowExport.Workflow = {}));
13
+ })(WorkflowExport || (WorkflowExport = {}));
@@ -49,6 +49,7 @@ export * from "./ContactUnarchived.mjs";
49
49
  export * from "./ContentSourcesList.mjs";
50
50
  export * from "./ConversationAttachmentFiles.mjs";
51
51
  export * from "./ConversationAttributeUpdatedByAdmin.mjs";
52
+ export * from "./ConversationAttributeUpdatedByUser.mjs";
52
53
  export * from "./ConversationAttributeUpdatedByWorkflow.mjs";
53
54
  export * from "./ConversationContacts.mjs";
54
55
  export * from "./ConversationDeleted.mjs";
@@ -60,8 +61,15 @@ export * from "./ConversationPartMetadata.mjs";
60
61
  export * from "./ConversationParts.mjs";
61
62
  export * from "./ConversationRating.mjs";
62
63
  export * from "./ConversationResponseTime.mjs";
64
+ export * from "./ConversationSlaAppliedByRule.mjs";
65
+ export * from "./ConversationSlaAppliedByWorkflow.mjs";
66
+ export * from "./ConversationSlaPaused.mjs";
67
+ export * from "./ConversationSlaRemoved.mjs";
68
+ export * from "./ConversationSlaTargetMissed.mjs";
69
+ export * from "./ConversationSlaUnpaused.mjs";
63
70
  export * from "./ConversationSource.mjs";
64
71
  export * from "./ConversationStatistics.mjs";
72
+ export * from "./ConversationTagsUpdated.mjs";
65
73
  export * from "./ConversationTeammates.mjs";
66
74
  export * from "./CreateArticleRequest.mjs";
67
75
  export * from "./CreateDataAttributeRequest.mjs";
@@ -102,6 +110,8 @@ export * from "./EventDetails.mjs";
102
110
  export * from "./FileAttribute.mjs";
103
111
  export * from "./GroupContent.mjs";
104
112
  export * from "./GroupTranslatedContent.mjs";
113
+ export * from "./HandlingEvent.mjs";
114
+ export * from "./HandlingEventList.mjs";
105
115
  export * from "./InternalArticleList.mjs";
106
116
  export * from "./LinkedObject.mjs";
107
117
  export * from "./LinkedObjectList.mjs";
@@ -116,6 +126,7 @@ export * from "./PaginatedResponse.mjs";
116
126
  export * from "./PaginatedResponseDataItem.mjs";
117
127
  export * from "./PartAttachment.mjs";
118
128
  export * from "./PhoneSwitch.mjs";
129
+ export * from "./PriorityChanged.mjs";
119
130
  export * from "./QuickReplyOption.mjs";
120
131
  export * from "./Recipient.mjs";
121
132
  export * from "./RedactConversationRequest.mjs";
@@ -127,6 +138,7 @@ export * from "./SegmentList.mjs";
127
138
  export * from "./SingleFilterSearchRequest.mjs";
128
139
  export * from "./SlaApplied.mjs";
129
140
  export * from "./SnoozeConversationRequest.mjs";
141
+ export * from "./Snoozed.mjs";
130
142
  export * from "./SocialProfile.mjs";
131
143
  export * from "./StartingAfterPaging.mjs";
132
144
  export * from "./SubscriptionTypeList.mjs";
@@ -135,6 +147,7 @@ export * from "./TagList.mjs";
135
147
  export * from "./TagMultipleUsersRequest.mjs";
136
148
  export * from "./Tags.mjs";
137
149
  export * from "./TeamList.mjs";
150
+ export * from "./TeammateReference.mjs";
138
151
  export * from "./TeamPriorityLevel.mjs";
139
152
  export * from "./TicketCustomAttributes.mjs";
140
153
  export * from "./TicketList.mjs";
@@ -152,3 +165,4 @@ export * from "./UpdateDataAttributeRequestBody.mjs";
152
165
  export * from "./Visitor.mjs";
153
166
  export * from "./VisitorDeletedObject.mjs";
154
167
  export * from "./WhatsappMessageStatusList.mjs";
168
+ export * from "./WorkflowExport.mjs";
@@ -49,6 +49,7 @@ export * from "./ContactUnarchived.mjs";
49
49
  export * from "./ContentSourcesList.mjs";
50
50
  export * from "./ConversationAttachmentFiles.mjs";
51
51
  export * from "./ConversationAttributeUpdatedByAdmin.mjs";
52
+ export * from "./ConversationAttributeUpdatedByUser.mjs";
52
53
  export * from "./ConversationAttributeUpdatedByWorkflow.mjs";
53
54
  export * from "./ConversationContacts.mjs";
54
55
  export * from "./ConversationDeleted.mjs";
@@ -60,8 +61,15 @@ export * from "./ConversationPartMetadata.mjs";
60
61
  export * from "./ConversationParts.mjs";
61
62
  export * from "./ConversationRating.mjs";
62
63
  export * from "./ConversationResponseTime.mjs";
64
+ export * from "./ConversationSlaAppliedByRule.mjs";
65
+ export * from "./ConversationSlaAppliedByWorkflow.mjs";
66
+ export * from "./ConversationSlaPaused.mjs";
67
+ export * from "./ConversationSlaRemoved.mjs";
68
+ export * from "./ConversationSlaTargetMissed.mjs";
69
+ export * from "./ConversationSlaUnpaused.mjs";
63
70
  export * from "./ConversationSource.mjs";
64
71
  export * from "./ConversationStatistics.mjs";
72
+ export * from "./ConversationTagsUpdated.mjs";
65
73
  export * from "./ConversationTeammates.mjs";
66
74
  export * from "./CreateArticleRequest.mjs";
67
75
  export * from "./CreateDataAttributeRequest.mjs";
@@ -102,6 +110,8 @@ export * from "./EventDetails.mjs";
102
110
  export * from "./FileAttribute.mjs";
103
111
  export * from "./GroupContent.mjs";
104
112
  export * from "./GroupTranslatedContent.mjs";
113
+ export * from "./HandlingEvent.mjs";
114
+ export * from "./HandlingEventList.mjs";
105
115
  export * from "./InternalArticleList.mjs";
106
116
  export * from "./LinkedObject.mjs";
107
117
  export * from "./LinkedObjectList.mjs";
@@ -116,6 +126,7 @@ export * from "./PaginatedResponse.mjs";
116
126
  export * from "./PaginatedResponseDataItem.mjs";
117
127
  export * from "./PartAttachment.mjs";
118
128
  export * from "./PhoneSwitch.mjs";
129
+ export * from "./PriorityChanged.mjs";
119
130
  export * from "./QuickReplyOption.mjs";
120
131
  export * from "./Recipient.mjs";
121
132
  export * from "./RedactConversationRequest.mjs";
@@ -127,6 +138,7 @@ export * from "./SegmentList.mjs";
127
138
  export * from "./SingleFilterSearchRequest.mjs";
128
139
  export * from "./SlaApplied.mjs";
129
140
  export * from "./SnoozeConversationRequest.mjs";
141
+ export * from "./Snoozed.mjs";
130
142
  export * from "./SocialProfile.mjs";
131
143
  export * from "./StartingAfterPaging.mjs";
132
144
  export * from "./SubscriptionTypeList.mjs";
@@ -135,6 +147,7 @@ export * from "./TagList.mjs";
135
147
  export * from "./TagMultipleUsersRequest.mjs";
136
148
  export * from "./Tags.mjs";
137
149
  export * from "./TeamList.mjs";
150
+ export * from "./TeammateReference.mjs";
138
151
  export * from "./TeamPriorityLevel.mjs";
139
152
  export * from "./TicketCustomAttributes.mjs";
140
153
  export * from "./TicketList.mjs";
@@ -152,3 +165,4 @@ export * from "./UpdateDataAttributeRequestBody.mjs";
152
165
  export * from "./Visitor.mjs";
153
166
  export * from "./VisitorDeletedObject.mjs";
154
167
  export * from "./WhatsappMessageStatusList.mjs";
168
+ export * from "./WorkflowExport.mjs";
@@ -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";
@@ -56,7 +56,7 @@ export var ActivityLog;
56
56
  InboxAccessChange: "inbox_access_change",
57
57
  MacroCreation: "macro_creation",
58
58
  MacroDeletion: "macro_deletion",
59
- MacroUpdated: "macro_updated",
59
+ MacroUpdate: "macro_update",
60
60
  MaliciousDomainsSettingChange: "malicious_domains_setting_change",
61
61
  MessageDeletion: "message_deletion",
62
62
  MessageStateChange: "message_state_change",
@@ -78,6 +78,11 @@ export var ActivityLog;
78
78
  SeatChange: "seat_change",
79
79
  SeatRevoke: "seat_revoke",
80
80
  SecuritySettingsChange: "security_settings_change",
81
+ SeriesCreation: "series_creation",
82
+ SeriesDeletion: "series_deletion",
83
+ SeriesSettingsUpdate: "series_settings_update",
84
+ SeriesStatusChange: "series_status_change",
85
+ SeriesUpdate: "series_update",
81
86
  StripInboundEmailLinksChange: "strip_inbound_email_links_change",
82
87
  TemporaryExpectationChange: "temporary_expectation_change",
83
88
  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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -106,6 +106,7 @@ export * from "./FileAttribute.mjs";
106
106
  export * from "./GroupContent.mjs";
107
107
  export * from "./GroupTranslatedContent.mjs";
108
108
  export * from "./InternalArticleList.mjs";
109
+ export * from "./IpAllowlist.mjs";
109
110
  export * from "./LinkedObject.mjs";
110
111
  export * from "./LinkedObjectList.mjs";
111
112
  export * from "./Metadata.mjs";
@@ -106,6 +106,7 @@ export * from "./FileAttribute.mjs";
106
106
  export * from "./GroupContent.mjs";
107
107
  export * from "./GroupTranslatedContent.mjs";
108
108
  export * from "./InternalArticleList.mjs";
109
+ export * from "./IpAllowlist.mjs";
109
110
  export * from "./LinkedObject.mjs";
110
111
  export * from "./LinkedObjectList.mjs";
111
112
  export * from "./Metadata.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "7.0.0";
1
+ export declare const SDK_VERSION = "7.0.2";
@@ -1 +1 @@
1
- export const SDK_VERSION = "7.0.0";
1
+ export const SDK_VERSION = "7.0.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intercom-client",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "private": false,
5
5
  "repository": "github:intercom/intercom-node",
6
6
  "type": "commonjs",