dsh-auto-flow 0.1.1 → 0.1.3

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.
@@ -1,75 +1,702 @@
1
1
  /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
2
  import { z } from 'zod'
3
3
 
4
- const dsh_auto_flow_autoFlow_exec_parameter_0$schema = z.object({
5
- 'command': z.string(),
6
- 'workdir': z.union([z.undefined(), z.string()]).optional(),
7
- 'timeoutMs': z.union([z.undefined(), z.number()]).optional(),
8
- 'stdoutMaxBytes': z.union([z.undefined(), z.number()]).optional(),
9
- 'runInBackground': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
10
- })
11
- const dsh_auto_flow_autoFlow_exec_result$schema = z.union([z.object({
12
- 'kind': z.literal("foreground"),
13
- 'exitCode': z.union([z.literal(null), z.number()]),
14
- 'signal': z.union([z.literal(null), z.string()]),
15
- 'timedOut': z.boolean(),
16
- 'aborted': z.boolean(),
17
- 'timeoutMs': z.number(),
18
- 'stdout': z.object({
19
- 'text': z.string(),
20
- 'truncated': z.boolean(),
21
- 'spillPath': z.union([z.undefined(), z.string()]).optional(),
22
- }),
23
- 'stderr': z.object({
24
- 'text': z.string(),
25
- 'truncated': z.boolean(),
26
- 'spillPath': z.union([z.undefined(), z.string()]).optional(),
27
- }),
28
- 'sandbox': z.union([z.undefined(), z.object({
29
- 'mode': z.string(),
30
- 'denied': z.boolean(),
31
- 'enforcement': z.union([z.undefined(), z.string()]).optional(),
32
- 'runnerFailed': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
4
+ let FlowDataValueRemoteCodec$schema$value
5
+ const FlowDataValueRemoteCodec$schema = () => (FlowDataValueRemoteCodec$schema$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema()))]))
6
+ let FlowDataValueRemoteCodec$schema2$value
7
+ const FlowDataValueRemoteCodec$schema2 = () => (FlowDataValueRemoteCodec$schema2$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema2())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema2()))]))
8
+ let FlowDataValueRemoteCodec$schema3$value
9
+ const FlowDataValueRemoteCodec$schema3 = () => (FlowDataValueRemoteCodec$schema3$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema3())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema3()))]))
10
+ let FlowDataValueRemoteCodec$schema4$value
11
+ const FlowDataValueRemoteCodec$schema4 = () => (FlowDataValueRemoteCodec$schema4$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]))
12
+ let FlowDataValueRemoteCodec$schema5$value
13
+ const FlowDataValueRemoteCodec$schema5 = () => (FlowDataValueRemoteCodec$schema5$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema5())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema5()))]))
14
+ let FlowDataValueRemoteCodec$schema6$value
15
+ const FlowDataValueRemoteCodec$schema6 = () => (FlowDataValueRemoteCodec$schema6$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema6())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema6()))]))
16
+ let FlowDataValueRemoteCodec$schema7$value
17
+ const FlowDataValueRemoteCodec$schema7 = () => (FlowDataValueRemoteCodec$schema7$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema7())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema7()))]))
18
+ let FlowDataValueRemoteCodec$schema8$value
19
+ const FlowDataValueRemoteCodec$schema8 = () => (FlowDataValueRemoteCodec$schema8$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema8())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema8()))]))
20
+ let FlowDataValueRemoteCodec$schema9$value
21
+ const FlowDataValueRemoteCodec$schema9 = () => (FlowDataValueRemoteCodec$schema9$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema9())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema9()))]))
22
+ let ScriptParamFieldRemoteCodec$schema$value
23
+ const ScriptParamFieldRemoteCodec$schema = () => (ScriptParamFieldRemoteCodec$schema$value ??= z.object({
24
+ 'key': z.string(),
25
+ 'label': z.string(),
26
+ 'type': z.union([z.literal("string"), z.literal("number"), z.literal("boolean"), z.literal("object"), z.literal("file"), z.literal("array"), z.literal("select"), z.literal("datetime")]),
27
+ 'required': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
28
+ 'defaultValue': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))])), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]).optional(),
29
+ 'options': z.union([z.undefined(), z.array(z.object({
30
+ 'label': z.string(),
31
+ 'value': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]),
32
+ }))]).optional(),
33
+ 'multiple': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
34
+ 'format': z.union([z.undefined(), z.string()]).optional(),
35
+ 'placeholder': z.union([z.undefined(), z.string()]).optional(),
36
+ 'description': z.union([z.undefined(), z.string()]).optional(),
37
+ 'children': z.union([z.undefined(), z.array(z.lazy(() => ScriptParamFieldRemoteCodec$schema()))]).optional(),
38
+ 'variants': z.union([z.undefined(), z.array(z.object({
39
+ 'when': z.string(),
40
+ 'value': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]),
41
+ 'children': z.array(z.lazy(() => ScriptParamFieldRemoteCodec$schema())),
42
+ }))]).optional(),
43
+ 'visibleWhen': z.union([z.undefined(), z.object({
44
+ 'key': z.string(),
45
+ 'op': z.union([z.undefined(), z.literal("eq"), z.literal("not"), z.literal("gte"), z.literal("lte"), z.literal("gt"), z.literal("lt"), z.literal("startsWith"), z.literal("endsWith"), z.literal("includes"), z.literal("regex"), z.literal("exists")]).optional(),
46
+ 'value': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))])), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]).optional(),
47
+ 'values': z.union([z.undefined(), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]))]).optional(),
48
+ }), z.array(z.object({
49
+ 'key': z.string(),
50
+ 'op': z.union([z.undefined(), z.literal("eq"), z.literal("not"), z.literal("gte"), z.literal("lte"), z.literal("gt"), z.literal("lt"), z.literal("startsWith"), z.literal("endsWith"), z.literal("includes"), z.literal("regex"), z.literal("exists")]).optional(),
51
+ 'value': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))])), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]).optional(),
52
+ 'values': z.union([z.undefined(), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]))]).optional(),
53
+ }))]).optional(),
54
+ }))
55
+ let dsh_auto_flow_autoFlow_approveRun_parameter_0$schema$value
56
+ const dsh_auto_flow_autoFlow_approveRun_parameter_0$schema = () => (dsh_auto_flow_autoFlow_approveRun_parameter_0$schema$value ??= z.string())
57
+ let dsh_auto_flow_autoFlow_approveRun_parameter_1$schema$value
58
+ const dsh_auto_flow_autoFlow_approveRun_parameter_1$schema = () => (dsh_auto_flow_autoFlow_approveRun_parameter_1$schema$value ??= z.string())
59
+ let dsh_auto_flow_autoFlow_approveRun_result$schema$value
60
+ const dsh_auto_flow_autoFlow_approveRun_result$schema = () => (dsh_auto_flow_autoFlow_approveRun_result$schema$value ??= z.object({
61
+ 'runId': z.string(),
62
+ 'workflowId': z.string(),
63
+ 'name': z.string(),
64
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
65
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("completed"), z.literal("failed"), z.literal("cancelled"), z.literal("crashed")]),
66
+ 'workspaceDir': z.string(),
67
+ 'steps': z.array(z.object({
68
+ 'index': z.number(),
69
+ 'nodeId': z.string(),
70
+ 'itemCounts': z.union([z.undefined(), z.object({
71
+ 'in': z.record(z.string(), z.number()),
72
+ 'out': z.record(z.string(), z.number()),
33
73
  })]).optional(),
34
- }), z.object({
35
- 'kind': z.literal("background"),
36
- 'jobId': z.string(),
37
- })])
38
- const dsh_auto_flow_autoFlow_execKill_parameter_0$schema = z.string()
39
- const dsh_auto_flow_autoFlow_execKill_result$schema = z.object({
40
- 'kind': z.union([z.literal("requested"), z.literal("already-finished")]),
41
- })
42
- const dsh_auto_flow_autoFlow_execRead_parameter_0$schema = z.string()
43
- const dsh_auto_flow_autoFlow_execRead_result$schema = z.object({
44
- 'text': z.string(),
45
- 'status': z.string(),
46
- 'detail': z.union([z.undefined(), z.string()]).optional(),
47
- })
48
- const dsh_auto_flow_autoFlow_last_result$schema = z.union([z.literal(null), z.object({
49
- 'id': z.number(),
50
- 'text': z.string(),
74
+ 'inputSources': z.union([z.undefined(), z.array(z.string())]).optional(),
75
+ 'nodeType': z.string(),
76
+ 'label': z.string(),
77
+ 'status': z.union([z.literal("success"), z.literal("running"), z.literal("waiting"), z.literal("failed"), z.literal("pending"), z.literal("skipped")]),
78
+ 'statusChangedAt': z.union([z.undefined(), z.number()]).optional(),
79
+ 'startedAt': z.union([z.undefined(), z.number()]).optional(),
80
+ 'finishedAt': z.union([z.undefined(), z.number()]).optional(),
81
+ 'script': z.union([z.undefined(), z.string()]).optional(),
82
+ 'stepDir': z.union([z.undefined(), z.string()]).optional(),
83
+ 'files': z.union([z.undefined(), z.array(z.string())]).optional(),
84
+ 'items': z.union([z.undefined(), z.array(z.object({
85
+ 'json': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema8())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema8()))])),
86
+ 'pairedItem': z.union([z.undefined(), z.number()]).optional(),
87
+ }))]).optional(),
88
+ 'portItems': z.union([z.undefined(), z.record(z.string(), z.array(z.object({
89
+ 'json': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema8())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema8()))])),
90
+ 'pairedItem': z.union([z.undefined(), z.number()]).optional(),
91
+ })))]).optional(),
92
+ 'failedItems': z.union([z.undefined(), z.array(z.object({
93
+ 'index': z.number(),
94
+ 'error': z.string(),
95
+ }))]).optional(),
96
+ 'skippedCount': z.union([z.undefined(), z.number()]).optional(),
97
+ 'itemsRef': z.union([z.undefined(), z.string()]).optional(),
98
+ 'error': z.union([z.undefined(), z.string()]).optional(),
99
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
100
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
101
+ 'attempts': z.union([z.undefined(), z.array(z.object({
102
+ 'attempt': z.number(),
103
+ 'startedAt': z.number(),
104
+ 'finishedAt': z.number(),
105
+ 'durationMs': z.number(),
106
+ 'ok': z.boolean(),
107
+ 'itemCounts': z.union([z.undefined(), z.record(z.string(), z.number())]).optional(),
108
+ 'error': z.union([z.undefined(), z.string()]).optional(),
109
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
110
+ 'retryable': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
111
+ }))]).optional(),
112
+ 'logs': z.union([z.undefined(), z.array(z.object({
113
+ 'at': z.number(),
114
+ 'kind': z.string(),
115
+ 'message': z.string(),
116
+ 'data': z.union([z.undefined(), z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema8())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema8()))]))]).optional(),
117
+ }))]).optional(),
118
+ })),
119
+ 'batch': z.union([z.undefined(), z.object({
120
+ 'batchId': z.string(),
121
+ 'nodeId': z.string(),
122
+ 'port': z.string(),
123
+ 'keyField': z.union([z.undefined(), z.string()]).optional(),
124
+ })]).optional(),
125
+ 'resumeMode': z.union([z.undefined(), z.literal("rerun-all"), z.literal("skip-succeeded")]).optional(),
51
126
  'createdAt': z.number(),
