@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
@@ -59,15 +59,15 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
59
59
  input: Record<string, import("../schemas/common").JsonValue>;
60
60
  })[];
61
61
  latestRun: {
62
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
62
63
  projectId: string;
63
64
  id: string;
64
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
65
65
  startedAt: string;
66
+ workflowId: string;
66
67
  requestedBy: {
67
68
  principalType: "user" | "serviceAccount" | "system";
68
69
  principalId: string;
69
70
  };
70
- workflowId: string;
71
71
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
72
72
  queuedAt?: string | undefined;
73
73
  finishedAt?: string | undefined;
@@ -133,15 +133,15 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
133
133
  input: Record<string, import("../schemas/common").JsonValue>;
134
134
  })[];
135
135
  latestRun: {
136
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
136
137
  projectId: string;
137
138
  id: string;
138
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
139
139
  startedAt: string;
140
+ workflowId: string;
140
141
  requestedBy: {
141
142
  principalType: "user" | "serviceAccount" | "system";
142
143
  principalId: string;
143
144
  };
144
- workflowId: string;
145
145
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
146
146
  queuedAt?: string | undefined;
147
147
  finishedAt?: string | undefined;
@@ -177,10 +177,10 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
177
177
  order?: "asc" | "desc" | undefined;
178
178
  workflowId?: string | undefined;
179
179
  nodeRunId?: string | undefined;
180
+ workflowRunId?: string | undefined;
180
181
  nodeId?: string | undefined;
181
182
  nodeKey?: string | undefined;
182
183
  interventionId?: string | undefined;
183
- workflowRunId?: string | undefined;
184
184
  requestedAfter?: string | undefined;
185
185
  requestedBefore?: string | undefined;
186
186
  };
@@ -190,18 +190,18 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
190
190
  hasMore: boolean;
191
191
  total: number;
