@sixb/server 0.1.25 → 0.2.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 (135) hide show
  1. package/README.md +1 -1
  2. package/dist/auth/public-routes.d.ts.map +1 -1
  3. package/dist/auth/run-token.d.ts +28 -0
  4. package/dist/auth/run-token.d.ts.map +1 -0
  5. package/dist/auth/scope.d.ts +11 -13
  6. package/dist/auth/scope.d.ts.map +1 -1
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +4999 -4151
  10. package/dist/index.js.map +47 -43
  11. package/dist/registerRoutes.d.ts.map +1 -1
  12. package/dist/routes/actions.d.ts +1 -1
  13. package/dist/routes/agent-approval-gate.d.ts +7 -4
  14. package/dist/routes/agent-approval-gate.d.ts.map +1 -1
  15. package/dist/routes/agent-approvals.d.ts +14 -5
  16. package/dist/routes/agent-approvals.d.ts.map +1 -1
  17. package/dist/routes/agent-children.d.ts +2 -2
  18. package/dist/routes/agent-computers.d.ts +338 -0
  19. package/dist/routes/agent-computers.d.ts.map +1 -0
  20. package/dist/routes/agent-runners.d.ts +74 -0
  21. package/dist/routes/agent-runners.d.ts.map +1 -0
  22. package/dist/routes/agents.d.ts +250 -16
  23. package/dist/routes/agents.d.ts.map +1 -1
  24. package/dist/routes/ai-accounting.d.ts.map +1 -1
  25. package/dist/routes/artifacts.d.ts +5 -28
  26. package/dist/routes/artifacts.d.ts.map +1 -1
  27. package/dist/routes/auth.d.ts +10 -1
  28. package/dist/routes/auth.d.ts.map +1 -1
  29. package/dist/routes/datasets.d.ts +93 -17
  30. package/dist/routes/datasets.d.ts.map +1 -1
  31. package/dist/routes/events.d.ts +1 -1
  32. package/dist/routes/links.d.ts +121 -81
  33. package/dist/routes/links.d.ts.map +1 -1
  34. package/dist/routes/logs.d.ts +3 -3
  35. package/dist/routes/objects.d.ts +149 -58
  36. package/dist/routes/objects.d.ts.map +1 -1
  37. package/dist/routes/observed-agent-threads.d.ts +25 -4
  38. package/dist/routes/observed-agent-threads.d.ts.map +1 -1
  39. package/dist/routes/pipelines.d.ts +2 -2
  40. package/dist/routes/pipelines.d.ts.map +1 -1
  41. package/dist/routes/projections.d.ts +124 -122
  42. package/dist/routes/projections.d.ts.map +1 -1
  43. package/dist/routes/rules.d.ts +2 -2
  44. package/dist/routes/shared-access.d.ts +2 -2
  45. package/dist/routes/syncs.d.ts +34 -34
  46. package/dist/routes/syncs.d.ts.map +1 -1
  47. package/dist/routes/telemetry.d.ts +0 -50
  48. package/dist/routes/telemetry.d.ts.map +1 -1
  49. package/dist/routes/users.d.ts +1 -0
  50. package/dist/routes/users.d.ts.map +1 -1
  51. package/dist/routes/webhook-runs.d.ts +1 -1
  52. package/dist/routes/workflows.d.ts +25 -14
  53. package/dist/routes/workflows.d.ts.map +1 -1
  54. package/dist/routes/ws/agents.d.ts +4 -1
  55. package/dist/routes/ws/agents.d.ts.map +1 -1
  56. package/dist/routes/ws/logs.d.ts +10 -10
  57. package/dist/schemas/actions.d.ts +3 -3
  58. package/dist/schemas/activity.d.ts +4 -4
  59. package/dist/schemas/agent-approvals.d.ts +21 -21
  60. package/dist/schemas/agents.d.ts +819 -88
  61. package/dist/schemas/agents.d.ts.map +1 -1
  62. package/dist/schemas/ai-accounting.d.ts +1114 -6
  63. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  64. package/dist/schemas/auth.d.ts +49 -2
  65. package/dist/schemas/auth.d.ts.map +1 -1
  66. package/dist/schemas/datasets.d.ts +303 -60
  67. package/dist/schemas/datasets.d.ts.map +1 -1
  68. package/dist/schemas/event-payloads.d.ts +6 -6
  69. package/dist/schemas/events.d.ts +8 -8
  70. package/dist/schemas/lineage.d.ts +1272 -0
  71. package/dist/schemas/lineage.d.ts.map +1 -0
  72. package/dist/schemas/links.d.ts +4 -27
  73. package/dist/schemas/links.d.ts.map +1 -1
  74. package/dist/schemas/logs.d.ts +22 -22
  75. package/dist/schemas/objects.d.ts +7 -26
  76. package/dist/schemas/objects.d.ts.map +1 -1
  77. package/dist/schemas/pipelines.d.ts +12 -12
  78. package/dist/schemas/projections.d.ts +747 -733
  79. package/dist/schemas/projections.d.ts.map +1 -1
  80. package/dist/schemas/rules.d.ts +4 -4
  81. package/dist/schemas/shared-access.d.ts +2 -2
  82. package/dist/schemas/syncs.d.ts +24 -24
  83. package/dist/schemas/telemetry.d.ts +0 -13
  84. package/dist/schemas/telemetry.d.ts.map +1 -1
  85. package/dist/schemas/users.d.ts +8 -0
  86. package/dist/schemas/users.d.ts.map +1 -1
  87. package/dist/schemas/webhook-runs.d.ts +2 -2
  88. package/dist/schemas/workflows.d.ts +133 -44
  89. package/dist/schemas/workflows.d.ts.map +1 -1
  90. package/dist/server.d.ts +5 -0
  91. package/dist/server.d.ts.map +1 -1
  92. package/dist/utils/request-body.d.ts +5 -0
  93. package/dist/utils/request-body.d.ts.map +1 -1
  94. package/dist/utils/request-timing.d.ts +18 -0
  95. package/dist/utils/request-timing.d.ts.map +1 -0
  96. package/package.json +7 -7
  97. package/src/auth/public-routes.ts +0 -6
  98. package/src/auth/run-token.ts +327 -0
  99. package/src/auth/scope.ts +16 -37
  100. package/src/index.ts +1 -0
  101. package/src/registerRoutes.ts +4 -2
  102. package/src/routes/agent-approval-gate.ts +40 -14
  103. package/src/routes/agent-approvals.ts +3 -3
  104. package/src/routes/agent-computers.ts +348 -0
  105. package/src/routes/agent-runners.ts +205 -0
  106. package/src/routes/agents.ts +193 -26
  107. package/src/routes/ai-accounting.ts +149 -12
  108. package/src/routes/artifacts.ts +55 -11
  109. package/src/routes/auth.ts +24 -2
  110. package/src/routes/datasets.ts +60 -5
  111. package/src/routes/links.ts +43 -76
  112. package/src/routes/objects.ts +49 -42
  113. package/src/routes/observed-agent-threads.ts +2 -2
  114. package/src/routes/pipelines.ts +5 -0
  115. package/src/routes/syncs.ts +4 -0
  116. package/src/routes/telemetry.ts +1 -42
  117. package/src/routes/users.ts +15 -2
  118. package/src/routes/ws/agents.ts +10 -1
  119. package/src/schemas/agents.ts +131 -1
  120. package/src/schemas/ai-accounting.ts +78 -15
  121. package/src/schemas/artifacts.ts +1 -1
  122. package/src/schemas/auth.ts +19 -0
  123. package/src/schemas/datasets.ts +36 -0
  124. package/src/schemas/lineage.ts +115 -0
  125. package/src/schemas/links.ts +3 -11
  126. package/src/schemas/objects.ts +6 -10
  127. package/src/schemas/projections.ts +2 -0
  128. package/src/schemas/telemetry.ts +0 -6
  129. package/src/schemas/users.ts +6 -0
  130. package/src/server.ts +53 -15
  131. package/src/utils/request-body.ts +10 -4
  132. package/src/utils/request-timing.ts +136 -0
  133. package/dist/routes/agent-api-gateway.d.ts +0 -4
  134. package/dist/routes/agent-api-gateway.d.ts.map +0 -1
  135. package/src/routes/agent-api-gateway.ts +0 -404