52
- })])
53
- const dsh_auto_flow_autoFlow_list_result$schema = z.array(z.object({
54
- 'id': z.number(),
55
- 'text': z.string(),
127
+ 'updatedAt': z.number(),
128
+ }))
129
+ let dsh_auto_flow_autoFlow_cancelRun_parameter_0$schema$value
130
+ const dsh_auto_flow_autoFlow_cancelRun_parameter_0$schema = () => (dsh_auto_flow_autoFlow_cancelRun_parameter_0$schema$value ??= z.string())
131
+ let dsh_auto_flow_autoFlow_cancelRun_result$schema$value
132
+ const dsh_auto_flow_autoFlow_cancelRun_result$schema = () => (dsh_auto_flow_autoFlow_cancelRun_result$schema$value ??= z.object({
133
+ 'runId': z.string(),
134
+ 'workflowId': z.string(),
135
+ 'name': z.string(),
136
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
137
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("completed"), z.literal("failed"), z.literal("cancelled"), z.literal("crashed")]),
138
+ 'workspaceDir': z.string(),
139
+ 'steps': z.array(z.object({
140
+ 'index': z.number(),
141
+ 'nodeId': z.string(),
142
+ 'itemCounts': z.union([z.undefined(), z.object({
143
+ 'in': z.record(z.string(), z.number()),
144
+ 'out': z.record(z.string(), z.number()),
145
+ })]).optional(),
146
+ 'inputSources': z.union([z.undefined(), z.array(z.string())]).optional(),
147
+ 'nodeType': z.string(),
148
+ 'label': z.string(),
149
+ 'status': z.union([z.literal("success"), z.literal("running"), z.literal("waiting"), z.literal("failed"), z.literal("pending"), z.literal("skipped")]),
150
+ 'statusChangedAt': z.union([z.undefined(), z.number()]).optional(),
151
+ 'startedAt': z.union([z.undefined(), z.number()]).optional(),
152
+ 'finishedAt': z.union([z.undefined(), z.number()]).optional(),
153
+ 'script': z.union([z.undefined(), z.string()]).optional(),
154
+ 'stepDir': z.union([z.undefined(), z.string()]).optional(),
155
+ 'files': z.union([z.undefined(), z.array(z.string())]).optional(),
156
+ 'items': z.union([z.undefined(), z.array(z.object({
157
+ 'json': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema7())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema7()))])),
158
+ 'pairedItem': z.union([z.undefined(), z.number()]).optional(),
159
+ }))]).optional(),
160
+ 'portItems': z.union([z.undefined(), z.record(z.string(), z.array(z.object({
161
+ 'json': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema7())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema7()))])),
162
+ 'pairedItem': z.union([z.undefined(), z.number()]).optional(),
163
+ })))]).optional(),
164
+ 'failedItems': z.union([z.undefined(), z.array(z.object({
165
+ 'index': z.number(),
166
+ 'error': z.string(),
167
+ }))]).optional(),
168
+ 'skippedCount': z.union([z.undefined(), z.number()]).optional(),
169
+ 'itemsRef': z.union([z.undefined(), z.string()]).optional(),
170
+ 'error': z.union([z.undefined(), z.string()]).optional(),
171
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
172
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
173
+ 'attempts': z.union([z.undefined(), z.array(z.object({
174
+ 'attempt': z.number(),
175
+ 'startedAt': z.number(),
176
+ 'finishedAt': z.number(),
177
+ 'durationMs': z.number(),
178
+ 'ok': z.boolean(),
179
+ 'itemCounts': z.union([z.undefined(), z.record(z.string(), z.number())]).optional(),
180
+ 'error': z.union([z.undefined(), z.string()]).optional(),
181
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
182
+ 'retryable': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
183
+ }))]).optional(),
184
+ 'logs': z.union([z.undefined(), z.array(z.object({
185
+ 'at': z.number(),
186
+ 'kind': z.string(),
187
+ 'message': z.string(),
188
+ 'data': z.union([z.undefined(), z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema7())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema7()))]))]).optional(),
189
+ }))]).optional(),
190
+ })),
191
+ 'batch': z.union([z.undefined(), z.object({
192
+ 'batchId': z.string(),
193
+ 'nodeId': z.string(),
194
+ 'port': z.string(),
195
+ 'keyField': z.union([z.undefined(), z.string()]).optional(),
196
+ })]).optional(),
197
+ 'resumeMode': z.union([z.undefined(), z.literal("rerun-all"), z.literal("skip-succeeded")]).optional(),
56
198
  'createdAt': z.number(),
