@tapicker/bridge 1.0.0 → 1.1.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.
Files changed (49) hide show
  1. package/README.md +15 -15
  2. package/dist/bridge/bridge-service.d.ts +1 -1
  3. package/dist/bridge/bridge-service.js +7 -7
  4. package/dist/bridge/control.js +1 -1
  5. package/dist/bridge/export-store.d.ts +35 -0
  6. package/dist/bridge/export-store.js +195 -0
  7. package/dist/bridge/extension-session.d.ts +9 -2
  8. package/dist/bridge/extension-session.js +56 -8
  9. package/dist/cli.js +563 -148
  10. package/dist/commands.d.ts +8 -0
  11. package/dist/commands.js +276 -40
  12. package/dist/constants.d.ts +2 -2
  13. package/dist/constants.js +4 -2
  14. package/dist/http-client.d.ts +24 -0
  15. package/dist/http-client.js +101 -0
  16. package/dist/index.d.ts +4 -4
  17. package/dist/index.js +2 -2
  18. package/dist/mcp.d.ts +4 -3
  19. package/dist/mcp.js +221 -134
  20. package/dist/protocol/schema.d.ts +503 -34
  21. package/dist/protocol/schema.js +396 -15
  22. package/dist/server.d.ts +7 -4
  23. package/dist/server.js +70 -26
  24. package/dist/update-notifier-worker.d.ts +2 -0
  25. package/dist/update-notifier-worker.js +3 -0
  26. package/dist/update-notifier.d.ts +9 -0
  27. package/dist/update-notifier.js +178 -0
  28. package/dist/workflow-watch.d.ts +8 -7
  29. package/dist/workflow-watch.js +39 -29
  30. package/package.json +16 -6
  31. package/docs/cli.md +0 -112
  32. package/docs/http-api.md +0 -149
  33. package/docs/mcp.md +0 -90
  34. package/docs/operations.md +0 -85
  35. package/docs/workflow-watch.md +0 -86
  36. package/src/bridge/bridge-service.ts +0 -291
  37. package/src/bridge/control.ts +0 -281
  38. package/src/bridge/daemon.ts +0 -102
  39. package/src/bridge/extension-session.ts +0 -286
  40. package/src/bridge/pairing-state.ts +0 -92
  41. package/src/cli.ts +0 -1019
  42. package/src/commands.ts +0 -158
  43. package/src/constants.ts +0 -10
  44. package/src/errors.ts +0 -72
  45. package/src/index.ts +0 -35
  46. package/src/mcp.ts +0 -386
  47. package/src/protocol/schema.ts +0 -202
  48. package/src/server.ts +0 -623
  49. package/src/workflow-watch.ts +0 -364
@@ -23,7 +23,16 @@ export declare const ExtensionHelloInputSchema: z.ZodObject<{
23
23
  clientId: z.ZodUUID;
24
24
  clientName: z.ZodString;
25
25
  credential: z.ZodOptional<z.ZodString>;
26
- extensionVersion: z.ZodOptional<z.ZodString>;
26
+ clientVersion: z.ZodOptional<z.ZodString>;
27
+ user: z.ZodOptional<z.ZodObject<{
28
+ id: z.ZodString;
29
+ username: z.ZodString;
30
+ plan: z.ZodEnum<{
31
+ Free: "Free";
32
+ Plus: "Plus";
33
+ Pro: "Pro";
34
+ }>;
35
+ }, z.core.$strip>>;
27
36
  capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
28
37
  }, z.core.$strict>;
29
38
  export type ExtensionHelloInput = z.infer<typeof ExtensionHelloInputSchema>;
@@ -45,87 +54,547 @@ export declare const BridgePairDataSchema: z.ZodObject<{
45
54
  clientId: z.ZodUUID;
46
55
  credential: z.ZodString;
47
56
  }, z.core.$strict>;
