@sixb/server 0.1.2 → 0.1.4
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 +1 -1
- package/dist/auth/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2122 -1391
- package/dist/index.js.map +24 -19
- package/dist/openapi/tags.d.ts +10 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +6 -6
- package/dist/routes/actions.d.ts +3 -3
- package/dist/routes/agents.d.ts +164 -77
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts +31 -0
- package/dist/routes/ai-accounting.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +110 -53
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +56 -56
- package/dist/routes/connector-connections.d.ts +14 -14
- package/dist/routes/datasets.d.ts +12 -12
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/files.d.ts +8 -8
- package/dist/routes/links.d.ts +6 -57
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +3 -3
- package/dist/routes/models.d.ts +60 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/objects.d.ts +51 -3
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +10 -10
- package/dist/routes/projections.d.ts +150 -136
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +38 -38
- package/dist/routes/telemetry.d.ts +7 -7
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +142 -57
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/actions.d.ts +16 -16
- package/dist/schemas/agents.d.ts +586 -142
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +2393 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +96 -96
- package/dist/schemas/connectors.d.ts +35 -25
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/links.d.ts +0 -41
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/models.d.ts +50 -0
- package/dist/schemas/models.d.ts.map +1 -0
- package/dist/schemas/objects.d.ts +22 -0
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +20 -20
- package/dist/schemas/projections.d.ts +947 -806
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +33 -33
- package/dist/schemas/webhook-runs.d.ts +12 -12
- package/dist/schemas/workflows.d.ts +833 -162
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth/experience.ts +190 -0
- package/src/auth/public-routes.ts +7 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +8 -0
- package/src/registerRoutes.ts +4 -0
- package/src/routes/agents.ts +22 -3
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +188 -32
- package/src/routes/links.ts +2 -53
- package/src/routes/models.ts +31 -0
- package/src/routes/objects.ts +103 -0
- package/src/routes/projections.ts +18 -4
- package/src/routes/workflows.ts +16 -0
- package/src/schemas/agents.ts +19 -9
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/connectors.ts +13 -3
- package/src/schemas/links.ts +0 -17
- package/src/schemas/models.ts +15 -0
- package/src/schemas/objects.ts +104 -0
- package/src/schemas/projections.ts +12 -3
- package/src/schemas/workflows.ts +8 -3
- package/src/server.ts +10 -0
|
@@ -243,9 +243,9 @@ export declare const ActionRunSummarySchema: z.ZodObject<{
|
|
|
243
243
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
244
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">>>;
|
|
245
245
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
246
247
|
projectId: string;
|
|
247
248
|
id: string;
|
|
248
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
249
249
|
actionId: string;
|
|
250
250
|
subject: {
|
|
251
251
|
kind: "none";
|
|
@@ -260,9 +260,9 @@ export declare const ActionRunSummarySchema: z.ZodObject<{
|
|
|
260
260
|
startedAt?: string | undefined;
|
|
261
261
|
finishedAt?: string | undefined;
|
|
262
262
|
}, {
|
|
263
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
263
264
|
projectId: string;
|
|
264
265
|
id: string;
|
|
265
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
266
266
|
actionId: string;
|
|
267
267
|
subject: {
|
|
268
268
|
kind: "none";
|
|
@@ -325,12 +325,12 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
325
325
|
completedAt: z.ZodString;
|
|
326
326
|
error: z.ZodType<ActionRunFailure<"writeback">, z.ZodTypeDef, ActionRunFailure<"writeback">>;
|
|
327
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
status: "failed";
|
|
329
328
|
error: ActionRunFailure<"writeback">;
|
|
329
|
+
status: "failed";
|
|
330
330
|
completedAt: string;
|
|
331
331
|
}, {
|
|
332
|
-
status: "failed";
|
|
333
332
|
error: ActionRunFailure<"writeback">;
|
|
333
|
+
status: "failed";
|
|
334
334
|
completedAt: string;
|
|
335
335
|
}>]>>;
|
|
336
336
|
effects: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
@@ -347,18 +347,18 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
347
347
|
completedAt: z.ZodString;
|
|
348
348
|
error: z.ZodType<ActionRunFailure<"effects">, z.ZodTypeDef, ActionRunFailure<"effects">>;
|
|
349
349
|
}, "strip", z.ZodTypeAny, {
|
|
350
|
-
status: "failed";
|
|
351
350
|
error: ActionRunFailure<"effects">;
|
|
351
|
+
status: "failed";
|
|
352
352
|
completedAt: string;
|
|
353
353
|
}, {
|
|
354
|
-
status: "failed";
|
|
355
354
|
error: ActionRunFailure<"effects">;
|
|
355
|
+
status: "failed";
|
|
356
356
|
completedAt: string;
|
|
357
357
|
}>]>>;
|
|
358
358
|
}, "strip", z.ZodTypeAny, {
|
|
359
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
359
360
|
projectId: string;
|
|
360
361
|
id: string;
|
|
361
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
362
362
|
params: Record<string, unknown>;
|
|
363
363
|
actionId: string;
|
|
364
364
|
subject: {
|
|
@@ -375,25 +375,25 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
375
375
|
completedAt: string;
|
|
376
376
|
result: import("./common").JsonValue;
|
|
377
377
|
} | {
|
|
378
|
-
status: "failed";
|
|
379
378
|
error: ActionRunFailure<"writeback">;
|
|
379
|
+
status: "failed";
|
|
380
380
|
completedAt: string;
|
|
381
381
|
} | undefined;
|
|
382
382
|
effects?: {
|
|
383
383
|
status: "succeeded";
|
|
384
384
|
completedAt: string;
|
|
385
385
|
} | {
|
|
386
|
-
status: "failed";
|
|
387
386
|
error: ActionRunFailure<"effects">;
|
|
387
|
+
status: "failed";
|
|
388
388
|
completedAt: string;
|
|
389
389
|
} | undefined;
|
|
390
390
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
391
391
|
startedAt?: string | undefined;
|
|
392
392
|
finishedAt?: string | undefined;
|
|
393
393
|
}, {
|
|
394
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
394
395
|
projectId: string;
|
|
395
396
|
id: string;
|
|
396
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
397
397
|
params: Record<string, unknown>;
|
|
398
398
|
actionId: string;
|
|
399
399
|
subject: {
|
|
@@ -410,16 +410,16 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
410
410
|
completedAt: string;
|
|
411
411
|
result: import("./common").JsonValue;
|
|
412
412
|
} | {
|
|
413
|
-
status: "failed";
|
|
414
413
|
error: ActionRunFailure<"writeback">;
|
|
414
|
+
status: "failed";
|
|
415
415
|
completedAt: string;
|
|
416
416
|
} | undefined;
|
|
417
417
|
effects?: {
|
|
418
418
|
status: "succeeded";
|
|
419
419
|
completedAt: string;
|
|
420
420
|
} | {
|
|
421
|
-
status: "failed";
|
|
422
421
|
error: ActionRunFailure<"effects">;
|
|
422
|
+
status: "failed";
|
|
423
423
|
completedAt: string;
|
|
424
424
|
} | undefined;
|
|
425
425
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
@@ -457,9 +457,9 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
457
457
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
458
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">>>;
|
|
459
459
|
}, "strip", z.ZodTypeAny, {
|
|
460
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
460
461
|
projectId: string;
|
|
461
462
|
id: string;
|
|
462
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
463
463
|
actionId: string;
|
|
464
464
|
subject: {
|
|
465
465
|
kind: "none";
|
|
@@ -474,9 +474,9 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
474
474
|
startedAt?: string | undefined;
|
|
475
475
|
finishedAt?: string | undefined;
|
|
476
476
|
}, {
|
|
477
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
477
478
|
projectId: string;
|
|
478
479
|
id: string;
|
|
479
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
480
480
|
actionId: string;
|
|
481
481
|
subject: {
|
|
482
482
|
kind: "none";
|
|
@@ -495,9 +495,9 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
495
495
|
total: z.ZodNumber;
|
|
496
496
|
}, "strip", z.ZodTypeAny, {
|
|
497
497
|
runs: {
|
|
498
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
498
499
|
projectId: string;
|
|
499
500
|
id: string;
|
|
500
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
501
501
|
actionId: string;
|
|
502
502
|
subject: {
|
|
503
503
|
kind: "none";
|
|
@@ -516,9 +516,9 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
516
516
|
total: number;
|
|
517
517
|
}, {
|
|
518
518
|
runs: {
|
|
519
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
519
520
|
projectId: string;
|
|
520
521
|
id: string;
|
|
521
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
522
522
|
actionId: string;
|
|
523
523
|
subject: {
|
|
524
524
|
kind: "none";
|