@sixb/server 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) 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/guard.d.ts +3 -3
  7. package/dist/auth/guard.d.ts.map +1 -1
  8. package/dist/auth/public-routes.d.ts.map +1 -1
  9. package/dist/auth/scope.d.ts +13 -27
  10. package/dist/auth/scope.d.ts.map +1 -1
  11. package/dist/auth/session-cookies.d.ts +2 -2
  12. package/dist/auth/session-cookies.d.ts.map +1 -1
  13. package/dist/connectors/http.d.ts +16 -0
  14. package/dist/connectors/http.d.ts.map +1 -0
  15. package/dist/index.js +3293 -2704
  16. package/dist/index.js.map +55 -50
  17. package/dist/openapi/tags.d.ts +11 -3
  18. package/dist/openapi/tags.d.ts.map +1 -1
  19. package/dist/registerRoutes.d.ts +6 -2
  20. package/dist/registerRoutes.d.ts.map +1 -1
  21. package/dist/routes/action-runs.d.ts +21 -31
  22. package/dist/routes/action-runs.d.ts.map +1 -1
  23. package/dist/routes/actions.d.ts +9 -8
  24. package/dist/routes/actions.d.ts.map +1 -1
  25. package/dist/routes/agent-api-gateway.d.ts +2 -2
  26. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  27. package/dist/routes/agents.d.ts +130 -131
  28. package/dist/routes/agents.d.ts.map +1 -1
  29. package/dist/routes/auth.d.ts +84 -84
  30. package/dist/routes/auth.d.ts.map +1 -1
  31. package/dist/routes/connector-connection-runs.d.ts +794 -0
  32. package/dist/routes/connector-connection-runs.d.ts.map +1 -0
  33. package/dist/routes/connector-connections.d.ts +219 -0
  34. package/dist/routes/connector-connections.d.ts.map +1 -0
  35. package/dist/routes/connectors.d.ts +10 -4
  36. package/dist/routes/connectors.d.ts.map +1 -1
  37. package/dist/routes/datasets.d.ts +8 -4
  38. package/dist/routes/datasets.d.ts.map +1 -1
  39. package/dist/routes/events.d.ts +8 -8
  40. package/dist/routes/events.d.ts.map +1 -1
  41. package/dist/routes/files.d.ts +11 -10
  42. package/dist/routes/files.d.ts.map +1 -1
  43. package/dist/routes/links.d.ts +2 -2
  44. package/dist/routes/links.d.ts.map +1 -1
  45. package/dist/routes/logs.d.ts +5 -5
  46. package/dist/routes/logs.d.ts.map +1 -1
  47. package/dist/routes/objects.d.ts +34 -34
  48. package/dist/routes/objects.d.ts.map +1 -1
  49. package/dist/routes/ontology.d.ts +50 -50
  50. package/dist/routes/ontology.d.ts.map +1 -1
  51. package/dist/routes/pipelines.d.ts +24 -34
  52. package/dist/routes/pipelines.d.ts.map +1 -1
  53. package/dist/routes/project.d.ts +2 -2
  54. package/dist/routes/project.d.ts.map +1 -1
  55. package/dist/routes/projections.d.ts +131 -83
  56. package/dist/routes/projections.d.ts.map +1 -1
  57. package/dist/routes/rules.d.ts +6 -6
  58. package/dist/routes/rules.d.ts.map +1 -1
  59. package/dist/routes/status.d.ts +2 -2
  60. package/dist/routes/status.d.ts.map +1 -1
  61. package/dist/routes/syncs.d.ts +20 -25
  62. package/dist/routes/syncs.d.ts.map +1 -1
  63. package/dist/routes/telemetry.d.ts +2 -2
  64. package/dist/routes/telemetry.d.ts.map +1 -1
  65. package/dist/routes/webhook-runs.d.ts +9 -9
  66. package/dist/routes/webhook-runs.d.ts.map +1 -1
  67. package/dist/routes/webhooks.d.ts +2 -2
  68. package/dist/routes/webhooks.d.ts.map +1 -1
  69. package/dist/routes/workflows.d.ts +74 -48
  70. package/dist/routes/workflows.d.ts.map +1 -1
  71. package/dist/routes/ws/agents.d.ts +11 -5
  72. package/dist/routes/ws/agents.d.ts.map +1 -1
  73. package/dist/routes/ws/events.d.ts +8 -8
  74. package/dist/routes/ws/events.d.ts.map +1 -1
  75. package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
  76. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
  77. package/dist/routes/ws/logs.d.ts +10 -10
  78. package/dist/routes/ws/logs.d.ts.map +1 -1
  79. package/dist/schemas/actions.d.ts +97 -202
  80. package/dist/schemas/actions.d.ts.map +1 -1
  81. package/dist/schemas/agents.d.ts +442 -439
  82. package/dist/schemas/agents.d.ts.map +1 -1
  83. package/dist/schemas/ai-usage.d.ts +34 -0
  84. package/dist/schemas/ai-usage.d.ts.map +1 -0
  85. package/dist/schemas/auth.d.ts +142 -142
  86. package/dist/schemas/common.d.ts +37 -0
  87. package/dist/schemas/common.d.ts.map +1 -1
  88. package/dist/schemas/connectors.d.ts +713 -2
  89. package/dist/schemas/connectors.d.ts.map +1 -1
  90. package/dist/schemas/datasets.d.ts +2 -2
  91. package/dist/schemas/event-payloads.d.ts +6 -6
  92. package/dist/schemas/events.d.ts +34 -34
  93. package/dist/schemas/logs.d.ts +22 -22
  94. package/dist/schemas/objects.d.ts +10 -10
  95. package/dist/schemas/ontology.d.ts +118 -118
  96. package/dist/schemas/pipelines.d.ts +95 -190
  97. package/dist/schemas/pipelines.d.ts.map +1 -1
  98. package/dist/schemas/projections.d.ts +918 -563
  99. package/dist/schemas/projections.d.ts.map +1 -1
  100. package/dist/schemas/rules.d.ts +6 -6
  101. package/dist/schemas/status.d.ts +2 -2
  102. package/dist/schemas/syncs.d.ts +65 -108
  103. package/dist/schemas/syncs.d.ts.map +1 -1
  104. package/dist/schemas/webhook-runs.d.ts +41 -41
  105. package/dist/schemas/webhook-runs.d.ts.map +1 -1
  106. package/dist/schemas/workflows.d.ts +516 -183
  107. package/dist/schemas/workflows.d.ts.map +1 -1
  108. package/dist/server.d.ts +6 -6
  109. package/dist/server.d.ts.map +1 -1
  110. package/dist/utils/http.d.ts +2 -0
  111. package/dist/utils/http.d.ts.map +1 -1
  112. package/dist/utils/ws.d.ts +4 -3
  113. package/dist/utils/ws.d.ts.map +1 -1
  114. package/package.json +4 -4
  115. package/src/auth/access-token-boundary.ts +4 -4
  116. package/src/auth/application-access.ts +8 -9
  117. package/src/auth/connector-callback-cookie.ts +95 -0
  118. package/src/auth/guard.ts +11 -11
  119. package/src/auth/public-routes.ts +13 -0
  120. package/src/auth/scope.ts +26 -36
  121. package/src/auth/session-cookies.ts +3 -3
  122. package/src/connectors/http.ts +110 -0
  123. package/src/openapi/tags.ts +9 -1
  124. package/src/registerRoutes.ts +34 -23
  125. package/src/routes/action-runs.ts +39 -39
  126. package/src/routes/actions.ts +7 -13
  127. package/src/routes/agent-api-gateway.ts +41 -38
  128. package/src/routes/agents.ts +89 -200
  129. package/src/routes/auth.ts +87 -91
  130. package/src/routes/connector-connection-runs.ts +346 -0
  131. package/src/routes/connector-connections.ts +135 -0
  132. package/src/routes/connectors.ts +24 -12
  133. package/src/routes/datasets.ts +55 -54
  134. package/src/routes/events.ts +5 -5
  135. package/src/routes/files.ts +22 -30
  136. package/src/routes/links.ts +31 -35
  137. package/src/routes/logs.ts +6 -11
  138. package/src/routes/objects.ts +51 -114
  139. package/src/routes/ontology.ts +27 -38
  140. package/src/routes/pipelines.ts +28 -62
  141. package/src/routes/project.ts +3 -3
  142. package/src/routes/projections.ts +26 -38
  143. package/src/routes/rules.ts +11 -25
  144. package/src/routes/status.ts +5 -5
  145. package/src/routes/syncs.ts +19 -45
  146. package/src/routes/telemetry.ts +18 -29
  147. package/src/routes/webhook-runs.ts +5 -5
  148. package/src/routes/webhooks.ts +259 -341
  149. package/src/routes/workflows.ts +226 -248
  150. package/src/routes/ws/agents.ts +196 -66
  151. package/src/routes/ws/events.ts +11 -10
  152. package/src/routes/ws/log-subscription-hub.ts +6 -12
  153. package/src/routes/ws/logs.ts +13 -5
  154. package/src/schemas/actions.ts +58 -25
  155. package/src/schemas/agents.ts +19 -14
  156. package/src/schemas/ai-usage.ts +16 -0
  157. package/src/schemas/common.ts +24 -0
  158. package/src/schemas/connectors.ts +164 -0
  159. package/src/schemas/pipelines.ts +23 -15
  160. package/src/schemas/projections.ts +17 -3
  161. package/src/schemas/syncs.ts +13 -8
  162. package/src/schemas/webhook-runs.ts +10 -5
  163. package/src/schemas/workflows.ts +16 -6
  164. package/src/server.ts +65 -26
  165. package/src/utils/http.ts +34 -6
  166. 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";