48
- export declare const TabTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
49
- mode: z.ZodLiteral<"active">;
50
- }, z.core.$strict>, z.ZodObject<{
51
- mode: z.ZodLiteral<"new">;
52
- }, z.core.$strict>, z.ZodObject<{
53
- mode: z.ZodLiteral<"id">;
54
- tabId: z.ZodNumber;
55
- }, z.core.$strict>], "mode">;
56
57
  export declare const WorkflowStartInputSchema: z.ZodObject<{
57
58
  workflowId: z.ZodString;
58
- args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
59
- tab: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
60
- mode: z.ZodLiteral<"active">;
61
- }, z.core.$strict>, z.ZodObject<{
62
- mode: z.ZodLiteral<"new">;
63
- }, z.core.$strict>, z.ZodObject<{
64
- mode: z.ZodLiteral<"id">;
65
- tabId: z.ZodNumber;
66
- }, z.core.$strict>], "mode">>;
59
+ args: z.ZodDefault<z.ZodObject<{
60
+ isClearData: z.ZodOptional<z.ZodBoolean>;
61
+ }, z.core.$catchall<z.ZodUnknown>>>;
67
62
  }, z.core.$strict>;
68
63
  export type WorkflowStartInput = z.infer<typeof WorkflowStartInputSchema>;
69
64
  export declare const WorkflowControlInputSchema: z.ZodObject<{
70
65
  workflowId: z.ZodString;
71
66
  }, z.core.$strict>;
72
67
  export type WorkflowControlInput = z.infer<typeof WorkflowControlInputSchema>;
