@sixb/server 0.1.20 → 0.1.21

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 (70) hide show
  1. package/dist/artifacts/frame.d.ts +13 -0
  2. package/dist/artifacts/frame.d.ts.map +1 -0
  3. package/dist/auth/browser-origin.d.ts +5 -0
  4. package/dist/auth/browser-origin.d.ts.map +1 -1
  5. package/dist/auth/public-routes.d.ts.map +1 -1
  6. package/dist/files/content.d.ts +2 -3
  7. package/dist/files/content.d.ts.map +1 -1
  8. package/dist/index.js +3427 -2402
  9. package/dist/index.js.map +23 -17
  10. package/dist/openapi/tags.d.ts +10 -2
  11. package/dist/openapi/tags.d.ts.map +1 -1
  12. package/dist/registerRoutes.d.ts +3 -0
  13. package/dist/registerRoutes.d.ts.map +1 -1
  14. package/dist/routes/activity.d.ts +35 -0
  15. package/dist/routes/activity.d.ts.map +1 -0
  16. package/dist/routes/agents.d.ts +18 -27
  17. package/dist/routes/agents.d.ts.map +1 -1
  18. package/dist/routes/artifact-frames.d.ts +98 -0
  19. package/dist/routes/artifact-frames.d.ts.map +1 -0
  20. package/dist/routes/artifacts.d.ts +852 -0
  21. package/dist/routes/artifacts.d.ts.map +1 -0
  22. package/dist/routes/auth.d.ts +1 -1
  23. package/dist/routes/connector-connection-runs.d.ts +59 -59
  24. package/dist/routes/connector-connections.d.ts +2 -2
  25. package/dist/routes/datasets.d.ts +7 -7
  26. package/dist/routes/events.d.ts +1 -1
  27. package/dist/routes/pipelines.d.ts +31 -31
  28. package/dist/routes/projections.d.ts +10 -10
  29. package/dist/routes/share-grants.d.ts +5 -5
  30. package/dist/routes/syncs.d.ts +38 -38
  31. package/dist/routes/workflows.d.ts +30 -30
  32. package/dist/routes/ws/events.d.ts.map +1 -1
  33. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  34. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  35. package/dist/schemas/activity.d.ts +1278 -0
  36. package/dist/schemas/activity.d.ts.map +1 -0
  37. package/dist/schemas/agents.d.ts +96 -144
  38. package/dist/schemas/agents.d.ts.map +1 -1
  39. package/dist/schemas/ai-accounting.d.ts +24 -24
  40. package/dist/schemas/ai-limits.d.ts +26 -26
  41. package/dist/schemas/artifacts.d.ts +1305 -0
  42. package/dist/schemas/artifacts.d.ts.map +1 -0
  43. package/dist/schemas/auth.d.ts +6 -6
  44. package/dist/schemas/connectors.d.ts +30 -30
  45. package/dist/schemas/datasets.d.ts +10 -10
  46. package/dist/schemas/events.d.ts +6 -6
  47. package/dist/schemas/pipelines.d.ts +35 -35
  48. package/dist/schemas/projections.d.ts +40 -40
  49. package/dist/schemas/share-grants.d.ts +16 -16
  50. package/dist/schemas/syncs.d.ts +36 -36
  51. package/dist/schemas/workflows.d.ts +84 -84
  52. package/dist/server.d.ts.map +1 -1
  53. package/package.json +4 -4
  54. package/src/artifacts/frame.ts +46 -0
  55. package/src/auth/browser-origin.ts +12 -2
  56. package/src/auth/public-routes.ts +10 -0
  57. package/src/files/content.ts +9 -13
  58. package/src/openapi/tags.ts +8 -0
  59. package/src/registerRoutes.ts +9 -0
  60. package/src/routes/activity.ts +327 -0
  61. package/src/routes/agents.ts +1 -1
  62. package/src/routes/artifact-frames.ts +138 -0
  63. package/src/routes/artifacts.ts +442 -0
  64. package/src/routes/file-downloads.ts +1 -3
  65. package/src/routes/ws/events.ts +3 -2
  66. package/src/routes/ws/subscription-hub.ts +53 -20
  67. package/src/schemas/activity.ts +285 -0
  68. package/src/schemas/agents.ts +1 -2
  69. package/src/schemas/artifacts.ts +158 -0
  70. package/src/server.ts +25 -9
