@trii/types 2.10.752 → 2.10.753

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 (110) hide show
  1. package/dist/AI/MapPolygon.d.ts +22 -0
  2. package/dist/AI/MapPolygon.js +2 -0
  3. package/dist/Common/index.js +17 -7
  4. package/dist/Contacts/contacts.d.ts +6 -0
  5. package/dist/Conversations/Classifications/ClassificationTaxonomy.d.ts +13 -0
  6. package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +2 -0
  7. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  8. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  9. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
  10. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
  11. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
  12. package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
  13. package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
  14. package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
  15. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
  16. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
  17. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
  18. package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
  19. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
  20. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
  21. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
  22. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
  23. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
  24. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
  25. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
  26. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
  27. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
  28. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
  29. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
  30. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
  31. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
  32. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
  33. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
  34. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
  35. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
  36. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
  37. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
  38. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
  39. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
  40. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
  41. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
  42. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
  43. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
  44. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
  45. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
  46. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
  47. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
  48. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
  49. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
  50. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
  51. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
  52. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
  53. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
  54. package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
  55. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
  56. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
  57. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
  58. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
  59. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
  60. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
  61. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
  62. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
  63. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
  64. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
  65. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
  66. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
  67. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
  68. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
  69. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
  70. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
  71. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
  72. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
  73. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
  74. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
  75. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
  76. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
  77. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
  78. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
  79. package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
  80. package/dist/Conversations/Flows/Nodes/index.js +40 -0
  81. package/dist/Conversations/InboxCounters.d.ts +18 -0
  82. package/dist/Conversations/InboxCounters.js +2 -0
  83. package/dist/Conversations/index.js +17 -7
  84. package/dist/Presence/ChannelRoutingState.d.ts +17 -0
  85. package/dist/Presence/ChannelRoutingState.js +9 -0
  86. package/dist/Tickets/AccessLevel.d.ts +5 -0
  87. package/dist/Tickets/AccessLevel.js +9 -0
  88. package/dist/index.js +17 -7
  89. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -33
  90. package/dist/src/Automations/Capabilities/Capability.js +1 -15
  91. package/dist/src/Automations/Common.d.ts +0 -47
  92. package/dist/src/Automations/Common.js +0 -22
  93. package/dist/src/Automations/Events/Event.d.ts +3 -31
  94. package/dist/src/Automations/Events/Event.js +0 -12
  95. package/dist/src/Automations/Executions/Execution.d.ts +4 -144
  96. package/dist/src/Automations/Executions/Execution.js +1 -40
  97. package/dist/src/Automations/Executions/index.d.ts +0 -1
  98. package/dist/src/Automations/Executions/index.js +0 -1
  99. package/dist/src/Automations/Flows/Canvas.d.ts +4 -21
  100. package/dist/src/Automations/Flows/Canvas.js +1 -5
  101. package/dist/src/Automations/Flows/Flow.d.ts +3 -48
  102. package/dist/src/Automations/Flows/Flow.js +1 -25
  103. package/dist/src/Automations/Nodes/Node.d.ts +3 -41
  104. package/dist/src/Automations/Nodes/Node.js +1 -10
  105. package/dist/src/Common/Channels/Channel.d.ts +4 -6
  106. package/dist/src/Conversations/Conversation.d.ts +0 -90
  107. package/dist/src/Tickets/Dashboard.d.ts +0 -1
  108. package/package.json +2 -5
  109. package/dist/src/Automations/Executions/Testing.d.ts +0 -166
  110. package/dist/src/Automations/Executions/Testing.js +0 -54
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TicketAccessLevel = void 0;
4
+ var TicketAccessLevel;
5
+ (function (TicketAccessLevel) {
6
+ TicketAccessLevel["ALL"] = "ALL";
7
+ TicketAccessLevel["GROUP"] = "GROUP";
8
+ TicketAccessLevel["AGENT"] = "AGENT";
9
+ })(TicketAccessLevel || (exports.TicketAccessLevel = TicketAccessLevel = {}));
package/dist/index.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.Automations = exports.Forms = exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.Events = exports.EventsQueue = exports.ApiResponses = exports.Presence = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
27
37
  exports.Accounts = __importStar(require("./Accounts/index"));
