@sixb/server 0.1.20 → 0.1.21

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 (70) hide show
  1. package/dist/artifacts/frame.d.ts +13 -0
  2. package/dist/artifacts/frame.d.ts.map +1 -0
  3. package/dist/auth/browser-origin.d.ts +5 -0
  4. package/dist/auth/browser-origin.d.ts.map +1 -1
  5. package/dist/auth/public-routes.d.ts.map +1 -1
  6. package/dist/files/content.d.ts +2 -3
  7. package/dist/files/content.d.ts.map +1 -1
  8. package/dist/index.js +3427 -2402
  9. package/dist/index.js.map +23 -17
  10. package/dist/openapi/tags.d.ts +10 -2
  11. package/dist/openapi/tags.d.ts.map +1 -1
  12. package/dist/registerRoutes.d.ts +3 -0
  13. package/dist/registerRoutes.d.ts.map +1 -1
  14. package/dist/routes/activity.d.ts +35 -0
  15. package/dist/routes/activity.d.ts.map +1 -0
  16. package/dist/routes/agents.d.ts +18 -27
  17. package/dist/routes/agents.d.ts.map +1 -1
  18. package/dist/routes/artifact-frames.d.ts +98 -0
  19. package/dist/routes/artifact-frames.d.ts.map +1 -0
  20. package/dist/routes/artifacts.d.ts +852 -0
  21. package/dist/routes/artifacts.d.ts.map +1 -0
  22. package/dist/routes/auth.d.ts +1 -1
  23. package/dist/routes/connector-connection-runs.d.ts +59 -59
  24. package/dist/routes/connector-connections.d.ts +2 -2
  25. package/dist/routes/datasets.d.ts +7 -7
  26. package/dist/routes/events.d.ts +1 -1
  27. package/dist/routes/pipelines.d.ts +31 -31
  28. package/dist/routes/projections.d.ts +10 -10
  29. package/dist/routes/share-grants.d.ts +5 -5
  30. package/dist/routes/syncs.d.ts +38 -38
  31. package/dist/routes/workflows.d.ts +30 -30
  32. package/dist/routes/ws/events.d.ts.map +1 -1
  33. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  34. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  35. package/dist/schemas/activity.d.ts +1278 -0
  36. package/dist/schemas/activity.d.ts.map +1 -0
  37. package/dist/schemas/agents.d.ts +96 -144
  38. package/dist/schemas/agents.d.ts.map +1 -1
  39. package/dist/schemas/ai-accounting.d.ts +24 -24
  40. package/dist/schemas/ai-limits.d.ts +26 -26
  41. package/dist/schemas/artifacts.d.ts +1305 -0
  42. package/dist/schemas/artifacts.d.ts.map +1 -0
  43. package/dist/schemas/auth.d.ts +6 -6
  44. package/dist/schemas/connectors.d.ts +30 -30
  45. package/dist/schemas/datasets.d.ts +10 -10
  46. package/dist/schemas/events.d.ts +6 -6
  47. package/dist/schemas/pipelines.d.ts +35 -35
  48. package/dist/schemas/projections.d.ts +40 -40
  49. package/dist/schemas/share-grants.d.ts +16 -16
  50. package/dist/schemas/syncs.d.ts +36 -36
  51. package/dist/schemas/workflows.d.ts +84 -84
  52. package/dist/server.d.ts.map +1 -1
  53. package/package.json +4 -4
  54. package/src/artifacts/frame.ts +46 -0
  55. package/src/auth/browser-origin.ts +12 -2
  56. package/src/auth/public-routes.ts +10 -0
  57. package/src/files/content.ts +9 -13
  58. package/src/openapi/tags.ts +8 -0
  59. package/src/registerRoutes.ts +9 -0
  60. package/src/routes/activity.ts +327 -0
  61. package/src/routes/agents.ts +1 -1
  62. package/src/routes/artifact-frames.ts +138 -0
  63. package/src/routes/artifacts.ts +442 -0
  64. package/src/routes/file-downloads.ts +1 -3
  65. package/src/routes/ws/events.ts +3 -2
  66. package/src/routes/ws/subscription-hub.ts +53 -20
  67. package/src/schemas/activity.ts +285 -0
  68. package/src/schemas/agents.ts +1 -2
  69. package/src/schemas/artifacts.ts +158 -0
  70. package/src/server.ts +25 -9
