@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
@@ -5,33 +5,11 @@
5
5
  * traducirse ni depender del nombre visible de la aplicación.
6
6
  */
7
7
  export declare enum AutomationSourceApplication {
8
- /** Automations y sus capacidades Core. */
9
- AUTOMATIONS = "automations",
10
- /** Gestión de conversaciones y mensajería conversacional. */
11
8
  CONVERSATIONS = "conversations",
12
- /** Gestión de contactos y organizaciones. */
13
- CONTACTS = "contacts",
14
- /** Gestión de tickets y soporte. */
15
9
  TICKETS = "tickets",
16
- /** Campañas y operaciones de marketing. */
17
10
  MARKETING = "marketing",
18
- /** Procesos y oportunidades comerciales. */
19
11
  SALES = "sales",
20
- /** Telefonía y llamadas. */
21
12
  CALLS = "calls",
22
- /** Comunicaciones salientes como email y SMS. */
23
- COMMUNICATIONS = "communications",
24
- /** Formularios y captura estructurada de datos. */
25
- FORMS = "forms",
26
- /** Conectores e integraciones externas. */
27
- INTEGRATIONS = "integrations",
28
- /** Acceso y transformación de datos. */
29
- DATA = "data",
30
- /** Agentes, modelos y herramientas de inteligencia artificial. */
31
- AI = "ai",
32
- /** Bases de conocimiento, documentos y búsqueda semántica. */
33
- KNOWLEDGE = "knowledge",
34
- /** Propietario externo o no clasificado; no debe usarse como fallback. */
35
13
  GENERIC = "generic"
36
14
  }
37
15
  export type AutomationJsonValue = string | number | boolean | null | AutomationJsonObject | AutomationJsonValue[];
@@ -67,28 +45,3 @@ export interface AutomationError {
67
45
  message: string;
68
46
  details?: AutomationJsonObject | null;
69
47
  }
70
- /** Referencia estable con la identidad visible al iniciar una ejecución. */
71
- export interface AutomationCustomerReference {
72
- id: string;
73
- displayNameSnapshot?: string | null;
74
- }
75
- /** Referencia transversal a una entidad perteneciente a una aplicación. */
76
- export interface AutomationResourceReference {
77
- /** Aplicación propietaria de la entidad. */
78
- sourceApplication: AutomationSourceApplication;
79
- /** Tipo estable dentro de la aplicación, por ejemplo ticket o campaign. */
80
- resourceType: string;
81
- /** Identificador en la aplicación propietaria. */
82
- id: string;
83
- /** Nombre informativo capturado al crear la referencia. */
84
- displayNameSnapshot?: string | null;
85
- }
86
- /**
87
- * Contexto CRM opcional asociado a un evento o ejecución.
88
- * Permite representar escenarios B2C, B2B o un contacto perteneciente a una
89
- * empresa sin depender de los contratos internos del módulo Contacts.
90
- */
91
- export interface AutomationCustomer {
92
- contact?: AutomationCustomerReference | null;
93
- business?: AutomationCustomerReference | null;
94
- }
@@ -9,32 +9,10 @@ exports.AutomationSourceApplication = void 0;
9
9
  */
10
10
  var AutomationSourceApplication;
11
11
  (function (AutomationSourceApplication) {
12
- /** Automations y sus capacidades Core. */
13
- AutomationSourceApplication["AUTOMATIONS"] = "automations";
14
- /** Gestión de conversaciones y mensajería conversacional. */
15
12
  AutomationSourceApplication["CONVERSATIONS"] = "conversations";
16
- /** Gestión de contactos y organizaciones. */
17
- AutomationSourceApplication["CONTACTS"] = "contacts";
18
- /** Gestión de tickets y soporte. */
19
13
  AutomationSourceApplication["TICKETS"] = "tickets";
20
- /** Campañas y operaciones de marketing. */
21
14
  AutomationSourceApplication["MARKETING"] = "marketing";
22
- /** Procesos y oportunidades comerciales. */
23
15
  AutomationSourceApplication["SALES"] = "sales";
24
- /** Telefonía y llamadas. */
25
16
  AutomationSourceApplication["CALLS"] = "calls";
26
- /** Comunicaciones salientes como email y SMS. */
27
- AutomationSourceApplication["COMMUNICATIONS"] = "communications";
28
- /** Formularios y captura estructurada de datos. */
29
- AutomationSourceApplication["FORMS"] = "forms";
30
- /** Conectores e integraciones externas. */
31
- AutomationSourceApplication["INTEGRATIONS"] = "integrations";
32
- /** Acceso y transformación de datos. */
33
- AutomationSourceApplication["DATA"] = "data";
34
- /** Agentes, modelos y herramientas de inteligencia artificial. */
35
- AutomationSourceApplication["AI"] = "ai";
36
- /** Bases de conocimiento, documentos y búsqueda semántica. */
37
- AutomationSourceApplication["KNOWLEDGE"] = "knowledge";
38
- /** Propietario externo o no clasificado; no debe usarse como fallback. */
39
17
  AutomationSourceApplication["GENERIC"] = "generic";
40
18
  })(AutomationSourceApplication || (exports.AutomationSourceApplication = AutomationSourceApplication = {}));
