@trii/types 2.10.766 → 2.10.767

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 (113) hide show
  1. package/dist/AI/MapPolygon.d.ts +22 -0
  2. package/dist/Common/index.js +17 -7
  3. package/dist/Conversations/Assignment.d.ts +11 -3
  4. package/dist/Conversations/Conversation.d.ts +59 -9
  5. package/dist/Conversations/ConversationAutomationState.d.ts +28 -6
  6. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  7. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  8. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
  9. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
  10. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
  11. package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
  12. package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
  13. package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
  14. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
  15. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
  16. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
  17. package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
  18. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
  19. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
  20. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
  21. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
  22. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
  23. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
  24. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
  25. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
  26. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
  27. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
  28. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
  29. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
  30. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
  31. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
  32. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
  33. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
  34. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
  35. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
  36. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
  37. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
  38. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
  39. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
  40. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
  41. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
  42. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
  43. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
  44. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
  45. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
  46. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
  47. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
  48. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
  49. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
  50. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
  51. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
  52. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
  53. package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
  54. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
  55. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
  56. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
  57. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
  58. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
  59. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
  60. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
  61. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
  62. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
  63. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
  64. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
  65. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
  66. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
  67. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
  68. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
  69. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
  70. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
  71. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
  72. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
  73. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
  74. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
  75. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
  76. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
  77. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
  78. package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
  79. package/dist/Conversations/Flows/Nodes/index.js +40 -0
  80. package/dist/Conversations/InboxCounters.d.ts +18 -0
  81. package/dist/Conversations/InboxCounters.js +2 -0
  82. package/dist/Conversations/index.js +17 -7
  83. package/dist/Presence/ChannelRoutingState.d.ts +17 -0
  84. package/dist/Presence/ChannelRoutingState.js +9 -0
  85. package/dist/Tickets/AccessLevel.d.ts +5 -0
  86. package/dist/Tickets/AccessLevel.js +9 -0
  87. package/dist/index.js +17 -7
  88. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -33
  89. package/dist/src/Automations/Capabilities/Capability.js +1 -15
  90. package/dist/src/Automations/Common.d.ts +0 -47
  91. package/dist/src/Automations/Common.js +0 -22
  92. package/dist/src/Automations/Events/Event.d.ts +3 -31
  93. package/dist/src/Automations/Events/Event.js +0 -12
  94. package/dist/src/Automations/Executions/Execution.d.ts +4 -144
  95. package/dist/src/Automations/Executions/Execution.js +1 -40
  96. package/dist/src/Automations/Executions/index.d.ts +0 -1
  97. package/dist/src/Automations/Executions/index.js +0 -1
  98. package/dist/src/Automations/Flows/Canvas.d.ts +4 -21
  99. package/dist/src/Automations/Flows/Canvas.js +1 -5
  100. package/dist/src/Automations/Flows/Flow.d.ts +3 -48
  101. package/dist/src/Automations/Flows/Flow.js +1 -25
  102. package/dist/src/Automations/Nodes/Node.d.ts +3 -41
  103. package/dist/src/Automations/Nodes/Node.js +1 -10
  104. package/dist/src/Common/Channels/Channel.d.ts +4 -6
  105. package/dist/src/Conversations/Conversation.d.ts +0 -90
  106. package/dist/src/Tickets/Dashboard.d.ts +0 -1
  107. package/package.json +2 -5
  108. package/dist/Conversations/InboxMongo.d.ts +0 -154
  109. package/dist/Conversations/InboxMongo.js +0 -128
  110. package/dist/Conversations/InboxProjection.d.ts +0 -162
  111. package/dist/src/Automations/Executions/Testing.d.ts +0 -166
  112. package/dist/src/Automations/Executions/Testing.js +0 -54
  113. /package/dist/{Conversations/InboxProjection.js → AI/MapPolygon.js} +0 -0