71
63
  projectId: string;
72
64
  id: string;
73
- startedAt: string;
65
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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";
86
76
  projectId: string;
87
77
  id: string;
88
- startedAt: string;
78
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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,20 +118,11 @@ 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
- status: "running" | "succeeded" | "failed" | "cancelled";
144
123
  projectId: string;
145
124
  id: string;
125
+ status: "running" | "succeeded" | "failed" | "cancelled";
146
126
  mode: "append" | "snapshot";
147
127
  startedAt: string;
148
128
  datasetId: 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;
@@ -164,9 +141,9 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
164
141
  } | undefined;
165
142
  rowsWritten?: number | undefined;
166
143
  }, {
167
- status: "running" | "succeeded" | "failed" | "cancelled";
168
144
  projectId: string;
169
145
  id: string;
146
+ status: "running" | "succeeded" | "failed" | "cancelled";
170
147
  mode: "append" | "snapshot";
171
148
  startedAt: string;
172
149
  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";
894
859
  projectId: string;
895
860
  id: string;
896
- startedAt: string;
861
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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";
909
872
  projectId: string;
910
873
  id: string;
911
- startedAt: string;
874
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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";
976
937
  projectId: string;
977
938
  id: string;
978
- startedAt: string;
939
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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";
1043
1002
  projectId: string;
1044
1003
  id: string;
1045
- startedAt: string;
1004
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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";
1088
1037
  projectId: string;
1089
1038
  id: string;
1090
- startedAt: string;
1039
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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";
1103
1050
  projectId: string;
1104
1051
  id: string;
1105
- startedAt: string;
1052
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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";
1122
1067
  projectId: string;
1123
1068
  id: string;
1124
- startedAt: string;
1069
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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";
1141
1084
  projectId: string;
1142
1085
  id: string;
1143
- startedAt: string;
1086
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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";
1188
1121
  projectId: string;
1189
1122
  id: string;
1190
- startedAt: string;
1123
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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";
1203
1134
  projectId: string;
1204
1135
  id: string;
1205
- startedAt: string;
1136
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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,20 +1176,11 @@ 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
- status: "running" | "succeeded" | "failed" | "cancelled";
1261
1181
  projectId: string;
1262
1182
  id: string;
1183
+ status: "running" | "succeeded" | "failed" | "cancelled";
1263
1184
  mode: "append" | "snapshot";
1264
1185
  startedAt: string;
1265
1186
  datasetId: 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;
@@ -1281,9 +1199,9 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1281
1199
  } | undefined;
