@sixb/server 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +3 -3
  2. package/dist/auth/application-access.d.ts +2 -2
  3. package/dist/auth/application-access.d.ts.map +1 -1
  4. package/dist/auth/connector-callback-cookie.d.ts +12 -0
  5. package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
  6. package/dist/auth/experience.d.ts +33 -0
  7. package/dist/auth/experience.d.ts.map +1 -0
  8. package/dist/auth/guard.d.ts +3 -3
  9. package/dist/auth/guard.d.ts.map +1 -1
  10. package/dist/auth/public-routes.d.ts.map +1 -1
  11. package/dist/auth/scope.d.ts +13 -27
  12. package/dist/auth/scope.d.ts.map +1 -1
  13. package/dist/auth/session-cookies.d.ts +2 -2
  14. package/dist/auth/session-cookies.d.ts.map +1 -1
  15. package/dist/connectors/http.d.ts +16 -0
  16. package/dist/connectors/http.d.ts.map +1 -0
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +3903 -2760
  20. package/dist/index.js.map +58 -50
  21. package/dist/openapi/tags.d.ts +15 -3
  22. package/dist/openapi/tags.d.ts.map +1 -1
  23. package/dist/registerRoutes.d.ts +6 -2
  24. package/dist/registerRoutes.d.ts.map +1 -1
  25. package/dist/routes/action-runs.d.ts +21 -31
  26. package/dist/routes/action-runs.d.ts.map +1 -1
  27. package/dist/routes/actions.d.ts +12 -11
  28. package/dist/routes/actions.d.ts.map +1 -1
  29. package/dist/routes/agent-api-gateway.d.ts +2 -2
  30. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  31. package/dist/routes/agents.d.ts +230 -159
  32. package/dist/routes/agents.d.ts.map +1 -1
  33. package/dist/routes/ai-accounting.d.ts +31 -0
  34. package/dist/routes/ai-accounting.d.ts.map +1 -0
  35. package/dist/routes/auth.d.ts +149 -92
  36. package/dist/routes/auth.d.ts.map +1 -1
  37. package/dist/routes/connector-connection-runs.d.ts +794 -0
  38. package/dist/routes/connector-connection-runs.d.ts.map +1 -0
  39. package/dist/routes/connector-connections.d.ts +219 -0
  40. package/dist/routes/connector-connections.d.ts.map +1 -0
  41. package/dist/routes/connectors.d.ts +10 -4
  42. package/dist/routes/connectors.d.ts.map +1 -1
  43. package/dist/routes/datasets.d.ts +16 -12
  44. package/dist/routes/datasets.d.ts.map +1 -1
  45. package/dist/routes/events.d.ts +9 -9
  46. package/dist/routes/events.d.ts.map +1 -1
  47. package/dist/routes/files.d.ts +19 -18
  48. package/dist/routes/files.d.ts.map +1 -1
  49. package/dist/routes/links.d.ts +11 -11
  50. package/dist/routes/links.d.ts.map +1 -1
  51. package/dist/routes/logs.d.ts +5 -5
  52. package/dist/routes/logs.d.ts.map +1 -1
  53. package/dist/routes/objects.d.ts +37 -37
  54. package/dist/routes/objects.d.ts.map +1 -1
  55. package/dist/routes/ontology.d.ts +50 -50
  56. package/dist/routes/ontology.d.ts.map +1 -1
  57. package/dist/routes/pipelines.d.ts +28 -38
  58. package/dist/routes/pipelines.d.ts.map +1 -1
  59. package/dist/routes/project.d.ts +2 -2
  60. package/dist/routes/project.d.ts.map +1 -1
  61. package/dist/routes/projections.d.ts +145 -85
  62. package/dist/routes/projections.d.ts.map +1 -1
  63. package/dist/routes/rules.d.ts +6 -6
  64. package/dist/routes/rules.d.ts.map +1 -1
  65. package/dist/routes/status.d.ts +2 -2
  66. package/dist/routes/status.d.ts.map +1 -1
  67. package/dist/routes/syncs.d.ts +23 -28
  68. package/dist/routes/syncs.d.ts.map +1 -1
  69. package/dist/routes/telemetry.d.ts +9 -9
  70. package/dist/routes/telemetry.d.ts.map +1 -1
  71. package/dist/routes/webhook-runs.d.ts +9 -9
  72. package/dist/routes/webhook-runs.d.ts.map +1 -1
  73. package/dist/routes/webhooks.d.ts +2 -2
  74. package/dist/routes/webhooks.d.ts.map +1 -1
  75. package/dist/routes/workflows.d.ts +177 -66
  76. package/dist/routes/workflows.d.ts.map +1 -1
  77. package/dist/routes/ws/agents.d.ts +11 -5
  78. package/dist/routes/ws/agents.d.ts.map +1 -1
  79. package/dist/routes/ws/events.d.ts +8 -8
  80. package/dist/routes/ws/events.d.ts.map +1 -1
  81. package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
  82. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
  83. package/dist/routes/ws/logs.d.ts +10 -10
  84. package/dist/routes/ws/logs.d.ts.map +1 -1
  85. package/dist/schemas/actions.d.ts +89 -194
  86. package/dist/schemas/actions.d.ts.map +1 -1
  87. package/dist/schemas/agents.d.ts +791 -471
  88. package/dist/schemas/agents.d.ts.map +1 -1
  89. package/dist/schemas/ai-accounting.d.ts +2393 -0
  90. package/dist/schemas/ai-accounting.d.ts.map +1 -0
  91. package/dist/schemas/ai-usage.d.ts +34 -0
  92. package/dist/schemas/ai-usage.d.ts.map +1 -0
  93. package/dist/schemas/auth.d.ts +102 -102
  94. package/dist/schemas/common.d.ts +37 -0
  95. package/dist/schemas/common.d.ts.map +1 -1
  96. package/dist/schemas/connectors.d.ts +713 -2
  97. package/dist/schemas/connectors.d.ts.map +1 -1
  98. package/dist/schemas/datasets.d.ts +2 -2
  99. package/dist/schemas/event-payloads.d.ts +12 -12
  100. package/dist/schemas/events.d.ts +40 -40
  101. package/dist/schemas/links.d.ts +2 -2
  102. package/dist/schemas/logs.d.ts +22 -22
  103. package/dist/schemas/objects.d.ts +10 -10
  104. package/dist/schemas/ontology.d.ts +118 -118
  105. package/dist/schemas/pipelines.d.ts +89 -184
  106. package/dist/schemas/pipelines.d.ts.map +1 -1
  107. package/dist/schemas/projections.d.ts +1030 -563
  108. package/dist/schemas/projections.d.ts.map +1 -1
  109. package/dist/schemas/rules.d.ts +6 -6
  110. package/dist/schemas/syncs.d.ts +65 -108
  111. package/dist/schemas/syncs.d.ts.map +1 -1
  112. package/dist/schemas/webhook-runs.d.ts +41 -41
  113. package/dist/schemas/webhook-runs.d.ts.map +1 -1
  114. package/dist/schemas/workflows.d.ts +1189 -185
  115. package/dist/schemas/workflows.d.ts.map +1 -1
  116. package/dist/server.d.ts +11 -6
  117. package/dist/server.d.ts.map +1 -1
  118. package/dist/utils/http.d.ts +2 -0
  119. package/dist/utils/http.d.ts.map +1 -1
  120. package/dist/utils/ws.d.ts +4 -3
  121. package/dist/utils/ws.d.ts.map +1 -1
  122. package/package.json +5 -5
  123. package/src/auth/access-token-boundary.ts +4 -4
  124. package/src/auth/application-access.ts +8 -9
  125. package/src/auth/connector-callback-cookie.ts +95 -0
  126. package/src/auth/experience.ts +190 -0
  127. package/src/auth/guard.ts +11 -11
  128. package/src/auth/public-routes.ts +20 -0
  129. package/src/auth/scope.ts +26 -36
  130. package/src/auth/session-cookies.ts +3 -3
  131. package/src/connectors/http.ts +110 -0
  132. package/src/index.ts +1 -0
  133. package/src/openapi/tags.ts +13 -1
  134. package/src/registerRoutes.ts +36 -23
  135. package/src/routes/action-runs.ts +39 -39
  136. package/src/routes/actions.ts +7 -13
  137. package/src/routes/agent-api-gateway.ts +41 -38
  138. package/src/routes/agents.ts +90 -200
  139. package/src/routes/ai-accounting.ts +166 -0
  140. package/src/routes/auth.ts +274 -122
  141. package/src/routes/connector-connection-runs.ts +346 -0
  142. package/src/routes/connector-connections.ts +135 -0
  143. package/src/routes/connectors.ts +24 -12
  144. package/src/routes/datasets.ts +55 -54
  145. package/src/routes/events.ts +5 -5
  146. package/src/routes/files.ts +22 -30
  147. package/src/routes/links.ts +31 -35
  148. package/src/routes/logs.ts +6 -11
  149. package/src/routes/objects.ts +51 -114
  150. package/src/routes/ontology.ts +27 -38
  151. package/src/routes/pipelines.ts +28 -62
  152. package/src/routes/project.ts +3 -3
  153. package/src/routes/projections.ts +44 -42
  154. package/src/routes/rules.ts +11 -25
  155. package/src/routes/status.ts +5 -5
  156. package/src/routes/syncs.ts +19 -45
  157. package/src/routes/telemetry.ts +18 -29
  158. package/src/routes/webhook-runs.ts +5 -5
  159. package/src/routes/webhooks.ts +259 -341
  160. package/src/routes/workflows.ts +242 -248
  161. package/src/routes/ws/agents.ts +196 -66
  162. package/src/routes/ws/events.ts +11 -10
  163. package/src/routes/ws/log-subscription-hub.ts +6 -12
  164. package/src/routes/ws/logs.ts +13 -5
  165. package/src/schemas/actions.ts +58 -25
  166. package/src/schemas/agents.ts +23 -23
  167. package/src/schemas/ai-accounting.ts +182 -0
  168. package/src/schemas/ai-usage.ts +16 -0
  169. package/src/schemas/common.ts +24 -0
  170. package/src/schemas/connectors.ts +164 -0
  171. package/src/schemas/pipelines.ts +23 -15
  172. package/src/schemas/projections.ts +23 -3
  173. package/src/schemas/syncs.ts +13 -8
  174. package/src/schemas/webhook-runs.ts +10 -5
  175. package/src/schemas/workflows.ts +23 -8
  176. package/src/server.ts +75 -26
  177. package/src/utils/http.ts +34 -6
  178. package/src/utils/ws.ts +10 -5