@@ -2028,12 +2028,12 @@ export declare const AiModelCallAccountingItemSchema: z.ZodObject<{
2028
2028
  parentRunId: z.ZodString;
2029
2029
  }, "strip", z.ZodTypeAny, {
2030
2030
  kind: "subagent";
2031
- parentRunId: string;
2032
2031
  subagentRunId: string;
2032
+ parentRunId: string;
2033
2033
  }, {
2034
2034
  kind: "subagent";
2035
- parentRunId: string;
2036
2035
  subagentRunId: string;
2036
+ parentRunId: string;
2037
2037
  }>]>>;
2038
2038
  cost: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
2039
2039
  status: z.ZodLiteral<"rated">;
@@ -2587,8 +2587,8 @@ export declare const AiModelCallAccountingItemSchema: z.ZodObject<{
2587
2587
  nodeRunId: string;
2588
2588
  } | {
2589
2589
  kind: "subagent";
2590
- parentRunId: string;
2591
2590
  subagentRunId: string;
2591
+ parentRunId: string;
2592
2592
  } | undefined;
2593
2593
  cost?: {
2594
2594
  status: "rated";
@@ -2749,8 +2749,8 @@ export declare const AiModelCallAccountingItemSchema: z.ZodObject<{
2749
2749
  nodeRunId: string;
2750
2750
  } | {
2751
2751
  kind: "subagent";
2752
- parentRunId: string;
2753
2752
  subagentRunId: string;
2753
+ parentRunId: string;
2754
2754
  } | undefined;
2755
2755
  cost?: {
2756
2756
  status: "rated";
@@ -3056,12 +3056,12 @@ export declare const AiModelCallAccountingListResponseSchema: z.ZodObject<{
3056
3056
  parentRunId: z.ZodString;
3057
3057
  }, "strip", z.ZodTypeAny, {
3058
3058
  kind: "subagent";
3059
- parentRunId: string;
3060
3059
  subagentRunId: string;
3060
+ parentRunId: string;
3061
3061
  }, {
3062
3062
  kind: "subagent";
3063
- parentRunId: string;
3064
3063
  subagentRunId: string;
3064
+ parentRunId: string;
3065
3065
  }>]>>;
3066
3066
  cost: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
3067
3067
  status: z.ZodLiteral<"rated">;
@@ -3615,8 +3615,8 @@ export declare const AiModelCallAccountingListResponseSchema: z.ZodObject<{
3615
3615
  nodeRunId: string;
3616
3616
  } | {
3617
3617
  kind: "subagent";
3618
- parentRunId: string;
3619
3618
  subagentRunId: string;
3619
+ parentRunId: string;
3620
3620
  } | undefined;
3621
3621
  cost?: {
3622
3622
  status: "rated";
@@ -3777,8 +3777,8 @@ export declare const AiModelCallAccountingListResponseSchema: z.ZodObject<{
3777
3777
  nodeRunId: string;
3778
3778
  } | {
3779
3779
  kind: "subagent";
3780
- parentRunId: string;
3781
3780
  subagentRunId: string;
3781
+ parentRunId: string;
3782
3782
  } | undefined;
3783
3783
  cost?: {
3784
3784
  status: "rated";
@@ -3943,8 +3943,8 @@ export declare const AiModelCallAccountingListResponseSchema: z.ZodObject<{
3943
3943
  nodeRunId: string;
3944
3944
  } | {
3945
3945
  kind: "subagent";
3946
- parentRunId: string;
3947
3946
  subagentRunId: string;
3947
+ parentRunId: string;
3948
3948
  } | undefined;
3949
3949
  cost?: {
3950
3950
  status: "rated";
@@ -4109,8 +4109,8 @@ export declare const AiModelCallAccountingListResponseSchema: z.ZodObject<{
4109
4109
  nodeRunId: string;
4110
4110
  } | {
4111
4111
  kind: "subagent";
4112
- parentRunId: string;
4113
4112
  subagentRunId: string;
4113
+ parentRunId: string;
4114
4114
  } | undefined;
4115
4115
  cost?: {
4116
4116
  status: "rated";
@@ -4316,12 +4316,12 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4316
4316
  parentRunId: z.ZodString;
4317
4317
  }, "strip", z.ZodTypeAny, {
4318
4318
  kind: "subagent";
4319
- parentRunId: string;
4320
4319
  subagentRunId: string;
4320
+ parentRunId: string;
4321
4321
  }, {
4322
4322
  kind: "subagent";
4323
- parentRunId: string;
4324
4323
  subagentRunId: string;
4324
+ parentRunId: string;
4325
4325
  }>]>>;
4326
4326
  modelCallCount: z.ZodNumber;
4327
4327
  totalTokens: z.ZodOptional<z.ZodNumber>;
@@ -4442,12 +4442,12 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4442
4442
  parentRunId: z.ZodString;
4443
4443
  }, "strip", z.ZodTypeAny, {
4444
4444
  kind: "subagent";
4445
- parentRunId: string;
4446
4445
  subagentRunId: string;
4446
+ parentRunId: string;
4447
4447
  }, {
4448
4448
  kind: "subagent";
4449
- parentRunId: string;
4450
4449
  subagentRunId: string;
4450
+ parentRunId: string;
4451
4451
  }>]>>;
4452
4452
  modelCallCount: z.ZodNumber;
4453
4453
  totalTokens: z.ZodOptional<z.ZodNumber>;
@@ -4538,8 +4538,8 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4538
4538
  nodeRunId: string;
4539
4539
  } | {
4540
4540
  kind: "subagent";
4541
- parentRunId: string;
4542
4541
  subagentRunId: string;
4542
+ parentRunId: string;
4543
4543
  } | undefined;
