dsh-auto-flow 0.1.1 → 0.1.2

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,380 @@
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(),
4
+ const FlowDataValueRemoteCodec$schema = 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))])
5
+ const FlowDataValueRemoteCodec$schema2 = 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))])
6
+ const FlowDataValueRemoteCodec$schema3 = 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))])
7
+ const FlowDataValueRemoteCodec$schema4 = 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))])
8
+ const FlowDataValueRemoteCodec$schema5 = 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))])
9
+ const FlowDataValueRemoteCodec$schema6 = 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))])
10
+ const FlowDataValueRemoteCodec$schema7 = 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))])
11
+ const FlowDataValueRemoteCodec$schema8 = 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))])
12
+ const dsh_auto_flow_autoFlow_approveRun_parameter_0$schema = z.string()
13
+ const dsh_auto_flow_autoFlow_approveRun_parameter_1$schema = z.string()
14
+ const dsh_auto_flow_autoFlow_approveRun_result$schema = z.object({
15
+ 'runId': z.string(),
16
+ 'workflowId': z.string(),
17
+ 'name': z.string(),
18
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
19
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("completed"), z.literal("failed"), z.literal("cancelled")]),
20
+ 'workspaceDir': z.string(),
21
+ 'steps': z.array(z.object({
22
+ 'nodeId': z.string(),
23
+ 'nodeType': z.string(),
24
+ 'label': z.string(),
25
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("failed"), z.literal("pending"), z.literal("success"), z.literal("skipped")]),
26
+ 'script': z.union([z.undefined(), z.string()]).optional(),
27
+ 'stepDir': z.union([z.undefined(), z.string()]).optional(),
28
+ 'result': 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$schema)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema))])), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema))]).optional(),
29
+ 'error': z.union([z.undefined(), z.string()]).optional(),
30
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
31
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
32
+ })),
33
+ 'createdAt': z.number(),
34
+ 'updatedAt': z.number(),
10
35
  })
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(),
36
+ const dsh_auto_flow_autoFlow_cancelRun_parameter_0$schema = z.string()
37
+ const dsh_auto_flow_autoFlow_cancelRun_result$schema = z.object({
38
+ 'runId': z.string(),
39
+ 'workflowId': z.string(),
40
+ 'name': z.string(),
41
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
42
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("completed"), z.literal("failed"), z.literal("cancelled")]),
43
+ 'workspaceDir': z.string(),
44
+ 'steps': z.array(z.object({
45
+ 'nodeId': z.string(),
46
+ 'nodeType': z.string(),
47
+ 'label': z.string(),
48
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("failed"), z.literal("pending"), z.literal("success"), z.literal("skipped")]),
49
+ 'script': z.union([z.undefined(), z.string()]).optional(),
50
+ 'stepDir': z.union([z.undefined(), z.string()]).optional(),
51
+ 'result': 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$schema8)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema8))])), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema8))]).optional(),
52
+ 'error': z.union([z.undefined(), z.string()]).optional(),
53
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
54
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
55
+ })),
56
+ 'createdAt': z.number(),
57
+ 'updatedAt': z.number(),
58
+ })
59
+ const dsh_auto_flow_autoFlow_deleteFlow_parameter_0$schema = z.string()
60
+ const dsh_auto_flow_autoFlow_deleteFlow_result$schema = z.object({
61
+ 'deleted': z.boolean(),
62
+ })
63
+ const dsh_auto_flow_autoFlow_listFlows_result$schema = z.array(z.object({
64
+ 'id': z.string(),
65
+ 'name': z.string(),
66
+ 'description': z.string(),
67
+ 'nodeCount': z.number(),
68
+ 'inputs': z.array(z.string()),
69
+ }))
70
+ const dsh_auto_flow_autoFlow_listLlmRoutes_result$schema = z.object({
71
+ 'routes': z.array(z.object({
72
+ 'provider': z.string(),
73
+ 'displayName': z.string(),
74
+ })),
75
+ })
76
+ const dsh_auto_flow_autoFlow_listRouteModels_parameter_0$schema = z.object({
77
+ 'provider': z.string(),
78
+ })
79
+ const dsh_auto_flow_autoFlow_listRouteModels_result$schema = z.object({
80
+ 'models': z.array(z.object({
81
+ 'id': z.string(),
82
+ 'name': z.string(),
83
+ })),
84
+ 'error': z.union([z.undefined(), z.string()]).optional(),
85
+ })
86
+ const dsh_auto_flow_autoFlow_listRuns_parameter_0$schema = z.object({
87
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
88
+ 'workflowId': z.union([z.undefined(), z.string()]).optional(),
89
+ })
90
+ const dsh_auto_flow_autoFlow_listRuns_result$schema = z.array(z.object({
91
+ 'runId': z.string(),
92
+ 'workflowId': z.string(),
93
+ 'name': z.string(),
94
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
95
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("completed"), z.literal("failed"), z.literal("cancelled")]),
96
+ 'nodeCount': z.number(),
97
+ 'createdAt': z.number(),
98
+ 'updatedAt': z.number(),
99
+ }))
100
+ const dsh_auto_flow_autoFlow_listScripts_result$schema = z.array(z.object({
101
+ 'name': z.string(),
102
+ 'label': z.string(),
103
+ 'description': z.string(),
104
+ 'params': z.array(z.object({
105
+ 'key': z.string(),
106
+ 'label': z.string(),
107
+ 'type': z.union([z.literal("string"), z.literal("number"), z.literal("boolean"), z.literal("object"), z.literal("select"), z.literal("datetime"), z.literal("array")]),
108
+ 'required': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
109
+ '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$schema5)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema5))])), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema5))]).optional(),
110
+ 'options': z.union([z.undefined(), z.array(z.object({
111
+ 'label': z.string(),
112
+ '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))]),
113
+ }))]).optional(),
114
+ 'format': z.union([z.undefined(), z.string()]).optional(),
115
+ 'placeholder': z.union([z.undefined(), z.string()]).optional(),
116
+ 'description': z.union([z.undefined(), z.string()]).optional(),
117
+ })),
118
+ 'artifacts': z.union([z.undefined(), z.object({
119
+ 'filesKey': z.union([z.undefined(), z.string()]).optional(),
120
+ 'filesShape': z.union([z.undefined(), z.literal("paths"), z.literal("vidu-imgs")]).optional(),
121
+ 'filesPromptKey': z.union([z.undefined(), z.string()]).optional(),
33
122
  })]).optional(),
34
- }), z.object({
35
- 'kind': z.literal("background"),
36
- 'jobId': z.string(),
123
+ }))
124
+ const dsh_auto_flow_autoFlow_loadFlow_parameter_0$schema = z.string()
125
+ const dsh_auto_flow_autoFlow_loadFlow_result$schema = z.union([z.literal(null), z.object({
126
+ 'formatVersion': z.number(),
127
+ 'name': z.string(),
128
+ 'description': z.string(),
129
+ 'nodes': z.array(z.object({
130
+ 'id': z.string(),
131
+ 'type': z.string(),
132
+ 'position': z.object({
133
+ 'x': z.number(),
134
+ 'y': z.number(),
135
+ }),
136
+ '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))])),
137
+ '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(),
138
+ })),
139
+ 'edges': z.array(z.object({
140
+ 'id': z.string(),
141
+ 'source': z.string(),
142
+ 'target': z.string(),
143
+ 'sourceHandle': z.union([z.undefined(), z.string()]).optional(),
144
+ 'targetHandle': z.union([z.undefined(), z.string()]).optional(),
145
+ 'type': z.union([z.undefined(), z.string()]).optional(),
146
+ 'animated': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
147
+ '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$schema2)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema2))]))]).optional(),
148
+ })),
37
149
  })])
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")]),
150
+ const dsh_auto_flow_autoFlow_runFlow_parameter_0$schema = z.object({
151
+ 'flow': z.object({
152
+ 'nodes': z.array(z.object({
153
+ 'id': z.string(),
154
+ 'type': z.string(),
155
+ 'position': z.object({
156
+ 'x': z.number(),
157
+ 'y': z.number(),
158
+ }),
159
+ '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$schema6)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema6))])),
160
+ '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$schema6)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema6))]))]).optional(),
161
+ })),
162
+ 'edges': z.array(z.object({
163
+ 'id': z.string(),
164
+ 'source': z.string(),
165
+ 'target': z.string(),
166
+ 'sourceHandle': z.union([z.undefined(), z.string()]).optional(),
167
+ 'targetHandle': z.union([z.undefined(), z.string()]).optional(),
168
+ 'type': z.union([z.undefined(), z.string()]).optional(),
169
+ 'animated': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
170
+ '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(),
171
+ })),
172
+ }),
173
+ 'workflowId': z.union([z.undefined(), z.string()]).optional(),
174
+ 'name': z.union([z.undefined(), z.string()]).optional(),
175
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
41
176
  })
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(),
177
+ const dsh_auto_flow_autoFlow_runFlow_result$schema = z.object({
178
+ 'runId': z.string(),
47
179
  })