68
+ export declare const WorkflowGuideInputSchema: z.ZodObject<{
69
+ topic: z.ZodDefault<z.ZodString>;
70
+ }, z.core.$strict>;
71
+ export declare const WorkflowSchemaInputSchema: z.ZodObject<{
72
+ nodeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
73
+ }, z.core.$strict>;
74
+ export declare const WorkflowValidateInputSchema: z.ZodObject<{
75
+ fragment: z.ZodNonOptional<z.ZodUnknown>;
76
+ }, z.core.$strict>;
77
+ export declare const WorkflowListInputSchema: z.ZodObject<{
78
+ scope: z.ZodDefault<z.ZodEnum<{
79
+ own: "own";
80
+ shared: "shared";
81
+ pinned: "pinned";
82
+ }>>;
83
+ name: z.ZodOptional<z.ZodString>;
84
+ host: z.ZodOptional<z.ZodString>;
85
+ page: z.ZodDefault<z.ZodNumber>;
86
+ pageSize: z.ZodDefault<z.ZodNumber>;
87
+ }, z.core.$strict>;
88
+ export declare const WorkflowGetInputSchema: z.ZodObject<{
89
+ workflowId: z.ZodString;
90
+ }, z.core.$strict>;
91
+ export declare const WorkflowCreateInputSchema: z.ZodObject<{
92
+ name: z.ZodString;
93
+ intro: z.ZodDefault<z.ZodString>;
94
+ href: z.ZodDefault<z.ZodString>;
95
+ nodes: z.ZodArray<z.ZodUnknown>;
96
+ }, z.core.$strict>;
97
+ export declare const WorkflowUpdateInputSchema: z.ZodObject<{
98
+ workflowId: z.ZodString;
99
+ revision: z.ZodNumber;
100
+ name: z.ZodOptional<z.ZodString>;
101
+ intro: z.ZodOptional<z.ZodString>;
102
+ href: z.ZodOptional<z.ZodString>;
103
+ nodes: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
104
+ }, z.core.$strict>;
105
+ export declare const WorkflowListResultSchema: z.ZodObject<{
106
+ scope: z.ZodEnum<{
107
+ own: "own";
108
+ shared: "shared";
109
+ pinned: "pinned";
110
+ }>;
111
+ page: z.ZodNumber;
112
+ pageSize: z.ZodNumber;
113
+ workflows: z.ZodArray<z.ZodObject<{
114
+ id: z.ZodString;
115
+ fullname: z.ZodString;
116
+ intro: z.ZodString;
117
+ host: z.ZodString;
118
+ href: z.ZodString;
119
+ visibility: z.ZodEnum<{
120
+ shared: "shared";
121
+ private: "private";
122
+ public: "public";
123
+ }>;
124
+ permission: z.ZodEnum<{
125
+ use: "use";
126
+ view: "view";
127
+ edit: "edit";
128
+ manage: "manage";
129
+ }>;
130
+ version: z.ZodNullable<z.ZodString>;
131
+ revision: z.ZodOptional<z.ZodNumber>;
132
+ deletedAt: z.ZodNullable<z.ZodString>;
133
+ }, z.core.$strip>>;
134
+ clientId: z.ZodUUID;
135
+ }, z.core.$strip>;
136
+ export declare const WorkflowGetResultSchema: z.ZodObject<{
137
+ workflow: z.ZodObject<{
138
+ id: z.ZodString;
139
+ fullname: z.ZodString;
140
+ intro: z.ZodString;
141
+ host: z.ZodString;
142
+ href: z.ZodString;
143
+ visibility: z.ZodEnum<{
144
+ shared: "shared";
145
+ private: "private";
146
+ public: "public";
147
+ }>;
148
+ permission: z.ZodEnum<{
149
+ use: "use";
150
+ view: "view";
151
+ edit: "edit";
152
+ manage: "manage";
153
+ }>;
154
+ version: z.ZodNullable<z.ZodString>;
155
+ revision: z.ZodOptional<z.ZodNumber>;
156
+ deletedAt: z.ZodNullable<z.ZodString>;
157
+ name: z.ZodString;
158
+ args: z.ZodArray<z.ZodObject<{
159
+ name: z.ZodString;
160
+ type: z.ZodString;
161
+ label: z.ZodOptional<z.ZodString>;
162
+ placeholder: z.ZodOptional<z.ZodString>;
163
+ options: z.ZodOptional<z.ZodString>;
164
+ required: z.ZodOptional<z.ZodBoolean>;
165
+ defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
166
+ }, z.core.$strip>>;
167
+ nodes: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
168
+ icon: z.ZodNullable<z.ZodString>;
169
+ }, z.core.$strip>;
170
+ clientId: z.ZodUUID;
171
+ }, z.core.$strip>;
172
+ export declare const WorkflowCreateResultSchema: z.ZodObject<{
173
+ workflowId: z.ZodString;
174
+ workflowName: z.ZodString;
175
+ revision: z.ZodOptional<z.ZodNumber>;
176
+ clientId: z.ZodUUID;
177
+ }, z.core.$strip>;
178
+ export declare const WorkflowUpdateResultSchema: z.ZodObject<{
179
+ workflowId: z.ZodString;
180
+ revision: z.ZodNumber;
181
+ clientId: z.ZodUUID;
182
+ }, z.core.$strip>;
183
+ export declare const WorkflowGuideResultSchema: z.ZodObject<{
184
+ topic: z.ZodString;
185
+ content: z.ZodString;
186
+ references: z.ZodArray<z.ZodObject<{
187
+ href: z.ZodString;
188
+ topic: z.ZodString;
189
+ anchor: z.ZodOptional<z.ZodString>;
190
+ }, z.core.$strip>>;
191
+ clientId: z.ZodUUID;
192
+ }, z.core.$strip>;
193
+ export declare const WorkflowSchemaResultSchema: z.ZodObject<{
194
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
195
+ clientId: z.ZodUUID;
196
+ }, z.core.$strip>;
197
+ export declare const WorkflowValidateResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
198
+ isValid: z.ZodLiteral<true>;
199
+ nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
200
+ id: z.ZodString;
201
+ type: z.ZodString;
202
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
203
+ }, z.core.$loose>>>;
204
+ clientId: z.ZodUUID;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ isValid: z.ZodLiteral<false>;
207
+ issues: z.ZodArray<z.ZodObject<{
208
+ nodeId: z.ZodOptional<z.ZodString>;
209
+ path: z.ZodString;
210
+ code: z.ZodString;
211
+ message: z.ZodString;
212
+ }, z.core.$strip>>;
213
+ clientId: z.ZodUUID;
214
+ }, z.core.$strip>], "isValid">;
215
+ export type WorkflowGuideInput = z.infer<typeof WorkflowGuideInputSchema>;
216
+ export declare const WorkflowLogLevelSchema: z.ZodEnum<{
217
+ error: "error";
218
+ trace: "trace";
219
+ debug: "debug";
220
+ info: "info";
221
+ warn: "warn";
222
+ }>;
223
+ export declare const WorkflowLogsInputSchema: z.ZodObject<{
224
+ workflowId: z.ZodString;
225
+ levels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
226
+ error: "error";
227
+ trace: "trace";
228
+ debug: "debug";
229
+ info: "info";
230
+ warn: "warn";
231
+ }>>>;
232
+ limit: z.ZodDefault<z.ZodNumber>;
233
+ before: z.ZodOptional<z.ZodNumber>;
234
+ after: z.ZodOptional<z.ZodNumber>;
235
+ runAt: z.ZodOptional<z.ZodISODateTime>;
236
+ }, z.core.$strict>;
237
+ export declare const WorkflowLogInputSchema: z.ZodObject<{
238
+ workflowId: z.ZodString;
239
+ logId: z.ZodNumber;
240
+ runAt: z.ZodOptional<z.ZodISODateTime>;
241
+ }, z.core.$strict>;
242
+ export declare const WorkflowLogDataSchema: z.ZodObject<{
243
+ id: z.ZodNumber;
244
+ workflowId: z.ZodString;
245
+ timestamp: z.ZodISODateTime;
246
+ level: z.ZodEnum<{
247
+ error: "error";
248
+ trace: "trace";
249
+ debug: "debug";
250
+ info: "info";
251
+ warn: "warn";
252
+ }>;
253
+ nodeId: z.ZodOptional<z.ZodString>;
254
+ nodeType: z.ZodOptional<z.ZodString>;
255
+ message: z.ZodString;
256
+ detailsText: z.ZodOptional<z.ZodString>;
257
+ detailsTruncated: z.ZodBoolean;
258
+ }, z.core.$strip>;
259
+ export declare const WorkflowLogsResultSchema: z.ZodObject<{
260
+ workflowId: z.ZodString;
261
+ runAt: z.ZodNullable<z.ZodISODateTime>;
262
+ logs: z.ZodArray<z.ZodObject<{
263
+ id: z.ZodNumber;
264
+ workflowId: z.ZodString;
265
+ timestamp: z.ZodISODateTime;
266
+ level: z.ZodEnum<{
267
+ error: "error";
268
+ trace: "trace";
269
+ debug: "debug";
270
+ info: "info";
271
+ warn: "warn";
272
+ }>;
273
+ nodeId: z.ZodOptional<z.ZodString>;
274
+ nodeType: z.ZodOptional<z.ZodString>;
275
+ message: z.ZodString;
276
+ detailsText: z.ZodOptional<z.ZodString>;
277
+ detailsTruncated: z.ZodBoolean;
278
+ }, z.core.$strip>>;
279
+ hasMore: z.ZodBoolean;
280
+ clientId: z.ZodUUID;
281
+ }, z.core.$strip>;
282
+ export declare const WorkflowLogResultSchema: z.ZodObject<{
283
+ workflowId: z.ZodString;
284
+ runAt: z.ZodNullable<z.ZodISODateTime>;
285
+ log: z.ZodObject<{
286
+ id: z.ZodNumber;
287
+ workflowId: z.ZodString;
288
+ timestamp: z.ZodISODateTime;
289
+ level: z.ZodEnum<{
290
+ error: "error";
291
+ trace: "trace";
292
+ debug: "debug";
293
+ info: "info";
294
+ warn: "warn";
295
+ }>;
296
+ nodeId: z.ZodOptional<z.ZodString>;
297
+ nodeType: z.ZodOptional<z.ZodString>;
298
+ message: z.ZodString;
299
+ detailsText: z.ZodOptional<z.ZodString>;
300
+ detailsTruncated: z.ZodLiteral<false>;
301
+ }, z.core.$strip>;
302
+ clientId: z.ZodUUID;
303
+ }, z.core.$strip>;
304
+ export type WorkflowLogsInput = z.infer<typeof WorkflowLogsInputSchema>;
305
+ export type WorkflowLogInput = z.infer<typeof WorkflowLogInputSchema>;
306
+ export type WorkflowLogData = z.infer<typeof WorkflowLogDataSchema>;
307
+ export type WorkflowLogsResult = z.infer<typeof WorkflowLogsResultSchema>;
308
+ export type WorkflowLogResult = z.infer<typeof WorkflowLogResultSchema>;
309
+ export declare const DataListInputSchema: z.ZodObject<{
310
+ tableName: z.ZodOptional<z.ZodString>;
311
+ workflowId: z.ZodOptional<z.ZodString>;
312
+ page: z.ZodDefault<z.ZodNumber>;
313
+ pageSize: z.ZodDefault<z.ZodNumber>;
314
+ }, z.core.$strict>;
315
+ export type DataListInput = z.infer<typeof DataListInputSchema>;
316
+ export declare const DataListResultSchema: z.ZodObject<{
317
+ page: z.ZodNumber;
318
+ pageSize: z.ZodNumber;
319
+ hasMore: z.ZodBoolean;
320
+ tables: z.ZodArray<z.ZodObject<{
321
+ tableId: z.ZodString;
322
+ tableName: z.ZodString;
323
+ columnNames: z.ZodArray<z.ZodString>;
324
+ rowCount: z.ZodNumber;
325
+ workflowId: z.ZodOptional<z.ZodString>;
326
+ createdAt: z.ZodISODateTime;
327
+ updatedAt: z.ZodISODateTime;
328
+ }, z.core.$strip>>;
329
+ clientId: z.ZodUUID;
330
+ }, z.core.$strip>;
73
331
  export declare const DataInputSchema: z.ZodObject<{
74
332
  tableId: z.ZodString;
75
333
  }, z.core.$strict>;