4544
4544
  label?: string | undefined;
4545
4545
  }, {
@@ -4584,8 +4584,8 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4584
4584
  nodeRunId: string;
4585
4585
  } | {
4586
4586
  kind: "subagent";
4587
- parentRunId: string;
4588
4587
  subagentRunId: string;
4588
+ parentRunId: string;
4589
4589
  } | undefined;
4590
4590
  label?: string | undefined;
4591
4591
  }>, "many">;
@@ -4646,8 +4646,8 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4646
4646
  nodeRunId: string;
4647
4647
  } | {
4648
4648
  kind: "subagent";
4649
- parentRunId: string;
4650
4649
  subagentRunId: string;
4650
+ parentRunId: string;
4651
4651
  } | undefined;
4652
4652
  label?: string | undefined;
4653
4653
  }[];
@@ -4676,8 +4676,8 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4676
4676
  nodeRunId: string;
4677
4677
  } | {
4678
4678
  kind: "subagent";
4679
- parentRunId: string;
4680
4679
  subagentRunId: string;
4680
+ parentRunId: string;
4681
4681
  } | undefined;
4682
4682
  label?: string | undefined;
4683
4683
  }, {
@@ -4736,8 +4736,8 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4736
4736
  nodeRunId: string;
4737
4737
  } | {
4738
4738
  kind: "subagent";
4739
- parentRunId: string;
4740
4739
  subagentRunId: string;
4740
+ parentRunId: string;
4741
4741
  } | undefined;
4742
4742
  label?: string | undefined;
4743
4743
  }[];
@@ -4766,8 +4766,8 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4766
4766
  nodeRunId: string;
4767
4767
  } | {
4768
4768
  kind: "subagent";
4769
- parentRunId: string;
4770
4769
  subagentRunId: string;
4770
+ parentRunId: string;
4771
4771
  } | undefined;
4772
4772
  label?: string | undefined;
4773
4773
  }>, "many">;
@@ -4830,8 +4830,8 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4830
4830
  nodeRunId: string;
4831
4831
  } | {
4832
4832
  kind: "subagent";
4833
- parentRunId: string;
4834
4833
  subagentRunId: string;
4834
+ parentRunId: string;
4835
4835
  } | undefined;
4836
4836
  label?: string | undefined;
4837
4837
  }[];
@@ -4860,8 +4860,8 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4860
4860
  nodeRunId: string;
4861
4861
  } | {
4862
4862
  kind: "subagent";
4863
- parentRunId: string;
4864
4863
  subagentRunId: string;
4864
+ parentRunId: string;
4865
4865
  } | undefined;
4866
4866
  label?: string | undefined;
4867
4867
  }[];
@@ -4924,8 +4924,8 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4924
4924
  nodeRunId: string;
4925
4925
  } | {
4926
4926
  kind: "subagent";
4927
- parentRunId: string;
4928
4927
  subagentRunId: string;
4928
+ parentRunId: string;
4929
4929
  } | undefined;