48
- const dsh_auto_flow_autoFlow_last_result$schema = z.union([z.literal(null), z.object({
49
- 'id': z.number(),
50
- 'text': z.string(),
180
+ const dsh_auto_flow_autoFlow_runState_parameter_0$schema = z.string()
181
+ const dsh_auto_flow_autoFlow_runState_result$schema = z.union([z.literal(null), z.object({
182
+ 'runId': z.string(),
183
+ 'workflowId': z.string(),
184
+ 'name': z.string(),
185
+ 'sessionId': z.union([z.undefined(), z.string()]).optional(),
186
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("completed"), z.literal("failed"), z.literal("cancelled")]),
187
+ 'workspaceDir': z.string(),
188
+ 'steps': z.array(z.object({
189
+ 'nodeId': z.string(),
190
+ 'nodeType': z.string(),
191
+ 'label': z.string(),
192
+ 'status': z.union([z.literal("running"), z.literal("waiting"), z.literal("failed"), z.literal("pending"), z.literal("success"), z.literal("skipped")]),
193
+ 'script': z.union([z.undefined(), z.string()]).optional(),
194
+ 'stepDir': z.union([z.undefined(), z.string()]).optional(),
195
+ 'result': 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$schema7)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema7))])), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema7))]).optional(),
196
+ 'error': z.union([z.undefined(), z.string()]).optional(),
197
+ 'errorCode': z.union([z.undefined(), z.string()]).optional(),
198
+ 'durationMs': z.union([z.undefined(), z.number()]).optional(),
199
+ })),
51
200
  'createdAt': z.number(),
