@trii/types 2.10.729 → 2.10.731

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 (163) hide show
  1. package/dist/AI/MapPolygon.d.ts +22 -0
  2. package/dist/Conversations/Classifications/ClassificationTaxonomy.d.ts +67 -0
  3. package/dist/Conversations/Classifications/ClassificationTaxonomy.js +5 -0
  4. package/dist/Conversations/Classifications/ConversationClassificationEvaluation.d.ts +67 -0
  5. package/dist/Conversations/Classifications/ConversationClassificationEvaluation.js +2 -0
  6. package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +29 -0
  7. package/dist/Conversations/Classifications/ConversationClassificationEvents.js +8 -0
  8. package/dist/Conversations/Classifications/index.d.ts +3 -0
  9. package/dist/{src/Automations/Triggers → Conversations/Classifications}/index.js +3 -1
  10. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  11. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  12. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
  13. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
  14. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
  15. package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
  16. package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
  17. package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
  18. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
  19. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
  20. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
  21. package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
  22. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
  23. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
  24. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
  25. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
  26. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
  27. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
  28. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
  29. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
  30. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
  31. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
  32. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
  33. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
  34. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
  35. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
  36. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
  37. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
  38. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
  39. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
  40. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
  41. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
  42. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
  43. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
  44. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
  45. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
  46. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
  47. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
  48. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
  49. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
  50. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
  51. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
  52. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
  53. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
  54. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
  55. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
  56. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
  57. package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
  58. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
  59. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
  60. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
  61. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
  62. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
  63. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
  64. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
  65. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
  66. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
  67. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
  68. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
  69. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
  70. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
  71. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
  72. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
  73. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
  74. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
  75. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
  76. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
  77. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
  78. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
  79. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
  80. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
  81. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
  82. package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
  83. package/dist/Conversations/Flows/Nodes/index.js +40 -0
  84. package/dist/Conversations/InboxCounters.d.ts +18 -0
  85. package/dist/Conversations/InboxCounters.js +2 -0
  86. package/dist/Conversations/index.d.ts +1 -0
  87. package/dist/Conversations/index.js +1 -0
  88. package/dist/Presence/ChannelRoutingState.d.ts +17 -0
  89. package/dist/Presence/ChannelRoutingState.js +9 -0
  90. package/dist/Tickets/AccessLevel.d.ts +5 -0
  91. package/dist/Tickets/AccessLevel.js +9 -0
  92. package/dist/Tickets/Common.d.ts +62 -0
  93. package/dist/Tickets/CustomerNotification.d.ts +192 -0
  94. package/dist/Tickets/CustomerNotification.js +54 -0
  95. package/dist/Tickets/Notes.d.ts +13 -0
  96. package/dist/Tickets/Notes.js +10 -0
  97. package/dist/Tickets/QuickResponse.d.ts +64 -0
  98. package/dist/Tickets/QuickResponse.js +41 -0
  99. package/dist/Tickets/Task.d.ts +11 -0
  100. package/dist/Tickets/Ticket.d.ts +2 -0
  101. package/dist/Tickets/index.d.ts +3 -0
  102. package/dist/Tickets/index.js +3 -0
  103. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -33
  104. package/dist/src/Automations/Capabilities/Capability.js +1 -15
  105. package/dist/src/Automations/Common.d.ts +0 -47
  106. package/dist/src/Automations/Common.js +0 -22
  107. package/dist/src/Automations/Events/Event.d.ts +4 -59
  108. package/dist/src/Automations/Events/Event.js +0 -17
  109. package/dist/src/Automations/Executions/Execution.d.ts +4 -188
  110. package/dist/src/Automations/Executions/Execution.js +1 -54
  111. package/dist/src/Automations/Executions/index.d.ts +0 -1
  112. package/dist/src/Automations/Executions/index.js +0 -1
  113. package/dist/src/Automations/Flows/Canvas.d.ts +4 -27
  114. package/dist/src/Automations/Flows/Canvas.js +1 -10
  115. package/dist/src/Automations/Flows/Flow.d.ts +3 -55
  116. package/dist/src/Automations/Flows/Flow.js +1 -25
  117. package/dist/src/Automations/Nodes/Node.d.ts +3 -44
  118. package/dist/src/Automations/Nodes/Node.js +1 -10
  119. package/dist/src/Automations/index.d.ts +0 -1
  120. package/dist/src/Automations/index.js +0 -1
  121. package/dist/src/Common/Channels/Channel.d.ts +4 -6
  122. package/dist/src/Common/Channels/Email.d.ts +0 -1
  123. package/dist/src/Common/Channels/Facebook.d.ts +0 -1
  124. package/dist/src/Common/Channels/Form.d.ts +0 -1
  125. package/dist/src/Common/Channels/GoogleBusiness.d.ts +0 -1
  126. package/dist/src/Common/Channels/Instagram.d.ts +0 -1
  127. package/dist/src/Common/Channels/MercadoLibre.d.ts +0 -1
  128. package/dist/src/Common/Channels/WebChat.d.ts +0 -1
  129. package/dist/src/Contacts/index.d.ts +0 -2
  130. package/dist/src/Contacts/index.js +0 -2
  131. package/dist/src/Conversations/Assignment.d.ts +1 -101
  132. package/dist/src/Conversations/Conversation.d.ts +0 -169
  133. package/dist/src/PublicAPI/apiKey.d.ts +3 -92
  134. package/dist/src/PublicAPI/apiKey.js +0 -27
  135. package/dist/src/Tickets/AI.d.ts +2 -50
  136. package/dist/src/Tickets/AdvancedApi.d.ts +2 -142
  137. package/dist/src/Tickets/AdvancedApi.js +1 -28
  138. package/dist/src/Tickets/Approval.d.ts +4 -20
  139. package/dist/src/Tickets/Automation.d.ts +2 -46
  140. package/dist/src/Tickets/Dashboard.d.ts +0 -1
  141. package/dist/src/Tickets/Fields.d.ts +0 -3
  142. package/dist/src/Tickets/Routing.d.ts +3 -105
  143. package/dist/src/Tickets/Routing.js +1 -7
  144. package/dist/src/Tickets/Security.d.ts +4 -271
  145. package/dist/src/Tickets/Security.js +1 -10
  146. package/dist/src/Tickets/SelfService.d.ts +0 -190
  147. package/dist/src/Tickets/Sla.d.ts +0 -140
  148. package/dist/src/index.d.ts +0 -1
  149. package/dist/src/index.js +1 -2
  150. package/package.json +12 -12
  151. package/dist/src/Automations/Executions/Testing.d.ts +0 -166
  152. package/dist/src/Automations/Executions/Testing.js +0 -54
  153. package/dist/src/Automations/Triggers/Trigger.d.ts +0 -112
  154. package/dist/src/Automations/Triggers/Trigger.js +0 -66
  155. package/dist/src/Automations/Triggers/index.d.ts +0 -1
  156. package/dist/src/Contacts/CommunicationEndpoint.d.ts +0 -107
  157. package/dist/src/Contacts/CommunicationEndpoint.js +0 -39
  158. package/dist/src/Contacts/CommunicationMethod.d.ts +0 -9
  159. package/dist/src/Events/DomainEventTypes.d.ts +0 -51
  160. package/dist/src/Events/DomainEventTypes.js +0 -49
  161. package/dist/src/Events/index.d.ts +0 -1
  162. package/dist/src/Events/index.js +0 -17
  163. /package/dist/{src/Contacts/CommunicationMethod.js → AI/MapPolygon.js} +0 -0