192
192
  interventions: {
193
+ status: "cancelled" | "expired" | "pending" | "submitted";
193
194
  projectId: string;
194
195
  id: string;
195
- status: "cancelled" | "expired" | "pending" | "submitted";
196
- input: Record<string, import("../schemas/common").JsonValue>;
197
196
  workflowId: string;
198
197
  nodeRunId: string;
198
+ workflowRunId: string;
199
+ input: Record<string, import("../schemas/common").JsonValue>;
199
200
  nodeIndex: number;
200
201
  nodeId: string;
201
202
  nodeKey: string;
202
203
  interventionId: string;
203
204
  requestedAt: string;
204
- workflowRunId: string;
205
205
  defaultResponse: Record<string, import("../schemas/common").JsonValue>;
206
206
  response?: Record<string, import("../schemas/common").JsonValue> | undefined;
207
207
  expiresAt?: string | undefined;
@@ -250,18 +250,18 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
250
250
  headers: unknown;
251
251
  response: {
252
252
  200: {
253
+ status: "cancelled" | "expired" | "pending" | "submitted";
253
254
  projectId: string;
254
255
  id: string;
255
- status: "cancelled" | "expired" | "pending" | "submitted";
256
- input: Record<string, import("../schemas/common").JsonValue>;
257
256
  workflowId: string;
258
257
  nodeRunId: string;
258
+ workflowRunId: string;
259
+ input: Record<string, import("../schemas/common").JsonValue>;
259
260
  nodeIndex: number;
260
261
  nodeId: string;
261
262
  nodeKey: string;
262
263
  interventionId: string;
263
264
  requestedAt: string;
264
- workflowRunId: string;
265
265
  defaultResponse: Record<string, import("../schemas/common").JsonValue>;
266
266
  response?: Record<string, import("../schemas/common").JsonValue> | undefined;
267
267
  expiresAt?: string | undefined;
@@ -277,10 +277,10 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
277
277
  principalId: string;
278
278
  } | undefined;
279
279
  };
280
- 400: {
280
+ 404: {
281
281
  error: string;
282
282
  };
283
- 404: {
283
+ 400: {
284
284
  error: string;
285
285
  };
286
286
  501: {
@@ -320,18 +320,18 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
320
320
  } | {
321
321
  jobId: string;
322
322
  intervention: {
323
+ status: "cancelled" | "expired" | "pending" | "submitted";
323
324
  projectId: string;
324
325
  id: string;
325
- status: "cancelled" | "expired" | "pending" | "submitted";
326
- input: Record<string, import("../schemas/common").JsonValue>;
327
326
  workflowId: string;
328
327
  nodeRunId: string;
328
+ workflowRunId: string;
329
+ input: Record<string, import("../schemas/common").JsonValue>;
329
330
  nodeIndex: number;
330
331
  nodeId: string;
331
332
  nodeKey: string;
332
333
  interventionId: string;
333
334
  requestedAt: string;
334
- workflowRunId: string;
335
335
  defaultResponse: Record<string, import("../schemas/common").JsonValue>;
336
336
  response?: Record<string, import("../schemas/common").JsonValue> | undefined;
337
337
  expiresAt?: string | undefined;
@@ -348,10 +348,10 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
348
348
  } | undefined;
349
349
  };
350
350
  };
351
- 400: {
351
+ 404: {
352
352
  error: string;
353
353
  };
354
- 404: {
354
+ 400: {
355
355
  error: string;
356
356
  };
357
357
  501: {
@@ -360,18 +360,18 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
360
360
  202: {
361
361
  jobId: string;
362
362
  intervention: {
363
+ status: "cancelled" | "expired" | "pending" | "submitted";
363
364
  projectId: string;
364
365
  id: string;
365
- status: "cancelled" | "expired" | "pending" | "submitted";
366
- input: Record<string, import("../schemas/common").JsonValue>;
367
366
  workflowId: string;
368
367
  nodeRunId: string;
368
+ workflowRunId: string;
369
+ input: Record<string, import("../schemas/common").JsonValue>;
369
370
  nodeIndex: number;
370
371
  nodeId: string;
371
372
  nodeKey: string;
372
373
  interventionId: string;
373
374
  requestedAt: string;
374
- workflowRunId: string;
375
375
  defaultResponse: Record<string, import("../schemas/common").JsonValue>;
376
376
  response?: Record<string, import("../schemas/common").JsonValue> | undefined;
377
377
  expiresAt?: string | undefined;
@@ -418,18 +418,18 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
418
418
  response: {
419
419
  200: {
420
420
  intervention: {
421
+ status: "cancelled" | "expired" | "pending" | "submitted";
421
422
  projectId: string;
422
423
  id: string;
423
- status: "cancelled" | "expired" | "pending" | "submitted";
424
- input: Record<string, import("../schemas/common").JsonValue>;
425
424
  workflowId: string;
426
425
  nodeRunId: string;
426
+ workflowRunId: string;
427
+ input: Record<string, import("../schemas/common").JsonValue>;
427
428
  nodeIndex: number;
428
429
  nodeId: string;
429
430
  nodeKey: string;
430
431
  interventionId: string;
431
432
  requestedAt: string;
432
- workflowRunId: string;
433
433
  defaultResponse: Record<string, import("../schemas/common").JsonValue>;
434
434
  response?: Record<string, import("../schemas/common").JsonValue> | undefined;
435
435
  expiresAt?: string | undefined;
@@ -446,10 +446,10 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
446
446
  } | undefined;
447
447
  };
448
448
  };
449
- 400: {
449
+ 404: {
450
450
  error: string;
451
451
  };
452
- 404: {
452
+ 400: {
453
453
  error: string;
454
454
  };
455
455
  501: {
@@ -489,15 +489,15 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
489
489
  response: {
490
490
  200: {
491
491
  runs: {
492
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
492
493
  projectId: string;
493
494
  id: string;
494
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
495
495
  startedAt: string;
496
+ workflowId: string;
496
497
  requestedBy: {
497
498
  principalType: "user" | "serviceAccount" | "system";
498
499
  principalId: string;
499
500
  };
500
- workflowId: string;
501
501
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
502
502
  queuedAt?: string | undefined;
503
503
  finishedAt?: string | undefined;
@@ -538,33 +538,34 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
538
538
  response: {
539
539
  200: {
540
540
  run: {
541
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
541
542
  projectId: string;
542
543
  id: string;
543
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
544
544
  startedAt: string;
545
+ workflowId: string;
545
546
  input: Record<string, import("../schemas/common").JsonValue>;
546
547
  requestedBy: {
547
548
  principalType: "user" | "serviceAccount" | "system";
548
549
  principalId: string;
549
550
  };
550
- workflowId: string;
551
551
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
552
552
  queuedAt?: string | undefined;
553
553
  finishedAt?: string | undefined;
554
554
  output?: Record<string, import("../schemas/common").JsonValue> | undefined;
555
555
  };
556
556
  nodes: {
557
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
557
558
  projectId: string;
558
559
  id: string;
559
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
560
560
  startedAt: string;
561
- input: Record<string, import("../schemas/common").JsonValue>;
562
561
  workflowId: string;
562
+ workflowRunId: string;
563
+ input: Record<string, import("../schemas/common").JsonValue>;
563
564
  nodeIndex: number;
564
- nodeType: "action" | "step" | "intervention" | "agent";
565
+ nodeType: "agent" | "action" | "step" | "intervention";
565
566
  nodeId: string;
566
567
  nodeKey: string;
567
- workflowRunId: string;
568
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
568
569
  agentExecution?: {
569
570
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
570
571
  agentId: string;
@@ -572,7 +573,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
572
573
  startedAt?: string | undefined;
573
574
  completedAt?: string | undefined;
574
575
  modelId?: string | undefined;
575
- finishReason?: string | undefined;
576
576
  usage?: {
577
577
  reportingStatus: "complete" | "partial" | "unavailable";
578
578
  inputTokens?: number | undefined;
@@ -584,16 +584,25 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
584
584
  textOutputTokens?: number | undefined;
585
585
  reasoningOutputTokens?: number | undefined;
586
586
  } | undefined;
587
+ cost?: {
588
+ amounts: {
589
+ currency: string;
590
+ amountNanos: string;
591
+ }[];
592
+ ratedCallCount: number;
593
+ unpriceableCallCount: number;
594
+ unvaluedCallCount: number;
595
+ } | undefined;
596
+ finishReason?: string | undefined;
587
597
  } | undefined;
588
- error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
589
598
  finishedAt?: string | undefined;
590
599
  output?: Record<string, import("../schemas/common").JsonValue> | undefined;
591
600
  }[];
592
601
  };
593
- 400: {
602
+ 404: {
594
603
  error: string;
595
604
  };
596
- 404: {
605
+ 400: {
597
606
  error: string;
598
607
  };
599
608
  501: {
@@ -632,15 +641,14 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
632
641
  200: {
633
642
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
634
643
  agentId: string;
635
- createdAt: string;
636
644
  attempt: number;
637
645
  nodeRunId: string;
646
+ createdAt: string;
638
647
  prompt: string;
639
648
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
640
649
  startedAt?: string | undefined;
641
650
  completedAt?: string | undefined;
642
651
  modelId?: string | undefined;
643
- finishReason?: string | undefined;
644
652
  usage?: {
645
653
  reportingStatus: "complete" | "partial" | "unavailable";
646
654
  inputTokens?: number | undefined;
@@ -652,13 +660,81 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
652
660
  textOutputTokens?: number | undefined;
653
661
  reasoningOutputTokens?: number | undefined;
654
662
  } | undefined;
655
- diagnostics?: unknown[] | undefined;
656
- trace?: unknown[] | undefined;
663
+ cost?: {
664
+ amounts: {
665
+ currency: string;
666
+ amountNanos: string;
667
+ }[];
668
+ ratedCallCount: number;
669
+ unpriceableCallCount: number;
670
+ unvaluedCallCount: number;
671
+ } | undefined;
672
+ finishReason?: string | undefined;
673
+ diagnostics?: import("../schemas/common").JsonValue[] | undefined;
674
+ trace?: ({
675
+ origin: "ambient" | "explicit";
676
+ type: "context";
677
+ context: {
678
+ kind: "object";
679
+ ref: {
680
+ objectTypeId: string;
681
+ primaryId: string;
682
+ };
683
+ } | {
684
+ id: string;
685
+ kind: "app-state";
686
+ description: string;
687
+ value: import("../schemas/common").JsonValue;
688
+ label: string;
689
+ };
690
+ } | {
691
+ type: "text";
692
+ text: string;
693
+ providerMetadata?: import("../schemas/common").JsonValue | undefined;
694
+ } | {
695
+ type: "reasoning";
696
+ text: string;
697
+ providerMetadata?: import("../schemas/common").JsonValue | undefined;
698
+ } | {
699
+ type: "step-start";
700
+ } | {
701
+ type: "file";
702
+ fileRef: {
703
+ blobId: string;
704
+ digest: string;
705
+ sizeBytes: number;
706
+ fileName?: string | undefined;
707
+ mediaType?: string | undefined;
708
+ logicalPath?: string | undefined;
709
+ };
710
+ providerMetadata?: import("../schemas/common").JsonValue | undefined;
711
+ } | {
712
+ type: "tool-call";
713
+ output: import("../schemas/common").JsonValue;
714
+ toolCallId: string;
715
+ toolName: string;
716
+ input: import("../schemas/common").JsonValue;
717
+ state: "output-available";
718
+ providerMetadata?: import("../schemas/common").JsonValue | undefined;
719
+ dynamic?: boolean | undefined;
720
+ providerExecuted?: boolean | undefined;
721
+ } | {
722
+ type: "tool-call";
723
+ toolCallId: string;
724
+ toolName: string;
725
+ input: import("../schemas/common").JsonValue;
726
+ state: "output-error";
727
+ errorText: string;
728
+ providerMetadata?: import("../schemas/common").JsonValue | undefined;
729
+ dynamic?: boolean | undefined;
730
+ providerExecuted?: boolean | undefined;
731
+ })[] | undefined;
732
+ failurePhase?: "agent-loop" | "structured-finalizer" | undefined;
657
733
  };
658
- 400: {
734
+ 404: {
659
735
  error: string;
660
736
  };
661
- 404: {
737
+ 400: {
662
738
  error: string;
663
739
  };
664
740
  501: {
@@ -696,33 +772,34 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
696
772
  response: {
697
773
  200: {
698
774
  run: {
775
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
699
776
  projectId: string;
700
777
  id: string;
701
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
702
778
  startedAt: string;
779
+ workflowId: string;
703
780
  input: Record<string, import("../schemas/common").JsonValue>;
704
781
  requestedBy: {
705
782
  principalType: "user" | "serviceAccount" | "system";
706
783
  principalId: string;
707
784
  };
708
- workflowId: string;
709
785
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
710
786
  queuedAt?: string | undefined;
711
787
  finishedAt?: string | undefined;
712
788
  output?: Record<string, import("../schemas/common").JsonValue> | undefined;
713
789
  };
714
790
  nodes: {
791
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
715
792
  projectId: string;
716
793
  id: string;
717
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
718
794
  startedAt: string;
719
- input: Record<string, import("../schemas/common").JsonValue>;
720
795
  workflowId: string;
796
+ workflowRunId: string;
797
+ input: Record<string, import("../schemas/common").JsonValue>;
721
798
  nodeIndex: number;
722
- nodeType: "action" | "step" | "intervention" | "agent";
799
+ nodeType: "agent" | "action" | "step" | "intervention";
723
800
  nodeId: string;
724
801
  nodeKey: string;
725
- workflowRunId: string;
802
+ error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
726
803
  agentExecution?: {
727
804
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
728
805
  agentId: string;
@@ -730,7 +807,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
730
807
  startedAt?: string | undefined;
731
808
  completedAt?: string | undefined;
732
809
  modelId?: string | undefined;
733
- finishReason?: string | undefined;
734
810
  usage?: {
735
811
  reportingStatus: "complete" | "partial" | "unavailable";
736
812
  inputTokens?: number | undefined;
@@ -742,16 +818,25 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
742
818
  textOutputTokens?: number | undefined;
743
819
  reasoningOutputTokens?: number | undefined;
744
820
  } | undefined;
821
+ cost?: {
822
+ amounts: {
823
+ currency: string;
824
+ amountNanos: string;
825
+ }[];
826
+ ratedCallCount: number;
827
+ unpriceableCallCount: number;
828
+ unvaluedCallCount: number;
829
+ } | undefined;
830
+ finishReason?: string | undefined;
745
831
  } | undefined;
746
- error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
747
832
  finishedAt?: string | undefined;
748
833
  output?: Record<string, import("../schemas/common").JsonValue> | undefined;
749
834
  }[];
750
835
  };
751
- 400: {
836
+ 404: {
752
837
  error: string;
753
838
  };
754
- 404: {
839
+ 400: {
755
840
  error: string;
756
841
  };
757
842
  501: {
@@ -949,13 +1034,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
949
1034
  jobId: string;
950
1035
  workflowId: string;
951
1036
  };
952
- 403: {
1037
+ 404: {
953
1038
  error: string;
954
1039
  };
955
- 400: {
1040
+ 403: {
956
1041
  error: string;
957
1042
  };
958
- 404: {
1043
+ 400: {
959
1044
  error: string;
960
1045
  };
961
1046
  501: {
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAcnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA6gBpC,wBAAgB,s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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkxBrE"}
@@ -10,47 +10,47 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
10
10
  id: z.ZodString;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  id: string;
13
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
13
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
14
14
  }, {
15
15
  id: string;
16
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
16
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
17
17
  }>>;
18
18
  afterCursor: z.ZodOptional<z.ZodString>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  type: "subscribe";
21
21
  run?: {
22
22
  id: string;
23
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
23
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
24
24
  } | undefined;
25
25
  afterCursor?: string | undefined;
26
- kinds?: ("workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent")[] | undefined;
26
+ kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
27
27
  levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
28
28
  }, {
29
29
  type: "subscribe";
30
30
  run?: {
31
31
  id: string;
32
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
32
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
33
33
  } | undefined;
34
34
  afterCursor?: string | undefined;
35
- kinds?: ("workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent")[] | undefined;
35
+ kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
36
36
  levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
37
37
  }>, {
38
38
  type: "subscribe";
39
39
  run?: {
40
40
  id: string;
41
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
41
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
42
42
  } | undefined;
43
43
  afterCursor?: string | undefined;
44
- kinds?: ("workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent")[] | undefined;
44
+ kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
45
45
  levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
46
46
  }, {
47
47
  type: "subscribe";
48
48
  run?: {
49
49
  id: string;
50
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
50
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
51
51
  } | undefined;
52
52
  afterCursor?: string | undefined;
53
- kinds?: ("workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent")[] | undefined;
53
+ kinds?: ("workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action")[] | undefined;
54
54
  levels?: ("error" | "debug" | "info" | "warn")[] | undefined;
55
55
  }>, z.ZodObject<{
56
56
  type: z.ZodLiteral<"unsubscribe">;