199
+ 'updatedAt': z.number(),
200
+ }))
201
+ let dsh_auto_flow_autoFlow_deleteFlow_parameter_0$schema$value
202
+ const dsh_auto_flow_autoFlow_deleteFlow_parameter_0$schema = () => (dsh_auto_flow_autoFlow_deleteFlow_parameter_0$schema$value ??= z.string())
203
+ let dsh_auto_flow_autoFlow_deleteFlow_result$schema$value
204
+ const dsh_auto_flow_autoFlow_deleteFlow_result$schema = () => (dsh_auto_flow_autoFlow_deleteFlow_result$schema$value ??= z.object({
205
+ 'deleted': z.boolean(),
206
+ }))
207
+ let dsh_auto_flow_autoFlow_listFlows_result$schema$value
208
+ const dsh_auto_flow_autoFlow_listFlows_result$schema = () => (dsh_auto_flow_autoFlow_listFlows_result$schema$value ??= z.array(z.object({
209
+ 'id': z.string(),
210
+ 'name': z.string(),
211
+ 'description': z.string(),
212
+ 'nodeCount': z.number(),
213
+ 'inputs': z.array(z.string()),
214
+ })))
215
+ let dsh_auto_flow_autoFlow_listLlmRoutes_result$schema$value
216
+ const dsh_auto_flow_autoFlow_listLlmRoutes_result$schema = () => (dsh_auto_flow_autoFlow_listLlmRoutes_result$schema$value ??= z.object({
217
+ 'routes': z.array(z.object({
218
+ 'provider': z.string(),
219
+ 'displayName': z.string(),
220
+ })),
221
+ }))
222
+ let dsh_auto_flow_autoFlow_listRouteModels_parameter_0$schema$value
223
+ const dsh_auto_flow_autoFlow_listRouteModels_parameter_0$schema = () => (dsh_auto_flow_autoFlow_listRouteModels_parameter_0$schema$value ??= z.object({
224
+ 'provider': z.string(),
225
+ }))
226
+ let dsh_auto_flow_autoFlow_listRouteModels_result$schema$value
227
+ const dsh_auto_flow_autoFlow_listRouteModels_result$schema = () => (dsh_auto_flow_autoFlow_listRouteModels_result$schema$value ??= z.object({
228
+ 'models': z.array(z.object({
229
+ 'id': z.string(),
230
+ 'name': z.string(),
231
+ })),
232
+ 'error': z.union([z.undefined(), z.string()]).optional(),
233
+ }))
234
+ let dsh_auto_flow_autoFlow_listRuns_parameter_0$schema$value
235
+ const dsh_auto_flow_autoFlow_listRuns_parameter_0$schema = () => (dsh_auto_flow_autoFlow_listRuns_parameter_0$schema$value ??= z.object({
236
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
237
+ 'workflowId': z.union([z.undefined(), z.string()]).optional(),
57
238
  }))