@@ -1,3 +1,4 @@
1
+ import { type SixbFailure } from "@sixb/core/storage";
1
2
  import { z } from "zod";
2
3
  export declare const PipelineParamsSchema: z.ZodObject<{
3
4
  pipelineId: z.ZodString;
@@ -13,38 +14,39 @@ export declare const PipelineRunParamsSchema: z.ZodObject<{
13
14
  }, {
14
15
  runId: string;
15
16
  }>;
16
- export declare const PipelineRunStatusSchema: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
17
+ export declare const PipelineRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
17
18
  export declare const PipelineRunsQuerySchema: z.ZodObject<{
18
19
  pipelineId: z.ZodOptional<z.ZodString>;
19
- status: z.ZodOptional<z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>>;
20
+ status: z.ZodOptional<z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>>;
20
21
  startedAfter: z.ZodOptional<z.ZodString>;
21
22
  startedBefore: z.ZodOptional<z.ZodString>;
22
23
  limit: z.ZodOptional<z.ZodString>;
23
24
  offset: z.ZodOptional<z.ZodString>;
24
25
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
25
26
  }, "strip", z.ZodTypeAny, {
26
- status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
27
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
28
+ startedAfter?: string | undefined;
29
+ startedBefore?: string | undefined;
27
30
  limit?: string | undefined;
28
31
  offset?: string | undefined;
29
32
  order?: "asc" | "desc" | undefined;
30
- startedAfter?: string | undefined;
31
- startedBefore?: string | undefined;
32
33
  pipelineId?: string | undefined;
33
34
  }, {
34
- status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
35
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
36
+ startedAfter?: string | undefined;
37
+ startedBefore?: string | undefined;
35
38
  limit?: string | undefined;
36
39
  offset?: string | undefined;
37
40
  order?: "asc" | "desc" | undefined;
38
- startedAfter?: string | undefined;
39
- startedBefore?: string | undefined;
40
41
  pipelineId?: string | undefined;
41
42
  }>;
42
43
  export declare const PipelineRunSchema: z.ZodObject<{
43
44
  id: z.ZodString;
44
45
  projectId: z.ZodString;
45
46
  pipelineId: z.ZodString;
46
- status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
47
- startedAt: z.ZodString;
47
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
48
+ queuedAt: z.ZodString;
49
+ startedAt: z.ZodOptional<z.ZodString>;
48
50
  finishedAt: z.ZodOptional<z.ZodString>;
49
51
  output: z.ZodOptional<z.ZodObject<{
50
52
  datasetId: z.ZodString;
@@ -56,41 +58,28 @@ export declare const PipelineRunSchema: z.ZodObject<{
56
58
  datasetId: string;
57
59
  versionId: string;
58
60
  }>>;
59
- error: z.ZodOptional<z.ZodObject<{
60
- name: z.ZodOptional<z.ZodString>;
61
- message: z.ZodString;
62
- }, "strip", z.ZodTypeAny, {
63
- message: string;
64
- name?: string | undefined;
65
- }, {
66
- message: string;
67
- name?: string | undefined;
68
- }>>;
61
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
69
62
  }, "strip", z.ZodTypeAny, {
70
- status: "running" | "succeeded" | "failed" | "cancelled";
63
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
71
64
  projectId: string;
72
65
  id: string;
73
- startedAt: string;
66
+ queuedAt: string;
74
67
  pipelineId: string;
75
- error?: {
76
- message: string;
77
- name?: string | undefined;
78
- } | undefined;
68
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
69
+ startedAt?: string | undefined;
79
70
  finishedAt?: string | undefined;
80
71
  output?: {
81
72
  datasetId: string;
82
73
  versionId: string;
83
74
  } | undefined;
84
75
  }, {
85
- status: "running" | "succeeded" | "failed" | "cancelled";
76
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
86
77
  projectId: string;
87
78
  id: string;
88
- startedAt: string;
79
+ queuedAt: string;
89
80
  pipelineId: string;
90
- error?: {
91
- message: string;
92
- name?: string | undefined;
93
- } | undefined;
81
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
82
+ startedAt?: string | undefined;
94
83
  finishedAt?: string | undefined;
95
84
  output?: {
96
85
  datasetId: string;
@@ -129,16 +118,7 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
129
118
  versionId: string;
130
119
  }>>;
131
120
  rowsWritten: z.ZodOptional<z.ZodNumber>;
132
- error: z.ZodOptional<z.ZodObject<{
133
- name: z.ZodOptional<z.ZodString>;
134
- message: z.ZodString;
135
- }, "strip", z.ZodTypeAny, {
136
- message: string;
137
- name?: string | undefined;
138
- }, {
139
- message: string;
140
- name?: string | undefined;
141
- }>>;
121
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
142
122
  }, "strip", z.ZodTypeAny, {
143
123
  status: "running" | "succeeded" | "failed" | "cancelled";
144
124
  projectId: string;
@@ -153,10 +133,7 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
153
133
  pipelineId: string;
154
134
  stepId: string;
155
135
  pipelineRunId: string;
156
- error?: {
157
- message: string;
158
- name?: string | undefined;
159
- } | undefined;
136
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
160
137
  finishedAt?: string | undefined;
161
138
  output?: {
162
139
  datasetId: string;
@@ -177,10 +154,7 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
177
154
  pipelineId: string;
178
155
  stepId: string;
179
156
  pipelineRunId: string;
180
- error?: {
181
- message: string;
182
- name?: string | undefined;
183
- } | undefined;
157
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
184
158
  finishedAt?: string | undefined;
185
159
  output?: {
186
160
  datasetId: string;
@@ -866,8 +840,9 @@ export declare const PipelineSchema: z.ZodObject<{
866
840
  id: z.ZodString;
867
841
  projectId: z.ZodString;
868
842
  pipelineId: z.ZodString;
869
- status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
870
- startedAt: z.ZodString;
843
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
844
+ queuedAt: z.ZodString;
845
+ startedAt: z.ZodOptional<z.ZodString>;
871
846
  finishedAt: z.ZodOptional<z.ZodString>;
872
847
  output: z.ZodOptional<z.ZodObject<{
873
848
  datasetId: z.ZodString;
@@ -879,41 +854,28 @@ export declare const PipelineSchema: z.ZodObject<{
879
854
  datasetId: string;
880
855
  versionId: string;
881
856
  }>>;
882
- error: z.ZodOptional<z.ZodObject<{
883
- name: z.ZodOptional<z.ZodString>;
884
- message: z.ZodString;
885
- }, "strip", z.ZodTypeAny, {
886
- message: string;
887
- name?: string | undefined;
888
- }, {
889
- message: string;
890
- name?: string | undefined;
891
- }>>;
857
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
892
858
  }, "strip", z.ZodTypeAny, {
893
- status: "running" | "succeeded" | "failed" | "cancelled";
859
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
894
860
  projectId: string;
895
861
  id: string;
896
- startedAt: string;
862
+ queuedAt: string;
897
863
  pipelineId: string;
898
- error?: {
899
- message: string;
900
- name?: string | undefined;
901
- } | undefined;
864
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
865
+ startedAt?: string | undefined;
902
866
  finishedAt?: string | undefined;
903
867
  output?: {
904
868
  datasetId: string;
905
869
  versionId: string;
906
870
  } | undefined;
907
871
  }, {
908
- status: "running" | "succeeded" | "failed" | "cancelled";
872
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
909
873
  projectId: string;
910
874
  id: string;
911
- startedAt: string;
875
+ queuedAt: string;
912
876
  pipelineId: string;
913
- error?: {
914
- message: string;
915
- name?: string | undefined;
916
- } | undefined;
877
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
878
+ startedAt?: string | undefined;
917
879
  finishedAt?: string | undefined;
918
880
  output?: {
919
881
  datasetId: string;
@@ -972,15 +934,13 @@ export declare const PipelineSchema: z.ZodObject<{
972
934
  }[];
973
935
  };
974
936
  latestRun: {
975
- status: "running" | "succeeded" | "failed" | "cancelled";
937
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
976
938
  projectId: string;
977
939
  id: string;
978
- startedAt: string;
940
+ queuedAt: string;
979
941
  pipelineId: string;
980
- error?: {
981
- message: string;
982
- name?: string | undefined;
983
- } | undefined;
942
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
943
+ startedAt?: string | undefined;
984
944
  finishedAt?: string | undefined;
985
945
  output?: {
986
946
  datasetId: string;
@@ -1039,15 +999,13 @@ export declare const PipelineSchema: z.ZodObject<{
1039
999
  }[];
1040
1000
  };
1041
1001
  latestRun: {
1042
- status: "running" | "succeeded" | "failed" | "cancelled";
1002
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1043
1003
  projectId: string;
1044
1004
  id: string;
1045
- startedAt: string;
1005
+ queuedAt: string;
1046
1006
  pipelineId: string;
1047
- error?: {
1048
- message: string;
1049
- name?: string | undefined;
1050
- } | undefined;
1007
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1008
+ startedAt?: string | undefined;
1051
1009
  finishedAt?: string | undefined;
1052
1010
  output?: {
1053
1011
  datasetId: string;
@@ -1060,8 +1018,9 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
1060
1018
  id: z.ZodString;
1061
1019
  projectId: z.ZodString;
1062
1020
  pipelineId: z.ZodString;
1063
- status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
1064
- startedAt: z.ZodString;
1021
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
1022
+ queuedAt: z.ZodString;
1023
+ startedAt: z.ZodOptional<z.ZodString>;
1065
1024
  finishedAt: z.ZodOptional<z.ZodString>;
1066
1025
  output: z.ZodOptional<z.ZodObject<{
1067
1026
  datasetId: z.ZodString;
@@ -1073,41 +1032,28 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
1073
1032
  datasetId: string;
1074
1033
  versionId: string;
1075
1034
  }>>;
1076
- error: z.ZodOptional<z.ZodObject<{
1077
- name: z.ZodOptional<z.ZodString>;
1078
- message: z.ZodString;
1079
- }, "strip", z.ZodTypeAny, {
1080
- message: string;
1081
- name?: string | undefined;
1082
- }, {
1083
- message: string;
1084
- name?: string | undefined;
1085
- }>>;
1035
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
1086
1036
  }, "strip", z.ZodTypeAny, {
1087
- status: "running" | "succeeded" | "failed" | "cancelled";
1037
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1088
1038
  projectId: string;
1089
1039
  id: string;
1090
- startedAt: string;
1040
+ queuedAt: string;
1091
1041
  pipelineId: string;
1092
- error?: {
1093
- message: string;
1094
- name?: string | undefined;
1095
- } | undefined;
1042
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1043
+ startedAt?: string | undefined;
1096
1044
  finishedAt?: string | undefined;
1097
1045
  output?: {
1098
1046
  datasetId: string;
1099
1047
  versionId: string;
1100
1048
  } | undefined;
1101
1049
  }, {
1102
- status: "running" | "succeeded" | "failed" | "cancelled";
1050
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1103
1051
  projectId: string;
1104
1052
  id: string;
1105
- startedAt: string;
1053
+ queuedAt: string;
1106
1054
  pipelineId: string;
1107
- error?: {
1108
- message: string;
1109
- name?: string | undefined;
1110
- } | undefined;
1055
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1056
+ startedAt?: string | undefined;
1111
1057
  finishedAt?: string | undefined;
1112
1058
  output?: {
1113
1059
  datasetId: string;
@@ -1118,15 +1064,13 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
1118
1064
  total: z.ZodNumber;
1119
1065
  }, "strip", z.ZodTypeAny, {
1120
1066
  runs: {
1121
- status: "running" | "succeeded" | "failed" | "cancelled";
1067
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1122
1068
  projectId: string;
1123
1069
  id: string;
1124
- startedAt: string;
1070
+ queuedAt: string;
1125
1071
  pipelineId: string;
1126
- error?: {
1127
- message: string;
1128
- name?: string | undefined;
1129
- } | undefined;
1072
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1073
+ startedAt?: string | undefined;
1130
1074
  finishedAt?: string | undefined;
1131
1075
  output?: {
1132
1076
  datasetId: string;
@@ -1137,15 +1081,13 @@ export declare const PipelineRunListResponseSchema: z.ZodObject<{
1137
1081
  total: number;
1138
1082
  }, {
1139
1083
  runs: {
1140
- status: "running" | "succeeded" | "failed" | "cancelled";
1084
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1141
1085
  projectId: string;
1142
1086
  id: string;
1143
- startedAt: string;
1087
+ queuedAt: string;
1144
1088
  pipelineId: string;
1145
- error?: {
1146
- message: string;
1147
- name?: string | undefined;
1148
- } | undefined;
1089
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1090
+ startedAt?: string | undefined;
1149
1091
  finishedAt?: string | undefined;
1150
1092
  output?: {
1151
1093
  datasetId: string;
@@ -1160,8 +1102,9 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1160
1102
  id: z.ZodString;
1161
1103
  projectId: z.ZodString;
1162
1104
  pipelineId: z.ZodString;
1163
- status: z.ZodEnum<["running", "succeeded", "failed", "cancelled"]>;
1164
- startedAt: z.ZodString;
1105
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
1106
+ queuedAt: z.ZodString;
1107
+ startedAt: z.ZodOptional<z.ZodString>;
1165
1108
  finishedAt: z.ZodOptional<z.ZodString>;
1166
1109
  output: z.ZodOptional<z.ZodObject<{
1167
1110
  datasetId: z.ZodString;
@@ -1173,41 +1116,28 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1173
1116
  datasetId: string;
1174
1117
  versionId: string;
1175
1118
  }>>;
1176
- error: z.ZodOptional<z.ZodObject<{
1177
- name: z.ZodOptional<z.ZodString>;
1178
- message: z.ZodString;
1179
- }, "strip", z.ZodTypeAny, {
1180
- message: string;
1181
- name?: string | undefined;
1182
- }, {
1183
- message: string;
1184
- name?: string | undefined;
1185
- }>>;
1119
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
1186
1120
  }, "strip", z.ZodTypeAny, {
1187
- status: "running" | "succeeded" | "failed" | "cancelled";
1121
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1188
1122
  projectId: string;
1189
1123
  id: string;
1190
- startedAt: string;
1124
+ queuedAt: string;
1191
1125
  pipelineId: string;
1192
- error?: {
1193
- message: string;
1194
- name?: string | undefined;
1195
- } | undefined;
1126
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1127
+ startedAt?: string | undefined;
1196
1128
  finishedAt?: string | undefined;
1197
1129
  output?: {
1198
1130
  datasetId: string;
1199
1131
  versionId: string;
1200
1132
  } | undefined;
1201
1133
  }, {
1202
- status: "running" | "succeeded" | "failed" | "cancelled";
1134
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1203
1135
  projectId: string;
1204
1136
  id: string;
1205
- startedAt: string;
1137
+ queuedAt: string;
1206
1138
  pipelineId: string;
1207
- error?: {
1208
- message: string;
1209
- name?: string | undefined;
1210
- } | undefined;
1139
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1140
+ startedAt?: string | undefined;
1211
1141
  finishedAt?: string | undefined;
1212
1142
  output?: {
1213
1143
  datasetId: string;
@@ -1246,16 +1176,7 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1246
1176
  versionId: string;
1247
1177
  }>>;
1248
1178
  rowsWritten: z.ZodOptional<z.ZodNumber>;
1249
- error: z.ZodOptional<z.ZodObject<{
1250
- name: z.ZodOptional<z.ZodString>;
1251
- message: z.ZodString;
1252
- }, "strip", z.ZodTypeAny, {
1253
- message: string;
1254
- name?: string | undefined;
1255
- }, {
1256
- message: string;
1257
- name?: string | undefined;
1258
- }>>;
1179
+ error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled">>>;
1259
1180
  }, "strip", z.ZodTypeAny, {
1260
1181
  status: "running" | "succeeded" | "failed" | "cancelled";
1261
1182
  projectId: string;
@@ -1270,10 +1191,7 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1270
1191
  pipelineId: string;
1271
1192
  stepId: string;
1272
1193
  pipelineRunId: string;
1273
- error?: {
1274
- message: string;
1275
- name?: string | undefined;
1276
- } | undefined;
1194
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1277
1195
  finishedAt?: string | undefined;
1278
1196
  output?: {
1279
1197
  datasetId: string;
@@ -1294,10 +1212,7 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1294
1212
  pipelineId: string;
1295
1213
  stepId: string;
1296
1214
  pipelineRunId: string;
1297
- error?: {
1298
- message: string;
1299
- name?: string | undefined;
1300
- } | undefined;
1215
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1301
1216
  finishedAt?: string | undefined;
1302
1217
  output?: {
1303
1218
  datasetId: string;
@@ -1307,15 +1222,13 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1307
1222
  }>, "many">;
1308
1223
  }, "strip", z.ZodTypeAny, {
1309
1224
  run: {
1310
- status: "running" | "succeeded" | "failed" | "cancelled";
1225
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1311
1226
  projectId: string;
1312
1227
  id: string;
1313
- startedAt: string;
1228
+ queuedAt: string;
1314
1229
  pipelineId: string;
1315
- error?: {
1316
- message: string;
1317
- name?: string | undefined;
1318
- } | undefined;
1230
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1231
+ startedAt?: string | undefined;
1319
1232
  finishedAt?: string | undefined;
1320
1233
  output?: {
1321
1234
  datasetId: string;
@@ -1336,10 +1249,7 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1336
1249
  pipelineId: string;
1337
1250
  stepId: string;
1338
1251
  pipelineRunId: string;
1339
- error?: {
1340
- message: string;
1341
- name?: string | undefined;
1342
- } | undefined;
1252
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1343
1253
  finishedAt?: string | undefined;
1344
1254
  output?: {
1345
1255
  datasetId: string;
@@ -1349,15 +1259,13 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1349
1259
  }[];
1350
1260
  }, {
1351
1261
  run: {
1352
- status: "running" | "succeeded" | "failed" | "cancelled";
1262
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1353
1263
  projectId: string;
1354
1264
  id: string;
1355
- startedAt: string;
1265
+ queuedAt: string;
1356
1266
  pipelineId: string;
1357
- error?: {
1358
- message: string;
1359
- name?: string | undefined;
1360
- } | undefined;
1267
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1268
+ startedAt?: string | undefined;
1361
1269
  finishedAt?: string | undefined;
1362
1270
  output?: {
1363
1271
  datasetId: string;
@@ -1378,10 +1286,7 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1378
1286
  pipelineId: string;
1379
1287
  stepId: string;
1380
1288
  pipelineRunId: string;
1381
- error?: {
1382
- message: string;
1383
- name?: string | undefined;
1384
- } | undefined;
1289
+ error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
1385
1290
  finishedAt?: string | undefined;
1386
1291
  output?: {
1387
1292
  datasetId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/schemas/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAA;AAEF,eAAO,MAAM,uBAAuB,4DAA0D,CAAA;AAE9F,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;EAQlC,CAAA;AAsBF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc5B,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBhC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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