@hexabot-ai/types 3.0.2-alpha.8 → 3.0.2-beta.0
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.
- package/README.md +28 -1
- package/dist/cjs/chat/label.js +0 -1
- package/dist/cjs/user/index.js +5 -1
- package/dist/cjs/user/mcp-token.js +31 -0
- package/dist/cjs/workflow/index.js +17 -1
- package/dist/cjs/workflow/workflow-run.js +6 -0
- package/dist/cjs/workflow/workflow-transfer.js +124 -0
- package/dist/esm/chat/label.js +0 -1
- package/dist/esm/user/index.js +1 -0
- package/dist/esm/user/mcp-token.js +28 -0
- package/dist/esm/workflow/index.js +1 -0
- package/dist/esm/workflow/workflow-run.js +6 -0
- package/dist/esm/workflow/workflow-transfer.js +121 -0
- package/dist/types/chat/label-group.d.ts +0 -2
- package/dist/types/chat/label-group.d.ts.map +1 -1
- package/dist/types/chat/label.d.ts +0 -4
- package/dist/types/chat/label.d.ts.map +1 -1
- package/dist/types/chat/subscriber.d.ts +0 -2
- package/dist/types/chat/subscriber.d.ts.map +1 -1
- package/dist/types/user/index.d.ts +1 -0
- package/dist/types/user/index.d.ts.map +1 -1
- package/dist/types/user/mcp-token.d.ts +113 -0
- package/dist/types/user/mcp-token.d.ts.map +1 -0
- package/dist/types/user/user.d.ts +0 -2
- package/dist/types/user/user.d.ts.map +1 -1
- package/dist/types/workflow/index.d.ts +1 -0
- package/dist/types/workflow/index.d.ts.map +1 -1
- package/dist/types/workflow/memory-record.d.ts +2 -0
- package/dist/types/workflow/memory-record.d.ts.map +1 -1
- package/dist/types/workflow/workflow-run.d.ts +60 -0
- package/dist/types/workflow/workflow-run.d.ts.map +1 -1
- package/dist/types/workflow/workflow-transfer.d.ts +329 -0
- package/dist/types/workflow/workflow-transfer.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/chat/label.ts +0 -1
- package/src/index.test.ts +331 -0
- package/src/user/index.ts +9 -0
- package/src/user/mcp-token.ts +53 -0
- package/src/workflow/index.ts +30 -0
- package/src/workflow/workflow-run.ts +9 -0
- package/src/workflow/workflow-transfer.ts +190 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const mcpTokenStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
tokenPrefix: z.ZodString;
|
|
8
|
+
expiresAt: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
9
|
+
lastUsedAt: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
10
|
+
revokedAt: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const mcpTokenSchema: z.ZodType<{
|
|
13
|
+
id: string;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
name: string;
|
|
17
|
+
tokenPrefix: string;
|
|
18
|
+
expiresAt: Date | null;
|
|
19
|
+
lastUsedAt: Date | null;
|
|
20
|
+
revokedAt: Date | null;
|
|
21
|
+
owner: string;
|
|
22
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
23
|
+
id: string;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
name: string;
|
|
27
|
+
tokenPrefix: string;
|
|
28
|
+
expiresAt: Date | null;
|
|
29
|
+
lastUsedAt: Date | null;
|
|
30
|
+
revokedAt: Date | null;
|
|
31
|
+
owner: string;
|
|
32
|
+
}, unknown>>;
|
|
33
|
+
export declare const mcpTokenFullSchema: z.ZodObject<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
36
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
tokenPrefix: z.ZodString;
|
|
39
|
+
expiresAt: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
40
|
+
lastUsedAt: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
41
|
+
revokedAt: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
42
|
+
owner: z.ZodType<{
|
|
43
|
+
id: string;
|
|
44
|
+
createdAt: Date;
|
|
45
|
+
updatedAt: Date;
|
|
46
|
+
firstName: string;
|
|
47
|
+
lastName: string;
|
|
48
|
+
language: string | null;
|
|
49
|
+
timezone: number;
|
|
50
|
+
locale: string | null;
|
|
51
|
+
gender: string | null;
|
|
52
|
+
country: string | null;
|
|
53
|
+
foreignId: string | null;
|
|
54
|
+
assignedAt: Date | null;
|
|
55
|
+
lastvisit: Date | null;
|
|
56
|
+
retainedFrom: Date | null;
|
|
57
|
+
channel: {
|
|
58
|
+
name: string | null;
|
|
59
|
+
data?: Record<string, any> | null | undefined;
|
|
60
|
+
};
|
|
61
|
+
username: string;
|
|
62
|
+
email: string;
|
|
63
|
+
sendEmail: boolean;
|
|
64
|
+
state: boolean;
|
|
65
|
+
resetCount: number;
|
|
66
|
+
resetToken: string | null;
|
|
67
|
+
labels: string[];
|
|
68
|
+
assignedTo: string | null;
|
|
69
|
+
roles: string[];
|
|
70
|
+
avatar: string | null;
|
|
71
|
+
provider?: {
|
|
72
|
+
strategy: "local";
|
|
73
|
+
sub?: string | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
} | null, unknown, z.core.$ZodTypeInternals<{
|
|
76
|
+
id: string;
|
|
77
|
+
createdAt: Date;
|
|
78
|
+
updatedAt: Date;
|
|
79
|
+
firstName: string;
|
|
80
|
+
lastName: string;
|
|
81
|
+
language: string | null;
|
|
82
|
+
timezone: number;
|
|
83
|
+
locale: string | null;
|
|
84
|
+
gender: string | null;
|
|
85
|
+
country: string | null;
|
|
86
|
+
foreignId: string | null;
|
|
87
|
+
assignedAt: Date | null;
|
|
88
|
+
lastvisit: Date | null;
|
|
89
|
+
retainedFrom: Date | null;
|
|
90
|
+
channel: {
|
|
91
|
+
name: string | null;
|
|
92
|
+
data?: Record<string, any> | null | undefined;
|
|
93
|
+
};
|
|
94
|
+
username: string;
|
|
95
|
+
email: string;
|
|
96
|
+
sendEmail: boolean;
|
|
97
|
+
state: boolean;
|
|
98
|
+
resetCount: number;
|
|
99
|
+
resetToken: string | null;
|
|
100
|
+
labels: string[];
|
|
101
|
+
assignedTo: string | null;
|
|
102
|
+
roles: string[];
|
|
103
|
+
avatar: string | null;
|
|
104
|
+
provider?: {
|
|
105
|
+
strategy: "local";
|
|
106
|
+
sub?: string | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
} | null, unknown>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type McpTokenStub = z.infer<typeof mcpTokenStubSchema>;
|
|
111
|
+
export type McpToken = z.infer<typeof mcpTokenSchema>;
|
|
112
|
+
export type McpTokenFull = z.infer<typeof mcpTokenFullSchema>;
|
|
113
|
+
//# sourceMappingURL=mcp-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-token.d.ts","sourceRoot":"","sources":["../../../src/user/mcp-token.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,kBAAkB;;;;;;;;;iBAA2B,CAAC;AAE3D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;YAQ1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -138,7 +138,6 @@ export declare const userFullSchema: z.ZodObject<{
|
|
|
138
138
|
title: string;
|
|
139
139
|
name: string;
|
|
140
140
|
builtin: boolean;
|
|
141
|
-
label_id?: Record<string, unknown> | null | undefined;
|
|
142
141
|
description?: string | null | undefined;
|
|
143
142
|
group?: string | null | undefined;
|
|
144
143
|
users?: undefined;
|
|
@@ -149,7 +148,6 @@ export declare const userFullSchema: z.ZodObject<{
|
|
|
149
148
|
title: string;
|
|
150
149
|
name: string;
|
|
151
150
|
builtin: boolean;
|
|
152
|
-
label_id?: Record<string, unknown> | null | undefined;
|
|
153
151
|
description?: string | null | undefined;
|
|
154
152
|
group?: string | null | undefined;
|
|
155
153
|
users?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/user/user.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiCxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuB,CAAC;AAEnD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoBtB,CAAC;AAEF,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/user/user.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiCxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuB,CAAC;AAEnD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoBtB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -5,4 +5,5 @@ export { resolveRunDurationMs, workflowRunFullSchema, workflowRunSchema, workflo
|
|
|
5
5
|
export { memoryDefinitionFullSchema, memoryDefinitionSchema, memoryDefinitionStubSchema, type MemoryDefinition, type MemoryDefinitionFull, type MemoryDefinitionStub, } from "./memory-definition";
|
|
6
6
|
export { memoryRecordFullSchema, memoryRecordSchema, memoryRecordStubSchema, type MemoryRecord, type MemoryRecordFull, type MemoryRecordStub, } from "./memory-record";
|
|
7
7
|
export { mcpServerFullSchema, mcpServerSchema, mcpServerStubSchema, type McpServer, type McpServerFull, type McpServerStub, } from "./mcp-server";
|
|
8
|
+
export { WORKFLOW_EXPORT_BUNDLE_KIND, WORKFLOW_TRANSFER_RESOURCE_KIND_PATTERN, workflowExportBundleContentTypeSchema, workflowExportBundleCredentialSchema, workflowExportBundleLabelGroupSchema, workflowExportBundleLabelSchema, workflowExportBundleMcpServerSchema, workflowExportBundleMemoryDefinitionSchema, workflowExportBundleSchema, workflowExportBundleV1Schema, workflowExportBundleWorkflowDependencySchema, workflowImportResourceActionSchema, workflowImportResourceResultSchema, workflowImportResultSchema, workflowTransferResourceKindSchema, type WorkflowExportBundle, type WorkflowExportBundleContentType, type WorkflowExportBundleCredential, type WorkflowExportBundleLabel, type WorkflowExportBundleLabelGroup, type WorkflowExportBundleMcpServer, type WorkflowExportBundleMemoryDefinition, type WorkflowExportBundleV1, type WorkflowExportBundleWorkflowDependency, type WorkflowImportResourceAction, type WorkflowImportResourceResult, type WorkflowImportResult, } from "./workflow-transfer";
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflow/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,KAAK,QAAQ,EACb,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflow/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,KAAK,QAAQ,EACb,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,2BAA2B,EAC3B,uCAAuC,EACvC,qCAAqC,EACrC,oCAAoC,EACpC,oCAAoC,EACpC,+BAA+B,EAC/B,mCAAmC,EACnC,0CAA0C,EAC1C,0BAA0B,EAC1B,4BAA4B,EAC5B,4CAA4C,EAC5C,kCAAkC,EAClC,kCAAkC,EAClC,0BAA0B,EAC1B,kCAAkC,EAClC,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,sCAAsC,EAC3C,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,GAC1B,MAAM,qBAAqB,CAAC"}
|
|
@@ -226,6 +226,7 @@ export declare const memoryRecordFullSchema: z.ZodObject<{
|
|
|
226
226
|
workflow: string;
|
|
227
227
|
workflowVersion: string | null;
|
|
228
228
|
triggeredBy: string | null;
|
|
229
|
+
parentRun: string | null;
|
|
229
230
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
230
231
|
id: string;
|
|
231
232
|
createdAt: Date;
|
|
@@ -253,6 +254,7 @@ export declare const memoryRecordFullSchema: z.ZodObject<{
|
|
|
253
254
|
workflow: string;
|
|
254
255
|
workflowVersion: string | null;
|
|
255
256
|
triggeredBy: string | null;
|
|
257
|
+
parentRun: string | null;
|
|
256
258
|
}, unknown>>>>;
|
|
257
259
|
thread: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
258
260
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-record.d.ts","sourceRoot":"","sources":["../../../src/workflow/memory-record.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,sBAAsB;;;;;;;iBAA+B,CAAC;AAEnE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;YAwB9B,CAAC;AAEF,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"memory-record.d.ts","sourceRoot":"","sources":["../../../src/workflow/memory-record.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,sBAAsB;;;;;;;iBAA+B,CAAC;AAEnE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;YAwB9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -89,6 +89,7 @@ export declare const workflowRunSchema: z.ZodType<{
|
|
|
89
89
|
workflow: string;
|
|
90
90
|
workflowVersion: string | null;
|
|
91
91
|
triggeredBy: string | null;
|
|
92
|
+
parentRun: string | null;
|
|
92
93
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
93
94
|
id: string;
|
|
94
95
|
createdAt: Date;
|
|
@@ -116,6 +117,7 @@ export declare const workflowRunSchema: z.ZodType<{
|
|
|
116
117
|
workflow: string;
|
|
117
118
|
workflowVersion: string | null;
|
|
118
119
|
triggeredBy: string | null;
|
|
120
|
+
parentRun: string | null;
|
|
119
121
|
}, unknown>>;
|
|
120
122
|
export declare const workflowRunFullSchema: z.ZodType<{
|
|
121
123
|
id: string;
|
|
@@ -242,6 +244,35 @@ export declare const workflowRunFullSchema: z.ZodType<{
|
|
|
242
244
|
closeReason?: "manual" | "inactivity" | null | undefined;
|
|
243
245
|
title?: string | null | undefined;
|
|
244
246
|
} | null | undefined;
|
|
247
|
+
parentRun?: {
|
|
248
|
+
id: string;
|
|
249
|
+
createdAt: Date;
|
|
250
|
+
updatedAt: Date;
|
|
251
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
252
|
+
input: Record<string, any> | null;
|
|
253
|
+
output: Record<string, any> | null;
|
|
254
|
+
context: Record<string, any>;
|
|
255
|
+
snapshot: any;
|
|
256
|
+
stepLog: Record<string, any> | null;
|
|
257
|
+
suspendedStep: string | null;
|
|
258
|
+
suspensionReason: string | null;
|
|
259
|
+
suspensionData: unknown;
|
|
260
|
+
suspensionStepExecId: string | null;
|
|
261
|
+
suspensionIndex: number | null;
|
|
262
|
+
suspensionKey: string | null;
|
|
263
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
264
|
+
lastResumeData: unknown;
|
|
265
|
+
error: string | null;
|
|
266
|
+
suspendedAt: Date | null;
|
|
267
|
+
finishedAt: Date | null;
|
|
268
|
+
failedAt: Date | null;
|
|
269
|
+
duration: number | null;
|
|
270
|
+
metadata: Record<string, any> | null;
|
|
271
|
+
workflow: string;
|
|
272
|
+
workflowVersion: string | null;
|
|
273
|
+
triggeredBy: string | null;
|
|
274
|
+
parentRun: string | null;
|
|
275
|
+
} | null | undefined;
|
|
245
276
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
246
277
|
id: string;
|
|
247
278
|
createdAt: Date;
|
|
@@ -367,6 +398,35 @@ export declare const workflowRunFullSchema: z.ZodType<{
|
|
|
367
398
|
closeReason?: "manual" | "inactivity" | null | undefined;
|
|
368
399
|
title?: string | null | undefined;
|
|
369
400
|
} | null | undefined;
|
|
401
|
+
parentRun?: {
|
|
402
|
+
id: string;
|
|
403
|
+
createdAt: Date;
|
|
404
|
+
updatedAt: Date;
|
|
405
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
406
|
+
input: Record<string, any> | null;
|
|
407
|
+
output: Record<string, any> | null;
|
|
408
|
+
context: Record<string, any>;
|
|
409
|
+
snapshot: any;
|
|
410
|
+
stepLog: Record<string, any> | null;
|
|
411
|
+
suspendedStep: string | null;
|
|
412
|
+
suspensionReason: string | null;
|
|
413
|
+
suspensionData: unknown;
|
|
414
|
+
suspensionStepExecId: string | null;
|
|
415
|
+
suspensionIndex: number | null;
|
|
416
|
+
suspensionKey: string | null;
|
|
417
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
418
|
+
lastResumeData: unknown;
|
|
419
|
+
error: string | null;
|
|
420
|
+
suspendedAt: Date | null;
|
|
421
|
+
finishedAt: Date | null;
|
|
422
|
+
failedAt: Date | null;
|
|
423
|
+
duration: number | null;
|
|
424
|
+
metadata: Record<string, any> | null;
|
|
425
|
+
workflow: string;
|
|
426
|
+
workflowVersion: string | null;
|
|
427
|
+
triggeredBy: string | null;
|
|
428
|
+
parentRun: string | null;
|
|
429
|
+
} | null | undefined;
|
|
370
430
|
}, unknown>>;
|
|
371
431
|
export type WorkflowRunStub = z.infer<typeof workflowRunStubSchema>;
|
|
372
432
|
export type WorkflowRun = z.infer<typeof workflowRunSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-run.d.ts","sourceRoot":"","sources":["../../../src/workflow/workflow-run.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,QAAA,MAAM,uBAAuB;;;;;;EAM3B,CAAC;AAYH,eAAO,MAAM,oBAAoB,GAAI,KAAK;IACxC,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,GAAG,IAAI,CAAC;CACzD,KAAG,MAAM,GAAG,IAiBZ,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow-run.d.ts","sourceRoot":"","sources":["../../../src/workflow/workflow-run.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,QAAA,MAAM,uBAAuB;;;;;;EAM3B,CAAC;AAYH,eAAO,MAAM,oBAAoB,GAAI,KAAK;IACxC,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,GAAG,IAAI,CAAC;CACzD,KAAG,MAAM,GAAG,IAiBZ,CAAC;AAqDF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAGjC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoB7B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAejC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const WORKFLOW_EXPORT_BUNDLE_KIND = "hexabot.workflow.bundle";
|
|
3
|
+
export declare const WORKFLOW_TRANSFER_RESOURCE_KIND_PATTERN: RegExp;
|
|
4
|
+
export declare const workflowTransferResourceKindSchema: z.ZodString;
|
|
5
|
+
export declare const workflowExportBundleMemoryDefinitionSchema: z.ZodObject<{
|
|
6
|
+
exportId: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
slug: z.ZodString;
|
|
9
|
+
scope: z.ZodEnum<typeof import("./domain").MemoryScope>;
|
|
10
|
+
schema: z.ZodAny;
|
|
11
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export declare const workflowExportBundleCredentialSchema: z.ZodObject<{
|
|
14
|
+
exportId: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
exportedOwnerId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export declare const workflowExportBundleMcpServerSchema: z.ZodObject<{
|
|
19
|
+
exportId: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
enabled: z.ZodCoercedBoolean<unknown>;
|
|
22
|
+
transport: z.ZodEnum<typeof import("./domain").McpServerTransport>;
|
|
23
|
+
url: z.ZodNullable<z.ZodString>;
|
|
24
|
+
command: z.ZodNullable<z.ZodString>;
|
|
25
|
+
args: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
26
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
27
|
+
credentialExportId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
export declare const workflowExportBundleContentTypeSchema: z.ZodObject<{
|
|
30
|
+
exportId: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
schema: z.ZodAny;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
export declare const workflowExportBundleLabelGroupSchema: z.ZodObject<{
|
|
35
|
+
exportId: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
export declare const workflowExportBundleLabelSchema: z.ZodObject<{
|
|
39
|
+
exportId: z.ZodString;
|
|
40
|
+
title: z.ZodString;
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
description: z.ZodNullable<z.ZodString>;
|
|
43
|
+
groupExportId: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export declare const workflowExportBundleWorkflowDependencySchema: z.ZodObject<{
|
|
46
|
+
exportId: z.ZodString;
|
|
47
|
+
workflow: z.ZodObject<{
|
|
48
|
+
type: z.ZodEnum<typeof import("./domain").WorkflowType>;
|
|
49
|
+
description: z.ZodNullable<z.ZodString>;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
schedule: z.ZodNullable<z.ZodString>;
|
|
52
|
+
inputSchema: z.ZodAny;
|
|
53
|
+
layout: z.ZodObject<{
|
|
54
|
+
x: z.ZodCoercedNumber<unknown>;
|
|
55
|
+
y: z.ZodCoercedNumber<unknown>;
|
|
56
|
+
zoom: z.ZodCoercedNumber<unknown>;
|
|
57
|
+
direction: z.ZodEnum<typeof import("./domain").DirectionType>;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
version: z.ZodObject<{
|
|
61
|
+
number: z.ZodCoercedNumber<unknown>;
|
|
62
|
+
checksum: z.ZodString;
|
|
63
|
+
message: z.ZodNullable<z.ZodString>;
|
|
64
|
+
exportedVersionId: z.ZodString;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
definitionYml: z.ZodString;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
export declare const workflowExportBundleV1Schema: z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"hexabot.workflow.bundle">;
|
|
70
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
71
|
+
exportedAt: z.ZodISODateTime;
|
|
72
|
+
workflow: z.ZodObject<{
|
|
73
|
+
exportId: z.ZodOptional<z.ZodString>;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
description: z.ZodNullable<z.ZodString>;
|
|
76
|
+
type: z.ZodEnum<typeof import("./domain").WorkflowType>;
|
|
77
|
+
schedule: z.ZodNullable<z.ZodString>;
|
|
78
|
+
inputSchema: z.ZodAny;
|
|
79
|
+
layout: z.ZodObject<{
|
|
80
|
+
x: z.ZodCoercedNumber<unknown>;
|
|
81
|
+
y: z.ZodCoercedNumber<unknown>;
|
|
82
|
+
zoom: z.ZodCoercedNumber<unknown>;
|
|
83
|
+
direction: z.ZodEnum<typeof import("./domain").DirectionType>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
version: z.ZodObject<{
|
|
87
|
+
number: z.ZodCoercedNumber<unknown>;
|
|
88
|
+
checksum: z.ZodString;
|
|
89
|
+
message: z.ZodNullable<z.ZodString>;
|
|
90
|
+
exportedVersionId: z.ZodString;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
definitionYml: z.ZodString;
|
|
93
|
+
resources: z.ZodObject<{
|
|
94
|
+
memoryDefinitions: z.ZodArray<z.ZodObject<{
|
|
95
|
+
exportId: z.ZodString;
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
slug: z.ZodString;
|
|
98
|
+
scope: z.ZodEnum<typeof import("./domain").MemoryScope>;
|
|
99
|
+
schema: z.ZodAny;
|
|
100
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
101
|
+
}, z.core.$strict>>;
|
|
102
|
+
mcpServers: z.ZodArray<z.ZodObject<{
|
|
103
|
+
exportId: z.ZodString;
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
enabled: z.ZodCoercedBoolean<unknown>;
|
|
106
|
+
transport: z.ZodEnum<typeof import("./domain").McpServerTransport>;
|
|
107
|
+
url: z.ZodNullable<z.ZodString>;
|
|
108
|
+
command: z.ZodNullable<z.ZodString>;
|
|
109
|
+
args: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
110
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
111
|
+
credentialExportId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
}, z.core.$strict>>;
|
|
113
|
+
credentials: z.ZodArray<z.ZodObject<{
|
|
114
|
+
exportId: z.ZodString;
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
exportedOwnerId: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strict>>;
|
|
118
|
+
contentTypes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
119
|
+
exportId: z.ZodString;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
schema: z.ZodAny;
|
|
122
|
+
}, z.core.$strict>>>;
|
|
123
|
+
labelGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
124
|
+
exportId: z.ZodString;
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
}, z.core.$strict>>>;
|
|
127
|
+
labels: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
128
|
+
exportId: z.ZodString;
|
|
129
|
+
title: z.ZodString;
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
description: z.ZodNullable<z.ZodString>;
|
|
132
|
+
groupExportId: z.ZodNullable<z.ZodString>;
|
|
133
|
+
}, z.core.$strict>>>;
|
|
134
|
+
workflows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
135
|
+
exportId: z.ZodString;
|
|
136
|
+
workflow: z.ZodObject<{
|
|
137
|
+
type: z.ZodEnum<typeof import("./domain").WorkflowType>;
|
|
138
|
+
description: z.ZodNullable<z.ZodString>;
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
schedule: z.ZodNullable<z.ZodString>;
|
|
141
|
+
inputSchema: z.ZodAny;
|
|
142
|
+
layout: z.ZodObject<{
|
|
143
|
+
x: z.ZodCoercedNumber<unknown>;
|
|
144
|
+
y: z.ZodCoercedNumber<unknown>;
|
|
145
|
+
zoom: z.ZodCoercedNumber<unknown>;
|
|
146
|
+
direction: z.ZodEnum<typeof import("./domain").DirectionType>;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
version: z.ZodObject<{
|
|
150
|
+
number: z.ZodCoercedNumber<unknown>;
|
|
151
|
+
checksum: z.ZodString;
|
|
152
|
+
message: z.ZodNullable<z.ZodString>;
|
|
153
|
+
exportedVersionId: z.ZodString;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
definitionYml: z.ZodString;
|
|
156
|
+
}, z.core.$strict>>>;
|
|
157
|
+
}, z.core.$catchall<z.ZodArray<z.ZodUnknown>>>;
|
|
158
|
+
}, z.core.$strict>;
|
|
159
|
+
export declare const workflowExportBundleSchema: z.ZodObject<{
|
|
160
|
+
kind: z.ZodLiteral<"hexabot.workflow.bundle">;
|
|
161
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
162
|
+
exportedAt: z.ZodISODateTime;
|
|
163
|
+
workflow: z.ZodObject<{
|
|
164
|
+
exportId: z.ZodOptional<z.ZodString>;
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
description: z.ZodNullable<z.ZodString>;
|
|
167
|
+
type: z.ZodEnum<typeof import("./domain").WorkflowType>;
|
|
168
|
+
schedule: z.ZodNullable<z.ZodString>;
|
|
169
|
+
inputSchema: z.ZodAny;
|
|
170
|
+
layout: z.ZodObject<{
|
|
171
|
+
x: z.ZodCoercedNumber<unknown>;
|
|
172
|
+
y: z.ZodCoercedNumber<unknown>;
|
|
173
|
+
zoom: z.ZodCoercedNumber<unknown>;
|
|
174
|
+
direction: z.ZodEnum<typeof import("./domain").DirectionType>;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
}, z.core.$strict>;
|
|
177
|
+
version: z.ZodObject<{
|
|
178
|
+
number: z.ZodCoercedNumber<unknown>;
|
|
179
|
+
checksum: z.ZodString;
|
|
180
|
+
message: z.ZodNullable<z.ZodString>;
|
|
181
|
+
exportedVersionId: z.ZodString;
|
|
182
|
+
}, z.core.$strict>;
|
|
183
|
+
definitionYml: z.ZodString;
|
|
184
|
+
resources: z.ZodObject<{
|
|
185
|
+
memoryDefinitions: z.ZodArray<z.ZodObject<{
|
|
186
|
+
exportId: z.ZodString;
|
|
187
|
+
name: z.ZodString;
|
|
188
|
+
slug: z.ZodString;
|
|
189
|
+
scope: z.ZodEnum<typeof import("./domain").MemoryScope>;
|
|
190
|
+
schema: z.ZodAny;
|
|
191
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
192
|
+
}, z.core.$strict>>;
|
|
193
|
+
mcpServers: z.ZodArray<z.ZodObject<{
|
|
194
|
+
exportId: z.ZodString;
|
|
195
|
+
name: z.ZodString;
|
|
196
|
+
enabled: z.ZodCoercedBoolean<unknown>;
|
|
197
|
+
transport: z.ZodEnum<typeof import("./domain").McpServerTransport>;
|
|
198
|
+
url: z.ZodNullable<z.ZodString>;
|
|
199
|
+
command: z.ZodNullable<z.ZodString>;
|
|
200
|
+
args: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
201
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
202
|
+
credentialExportId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
credentials: z.ZodArray<z.ZodObject<{
|
|
205
|
+
exportId: z.ZodString;
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
exportedOwnerId: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, z.core.$strict>>;
|
|
209
|
+
contentTypes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
210
|
+
exportId: z.ZodString;
|
|
211
|
+
name: z.ZodString;
|
|
212
|
+
schema: z.ZodAny;
|
|
213
|
+
}, z.core.$strict>>>;
|
|
214
|
+
labelGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
215
|
+
exportId: z.ZodString;
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
}, z.core.$strict>>>;
|
|
218
|
+
labels: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
219
|
+
exportId: z.ZodString;
|
|
220
|
+
title: z.ZodString;
|
|
221
|
+
name: z.ZodString;
|
|
222
|
+
description: z.ZodNullable<z.ZodString>;
|
|
223
|
+
groupExportId: z.ZodNullable<z.ZodString>;
|
|
224
|
+
}, z.core.$strict>>>;
|
|
225
|
+
workflows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
226
|
+
exportId: z.ZodString;
|
|
227
|
+
workflow: z.ZodObject<{
|
|
228
|
+
type: z.ZodEnum<typeof import("./domain").WorkflowType>;
|
|
229
|
+
description: z.ZodNullable<z.ZodString>;
|
|
230
|
+
name: z.ZodString;
|
|
231
|
+
schedule: z.ZodNullable<z.ZodString>;
|
|
232
|
+
inputSchema: z.ZodAny;
|
|
233
|
+
layout: z.ZodObject<{
|
|
234
|
+
x: z.ZodCoercedNumber<unknown>;
|
|
235
|
+
y: z.ZodCoercedNumber<unknown>;
|
|
236
|
+
zoom: z.ZodCoercedNumber<unknown>;
|
|
237
|
+
direction: z.ZodEnum<typeof import("./domain").DirectionType>;
|
|
238
|
+
}, z.core.$strict>;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
version: z.ZodObject<{
|
|
241
|
+
number: z.ZodCoercedNumber<unknown>;
|
|
242
|
+
checksum: z.ZodString;
|
|
243
|
+
message: z.ZodNullable<z.ZodString>;
|
|
244
|
+
exportedVersionId: z.ZodString;
|
|
245
|
+
}, z.core.$strict>;
|
|
246
|
+
definitionYml: z.ZodString;
|
|
247
|
+
}, z.core.$strict>>>;
|
|
248
|
+
}, z.core.$catchall<z.ZodArray<z.ZodUnknown>>>;
|
|
249
|
+
}, z.core.$strict>;
|
|
250
|
+
export declare const workflowImportResourceActionSchema: z.ZodEnum<{
|
|
251
|
+
reused: "reused";
|
|
252
|
+
created: "created";
|
|
253
|
+
placeholder_created: "placeholder_created";
|
|
254
|
+
}>;
|
|
255
|
+
export declare const workflowImportResourceResultSchema: z.ZodObject<{
|
|
256
|
+
kind: z.ZodString;
|
|
257
|
+
exportId: z.ZodString;
|
|
258
|
+
localId: z.ZodString;
|
|
259
|
+
name: z.ZodString;
|
|
260
|
+
action: z.ZodEnum<{
|
|
261
|
+
reused: "reused";
|
|
262
|
+
created: "created";
|
|
263
|
+
placeholder_created: "placeholder_created";
|
|
264
|
+
}>;
|
|
265
|
+
}, z.core.$strict>;
|
|
266
|
+
export declare const workflowImportResultSchema: z.ZodObject<{
|
|
267
|
+
workflow: z.ZodType<{
|
|
268
|
+
id: string;
|
|
269
|
+
createdAt: Date;
|
|
270
|
+
updatedAt: Date;
|
|
271
|
+
name: string;
|
|
272
|
+
description: string | null;
|
|
273
|
+
type: import("./domain").WorkflowType;
|
|
274
|
+
schedule: string | null;
|
|
275
|
+
inputSchema: any;
|
|
276
|
+
builtin: boolean;
|
|
277
|
+
x: number;
|
|
278
|
+
y: number;
|
|
279
|
+
zoom: number;
|
|
280
|
+
direction: import("./domain").DirectionType;
|
|
281
|
+
createdBy: string | null;
|
|
282
|
+
runAfterMs: number;
|
|
283
|
+
currentVersion?: string | null | undefined;
|
|
284
|
+
publishedVersion?: string | null | undefined;
|
|
285
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
286
|
+
id: string;
|
|
287
|
+
createdAt: Date;
|
|
288
|
+
updatedAt: Date;
|
|
289
|
+
name: string;
|
|
290
|
+
description: string | null;
|
|
291
|
+
type: import("./domain").WorkflowType;
|
|
292
|
+
schedule: string | null;
|
|
293
|
+
inputSchema: any;
|
|
294
|
+
builtin: boolean;
|
|
295
|
+
x: number;
|
|
296
|
+
y: number;
|
|
297
|
+
zoom: number;
|
|
298
|
+
direction: import("./domain").DirectionType;
|
|
299
|
+
createdBy: string | null;
|
|
300
|
+
runAfterMs: number;
|
|
301
|
+
currentVersion?: string | null | undefined;
|
|
302
|
+
publishedVersion?: string | null | undefined;
|
|
303
|
+
}, unknown>>;
|
|
304
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
305
|
+
kind: z.ZodString;
|
|
306
|
+
exportId: z.ZodString;
|
|
307
|
+
localId: z.ZodString;
|
|
308
|
+
name: z.ZodString;
|
|
309
|
+
action: z.ZodEnum<{
|
|
310
|
+
reused: "reused";
|
|
311
|
+
created: "created";
|
|
312
|
+
placeholder_created: "placeholder_created";
|
|
313
|
+
}>;
|
|
314
|
+
}, z.core.$strict>>;
|
|
315
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
316
|
+
}, z.core.$strict>;
|
|
317
|
+
export type WorkflowExportBundleMemoryDefinition = z.infer<typeof workflowExportBundleMemoryDefinitionSchema>;
|
|
318
|
+
export type WorkflowExportBundleCredential = z.infer<typeof workflowExportBundleCredentialSchema>;
|
|
319
|
+
export type WorkflowExportBundleMcpServer = z.infer<typeof workflowExportBundleMcpServerSchema>;
|
|
320
|
+
export type WorkflowExportBundleContentType = z.infer<typeof workflowExportBundleContentTypeSchema>;
|
|
321
|
+
export type WorkflowExportBundleLabelGroup = z.infer<typeof workflowExportBundleLabelGroupSchema>;
|
|
322
|
+
export type WorkflowExportBundleLabel = z.infer<typeof workflowExportBundleLabelSchema>;
|
|
323
|
+
export type WorkflowExportBundleWorkflowDependency = z.infer<typeof workflowExportBundleWorkflowDependencySchema>;
|
|
324
|
+
export type WorkflowExportBundleV1 = z.infer<typeof workflowExportBundleV1Schema>;
|
|
325
|
+
export type WorkflowExportBundle = z.infer<typeof workflowExportBundleSchema>;
|
|
326
|
+
export type WorkflowImportResourceAction = z.infer<typeof workflowImportResourceActionSchema>;
|
|
327
|
+
export type WorkflowImportResourceResult = z.infer<typeof workflowImportResourceResultSchema>;
|
|
328
|
+
export type WorkflowImportResult = z.infer<typeof workflowImportResultSchema>;
|
|
329
|
+
//# sourceMappingURL=workflow-transfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-transfer.d.ts","sourceRoot":"","sources":["../../../src/workflow/workflow-transfer.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,2BAA2B,4BAA4B,CAAC;AAErE,eAAO,MAAM,uCAAuC,QACP,CAAC;AAE9C,eAAO,MAAM,kCAAkC,aAGE,CAAC;AAwBlD,eAAO,MAAM,0CAA0C;;;;;;;kBAOrD,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;kBAI/C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;kBAU9C,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;kBAIhD,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;kBAG/C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;kBAM1C,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;kBAKvD,CAAC;AAgBH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQvC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAA+B,CAAC;AAEvE,eAAO,MAAM,kCAAkC;;;;EAI7C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;kBAM7C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAIrC,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,4CAA4C,CACpD,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/chat/label.ts
CHANGED
|
@@ -20,7 +20,6 @@ const labelAliasMap = {
|
|
|
20
20
|
const labelStubObjectSchema = baseStubSchema.extend({
|
|
21
21
|
title: z.string(),
|
|
22
22
|
name: z.string(),
|
|
23
|
-
label_id: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
24
23
|
description: nullableOptionalStringSchema,
|
|
25
24
|
builtin: z.coerce.boolean(),
|
|
26
25
|
});
|