1282
1200
  rowsWritten?: number | undefined;
1283
1201
  }, {
1284
- status: "running" | "succeeded" | "failed" | "cancelled";
1285
1202
  projectId: string;
1286
1203
  id: string;
1204
+ status: "running" | "succeeded" | "failed" | "cancelled";
1287
1205
  mode: "append" | "snapshot";
1288
1206
  startedAt: string;
1289
1207
  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";
1311
1225
  projectId: string;
1312
1226
  id: string;
1313
- startedAt: string;
1227
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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;
@@ -1323,9 +1236,9 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1323
1236
  } | undefined;
1324
1237
  };
1325
1238
  steps: {
1326
- status: "running" | "succeeded" | "failed" | "cancelled";
1327
1239
  projectId: string;
1328
1240
  id: string;
1241
+ status: "running" | "succeeded" | "failed" | "cancelled";
1329
1242
  mode: "append" | "snapshot";
1330
1243
  startedAt: string;
1331
1244
  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";
1353
1262
  projectId: string;
1354
1263
  id: string;
1355
- startedAt: string;
1264
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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;
@@ -1365,9 +1273,9 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1365
1273
  } | undefined;
1366
1274
  };
1367
1275
  steps: {
1368
- status: "running" | "succeeded" | "failed" | "cancelled";
1369
1276
  projectId: string;
1370
1277
  id: string;
1278
+ status: "running" | "succeeded" | "failed" | "cancelled";
1371
1279
  mode: "append" | "snapshot";
1372
1280
  startedAt: string;
1373
1281
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7B,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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