201
+ 'updatedAt': z.number(),
52
202
  })])
53
- const dsh_auto_flow_autoFlow_list_result$schema = z.array(z.object({
54
- 'id': z.number(),
55
- 'text': z.string(),
56
- 'createdAt': z.number(),
57
- }))
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(),
62
- 'createdAt': z.number(),
203
+ const dsh_auto_flow_autoFlow_saveFlow_parameter_0$schema = z.string()
204
+ const dsh_auto_flow_autoFlow_saveFlow_parameter_1$schema = z.object({
205
+ 'formatVersion': z.number(),
206
+ 'name': z.string(),
207
+ 'description': z.string(),
208
+ 'nodes': z.array(z.object({
209
+ 'id': z.string(),
210
+ 'type': z.string(),
211
+ 'position': z.object({
212
+ 'x': z.number(),
213
+ 'y': z.number(),
214
+ }),
215
+ '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))])),
216
+ '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(),
217
+ })),
218
+ 'edges': z.array(z.object({
219
+ 'id': z.string(),
220
+ 'source': z.string(),
221
+ 'target': z.string(),
222
+ 'sourceHandle': z.union([z.undefined(), z.string()]).optional(),
223
+ 'targetHandle': z.union([z.undefined(), z.string()]).optional(),
224
+ 'type': z.union([z.undefined(), z.string()]).optional(),
225
+ 'animated': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
226
+ '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$schema3)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema3))]))]).optional(),
227
+ })),
228
+ })
229
+ const dsh_auto_flow_autoFlow_saveFlow_result$schema = z.object({
230
+ 'formatVersion': z.number(),
231
+ 'name': z.string(),
232
+ 'description': z.string(),
233
+ 'nodes': z.array(z.object({
234
+ 'id': z.string(),
235
+ 'type': z.string(),
236
+ 'position': z.object({
237
+ 'x': z.number(),
238
+ 'y': z.number(),
239
+ }),
240
+ '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$schema4)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4))])),
241
+ '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$schema4)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4))]))]).optional(),
242
+ })),
243
+ 'edges': z.array(z.object({
244
+ 'id': z.string(),
245
+ 'source': z.string(),
246
+ 'target': z.string(),
247
+ 'sourceHandle': z.union([z.undefined(), z.string()]).optional(),
248
+ 'targetHandle': z.union([z.undefined(), z.string()]).optional(),
249
+ 'type': z.union([z.undefined(), z.string()]).optional(),
250
+ 'animated': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
251
+ '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$schema4)), z.record(z.string(), z.lazy(() => FlowDataValueRemoteCodec$schema4))]))]).optional(),
252
+ })),
63
253
  })