4930
4930
  label?: string | undefined;
4931
4931
  }[];
@@ -4954,8 +4954,8 @@ export declare const AiModelCallGroupsResponseSchema: z.ZodObject<{
4954
4954
  nodeRunId: string;
4955
4955
  } | {
4956
4956
  kind: "subagent";
4957
- parentRunId: string;
4958
4957
  subagentRunId: string;
4958
+ parentRunId: string;
4959
4959
  } | undefined;
4960
4960
  label?: string | undefined;
4961
4961
  }[];
@@ -169,8 +169,8 @@ export declare const AiLimitPolicySchema: z.ZodObject<{
169
169
  };
170
170
  createdAt: string;
171
171
  updatedAt: string;
172
- period: "calendarMonth";
173
172
  enabled: boolean;
173
+ period: "calendarMonth";
174
174
  }, {
175
175
  id: string;
176
176
  subject: {
@@ -197,8 +197,8 @@ export declare const AiLimitPolicySchema: z.ZodObject<{
197
197
  };
198
198
  createdAt: string;
199
199
  updatedAt: string;
200
- period: "calendarMonth";
201
200
  enabled: boolean;
201
+ period: "calendarMonth";
202
202
  }>;
203
203
  export declare const AiLimitConsumptionSchema: z.ZodObject<{
204
204
  actual: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
@@ -526,8 +526,8 @@ export declare const AiLimitPolicyStatusSchema: z.ZodObject<{
526
526
  };
527
527
  createdAt: string;
528
528
  updatedAt: string;
529
- period: "calendarMonth";
530
529
  enabled: boolean;
530
+ period: "calendarMonth";
531
531
  }, {
532
532
  id: string;
533
533
  subject: {
@@ -554,8 +554,8 @@ export declare const AiLimitPolicyStatusSchema: z.ZodObject<{
554
554
  };
555
555
  createdAt: string;
556
556
  updatedAt: string;
557
- period: "calendarMonth";
558
557
  enabled: boolean;
558
+ period: "calendarMonth";
559
559
  }>;
560
560
  period: z.ZodObject<{
561
561
  kind: z.ZodLiteral<"calendarMonth">;
@@ -833,8 +833,8 @@ export declare const AiLimitPolicyStatusSchema: z.ZodObject<{
833
833
  };
834
834
  createdAt: string;
835
835
  updatedAt: string;
836
- period: "calendarMonth";
837
836
  enabled: boolean;
837
+ period: "calendarMonth";
838
838
  };
839
839
  consumption: {
840
840
  unknown: {
@@ -914,8 +914,8 @@ export declare const AiLimitPolicyStatusSchema: z.ZodObject<{
914
914
  };
915
915
  createdAt: string;
916
916
  updatedAt: string;
917
- period: "calendarMonth";
918
917
  enabled: boolean;
918
+ period: "calendarMonth";
919
919
  };
920
920
  consumption: {
921
921
  unknown: {
@@ -1017,17 +1017,17 @@ export declare const AiLimitSubjectOptionsResponseSchema: z.ZodObject<{
1017
1017
  description?: string | undefined;
1018
1018
  }>, "many">;
1019
1019
  }, "strip", z.ZodTypeAny, {
1020
- groups: {
1021
- id: string;
1022
- description?: string | undefined;
1023
- label?: string | undefined;
1024
- }[];
1025
1020
  users: {
1026
1021
  status: "active" | "suspended";
1027
1022
  id: string;
1028
1023
  email: string;
1029
1024
  displayName?: string | undefined;
1030
1025
  }[];
1026
+ groups: {
1027
+ id: string;
1028
+ description?: string | undefined;
1029
+ label?: string | undefined;
1030
+ }[];
1031
1031
  serviceAccounts: {
1032
1032
  status: "active" | "suspended";
1033
1033
  id: string;
@@ -1035,17 +1035,17 @@ export declare const AiLimitSubjectOptionsResponseSchema: z.ZodObject<{
1035
1035
  description?: string | undefined;
1036
1036
  }[];
1037
1037
  }, {
1038
- groups: {
1039
- id: string;
1040
- description?: string | undefined;
1041
- label?: string | undefined;
1042
- }[];
1043
1038
  users: {
1044
1039
  status: "active" | "suspended";
1045
1040
  id: string;
1046
1041
  email: string;
1047
1042
  displayName?: string | undefined;
1048
1043
  }[];
1044
+ groups: {
1045
+ id: string;
1046
+ description?: string | undefined;
1047
+ label?: string | undefined;
1048
+ }[];
1049
1049
  serviceAccounts: {
1050
1050
  status: "active" | "suspended";
1051
1051
  id: string;
@@ -1169,8 +1169,8 @@ export declare const AiLimitPolicyListResponseSchema: z.ZodObject<{
1169
1169
  };
1170
1170
  createdAt: string;
1171
1171
  updatedAt: string;
1172
- period: "calendarMonth";
1173
1172
  enabled: boolean;
1173
+ period: "calendarMonth";
1174
1174
  }, {
1175
1175
  id: string;
1176
1176
  subject: {
@@ -1197,8 +1197,8 @@ export declare const AiLimitPolicyListResponseSchema: z.ZodObject<{
1197
1197
  };
1198
1198
  createdAt: string;
1199
1199
  updatedAt: string;
1200
- period: "calendarMonth";
1201
1200
  enabled: boolean;
1201
+ period: "calendarMonth";
1202
1202
  }>, "many">;
1203
1203
  capabilities: z.ZodObject<{
1204
1204
  manage: z.ZodBoolean;
@@ -1234,8 +1234,8 @@ export declare const AiLimitPolicyListResponseSchema: z.ZodObject<{
1234
1234
  };
1235
1235
  createdAt: string;
1236
1236
  updatedAt: string;
1237
- period: "calendarMonth";
1238
1237
  enabled: boolean;
1238
+ period: "calendarMonth";
1239
1239
  }[];
1240
1240
  capabilities: {
1241
1241
  manage: boolean;
@@ -1267,8 +1267,8 @@ export declare const AiLimitPolicyListResponseSchema: z.ZodObject<{
1267
1267
  };
1268
1268
  createdAt: string;
1269
1269
  updatedAt: string;
1270
- period: "calendarMonth";
1271
1270
  enabled: boolean;
1271
+ period: "calendarMonth";
1272
1272
  }[];
1273
1273
  capabilities: {
1274
1274
  manage: boolean;
@@ -1377,8 +1377,8 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
1377
1377
  };
1378
1378
  createdAt: string;
1379
1379
  updatedAt: string;
1380
- period: "calendarMonth";
1381
1380
  enabled: boolean;
1381
+ period: "calendarMonth";
1382
1382
  }, {
1383
1383
  id: string;
1384
1384
  subject: {
@@ -1405,8 +1405,8 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
1405
1405
  };
1406
1406
  createdAt: string;
1407
1407
  updatedAt: string;
1408
- period: "calendarMonth";
1409
1408
  enabled: boolean;
1409
+ period: "calendarMonth";
1410
1410
  }>;
1411
1411
  period: z.ZodObject<{
1412
1412
  kind: z.ZodLiteral<"calendarMonth">;
@@ -1684,8 +1684,8 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
1684
1684
  };
1685
1685
  createdAt: string;
1686
1686
  updatedAt: string;
1687
- period: "calendarMonth";
1688
1687
  enabled: boolean;
1688
+ period: "calendarMonth";
1689
1689
  };
1690
1690
  consumption: {
1691
1691
  unknown: {
@@ -1765,8 +1765,8 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
1765
1765
  };
1766
1766
  createdAt: string;
1767
1767
  updatedAt: string;
1768
- period: "calendarMonth";
1769
1768
  enabled: boolean;
1769
+ period: "calendarMonth";
1770
1770
  };
1771
1771
  consumption: {
1772
1772
  unknown: {
@@ -1855,8 +1855,8 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
1855
1855
  };
1856
1856
  createdAt: string;
1857
1857
  updatedAt: string;
1858
- period: "calendarMonth";
1859
1858
  enabled: boolean;
1859
+ period: "calendarMonth";
1860
1860
  };
1861
1861
  consumption: {
1862
1862
  unknown: {
@@ -1941,8 +1941,8 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
1941
1941
  };
1942
1942
  createdAt: string;
1943
1943
  updatedAt: string;
1944
- period: "calendarMonth";
1945
1944
  enabled: boolean;
1945
+ period: "calendarMonth";
1946
1946
  };
1947
1947
  consumption: {
1948
1948
  unknown: {