@@ -63,29 +63,29 @@ export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
63
63
  offset: z.ZodOptional<z.ZodString>;
64
64
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
65
65
  }, "strip", z.ZodTypeAny, {
66
- status?: "expired" | "pending" | "cancelled" | "submitted" | undefined;
66
+ status?: "expired" | "cancelled" | "pending" | "submitted" | undefined;
67
67
  limit?: string | undefined;
68
68
  offset?: string | undefined;
69
69
  order?: "asc" | "desc" | undefined;
70
70
  workflowId?: string | undefined;
71
71
  workflowRunId?: string | undefined;
72
72
  nodeRunId?: string | undefined;
73
+ interventionId?: string | undefined;
73
74
  nodeId?: string | undefined;
74
75
  nodeKey?: string | undefined;
75
- interventionId?: string | undefined;
76
76
  requestedAfter?: string | undefined;
77
77
  requestedBefore?: string | undefined;
78
78
  }, {
79
- status?: "expired" | "pending" | "cancelled" | "submitted" | undefined;
79
+ status?: "expired" | "cancelled" | "pending" | "submitted" | undefined;
80
80
  limit?: string | undefined;
81
81
  offset?: string | undefined;
82
82
  order?: "asc" | "desc" | undefined;
83
83
  workflowId?: string | undefined;
84
84
  workflowRunId?: string | undefined;
85
85
  nodeRunId?: string | undefined;
86
+ interventionId?: string | undefined;
86
87
  nodeId?: string | undefined;
87
88
  nodeKey?: string | undefined;
88
- interventionId?: string | undefined;
89
89
  requestedAfter?: string | undefined;
90
90
  requestedBefore?: string | undefined;
91
91
  }>;
@@ -1006,10 +1006,10 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
1006
1006
  input: Record<string, import("./common").JsonValue>;
1007
1007
  workflowId: string;
1008
1008
  workflowRunId: string;
1009
- nodeIndex: number;
1010
- nodeType: "agent" | "action" | "step" | "intervention";
1011
1009
  nodeId: string;
1012
1010
  nodeKey: string;
1011
+ nodeIndex: number;
1012
+ nodeType: "agent" | "action" | "step" | "intervention";
1013
1013
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1014
1014
  agentExecution?: {
1015
1015
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
@@ -1050,10 +1050,10 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
1050
1050
  input: Record<string, import("./common").JsonValue>;
1051
1051
  workflowId: string;
1052
1052
  workflowRunId: string;
1053
- nodeIndex: number;
1054
- nodeType: "agent" | "action" | "step" | "intervention";
1055
1053
  nodeId: string;
1056
1054
  nodeKey: string;
1055
+ nodeIndex: number;
1056
+ nodeType: "agent" | "action" | "step" | "intervention";
1057
1057
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1058
1058
  agentExecution?: {
1059
1059
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
@@ -1127,23 +1127,22 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
1127
1127
  }>>;
1128
1128
  expiredAt: z.ZodOptional<z.ZodString>;
1129
1129
  }, "strip", z.ZodTypeAny, {
1130
- status: "expired" | "pending" | "cancelled" | "submitted";
1130
+ status: "expired" | "cancelled" | "pending" | "submitted";
1131
1131
  projectId: string;
1132
1132
  id: string;
1133
1133
  input: Record<string, import("./common").JsonValue>;
1134
1134
  workflowId: string;
1135
1135
  workflowRunId: string;
1136
1136
  nodeRunId: string;
1137
- nodeIndex: number;
1137
+ interventionId: string;
1138
1138
  nodeId: string;
1139
1139
  nodeKey: string;
1140
- interventionId: string;
1140
+ nodeIndex: number;
1141
1141
  defaultResponse: Record<string, import("./common").JsonValue>;
1142
1142
  requestedAt: string;
1143
1143
  response?: Record<string, import("./common").JsonValue> | undefined;
1144
1144
  expiresAt?: string | undefined;
1145
1145
  submittedAt?: string | undefined;
1146
- expiredAt?: string | undefined;
1147
1146
  submittedBy?: {
1148
1147
  id: string;
1149
1148
  type: "user" | "serviceAccount" | "system";
@@ -1153,24 +1152,24 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
1153
1152
  id: string;
1154
1153
  type: "user" | "serviceAccount" | "system";
1155
1154
  } | undefined;
1155
+ expiredAt?: string | undefined;
1156
1156
  }, {
1157
- status: "expired" | "pending" | "cancelled" | "submitted";
1157
+ status: "expired" | "cancelled" | "pending" | "submitted";
1158
1158
  projectId: string;
1159
1159
  id: string;
1160
1160
  input: Record<string, import("./common").JsonValue>;
1161
1161
  workflowId: string;
1162
1162
  workflowRunId: string;
1163
1163
  nodeRunId: string;
1164
- nodeIndex: number;
1164
+ interventionId: string;
1165
1165
  nodeId: string;
1166
1166
  nodeKey: string;
1167
- interventionId: string;
1167
+ nodeIndex: number;
1168
1168
  defaultResponse: Record<string, import("./common").JsonValue>;
1169
1169
  requestedAt: string;
1170
1170
  response?: Record<string, import("./common").JsonValue> | undefined;
1171
1171
  expiresAt?: string | undefined;
1172
1172
  submittedAt?: string | undefined;
1173
- expiredAt?: string | undefined;
1174
1173
  submittedBy?: {
1175
1174
  id: string;
1176
1175
  type: "user" | "serviceAccount" | "system";
@@ -1180,6 +1179,7 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
1180
1179
  id: string;
1181
1180
  type: "user" | "serviceAccount" | "system";
1182
1181
  } | undefined;
1182
+ expiredAt?: string | undefined;
1183
1183
  }>;