334
+ export declare const DataPreviewInputSchema: z.ZodObject<{
335
+ tableId: z.ZodString;
336
+ sample: z.ZodDefault<z.ZodEnum<{
337
+ oldest: "oldest";
338
+ latest: "latest";
339
+ }>>;
340
+ }, z.core.$strict>;
341
+ export type DataPreviewInput = z.infer<typeof DataPreviewInputSchema>;
342
+ export declare const DEFAULT_DATA_PAGE_SIZE = 50;
343
+ export declare const DataGetInputSchema: z.ZodObject<{
344
+ tableId: z.ZodString;
345
+ all: z.ZodOptional<z.ZodBoolean>;
346
+ page: z.ZodOptional<z.ZodNumber>;
347
+ pageSize: z.ZodOptional<z.ZodNumber>;
348
+ }, z.core.$strict>;
349
+ export type DataGetInput = z.infer<typeof DataGetInputSchema>;
76
350
  export type DataInput = z.infer<typeof DataInputSchema>;
77
- export declare const WorkflowLifecycleStateSchema: z.ZodEnum<{
351
+ export declare const DataDeleteResultSchema: z.ZodObject<{
352
+ tableId: z.ZodString;
353
+ tableName: z.ZodString;
354
+ clientId: z.ZodUUID;
355
+ }, z.core.$strip>;
356
+ export declare const DataPreviewResultSchema: z.ZodObject<{
357
+ tableId: z.ZodString;
358
+ tableName: z.ZodString;
359
+ clientId: z.ZodUUID;
360
+ columnNames: z.ZodArray<z.ZodString>;
361
+ rowCount: z.ZodNumber;
362
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
363
+ sample: z.ZodEnum<{
364
+ oldest: "oldest";
365
+ latest: "latest";
366
+ }>;
367
+ isTruncated: z.ZodBoolean;
368
+ }, z.core.$strip>;
369
+ export declare const DataGetResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
370
+ page: z.ZodOptional<z.ZodNever>;
371
+ pageSize: z.ZodOptional<z.ZodNever>;
372
+ hasMore: z.ZodOptional<z.ZodNever>;
373
+ }, z.core.$loose>, z.ZodObject<{
374
+ tableId: z.ZodString;
375
+ tableName: z.ZodString;
376
+ clientId: z.ZodUUID;
377
+ columnNames: z.ZodArray<z.ZodString>;
378
+ rowCount: z.ZodNumber;
379
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
380
+ }, z.core.$strip>>, z.ZodObject<{
381
+ tableId: z.ZodString;
382
+ tableName: z.ZodString;
383
+ clientId: z.ZodUUID;
384
+ columnNames: z.ZodArray<z.ZodString>;
385
+ rowCount: z.ZodNumber;
386
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
387
+ page: z.ZodNumber;
388
+ pageSize: z.ZodNumber;
389
+ hasMore: z.ZodBoolean;
390
+ }, z.core.$strip>]>;
391
+ export declare const DataExportInputSchema: z.ZodObject<{
392
+ tableId: z.ZodString;
393
+ format: z.ZodDefault<z.ZodEnum<{
394
+ xlsx: "xlsx";
395
+ xls: "xls";
396
+ csv: "csv";
397
+ json: "json";
398
+ xml: "xml";
399
+ txt: "txt";
400
+ }>>;
401
+ }, z.core.$strict>;
402
+ export declare const DataExportReceiptSchema: z.ZodObject<{
403
+ tableId: z.ZodString;
404
+ tableName: z.ZodString;
405
+ clientId: z.ZodUUID;
406
+ format: z.ZodEnum<{
407
+ xlsx: "xlsx";
408
+ xls: "xls";
409
+ csv: "csv";
410
+ json: "json";
411
+ xml: "xml";
412
+ txt: "txt";
413
+ }>;
414
+ filename: z.ZodString;
415
+ rowCount: z.ZodNumber;
416
+ byteSize: z.ZodNumber;
417
+ }, z.core.$strip>;
418
+ export declare const DataExportResultSchema: z.ZodObject<{
419
+ tableId: z.ZodString;
420
+ tableName: z.ZodString;
421
+ clientId: z.ZodUUID;
422
+ format: z.ZodEnum<{
423
+ xlsx: "xlsx";
424
+ xls: "xls";
425
+ csv: "csv";
426
+ json: "json";
427
+ xml: "xml";
428
+ txt: "txt";
429
+ }>;
430
+ filename: z.ZodString;
431
+ rowCount: z.ZodNumber;
432
+ byteSize: z.ZodNumber;
433
+ fileSize: z.ZodString;
434
+ downloadPath: z.ZodString;
435
+ expiresAt: z.ZodISODateTime;
436
+ }, z.core.$strict>;
437
+ export type DataExportResult = z.infer<typeof DataExportResultSchema>;
438
+ export declare const UserMeInputSchema: z.ZodObject<{}, z.core.$strict>;
439
+ export declare const UserMeResultSchema: z.ZodObject<{
440
+ user: z.ZodObject<{
441
+ id: z.ZodString;
442
+ username: z.ZodString;
443
+ plan: z.ZodEnum<{
444
+ Free: "Free";
445
+ Plus: "Plus";
446
+ Pro: "Pro";
447
+ }>;
448
+ }, z.core.$strip>;
449
+ clientId: z.ZodUUID;
450
+ }, z.core.$strip>;
451
+ export declare const ExtensionListResultSchema: z.ZodObject<{
452
+ extensions: z.ZodArray<z.ZodObject<{
453
+ ready: z.ZodBoolean;
454
+ pairingRequired: z.ZodOptional<z.ZodBoolean>;
455
+ clientId: z.ZodOptional<z.ZodUUID>;
456
+ clientName: z.ZodOptional<z.ZodString>;
457
+ clientVersion: z.ZodOptional<z.ZodString>;
458
+ user: z.ZodOptional<z.ZodObject<{
459
+ id: z.ZodString;
460
+ username: z.ZodString;
461
+ plan: z.ZodEnum<{
462
+ Free: "Free";
463
+ Plus: "Plus";
464
+ Pro: "Pro";
465
+ }>;
466
+ }, z.core.$strip>>;
467
+ capabilities: z.ZodArray<z.ZodString>;
468
+ }, z.core.$strict>>;
469
+ }, z.core.$strict>;
470
+ export declare const WorkflowControlResultSchema: z.ZodObject<{
471
+ workflowId: z.ZodString;
472
+ clientId: z.ZodUUID;
473
+ }, z.core.$strip>;
474
+ export declare const WorkflowProcessStatusSchema: z.ZodEnum<{
78
475
  running: "running";
79
476
  paused: "paused";
80
477
  stopping: "stopping";
81
- completed: "completed";
82
478
  stopped: "stopped";
479
+ }>;
480
+ export declare const WorkflowProcessReasonSchema: z.ZodEnum<{
83
481
  failed: "failed";
482
+ completed: "completed";
483
+ interrupted: "interrupted";
484
+ workflow_stopped: "workflow_stopped";
485
+ user_stopped: "user_stopped";
84
486
  }>;