@@ -31,23 +31,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
31
31
  type: string;
32
32
  };
33
33
  mode: "append" | "merge" | "snapshot";
34
- target: {
35
- kind: "dataset";
36
- dataset: {
37
- id: string;
38
- schema: {
39
- columns: {
40
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
41
- name: string;
42
- nullable?: boolean | undefined;
43
- }[];
44
- };
45
- description?: string | undefined;
46
- primaryKey?: string | string[] | undefined;
47
- sequenceBy?: string | undefined;
48
- partitionBy?: string[] | undefined;
49
- };
50
- };
51
34
  triggers: {
52
35
  type: "schedule";
53
36
  scheduleId: string;
@@ -71,6 +54,23 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
71
54
  commitMessage?: string | undefined;
72
55
  rowsRead?: number | undefined;
73
56
  } | null;
57
+ target: {
58
+ kind: "dataset";
59
+ dataset: {
60
+ id: string;
61
+ schema: {
62
+ columns: {
63
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
64
+ name: string;
65
+ nullable?: boolean | undefined;
66
+ }[];
67
+ };
68
+ description?: string | undefined;
69
+ primaryKey?: string | string[] | undefined;
70
+ sequenceBy?: string | undefined;
71
+ partitionBy?: string[] | undefined;
72
+ };
73
+ };
74
74
  }[];
