@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.
- package/README.md +3 -3
- package/dist/auth/application-access.d.ts +2 -2
- package/dist/auth/application-access.d.ts.map +1 -1
- package/dist/auth/connector-callback-cookie.d.ts +12 -0
- package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
- package/dist/auth/guard.d.ts +3 -3
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +13 -27
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts +2 -2
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +16 -0
- package/dist/connectors/http.d.ts.map +1 -0
- package/dist/index.js +3293 -2704
- package/dist/index.js.map +55 -50
- package/dist/openapi/tags.d.ts +11 -3
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +6 -2
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +21 -31
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +9 -8
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts +2 -2
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +130 -131
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +84 -84
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +794 -0
- package/dist/routes/connector-connection-runs.d.ts.map +1 -0
- package/dist/routes/connector-connections.d.ts +219 -0
- package/dist/routes/connector-connections.d.ts.map +1 -0
- package/dist/routes/connectors.d.ts +10 -4
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +8 -4
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +8 -8
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +11 -10
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +2 -2
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/logs.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +34 -34
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +50 -50
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +24 -34
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/project.d.ts +2 -2
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +131 -83
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +6 -6
- package/dist/routes/rules.d.ts.map +1 -1
- package/dist/routes/status.d.ts +2 -2
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +20 -25
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +2 -2
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +9 -9
- package/dist/routes/webhook-runs.d.ts.map +1 -1
- package/dist/routes/webhooks.d.ts +2 -2
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +74 -48
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +11 -5
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +8 -8
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
- package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/logs.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +97 -202
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +442 -439
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-usage.d.ts +34 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +142 -142
- package/dist/schemas/common.d.ts +37 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +713 -2
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +2 -2
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +34 -34
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +10 -10
- package/dist/schemas/ontology.d.ts +118 -118
- package/dist/schemas/pipelines.d.ts +95 -190
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +918 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +65 -108
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +41 -41
- package/dist/schemas/webhook-runs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +516 -183
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +6 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts +2 -0
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +4 -3
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/auth/access-token-boundary.ts +4 -4
- package/src/auth/application-access.ts +8 -9
- package/src/auth/connector-callback-cookie.ts +95 -0
- package/src/auth/guard.ts +11 -11
- package/src/auth/public-routes.ts +13 -0
- package/src/auth/scope.ts +26 -36
- package/src/auth/session-cookies.ts +3 -3
- package/src/connectors/http.ts +110 -0
- package/src/openapi/tags.ts +9 -1
- package/src/registerRoutes.ts +34 -23
- package/src/routes/action-runs.ts +39 -39
- package/src/routes/actions.ts +7 -13
- package/src/routes/agent-api-gateway.ts +41 -38
- package/src/routes/agents.ts +89 -200
- package/src/routes/auth.ts +87 -91
- package/src/routes/connector-connection-runs.ts +346 -0
- package/src/routes/connector-connections.ts +135 -0
- package/src/routes/connectors.ts +24 -12
- package/src/routes/datasets.ts +55 -54
- package/src/routes/events.ts +5 -5
- package/src/routes/files.ts +22 -30
- package/src/routes/links.ts +31 -35
- package/src/routes/logs.ts +6 -11
- package/src/routes/objects.ts +51 -114
- package/src/routes/ontology.ts +27 -38
- package/src/routes/pipelines.ts +28 -62
- package/src/routes/project.ts +3 -3
- package/src/routes/projections.ts +26 -38
- package/src/routes/rules.ts +11 -25
- package/src/routes/status.ts +5 -5
- package/src/routes/syncs.ts +19 -45
- package/src/routes/telemetry.ts +18 -29
- package/src/routes/webhook-runs.ts +5 -5
- package/src/routes/webhooks.ts +259 -341
- package/src/routes/workflows.ts +226 -248
- package/src/routes/ws/agents.ts +196 -66
- package/src/routes/ws/events.ts +11 -10
- package/src/routes/ws/log-subscription-hub.ts +6 -12
- package/src/routes/ws/logs.ts +13 -5
- package/src/schemas/actions.ts +58 -25
- package/src/schemas/agents.ts +19 -14
- package/src/schemas/ai-usage.ts +16 -0
- package/src/schemas/common.ts +24 -0
- package/src/schemas/connectors.ts +164 -0
- package/src/schemas/pipelines.ts +23 -15
- package/src/schemas/projections.ts +17 -3
- package/src/schemas/syncs.ts +13 -8
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +16 -6
- package/src/server.ts +65 -26
- package/src/utils/http.ts +34 -6
- package/src/utils/ws.ts +10 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ActionRunFailure } from "@sixb/core/storage";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
export declare const ActionIdParamsSchema: z.ZodObject<{
|
|
3
4
|
actionId: z.ZodString;
|
|
@@ -105,19 +106,19 @@ export declare const ActionCatalogItemSchema: z.ZodObject<{
|
|
|
105
106
|
semanticType: z.ZodOptional<z.ZodString>;
|
|
106
107
|
schema: z.ZodUnknown;
|
|
107
108
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
name: string;
|
|
109
109
|
id: string;
|
|
110
|
+
name: string;
|
|
110
111
|
description?: string | undefined;
|
|
111
|
-
required?: boolean | undefined;
|
|
112
112
|
nullable?: boolean | undefined;
|
|
113
|
+
required?: boolean | undefined;
|
|
113
114
|
semanticType?: string | undefined;
|
|
114
115
|
schema?: unknown;
|
|
115
116
|
}, {
|
|
116
|
-
name: string;
|
|
117
117
|
id: string;
|
|
118
|
+
name: string;
|
|
118
119
|
description?: string | undefined;
|
|
119
|
-
required?: boolean | undefined;
|
|
120
120
|
nullable?: boolean | undefined;
|
|
121
|
+
required?: boolean | undefined;
|
|
121
122
|
semanticType?: string | undefined;
|
|
122
123
|
schema?: unknown;
|
|
123
124
|
}>, "many">;
|
|
@@ -138,17 +139,17 @@ export declare const ActionCatalogItemSchema: z.ZodObject<{
|
|
|
138
139
|
effects: boolean;
|
|
139
140
|
}>;
|
|
140
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
id: string;
|
|
141
143
|
name: string;
|
|
142
144
|
params: {
|
|
143
|
-
name: string;
|
|
144
145
|
id: string;
|
|
146
|
+
name: string;
|
|
145
147
|
description?: string | undefined;
|
|
146
|
-
required?: boolean | undefined;
|
|
147
148
|
nullable?: boolean | undefined;
|
|
149
|
+
required?: boolean | undefined;
|
|
148
150
|
semanticType?: string | undefined;
|
|
149
151
|
schema?: unknown;
|
|
150
152
|
}[];
|
|
151
|
-
id: string;
|
|
152
153
|
phases: {
|
|
153
154
|
validate: boolean;
|
|
154
155
|
writeback: boolean;
|
|
@@ -158,17 +159,17 @@ export declare const ActionCatalogItemSchema: z.ZodObject<{
|
|
|
158
159
|
description?: string | undefined;
|
|
159
160
|
objectTypeId?: string | undefined;
|
|
160
161
|
}, {
|
|
162
|
+
id: string;
|
|
161
163
|
name: string;
|
|
162
164
|
params: {
|
|
163
|
-
name: string;
|
|
164
165
|
id: string;
|
|
166
|
+
name: string;
|
|
165
167
|
description?: string | undefined;
|
|
166
|
-
required?: boolean | undefined;
|
|
167
168
|
nullable?: boolean | undefined;
|
|
169
|
+
required?: boolean | undefined;
|
|
168
170
|
semanticType?: string | undefined;
|
|
169
171
|
schema?: unknown;
|
|
170
172
|
}[];
|
|
171
|
-
id: string;
|
|
172
173
|
phases: {
|
|
173
174
|
validate: boolean;
|
|
174
175
|
writeback: boolean;
|
|
@@ -192,38 +193,26 @@ export declare const ActionRunsQuerySchema: z.ZodObject<{
|
|
|
192
193
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
193
194
|
}, "strip", z.ZodTypeAny, {
|
|
194
195
|
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
195
|
-
limit?: string | undefined;
|
|
196
|
-
offset?: string | undefined;
|
|
197
|
-
order?: "asc" | "desc" | undefined;
|
|
198
196
|
objectTypeId?: string | undefined;
|
|
199
197
|
actionId?: string | undefined;
|
|
200
198
|
primaryId?: string | undefined;
|
|
201
199
|
startedAfter?: string | undefined;
|
|
202
200
|
startedBefore?: string | undefined;
|
|
203
|
-
}, {
|
|
204
|
-
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
205
201
|
limit?: string | undefined;
|
|
206
202
|
offset?: string | undefined;
|
|
207
203
|
order?: "asc" | "desc" | undefined;
|
|
204
|
+
}, {
|
|
205
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
208
206
|
objectTypeId?: string | undefined;
|
|
209
207
|
actionId?: string | undefined;
|
|
210
208
|
primaryId?: string | undefined;
|
|
211
209
|
startedAfter?: string | undefined;
|
|
212
210
|
startedBefore?: string | undefined;
|
|
211
|
+
limit?: string | undefined;
|
|
212
|
+
offset?: string | undefined;
|
|
213
|
+
order?: "asc" | "desc" | undefined;
|
|
213
214
|
}>;
|
|
214
|
-
export declare const ActionRunFailureSchema: z.
|
|
215
|
-
name: z.ZodOptional<z.ZodString>;
|
|
216
|
-
message: z.ZodString;
|
|
217
|
-
phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
|
|
218
|
-
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
message: string;
|
|
220
|
-
name?: string | undefined;
|
|
221
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
222
|
-
}, {
|
|
223
|
-
message: string;
|
|
224
|
-
name?: string | undefined;
|
|
225
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
226
|
-
}>;
|
|
215
|
+
export declare const ActionRunFailureSchema: z.ZodType<ActionRunFailure>;
|
|
227
216
|
export declare const ActionRunSummarySchema: z.ZodObject<{
|
|
228
217
|
id: z.ZodString;
|
|
229
218
|
projectId: z.ZodString;
|
|
@@ -252,23 +241,11 @@ export declare const ActionRunSummarySchema: z.ZodObject<{
|
|
|
252
241
|
queuedAt: z.ZodString;
|
|
253
242
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
254
243
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
255
|
-
error: z.ZodOptional<z.
|
|
256
|
-
name: z.ZodOptional<z.ZodString>;
|
|
257
|
-
message: z.ZodString;
|
|
258
|
-
phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
|
|
259
|
-
}, "strip", z.ZodTypeAny, {
|
|
260
|
-
message: string;
|
|
261
|
-
name?: string | undefined;
|
|
262
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
263
|
-
}, {
|
|
264
|
-
message: string;
|
|
265
|
-
name?: string | undefined;
|
|
266
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
267
|
-
}>>;
|
|
244
|
+
error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">, z.ZodTypeDef, ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">>>;
|
|
268
245
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
270
246
|
projectId: string;
|
|
271
247
|
id: string;
|
|
248
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
272
249
|
actionId: string;
|
|
273
250
|
subject: {
|
|
274
251
|
kind: "none";
|
|
@@ -278,18 +255,14 @@ export declare const ActionRunSummarySchema: z.ZodObject<{
|
|
|
278
255
|
primaryId: string;
|
|
279
256
|
};
|
|
280
257
|
queuedAt: string;
|
|
281
|
-
error?:
|
|
282
|
-
message: string;
|
|
283
|
-
name?: string | undefined;
|
|
284
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
285
|
-
} | undefined;
|
|
258
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
|
|
286
259
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
287
260
|
startedAt?: string | undefined;
|
|
288
261
|
finishedAt?: string | undefined;
|
|
289
262
|
}, {
|
|
290
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
291
263
|
projectId: string;
|
|
292
264
|
id: string;
|
|
265
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
293
266
|
actionId: string;
|
|
294
267
|
subject: {
|
|
295
268
|
kind: "none";
|
|
@@ -299,11 +272,7 @@ export declare const ActionRunSummarySchema: z.ZodObject<{
|
|
|
299
272
|
primaryId: string;
|
|
300
273
|
};
|
|
301
274
|
queuedAt: string;
|
|
302
|
-
error?:
|
|
303
|
-
message: string;
|
|
304
|
-
name?: string | undefined;
|
|
305
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
306
|
-
} | undefined;
|
|
275
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
|
|
307
276
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
308
277
|
startedAt?: string | undefined;
|
|
309
278
|
finishedAt?: string | undefined;
|
|
@@ -336,95 +305,61 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
336
305
|
queuedAt: z.ZodString;
|
|
337
306
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
338
307
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
339
|
-
error: z.ZodOptional<z.
|
|
340
|
-
name: z.ZodOptional<z.ZodString>;
|
|
341
|
-
message: z.ZodString;
|
|
342
|
-
phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
|
|
343
|
-
}, "strip", z.ZodTypeAny, {
|
|
344
|
-
message: string;
|
|
345
|
-
name?: string | undefined;
|
|
346
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
347
|
-
}, {
|
|
348
|
-
message: string;
|
|
349
|
-
name?: string | undefined;
|
|
350
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
351
|
-
}>>;
|
|
308
|
+
error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">, z.ZodTypeDef, ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">>>;
|
|
352
309
|
} & {
|
|
353
310
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
354
|
-
writeback: z.ZodOptional<z.ZodObject<{
|
|
355
|
-
status: z.
|
|
311
|
+
writeback: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
312
|
+
status: z.ZodLiteral<"succeeded">;
|
|
356
313
|
completedAt: z.ZodString;
|
|
357
|
-
result: z.
|
|
358
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
359
|
-
name: z.ZodOptional<z.ZodString>;
|
|
360
|
-
message: z.ZodString;
|
|
361
|
-
phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
|
|
362
|
-
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
message: string;
|
|
364
|
-
name?: string | undefined;
|
|
365
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
366
|
-
}, {
|
|
367
|
-
message: string;
|
|
368
|
-
name?: string | undefined;
|
|
369
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
370
|
-
}>>;
|
|
314
|
+
result: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
371
315
|
}, "strip", z.ZodTypeAny, {
|
|
372
|
-
status: "succeeded"
|
|
316
|
+
status: "succeeded";
|
|
373
317
|
completedAt: string;
|
|
374
|
-
|
|
375
|
-
message: string;
|
|
376
|
-
name?: string | undefined;
|
|
377
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
378
|
-
} | undefined;
|
|
379
|
-
result?: unknown;
|
|
318
|
+
result: import("./common").JsonValue;
|
|
380
319
|
}, {
|
|
381
|
-
status: "succeeded"
|
|
320
|
+
status: "succeeded";
|
|
382
321
|
completedAt: string;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
387
|
-
} | undefined;
|
|
388
|
-
result?: unknown;
|
|
389
|
-
}>>;
|
|
390
|
-
effects: z.ZodOptional<z.ZodObject<{
|
|
391
|
-
status: z.ZodEnum<["succeeded", "failed"]>;
|
|
322
|
+
result: import("./common").JsonValue;
|
|
323
|
+
}>, z.ZodObject<{
|
|
324
|
+
status: z.ZodLiteral<"failed">;
|
|
392
325
|
completedAt: z.ZodString;
|
|
393
|
-
error: z.
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
326
|
+
error: z.ZodType<ActionRunFailure<"writeback">, z.ZodTypeDef, ActionRunFailure<"writeback">>;
|
|
327
|
+
}, "strip", z.ZodTypeAny, {
|
|
328
|
+
status: "failed";
|
|
329
|
+
error: ActionRunFailure<"writeback">;
|
|
330
|
+
completedAt: string;
|
|
331
|
+
}, {
|
|
332
|
+
status: "failed";
|
|
333
|
+
error: ActionRunFailure<"writeback">;
|
|
334
|
+
completedAt: string;
|
|
335
|
+
}>]>>;
|
|
336
|
+
effects: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
337
|
+
status: z.ZodLiteral<"succeeded">;
|
|
338
|
+
completedAt: z.ZodString;
|
|
339
|
+
}, "strip", z.ZodTypeAny, {
|
|
340
|
+
status: "succeeded";
|
|
341
|
+
completedAt: string;
|
|
342
|
+
}, {
|
|
343
|
+
status: "succeeded";
|
|
344
|
+
completedAt: string;
|
|
345
|
+
}>, z.ZodObject<{
|
|
346
|
+
status: z.ZodLiteral<"failed">;
|
|
347
|
+
completedAt: z.ZodString;
|
|
348
|
+
error: z.ZodType<ActionRunFailure<"effects">, z.ZodTypeDef, ActionRunFailure<"effects">>;
|
|
406
349
|
}, "strip", z.ZodTypeAny, {
|
|
407
|
-
status: "
|
|
350
|
+
status: "failed";
|
|
351
|
+
error: ActionRunFailure<"effects">;
|
|
408
352
|
completedAt: string;
|
|
409
|
-
error?: {
|
|
410
|
-
message: string;
|
|
411
|
-
name?: string | undefined;
|
|
412
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
413
|
-
} | undefined;
|
|
414
353
|
}, {
|
|
415
|
-
status: "
|
|
354
|
+
status: "failed";
|
|
355
|
+
error: ActionRunFailure<"effects">;
|
|
416
356
|
completedAt: string;
|
|
417
|
-
|
|
418
|
-
message: string;
|
|
419
|
-
name?: string | undefined;
|
|
420
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
421
|
-
} | undefined;
|
|
422
|
-
}>>;
|
|
357
|
+
}>]>>;
|
|
423
358
|
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
425
359
|
projectId: string;
|
|
426
|
-
params: Record<string, unknown>;
|
|
427
360
|
id: string;
|
|
361
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
362
|
+
params: Record<string, unknown>;
|
|
428
363
|
actionId: string;
|
|
429
364
|
subject: {
|
|
430
365
|
kind: "none";
|
|
@@ -434,38 +369,32 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
434
369
|
primaryId: string;
|
|
435
370
|
};
|
|
436
371
|
queuedAt: string;
|
|
437
|
-
error?:
|
|
438
|
-
message: string;
|
|
439
|
-
name?: string | undefined;
|
|
440
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
441
|
-
} | undefined;
|
|
372
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
|
|
442
373
|
writeback?: {
|
|
443
|
-
status: "succeeded"
|
|
374
|
+
status: "succeeded";
|
|
375
|
+
completedAt: string;
|
|
376
|
+
result: import("./common").JsonValue;
|
|
377
|
+
} | {
|
|
378
|
+
status: "failed";
|
|
379
|
+
error: ActionRunFailure<"writeback">;
|
|
444
380
|
completedAt: string;
|
|
445
|
-
error?: {
|
|
446
|
-
message: string;
|
|
447
|
-
name?: string | undefined;
|
|
448
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
449
|
-
} | undefined;
|
|
450
|
-
result?: unknown;
|
|
451
381
|
} | undefined;
|
|
452
382
|
effects?: {
|
|
453
|
-
status: "succeeded"
|
|
383
|
+
status: "succeeded";
|
|
384
|
+
completedAt: string;
|
|
385
|
+
} | {
|
|
386
|
+
status: "failed";
|
|
387
|
+
error: ActionRunFailure<"effects">;
|
|
454
388
|
completedAt: string;
|
|
455
|
-
error?: {
|
|
456
|
-
message: string;
|
|
457
|
-
name?: string | undefined;
|
|
458
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
459
|
-
} | undefined;
|
|
460
389
|
} | undefined;
|
|
461
390
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
462
391
|
startedAt?: string | undefined;
|
|
463
392
|
finishedAt?: string | undefined;
|
|
464
393
|
}, {
|
|
465
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
466
394
|
projectId: string;
|
|
467
|
-
params: Record<string, unknown>;
|
|
468
395
|
id: string;
|
|
396
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
397
|
+
params: Record<string, unknown>;
|
|
469
398
|
actionId: string;
|
|
470
399
|
subject: {
|
|
471
400
|
kind: "none";
|
|
@@ -475,29 +404,23 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
475
404
|
primaryId: string;
|
|
476
405
|
};
|
|
477
406
|
queuedAt: string;
|
|
478
|
-
error?:
|
|
479
|
-
message: string;
|
|
480
|
-
name?: string | undefined;
|
|
481
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
482
|
-
} | undefined;
|
|
407
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
|
|
483
408
|
writeback?: {
|
|
484
|
-
status: "succeeded"
|
|
409
|
+
status: "succeeded";
|
|
410
|
+
completedAt: string;
|
|
411
|
+
result: import("./common").JsonValue;
|
|
412
|
+
} | {
|
|
413
|
+
status: "failed";
|
|
414
|
+
error: ActionRunFailure<"writeback">;
|
|
485
415
|
completedAt: string;
|
|
486
|
-
error?: {
|
|
487
|
-
message: string;
|
|
488
|
-
name?: string | undefined;
|
|
489
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
490
|
-
} | undefined;
|
|
491
|
-
result?: unknown;
|
|
492
416
|
} | undefined;
|
|
493
417
|
effects?: {
|
|
494
|
-
status: "succeeded"
|
|
418
|
+
status: "succeeded";
|
|
419
|
+
completedAt: string;
|
|
420
|
+
} | {
|
|
421
|
+
status: "failed";
|
|
422
|
+
error: ActionRunFailure<"effects">;
|
|
495
423
|
completedAt: string;
|
|
496
|
-
error?: {
|
|
497
|
-
message: string;
|
|
498
|
-
name?: string | undefined;
|
|
499
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
500
|
-
} | undefined;
|
|
501
424
|
} | undefined;
|
|
502
425
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
503
426
|
startedAt?: string | undefined;
|
|
@@ -532,23 +455,11 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
532
455
|
queuedAt: z.ZodString;
|
|
533
456
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
534
457
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
535
|
-
error: z.ZodOptional<z.
|
|
536
|
-
name: z.ZodOptional<z.ZodString>;
|
|
537
|
-
message: z.ZodString;
|
|
538
|
-
phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
|
|
539
|
-
}, "strip", z.ZodTypeAny, {
|
|
540
|
-
message: string;
|
|
541
|
-
name?: string | undefined;
|
|
542
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
543
|
-
}, {
|
|
544
|
-
message: string;
|
|
545
|
-
name?: string | undefined;
|
|
546
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
547
|
-
}>>;
|
|
458
|
+
error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">, z.ZodTypeDef, ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">>>;
|
|
548
459
|
}, "strip", z.ZodTypeAny, {
|
|
549
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
550
460
|
projectId: string;
|
|
551
461
|
id: string;
|
|
462
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
552
463
|
actionId: string;
|
|
553
464
|
subject: {
|
|
554
465
|
kind: "none";
|
|
@@ -558,18 +469,14 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
558
469
|
primaryId: string;
|
|
559
470
|
};
|
|
560
471
|
queuedAt: string;
|
|
561
|
-
error?:
|
|
562
|
-
message: string;
|
|
563
|
-
name?: string | undefined;
|
|
564
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
565
|
-
} | undefined;
|
|
472
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
|
|
566
473
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
567
474
|
startedAt?: string | undefined;
|
|
568
475
|
finishedAt?: string | undefined;
|
|
569
476
|
}, {
|
|
570
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
571
477
|
projectId: string;
|
|
572
478
|
id: string;
|
|
479
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
573
480
|
actionId: string;
|
|
574
481
|
subject: {
|
|
575
482
|
kind: "none";
|
|
@@ -579,11 +486,7 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
579
486
|
primaryId: string;
|
|
580
487
|
};
|
|
581
488
|
queuedAt: string;
|
|
582
|
-
error?:
|
|
583
|
-
message: string;
|
|
584
|
-
name?: string | undefined;
|
|
585
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
586
|
-
} | undefined;
|
|
489
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
|
|
587
490
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
588
491
|
startedAt?: string | undefined;
|
|
589
492
|
finishedAt?: string | undefined;
|
|
@@ -592,9 +495,9 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
592
495
|
total: z.ZodNumber;
|
|
593
496
|
}, "strip", z.ZodTypeAny, {
|
|
594
497
|
runs: {
|
|
595
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
596
498
|
projectId: string;
|
|
597
499
|
id: string;
|
|
500
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
598
501
|
actionId: string;
|
|
599
502
|
subject: {
|
|
600
503
|
kind: "none";
|
|
@@ -604,11 +507,7 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
604
507
|
primaryId: string;
|
|
605
508
|
};
|
|
606
509
|
queuedAt: string;
|
|
607
|
-
error?:
|
|
608
|
-
message: string;
|
|
609
|
-
name?: string | undefined;
|
|
610
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
611
|
-
} | undefined;
|
|
510
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
|
|
612
511
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
613
512
|
startedAt?: string | undefined;
|
|
614
513
|
finishedAt?: string | undefined;
|
|
@@ -617,9 +516,9 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
617
516
|
total: number;
|
|
618
517
|
}, {
|
|
619
518
|
runs: {
|
|
620
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
621
519
|
projectId: string;
|
|
622
520
|
id: string;
|
|
521
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
623
522
|
actionId: string;
|
|
624
523
|
subject: {
|
|
625
524
|
kind: "none";
|
|
@@ -629,11 +528,7 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
629
528
|
primaryId: string;
|
|
630
529
|
};
|
|
631
530
|
queuedAt: string;
|
|
632
|
-
error?:
|
|
633
|
-
message: string;
|
|
634
|
-
name?: string | undefined;
|
|
635
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
636
|
-
} | undefined;
|
|
531
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
|
|
637
532
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
638
533
|
startedAt?: string | undefined;
|
|
639
534
|
finishedAt?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/schemas/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/schemas/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;IAS9B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYlC,CAAA;AAEF,eAAO,MAAM,qBAAqB,sEAMhC,CAAA;AAEF,eAAO,MAAM,oBAAoB,yGAA4B,CAAA;AAE7D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAA;AAEF,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAQ7D,CAAA;AAsBF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWjC,CAAA;AA2BF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItC,CAAA"}
|