85
487
  export declare const WorkflowStatusDataSchema: z.ZodObject<{
86
488
  workflowId: z.ZodString;
87
- state: z.ZodEnum<{
489
+ status: z.ZodEnum<{
88
490
  running: "running";
89
491
  paused: "paused";
90
492
  stopping: "stopping";
91
- completed: "completed";
92
493
  stopped: "stopped";
93
- failed: "failed";
94
494
  }>;
495
+ reason: z.ZodOptional<z.ZodEnum<{
496
+ failed: "failed";
497
+ completed: "completed";
498
+ interrupted: "interrupted";
499
+ workflow_stopped: "workflow_stopped";
500
+ user_stopped: "user_stopped";
501
+ }>>;
502
+ runAt: z.ZodOptional<z.ZodISODateTime>;
503
+ stopAt: z.ZodOptional<z.ZodISODateTime>;
95
504
  updatedAt: z.ZodISODateTime;
96
- }, z.core.$strict>;
505
+ }, z.core.$strip>;
97
506
  export type WorkflowStatusData = z.infer<typeof WorkflowStatusDataSchema>;
98
507
  export declare const WorkflowStatusEventSchema: z.ZodObject<{
99
508
  workflowId: z.ZodString;
100
- state: z.ZodEnum<{
509
+ status: z.ZodEnum<{
101
510
  running: "running";
102
511
  paused: "paused";
103
512
  stopping: "stopping";
513
+ stopped: "stopped";
514
+ }>;
515
+ reason: z.ZodOptional<z.ZodEnum<{
516
+ failed: "failed";
104
517
  completed: "completed";
518
+ interrupted: "interrupted";
519
+ workflow_stopped: "workflow_stopped";
520
+ user_stopped: "user_stopped";
521
+ }>>;
522
+ runAt: z.ZodOptional<z.ZodISODateTime>;
523
+ stopAt: z.ZodOptional<z.ZodISODateTime>;
524
+ updatedAt: z.ZodISODateTime;
525
+ clientId: z.ZodUUID;
526
+ }, z.core.$strict>;
527
+ export type WorkflowStatusEvent = z.infer<typeof WorkflowStatusEventSchema>;
528
+ export declare const WorkflowStatusInputSchema: z.ZodObject<{
529
+ workflowId: z.ZodString;
530
+ runAt: z.ZodOptional<z.ZodISODateTime>;
531
+ includeDataSummary: z.ZodOptional<z.ZodBoolean>;
532
+ }, z.core.$strict>;
533
+ export type WorkflowStatusInput = z.infer<typeof WorkflowStatusInputSchema>;
534
+ export declare const WorkflowStatusResultSchema: z.ZodObject<{
535
+ clientId: z.ZodUUID;
536
+ workflowId: z.ZodString;
537
+ workflowName: z.ZodOptional<z.ZodString>;
538
+ status: z.ZodEnum<{
539
+ running: "running";
540
+ paused: "paused";
541
+ stopping: "stopping";
105
542
  stopped: "stopped";
543
+ }>;
544
+ reason: z.ZodOptional<z.ZodEnum<{
106
545
  failed: "failed";
546
+ completed: "completed";
547
+ interrupted: "interrupted";
548
+ workflow_stopped: "workflow_stopped";
549
+ user_stopped: "user_stopped";
550
+ }>>;
551
+ runAt: z.ZodOptional<z.ZodISODateTime>;
552
+ stopAt: z.ZodOptional<z.ZodISODateTime>;
553
+ createdAt: z.ZodISODateTime;
554
+ updatedAt: z.ZodISODateTime;
555
+ dataSummary: z.ZodOptional<z.ZodArray<z.ZodObject<{
556
+ tableId: z.ZodString;
557
+ tableName: z.ZodString;
558
+ insertedCount: z.ZodNumber;
559
+ updatedCount: z.ZodNumber;
560
+ deletedCount: z.ZodNumber;
561
+ }, z.core.$strip>>>;
562
+ }, z.core.$strip>;
563
+ export declare const WorkflowStatusWatchResultSchema: z.ZodObject<{
564
+ workflowId: z.ZodString;
565
+ status: z.ZodEnum<{
566
+ running: "running";
567
+ paused: "paused";
568
+ stopping: "stopping";
569
+ stopped: "stopped";
107
570
  }>;
571
+ reason: z.ZodOptional<z.ZodEnum<{
572
+ failed: "failed";
573
+ completed: "completed";
574
+ interrupted: "interrupted";
575
+ workflow_stopped: "workflow_stopped";
576
+ user_stopped: "user_stopped";
577
+ }>>;
578
+ runAt: z.ZodOptional<z.ZodISODateTime>;
579
+ stopAt: z.ZodOptional<z.ZodISODateTime>;
108
580
  updatedAt: z.ZodISODateTime;
109
581
  clientId: z.ZodUUID;
582
+ isTimedOut: z.ZodBoolean;
110
583
  }, z.core.$strict>;
111
- export type WorkflowStatusEvent = z.infer<typeof WorkflowStatusEventSchema>;
112
- export declare const WorkflowWatchRequestSchema: z.ZodObject<{
584
+ export declare const WorkflowStatusWatchRequestSchema: z.ZodObject<{
113
585
  clientId: z.ZodOptional<z.ZodUUID>;
114
586
  input: z.ZodObject<{
115
587
  workflowId: z.ZodString;
116
588
  }, z.core.$strict>;
117
589
  }, z.core.$strict>;
118
- export type WorkflowWatchRequest = z.infer<typeof WorkflowWatchRequestSchema>;
590
+ export type WorkflowStatusWatchRequest = z.infer<typeof WorkflowStatusWatchRequestSchema>;
119
591
  export declare const WorkflowStartResultSchema: z.ZodObject<{
120
592
  clientId: z.ZodUUID;
121
593
  workflowId: z.ZodString;
122
594
  workflowName: z.ZodString;
123
- state: z.ZodOptional<z.ZodEnum<{
124
- accepted: "accepted";
125
- running: "running";
126
- starting: "starting";
127
- }>>;
128
- }, z.core.$strict>;
595
+ runAt: z.ZodISODateTime;
596
+ state: z.ZodLiteral<"accepted">;
597
+ }, z.core.$strip>;
129
598
  export type WorkflowStartResult = z.infer<typeof WorkflowStartResultSchema>;
130
599
  export declare function createEnvelope<TData>(type: string, data: TData, options?: {
131
600
  id?: string;