1184
1184
  export declare const WorkflowSchema: z.ZodObject<{
1185
1185
  id: z.ZodString;
@@ -1701,10 +1701,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1701
1701
  input: Record<string, import("./common").JsonValue>;
1702
1702
  workflowId: string;
1703
1703
  workflowRunId: string;
1704
- nodeIndex: number;
1705
- nodeType: "agent" | "action" | "step" | "intervention";
1706
1704
  nodeId: string;
1707
1705
  nodeKey: string;
1706
+ nodeIndex: number;
1707
+ nodeType: "agent" | "action" | "step" | "intervention";
1708
1708
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1709
1709
  agentExecution?: {
1710
1710
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
@@ -1745,10 +1745,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1745
1745
  input: Record<string, import("./common").JsonValue>;
1746
1746
  workflowId: string;
1747
1747
  workflowRunId: string;
1748
- nodeIndex: number;
1749
- nodeType: "agent" | "action" | "step" | "intervention";
1750
1748
  nodeId: string;
1751
1749
  nodeKey: string;
1750
+ nodeIndex: number;
1751
+ nodeType: "agent" | "action" | "step" | "intervention";
1752
1752
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1753
1753
  agentExecution?: {
1754
1754
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
@@ -1807,10 +1807,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1807
1807
  input: Record<string, import("./common").JsonValue>;
1808
1808
  workflowId: string;
1809
1809
  workflowRunId: string;
1810
- nodeIndex: number;
1811
- nodeType: "agent" | "action" | "step" | "intervention";
1812
1810
  nodeId: string;
1813
1811
  nodeKey: string;
1812
+ nodeIndex: number;
1813
+ nodeType: "agent" | "action" | "step" | "intervention";
1814
1814
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1815
1815
  agentExecution?: {
1816
1816
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
@@ -1869,10 +1869,10 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1869
1869
  input: Record<string, import("./common").JsonValue>;
1870
1870
  workflowId: string;
1871
1871
  workflowRunId: string;
1872
- nodeIndex: number;
1873
- nodeType: "agent" | "action" | "step" | "intervention";
1874
1872
  nodeId: string;
1875
1873
  nodeKey: string;
1874
+ nodeIndex: number;
1875
+ nodeType: "agent" | "action" | "step" | "intervention";
1876
1876
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1877
1877
  agentExecution?: {
1878
1878
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
@@ -2113,10 +2113,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2113
2113
  input: Record<string, import("./common").JsonValue>;
2114
2114
  workflowId: string;
2115
2115
  workflowRunId: string;
2116
- nodeIndex: number;
2117
- nodeType: "agent" | "action" | "step" | "intervention";
2118
2116
  nodeId: string;
2119
2117
  nodeKey: string;
2118
+ nodeIndex: number;
2119
+ nodeType: "agent" | "action" | "step" | "intervention";
2120
2120
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2121
2121
  agentExecution?: {
2122
2122
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
@@ -2157,10 +2157,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2157
2157
  input: Record<string, import("./common").JsonValue>;
2158
2158
  workflowId: string;
2159
2159
  workflowRunId: string;
2160
- nodeIndex: number;
2161
- nodeType: "agent" | "action" | "step" | "intervention";
2162
2160
  nodeId: string;
2163
2161
  nodeKey: string;
2162
+ nodeIndex: number;
2163
+ nodeType: "agent" | "action" | "step" | "intervention";
2164
2164
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2165
2165
  agentExecution?: {
2166
2166
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
@@ -2219,10 +2219,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2219
2219
  input: Record<string, import("./common").JsonValue>;
2220
2220
  workflowId: string;
2221
2221
  workflowRunId: string;
2222
- nodeIndex: number;
2223
- nodeType: "agent" | "action" | "step" | "intervention";
2224
2222
  nodeId: string;
2225
2223
  nodeKey: string;
2224
+ nodeIndex: number;
2225
+ nodeType: "agent" | "action" | "step" | "intervention";
2226
2226
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2227
2227
  agentExecution?: {
2228
2228
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
@@ -2281,10 +2281,10 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2281
2281
  input: Record<string, import("./common").JsonValue>;
2282
2282
  workflowId: string;
2283
2283
  workflowRunId: string;
2284
- nodeIndex: number;
2285
- nodeType: "agent" | "action" | "step" | "intervention";
2286
2284
  nodeId: string;
2287
2285
  nodeKey: string;
2286
+ nodeIndex: number;
2287
+ nodeType: "agent" | "action" | "step" | "intervention";
2288
2288
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2289
2289
  agentExecution?: {
2290
2290
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
@@ -2360,23 +2360,22 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2360
2360
  }>>;
2361
2361
  expiredAt: z.ZodOptional<z.ZodString>;
2362
2362
  }, "strip", z.ZodTypeAny, {
2363
- status: "expired" | "pending" | "cancelled" | "submitted";
2363
+ status: "expired" | "cancelled" | "pending" | "submitted";
2364
2364
  projectId: string;
2365
2365
  id: string;
2366
2366
  input: Record<string, import("./common").JsonValue>;
2367
2367
  workflowId: string;
2368
2368
  workflowRunId: string;
2369
2369
  nodeRunId: string;
2370
- nodeIndex: number;
2370
+ interventionId: string;
2371
2371
  nodeId: string;
2372
2372
  nodeKey: string;
2373
- interventionId: string;
2373
+ nodeIndex: number;
2374
2374
  defaultResponse: Record<string, import("./common").JsonValue>;
2375
2375
  requestedAt: string;
2376
2376
  response?: Record<string, import("./common").JsonValue> | undefined;
2377
2377
  expiresAt?: string | undefined;
2378
2378
  submittedAt?: string | undefined;
2379
- expiredAt?: string | undefined;
2380
2379
  submittedBy?: {
2381
2380
  id: string;
2382
2381
  type: "user" | "serviceAccount" | "system";
@@ -2386,24 +2385,24 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2386
2385
  id: string;
2387
2386
  type: "user" | "serviceAccount" | "system";
2388
2387
  } | undefined;
2388
+ expiredAt?: string | undefined;
2389
2389
  }, {
2390
- status: "expired" | "pending" | "cancelled" | "submitted";
2390
+ status: "expired" | "cancelled" | "pending" | "submitted";
2391
2391
  projectId: string;
2392
2392
  id: string;
2393
2393
  input: Record<string, import("./common").JsonValue>;
2394
2394
  workflowId: string;
2395
2395
  workflowRunId: string;
2396
2396
  nodeRunId: string;
2397
- nodeIndex: number;
2397
+ interventionId: string;
2398
2398
  nodeId: string;
2399
2399
  nodeKey: string;
2400
- interventionId: string;
2400
+ nodeIndex: number;
2401
2401
  defaultResponse: Record<string, import("./common").JsonValue>;
2402
2402
  requestedAt: string;
2403
2403
  response?: Record<string, import("./common").JsonValue> | undefined;
2404
2404
  expiresAt?: string | undefined;
2405
2405
  submittedAt?: string | undefined;
2406
- expiredAt?: string | undefined;
2407
2406
  submittedBy?: {
2408
2407
  id: string;
2409
2408
  type: "user" | "serviceAccount" | "system";
@@ -2413,6 +2412,7 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2413
2412
  id: string;
2414
2413
  type: "user" | "serviceAccount" | "system";
2415
2414
  } | undefined;
2415
+ expiredAt?: string | undefined;
2416
2416
  }>, "many">;
2417
2417
  hasMore: z.ZodBoolean;
2418
2418
  total: z.ZodNumber;
@@ -2420,23 +2420,22 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2420
2420
  hasMore: boolean;
2421
2421
  total: number;
2422
2422
  interventions: {
2423
- status: "expired" | "pending" | "cancelled" | "submitted";
2423
+ status: "expired" | "cancelled" | "pending" | "submitted";
2424
2424
  projectId: string;
2425
2425
  id: string;
2426
2426
  input: Record<string, import("./common").JsonValue>;
2427
2427
  workflowId: string;
2428
2428
  workflowRunId: string;
2429
2429
  nodeRunId: string;
2430
- nodeIndex: number;
2430
+ interventionId: string;
2431
2431
  nodeId: string;
2432
2432
  nodeKey: string;
2433
- interventionId: string;
2433
+ nodeIndex: number;
2434
2434
  defaultResponse: Record<string, import("./common").JsonValue>;
2435
2435
  requestedAt: string;
2436
2436
  response?: Record<string, import("./common").JsonValue> | undefined;
2437
2437
  expiresAt?: string | undefined;
2438
2438
  submittedAt?: string | undefined;
2439
- expiredAt?: string | undefined;
2440
2439
  submittedBy?: {
2441
2440
  id: string;
2442
2441
  type: "user" | "serviceAccount" | "system";
@@ -2446,28 +2445,28 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2446
2445
  id: string;
2447
2446
  type: "user" | "serviceAccount" | "system";
2448
2447
  } | undefined;
2448
+ expiredAt?: string | undefined;
2449
2449
  }[];
2450
2450
  }, {
2451
2451
  hasMore: boolean;
2452
2452
  total: number;
2453
2453
  interventions: {
2454
- status: "expired" | "pending" | "cancelled" | "submitted";
2454
+ status: "expired" | "cancelled" | "pending" | "submitted";
2455
2455
  projectId: string;
2456
2456
  id: string;
2457
2457
  input: Record<string, import("./common").JsonValue>;
2458
2458
  workflowId: string;
2459
2459
  workflowRunId: string;
2460
2460
  nodeRunId: string;
2461
- nodeIndex: number;
2461
+ interventionId: string;
2462
2462
  nodeId: string;
2463
2463
  nodeKey: string;
2464
- interventionId: string;
2464
+ nodeIndex: number;
2465
2465
  defaultResponse: Record<string, import("./common").JsonValue>;
2466
2466
  requestedAt: string;
2467
2467
  response?: Record<string, import("./common").JsonValue> | undefined;
2468
2468
  expiresAt?: string | undefined;
2469
2469
  submittedAt?: string | undefined;
2470
- expiredAt?: string | undefined;
2471
2470
  submittedBy?: {
2472
2471
  id: string;
2473
2472
  type: "user" | "serviceAccount" | "system";
@@ -2477,6 +2476,7 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2477
2476
  id: string;
2478
2477
  type: "user" | "serviceAccount" | "system";
2479
2478
  } | undefined;
2479
+ expiredAt?: string | undefined;
2480
2480
  }[];
2481
2481
  }>;
2482
2482
  export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
@@ -2520,23 +2520,22 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2520
2520
  }>>;
2521
2521
  expiredAt: z.ZodOptional<z.ZodString>;
2522
2522
  }, "strip", z.ZodTypeAny, {
2523
- status: "expired" | "pending" | "cancelled" | "submitted";
2523
+ status: "expired" | "cancelled" | "pending" | "submitted";
2524
2524
  projectId: string;
2525
2525
  id: string;
2526
2526
  input: Record<string, import("./common").JsonValue>;
2527
2527
  workflowId: string;
2528
2528
  workflowRunId: string;
2529
2529
  nodeRunId: string;
2530
- nodeIndex: number;
2530
+ interventionId: string;
2531
2531
  nodeId: string;
2532
2532
  nodeKey: string;
2533
- interventionId: string;
2533
+ nodeIndex: number;
2534
2534
  defaultResponse: Record<string, import("./common").JsonValue>;
2535
2535
  requestedAt: string;
2536
2536
  response?: Record<string, import("./common").JsonValue> | undefined;
2537
2537
  expiresAt?: string | undefined;
2538
2538
  submittedAt?: string | undefined;
2539
- expiredAt?: string | undefined;
2540
2539
  submittedBy?: {
2541
2540
  id: string;
2542
2541
  type: "user" | "serviceAccount" | "system";
@@ -2546,24 +2545,24 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2546
2545
  id: string;
2547
2546
  type: "user" | "serviceAccount" | "system";
2548
2547
  } | undefined;
2548
+ expiredAt?: string | undefined;
2549
2549
  }, {
2550
- status: "expired" | "pending" | "cancelled" | "submitted";
2550
+ status: "expired" | "cancelled" | "pending" | "submitted";
2551
2551
  projectId: string;
2552
2552
  id: string;
2553
2553
  input: Record<string, import("./common").JsonValue>;
2554
2554
  workflowId: string;
2555
2555
  workflowRunId: string;
2556
2556
  nodeRunId: string;
2557
- nodeIndex: number;
2557
+ interventionId: string;
2558
2558
  nodeId: string;
2559
2559
  nodeKey: string;
2560
- interventionId: string;
2560
+ nodeIndex: number;
2561
2561
  defaultResponse: Record<string, import("./common").JsonValue>;
2562
2562
  requestedAt: string;
2563
2563
  response?: Record<string, import("./common").JsonValue> | undefined;
2564
2564
  expiresAt?: string | undefined;
2565
2565
  submittedAt?: string | undefined;
2566
- expiredAt?: string | undefined;
2567
2566
  submittedBy?: {
2568
2567
  id: string;
2569
2568
  type: "user" | "serviceAccount" | "system";
@@ -2573,28 +2572,27 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2573
2572
  id: string;
2574
2573
  type: "user" | "serviceAccount" | "system";
2575
2574
  } | undefined;
2575
+ expiredAt?: string | undefined;
2576
2576
  }>;
2577
2577
  jobId: z.ZodString;
2578
2578
  }, "strip", z.ZodTypeAny, {
2579
- jobId: string;
2580
2579
  intervention: {
2581
- status: "expired" | "pending" | "cancelled" | "submitted";
2580
+ status: "expired" | "cancelled" | "pending" | "submitted";
2582
2581
  projectId: string;
2583
2582
  id: string;
2584
2583
  input: Record<string, import("./common").JsonValue>;
2585
2584
  workflowId: string;
2586
2585
  workflowRunId: string;
2587
2586
  nodeRunId: string;
2588
- nodeIndex: number;
2587
+ interventionId: string;
2589
2588
  nodeId: string;
2590
2589
  nodeKey: string;
2591
- interventionId: string;
2590
+ nodeIndex: number;
2592
2591
  defaultResponse: Record<string, import("./common").JsonValue>;
2593
2592
  requestedAt: string;
2594
2593
  response?: Record<string, import("./common").JsonValue> | undefined;
2595
2594
  expiresAt?: string | undefined;
2596
2595
  submittedAt?: string | undefined;
2597
- expiredAt?: string | undefined;
2598
2596
  submittedBy?: {
2599
2597
  id: string;
2600
2598
  type: "user" | "serviceAccount" | "system";
@@ -2604,27 +2602,27 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2604
2602
  id: string;
2605
2603
  type: "user" | "serviceAccount" | "system";
2606
2604
  } | undefined;
2605
+ expiredAt?: string | undefined;
2607
2606
  };
2608
- }, {
2609
2607
  jobId: string;
2608
+ }, {
2610
2609
  intervention: {
2611
- status: "expired" | "pending" | "cancelled" | "submitted";
2610
+ status: "expired" | "cancelled" | "pending" | "submitted";
2612
2611
  projectId: string;
2613
2612
  id: string;
2614
2613
  input: Record<string, import("./common").JsonValue>;
2615
2614
  workflowId: string;
2616
2615
  workflowRunId: string;
2617
2616
  nodeRunId: string;
2618
- nodeIndex: number;
2617
+ interventionId: string;
2619
2618
  nodeId: string;
2620
2619
  nodeKey: string;
2621
- interventionId: string;
2620
+ nodeIndex: number;
2622
2621
  defaultResponse: Record<string, import("./common").JsonValue>;
2623
2622
  requestedAt: string;
2624
2623
  response?: Record<string, import("./common").JsonValue> | undefined;
2625
2624
  expiresAt?: string | undefined;
2626
2625
  submittedAt?: string | undefined;
2627
- expiredAt?: string | undefined;
2628
2626
  submittedBy?: {
2629
2627
  id: string;
2630
2628
  type: "user" | "serviceAccount" | "system";
@@ -2634,7 +2632,9 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2634
2632
  id: string;
2635
2633
  type: "user" | "serviceAccount" | "system";
2636
2634
  } | undefined;
2635
+ expiredAt?: string | undefined;
2637
2636
  };
2637
+ jobId: string;
2638
2638
  }>;
2639
2639
  export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2640
2640
  intervention: z.ZodObject<{
@@ -2677,23 +2677,22 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2677
2677
  }>>;
2678
2678
  expiredAt: z.ZodOptional<z.ZodString>;
2679
2679
  }, "strip", z.ZodTypeAny, {
2680
- status: "expired" | "pending" | "cancelled" | "submitted";
2680
+ status: "expired" | "cancelled" | "pending" | "submitted";
2681
2681
  projectId: string;
2682
2682
  id: string;
2683
2683
  input: Record<string, import("./common").JsonValue>;
2684
2684
  workflowId: string;
2685
2685
  workflowRunId: string;
2686
2686
  nodeRunId: string;
2687
- nodeIndex: number;
2687
+ interventionId: string;
2688
2688
  nodeId: string;
2689
2689
  nodeKey: string;
2690
- interventionId: string;
2690
+ nodeIndex: number;
2691
2691
  defaultResponse: Record<string, import("./common").JsonValue>;
2692
2692
  requestedAt: string;
2693
2693
  response?: Record<string, import("./common").JsonValue> | undefined;
2694
2694
  expiresAt?: string | undefined;
2695
2695
  submittedAt?: string | undefined;
2696
- expiredAt?: string | undefined;
2697
2696
  submittedBy?: {
2698
2697
  id: string;
2699
2698
  type: "user" | "serviceAccount" | "system";
@@ -2703,24 +2702,24 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2703
2702
  id: string;
2704
2703
  type: "user" | "serviceAccount" | "system";
2705
2704
  } | undefined;
2705
+ expiredAt?: string | undefined;
2706
2706
  }, {
2707
- status: "expired" | "pending" | "cancelled" | "submitted";
2707
+ status: "expired" | "cancelled" | "pending" | "submitted";
2708
2708
  projectId: string;
2709
2709
  id: string;
2710
2710
  input: Record<string, import("./common").JsonValue>;
2711
2711
  workflowId: string;
2712
2712
  workflowRunId: string;
2713
2713
  nodeRunId: string;
2714
- nodeIndex: number;
2714
+ interventionId: string;
2715
2715
  nodeId: string;
2716
2716
  nodeKey: string;
2717
- interventionId: string;
2717
+ nodeIndex: number;
2718
2718
  defaultResponse: Record<string, import("./common").JsonValue>;
2719
2719
  requestedAt: string;
2720
2720
  response?: Record<string, import("./common").JsonValue> | undefined;
2721
2721
  expiresAt?: string | undefined;
2722
2722
  submittedAt?: string | undefined;
2723
- expiredAt?: string | undefined;
2724
2723
  submittedBy?: {
2725
2724
  id: string;
2726
2725
  type: "user" | "serviceAccount" | "system";
@@ -2730,26 +2729,26 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2730
2729
  id: string;
2731
2730
  type: "user" | "serviceAccount" | "system";
2732
2731
  } | undefined;
2732
+ expiredAt?: string | undefined;
2733
2733
  }>;
2734
2734
  }, "strip", z.ZodTypeAny, {
2735
2735
  intervention: {
2736
- status: "expired" | "pending" | "cancelled" | "submitted";
2736
+ status: "expired" | "cancelled" | "pending" | "submitted";
2737
2737
  projectId: string;
2738
2738
  id: string;
2739
2739
  input: Record<string, import("./common").JsonValue>;
2740
2740
  workflowId: string;
2741
2741
  workflowRunId: string;
2742
2742
  nodeRunId: string;
2743
- nodeIndex: number;
2743
+ interventionId: string;
2744
2744
  nodeId: string;
2745
2745
  nodeKey: string;
2746
- interventionId: string;
2746
+ nodeIndex: number;
2747
2747
  defaultResponse: Record<string, import("./common").JsonValue>;
2748
2748
  requestedAt: string;
2749
2749
  response?: Record<string, import("./common").JsonValue> | undefined;
2750
2750
  expiresAt?: string | undefined;
2751
2751
  submittedAt?: string | undefined;
2752
- expiredAt?: string | undefined;
2753
2752
  submittedBy?: {
2754
2753
  id: string;
2755
2754
  type: "user" | "serviceAccount" | "system";
@@ -2759,26 +2758,26 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2759
2758
  id: string;
2760
2759
  type: "user" | "serviceAccount" | "system";
2761
2760
  } | undefined;
2761
+ expiredAt?: string | undefined;
2762
2762
  };
2763
2763
  }, {
2764
2764
  intervention: {
2765
- status: "expired" | "pending" | "cancelled" | "submitted";
2765
+ status: "expired" | "cancelled" | "pending" | "submitted";
2766
2766
  projectId: string;
2767
2767
  id: string;
2768
2768
  input: Record<string, import("./common").JsonValue>;
2769
2769
  workflowId: string;
2770
2770
  workflowRunId: string;
2771
2771
  nodeRunId: string;
2772
- nodeIndex: number;
2772
+ interventionId: string;
2773
2773
  nodeId: string;
2774
2774
  nodeKey: string;
2775
- interventionId: string;
2775
+ nodeIndex: number;
2776
2776
  defaultResponse: Record<string, import("./common").JsonValue>;
2777
2777
  requestedAt: string;
2778
2778
  response?: Record<string, import("./common").JsonValue> | undefined;
2779
2779
  expiresAt?: string | undefined;
2780
2780
  submittedAt?: string | undefined;
2781
- expiredAt?: string | undefined;
2782
2781
  submittedBy?: {
2783
2782
  id: string;
2784
2783
  type: "user" | "serviceAccount" | "system";
@@ -2788,6 +2787,7 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2788
2787
  id: string;
2789
2788
  type: "user" | "serviceAccount" | "system";
2790
2789
  } | undefined;
2790
+ expiredAt?: string | undefined;
2791
2791
  };
2792
2792
  }>;
2793
2793
  export declare const RequestWorkflowRunResponseSchema: z.ZodObject<{
@@ -2798,12 +2798,12 @@ export declare const RequestWorkflowRunResponseSchema: z.ZodObject<{
2798
2798
  }, "strip", z.ZodTypeAny, {
2799
2799
  runId: string;
2800
2800
  workflowId: string;
2801
- jobId: string;
2802
2801
  queuedAt: string;
2802
+ jobId: string;
2803
2803
  }, {
2804
2804
  runId: string;
2805
2805
  workflowId: string;
2806
- jobId: string;
2807
2806
  queuedAt: string;
2807
+ jobId: string;
2808
2808
  }>;
2809
2809
  //# sourceMappingURL=workflows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA6B,YAAY,EAAE,MAAM,YAAY,CAAA;AAKzE,OAAO,EAAE,MAAM,EAAc,MAAM,QAAQ,CAAA;AAG3C,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAKhC,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EAKjC,KAAK,oBAAoB,EAC1B,MAAM,uBAAuB,CAAA;AAO9B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAKlE,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,sBAAsB,CAAA;AAuB7B,eAAO,MAAM,2BAA2B,QAAY,CAAA;AAEpD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,YAAY,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,oBAAoB,CAAA;IAC7B,8EAA8E;IAC9E,cAAc,CAAC,EAAE,yBAAyB,CAAA;IAC1C,qEAAqE;IACrE,YAAY,CAAC,EAAE,uBAAuB,CAAA;IACtC;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACnC;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAEvE;AAED,qBAAa,UAAU;IACrB,OAAO,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1
  {
2
2
  "name": "@sixb/server",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "HTTP and WebSocket API server for Sixb",
5
5
  "keywords": [
6
6
  "sixb",
@@ -38,14 +38,14 @@
38
38
  "zod-to-json-schema": "^3.24.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@sixb/core": "0.1.20"
41
+ "@sixb/core": "0.1.21"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@sixb/auth-magic-link": "0.1.6",
45
45
  "@sixb/auth-oidc": "0.1.6",
46
46
  "@sixb/cli-core": "0.1.8",
47
- "@sixb/core": "0.1.20",
48
- "@sixb/sqlite": "0.1.20",
47
+ "@sixb/core": "0.1.21",
48
+ "@sixb/sqlite": "0.1.21",
49
49
  "@types/bun": "latest",
50
50
  "typescript": "^5.7.0"
51
51
  },