58
- const dsh_auto_flow_autoFlow_send_parameter_0$schema = z.string()
59
- const dsh_auto_flow_autoFlow_send_result$schema = z.object({
60
- 'id': z.number(),
61
- 'text': z.string(),
239
+ let dsh_auto_flow_autoFlow_listRuns_result$schema$value
240
+ const dsh_auto_flow_autoFlow_listRuns_result$schema = () => (dsh_auto_flow_autoFlow_listRuns_result$schema$value ??= z.array(z.object({
241
+ 'runId': z.string(),
242
+ 'workflowId': z.string(),
243
+ 'name': z.string(),
244
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
245
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("completed"), z.literal("failed"), z.literal("cancelled"), z.literal("crashed")]),
246
+ 'nodeCount': z.number(),
62
247
  'createdAt': z.number(),
63
- })
248
+ 'updatedAt': z.number(),
249
+ })))
250
+ let dsh_auto_flow_autoFlow_listScripts_result$schema$value
251
+ const dsh_auto_flow_autoFlow_listScripts_result$schema = () => (dsh_auto_flow_autoFlow_listScripts_result$schema$value ??= z.array(z.object({
252
+ 'name': z.string(),
253
+ 'label': z.string(),
254
+ 'description': z.string(),
255
+ 'params': z.array(z.object({
256
+ 'key': z.string(),
257
+ 'label': z.string(),
258
+ 'type': z.union([z.literal("string"), z.literal("number"), z.literal("boolean"), z.literal("object"), z.literal("file"), z.literal("array"), z.literal("select"), z.literal("datetime")]),
259
+ 'required': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
260
+ 'defaultValue': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))])), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]).optional(),
261
+ 'options': z.union([z.undefined(), z.array(z.object({
262
+ 'label': z.string(),
263
+ 'value': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]),
264
+ }))]).optional(),
265
+ 'multiple': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
266
+ 'format': z.union([z.undefined(), z.string()]).optional(),
267
+ 'placeholder': z.union([z.undefined(), z.string()]).optional(),
268
+ 'description': z.union([z.undefined(), z.string()]).optional(),
269
+ 'children': z.union([z.undefined(), z.array(z.lazy(() => ScriptParamFieldRemoteCodec$schema()))]).optional(),
270
+ 'variants': z.union([z.undefined(), z.array(z.object({
271
+ 'when': z.string(),
272
+ 'value': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]),
273
+ 'children': z.array(z.lazy(() => ScriptParamFieldRemoteCodec$schema())),
274
+ }))]).optional(),
275
+ 'visibleWhen': z.union([z.undefined(), z.object({
276
+ 'key': z.string(),
277
+ 'op': z.union([z.undefined(), z.literal("eq"), z.literal("not"), z.literal("gte"), z.literal("lte"), z.literal("gt"), z.literal("lt"), z.literal("startsWith"), z.literal("endsWith"), z.literal("includes"), z.literal("regex"), z.literal("exists")]).optional(),
278
+ 'value': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))])), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]).optional(),
279
+ 'values': z.union([z.undefined(), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]))]).optional(),
280
+ }), z.array(z.object({
281
+ 'key': z.string(),
282
+ 'op': z.union([z.undefined(), z.literal("eq"), z.literal("not"), z.literal("gte"), z.literal("lte"), z.literal("gt"), z.literal("lt"), z.literal("startsWith"), z.literal("endsWith"), z.literal("includes"), z.literal("regex"), z.literal("exists")]).optional(),
283
+ 'value': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))])), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]).optional(),
284
+ 'values': z.union([z.undefined(), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4()))]))]).optional(),
285
+ }))]).optional(),
286
+ })),
287
+ 'artifacts': z.union([z.undefined(), z.object({
288
+ 'filesKey': z.union([z.undefined(), z.string()]).optional(),
289
+ 'filesShape': z.union([z.undefined(), z.literal("paths"), z.literal("prompt-pairs")]).optional(),
290
+ 'filesPromptKey': z.union([z.undefined(), z.string()]).optional(),
291
+ })]).optional(),
292
+ 'source': z.union([z.undefined(), z.object({
293
+ 'id': z.string(),
294
+ 'label': z.string(),
295
+ })]).optional(),
296
+ 'diagnostics': z.union([z.undefined(), z.array(z.object({
297
+ 'name': z.string(),
298
+ 'code': z.string(),
299
+ 'message': z.string(),
300
+ }))]).optional(),
301
+ })))
302
+ let dsh_auto_flow_autoFlow_loadFlow_parameter_0$schema$value
303
+ const dsh_auto_flow_autoFlow_loadFlow_parameter_0$schema = () => (dsh_auto_flow_autoFlow_loadFlow_parameter_0$schema$value ??= z.string())
304
+ let dsh_auto_flow_autoFlow_loadFlow_result$schema$value
305
+ const dsh_auto_flow_autoFlow_loadFlow_result$schema = () => (dsh_auto_flow_autoFlow_loadFlow_result$schema$value ??= z.union([z.literal(null), z.object({
306
+ 'formatVersion': z.number(),
307
+ 'name': z.string(),
308
+ 'description': z.string(),
309
+ 'nodes': z.array(z.object({
310
+ 'id': z.string(),
311
+ 'name': z.string(),
312
+ 'type': z.string(),
313
+ 'position': z.object({
314
+ 'x': z.number(),
315
+ 'y': z.number(),
316
+ }),
317
+ 'data': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema()))])),
318
+ 'style': z.union([z.undefined(), z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema()))]))]).optional(),
319
+ })),
320
+ 'edges': z.array(z.object({
321
+ 'id': z.string(),
322
+ 'source': z.string(),
323
+ 'target': z.string(),
324
+ 'sourceHandle': z.union([z.undefined(), z.string()]).optional(),
325
+ 'targetHandle': z.union([z.undefined(), z.string()]).optional(),
326
+ 'type': z.union([z.undefined(), z.literal("default"), z.literal("custom-edge"), z.literal("straight"), z.literal("step"), z.literal("smoothstep"), z.literal("simplebezier")]).optional(),
327
+ })),
328
+ })]))
329
+ let dsh_auto_flow_autoFlow_resumeRun_parameter_0$schema$value
330
+ const dsh_auto_flow_autoFlow_resumeRun_parameter_0$schema = () => (dsh_auto_flow_autoFlow_resumeRun_parameter_0$schema$value ??= z.string())
331
+ let dsh_auto_flow_autoFlow_resumeRun_result$schema$value
332
+ const dsh_auto_flow_autoFlow_resumeRun_result$schema = () => (dsh_auto_flow_autoFlow_resumeRun_result$schema$value ??= z.object({
333
+ 'runId': z.string(),
334
+ 'workflowId': z.string(),
335
+ 'name': z.string(),
336
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
337
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("completed"), z.literal("failed"), z.literal("cancelled"), z.literal("crashed")]),
338
+ 'workspaceDir': z.string(),
339
+ 'steps': z.array(z.object({
340
+ 'index': z.number(),
341
+ 'nodeId': z.string(),
342
+ 'itemCounts': z.union([z.undefined(), z.object({
343
+ 'in': z.record(z.string(), z.number()),
344
+ 'out': z.record(z.string(), z.number()),
345
+ })]).optional(),
346
+ 'inputSources': z.union([z.undefined(), z.array(z.string())]).optional(),
347
+ 'nodeType': z.string(),
348
+ 'label': z.string(),
349
+ 'status': z.union([z.literal("success"), z.literal("running"), z.literal("waiting"), z.literal("failed"), z.literal("pending"), z.literal("skipped")]),
350
+ 'statusChangedAt': z.union([z.undefined(), z.number()]).optional(),
351
+ 'startedAt': z.union([z.undefined(), z.number()]).optional(),
352
+ 'finishedAt': z.union([z.undefined(), z.number()]).optional(),
353
+ 'script': z.union([z.undefined(), z.string()]).optional(),
354
+ 'stepDir': z.union([z.undefined(), z.string()]).optional(),
355
+ 'files': z.union([z.undefined(), z.array(z.string())]).optional(),
356
+ 'items': z.union([z.undefined(), z.array(z.object({
357
+ 'json': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema9())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema9()))])),
358
+ 'pairedItem': z.union([z.undefined(), z.number()]).optional(),
359
+ }))]).optional(),
360
+ 'portItems': z.union([z.undefined(), z.record(z.string(), z.array(z.object({
361
+ 'json': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema9())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema9()))])),
362
+ 'pairedItem': z.union([z.undefined(), z.number()]).optional(),
363
+ })))]).optional(),
364
+ 'failedItems': z.union([z.undefined(), z.array(z.object({
365
+ 'index': z.number(),
366
+ 'error': z.string(),
367
+ }))]).optional(),
368
+ 'skippedCount': z.union([z.undefined(), z.number()]).optional(),
369
+ 'itemsRef': z.union([z.undefined(), z.string()]).optional(),
370
+ 'error': z.union([z.undefined(), z.string()]).optional(),
371
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
372
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
373
+ 'attempts': z.union([z.undefined(), z.array(z.object({
374
+ 'attempt': z.number(),
375
+ 'startedAt': z.number(),
376
+ 'finishedAt': z.number(),
377
+ 'durationMs': z.number(),
378
+ 'ok': z.boolean(),
379
+ 'itemCounts': z.union([z.undefined(), z.record(z.string(), z.number())]).optional(),
380
+ 'error': z.union([z.undefined(), z.string()]).optional(),
381
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
382
+ 'retryable': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
383
+ }))]).optional(),
384
+ 'logs': z.union([z.undefined(), z.array(z.object({
385
+ 'at': z.number(),
386
+ 'kind': z.string(),
387
+ 'message': z.string(),
388
+ 'data': z.union([z.undefined(), z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema9())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema9()))]))]).optional(),
389
+ }))]).optional(),
390
+ })),
391
+ 'batch': z.union([z.undefined(), z.object({
392
+ 'batchId': z.string(),
393
+ 'nodeId': z.string(),
394
+ 'port': z.string(),
395
+ 'keyField': z.union([z.undefined(), z.string()]).optional(),
396
+ })]).optional(),
397
+ 'resumeMode': z.union([z.undefined(), z.literal("rerun-all"), z.literal("skip-succeeded")]).optional(),
398
+ 'createdAt': z.number(),
399
+ 'updatedAt': z.number(),
400
+ }))
401
+ let dsh_auto_flow_autoFlow_retryRun_parameter_0$schema$value
402
+ const dsh_auto_flow_autoFlow_retryRun_parameter_0$schema = () => (dsh_auto_flow_autoFlow_retryRun_parameter_0$schema$value ??= z.string())
403
+ let dsh_auto_flow_autoFlow_retryRun_result$schema$value
404
+ const dsh_auto_flow_autoFlow_retryRun_result$schema = () => (dsh_auto_flow_autoFlow_retryRun_result$schema$value ??= z.object({
405
+ 'runId': z.string(),
406
+ 'plan': z.object({
407
+ 'batchId': z.string(),
408
+ 'keyField': z.string(),
409
+ 'resumeMode': z.union([z.literal("rerun-all"), z.literal("skip-succeeded")]),
410
+ 'pendingCount': z.number(),
411
+ 'knownCount': z.number(),
412
+ }),
413
+ }))
414
+ let dsh_auto_flow_autoFlow_runFlow_parameter_0$schema$value
415
+ const dsh_auto_flow_autoFlow_runFlow_parameter_0$schema = () => (dsh_auto_flow_autoFlow_runFlow_parameter_0$schema$value ??= z.object({
416
+ 'flow': z.object({
417
+ 'nodes': z.array(z.object({
418
+ 'id': z.string(),
419
+ 'name': z.string(),
420
+ 'type': z.string(),
421
+ 'position': z.object({
422
+ 'x': z.number(),
423
+ 'y': z.number(),
424
+ }),
425
+ 'data': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema5())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema5()))])),
426
+ 'style': z.union([z.undefined(), z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema5())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema5()))]))]).optional(),
427
+ })),
428
+ 'edges': z.array(z.object({
429
+ 'id': z.string(),
430
+ 'source': z.string(),
431
+ 'target': z.string(),
432
+ 'sourceHandle': z.union([z.undefined(), z.string()]).optional(),
433
+ 'targetHandle': z.union([z.undefined(), z.string()]).optional(),
434
+ 'type': z.union([z.undefined(), z.literal("default"), z.literal("custom-edge"), z.literal("straight"), z.literal("step"), z.literal("smoothstep"), z.literal("simplebezier")]).optional(),
435
+ })),
436
+ }),
437
+ 'workflowId': z.string().optional(),
438
+ 'name': z.string().optional(),
439
+ 'sessionId': z.string().optional(),
440
+ }))
441
+ let dsh_auto_flow_autoFlow_runFlow_result$schema$value
442
+ const dsh_auto_flow_autoFlow_runFlow_result$schema = () => (dsh_auto_flow_autoFlow_runFlow_result$schema$value ??= z.object({
443
+ 'runId': z.string(),
444
+ }))
445
+ let dsh_auto_flow_autoFlow_runState_parameter_0$schema$value
446
+ const dsh_auto_flow_autoFlow_runState_parameter_0$schema = () => (dsh_auto_flow_autoFlow_runState_parameter_0$schema$value ??= z.string())
447
+ let dsh_auto_flow_autoFlow_runState_result$schema$value
448
+ const dsh_auto_flow_autoFlow_runState_result$schema = () => (dsh_auto_flow_autoFlow_runState_result$schema$value ??= z.union([z.literal(null), z.object({
449
+ 'runId': z.string(),
450
+ 'workflowId': z.string(),
451
+ 'name': z.string(),
452
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
453
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("completed"), z.literal("failed"), z.literal("cancelled"), z.literal("crashed")]),
454
+ 'workspaceDir': z.string(),
455
+ 'steps': z.array(z.object({
456
+ 'index': z.number(),
457
+ 'nodeId': z.string(),
458
+ 'itemCounts': z.union([z.undefined(), z.object({
459
+ 'in': z.record(z.string(), z.number()),
460
+ 'out': z.record(z.string(), z.number()),
461
+ })]).optional(),
462
+ 'inputSources': z.union([z.undefined(), z.array(z.string())]).optional(),
463
+ 'nodeType': z.string(),
464
+ 'label': z.string(),
465
+ 'status': z.union([z.literal("success"), z.literal("running"), z.literal("waiting"), z.literal("failed"), z.literal("pending"), z.literal("skipped")]),
466
+ 'statusChangedAt': z.union([z.undefined(), z.number()]).optional(),
467
+ 'startedAt': z.union([z.undefined(), z.number()]).optional(),
468
+ 'finishedAt': z.union([z.undefined(), z.number()]).optional(),
469
+ 'script': z.union([z.undefined(), z.string()]).optional(),
470
+ 'stepDir': z.union([z.undefined(), z.string()]).optional(),
471
+ 'files': z.union([z.undefined(), z.array(z.string())]).optional(),
472
+ 'items': z.union([z.undefined(), z.array(z.object({
473
+ 'json': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema6())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema6()))])),
474
+ 'pairedItem': z.union([z.undefined(), z.number()]).optional(),
475
+ }))]).optional(),
476
+ 'portItems': z.union([z.undefined(), z.record(z.string(), z.array(z.object({
477
+ 'json': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema6())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema6()))])),
478
+ 'pairedItem': z.union([z.undefined(), z.number()]).optional(),
479
+ })))]).optional(),
480
+ 'failedItems': z.union([z.undefined(), z.array(z.object({
481
+ 'index': z.number(),
482
+ 'error': z.string(),
483
+ }))]).optional(),
484
+ 'skippedCount': z.union([z.undefined(), z.number()]).optional(),
485
+ 'itemsRef': z.union([z.undefined(), z.string()]).optional(),
486
+ 'error': z.union([z.undefined(), z.string()]).optional(),
487
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
488
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
489
+ 'attempts': z.union([z.undefined(), z.array(z.object({
490
+ 'attempt': z.number(),
491
+ 'startedAt': z.number(),
492
+ 'finishedAt': z.number(),
493
+ 'durationMs': z.number(),
494
+ 'ok': z.boolean(),
495
+ 'itemCounts': z.union([z.undefined(), z.record(z.string(), z.number())]).optional(),
496
+ 'error': z.union([z.undefined(), z.string()]).optional(),
497
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
498
+ 'retryable': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
499
+ }))]).optional(),
500
+ 'logs': z.union([z.undefined(), z.array(z.object({
501
+ 'at': z.number(),
502
+ 'kind': z.string(),
503
+ 'message': z.string(),
504
+ 'data': z.union([z.undefined(), z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema6())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema6()))]))]).optional(),
505
+ }))]).optional(),
506
+ })),
507
+ 'batch': z.union([z.undefined(), z.object({
508
+ 'batchId': z.string(),
509
+ 'nodeId': z.string(),
510
+ 'port': z.string(),
511
+ 'keyField': z.union([z.undefined(), z.string()]).optional(),
512
+ })]).optional(),
513
+ 'resumeMode': z.union([z.undefined(), z.literal("rerun-all"), z.literal("skip-succeeded")]).optional(),
514
+ 'createdAt': z.number(),
515
+ 'updatedAt': z.number(),
516
+ })]))
517
+ let dsh_auto_flow_autoFlow_saveFlow_parameter_0$schema$value
518
+ const dsh_auto_flow_autoFlow_saveFlow_parameter_0$schema = () => (dsh_auto_flow_autoFlow_saveFlow_parameter_0$schema$value ??= z.string())
519
+ let dsh_auto_flow_autoFlow_saveFlow_parameter_1$schema$value
520
+ const dsh_auto_flow_autoFlow_saveFlow_parameter_1$schema = () => (dsh_auto_flow_autoFlow_saveFlow_parameter_1$schema$value ??= z.object({
521
+ 'formatVersion': z.number(),
522
+ 'name': z.string(),
523
+ 'description': z.string(),
524
+ 'nodes': z.array(z.object({
525
+ 'id': z.string(),
526
+ 'name': z.string(),
527
+ 'type': z.string(),
528
+ 'position': z.object({
529
+ 'x': z.number(),
530
+ 'y': z.number(),
531
+ }),
532
+ 'data': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema2())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema2()))])),
533
+ 'style': z.union([z.undefined(), z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema2())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema2()))]))]).optional(),
534
+ })),
535
+ 'edges': z.array(z.object({
536
+ 'id': z.string(),
537
+ 'source': z.string(),
538
+ 'target': z.string(),
539
+ 'sourceHandle': z.union([z.undefined(), z.string()]).optional(),
540
+ 'targetHandle': z.union([z.undefined(), z.string()]).optional(),
541
+ 'type': z.union([z.undefined(), z.literal("default"), z.literal("custom-edge"), z.literal("straight"), z.literal("step"), z.literal("smoothstep"), z.literal("simplebezier")]).optional(),
542
+ })),
543
+ }))
544
+ let dsh_auto_flow_autoFlow_saveFlow_result$schema$value
545
+ const dsh_auto_flow_autoFlow_saveFlow_result$schema = () => (dsh_auto_flow_autoFlow_saveFlow_result$schema$value ??= z.object({
546
+ 'formatVersion': z.number(),
547
+ 'name': z.string(),
548
+ 'description': z.string(),
549
+ 'nodes': z.array(z.object({
550
+ 'id': z.string(),
551
+ 'name': z.string(),
552
+ 'type': z.string(),
553
+ 'position': z.object({
554
+ 'x': z.number(),
555
+ 'y': z.number(),
556
+ }),
557
+ 'data': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema3())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema3()))])),
558
+ 'style': z.union([z.undefined(), z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => FlowDataValueRemoteCodec$schema3())), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema3()))]))]).optional(),
559
+ })),
560
+ 'edges': z.array(z.object({
561
+ 'id': z.string(),
562
+ 'source': z.string(),
563
+ 'target': z.string(),
564
+ 'sourceHandle': z.union([z.undefined(), z.string()]).optional(),
565
+ 'targetHandle': z.union([z.undefined(), z.string()]).optional(),
566
+ 'type': z.union([z.undefined(), z.literal("default"), z.literal("custom-edge"), z.literal("straight"), z.literal("step"), z.literal("smoothstep"), z.literal("simplebezier")]).optional(),
567
+ })),
568
+ }))
569
+ let dsh_auto_flow_autoFlow_unitUrl_parameter_0$schema$value
570
+ const dsh_auto_flow_autoFlow_unitUrl_parameter_0$schema = () => (dsh_auto_flow_autoFlow_unitUrl_parameter_0$schema$value ??= z.string())
571
+ let dsh_auto_flow_autoFlow_unitUrl_result$schema$value
572
+ const dsh_auto_flow_autoFlow_unitUrl_result$schema = () => (dsh_auto_flow_autoFlow_unitUrl_result$schema$value ??= z.object({
573
+ 'url': z.union([z.literal(null), z.string()]),
574
+ 'reason': z.string().optional(),
575
+ }))
64
576
 