@@ -1,128 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INBOX_PROCESSOR_RECEIPT_INDEXES = exports.USER_INBOX_COUNTER_INDEXES = exports.USER_INBOX_ITEM_INDEXES = exports.CONVERSATION_SUBSCRIPTION_INDEXES = exports.INBOX_PROCESSOR_RECEIPTS_COLLECTION = exports.USER_INBOX_COUNTERS_COLLECTION = exports.USER_INBOX_ITEMS_COLLECTION = exports.CONVERSATION_SUBSCRIPTIONS_COLLECTION = void 0;
4
- exports.CONVERSATION_SUBSCRIPTIONS_COLLECTION = 'conversation_subscriptions';
5
- exports.USER_INBOX_ITEMS_COLLECTION = 'user_inbox_items';
6
- exports.USER_INBOX_COUNTERS_COLLECTION = 'user_inbox_counters';
7
- exports.INBOX_PROCESSOR_RECEIPTS_COLLECTION = 'inbox_processor_receipts';
8
- /**
9
- * MongoDB indexes for conversation_subscriptions.
10
- *
11
- * The unique index enforces one current subscription state per
12
- * user/conversation. The follower index resolves the active followers that
13
- * InboxAudienceResolver receives as input.
14
- */
15
- exports.CONVERSATION_SUBSCRIPTION_INDEXES = [
16
- {
17
- name: 'uq_subscription_user_conversation',
18
- key: {
19
- spaceId: 1,
20
- userId: 1,
21
- conversationId: 1,
22
- },
23
- unique: true,
24
- },
25
- {
26
- name: 'ix_subscription_conversation_followers',
27
- key: {
28
- spaceId: 1,
29
- conversationId: 1,
30
- status: 1,
31
- userId: 1,
32
- },
33
- },
34
- ];
35
- /**
36
- * MongoDB indexes for user_inbox_items.
37
- *
38
- * views.viewId is the only array field in each compound index. Do not add
39
- * views.visibilityReasons to these indexes: MongoDB compound multikey indexes
40
- * must not combine multiple array paths.
41
- */
42
- exports.USER_INBOX_ITEM_INDEXES = [
43
- {
44
- name: 'uq_inbox_item_user_conversation',
45
- key: {
46
- spaceId: 1,
47
- userId: 1,
48
- conversationId: 1,
49
- },
50
- unique: true,
51
- },
52
- {
53
- name: 'ix_inbox_view_activity',
54
- key: {
55
- spaceId: 1,
56
- userId: 1,
57
- 'views.viewId': 1,
58
- pinned: -1,
59
- sortAt: -1,
60
- id: -1,
61
- },
62
- },
63
- {
64
- name: 'ix_inbox_view_priority',
65
- key: {
66
- spaceId: 1,
67
- userId: 1,
68
- 'views.viewId': 1,
69
- pinned: -1,
70
- priorityScore: -1,
71
- sortAt: -1,
72
- id: -1,
73
- },
74
- },
75
- {
76
- name: 'ix_inbox_view_status_activity',
77
- key: {
78
- spaceId: 1,
79
- userId: 1,
80
- 'views.viewId': 1,
81
- 'snapshot.status': 1,
82
- sortAt: -1,
83
- id: -1,
84
- },
85
- },
86
- {
87
- name: 'ix_inbox_view_queue_activity',
88
- key: {
89
- spaceId: 1,
90
- userId: 1,
91
- 'views.viewId': 1,
92
- 'snapshot.queueId': 1,
93
- sortAt: -1,
94
- id: -1,
95
- },
96
- },
97
- ];
98
- /**
99
- * MongoDB indexes for user_inbox_counters.
100
- *
101
- * The unique index also serves reads for all views of a user through its
102
- * spaceId + userId prefix.
103
- */
104
- exports.USER_INBOX_COUNTER_INDEXES = [
105
- {
106
- name: 'uq_inbox_counter_user_view',
107
- key: {
108
- spaceId: 1,
109
- userId: 1,
110
- viewId: 1,
111
- },
112
- unique: true,
113
- },
114
- ];
115
- /**
116
- * MongoDB indexes for durable processor idempotency receipts.
117
- */
118
- exports.INBOX_PROCESSOR_RECEIPT_INDEXES = [
119
- {
120
- name: 'uq_inbox_processor_source_scope',
121
- key: {
122
- processor: 1,
123
- sourceEventId: 1,
124
- scopeKey: 1,
125
- },
126
- unique: true,
127
- },
128
- ];
@@ -1,162 +0,0 @@
1
- import { ConversationInboxSnapshot, ID, InboxViewId, UserInboxItemView } from './Conversation';
2
- import { ConversationQueue } from './Queue';
3
- import { ConversationAssignmentChanged } from './Transfer';
4
- export type InboxProcessorName = 'inbox-audience-resolver' | 'inbox-item-projector' | 'inbox-counter-projector';
5
- /**
6
- * Queue membership snapshot used while resolving an assignment change.
7
- *
8
- * Produced by: assignment-change consumer.
9
- * Consumed by: InboxAudienceResolver.
10
- * Used when: previous/current queue audiences must be expanded from groups
11
- * into concrete users without embedding membership in the integration event.
12
- */
13
- export interface QueueAudienceResolutionContext {
14
- queue: ConversationQueue;
15
- memberUserIds: ID[];
16
- activeMemberUserIds: ID[];
17
- supervisorUserIds: ID[];
18
- }
19
- /**
20
- * Complete input for calculating desired inbox visibility.
21
- *
22
- * Produced by: ConversationAssignmentChanged consumer.
23
- * Consumed by: InboxAudienceResolver.
24
- * Used when: an assignment/transfer changes queue, owner or status and the
25
- * desired per-user inbox audience must be recalculated.
26
- */
27
- export interface InboxAudienceResolverInput {
28
- sourceEvent: ConversationAssignmentChanged;
29
- snapshot: ConversationInboxSnapshot;
30
- previousQueue?: QueueAudienceResolutionContext;
31
- currentQueue?: QueueAudienceResolutionContext;
32
- participantUserIds: ID[];
33
- followerUserIds: ID[];
34
- }
35
- /**
36
- * Visibility of one conversation inside one logical inbox view.
37
- *
38
- * Produced by: InboxAudienceResolver.
39
- * Consumed by: inbox item projection planner/projector.
40
- * Used when: multiple independent reasons can preserve the same view without
41
- * generating duplicate inbox items or duplicate counter increments.
42
- */
43
- export type ResolvedInboxView = UserInboxItemView;
44
- /**
45
- * Desired inbox visibility for a single user after applying the source event.
46
- *
47
- * Produced by: InboxAudienceResolver.
48
- * Consumed by: inbox item projection planner/projector.
49
- * Used when: the projector compares desired visibility with the materialized
50
- * user_inbox_items state.
51
- */
52
- export interface ResolvedInboxUserVisibility {
53
- userId: ID;
54
- views: ResolvedInboxView[];
55
- }
56
- /**
57
- * Full audience resolution result for one conversation version.
58
- *
59
- * Produced by: InboxAudienceResolver.
60
- * Consumed by: inbox item projection planner/projector.
61
- * Used when: all affected users must be diffed against their existing
62
- * user_inbox_items documents.
63
- */
64
- export interface ResolvedInboxAudience {
65
- sourceEventId: ID;
66
- spaceId: ID;
67
- conversationId: ID;
68
- conversationVersion: number;
69
- snapshot: ConversationInboxSnapshot;
70
- users: ResolvedInboxUserVisibility[];
71
- resolvedAt: Date;
72
- }
73
- /**
74
- * Processor boundary for pure audience calculation.
75
- *
76
- * Called by: ConversationAssignmentChanged consumer.
77
- * Returns to: inbox item projection planner/projector.
78
- */
79
- export interface InboxAudienceResolver {
80
- resolve(input: InboxAudienceResolverInput): Promise<ResolvedInboxAudience>;
81
- }
82
- export type InboxProjectionOperation = 'insert' | 'update' | 'delete';
83
- /**
84
- * Idempotent mutation plan for one user's materialized conversation item.
85
- *
86
- * Produced by: inbox item projection planner.
87
- * Consumed by: inbox item projector; after persistence it is also the input
88
- * used to derive InboxCounterDelta messages.
89
- * Used when: desired audience is compared with the existing projection.
90
- *
91
- * id must be deterministic from:
92
- * sourceEventId + userId + conversationId.
93
- */
94
- export interface InboxProjectionDelta {
95
- id: ID;
96
- sourceEventId: ID;
97
- spaceId: ID;
98
- userId: ID;
99
- conversationId: ID;
100
- conversationVersion: number;
101
- operation: InboxProjectionOperation;
102
- previous?: ResolvedInboxUserVisibility;
103
- current?: ResolvedInboxUserVisibility;
104
- snapshot?: ConversationInboxSnapshot;
105
- createdAt: Date;
106
- }
107
- /**
108
- * Atomic counter change for one user/view caused by one projection delta.
109
- *
110
- * Produced by: inbox item projector after determining the actual persisted
111
- * before/after state.
112
- * Consumed by: InboxCounterProjector.
113
- * Used when: view membership, requiresAction or unread state changes.
114
- *
115
- * id must be deterministic from:
116
- * sourceEventId + userId + conversationId + viewId.
117
- */
118
- export interface InboxCounterDelta {
119
- id: ID;
120
- sourceEventId: ID;
121
- spaceId: ID;
122
- userId: ID;
123
- conversationId: ID;
124
- viewId: InboxViewId;
125
- conversationVersion: number;
126
- totalDelta: -1 | 0 | 1;
127
- requiresActionDelta: -1 | 0 | 1;
128
- unreadDelta: -1 | 0 | 1;
129
- createdAt: Date;
130
- }
131
- /**
132
- * Durable idempotency receipt for a processor side effect.
133
- *
134
- * Produced and consumed by: inbox item projector or InboxCounterProjector.
135
- * Used when: the same outbox event/delta is delivered more than once.
136
- *
137
- * Unique key:
138
- * processor + sourceEventId + scopeKey.
139
- *
140
- * scopeKey examples:
141
- * - item projector: userId + conversationId
142
- * - counter projector: userId + conversationId + viewId
143
- */
144
- export interface InboxProcessorReceipt {
145
- id: ID;
146
- processor: InboxProcessorName;
147
- sourceEventId: ID;
148
- scopeKey: string;
149
- spaceId: ID;
150
- conversationId: ID;
151
- conversationVersion: number;
152
- processedAt: Date;
153
- }
154
- /**
155
- * Processor boundary for applying counter deltas idempotently.
156
- *
157
- * Called by: inbox item projector.
158
- * Mutates: user_inbox_counters and InboxProcessorReceipt in one transaction.
159
- */
160
- export interface InboxCounterProjector {
161
- apply(delta: InboxCounterDelta): Promise<void>;
162
- }
@@ -1,166 +0,0 @@
1
- import { AutomationCustomer, AutomationJsonObject, AutomationJsonSchema, AutomationJsonValue, AutomationResourceReference } from '../Common';
2
- import { AutomationCapabilityEffectClass } from '../Capabilities';
3
- import { AutomationExecutionContextInput, AutomationExecutionEffectMode, AutomationExecutionScope, AutomationExecutionSource, AutomationFlowSnapshotReference } from './Execution';
4
- export declare enum AutomationArtifactStatus {
5
- UPLOADING = "uploading",
6
- SCANNING = "scanning",
7
- AVAILABLE = "available",
8
- REJECTED = "rejected",
9
- EXPIRED = "expired"
10
- }
11
- export declare enum AutomationArtifactOrigin {
12
- UPLOAD = "upload",
13
- CAPTURED_EVENT = "capturedEvent",
14
- EXECUTION = "execution",
15
- GENERATED = "generated"
16
- }
17
- export interface AutomationArtifactReference {
18
- id: string;
19
- name: string;
20
- mimeType: string;
21
- size: number;
22
- origin: AutomationArtifactOrigin;
23
- status: AutomationArtifactStatus;
24
- checksum?: string | null;
25
- expiresAt?: string | null;
26
- owner?: AutomationResourceReference | null;
27
- }
28
- export declare enum AutomationTestCaseVisibility {
29
- PRIVATE = "private",
30
- SHARED = "shared"
31
- }
32
- export declare enum AutomationTestAssertionKind {
33
- EXECUTION_STATUS = "executionStatus",
34
- NODE_REACHED = "nodeReached",
35
- NODE_NOT_REACHED = "nodeNotReached",
36
- PATH_EXISTS = "pathExists",
37
- PATH_TYPE = "pathType",
38
- PATH_VALUE = "pathValue",
39
- ERROR_CODE = "errorCode",
40
- MAX_DURATION = "maxDuration",
41
- MAX_COST = "maxCost"
42
- }
43
- export declare enum AutomationTestAssertionStatus {
44
- PENDING = "pending",
45
- PASSED = "passed",
46
- FAILED = "failed",
47
- SKIPPED = "skipped"
48
- }
49
- export interface AutomationTestAssertion {
50
- id: string;
51
- kind: AutomationTestAssertionKind;
52
- nodeId?: string | null;
53
- path?: string | null;
54
- expected?: AutomationJsonValue;
55
- configuration?: AutomationJsonObject | null;
56
- }
57
- export interface AutomationTestAssertionResult {
58
- assertionId: string;
59
- status: AutomationTestAssertionStatus;
60
- message?: string | null;
61
- actual?: AutomationJsonValue;
62
- }
63
- /** Configuración común utilizada por preflight e inicio de una prueba. */
64
- export interface AutomationTestConfiguration {
65
- flowId: string;
66
- flowVersionId?: string | null;
67
- draftRevision?: number | null;
68
- entryPointId: string;
69
- scope: AutomationExecutionScope;
70
- requestedEffectMode: AutomationExecutionEffectMode;
71
- source: AutomationExecutionSource;
72
- customer?: AutomationCustomer | null;
73
- input?: AutomationJsonObject | null;
74
- context?: AutomationExecutionContextInput | null;
75
- nodeInputOverrides?: Record<string, AutomationJsonObject> | null;
76
- artifactIds?: string[] | null;
77
- testTargetOverrides?: AutomationJsonObject | null;
78
- }
79
- export interface StartAutomationTestRequest extends AutomationTestConfiguration {
80
- idempotencyKey: string;
81
- correlationId?: string | null;
82
- testCaseId?: string | null;
83
- testCaseRevision?: number | null;
84
- preflightToken?: string | null;
85
- }
86
- export interface AutomationTestPreflightRequest extends AutomationTestConfiguration {
87
- }
88
- export declare enum AutomationTestPreflightStatus {
89
- READY = "ready",
90
- WARNING = "warning",
91
- BLOCKED = "blocked"
92
- }
93
- export declare enum AutomationTestPreflightIssueSeverity {
94
- INFO = "info",
95
- WARNING = "warning",
96
- BLOCKER = "blocker"
97
- }
98
- export interface AutomationTestPreflightIssue {
99
- code: string;
100
- severity: AutomationTestPreflightIssueSeverity;
101
- message: string;
102
- nodeId?: string | null;
103
- details?: AutomationJsonObject | null;
104
- }
105
- export interface AutomationTestPreflightNode {
106
- nodeId: string;
107
- nodeDefinitionCode: string;
108
- nodeDefinitionVersion: number;
109
- reachable: boolean;
110
- executable: boolean;
111
- issues: AutomationTestPreflightIssue[];
112
- }
113
- export interface AutomationTestPreflightEffect {
114
- nodeId: string;
115
- effectClass: AutomationCapabilityEffectClass;
116
- action: string;
117
- description?: string | null;
118
- originalTarget?: AutomationResourceReference | null;
119
- effectiveTarget?: AutomationResourceReference | null;
120
- estimatedItems?: number | null;
121
- }
122
- export interface AutomationTestPreflightLimits {
123
- maxDurationMs?: number | null;
124
- maxSteps?: number | null;
125
- maxIterations?: number | null;
126
- maxItems?: number | null;
127
- estimatedCost?: number | null;
128
- currency?: string | null;
129
- }
130
- export interface AutomationTestPreflightResult {
131
- status: AutomationTestPreflightStatus;
132
- snapshot: AutomationFlowSnapshotReference;
133
- requestedEffectMode: AutomationExecutionEffectMode;
134
- effectiveEffectMode: AutomationExecutionEffectMode;
135
- nodes: AutomationTestPreflightNode[];
136
- effects: AutomationTestPreflightEffect[];
137
- issues: AutomationTestPreflightIssue[];
138
- limits: AutomationTestPreflightLimits;
139
- requiresConfirmation: boolean;
140
- preflightToken: string;
141
- expiresAt: string;
142
- }
143
- export interface AutomationTestCase {
144
- id: string;
145
- spaceId: string;
146
- flowId: string;
147
- name: string;
148
- description?: string | null;
149
- revision: number;
150
- visibility: AutomationTestCaseVisibility;
151
- configuration: AutomationTestConfiguration;
152
- assertions: AutomationTestAssertion[];
153
- createdBy: string;
154
- createdAt: string;
155
- updatedBy?: string | null;
156
- updatedAt?: string | null;
157
- }
158
- /** Schema opcional para que el Estudio genere un simulador por Entry Point. */
159
- export interface AutomationEntryPointTestSchema {
160
- entryPointId: string;
161
- inputSchema?: AutomationJsonSchema | null;
162
- contextSchema?: AutomationJsonSchema | null;
163
- allowedArtifactMimeTypes?: string[] | null;
164
- maxArtifactSize?: number | null;
165
- maxArtifacts?: number | null;
166
- }
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationTestPreflightIssueSeverity = exports.AutomationTestPreflightStatus = exports.AutomationTestAssertionStatus = exports.AutomationTestAssertionKind = exports.AutomationTestCaseVisibility = exports.AutomationArtifactOrigin = exports.AutomationArtifactStatus = void 0;
4
- var AutomationArtifactStatus;
5
- (function (AutomationArtifactStatus) {
6
- AutomationArtifactStatus["UPLOADING"] = "uploading";
7
- AutomationArtifactStatus["SCANNING"] = "scanning";
8
- AutomationArtifactStatus["AVAILABLE"] = "available";
9
- AutomationArtifactStatus["REJECTED"] = "rejected";
10
- AutomationArtifactStatus["EXPIRED"] = "expired";
11
- })(AutomationArtifactStatus || (exports.AutomationArtifactStatus = AutomationArtifactStatus = {}));
12
- var AutomationArtifactOrigin;
13
- (function (AutomationArtifactOrigin) {
14
- AutomationArtifactOrigin["UPLOAD"] = "upload";
15
- AutomationArtifactOrigin["CAPTURED_EVENT"] = "capturedEvent";
16
- AutomationArtifactOrigin["EXECUTION"] = "execution";
17
- AutomationArtifactOrigin["GENERATED"] = "generated";
18
- })(AutomationArtifactOrigin || (exports.AutomationArtifactOrigin = AutomationArtifactOrigin = {}));
19
- var AutomationTestCaseVisibility;
20
- (function (AutomationTestCaseVisibility) {
21
- AutomationTestCaseVisibility["PRIVATE"] = "private";
22
- AutomationTestCaseVisibility["SHARED"] = "shared";
23
- })(AutomationTestCaseVisibility || (exports.AutomationTestCaseVisibility = AutomationTestCaseVisibility = {}));
24
- var AutomationTestAssertionKind;
25
- (function (AutomationTestAssertionKind) {
26
- AutomationTestAssertionKind["EXECUTION_STATUS"] = "executionStatus";
27
- AutomationTestAssertionKind["NODE_REACHED"] = "nodeReached";
28
- AutomationTestAssertionKind["NODE_NOT_REACHED"] = "nodeNotReached";
29
- AutomationTestAssertionKind["PATH_EXISTS"] = "pathExists";
30
- AutomationTestAssertionKind["PATH_TYPE"] = "pathType";
31
- AutomationTestAssertionKind["PATH_VALUE"] = "pathValue";
32
- AutomationTestAssertionKind["ERROR_CODE"] = "errorCode";
33
- AutomationTestAssertionKind["MAX_DURATION"] = "maxDuration";
34
- AutomationTestAssertionKind["MAX_COST"] = "maxCost";
35
- })(AutomationTestAssertionKind || (exports.AutomationTestAssertionKind = AutomationTestAssertionKind = {}));
36
- var AutomationTestAssertionStatus;
37
- (function (AutomationTestAssertionStatus) {
38
- AutomationTestAssertionStatus["PENDING"] = "pending";
39
- AutomationTestAssertionStatus["PASSED"] = "passed";
40
- AutomationTestAssertionStatus["FAILED"] = "failed";
41
- AutomationTestAssertionStatus["SKIPPED"] = "skipped";
42
- })(AutomationTestAssertionStatus || (exports.AutomationTestAssertionStatus = AutomationTestAssertionStatus = {}));
43
- var AutomationTestPreflightStatus;
44
- (function (AutomationTestPreflightStatus) {
45
- AutomationTestPreflightStatus["READY"] = "ready";
46
- AutomationTestPreflightStatus["WARNING"] = "warning";
47
- AutomationTestPreflightStatus["BLOCKED"] = "blocked";
48
- })(AutomationTestPreflightStatus || (exports.AutomationTestPreflightStatus = AutomationTestPreflightStatus = {}));
49
- var AutomationTestPreflightIssueSeverity;
50
- (function (AutomationTestPreflightIssueSeverity) {
51
- AutomationTestPreflightIssueSeverity["INFO"] = "info";
52
- AutomationTestPreflightIssueSeverity["WARNING"] = "warning";
53
- AutomationTestPreflightIssueSeverity["BLOCKER"] = "blocker";
54
- })(AutomationTestPreflightIssueSeverity || (exports.AutomationTestPreflightIssueSeverity = AutomationTestPreflightIssueSeverity = {}));