@@ -4,37 +4,6 @@ export declare enum AutomationCapabilityKind {
4
4
  ACTION = "action",
5
5
  CONDITION = "condition"
6
6
  }
7
- export declare enum AutomationCapabilityEffectClass {
8
- NONE = "none",
9
- READ = "read",
10
- WRITE = "write",
11
- COMMUNICATION = "communication",
12
- BULK = "bulk"
13
- }
14
- export declare enum AutomationCapabilityIdempotency {
15
- NONE = "none",
16
- SUPPORTED = "supported",
17
- REQUIRED = "required"
18
- }
19
- /** Capacidades operativas que el runtime puede aplicar de forma confiable. */
20
- export interface AutomationCapabilityExecutionSupport {
21
- effectClass: AutomationCapabilityEffectClass;
22
- supportsSimulation: boolean;
23
- supportsTestTargets: boolean;
24
- supportsUntilNode: boolean;
25
- supportsFromNode: boolean;
26
- supportsNodeOnly: boolean;
27
- supportsCancellation: boolean;
28
- idempotency: AutomationCapabilityIdempotency;
29
- defaultTimeoutMs?: number | null;
30
- maxAttempts?: number | null;
31
- maxTestItems?: number | null;
32
- inputSchema?: AutomationJsonSchema | null;
33
- outputSchema?: AutomationJsonSchema | null;
34
- simulationOutputSchema?: AutomationJsonSchema | null;
35
- sensitivePaths?: string[] | null;
36
- requiredPermissions?: string[] | null;
37
- }
38
7
  /**
39
8
  * Capacidad publicada por una aplicación de negocio para que Automation pueda
40
9
  * descubrirla y representarla sin incorporar reglas de ese dominio.
@@ -50,8 +19,6 @@ export interface AutomationCapability {
50
19
  requiredPermissions: string[];
51
20
  enabled: boolean;
52
21
  version: number;
53
- /** Metadata opcional para definitions anteriores a la política de ejecución. */
54
- executionSupport?: AutomationCapabilityExecutionSupport | null;
55
22
  }