65
577
  export const TYPERT_REMOTE = {
66
578
  package: 'dsh-auto-flow',
67
579
  descriptors: [
68
580
  {
69
- id: 'dsh-auto-flow#autoFlow/exec',
581
+ id: 'dsh-auto-flow#autoFlow/approveRun',
582
+ service: 'autoFlow',
583
+ namespace: 'autoFlow',
584
+ method: 'approveRun',
585
+ invocation: { kind: 'direct' },
586
+ parameters: [
587
+ {
588
+ name: 'runId',
589
+ wire: 'runId',
590
+ source: 'json',
591
+ codec: {
592
+ mode: 'strict',
593
+ typeSymbol: 'dsh-auto-flow#autoFlow/approveRun:runId',
594
+ create: dsh_auto_flow_autoFlow_approveRun_parameter_0$schema,
595
+ },
596
+ },
597
+ {
598
+ name: 'choice',
599
+ wire: 'choice',
600
+ source: 'json',
601
+ codec: {
602
+ mode: 'strict',
603
+ typeSymbol: 'dsh-auto-flow#autoFlow/approveRun:choice',
604
+ create: dsh_auto_flow_autoFlow_approveRun_parameter_1$schema,
605
+ },
606
+ },
607
+ ],
608
+ result: {
609
+ mode: 'strict',
610
+ typeSymbol: 'workflow/types#RunState',
611
+ create: dsh_auto_flow_autoFlow_approveRun_result$schema,
612
+ },
613
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":533,"column":9},
614
+ },
615
+ {
616
+ id: 'dsh-auto-flow#autoFlow/cancelRun',
617
+ service: 'autoFlow',
618
+ namespace: 'autoFlow',
619
+ method: 'cancelRun',
620
+ invocation: { kind: 'direct' },
621
+ parameters: [
622
+ {
623
+ name: 'runId',
624
+ wire: 'runId',
625
+ source: 'json',
626
+ codec: {
627
+ mode: 'strict',
628
+ typeSymbol: 'dsh-auto-flow#autoFlow/cancelRun:runId',
629
+ create: dsh_auto_flow_autoFlow_cancelRun_parameter_0$schema,
630
+ },
631
+ },
632
+ ],
633
+ result: {
634
+ mode: 'strict',
635
+ typeSymbol: 'workflow/types#RunState',
636
+ create: dsh_auto_flow_autoFlow_cancelRun_result$schema,
637
+ },
638
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":527,"column":9},
639
+ },
640
+ {
641
+ id: 'dsh-auto-flow#autoFlow/deleteFlow',
70
642
  service: 'autoFlow',
71
643
  namespace: 'autoFlow',
72
- method: 'exec',
644
+ method: 'deleteFlow',
645
+ invocation: { kind: 'direct' },
646
+ parameters: [
647
+ {
648
+ name: 'flowId',
649
+ wire: 'flowId',
650
+ source: 'json',
651
+ codec: {
652
+ mode: 'strict',
653
+ typeSymbol: 'dsh-auto-flow#autoFlow/deleteFlow:flowId',
654
+ create: dsh_auto_flow_autoFlow_deleteFlow_parameter_0$schema,
655
+ },
656
+ },
657
+ ],
658
+ result: {
659
+ mode: 'strict',
660
+ typeSymbol: 'dsh-auto-flow#autoFlow/deleteFlow:result',
661
+ create: dsh_auto_flow_autoFlow_deleteFlow_result$schema,
662
+ },
663
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":410,"column":9},
664
+ },
665
+ {
666
+ id: 'dsh-auto-flow#autoFlow/listFlows',
667
+ service: 'autoFlow',
668
+ namespace: 'autoFlow',
669
+ method: 'listFlows',
670
+ invocation: { kind: 'direct' },
671
+ parameters: [
672
+ ],
673
+ result: {
674
+ mode: 'strict',
675
+ typeSymbol: 'dsh-auto-flow#autoFlow/listFlows:result',
676
+ create: dsh_auto_flow_autoFlow_listFlows_result$schema,
677
+ },
678
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":282,"column":3},
679
+ },
680
+ {
681
+ id: 'dsh-auto-flow#autoFlow/listLlmRoutes',
682
+ service: 'autoFlow',
683
+ namespace: 'autoFlow',
684
+ method: 'listLlmRoutes',
685
+ invocation: { kind: 'direct' },
686
+ parameters: [
687
+ ],
688
+ result: {
689
+ mode: 'strict',
690
+ typeSymbol: 'workflow/types#WorkflowListLlmRoutesResult',
691
+ create: dsh_auto_flow_autoFlow_listLlmRoutes_result$schema,
692
+ },
693
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":474,"column":3},
694
+ },
695
+ {
696
+ id: 'dsh-auto-flow#autoFlow/listRouteModels',
697
+ service: 'autoFlow',
698
+ namespace: 'autoFlow',
699
+ method: 'listRouteModels',
73
700
  invocation: { kind: 'direct' },
74
701
  parameters: [
75
702
  {
@@ -78,122 +705,242 @@ export const TYPERT_REMOTE = {
78
705
  source: 'json',
79
706
  codec: {
80
707
  mode: 'strict',
81
- typeSymbol: 'dsh-auto-flow/types#ExecRequest',
82
- schema: dsh_auto_flow_autoFlow_exec_parameter_0$schema,
708
+ typeSymbol: 'workflow/types#WorkflowListRouteModelsRequest',
709
+ create: dsh_auto_flow_autoFlow_listRouteModels_parameter_0$schema,
83
710
  },
84
711
  },
85
712
  ],
86
713
  result: {
87
714
  mode: 'strict',
88
- typeSymbol: 'dsh-auto-flow/types#ExecResult',
89
- schema: dsh_auto_flow_autoFlow_exec_result$schema,
715
+ typeSymbol: 'workflow/types#WorkflowListRouteModelsResult',
716
+ create: dsh_auto_flow_autoFlow_listRouteModels_result$schema,
90
717
  },
91
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":509,"column":9},
718
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":484,"column":9},
92
719
  },
93
720
  {
94
- id: 'dsh-auto-flow#autoFlow/execKill',
721
+ id: 'dsh-auto-flow#autoFlow/listRuns',
95
722
  service: 'autoFlow',
96
723
  namespace: 'autoFlow',
97
- method: 'execKill',
724
+ method: 'listRuns',
98
725
  invocation: { kind: 'direct' },
99
726
  parameters: [
100
727
  {
101
- name: 'jobId',
102
- wire: 'jobId',
728
+ name: 'request',
729
+ wire: 'request',
103
730
  source: 'json',
104
731
  codec: {
105
732
  mode: 'strict',
106
- typeSymbol: 'dsh-auto-flow#autoFlow/execKill:jobId',
107
- schema: dsh_auto_flow_autoFlow_execKill_parameter_0$schema,
733
+ typeSymbol: 'workflow/types#WorkflowListRunsRequest',
734
+ create: dsh_auto_flow_autoFlow_listRuns_parameter_0$schema,
108
735
  },
109
736
  },
110
737
  ],
111
738
  result: {
112
739
  mode: 'strict',
113
- typeSymbol: 'dsh-auto-flow/types#ExecKillResult',
114
- schema: dsh_auto_flow_autoFlow_execKill_result$schema,
740
+ typeSymbol: 'dsh-auto-flow#autoFlow/listRuns:result',
741
+ create: dsh_auto_flow_autoFlow_listRuns_result$schema,
115
742
  },
116
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":583,"column":9},
743
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":305,"column":9},
117
744
  },
118
745
  {
119
- id: 'dsh-auto-flow#autoFlow/execRead',
746
+ id: 'dsh-auto-flow#autoFlow/listScripts',
120
747
  service: 'autoFlow',
121
748
  namespace: 'autoFlow',
122
- method: 'execRead',
749
+ method: 'listScripts',
750
+ invocation: { kind: 'direct' },
751
+ parameters: [
752
+ ],
753
+ result: {
754
+ mode: 'strict',
755
+ typeSymbol: 'dsh-auto-flow#autoFlow/listScripts:result',
756
+ create: dsh_auto_flow_autoFlow_listScripts_result$schema,
757
+ },
758
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":423,"column":9},
759
+ },
760
+ {
761
+ id: 'dsh-auto-flow#autoFlow/loadFlow',
762
+ service: 'autoFlow',
763
+ namespace: 'autoFlow',
764
+ method: 'loadFlow',
123
765
  invocation: { kind: 'direct' },
124
766
  parameters: [
125
767
  {
126
- name: 'jobId',
127
- wire: 'jobId',
768
+ name: 'flowId',
769
+ wire: 'flowId',
128
770
  source: 'json',
129
771
  codec: {
130
772
  mode: 'strict',
131
- typeSymbol: 'dsh-auto-flow#autoFlow/execRead:jobId',
132
- schema: dsh_auto_flow_autoFlow_execRead_parameter_0$schema,
773
+ typeSymbol: 'dsh-auto-flow#autoFlow/loadFlow:flowId',
774
+ create: dsh_auto_flow_autoFlow_loadFlow_parameter_0$schema,
133
775
  },
134
776
  },
135
777
  ],
136
778
  result: {
137
779
  mode: 'strict',
138
- typeSymbol: 'dsh-auto-flow/types#ExecReadResult',
139
- schema: dsh_auto_flow_autoFlow_execRead_result$schema,
780
+ typeSymbol: 'dsh-auto-flow#autoFlow/loadFlow:result',
781
+ create: dsh_auto_flow_autoFlow_loadFlow_result$schema,
140
782
  },
141
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":557,"column":9},
783
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":332,"column":9},
142
784
  },
143
785
  {
144
- id: 'dsh-auto-flow#autoFlow/last',
786
+ id: 'dsh-auto-flow#autoFlow/resumeRun',
145
787
  service: 'autoFlow',
146
788
  namespace: 'autoFlow',
147
- method: 'last',
789
+ method: 'resumeRun',
148
790
  invocation: { kind: 'direct' },
149
791
  parameters: [
792
+ {
793
+ name: 'runId',
794
+ wire: 'runId',
795
+ source: 'json',
796
+ codec: {
797
+ mode: 'strict',
798
+ typeSymbol: 'dsh-auto-flow#autoFlow/resumeRun:runId',
799
+ create: dsh_auto_flow_autoFlow_resumeRun_parameter_0$schema,
800
+ },
801
+ },
802
+ ],
803
+ result: {
804
+ mode: 'strict',
805
+ typeSymbol: 'workflow/types#RunState',
806
+ create: dsh_auto_flow_autoFlow_resumeRun_result$schema,
807
+ },
808
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":544,"column":9},
809
+ },
810
+ {
811
+ id: 'dsh-auto-flow#autoFlow/retryRun',
812
+ service: 'autoFlow',
813
+ namespace: 'autoFlow',
814
+ method: 'retryRun',
815
+ invocation: { kind: 'direct' },
816
+ parameters: [
817
+ {
818
+ name: 'runId',
819
+ wire: 'runId',
820
+ source: 'json',
821
+ codec: {
822
+ mode: 'strict',
823
+ typeSymbol: 'dsh-auto-flow#autoFlow/retryRun:runId',
824
+ create: dsh_auto_flow_autoFlow_retryRun_parameter_0$schema,
825
+ },
826
+ },
150
827
  ],
151
828
  result: {
152
829
  mode: 'strict',
153
- typeSymbol: 'dsh-auto-flow#autoFlow/last:result',
154
- schema: dsh_auto_flow_autoFlow_last_result$schema,
830
+ typeSymbol: 'dsh-auto-flow#autoFlow/retryRun:result',
831
+ create: dsh_auto_flow_autoFlow_retryRun_result$schema,
155
832
  },
156
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":485,"column":3},
833
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":559,"column":9},
157
834
  },
158
835
  {
159
- id: 'dsh-auto-flow#autoFlow/list',
836
+ id: 'dsh-auto-flow#autoFlow/runFlow',
160
837
  service: 'autoFlow',
161
838
  namespace: 'autoFlow',
162
- method: 'list',
839
+ method: 'runFlow',
163
840
  invocation: { kind: 'direct' },
164
841
  parameters: [
842
+ {
843
+ name: 'request',
844
+ wire: 'request',
845
+ source: 'json',
846
+ codec: {
847
+ mode: 'strict',
848
+ typeSymbol: 'dsh-auto-flow#autoFlow/runFlow:request',
849
+ create: dsh_auto_flow_autoFlow_runFlow_parameter_0$schema,
850
+ },
851
+ },
852
+ ],
853
+ result: {
854
+ mode: 'strict',
855
+ typeSymbol: 'dsh-auto-flow#autoFlow/runFlow:result',
856
+ create: dsh_auto_flow_autoFlow_runFlow_result$schema,
857
+ },
858
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":510,"column":9},
859
+ },
860
+ {
861
+ id: 'dsh-auto-flow#autoFlow/runState',
862
+ service: 'autoFlow',
863
+ namespace: 'autoFlow',
864
+ method: 'runState',
865
+ invocation: { kind: 'direct' },
866
+ parameters: [
867
+ {
868
+ name: 'runId',
869
+ wire: 'runId',
870
+ source: 'json',
871
+ codec: {
872
+ mode: 'strict',
873
+ typeSymbol: 'dsh-auto-flow#autoFlow/runState:runId',
874
+ create: dsh_auto_flow_autoFlow_runState_parameter_0$schema,
875
+ },
876
+ },
877
+ ],
878
+ result: {
879
+ mode: 'strict',
880
+ typeSymbol: 'dsh-auto-flow#autoFlow/runState:result',
881
+ create: dsh_auto_flow_autoFlow_runState_result$schema,
882
+ },
883
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":521,"column":9},
884
+ },
885
+ {
886
+ id: 'dsh-auto-flow#autoFlow/saveFlow',
887
+ service: 'autoFlow',
888
+ namespace: 'autoFlow',
889
+ method: 'saveFlow',
890
+ invocation: { kind: 'direct' },
891
+ parameters: [
892
+ {
893
+ name: 'flowId',
894
+ wire: 'flowId',
895
+ source: 'json',
896
+ codec: {
897
+ mode: 'strict',
898
+ typeSymbol: 'dsh-auto-flow#autoFlow/saveFlow:flowId',
899
+ create: dsh_auto_flow_autoFlow_saveFlow_parameter_0$schema,
900
+ },
901
+ },
902
+ {
903
+ name: 'flow',
904
+ wire: 'flow',
905
+ source: 'json',
906
+ codec: {
907
+ mode: 'strict',
908
+ typeSymbol: 'workflow/types#WorkflowDefinition',
909
+ create: dsh_auto_flow_autoFlow_saveFlow_parameter_1$schema,
910
+ },
911
+ },
165
912
  ],
166
913
  result: {
167
914
  mode: 'strict',
168
- typeSymbol: 'dsh-auto-flow#autoFlow/list:result',
169
- schema: dsh_auto_flow_autoFlow_list_result$schema,
915
+ typeSymbol: 'workflow/types#WorkflowDefinition',
916
+ create: dsh_auto_flow_autoFlow_saveFlow_result$schema,
170
917
  },
171
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":479,"column":3},
918
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":359,"column":9},
172
919
  },
173
920
  {
174
- id: 'dsh-auto-flow#autoFlow/send',
921
+ id: 'dsh-auto-flow#autoFlow/unitUrl',
175
922
  service: 'autoFlow',
176
923
  namespace: 'autoFlow',
177
- method: 'send',
924
+ method: 'unitUrl',
178
925
  invocation: { kind: 'direct' },
179
926
  parameters: [
180
927
  {
181
- name: 'text',
182
- wire: 'text',
928
+ name: 'unit',
929
+ wire: 'unit',
183
930
  source: 'json',
184
931
  codec: {
185
932
  mode: 'strict',
186
- typeSymbol: 'dsh-auto-flow#autoFlow/send:text',
187
- schema: dsh_auto_flow_autoFlow_send_parameter_0$schema,
933
+ typeSymbol: 'dsh-auto-flow#autoFlow/unitUrl:unit',
934
+ create: dsh_auto_flow_autoFlow_unitUrl_parameter_0$schema,
188
935
  },
189
936
  },
190
937
  ],
191
938
  result: {
192
939
  mode: 'strict',
193
- typeSymbol: 'dsh-auto-flow/types#Greeting',
194
- schema: dsh_auto_flow_autoFlow_send_result$schema,
940
+ typeSymbol: 'dsh-auto-flow/types#UnitEntryResult',
941
+ create: dsh_auto_flow_autoFlow_unitUrl_result$schema,
195
942
  },
196
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":451,"column":9},
943
+ sourceLocation: {"file":"packages/business/dsh-auto-flow/src/host/service.ts","line":240,"column":9},
197
944
  },
198
945
  ],
199
946
  }