75
75
  422: {
76
76
  type: "validation";
@@ -104,23 +104,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
104
104
  type: string;
105
105
  };
106
106
  mode: "append" | "merge" | "snapshot";
107
- target: {
108
- kind: "dataset";
109
- dataset: {
110
- id: string;
111
- schema: {
112
- columns: {
113
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
114
- name: string;
115
- nullable?: boolean | undefined;
116
- }[];
117
- };
118
- description?: string | undefined;
119
- primaryKey?: string | string[] | undefined;
120
- sequenceBy?: string | undefined;
121
- partitionBy?: string[] | undefined;
122
- };
123
- };
124
107
  triggers: {
125
108
  type: "schedule";
126
109
  scheduleId: string;
@@ -144,6 +127,23 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
144
127
  commitMessage?: string | undefined;
145
128
  rowsRead?: number | undefined;
146
129
  } | null;
130
+ target: {
131
+ kind: "dataset";
132
+ dataset: {
133
+ id: string;
134
+ schema: {
135
+ columns: {
136
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
137
+ name: string;
138
+ nullable?: boolean | undefined;
139
+ }[];
140
+ };
141
+ description?: string | undefined;
142
+ primaryKey?: string | string[] | undefined;
143
+ sequenceBy?: string | undefined;
144
+ partitionBy?: string[] | undefined;
145
+ };
146
+ };
147
147
  };