@@ -1,9 +1,4 @@
1
- import { AutomationCustomer, AutomationJsonObject, AutomationJsonSchema, AutomationResourceReference, AutomationSourceApplication } from '../Common';
2
- export declare const AUTOMATION_MESSAGE_SCHEMAS: {
3
- readonly DOMAIN_EVENT_V1: 'automations.domain-event/v1';
4
- readonly START_REQUEST_V1: 'automations.start-request/v1';
5
- readonly EXECUTION_WORK_ITEM_V1: 'automations.execution.work-item/v1';
6
- };
1
+ import { AutomationJsonObject, AutomationJsonSchema, AutomationSourceApplication } from '../Common';
7
2
  export interface AutomationEventDefinition {
8
3
  eventType: string;
9
4
  version: number;
@@ -11,85 +6,35 @@ export interface AutomationEventDefinition {
11
6
  name: string;
12
7
  description?: string | null;
13
8
  payloadSchema: AutomationJsonSchema;
14
- /** Schema de la vista del envelope cuyos paths pueden utilizarse en filtros. */
15
9
  filterSchema?: AutomationJsonSchema | null;
16
10
  requiredPermissions: string[];
17
11
  enabled: boolean;
18
12
  }
19
13
  export interface AutomationEventEnvelope {
20
- schema: typeof AUTOMATION_MESSAGE_SCHEMAS.DOMAIN_EVENT_V1;
21
14
  id: string;
22
15
  spaceId: string;
23
16
  sourceApplication: AutomationSourceApplication;
24
17
  eventType: string;
25
18
  eventVersion: number;
26
- /** Clave estable usada como SessionId; no incluye spaceId. */
27
- orderingKey: string;
28
- /** Secuencia monotónica opcional asignada por el propietario del agregado. */
29
- aggregateSequence?: number | null;
30
19
  occurredAt: string;
31
- /** Instante de ingreso al primer consumidor controlado. */
32
- receivedAt?: string | null;
33
- customer?: AutomationCustomer | null;
34
- /** Entidad principal sobre la que ocurrió el evento. */
35
- subject?: AutomationResourceReference | null;
20
+ receivedAt: string;
21
+ subjectId?: string | null;
36
22
  correlationId?: string | null;
37
23
  causationId?: string | null;
38
24
  idempotencyKey?: string | null;
39
25
  payload: AutomationJsonObject;
40
26
  metadata?: AutomationJsonObject | null;
41
27
  }
42
- /** Solicitud asíncrona generada después de resolver un Entry Point. */
43
- export interface AutomationStartRequestMessage {
44
- schema: typeof AUTOMATION_MESSAGE_SCHEMAS.START_REQUEST_V1;
45
- requestId: string;
46
- spaceId: string;
47
- flowId: string;
48
- flowVersionId: string;
49
- entryPointId: string;
50
- trigger: AutomationEventEnvelope;
51
- requestedAt: string;
52
- correlationId?: string | null;
53
- causationId?: string | null;
54
- /** Debe permanecer estable en todos los reintentos de la misma operación. */
55
- idempotencyKey: string;
56
- metadata?: AutomationJsonObject | null;
57
- }
58
- export declare enum AutomationEntryPointExclusionCode {
59
- ENTRY_POINT_DISABLED = "entryPointDisabled",
60
- SOURCE_APPLICATION_MISMATCH = "sourceApplicationMismatch",
61
- EVENT_TYPE_MISMATCH = "eventTypeMismatch",
62
- FILTERS_NOT_MATCHED = "filtersNotMatched",
63
- FLOW_NOT_ACTIVE = "flowNotActive",
64
- VERSION_NOT_PUBLISHED = "versionNotPublished",
65
- LOWER_PRIORITY = "lowerPriority",
66
- EXECUTION_MODE_RESTRICTED = "executionModeRestricted"
67
- }
68
- /** Motivo estructurado por el que un Entry Point no fue seleccionado. */
69
- export interface AutomationEntryPointExclusion {
70
- /** Código estable para lógica, métricas y observabilidad. */
71
- code: AutomationEntryPointExclusionCode;
72
- /** Explicación humana opcional; no debe utilizarse para lógica. */
73
- message?: string | null;
74
- /** Datos diagnósticos específicos del código. */
75
- details?: AutomationJsonObject | null;
76
- }
77
28
  export interface ResolveFlowEntryPointsRequest {
78
29
  event: AutomationEventEnvelope;
79
30
  }
80
31
  export interface ResolvedFlowEntryPoint {
81
- /** Definición estable del Flow. */
82
32
  flowId: string;
83
- /** Versión publicada candidata a recibir el evento. */
84
33
  flowVersionId: string;
85
- /** Entry Point evaluado. */
86
34
  entryPointId: string;
87
- /** Prioridad utilizada para resolver candidatos. */
88
35
  priority: number;
89
- /** Indica si el candidato debe iniciar una ejecución. */
90
36
  selected: boolean;
91
- /** Motivo de exclusión; ausente cuando selected es true. */
92
- exclusion?: AutomationEntryPointExclusion | null;
37
+ exclusionReason?: string | null;
93
38
  }
94
39
  export interface ResolveFlowEntryPointsResult {
95
40
  matches: ResolvedFlowEntryPoint[];
@@ -1,19 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationEntryPointExclusionCode = exports.AUTOMATION_MESSAGE_SCHEMAS = void 0;
4
- exports.AUTOMATION_MESSAGE_SCHEMAS = {
5
- DOMAIN_EVENT_V1: 'automations.domain-event/v1',
6
- START_REQUEST_V1: 'automations.start-request/v1',
7
- EXECUTION_WORK_ITEM_V1: 'automations.execution.work-item/v1',
8
- };
9
- var AutomationEntryPointExclusionCode;
10
- (function (AutomationEntryPointExclusionCode) {
11
- AutomationEntryPointExclusionCode["ENTRY_POINT_DISABLED"] = "entryPointDisabled";
12
- AutomationEntryPointExclusionCode["SOURCE_APPLICATION_MISMATCH"] = "sourceApplicationMismatch";
13
- AutomationEntryPointExclusionCode["EVENT_TYPE_MISMATCH"] = "eventTypeMismatch";
14
- AutomationEntryPointExclusionCode["FILTERS_NOT_MATCHED"] = "filtersNotMatched";
15
- AutomationEntryPointExclusionCode["FLOW_NOT_ACTIVE"] = "flowNotActive";
16
- AutomationEntryPointExclusionCode["VERSION_NOT_PUBLISHED"] = "versionNotPublished";
17
- AutomationEntryPointExclusionCode["LOWER_PRIORITY"] = "lowerPriority";
18
- AutomationEntryPointExclusionCode["EXECUTION_MODE_RESTRICTED"] = "executionModeRestricted";
19
- })(AutomationEntryPointExclusionCode || (exports.AutomationEntryPointExclusionCode = AutomationEntryPointExclusionCode = {}));
@@ -1,5 +1,4 @@
1
- import { AutomationCustomer, AutomationError, AutomationJsonObject, AutomationPageRequest, AutomationResourceReference, AutomationSourceApplication } from '../Common';
2
- import { AutomationCapabilityEffectClass } from '../Capabilities';
1
+ import { AutomationError, AutomationJsonObject, AutomationPageRequest, AutomationSourceApplication } from '../Common';
3
2
  export declare enum AutomationExecutionStatus {
4
3
  QUEUED = "queued",
5
4
  RUNNING = "running",
@@ -18,148 +17,15 @@ export declare enum AutomationExecutionStepStatus {
18
17
  SKIPPED = "skipped",
19
18
  CANCELLED = "cancelled"
20
19
  }
21
- export declare enum AutomationExecutionPurpose {
22
- PRODUCTION = "production",
23
- TEST = "test"
24
- }
25
- export declare enum AutomationExecutionEffectMode {
26
- SIMULATE = "simulate",
27
- TEST_TARGETS = "testTargets",
28
- REAL = "real"
29
- }
30
- export declare enum AutomationExecutionScopeKind {
31
- FULL = "full",
32
- UNTIL_NODE = "untilNode",
33
- FROM_NODE = "fromNode",
34
- NODE_ONLY = "nodeOnly"
35
- }
36
- export declare enum AutomationExecutionSourceKind {
37
- MANUAL = "manual",
38
- FIXTURE = "fixture",
39
- CAPTURED_EVENT = "capturedEvent",
40
- EXECUTION = "execution",
41
- STEP_OUTPUT = "stepOutput"
42
- }
43
- export declare enum AutomationExecutionLineageOperation {
44
- NEW = "new",
45
- REPLAY = "replay",
46
- RETRY = "retry"
47
- }
48
- export declare enum AutomationExecutionEffectDecision {
49
- EXECUTED = "executed",
50
- SIMULATED = "simulated",
51
- REDIRECTED = "redirected",
52
- BLOCKED = "blocked"
53
- }
54
- export declare enum AutomationExecutionCheckpointStatus {
55
- WAITING = "waiting",
56
- RESUMING = "resuming",
57
- RESUMED = "resumed",
58
- CANCELLED = "cancelled",
59
- EXPIRED = "expired"
60
- }
61
- export declare enum AutomationExecutionResumeKind {
62
- AT_TIME = "atTime",
63
- EVENT = "event",
64
- MANUAL = "manual"
65
- }
66
- export interface AutomationExecutionResumeCondition {
67
- kind: AutomationExecutionResumeKind;
68
- resumeAt?: string | null;
69
- eventType?: string | null;
70
- correlationKey?: string | null;
71
- timeoutAt?: string | null;
72
- }
73
- /** Durable cursor used to continue without replaying completed effects. */
74
- export interface AutomationExecutionCursor {
75
- nextNodeId?: string | null;
76
- sequence: number;
77
- input: AutomationJsonObject;
78
- context: AutomationExecutionContext;
79
- nodeOutputs: Record<string, AutomationJsonObject>;
80
- state: AutomationJsonObject;
81
- }
82
- export interface AutomationExecutionCheckpoint {
83
- id: string;
84
- executionId: string;
85
- nodeId: string;
86
- stepId: string;
87
- status: AutomationExecutionCheckpointStatus;
88
- resume: AutomationExecutionResumeCondition;
89
- cursor: AutomationExecutionCursor;
90
- createdAt: string;
91
- updatedAt: string;
92
- resumedAt?: string | null;
93
- expiresAt?: string | null;
94
- }
95
- export interface ResumeAutomationExecutionRequest {
96
- payload: AutomationJsonObject;
97
- }
98
- export interface AutomationExecutionScope {
99
- kind: AutomationExecutionScopeKind;
100
- startNodeId?: string | null;
101
- stopNodeId?: string | null;
102
- }
103
- /** Referencia inmutable a la definición exacta utilizada por una ejecución. */
104
- export interface AutomationFlowSnapshotReference {
105
- flowId: string;
106
- flowVersionId?: string | null;
107
- snapshotId?: string | null;
108
- revision: number;
109
- contentHash: string;
110
- }
111
- export interface AutomationExecutionSource {
112
- kind: AutomationExecutionSourceKind;
113
- fixtureId?: string | null;
114
- capturedEventId?: string | null;
115
- executionId?: string | null;
116
- stepId?: string | null;
117
- }
118
- export interface AutomationExecutionLineage {
119
- operation: AutomationExecutionLineageOperation;
120
- sourceExecutionId?: string | null;
121
- sourceStepId?: string | null;
122
- rootExecutionId?: string | null;
123
- }
124
- /** Resumen seguro; la política interna completa nunca se expone al caller. */
125
- export interface AutomationExecutionPolicySummary {
126
- maxDurationMs?: number | null;
127
- maxSteps?: number | null;
128
- maxIterations?: number | null;
129
- maxItems?: number | null;
130
- maxCost?: number | null;
131
- currency?: string | null;
132
- simulatedClockAt?: string | null;
133
- requiresConfirmation: boolean;
134
- }
135
- export interface AutomationExecutionEffectRecord {
136
- id: string;
137
- nodeId: string;
138
- effectClass: AutomationCapabilityEffectClass;
139
- action: string;
140
- decision: AutomationExecutionEffectDecision;
141
- originalTarget?: AutomationResourceReference | null;
142
- effectiveTarget?: AutomationResourceReference | null;
143
- preview?: AutomationJsonObject | null;
144
- providerReference?: string | null;
145
- idempotencyKey?: string | null;
146
- warnings?: string[] | null;
147
- }
148
20
  /**
149
21
  * Referencia genérica al evento que inició una ejecución.
150
22
  */
151
23
  export interface AutomationExecutionTrigger {
152
- /** Entry Point que aceptó el evento. */
153
24
  entryPointId: string;
154
- /** Aplicación propietaria del evento. */
155
25
  sourceApplication: AutomationSourceApplication;
156
- /** Código estable del tipo de evento. */
157
26
  eventType: string;
158
- /** Entidad principal relacionada con el evento. */
159
- reference?: AutomationResourceReference | null;
160
- /** Instante informado por el productor. */
27
+ referenceId?: string | null;
161
28
  occurredAt?: string | null;
162
- /** Snapshot opcional del payload disparador. */
163
29
  payload?: AutomationJsonObject | null;
164
30
  }
165
31
  /** Identidad completa que debe persistir una ejecución transversal. */
@@ -169,27 +35,6 @@ export interface AutomationFlowExecutionReference {
169
35
  entryPointId: string;
170
36
  executionId: string;
171
37
  }
172
- /** Contexto que un caller puede aportar al iniciar una ejecución. */
173
- export interface AutomationExecutionContextInput {
174
- /** Valores iniciales de variables declaradas por la versión del Flow. */
175
- variables: AutomationJsonObject;
176
- /** Extensiones agrupadas por módulo propietario. */
177
- extensions: AutomationJsonObject;
178
- }
179
- /** Datos confiables establecidos exclusivamente por Automations. */
180
- export interface AutomationExecutionSystemContext {
181
- /** Locale BCP 47, por ejemplo es-AR. */
182
- locale?: string | null;
183
- /** Zona horaria IANA utilizada por fechas y agendas. */
184
- timeZone?: string | null;
185
- /** Usuario, servicio o recurso que originó la ejecución. */
186
- actor?: AutomationResourceReference | null;
187
- }
188
- /** Contexto persistido y utilizado durante una ejecución. */
189
- export interface AutomationExecutionContext extends AutomationExecutionContextInput {
190
- /** Datos confiables agregados por el runtime. */
191
- system: AutomationExecutionSystemContext;
192
- }
193
38
  export interface AutomationExecution {
194
39
  id: string;
195
40
  spaceId: string;
@@ -198,11 +43,9 @@ export interface AutomationExecution {
198
43
  flowVersion: number;
199
44
  entryPointId: string;
200
45
  status: AutomationExecutionStatus;
201
- customer?: AutomationCustomer | null;
202
46
  trigger: AutomationExecutionTrigger;
203
47
  input: AutomationJsonObject;
204
- /** Scope tipado y extensible utilizado durante la ejecución. */
205
- context: AutomationExecutionContext;
48
+ context: AutomationJsonObject;
206
49
  output?: AutomationJsonObject | null;
207
50
  error?: AutomationError | null;
208
51
  createdAt: string;
@@ -213,18 +56,6 @@ export interface AutomationExecution {
213
56
  correlationId?: string | null;
214
57
  parentExecutionId?: string | null;
215
58
  usage: AutomationExecutionUsage;
216
- /** Ausente únicamente en ejecuciones creadas con contratos anteriores. */
217
- purpose?: AutomationExecutionPurpose | null;
218
- requestedEffectMode?: AutomationExecutionEffectMode | null;
219
- effectiveEffectMode?: AutomationExecutionEffectMode | null;
220
- scope?: AutomationExecutionScope | null;
221
- source?: AutomationExecutionSource | null;
222
- snapshot?: AutomationFlowSnapshotReference | null;
223
- lineage?: AutomationExecutionLineage | null;
224
- startedBy?: AutomationResourceReference | null;
225
- policySummary?: AutomationExecutionPolicySummary | null;
226
- testCaseId?: string | null;
227
- testCaseRevision?: number | null;
228
59
  }
229
60
  export interface AutomationExecutionStep {
230
61
  id: string;
@@ -241,13 +72,6 @@ export interface AutomationExecutionStep {
241
72
  startedAt?: string | null;
242
73
  completedAt?: string | null;
243
74
  usage: AutomationExecutionUsage;
244
- waitingReason?: string | null;
245
- skippedReason?: string | null;
246
- itemIndex?: number | null;
247
- iteration?: number | null;
248
- parentStepId?: string | null;
249
- takenEdgeIds?: string[] | null;
250
- effects?: AutomationExecutionEffectRecord[] | null;
251
75
  }
252
76
  export interface AutomationExecutionUsage {
253
77
  inputTokens: number;
@@ -261,26 +85,18 @@ export interface AutomationExecutionQuery extends AutomationPageRequest {
261
85
  flowId?: string | null;
262
86
  flowVersionId?: string | null;
263
87
  entryPointId?: string | null;
264
- contactId?: string | null;
265
- businessId?: string | null;
266
- customerSearch?: string | null;
267
88
  statuses?: AutomationExecutionStatus[] | null;
268
89
  createdFrom?: string | null;
269
90
  createdTo?: string | null;
270
91
  correlationId?: string | null;
271
- purposes?: AutomationExecutionPurpose[] | null;
272
- effectModes?: AutomationExecutionEffectMode[] | null;
273
- testCaseId?: string | null;
274
92
  }
275
93
  export interface StartAutomationExecutionRequest {
276
94
  flowId: string;
277
95
  flowVersionId: string;
278
96
  entryPointId: string;
279
- customer?: AutomationCustomer | null;
280
97
  trigger: AutomationExecutionTrigger;
281
98
  input: AutomationJsonObject;
282
- /** Variables iniciales y extensiones aportadas por el caller. */
283
- context: AutomationExecutionContextInput;
99
+ context: AutomationJsonObject;
284
100
  idempotencyKey?: string | null;
285
101
  correlationId?: string | null;
286
102
  parentExecutionId?: string | null;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationExecutionResumeKind = exports.AutomationExecutionCheckpointStatus = exports.AutomationExecutionEffectDecision = exports.AutomationExecutionLineageOperation = exports.AutomationExecutionSourceKind = exports.AutomationExecutionScopeKind = exports.AutomationExecutionEffectMode = exports.AutomationExecutionPurpose = exports.AutomationExecutionStepStatus = exports.AutomationExecutionStatus = void 0;
3
+ exports.AutomationExecutionStepStatus = exports.AutomationExecutionStatus = void 0;
4
4
  var AutomationExecutionStatus;
5
5
  (function (AutomationExecutionStatus) {
6
6
  AutomationExecutionStatus["QUEUED"] = "queued";
@@ -21,56 +21,3 @@ var AutomationExecutionStepStatus;
21
21
  AutomationExecutionStepStatus["SKIPPED"] = "skipped";
22
22
  AutomationExecutionStepStatus["CANCELLED"] = "cancelled";
23
23
  })(AutomationExecutionStepStatus || (exports.AutomationExecutionStepStatus = AutomationExecutionStepStatus = {}));
24
- var AutomationExecutionPurpose;
25
- (function (AutomationExecutionPurpose) {
26
- AutomationExecutionPurpose["PRODUCTION"] = "production";
27
- AutomationExecutionPurpose["TEST"] = "test";
28
- })(AutomationExecutionPurpose || (exports.AutomationExecutionPurpose = AutomationExecutionPurpose = {}));
29
- var AutomationExecutionEffectMode;
30
- (function (AutomationExecutionEffectMode) {
31
- AutomationExecutionEffectMode["SIMULATE"] = "simulate";
32
- AutomationExecutionEffectMode["TEST_TARGETS"] = "testTargets";
33
- AutomationExecutionEffectMode["REAL"] = "real";
34
- })(AutomationExecutionEffectMode || (exports.AutomationExecutionEffectMode = AutomationExecutionEffectMode = {}));
35
- var AutomationExecutionScopeKind;
36
- (function (AutomationExecutionScopeKind) {
37
- AutomationExecutionScopeKind["FULL"] = "full";
38
- AutomationExecutionScopeKind["UNTIL_NODE"] = "untilNode";
39
- AutomationExecutionScopeKind["FROM_NODE"] = "fromNode";
40
- AutomationExecutionScopeKind["NODE_ONLY"] = "nodeOnly";
41
- })(AutomationExecutionScopeKind || (exports.AutomationExecutionScopeKind = AutomationExecutionScopeKind = {}));
42
- var AutomationExecutionSourceKind;
43
- (function (AutomationExecutionSourceKind) {
44
- AutomationExecutionSourceKind["MANUAL"] = "manual";
45
- AutomationExecutionSourceKind["FIXTURE"] = "fixture";
46
- AutomationExecutionSourceKind["CAPTURED_EVENT"] = "capturedEvent";
47
- AutomationExecutionSourceKind["EXECUTION"] = "execution";
48
- AutomationExecutionSourceKind["STEP_OUTPUT"] = "stepOutput";
49
- })(AutomationExecutionSourceKind || (exports.AutomationExecutionSourceKind = AutomationExecutionSourceKind = {}));
50
- var AutomationExecutionLineageOperation;
51
- (function (AutomationExecutionLineageOperation) {
52
- AutomationExecutionLineageOperation["NEW"] = "new";
53
- AutomationExecutionLineageOperation["REPLAY"] = "replay";
54
- AutomationExecutionLineageOperation["RETRY"] = "retry";
55
- })(AutomationExecutionLineageOperation || (exports.AutomationExecutionLineageOperation = AutomationExecutionLineageOperation = {}));
56
- var AutomationExecutionEffectDecision;
57
- (function (AutomationExecutionEffectDecision) {
58
- AutomationExecutionEffectDecision["EXECUTED"] = "executed";
59
- AutomationExecutionEffectDecision["SIMULATED"] = "simulated";
60
- AutomationExecutionEffectDecision["REDIRECTED"] = "redirected";
61
- AutomationExecutionEffectDecision["BLOCKED"] = "blocked";
62
- })(AutomationExecutionEffectDecision || (exports.AutomationExecutionEffectDecision = AutomationExecutionEffectDecision = {}));
63
- var AutomationExecutionCheckpointStatus;
64
- (function (AutomationExecutionCheckpointStatus) {
65
- AutomationExecutionCheckpointStatus["WAITING"] = "waiting";
66
- AutomationExecutionCheckpointStatus["RESUMING"] = "resuming";
67
- AutomationExecutionCheckpointStatus["RESUMED"] = "resumed";
68
- AutomationExecutionCheckpointStatus["CANCELLED"] = "cancelled";
69
- AutomationExecutionCheckpointStatus["EXPIRED"] = "expired";
70
- })(AutomationExecutionCheckpointStatus || (exports.AutomationExecutionCheckpointStatus = AutomationExecutionCheckpointStatus = {}));
71
- var AutomationExecutionResumeKind;
72
- (function (AutomationExecutionResumeKind) {
73
- AutomationExecutionResumeKind["AT_TIME"] = "atTime";
74
- AutomationExecutionResumeKind["EVENT"] = "event";
75
- AutomationExecutionResumeKind["MANUAL"] = "manual";
76
- })(AutomationExecutionResumeKind || (exports.AutomationExecutionResumeKind = AutomationExecutionResumeKind = {}));
@@ -1,2 +1 @@
1
1
  export * from './Execution';
2
- export * from './Testing';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Execution"), exports);
18
- __exportStar(require("./Testing"), exports);
@@ -1,5 +1,4 @@
1
- import { AutomationJsonObject, AutomationJsonSchema, AutomationJsonValue } from '../Common';
2
- import type { AutomationNodeVisibilityRule } from '../Nodes';
1
+ import { AutomationJsonObject, AutomationJsonValue } from '../Common';
3
2
  export declare enum AutomationFlowVariableType {
4
3
  STRING = "string",
5
4
  NUMBER = "number",
@@ -27,18 +26,13 @@ export declare enum AutomationNodeHandlePosition {
27
26
  TOP = "top",
28
27
  BOTTOM = "bottom"
29
28
  }
30
- export declare enum AutomationFlowEdgeRole {
31
- CONTROL = "control",
32
- AUXILIARY = "auxiliary"
33
- }
34
29
  export interface AutomationFlowVariable {
35
30
  name: string;
36
31
  description?: string | null;
37
32
  type: AutomationFlowVariableType;
38
33
  isInput: boolean;
39
34
  isOutput: boolean;
40
- /** JSON Schema que restringe el valor permitido para la variable. */
41
- schema?: AutomationJsonSchema | null;
35
+ schema?: AutomationJsonObject | null;
42
36
  defaultValue?: AutomationJsonValue;
43
37
  }
44
38
  export interface AutomationFlowViewport {
@@ -50,21 +44,6 @@ export interface AutomationNodePosition {
50
44
  x: number;
51
45
  y: number;
52
46
  }
53
- export declare enum AutomationCanvasAnnotationType {
54
- NOTE = "note"
55
- }
56
- /** Elemento puramente visual del canvas; no participa de la ejecución. */
57
- export interface AutomationCanvasAnnotation {
58
- id: string;
59
- type: AutomationCanvasAnnotationType;
60
- title?: string | null;
61
- text: string;
62
- position: AutomationNodePosition;
63
- width: number;
64
- height: number;
65
- color: string;
66
- metadata?: AutomationJsonObject | null;
67
- }
68
47
  export interface AutomationFlowNode {
69
48
  id: string;
70
49
  /** Clave del renderer visual; no representa una regla de negocio. */
@@ -91,8 +70,6 @@ export interface AutomationFlowEdge {
91
70
  data: AutomationFlowEdgeData;
92
71
  }
93
72
  export interface AutomationFlowEdgeData {
94
- /** Control advances execution; auxiliary attaches a node dependency. */
95
- role?: AutomationFlowEdgeRole;
96
73
  label?: string | null;
97
74
  metadata?: AutomationJsonObject | null;
98
75
  }
@@ -104,6 +81,6 @@ export interface AutomationNodeHandle {
104
81
  multiple: boolean;
105
82
  showName: boolean;
106
83
  tags: string[];
107
- showWhen?: AutomationNodeVisibilityRule | null;
108
- hideWhen?: AutomationNodeVisibilityRule | null;
84
+ showWhen?: AutomationJsonObject | null;
85
+ hideWhen?: AutomationJsonObject | null;
109
86
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationCanvasAnnotationType = exports.AutomationFlowEdgeRole = exports.AutomationNodeHandlePosition = exports.AutomationNodeHandleType = exports.AutomationNodeKind = exports.AutomationFlowVariableType = void 0;
3
+ exports.AutomationNodeHandlePosition = exports.AutomationNodeHandleType = exports.AutomationNodeKind = exports.AutomationFlowVariableType = void 0;
4
4
  var AutomationFlowVariableType;
5
5
  (function (AutomationFlowVariableType) {
6
6
  AutomationFlowVariableType["STRING"] = "string";
@@ -32,12 +32,3 @@ var AutomationNodeHandlePosition;
32
32
  AutomationNodeHandlePosition["TOP"] = "top";
33
33
  AutomationNodeHandlePosition["BOTTOM"] = "bottom";
34
34
  })(AutomationNodeHandlePosition || (exports.AutomationNodeHandlePosition = AutomationNodeHandlePosition = {}));
35
- var AutomationFlowEdgeRole;
36
- (function (AutomationFlowEdgeRole) {
37
- AutomationFlowEdgeRole["CONTROL"] = "control";
38
- AutomationFlowEdgeRole["AUXILIARY"] = "auxiliary";
39
- })(AutomationFlowEdgeRole || (exports.AutomationFlowEdgeRole = AutomationFlowEdgeRole = {}));
40
- var AutomationCanvasAnnotationType;
41
- (function (AutomationCanvasAnnotationType) {
42
- AutomationCanvasAnnotationType["NOTE"] = "note";
43
- })(AutomationCanvasAnnotationType || (exports.AutomationCanvasAnnotationType = AutomationCanvasAnnotationType = {}));