@@ -1,7 +1,6 @@
1
1
  import { AutomationCapabilityReference } from '../Capabilities';
2
- import { AutomationJsonObject, AutomationJsonValue, AutomationSourceApplication } from '../Common';
3
- import { AutomationFlowEdge, AutomationCanvasAnnotation, AutomationFlowNode, AutomationFlowVariable, AutomationFlowViewport } from './Canvas';
4
- import { AutomationTriggerAdmissionPolicy, AutomationTriggerBinding } from '../Triggers';
2
+ import { AutomationJsonObject, AutomationSourceApplication } from '../Common';
3
+ import { AutomationFlowEdge, AutomationFlowNode, AutomationFlowVariable, AutomationFlowViewport } from './Canvas';
5
4
  export declare enum AutomationFlowKind {
6
5
  CONVERSATIONAL = "conversational",
7
6
  VOICE = "voice",
@@ -29,48 +28,6 @@ export declare enum FlowEntryPointExecutionMode {
29
28
  /** El solapamiento fue habilitado explícitamente. */
30
29
  MULTIPLE = "multiple"
31
30
  }
32
- export declare enum AutomationFilterLogicalOperator {
33
- /** Todas las condiciones y grupos hijos deben cumplirse. */
34
- ALL = "all",
35
- /** Al menos una condición o grupo hijo debe cumplirse. */
36
- ANY = "any"
37
- }
38
- export declare enum AutomationFilterOperator {
39
- EQUALS = "equals",
40
- NOT_EQUALS = "notEquals",
41
- CONTAINS = "contains",
42
- NOT_CONTAINS = "notContains",
43
- STARTS_WITH = "startsWith",
44
- ENDS_WITH = "endsWith",
45
- GREATER_THAN = "greaterThan",
46
- GREATER_THAN_OR_EQUAL = "greaterThanOrEqual",
47
- LESS_THAN = "lessThan",
48
- LESS_THAN_OR_EQUAL = "lessThanOrEqual",
49
- IN = "in",
50
- NOT_IN = "notIn",
51
- EXISTS = "exists",
52
- NOT_EXISTS = "notExists"
53
- }
54
- /** Comparación tipada aplicada a un campo de un evento. */
55
- export interface AutomationFilterCondition {
56
- /** JSON Pointer RFC 6901 absoluto dentro del envelope. */
57
- path: string;
58
- /** Operación utilizada para comparar el campo. */
59
- operator: AutomationFilterOperator;
60
- /** Valor esperado; no aplica a exists/notExists. */
61
- value?: AutomationJsonValue;
62
- /** Sensibilidad de comparaciones de strings; por defecto es true. */
63
- caseSensitive?: boolean | null;
64
- }
65
- /** Grupo recursivo de filtros combinados mediante all o any. */
66
- export interface AutomationFilterGroup {
67
- /** Forma en que se combinan condiciones y grupos hijos. */
68
- logicalOperator: AutomationFilterLogicalOperator;
69
- /** Comparaciones directas pertenecientes al grupo. */
70
- conditions: AutomationFilterCondition[];
71
- /** Grupos anidados. */
72
- groups: AutomationFilterGroup[];
73
- }
74
31
  /**
75
32
  * Identidad estable del Flow. El contenido ejecutable vive en FlowVersion.
76
33
  */
@@ -101,8 +58,6 @@ export interface AutomationFlowCanvas {
101
58
  variables: AutomationFlowVariable[];
102
59
  nodes: AutomationFlowNode[];
103
60
  edges: AutomationFlowEdge[];
104
- /** Anotaciones visuales que no forman parte del grafo ejecutable. */
105
- annotations?: AutomationCanvasAnnotation[];
106
61
  viewport: AutomationFlowViewport;
107
62
  }
108
63
  /**
@@ -135,17 +90,10 @@ export interface FlowEntryPoint {
135
90
  flowId: string;
136
91
  flowVersionId: string;
137
92
  name: string;
138
- /** Selección amigable y configuración normalizada del trigger de módulo. */
139
- triggerBinding: AutomationTriggerBinding;
140
- /** Política de reingreso y concurrencia aplicada antes de crear la ejecución. */
141
- admissionPolicy: AutomationTriggerAdmissionPolicy;
142
- /** Valor resuelto por backend a partir de triggerBinding; no es editable. */
143
93
  sourceApplication: AutomationSourceApplication;
144
- /** Valor resuelto por backend a partir de triggerBinding; no es editable. */
145
94
  eventType: string;
146
95
  triggerCapability?: AutomationCapabilityReference | null;
147
- /** Grupo vacío acepta cualquier evento del tipo configurado. */
148
- filters: AutomationFilterGroup;
96
+ filters: AutomationJsonObject;
149
97
  enabled: boolean;
150
98
  triggerNodeId: string;
151
99
  priority: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationFilterOperator = exports.AutomationFilterLogicalOperator = exports.FlowEntryPointExecutionMode = exports.AutomationFlowVersionStatus = exports.AutomationFlowStatus = exports.AutomationFlowKind = void 0;
3
+ exports.FlowEntryPointExecutionMode = exports.AutomationFlowVersionStatus = exports.AutomationFlowStatus = exports.AutomationFlowKind = void 0;
4
4
  var AutomationFlowKind;
5
5
  (function (AutomationFlowKind) {
6
6
  AutomationFlowKind["CONVERSATIONAL"] = "conversational";
@@ -32,27 +32,3 @@ var FlowEntryPointExecutionMode;
32
32
  /** El solapamiento fue habilitado explícitamente. */
33
33
  FlowEntryPointExecutionMode["MULTIPLE"] = "multiple";
34
34
  })(FlowEntryPointExecutionMode || (exports.FlowEntryPointExecutionMode = FlowEntryPointExecutionMode = {}));
35
- var AutomationFilterLogicalOperator;
36
- (function (AutomationFilterLogicalOperator) {
37
- /** Todas las condiciones y grupos hijos deben cumplirse. */
38
- AutomationFilterLogicalOperator["ALL"] = "all";
39
- /** Al menos una condición o grupo hijo debe cumplirse. */
40
- AutomationFilterLogicalOperator["ANY"] = "any";
41
- })(AutomationFilterLogicalOperator || (exports.AutomationFilterLogicalOperator = AutomationFilterLogicalOperator = {}));
42
- var AutomationFilterOperator;
43
- (function (AutomationFilterOperator) {
44
- AutomationFilterOperator["EQUALS"] = "equals";
45
- AutomationFilterOperator["NOT_EQUALS"] = "notEquals";
46
- AutomationFilterOperator["CONTAINS"] = "contains";
47
- AutomationFilterOperator["NOT_CONTAINS"] = "notContains";
48
- AutomationFilterOperator["STARTS_WITH"] = "startsWith";
49
- AutomationFilterOperator["ENDS_WITH"] = "endsWith";
50
- AutomationFilterOperator["GREATER_THAN"] = "greaterThan";
51
- AutomationFilterOperator["GREATER_THAN_OR_EQUAL"] = "greaterThanOrEqual";
52
- AutomationFilterOperator["LESS_THAN"] = "lessThan";
53
- AutomationFilterOperator["LESS_THAN_OR_EQUAL"] = "lessThanOrEqual";
54
- AutomationFilterOperator["IN"] = "in";
55
- AutomationFilterOperator["NOT_IN"] = "notIn";
56
- AutomationFilterOperator["EXISTS"] = "exists";
57
- AutomationFilterOperator["NOT_EXISTS"] = "notExists";
58
- })(AutomationFilterOperator || (exports.AutomationFilterOperator = AutomationFilterOperator = {}));
@@ -1,6 +1,5 @@
1
1
  import { AutomationJsonObject, AutomationJsonSchema, AutomationJsonValue, AutomationPageRequest, AutomationSourceApplication } from '../Common';
2
2
  import { AutomationCapabilityReference } from '../Capabilities';
3
- import { AutomationTriggerDefinition } from '../Triggers';
4
3
  import { AutomationNodeHandle, AutomationNodeKind } from '../Flows';
5
4
  export declare enum AutomationNodePropertyEditor {
6
5
  STRING = "string",
@@ -16,37 +15,6 @@ export declare enum AutomationNodePropertyEditor {
16
15
  ASYNC_OPTIONS = "asyncOptions",
17
16
  ASYNC_MULTI_OPTIONS = "asyncMultiOptions"
18
17
  }
19
- export declare enum AutomationNodeVisibilityLogicalOperator {
20
- ALL = "all",
21
- ANY = "any"
22
- }
23
- export declare enum AutomationNodeConditionOperator {
24
- EQUALS = "equals"
25
- }
26
- export interface AutomationNodeCondition {
27
- propertyId: string;
28
- operator: AutomationNodeConditionOperator;
29
- value?: AutomationJsonValue;
30
- }
31
- export interface AutomationNodeVisibilityRule {
32
- logicalOperator: AutomationNodeVisibilityLogicalOperator;
33
- conditions: AutomationNodeCondition[];
34
- }
35
- export interface AutomationNodePropertyUi {
36
- tabId: string;
37
- tabLabel: string;
38
- order: number;
39
- labelKey?: string | null;
40
- placeholder?: string | null;
41
- rows?: number | null;
42
- numberMin?: number | null;
43
- numberMax?: number | null;
44
- step?: number | null;
45
- acceptVariable?: boolean | null;
46
- acceptEmojis?: boolean | null;
47
- allowMaximizeInput?: boolean | null;
48
- itemProperties: AutomationNodePropertyDefinition[];
49
- }
50
18
  export interface AutomationNodeDefinition {
51
19
  code: string;
52
20
  version: number;
@@ -59,8 +27,6 @@ export interface AutomationNodeDefinition {
59
27
  tags: string[];
60
28
  requiredPermissions: string[];
61
29
  capability?: AutomationCapabilityReference | null;
62
- /** Metadata disponible únicamente para nodos que pueden iniciar un Flow. */
63
- trigger?: AutomationTriggerDefinition | null;
64
30
  inputs: AutomationNodeHandle[];
65
31
  outputs: AutomationNodeHandle[];
66
32
  properties: AutomationNodePropertyDefinition[];
@@ -78,9 +44,9 @@ export interface AutomationNodePropertyDefinition {
78
44
  schema?: AutomationJsonSchema | null;
79
45
  options: AutomationNodeOption[];
80
46
  optionsCapabilityCode?: string | null;
81
- ui: AutomationNodePropertyUi;
82
- showWhen?: AutomationNodeVisibilityRule | null;
83
- hideWhen?: AutomationNodeVisibilityRule | null;
47
+ ui?: AutomationJsonObject | null;
48
+ showWhen?: AutomationJsonObject | null;
49
+ hideWhen?: AutomationJsonObject | null;
84
50
  }
85
51
  export interface AutomationNodeOption {
86
52
  id: string;
@@ -102,15 +68,8 @@ export interface AutomationNodeOptionsRequest {
102
68
  propertyId: string;
103
69
  currentValues: AutomationJsonObject;
104
70
  context: AutomationJsonObject;
105
- /** Optional provider-defined, case-insensitive text search. */
106
- search?: string | null;
107
- /** Opaque cursor returned by the previous response. */
108
- continuationToken?: string | null;
109
- /** Preferred page size. The API clamps it to the supported range (1-200). */
110
- limit?: number;
111
71
  }
112
72
  export interface AutomationNodeOptionsResult {
113
73
  options: AutomationNodeOption[];
114
- /** Opaque cursor for the next page; null or omitted means the last page. */
115
74
  continuationToken?: string | null;
116
75
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationNodeConditionOperator = exports.AutomationNodeVisibilityLogicalOperator = exports.AutomationNodePropertyEditor = void 0;
3
+ exports.AutomationNodePropertyEditor = void 0;
4
4
  var AutomationNodePropertyEditor;
5
5
  (function (AutomationNodePropertyEditor) {
6
6
  AutomationNodePropertyEditor["STRING"] = "string";
@@ -16,12 +16,3 @@ var AutomationNodePropertyEditor;
16
16
  AutomationNodePropertyEditor["ASYNC_OPTIONS"] = "asyncOptions";
17
17
  AutomationNodePropertyEditor["ASYNC_MULTI_OPTIONS"] = "asyncMultiOptions";
18
18
  })(AutomationNodePropertyEditor || (exports.AutomationNodePropertyEditor = AutomationNodePropertyEditor = {}));
19
- var AutomationNodeVisibilityLogicalOperator;
20
- (function (AutomationNodeVisibilityLogicalOperator) {
21
- AutomationNodeVisibilityLogicalOperator["ALL"] = "all";
22
- AutomationNodeVisibilityLogicalOperator["ANY"] = "any";
23
- })(AutomationNodeVisibilityLogicalOperator || (exports.AutomationNodeVisibilityLogicalOperator = AutomationNodeVisibilityLogicalOperator = {}));
24
- var AutomationNodeConditionOperator;
25
- (function (AutomationNodeConditionOperator) {
26
- AutomationNodeConditionOperator["EQUALS"] = "equals";
27
- })(AutomationNodeConditionOperator || (exports.AutomationNodeConditionOperator = AutomationNodeConditionOperator = {}));
@@ -4,4 +4,3 @@ export * from './Capabilities';
4
4
  export * from './Executions';
5
5
  export * from './Nodes';
6
6
  export * from './Events';
7
- export * from './Triggers';
@@ -20,4 +20,3 @@ __exportStar(require("./Capabilities"), exports);
20
20
  __exportStar(require("./Executions"), exports);
21
21
  __exportStar(require("./Nodes"), exports);
22
22
  __exportStar(require("./Events"), exports);
23
- __exportStar(require("./Triggers"), exports);
@@ -55,14 +55,11 @@ interface IChannel {
55
55
  type?: ChannelType | null;
56
56
  permissions?: Permission[] | null;
57
57
  /**
58
- * @deprecated Legacy channel assignment configuration. Use
59
- * ChannelConversationRoutingConfig; Flow bindings live in FlowEntryPoint.
58
+ * @deprecated Legacy channel assignment configuration. Use QueueRoutingConfig.
60
59
  */
61
60
  assignTo?: ConversationAssigned;
62
61
  /**
63
- * @deprecated Legacy channel assignment configuration. Use
64
- * ChannelConversationRoutingConfig; QueueRoutingPolicy controls agent
65
- * distribution only after a Queue has been selected.
62
+ * @deprecated Legacy channel assignment configuration. Use QueueRoutingConfig.
66
63
  */
67
64
  assignMethod: AssignMethod;
68
65
  /**
@@ -75,7 +72,8 @@ interface IChannel {
75
72
  conversationsEnabled: boolean | false;
76
73
  /**
77
74
  * Default Queue for newly-created conversations that are not handled by a
78
- * Flow. Store only the Queue id;
75
+ * Flow. Store only the Queue id; Queue configuration remains authoritative
76
+ * in the Conversations domain.
79
77
  */
80
78
  conversationRouting?: ChannelConversationRoutingConfig | null;
81
79
  /**
@@ -30,7 +30,6 @@ export declare class EmailConfig {
30
30
  reassign?: boolean;
31
31
  reassignTime?: number;
32
32
  reassignGroupId?: string;
33
- reOpenTime?: number;
34
33
  connectedEmailDoamin: string;
35
34
  inboundConnectedEmail: string;
36
35
  inboundConnectedEmailStatus: EmailConfigOutboundStatus;
@@ -1,7 +1,6 @@
1
1
  import { ISchedule } from "../Schedules/Schedules";
2
2
  export declare class FacebookConfig {
3
3
  token?: string | '';
4
- reOpenTime?: number;
5
4
  fbAccessToken: string;
6
5
  fbAccessTokenExpiration: Date;
7
6
  fbUserId: string;
@@ -43,7 +43,6 @@ export declare class FormConfig {
43
43
  reassignGroupId?: string;
44
44
  scheduleId?: string | null;
45
45
  schedule?: ISchedule | null;
46
- reOpenTime?: number;
47
46
  title?: string | '';
48
47
  subTitle?: string | '';
49
48
  color?: string | '';
@@ -4,7 +4,6 @@ export declare class GoogleBusinessConfig {
4
4
  reassign?: boolean;
5
5
  reassignTime?: number;
6
6
  reassignGroupId?: string;
7
- reOpenTime?: number;
8
7
  autoResponseBusinessHours?: boolean;
9
8
  autoResponseOutOfBusinessHours?: boolean;
10
9
  autoResponseHoliday?: boolean;
@@ -16,7 +16,6 @@ export declare class InstagramConfig {
16
16
  reassign?: boolean;
17
17
  reassignTime?: number;
18
18
  reassignGroupId?: string;
19
- reOpenTime?: number;
20
19
  signatureEnabled?: boolean;
21
20
  signatureText?: string;
22
21
  autoResponseBusinessHours?: boolean;
@@ -4,7 +4,6 @@ export declare class MercadoLibreConfig {
4
4
  reassign?: boolean;
5
5
  reassignTime?: number;
6
6
  reassignGroupId?: string;
7
- reOpenTime?: number;
8
7
  autoResponseBusinessHours?: boolean;
9
8
  autoResponseOutOfBusinessHours?: boolean;
10
9
  autoResponseHoliday?: boolean;
@@ -4,7 +4,6 @@ export declare class WebChatConfig {
4
4
  reassign?: boolean;
5
5
  reassignTime?: number;
6
6
  reassignGroupId?: string;
7
- reOpenTime?: number;
8
7
  signatureEnabled?: boolean;
9
8
  signatureText?: string;
10
9
  autoResponseBusinessHours?: boolean;
@@ -7,5 +7,3 @@ export * from './Import';
7
7
  export * from './Relationship';
8
8
  export * from './options';
9
9
  export * from './DuplicateContact';
10
- export * from './CommunicationEndpoint';
11
- export * from './CommunicationMethod';
@@ -23,5 +23,3 @@ __exportStar(require("./Import"), exports);
23
23
  __exportStar(require("./Relationship"), exports);
24
24
  __exportStar(require("./options"), exports);
25
25
  __exportStar(require("./DuplicateContact"), exports);
26
- __exportStar(require("./CommunicationEndpoint"), exports);
27
- __exportStar(require("./CommunicationMethod"), exports);
@@ -1,15 +1,13 @@
1
1
  import { ID } from './Conversation';
2
2
  export declare const CONVERSATION_ASSIGNMENT_EVENTS_COLLECTION = "conversation_assignment_events";
3
3
  export type ConversationAssignmentEventType = 'enqueued' | 'routing_started' | 'offered' | 'assigned' | 'accepted' | 'transferred' | 'released' | 'timed_out' | 'requeued';
4
- export type ConversationAssignmentReason = 'conversation_created' | 'routing_selected' | 'manual_assignment' | 'manual_transfer' | 'flow_routing' | 'offer_timeout' | 'assignment_timeout' | 'agent_accepted' | 'agent_released' | 'supervisor_released' | 'capacity_rebalance' | 'sla_escalation' | 'system_recovery' | 'transfer_cancelled' | 'transfer_declined';
4
+ export type ConversationAssignmentReason = 'conversation_created' | 'routing_selected' | 'manual_assignment' | 'manual_transfer' | 'flow_routing' | 'offer_timeout' | 'assignment_timeout' | 'agent_accepted' | 'agent_released' | 'supervisor_released' | 'capacity_rebalance' | 'sla_escalation' | 'system_recovery';
5
5
  export type AssignmentOwnerReference = {
6
6
  type: 'none';
7
7
  id?: never;
8
- displayName?: string;
9
8
  } | {
10
9
  type: 'user' | 'bot' | 'flow';
11
10
  id: ID;
12
- displayName?: string;
13
11
  };
14
12
  export type AssignmentStateReference = {
15
13
  status: 'unrouted';
@@ -42,11 +40,9 @@ export type AssignmentStateReference = {
42
40
  export type AssignmentActorReference = {
43
41
  type: 'system';
44
42
  id?: never;
45
- displayName?: string;
46
43
  } | {
47
44
  type: 'user' | 'bot' | 'flow';
48
45
  id: ID;
49
- displayName?: string;
50
46
  };
51
47
  /**
52
48
  * Immutable domain event stored in conversation_assignment_events.
@@ -83,99 +79,3 @@ export interface ConversationAssignmentEvent {
83
79
  occurredAt: Date;
84
80
  recordedAt: Date;
85
81
  }
86
- export interface AcceptConversationAssignmentCommand {
87
- commandId: string;
88
- spaceId: ID;
89
- conversationId: ID;
90
- assignmentId: ID;
91
- expectedConversationVersion: number;
92
- actor: AssignmentActorReference;
93
- requestedAt: Date;
94
- }
95
- export type AcceptConversationAssignmentRejectionCode = 'conversation_not_found' | 'assignment_not_current' | 'assignment_not_offered' | 'actor_not_authorized';
96
- export type AcceptConversationAssignmentResult = {
97
- status: 'accepted' | 'already_applied';
98
- commandId: string;
99
- conversationId: ID;
100
- previousVersion: number;
101
- conversationVersion: number;
102
- previous?: AssignmentStateReference;
103
- current: AssignmentStateReference;
104
- assignmentEventId: ID;
105
- outboxEventId?: ID;
106
- } | {
107
- status: 'version_conflict';
108
- commandId: string;
109
- conversationId: ID;
110
- expectedVersion: number;
111
- currentVersion: number;
112
- } | {
113
- status: 'rejected';
114
- commandId: string;
115
- conversationId: ID;
116
- code: AcceptConversationAssignmentRejectionCode;
117
- };
118
- export interface DeclineConversationAssignmentCommand {
119
- commandId: string;
120
- spaceId: ID;
121
- conversationId: ID;
122
- assignmentId: ID;
123
- expectedConversationVersion: number;
124
- actor: AssignmentActorReference;
125
- requestedAt: Date;
126
- }
127
- export type DeclineConversationAssignmentRejectionCode = 'conversation_not_found' | 'assignment_not_current' | 'assignment_not_offered' | 'actor_not_authorized';
128
- export type DeclineConversationAssignmentResult = {
129
- status: 'declined' | 'already_applied';
130
- commandId: string;
131
- conversationId: ID;
132
- previousVersion: number;
133
- conversationVersion: number;
134
- previous?: AssignmentStateReference;
135
- current: AssignmentStateReference;
136
- assignmentEventId: ID;
137
- outboxEventId?: ID;
138
- } | {
139
- status: 'version_conflict';
140
- commandId: string;
141
- conversationId: ID;
142
- expectedVersion: number;
143
- currentVersion: number;
144
- } | {
145
- status: 'rejected';
146
- commandId: string;
147
- conversationId: ID;
148
- code: DeclineConversationAssignmentRejectionCode;
149
- };
150
- export interface CancelConversationAssignmentCommand {
151
- commandId: string;
152
- spaceId: ID;
153
- conversationId: ID;
154
- assignmentId: ID;
155
- expectedConversationVersion: number;
156
- actor: AssignmentActorReference;
157
- requestedAt: Date;
158
- }
159
- export type CancelConversationAssignmentRejectionCode = 'conversation_not_found' | 'assignment_not_current' | 'assignment_not_cancellable' | 'actor_not_authorized';
160
- export type CancelConversationAssignmentResult = {
161
- status: 'cancelled' | 'already_applied';
162
- commandId: string;
163
- conversationId: ID;
164
- previousVersion: number;
165
- conversationVersion: number;
166
- previous?: AssignmentStateReference;
167
- current: AssignmentStateReference;
168
- assignmentEventId: ID;
169
- outboxEventId?: ID;
170
- } | {
171
- status: 'version_conflict';
172
- commandId: string;
173
- conversationId: ID;
174
- expectedVersion: number;
175
- currentVersion: number;
176
- } | {
177
- status: 'rejected';
178
- commandId: string;
179
- conversationId: ID;
180
- code: CancelConversationAssignmentRejectionCode;
181
- };
@@ -5,8 +5,6 @@ import { Channels } from "../Common/index";
5
5
  import { IContactAddress, IContactInfo } from "../Contacts/contacts";
6
6
  import { IEnding } from "./Ending";
7
7
  import { ChatType } from "../Chats/Chat";
8
- import { TransferConversationCommand, TransferConversationResult } from "./Transfer";
9
- import { AcceptConversationAssignmentCommand, AcceptConversationAssignmentResult, DeclineConversationAssignmentCommand, DeclineConversationAssignmentResult, CancelConversationAssignmentCommand, CancelConversationAssignmentResult } from "./Assignment";
10
8
  export interface IConversation {
11
9
  id: string;
12
10
  spaceId: string;
@@ -283,47 +281,19 @@ export type ConversationSubscription = (ConversationSubscriptionBase & {
283
281
  followedAt: Date;
284
282
  unfollowedAt: Date;
285
283
  });
286
- export interface PutConversationSubscriptionRequest {
287
- expectedVersion?: number;
288
- notifications: ConversationSubscriptionNotifications;
289
- }
290
- export interface UserConversationState {
291
- id: ID;
292
- spaceId: ID;
293
- conversationId: ID;
294
- userId: ID;
295
- pinned: boolean;
296
- pinnedAt?: Date;
297
- lastReadMessageId?: ID;
298
- lastReadAt?: Date;
299
- updatedAt: Date;
300
- version: number;
301
- }
302
- export type ConversationReadStateMode = 'read' | 'unread';
303
- export interface PutConversationReadStateRequest {
304
- mode: ConversationReadStateMode;
305
- lastReadMessageId?: ID;
306
- lastReadAt?: Date;
307
- }
308
- export interface PutConversationPinRequest {
309
- pinned: boolean;
310
- }
311
284
  export type InboxVisibilityReason = 'manual_follow' | 'assigned_to_user' | 'shared_queue_member' | 'queue_claimable' | 'active_participant' | 'sla_warning_owner' | 'sla_breached_owner' | 'supervised_queue_sla' | 'supervisor_escalation' | 'resolved_visible';
312
285
  export interface ConversationInboxSnapshot {
313
286
  interactionKind: 'private' | 'wall_post' | 'comment' | 'mention';
314
287
  channelType: string;
315
- channelId?: ID;
316
288
  contact: {
317
289
  id?: ID;
318
290
  displayName: string;
319
291
  initials?: string;
320
- isBusiness: boolean;
321
292
  };
322
293
  status: ConversationStatus;
323
294
  owner: ConversationOwner;
324
295
  queueId?: ID;
325
296
  preview?: string;
326
- lastMessageId?: ID;
327
297
  unreadCount: number;
328
298
  priority: 'low' | 'normal' | 'high' | 'urgent';
329
299
  sla: {
@@ -387,143 +357,4 @@ export interface UserInboxCounterDocument {
387
357
  projectionVersion: number;
388
358
  updatedAt: Date;
389
359
  }
390
- export interface CursorPage<T> {
391
- items: T[];
392
- nextCursor?: string;
393
- hasMore: boolean;
394
- generatedAt: Date;
395
- }
396
- export interface ConversationCapabilitiesDto {
397
- canView: boolean;
398
- canReply: boolean;
399
- canFollow: boolean;
400
- canAbandon: boolean;
401
- canClaim: boolean;
402
- canAccept: boolean;
403
- canRelease: boolean;
404
- canTransfer: boolean;
405
- canResolve: boolean;
406
- canReopen: boolean;
407
- canChangePriority: boolean;
408
- canManageLabels: boolean;
409
- canManageSla: boolean;
410
- canViewAssignmentHistory: boolean;
411
- canViewRoutingDecisions: boolean;
412
- }
413
- export interface InboxViewSummaryDto {
414
- id: InboxViewId | 'supervised_target';
415
- label: string;
416
- scope: 'personal' | 'supervision' | 'history';
417
- order: number;
418
- total: number;
419
- requiresAction: number;
420
- unread: number;
421
- enabled: boolean;
422
- targetRequired: boolean;
423
- capabilities: string[];
424
- }
425
- export interface InboxViewsResponse {
426
- views: InboxViewSummaryDto[];
427
- countersGeneratedAt: Date;
428
- projectionLagMs?: number;
429
- }
430
- export interface InboxFilterDto {
431
- text?: string;
432
- queueIds?: ID[];
433
- ownerUserIds?: ID[];
434
- channelTypes?: string[];
435
- statuses?: ConversationStatus[];
436
- priorities?: Array<'low' | 'normal' | 'high' | 'urgent'>;
437
- slaStatuses?: Array<'none' | 'running' | 'warning' | 'breached' | 'met'>;
438
- labelIds?: ID[];
439
- unread?: boolean;
440
- requiresAction?: boolean;
441
- pinned?: boolean;
442
- lastActivity?: {
443
- from?: Date;
444
- to?: Date;
445
- };
446
- sort: {
447
- type: 'activity';
448
- } | {
449
- type: 'priority';
450
- };
451
- }
452
- export type InboxConversationItemDto = Pick<UserInboxItemDocument, 'conversationId' | 'views' | 'snapshot' | 'pinned' | 'priorityScore' | 'sortAt'> & {
453
- capabilities: Pick<ConversationCapabilitiesDto, 'canView' | 'canReply' | 'canClaim' | 'canTransfer'>;
454
- };
455
- export interface InboxConversationPage extends CursorPage<InboxConversationItemDto> {
456
- appliedFilter: InboxFilterDto;
457
- facets?: unknown;
458
- }
459
- /**
460
- * DTO API - GET /inbox/views/{viewId}/filter-options.
461
- */
462
- export interface InboxFacetOptionDto {
463
- id: string;
464
- label: string;
465
- count: number;
466
- }
467
- export interface InboxFacetsDto {
468
- queues: InboxFacetOptionDto[];
469
- owners: InboxFacetOptionDto[];
470
- channels: InboxFacetOptionDto[];
471
- statuses: InboxFacetOptionDto[];
472
- priorities: InboxFacetOptionDto[];
473
- slaStatuses: InboxFacetOptionDto[];
474
- labels: InboxFacetOptionDto[];
475
- }
476
- export interface InboxFilterOptionsResponse {
477
- facets: InboxFacetsDto;
478
- generatedAt: Date;
479
- }
480
- export type ConversationTimelineItemType = 'assignment' | 'sla' | 'system';
481
- export interface ConversationTimelineItem {
482
- type: ConversationTimelineItemType;
483
- time: Date;
484
- text: string;
485
- conversationId: string;
486
- }
487
- export interface ConversationUserRelationDto {
488
- isOwner: boolean;
489
- isParticipant: boolean;
490
- isFollowing: boolean;
491
- isPinned: boolean;
492
- unreadCount: number;
493
- }
494
- export interface ConversationDetailResponse {
495
- conversation: IConversation;
496
- relation: ConversationUserRelationDto;
497
- capabilities: ConversationCapabilitiesDto;
498
- availableActions: string[];
499
- }
500
- export interface AddConversationParticipantRequest {
501
- userId: string;
502
- }
503
- export interface TransferQueueOptionDto {
504
- id: ID;
505
- name: string;
506
- color?: string;
507
- canTransfer: boolean;
508
- supportsCurrentChannel: boolean;
509
- }
510
- export interface TransferUserOptionDto {
511
- id: ID;
512
- displayName: string;
513
- available: boolean;
514
- capacityUsed: number;
515
- capacityTotal: number;
516
- }
517
- export interface TransferOptionsResponse {
518
- queues: TransferQueueOptionDto[];
519
- usersByQueue?: Record<ID, TransferUserOptionDto[]>;
520
- }
521
- export type StartTransferRequest = Pick<TransferConversationCommand, 'commandId' | 'target' | 'expectedConversationVersion' | 'reason'>;
522
- export type StartTransferResponse = TransferConversationResult;
523
- export type AcceptAssignmentRequest = Pick<AcceptConversationAssignmentCommand, 'commandId' | 'expectedConversationVersion'>;
524
- export type AcceptAssignmentResponse = AcceptConversationAssignmentResult;
525
- export type DeclineAssignmentRequest = Pick<DeclineConversationAssignmentCommand, 'commandId' | 'expectedConversationVersion'>;
526
- export type DeclineAssignmentResponse = DeclineConversationAssignmentResult;
527
- export type CancelAssignmentRequest = Pick<CancelConversationAssignmentCommand, 'commandId' | 'expectedConversationVersion'>;
528
- export type CancelAssignmentResponse = CancelConversationAssignmentResult;
529
360
  export {};