64
254
 
65
255
  export const TYPERT_REMOTE = {
66
256
  package: 'dsh-auto-flow',
67
257
  descriptors: [
68
258
  {
69
- id: 'dsh-auto-flow#autoFlow/exec',
259
+ id: 'dsh-auto-flow#autoFlow/approveRun',
70
260
  service: 'autoFlow',
71
261
  namespace: 'autoFlow',
72
- method: 'exec',
262
+ method: 'approveRun',
263
+ invocation: { kind: 'direct' },
264
+ parameters: [
265
+ {
266
+ name: 'runId',
267
+ wire: 'runId',
268
+ source: 'json',
269
+ codec: {
270
+ mode: 'strict',
271
+ typeSymbol: 'dsh-auto-flow#autoFlow/approveRun:runId',
272
+ schema: dsh_auto_flow_autoFlow_approveRun_parameter_0$schema,
273
+ },
274
+ },
275
+ {
276
+ name: 'choice',
277
+ wire: 'choice',
278
+ source: 'json',
279
+ codec: {
280
+ mode: 'strict',
281
+ typeSymbol: 'dsh-auto-flow#autoFlow/approveRun:choice',
282
+ schema: dsh_auto_flow_autoFlow_approveRun_parameter_1$schema,
283
+ },
284
+ },
285
+ ],
286
+ result: {
287
+ mode: 'strict',
288
+ typeSymbol: 'dsh-auto-flow/types#RunState',
289
+ schema: dsh_auto_flow_autoFlow_approveRun_result$schema,
290
+ },
291
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":1019,"column":9},
292
+ },
293
+ {
294
+ id: 'dsh-auto-flow#autoFlow/cancelRun',
295
+ service: 'autoFlow',
296
+ namespace: 'autoFlow',
297
+ method: 'cancelRun',
298
+ invocation: { kind: 'direct' },
299
+ parameters: [
300
+ {
301
+ name: 'runId',
302
+ wire: 'runId',
303
+ source: 'json',
304
+ codec: {
305
+ mode: 'strict',
306
+ typeSymbol: 'dsh-auto-flow#autoFlow/cancelRun:runId',
307
+ schema: dsh_auto_flow_autoFlow_cancelRun_parameter_0$schema,
308
+ },
309
+ },
310
+ ],
311
+ result: {
312
+ mode: 'strict',
313
+ typeSymbol: 'dsh-auto-flow/types#RunState',
314
+ schema: dsh_auto_flow_autoFlow_cancelRun_result$schema,
315
+ },
316
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":988,"column":9},
317
+ },
318
+ {
319
+ id: 'dsh-auto-flow#autoFlow/deleteFlow',
320
+ service: 'autoFlow',
321
+ namespace: 'autoFlow',
322
+ method: 'deleteFlow',
323
+ invocation: { kind: 'direct' },
324
+ parameters: [
325
+ {
326
+ name: 'flowId',
327
+ wire: 'flowId',
328
+ source: 'json',
329
+ codec: {
330
+ mode: 'strict',
331
+ typeSymbol: 'dsh-auto-flow#autoFlow/deleteFlow:flowId',
332
+ schema: dsh_auto_flow_autoFlow_deleteFlow_parameter_0$schema,
333
+ },
334
+ },
335
+ ],
336
+ result: {
337
+ mode: 'strict',
338
+ typeSymbol: 'dsh-auto-flow#autoFlow/deleteFlow:result',
339
+ schema: dsh_auto_flow_autoFlow_deleteFlow_result$schema,
340
+ },
341
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":420,"column":9},
342
+ },
343
+ {
344
+ id: 'dsh-auto-flow#autoFlow/listFlows',
345
+ service: 'autoFlow',
346
+ namespace: 'autoFlow',
347
+ method: 'listFlows',
348
+ invocation: { kind: 'direct' },
349
+ parameters: [
350
+ ],
351
+ result: {
352
+ mode: 'strict',
353
+ typeSymbol: 'dsh-auto-flow#autoFlow/listFlows:result',
354
+ schema: dsh_auto_flow_autoFlow_listFlows_result$schema,
355
+ },
356
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":365,"column":3},
357
+ },
358
+ {
359
+ id: 'dsh-auto-flow#autoFlow/listLlmRoutes',
360
+ service: 'autoFlow',
361
+ namespace: 'autoFlow',
362
+ method: 'listLlmRoutes',
363
+ invocation: { kind: 'direct' },
364
+ parameters: [
365
+ ],
366
+ result: {
367
+ mode: 'strict',
368
+ typeSymbol: 'dsh-auto-flow/types#WorkflowListLlmRoutesResult',
369
+ schema: dsh_auto_flow_autoFlow_listLlmRoutes_result$schema,
370
+ },
371
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":435,"column":3},
372
+ },
373
+ {
374
+ id: 'dsh-auto-flow#autoFlow/listRouteModels',
375
+ service: 'autoFlow',
376
+ namespace: 'autoFlow',
377
+ method: 'listRouteModels',
73
378
  invocation: { kind: 'direct' },
74
379
  parameters: [
75
380
  {
@@ -78,122 +383,167 @@ export const TYPERT_REMOTE = {
78
383
  source: 'json',
79
384
  codec: {
80
385
  mode: 'strict',
81
- typeSymbol: 'dsh-auto-flow/types#ExecRequest',
82
- schema: dsh_auto_flow_autoFlow_exec_parameter_0$schema,
386
+ typeSymbol: 'dsh-auto-flow/types#WorkflowListRouteModelsRequest',
387
+ schema: dsh_auto_flow_autoFlow_listRouteModels_parameter_0$schema,
83
388
  },
84
389
  },
85
390
  ],
86
391
  result: {
87
392
  mode: 'strict',
88
- typeSymbol: 'dsh-auto-flow/types#ExecResult',
89
- schema: dsh_auto_flow_autoFlow_exec_result$schema,
393
+ typeSymbol: 'dsh-auto-flow/types#WorkflowListRouteModelsResult',
394
+ schema: dsh_auto_flow_autoFlow_listRouteModels_result$schema,
90
395
  },
91
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":509,"column":9},
396
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":445,"column":9},
92
397
  },
93
398
  {
94
- id: 'dsh-auto-flow#autoFlow/execKill',
399
+ id: 'dsh-auto-flow#autoFlow/listRuns',
95
400
  service: 'autoFlow',
96
401
  namespace: 'autoFlow',
97
- method: 'execKill',
402
+ method: 'listRuns',
98
403
  invocation: { kind: 'direct' },
99
404
  parameters: [
100
405
  {
101
- name: 'jobId',
102
- wire: 'jobId',
406
+ name: 'request',
407
+ wire: 'request',
103
408
  source: 'json',
104
409
  codec: {
105
410
  mode: 'strict',
106
- typeSymbol: 'dsh-auto-flow#autoFlow/execKill:jobId',
107
- schema: dsh_auto_flow_autoFlow_execKill_parameter_0$schema,
411
+ typeSymbol: 'dsh-auto-flow/types#WorkflowListRunsRequest',
412
+ schema: dsh_auto_flow_autoFlow_listRuns_parameter_0$schema,
108
413
  },
109
414
  },
110
415
  ],
111
416
  result: {
112
417
  mode: 'strict',
113
- typeSymbol: 'dsh-auto-flow/types#ExecKillResult',
114
- schema: dsh_auto_flow_autoFlow_execKill_result$schema,
418
+ typeSymbol: 'dsh-auto-flow#autoFlow/listRuns:result',
419
+ schema: dsh_auto_flow_autoFlow_listRuns_result$schema,
420
+ },
421
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":384,"column":9},
422
+ },
423
+ {
424
+ id: 'dsh-auto-flow#autoFlow/listScripts',
425
+ service: 'autoFlow',
426
+ namespace: 'autoFlow',
427
+ method: 'listScripts',
428
+ invocation: { kind: 'direct' },
429
+ parameters: [
430
+ ],
431
+ result: {
432
+ mode: 'strict',
433
+ typeSymbol: 'dsh-auto-flow#autoFlow/listScripts:result',
434
+ schema: dsh_auto_flow_autoFlow_listScripts_result$schema,
115
435
  },
116
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":583,"column":9},
436
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":427,"column":9},
117
437
  },
118
438
  {
119
- id: 'dsh-auto-flow#autoFlow/execRead',
439
+ id: 'dsh-auto-flow#autoFlow/loadFlow',
120
440
  service: 'autoFlow',
121
441
  namespace: 'autoFlow',
122
- method: 'execRead',
442
+ method: 'loadFlow',
123
443
  invocation: { kind: 'direct' },
124
444
  parameters: [
125
445
  {
126
- name: 'jobId',
127
- wire: 'jobId',
446
+ name: 'flowId',
447
+ wire: 'flowId',
128
448
  source: 'json',
129
449
  codec: {
130
450
  mode: 'strict',
131
- typeSymbol: 'dsh-auto-flow#autoFlow/execRead:jobId',
132
- schema: dsh_auto_flow_autoFlow_execRead_parameter_0$schema,
451
+ typeSymbol: 'dsh-auto-flow#autoFlow/loadFlow:flowId',
452
+ schema: dsh_auto_flow_autoFlow_loadFlow_parameter_0$schema,
133
453
  },
134
454
  },
135
455
  ],
136
456
  result: {
137
457
  mode: 'strict',
138
- typeSymbol: 'dsh-auto-flow/types#ExecReadResult',
139
- schema: dsh_auto_flow_autoFlow_execRead_result$schema,
458
+ typeSymbol: 'dsh-auto-flow#autoFlow/loadFlow:result',
459
+ schema: dsh_auto_flow_autoFlow_loadFlow_result$schema,
140
460
  },
141
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":557,"column":9},
461
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":403,"column":3},
142
462
  },
143
463
  {
144
- id: 'dsh-auto-flow#autoFlow/last',
464
+ id: 'dsh-auto-flow#autoFlow/runFlow',
145
465
  service: 'autoFlow',
146
466
  namespace: 'autoFlow',
147
- method: 'last',
467
+ method: 'runFlow',
148
468
  invocation: { kind: 'direct' },
149
469
  parameters: [
470
+ {
471
+ name: 'request',
472
+ wire: 'request',
473
+ source: 'json',
474
+ codec: {
475
+ mode: 'strict',
476
+ typeSymbol: 'dsh-auto-flow#autoFlow/runFlow:request',
477
+ schema: dsh_auto_flow_autoFlow_runFlow_parameter_0$schema,
478
+ },
479
+ },
150
480
  ],
151
481
  result: {
152
482
  mode: 'strict',
153
- typeSymbol: 'dsh-auto-flow#autoFlow/last:result',
154
- schema: dsh_auto_flow_autoFlow_last_result$schema,
483
+ typeSymbol: 'dsh-auto-flow#autoFlow/runFlow:result',
484
+ schema: dsh_auto_flow_autoFlow_runFlow_result$schema,
155
485
  },
156
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":485,"column":3},
486
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":470,"column":9},
157
487
  },
158
488
  {
159
- id: 'dsh-auto-flow#autoFlow/list',
489
+ id: 'dsh-auto-flow#autoFlow/runState',
160
490
  service: 'autoFlow',
161
491
  namespace: 'autoFlow',
162
- method: 'list',
492
+ method: 'runState',
163
493
  invocation: { kind: 'direct' },
164
494
  parameters: [
495
+ {
496
+ name: 'runId',
497
+ wire: 'runId',
498
+ source: 'json',
499
+ codec: {
500
+ mode: 'strict',
501
+ typeSymbol: 'dsh-auto-flow#autoFlow/runState:runId',
502
+ schema: dsh_auto_flow_autoFlow_runState_parameter_0$schema,
503
+ },
504
+ },
165
505
  ],
166
506
  result: {
167
507
  mode: 'strict',
168
- typeSymbol: 'dsh-auto-flow#autoFlow/list:result',
169
- schema: dsh_auto_flow_autoFlow_list_result$schema,
508
+ typeSymbol: 'dsh-auto-flow#autoFlow/runState:result',
509
+ schema: dsh_auto_flow_autoFlow_runState_result$schema,
170
510
  },
171
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":479,"column":3},
511
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":979,"column":9},
172
512
  },
173
513
  {
174
- id: 'dsh-auto-flow#autoFlow/send',
514
+ id: 'dsh-auto-flow#autoFlow/saveFlow',
175
515
  service: 'autoFlow',
176
516
  namespace: 'autoFlow',
177
- method: 'send',
517
+ method: 'saveFlow',
178
518
  invocation: { kind: 'direct' },
179
519
  parameters: [
180
520
  {
181
- name: 'text',
182
- wire: 'text',
521
+ name: 'flowId',
522
+ wire: 'flowId',
523
+ source: 'json',
524
+ codec: {
525
+ mode: 'strict',
526
+ typeSymbol: 'dsh-auto-flow#autoFlow/saveFlow:flowId',
527
+ schema: dsh_auto_flow_autoFlow_saveFlow_parameter_0$schema,
528
+ },
529
+ },
530
+ {
531
+ name: 'flow',
532
+ wire: 'flow',
183
533
  source: 'json',
184
534
  codec: {
185
535
  mode: 'strict',
186
- typeSymbol: 'dsh-auto-flow#autoFlow/send:text',
187
- schema: dsh_auto_flow_autoFlow_send_parameter_0$schema,
536
+ typeSymbol: 'dsh-auto-flow/types#WorkflowDefinition',
537
+ schema: dsh_auto_flow_autoFlow_saveFlow_parameter_1$schema,
188
538
  },
189
539
  },
190
540
  ],
191
541
  result: {
192
542
  mode: 'strict',
193
- typeSymbol: 'dsh-auto-flow/types#Greeting',
194
- schema: dsh_auto_flow_autoFlow_send_result$schema,
543
+ typeSymbol: 'dsh-auto-flow/types#WorkflowDefinition',
544
+ schema: dsh_auto_flow_autoFlow_saveFlow_result$schema,
195
545
  },
196
- sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":451,"column":9},
546
+ sourceLocation: {"file":"packages/dsh-auto-flow/src/host/service.ts","line":411,"column":9},
197
547
  },
198
548
  ],
199
549
  }