56
23
  export interface AutomationCapabilityQuery {
57
24
  sourceApplications?: AutomationSourceApplication[];
@@ -1,23 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationCapabilityIdempotency = exports.AutomationCapabilityEffectClass = exports.AutomationCapabilityKind = void 0;
3
+ exports.AutomationCapabilityKind = void 0;
4
4
  var AutomationCapabilityKind;
5
5
  (function (AutomationCapabilityKind) {
6
6
  AutomationCapabilityKind["TRIGGER"] = "trigger";
7
7
  AutomationCapabilityKind["ACTION"] = "action";
8
8
  AutomationCapabilityKind["CONDITION"] = "condition";
9
9
  })(AutomationCapabilityKind || (exports.AutomationCapabilityKind = AutomationCapabilityKind = {}));
10
- var AutomationCapabilityEffectClass;
11
- (function (AutomationCapabilityEffectClass) {
12
- AutomationCapabilityEffectClass["NONE"] = "none";
13
- AutomationCapabilityEffectClass["READ"] = "read";
14
- AutomationCapabilityEffectClass["WRITE"] = "write";
15
- AutomationCapabilityEffectClass["COMMUNICATION"] = "communication";
16
- AutomationCapabilityEffectClass["BULK"] = "bulk";
17
- })(AutomationCapabilityEffectClass || (exports.AutomationCapabilityEffectClass = AutomationCapabilityEffectClass = {}));
18
- var AutomationCapabilityIdempotency;
19
- (function (AutomationCapabilityIdempotency) {
20
- AutomationCapabilityIdempotency["NONE"] = "none";
21
- AutomationCapabilityIdempotency["SUPPORTED"] = "supported";
22
- AutomationCapabilityIdempotency["REQUIRED"] = "required";
23
- })(AutomationCapabilityIdempotency || (exports.AutomationCapabilityIdempotency = AutomationCapabilityIdempotency = {}));
@@ -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,4 +1,4 @@
1
- import { AutomationCustomer, AutomationJsonObject, AutomationJsonSchema, AutomationResourceReference, AutomationSourceApplication } from '../Common';
1
+ import { AutomationJsonObject, AutomationJsonSchema, AutomationSourceApplication } from '../Common';
2
2
  export interface AutomationEventDefinition {
3
3
  eventType: string;
4
4
  version: number;
@@ -6,7 +6,6 @@ export interface AutomationEventDefinition {
6
6
  name: string;
7
7
  description?: string | null;
8
8
  payloadSchema: AutomationJsonSchema;
9
- /** Schema de la vista del envelope cuyos paths pueden utilizarse en filtros. */
10
9
  filterSchema?: AutomationJsonSchema | null;
11
10
  requiredPermissions: string[];
12
11
  enabled: boolean;
@@ -19,50 +18,23 @@ export interface AutomationEventEnvelope {
19
18
  eventVersion: number;
20
19
  occurredAt: string;
21
20
  receivedAt: string;
22
- customer?: AutomationCustomer | null;
23
- /** Entidad principal sobre la que ocurrió el evento. */
24
- subject?: AutomationResourceReference | null;
21
+ subjectId?: string | null;
25
22
  correlationId?: string | null;
26
23
  causationId?: string | null;
27
24
  idempotencyKey?: string | null;
28
25
  payload: AutomationJsonObject;
29
26
  metadata?: AutomationJsonObject | null;
30
27
  }
31
- export declare enum AutomationEntryPointExclusionCode {
32
- ENTRY_POINT_DISABLED = "entryPointDisabled",
33
- SOURCE_APPLICATION_MISMATCH = "sourceApplicationMismatch",
34
- EVENT_TYPE_MISMATCH = "eventTypeMismatch",
35
- FILTERS_NOT_MATCHED = "filtersNotMatched",
36
- FLOW_NOT_ACTIVE = "flowNotActive",
37
- VERSION_NOT_PUBLISHED = "versionNotPublished",
38
- LOWER_PRIORITY = "lowerPriority",
39
- EXECUTION_MODE_RESTRICTED = "executionModeRestricted"
40
- }
41
- /** Motivo estructurado por el que un Entry Point no fue seleccionado. */
42
- export interface AutomationEntryPointExclusion {
43
- /** Código estable para lógica, métricas y observabilidad. */
44
- code: AutomationEntryPointExclusionCode;
45
- /** Explicación humana opcional; no debe utilizarse para lógica. */
46
- message?: string | null;
47
- /** Datos diagnósticos específicos del código. */
48
- details?: AutomationJsonObject | null;
49
- }
50
28
  export interface ResolveFlowEntryPointsRequest {
51
29
  event: AutomationEventEnvelope;
52
30
  }
53
31
  export interface ResolvedFlowEntryPoint {
54
- /** Definición estable del Flow. */
55
32
  flowId: string;
56
- /** Versión publicada candidata a recibir el evento. */
57
33
  flowVersionId: string;
58
- /** Entry Point evaluado. */
59
34
  entryPointId: string;
60
- /** Prioridad utilizada para resolver candidatos. */
61
35
  priority: number;
62
- /** Indica si el candidato debe iniciar una ejecución. */
63
36
  selected: boolean;
64
- /** Motivo de exclusión; ausente cuando selected es true. */
65
- exclusion?: AutomationEntryPointExclusion | null;
37
+ exclusionReason?: string | null;
66
38
  }
67
39
  export interface ResolveFlowEntryPointsResult {
68
40
  matches: ResolvedFlowEntryPoint[];
@@ -1,14 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationEntryPointExclusionCode = void 0;
4
- var AutomationEntryPointExclusionCode;
5
- (function (AutomationEntryPointExclusionCode) {
6
- AutomationEntryPointExclusionCode["ENTRY_POINT_DISABLED"] = "entryPointDisabled";
7
- AutomationEntryPointExclusionCode["SOURCE_APPLICATION_MISMATCH"] = "sourceApplicationMismatch";
8
- AutomationEntryPointExclusionCode["EVENT_TYPE_MISMATCH"] = "eventTypeMismatch";
9
- AutomationEntryPointExclusionCode["FILTERS_NOT_MATCHED"] = "filtersNotMatched";
10
- AutomationEntryPointExclusionCode["FLOW_NOT_ACTIVE"] = "flowNotActive";
11
- AutomationEntryPointExclusionCode["VERSION_NOT_PUBLISHED"] = "versionNotPublished";
12
- AutomationEntryPointExclusionCode["LOWER_PRIORITY"] = "lowerPriority";
13
- AutomationEntryPointExclusionCode["EXECUTION_MODE_RESTRICTED"] = "executionModeRestricted";
14
- })(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,104 +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 interface AutomationExecutionScope {
55
- kind: AutomationExecutionScopeKind;
56
- startNodeId?: string | null;
57
- stopNodeId?: string | null;
58
- }
59
- /** Referencia inmutable a la definición exacta utilizada por una ejecución. */
60
- export interface AutomationFlowSnapshotReference {
61
- flowId: string;
62
- flowVersionId?: string | null;
63
- snapshotId?: string | null;
64
- revision: number;
65
- contentHash: string;
66
- }
67
- export interface AutomationExecutionSource {
68
- kind: AutomationExecutionSourceKind;
69
- fixtureId?: string | null;
70
- capturedEventId?: string | null;
71
- executionId?: string | null;
72
- stepId?: string | null;
73
- }
74
- export interface AutomationExecutionLineage {
75
- operation: AutomationExecutionLineageOperation;
76
- sourceExecutionId?: string | null;
77
- sourceStepId?: string | null;
78
- rootExecutionId?: string | null;
79
- }
80
- /** Resumen seguro; la política interna completa nunca se expone al caller. */
81
- export interface AutomationExecutionPolicySummary {
82
- maxDurationMs?: number | null;
83
- maxSteps?: number | null;
84
- maxIterations?: number | null;
85
- maxItems?: number | null;
86
- maxCost?: number | null;
87
- currency?: string | null;
88
- simulatedClockAt?: string | null;
89
- requiresConfirmation: boolean;
90
- }
91
- export interface AutomationExecutionEffectRecord {
92
- id: string;
93
- nodeId: string;
94
- effectClass: AutomationCapabilityEffectClass;
95
- action: string;
96
- decision: AutomationExecutionEffectDecision;
97
- originalTarget?: AutomationResourceReference | null;
98
- effectiveTarget?: AutomationResourceReference | null;
99
- preview?: AutomationJsonObject | null;
100
- providerReference?: string | null;
101
- idempotencyKey?: string | null;
102
- warnings?: string[] | null;
103
- }
104
20
  /**
105
21
  * Referencia genérica al evento que inició una ejecución.
106
22
  */
107
23
  export interface AutomationExecutionTrigger {
108
- /** Entry Point que aceptó el evento. */
109
24
  entryPointId: string;
110
- /** Aplicación propietaria del evento. */
111
25
  sourceApplication: AutomationSourceApplication;
112
- /** Código estable del tipo de evento. */
113
26
  eventType: string;
114
- /** Entidad principal relacionada con el evento. */
115
- reference?: AutomationResourceReference | null;
116
- /** Instante informado por el productor. */
27
+ referenceId?: string | null;
117
28
  occurredAt?: string | null;
118
- /** Snapshot opcional del payload disparador. */
119
29
  payload?: AutomationJsonObject | null;
120
30
  }
121
31
  /** Identidad completa que debe persistir una ejecución transversal. */
@@ -125,27 +35,6 @@ export interface AutomationFlowExecutionReference {
125
35
  entryPointId: string;
126
36
  executionId: string;
127
37
  }
128
- /** Contexto que un caller puede aportar al iniciar una ejecución. */
129
- export interface AutomationExecutionContextInput {
130
- /** Valores iniciales de variables declaradas por la versión del Flow. */
131
- variables: AutomationJsonObject;
132
- /** Extensiones agrupadas por módulo propietario. */
133
- extensions: AutomationJsonObject;
134
- }
135
- /** Datos confiables establecidos exclusivamente por Automations. */
136
- export interface AutomationExecutionSystemContext {
137
- /** Locale BCP 47, por ejemplo es-AR. */
138
- locale?: string | null;
139
- /** Zona horaria IANA utilizada por fechas y agendas. */
140
- timeZone?: string | null;
141
- /** Usuario, servicio o recurso que originó la ejecución. */
142
- actor?: AutomationResourceReference | null;
143
- }
144
- /** Contexto persistido y utilizado durante una ejecución. */
145
- export interface AutomationExecutionContext extends AutomationExecutionContextInput {
146
- /** Datos confiables agregados por el runtime. */
147
- system: AutomationExecutionSystemContext;
148
- }
149
38
  export interface AutomationExecution {
150
39
  id: string;
151
40
  spaceId: string;
@@ -154,11 +43,9 @@ export interface AutomationExecution {
154
43
  flowVersion: number;
155
44
  entryPointId: string;
156
45
  status: AutomationExecutionStatus;
157
- customer?: AutomationCustomer | null;
158
46
  trigger: AutomationExecutionTrigger;
159
47
  input: AutomationJsonObject;
160
- /** Scope tipado y extensible utilizado durante la ejecución. */
161
- context: AutomationExecutionContext;
48
+ context: AutomationJsonObject;
162
49
  output?: AutomationJsonObject | null;
163
50
  error?: AutomationError | null;
164
51
  createdAt: string;
@@ -169,18 +56,6 @@ export interface AutomationExecution {
169
56
  correlationId?: string | null;
170
57
  parentExecutionId?: string | null;
171
58
  usage: AutomationExecutionUsage;
172
- /** Ausente únicamente en ejecuciones creadas con contratos anteriores. */
173
- purpose?: AutomationExecutionPurpose | null;
174
- requestedEffectMode?: AutomationExecutionEffectMode | null;
175
- effectiveEffectMode?: AutomationExecutionEffectMode | null;
176
- scope?: AutomationExecutionScope | null;
177
- source?: AutomationExecutionSource | null;
178
- snapshot?: AutomationFlowSnapshotReference | null;
179
- lineage?: AutomationExecutionLineage | null;
180
- startedBy?: AutomationResourceReference | null;
181
- policySummary?: AutomationExecutionPolicySummary | null;
182
- testCaseId?: string | null;
183
- testCaseRevision?: number | null;
184
59
  }
185
60
  export interface AutomationExecutionStep {
186
61
  id: string;
@@ -197,13 +72,6 @@ export interface AutomationExecutionStep {
197
72
  startedAt?: string | null;
198
73
  completedAt?: string | null;
199
74
  usage: AutomationExecutionUsage;
200
- waitingReason?: string | null;
201
- skippedReason?: string | null;
202
- itemIndex?: number | null;
203
- iteration?: number | null;
204
- parentStepId?: string | null;
205
- takenEdgeIds?: string[] | null;
206
- effects?: AutomationExecutionEffectRecord[] | null;
207
75
  }
208
76
  export interface AutomationExecutionUsage {
209
77
  inputTokens: number;
@@ -217,26 +85,18 @@ export interface AutomationExecutionQuery extends AutomationPageRequest {
217
85
  flowId?: string | null;
218
86
  flowVersionId?: string | null;
219
87
  entryPointId?: string | null;
220
- contactId?: string | null;
221
- businessId?: string | null;
222
- customerSearch?: string | null;
223
88
  statuses?: AutomationExecutionStatus[] | null;
224
89
  createdFrom?: string | null;
225
90
  createdTo?: string | null;
226
91
  correlationId?: string | null;
227
- purposes?: AutomationExecutionPurpose[] | null;
228
- effectModes?: AutomationExecutionEffectMode[] | null;
229
- testCaseId?: string | null;
230
92
  }
231
93
  export interface StartAutomationExecutionRequest {
232
94
  flowId: string;
233
95
  flowVersionId: string;
234
96
  entryPointId: string;
235
- customer?: AutomationCustomer | null;
236
97
  trigger: AutomationExecutionTrigger;
237
98
  input: AutomationJsonObject;
238
- /** Variables iniciales y extensiones aportadas por el caller. */
239
- context: AutomationExecutionContextInput;
99
+ context: AutomationJsonObject;
240
100
  idempotencyKey?: string | null;
241
101
  correlationId?: string | null;
242
102
  parentExecutionId?: string | null;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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,42 +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 = {}));
@@ -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",
@@ -33,8 +32,7 @@ export interface AutomationFlowVariable {
33
32
  type: AutomationFlowVariableType;
34
33
  isInput: boolean;
35
34
  isOutput: boolean;
36
- /** JSON Schema que restringe el valor permitido para la variable. */
37
- schema?: AutomationJsonSchema | null;
35
+ schema?: AutomationJsonObject | null;
38
36
  defaultValue?: AutomationJsonValue;
39
37
  }
40
38
  export interface AutomationFlowViewport {
@@ -46,21 +44,6 @@ export interface AutomationNodePosition {
46
44
  x: number;
47
45
  y: number;
48
46
  }
49
- export declare enum AutomationCanvasAnnotationType {
50
- NOTE = "note"
51
- }
52
- /** Elemento puramente visual del canvas; no participa de la ejecución. */
53
- export interface AutomationCanvasAnnotation {
54
- id: string;
55
- type: AutomationCanvasAnnotationType;
56
- title?: string | null;
57
- text: string;
58
- position: AutomationNodePosition;
59
- width: number;
60
- height: number;
61
- color: string;
62
- metadata?: AutomationJsonObject | null;
63
- }
64
47
  export interface AutomationFlowNode {
65
48
  id: string;
66
49
  /** Clave del renderer visual; no representa una regla de negocio. */
@@ -98,6 +81,6 @@ export interface AutomationNodeHandle {
98
81
  multiple: boolean;
99
82
  showName: boolean;
100
83
  tags: string[];
101
- showWhen?: AutomationNodeVisibilityRule | null;
102
- hideWhen?: AutomationNodeVisibilityRule | null;
84
+ showWhen?: AutomationJsonObject | null;
85
+ hideWhen?: AutomationJsonObject | null;
103
86
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationCanvasAnnotationType = 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,7 +32,3 @@ var AutomationNodeHandlePosition;
32
32
  AutomationNodeHandlePosition["TOP"] = "top";
33
33
  AutomationNodeHandlePosition["BOTTOM"] = "bottom";
34
34
  })(AutomationNodeHandlePosition || (exports.AutomationNodeHandlePosition = AutomationNodeHandlePosition = {}));
35
- var AutomationCanvasAnnotationType;
36
- (function (AutomationCanvasAnnotationType) {
37
- AutomationCanvasAnnotationType["NOTE"] = "note";
38
- })(AutomationCanvasAnnotationType || (exports.AutomationCanvasAnnotationType = AutomationCanvasAnnotationType = {}));