148
148
  404: {
149
149
  error: string;
@@ -1 +1 @@
1
- {"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/routes/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,YAAY,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqFpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiIjE"}
1
+ {"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/routes/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,YAAY,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsFpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoIjE"}
@@ -16,56 +16,6 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
16
16
  parser: {};
17
17
  response: {};
18
18
  }, {
19
- api: {
20
- objects: {
21
- ":objectTypeId": {
22
- ":objectId": {
23
- telemetry: {
24
- ":propertyId": {
25
- post: {
26
- body: {
27
- at?: string | undefined;
28
- value?: unknown;
29
- unit?: string | undefined;
30
- };
31
- params: {
32
- objectTypeId: string;
33
- objectId: string;
34
- propertyId: string;
35
- };
36
- query: unknown;
37
- headers: unknown;
38
- response: {
39
- 200: {
40
- success: boolean;
41
- };
42
- 404: {
43
- error: string;
44
- };
45
- 403: {
46
- error: string;
47
- };
48
- 400: {
49
- error: string;
50
- };
51
- 422: {
52
- type: "validation";
53
- on: string;
54
- summary?: string;
55
- message?: string;
56
- found?: unknown;
57
- property?: string;
58
- expected?: string;
59
- };
60
- };
61
- };
62
- };
63
- };
64
- };
65
- };
66
- };
67
- };
68
- } & {
69
19
  api: {
70
20
  telemetry: {
71
21
  history: {
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/routes/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2BpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsKvE"}
1
+ {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/routes/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA0BpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8HvE"}
@@ -23,6 +23,7 @@ export declare function registerUserRoutes(app: Elysia, _host: SixbHostView): El
23
23
  params: {};
24
24
  query: {
25
25
  status?: "active" | "all" | "suspended" | undefined;
26
+ email?: string | undefined;
26
27
  search?: string | undefined;
27
28
  limit?: number | undefined;
28
29
  offset?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/routes/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AASpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DlE"}
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/routes/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AASpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2ElE"}
@@ -28,8 +28,8 @@ export declare function registerWebhookRunRoutes(app: Elysia, host: SixbHostView
28
28
  limit?: string | undefined;
29
29
  offset?: string | undefined;
30
30
  order?: "asc" | "desc" | undefined;
31
- connectorId?: string | undefined;
32
31
  idempotencyKey?: string | undefined;
32
+ connectorId?: string | undefined;
33
33
  webhookId?: string | undefined;
34
34
  };
35
35
  headers: unknown;
@@ -58,7 +58,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
58
58
  output: Record<string, import("../schemas/common").JsonValue>;
59
59
  })[];
60
60
  latestRun: {
61
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
61
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
62
62
  projectId: string;
63
63
  id: string;
64
64
  requestedBy: {
@@ -131,7 +131,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
131
131
  output: Record<string, import("../schemas/common").JsonValue>;
132
132
  })[];
133
133
  latestRun: {
134
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
134
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
135
135
  projectId: string;
136
136
  id: string;
137
137
  requestedBy: {
@@ -314,8 +314,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
314
314
  headers: unknown;
315
315
  response: {
316
316
  200: {
317
- error: string;
318
- } | {
319
317
  intervention: {
320
318
  status: "pending" | "cancelled" | "expired" | "submitted";
321
319
  projectId: string;
@@ -345,6 +343,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
345
343
  expiredAt?: string | undefined;
346
344
  };
347
345
  jobId: string;
346
+ } | {
347
+ error: string;
348
348
  };
349
349
  404: {
350
350
  error: string;
@@ -475,7 +475,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
475
475
  body: unknown;
476
476
  params: {};
477
477
  query: {
478
- status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | undefined;
478
+ status?: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | undefined;
479
479
  startedAfter?: string | undefined;
480
480
  startedBefore?: string | undefined;
481
481
  limit?: string | undefined;
@@ -487,7 +487,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
487
487
  response: {
488
488
  200: {
489
489
  runs: {
490
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
490
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
491
491
  projectId: string;
492
492
  id: string;
493
493
  requestedBy: {
@@ -536,7 +536,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
536
536
  response: {
537
537
  200: {
538
538
  run: {
539
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
539
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
540
540
  projectId: string;
541
541
  id: string;
542
542
  requestedBy: {
@@ -552,7 +552,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
552
552
  output?: Record<string, import("../schemas/common").JsonValue> | undefined;
553
553
  };
554
554
  nodes: {
555
- status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
555
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "running";
556
556
  projectId: string;
557
557
  id: string;
558
558
  startedAt: string;
@@ -646,7 +646,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
646
646
  prompt: string;
647
647
  attempt: number;
648
648
  nodeRunId: string;
649
- error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
649
+ error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
650
650
  modelId?: string | undefined;
651
651
  startedAt?: string | undefined;
652
652
  completedAt?: string | undefined;
@@ -729,6 +729,17 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
729
729
  providerMetadata?: import("../schemas/common").JsonValue | undefined;
730
730
  dynamic?: boolean | undefined;
731
731
  providerExecuted?: boolean | undefined;
732
+ outputFile?: {
733
+ path: string;
734
+ fileRef: {
735
+ blobId: string;
736
+ digest: string;
737
+ sizeBytes: number;
738
+ fileName?: string | undefined;
739
+ mediaType?: string | undefined;
740
+ logicalPath?: string | undefined;
741
+ };
742
+ } | undefined;
732
743
  } | {
733
744
  type: "tool-call";
734
745
  input: import("../schemas/common").JsonValue;
@@ -776,7 +787,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
776
787
  } | {
777
788
  error: {
778
789
  at: string;
779
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
790
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
780
791
  message: string;
781
792
  retryable: boolean;
782
793
  details?: import("../schemas/common").JsonValue | undefined;
@@ -838,7 +849,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
838
849
  response: {
839
850
  200: {
840
851
  run: {
841
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting";
852
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
842
853
  projectId: string;
843
854
  id: string;
844
855
  requestedBy: {
@@ -854,7 +865,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
854
865
  output?: Record<string, import("../schemas/common").JsonValue> | undefined;
855
866
  };
856
867
  nodes: {
857
- status: "succeeded" | "failed" | "cancelled" | "running" | "waiting";
868
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "running";
858
869
  projectId: string;
859
870
  id: string;
860
871
  startedAt: string;
@@ -1102,12 +1113,12 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
1102
1113
  headers: unknown;
1103
1114
  response: {
1104
1115
  200: {
1105
- error: string;
1106
- } | {
1107
1116
  runId: string;
1108
1117
  workflowId: string;
1109
1118
  queuedAt: string;
1110
1119
  jobId: string;
1120
+ } | {
1121
+ error: string;
1111
1122
  };
1112
1123
  404: {
1113
1124
  error: string;
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAenB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuhBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuxBrE"}
1
+ {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAenB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuhBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuxBrE"}
@@ -63,7 +63,10 @@ export declare function canAccessAgentRunStream(sixb: Sixb, runId: string): Prom
63
63
  ok: false;
64
64
  message: string;
65
65
  }>;
66
- /** A run's or an approval's activity reaches whoever reads the turn it belongs to. */
66
+ /**
67
+ * A run's or an approval's activity reaches whoever reads the turn it belongs to; a computer
68
+ * session's, or a thread's move, its owner alone.
69
+ */
67
70
  export declare function canAccessAgentThreadActivity(sixb: Sixb, event: AgentActivityEvent): Promise<boolean>;
68
71
  export declare function registerAgentStreamRoutes(app: Elysia, server: SixbServer): Elysia<"", {
69
72
  decorator: {};
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,2BAA2B,CAAA;AAOlC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAA;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAgC9C,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK5B,CAAA;AAMF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GACpD;IACE,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAC/C,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd,CAcJ;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAMxD;AAED,sFAAsF;AACtF,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,OAAO,CAAC,CAGlB;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCxE"}
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/agents.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,2BAA2B,CAAA;AAOlC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAA;AAEjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAgC9C,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK5B,CAAA;AAMF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GACpD;IACE,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAC/C,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd,CAcJ;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAMxD;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,OAAO,CAAC,CAMlB;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCxE"}
@@ -19,46 +19,46 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
19
19
  id: z.ZodString;
20
20
  }, "strip", z.ZodTypeAny, {
21
21
  id: string;
22
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
22
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
23
23
  }, {
24
24
  id: string;
25
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
25
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
26
26
  }>>;
27
27
  afterCursor: z.ZodOptional<z.ZodString>;
28
28
  }, "strip", z.ZodTypeAny, {
29
29
  type: "subscribe";
30
30
  run?: {
31
31
  id: string;
32
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
32
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
33
33
  } | undefined;
34
- kinds?: ("workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection")[] | undefined;
34
+ kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
35
35
  afterCursor?: string | undefined;
36
36
  levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
37
37
  }, {
38
38
  type: "subscribe";
39
39
  run?: {
40
40
  id: string;
41
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
41
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
42
42
  } | undefined;
43
- kinds?: ("workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection")[] | undefined;
43
+ kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
44
44
  afterCursor?: string | undefined;
45
45
  levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
46
46
  }>, {
47
47
  type: "subscribe";
48
48
  run?: {
49
49
  id: string;
50
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
50
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
51
51
  } | undefined;
52
- kinds?: ("workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection")[] | undefined;
52
+ kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
53
53
  afterCursor?: string | undefined;
54
54
  levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
55
55
  }, {
56
56
  type: "subscribe";
57
57
  run?: {
58
58
  id: string;
59
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
59
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
60
60
  } | undefined;
61
- kinds?: ("workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection")[] | undefined;
61
+ kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
62
62
  afterCursor?: string | undefined;
63
63
  levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
64
64
  }>, z.ZodObject<{
@@ -95,13 +95,13 @@ export declare const ActionRunInProgressResponseSchema: z.ZodObject<{
95
95
  export declare const ActionRequestFailedResponseSchema: z.ZodObject<{
96
96
  error: z.ZodString;
97
97
  } & {
98
- code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
98
+ code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
99
99
  }, "strip", z.ZodTypeAny, {
100
100
  error: string;
101
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
101
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
102
102
  }, {
103
103
  error: string;
104
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
104
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
105
105
  }>;
106
106
  /** The server is stopping and refused the request before starting anything. */
107
107
  export declare const RuntimeStoppingResponseSchema: z.ZodObject<{
@@ -623,7 +623,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
623
623
  runVisible: z.ZodBoolean;
624
624
  }, "strip", z.ZodTypeAny, {
625
625
  at: string;
626
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | "incomplete";
626
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
627
627
  kind: "workflow";
628
628
  runId: string;
629
629
  workflowId: string;
@@ -631,7 +631,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
631
631
  runVisible: boolean;
632
632
  }, {
633
633
  at: string;
634
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | "incomplete";
634
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
635
635
  kind: "workflow";
636
636
  runId: string;
637
637
  workflowId: string;
@@ -752,7 +752,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
752
752
  } | undefined;
753
753
  } | {
754
754
  at: string;
755
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | "incomplete";
755
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
756
756
  kind: "workflow";
757
757
  runId: string;
758
758
  workflowId: string;
@@ -846,7 +846,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
846
846
  } | undefined;
847
847
  } | {
848
848
  at: string;
849
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | "incomplete";
849
+ status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
850
850
  kind: "workflow";
851
851
  runId: string;
852
852
  workflowId: string;