@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.
Files changed (90) hide show
  1. package/README.md +1 -1
  2. package/dist/auth/experience.d.ts +33 -0
  3. package/dist/auth/experience.d.ts.map +1 -0
  4. package/dist/auth/public-routes.d.ts.map +1 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +2122 -1391
  8. package/dist/index.js.map +24 -19
  9. package/dist/openapi/tags.d.ts +10 -2
  10. package/dist/openapi/tags.d.ts.map +1 -1
  11. package/dist/registerRoutes.d.ts.map +1 -1
  12. package/dist/routes/action-runs.d.ts +6 -6
  13. package/dist/routes/actions.d.ts +3 -3
  14. package/dist/routes/agents.d.ts +164 -77
  15. package/dist/routes/agents.d.ts.map +1 -1
  16. package/dist/routes/ai-accounting.d.ts +31 -0
  17. package/dist/routes/ai-accounting.d.ts.map +1 -0
  18. package/dist/routes/auth.d.ts +110 -53
  19. package/dist/routes/auth.d.ts.map +1 -1
  20. package/dist/routes/connector-connection-runs.d.ts +56 -56
  21. package/dist/routes/connector-connections.d.ts +14 -14
  22. package/dist/routes/datasets.d.ts +12 -12
  23. package/dist/routes/events.d.ts +1 -1
  24. package/dist/routes/files.d.ts +8 -8
  25. package/dist/routes/links.d.ts +6 -57
  26. package/dist/routes/links.d.ts.map +1 -1
  27. package/dist/routes/logs.d.ts +3 -3
  28. package/dist/routes/models.d.ts +60 -0
  29. package/dist/routes/models.d.ts.map +1 -0
  30. package/dist/routes/objects.d.ts +51 -3
  31. package/dist/routes/objects.d.ts.map +1 -1
  32. package/dist/routes/pipelines.d.ts +10 -10
  33. package/dist/routes/projections.d.ts +150 -136
  34. package/dist/routes/projections.d.ts.map +1 -1
  35. package/dist/routes/syncs.d.ts +38 -38
  36. package/dist/routes/telemetry.d.ts +7 -7
  37. package/dist/routes/webhook-runs.d.ts +2 -2
  38. package/dist/routes/workflows.d.ts +142 -57
  39. package/dist/routes/workflows.d.ts.map +1 -1
  40. package/dist/routes/ws/logs.d.ts +10 -10
  41. package/dist/schemas/actions.d.ts +16 -16
  42. package/dist/schemas/agents.d.ts +586 -142
  43. package/dist/schemas/agents.d.ts.map +1 -1
  44. package/dist/schemas/ai-accounting.d.ts +2393 -0
  45. package/dist/schemas/ai-accounting.d.ts.map +1 -0
  46. package/dist/schemas/auth.d.ts +96 -96
  47. package/dist/schemas/connectors.d.ts +35 -25
  48. package/dist/schemas/connectors.d.ts.map +1 -1
  49. package/dist/schemas/event-payloads.d.ts +6 -6
  50. package/dist/schemas/events.d.ts +6 -6
  51. package/dist/schemas/links.d.ts +0 -41
  52. package/dist/schemas/links.d.ts.map +1 -1
  53. package/dist/schemas/logs.d.ts +22 -22
  54. package/dist/schemas/models.d.ts +50 -0
  55. package/dist/schemas/models.d.ts.map +1 -0
  56. package/dist/schemas/objects.d.ts +22 -0
  57. package/dist/schemas/objects.d.ts.map +1 -1
  58. package/dist/schemas/pipelines.d.ts +20 -20
  59. package/dist/schemas/projections.d.ts +947 -806
  60. package/dist/schemas/projections.d.ts.map +1 -1
  61. package/dist/schemas/status.d.ts +2 -2
  62. package/dist/schemas/syncs.d.ts +33 -33
  63. package/dist/schemas/webhook-runs.d.ts +12 -12
  64. package/dist/schemas/workflows.d.ts +833 -162
  65. package/dist/schemas/workflows.d.ts.map +1 -1
  66. package/dist/server.d.ts +5 -0
  67. package/dist/server.d.ts.map +1 -1
  68. package/package.json +5 -5
  69. package/src/auth/experience.ts +190 -0
  70. package/src/auth/public-routes.ts +7 -0
  71. package/src/index.ts +1 -0
  72. package/src/openapi/tags.ts +8 -0
  73. package/src/registerRoutes.ts +4 -0
  74. package/src/routes/agents.ts +22 -3
  75. package/src/routes/ai-accounting.ts +166 -0
  76. package/src/routes/auth.ts +188 -32
  77. package/src/routes/links.ts +2 -53
  78. package/src/routes/models.ts +31 -0
  79. package/src/routes/objects.ts +103 -0
  80. package/src/routes/projections.ts +18 -4
  81. package/src/routes/workflows.ts +16 -0
  82. package/src/schemas/agents.ts +19 -9
  83. package/src/schemas/ai-accounting.ts +182 -0
  84. package/src/schemas/connectors.ts +13 -3
  85. package/src/schemas/links.ts +0 -17
  86. package/src/schemas/models.ts +15 -0
  87. package/src/schemas/objects.ts +104 -0
  88. package/src/schemas/projections.ts +12 -3
  89. package/src/schemas/workflows.ts +8 -3
  90. 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";