@sixb/server 0.1.19 → 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 (103) hide show
  1. package/README.md +13 -22
  2. package/dist/artifacts/frame.d.ts +13 -0
  3. package/dist/artifacts/frame.d.ts.map +1 -0
  4. package/dist/auth/browser-origin.d.ts +9 -26
  5. package/dist/auth/browser-origin.d.ts.map +1 -1
  6. package/dist/auth/experience.d.ts +0 -3
  7. package/dist/auth/experience.d.ts.map +1 -1
  8. package/dist/auth/guard.d.ts +1 -1
  9. package/dist/auth/guard.d.ts.map +1 -1
  10. package/dist/auth/public-routes.d.ts +0 -5
  11. package/dist/auth/public-routes.d.ts.map +1 -1
  12. package/dist/auth/responses.d.ts +0 -2
  13. package/dist/auth/responses.d.ts.map +1 -1
  14. package/dist/auth/session-cookies.d.ts.map +1 -1
  15. package/dist/files/content.d.ts +2 -3
  16. package/dist/files/content.d.ts.map +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +3241 -2445
  20. package/dist/index.js.map +31 -26
  21. package/dist/openapi/tags.d.ts +10 -2
  22. package/dist/openapi/tags.d.ts.map +1 -1
  23. package/dist/registerRoutes.d.ts +3 -0
  24. package/dist/registerRoutes.d.ts.map +1 -1
  25. package/dist/routes/action-runs.d.ts +0 -2
  26. package/dist/routes/action-runs.d.ts.map +1 -1
  27. package/dist/routes/activity.d.ts +35 -0
  28. package/dist/routes/activity.d.ts.map +1 -0
  29. package/dist/routes/agents.d.ts +18 -29
  30. package/dist/routes/agents.d.ts.map +1 -1
  31. package/dist/routes/artifact-frames.d.ts +98 -0
  32. package/dist/routes/artifact-frames.d.ts.map +1 -0
  33. package/dist/routes/artifacts.d.ts +852 -0
  34. package/dist/routes/artifacts.d.ts.map +1 -0
  35. package/dist/routes/auth.d.ts +9 -18
  36. package/dist/routes/auth.d.ts.map +1 -1
  37. package/dist/routes/connector-connection-runs.d.ts +59 -59
  38. package/dist/routes/connector-connections.d.ts +2 -2
  39. package/dist/routes/datasets.d.ts +7 -7
  40. package/dist/routes/events.d.ts +1 -1
  41. package/dist/routes/objects.d.ts +0 -2
  42. package/dist/routes/objects.d.ts.map +1 -1
  43. package/dist/routes/pipelines.d.ts +31 -31
  44. package/dist/routes/projections.d.ts +10 -10
  45. package/dist/routes/share-grants.d.ts +5 -5
  46. package/dist/routes/syncs.d.ts +38 -38
  47. package/dist/routes/workflows.d.ts +30 -34
  48. package/dist/routes/workflows.d.ts.map +1 -1
  49. package/dist/routes/ws/events.d.ts.map +1 -1
  50. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  51. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  52. package/dist/schemas/activity.d.ts +1278 -0
  53. package/dist/schemas/activity.d.ts.map +1 -0
  54. package/dist/schemas/agents.d.ts +96 -144
  55. package/dist/schemas/agents.d.ts.map +1 -1
  56. package/dist/schemas/ai-accounting.d.ts +24 -24
  57. package/dist/schemas/ai-limits.d.ts +26 -26
  58. package/dist/schemas/artifacts.d.ts +1305 -0
  59. package/dist/schemas/artifacts.d.ts.map +1 -0
  60. package/dist/schemas/auth.d.ts +34 -69
  61. package/dist/schemas/auth.d.ts.map +1 -1
  62. package/dist/schemas/connectors.d.ts +30 -30
  63. package/dist/schemas/datasets.d.ts +10 -10
  64. package/dist/schemas/events.d.ts +6 -6
  65. package/dist/schemas/files.d.ts +0 -3
  66. package/dist/schemas/files.d.ts.map +1 -1
  67. package/dist/schemas/pipelines.d.ts +35 -35
  68. package/dist/schemas/projections.d.ts +40 -40
  69. package/dist/schemas/share-grants.d.ts +16 -16
  70. package/dist/schemas/syncs.d.ts +36 -36
  71. package/dist/schemas/workflows.d.ts +84 -84
  72. package/dist/server.d.ts +1 -2
  73. package/dist/server.d.ts.map +1 -1
  74. package/package.json +6 -6
  75. package/src/artifacts/frame.ts +46 -0
  76. package/src/auth/browser-origin.ts +40 -240
  77. package/src/auth/experience.ts +1 -4
  78. package/src/auth/guard.ts +4 -32
  79. package/src/auth/public-routes.ts +11 -10
  80. package/src/auth/responses.ts +0 -5
  81. package/src/auth/session-cookies.ts +1 -3
  82. package/src/auth/shared-access.ts +1 -1
  83. package/src/files/content.ts +9 -13
  84. package/src/index.ts +1 -1
  85. package/src/openapi/tags.ts +8 -0
  86. package/src/registerRoutes.ts +9 -0
  87. package/src/routes/activity.ts +327 -0
  88. package/src/routes/agents.ts +1 -1
  89. package/src/routes/artifact-frames.ts +138 -0
  90. package/src/routes/artifacts.ts +442 -0
  91. package/src/routes/auth.ts +32 -111
  92. package/src/routes/file-downloads.ts +1 -3
  93. package/src/routes/ws/events.ts +3 -2
  94. package/src/routes/ws/subscription-hub.ts +53 -20
  95. package/src/schemas/activity.ts +285 -0
  96. package/src/schemas/agents.ts +1 -2
  97. package/src/schemas/artifacts.ts +158 -0
  98. package/src/schemas/auth.ts +2 -15
  99. package/src/schemas/files.ts +0 -6
  100. package/src/server.ts +27 -24
  101. package/dist/auth/application-access.d.ts +0 -4
  102. package/dist/auth/application-access.d.ts.map +0 -1
  103. package/src/auth/application-access.ts +0 -15
@@ -928,7 +928,6 @@ export declare const ObjectProjectionSchema: z.ZodObject<{
928
928
  }>;
929
929
  properties: Record<string, string>;
930
930
  objectTypeId: string;
931
- datasetId: string;
932
931
  latestRun: {
933
932
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
934
933
  projectId: string;
@@ -1024,6 +1023,7 @@ export declare const ObjectProjectionSchema: z.ZodObject<{
1024
1023
  startedAt?: string | undefined;
1025
1024
  finishedAt?: string | undefined;
1026
1025
  } | null;
1026
+ datasetId: string;
1027
1027
  _tag: "ObjectProjectionDefinition";
1028
1028
  conflictResolution: {
1029
1029
  strategy: "editsWin";
@@ -1041,7 +1041,6 @@ export declare const ObjectProjectionSchema: z.ZodObject<{
1041
1041
  }>;
1042
1042
  properties: Record<string, string>;
1043
1043
  objectTypeId: string;
1044
- datasetId: string;
1045
1044
  latestRun: {
1046
1045
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
1047
1046
  projectId: string;
@@ -1137,6 +1136,7 @@ export declare const ObjectProjectionSchema: z.ZodObject<{
1137
1136
  startedAt?: string | undefined;
1138
1137
  finishedAt?: string | undefined;
1139
1138
  } | null;
1139
+ datasetId: string;
1140
1140
  _tag: "ObjectProjectionDefinition";
1141
1141
  conflictResolution: {
1142
1142
  strategy: "editsWin";
@@ -1580,9 +1580,6 @@ export declare const LinkProjectionSchema: z.ZodObject<{
1580
1580
  }, "strip", z.ZodTypeAny, {
1581
1581
  id: string;
1582
1582
  targetObjectTypeId: string;
1583
- datasetId: string;
1584
- linkId: string;
1585
- sourceObjectTypeId: string;
1586
1583
  latestRun: {
1587
1584
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
1588
1585
  projectId: string;
@@ -1678,15 +1675,15 @@ export declare const LinkProjectionSchema: z.ZodObject<{
1678
1675
  startedAt?: string | undefined;
1679
1676
  finishedAt?: string | undefined;
1680
1677
  } | null;
1678
+ datasetId: string;
1679
+ linkId: string;
1680
+ sourceObjectTypeId: string;
1681
1681
  sourceField: string;
1682
1682
  _tag: "LinkProjectionDefinition";
1683
1683
  targetField: string;
1684
1684
  }, {
1685
1685
  id: string;
1686
1686
  targetObjectTypeId: string;
1687
- datasetId: string;
1688
- linkId: string;
1689
- sourceObjectTypeId: string;
1690
1687
  latestRun: {
1691
1688
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
1692
1689
  projectId: string;
@@ -1782,6 +1779,9 @@ export declare const LinkProjectionSchema: z.ZodObject<{
1782
1779
  startedAt?: string | undefined;
1783
1780
  finishedAt?: string | undefined;
1784
1781
  } | null;
1782
+ datasetId: string;
1783
+ linkId: string;
1784
+ sourceObjectTypeId: string;
1785
1785
  sourceField: string;
1786
1786
  _tag: "LinkProjectionDefinition";
1787
1787
  targetField: string;
@@ -2233,7 +2233,6 @@ export declare const TelemetryProjectionSchema: z.ZodObject<{
2233
2233
  unitField?: string | undefined;
2234
2234
  }>;
2235
2235
  objectTypeId: string;
2236
- datasetId: string;
2237
2236
  latestRun: {
2238
2237
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
2239
2238
  projectId: string;
@@ -2329,6 +2328,7 @@ export declare const TelemetryProjectionSchema: z.ZodObject<{
2329
2328
  startedAt?: string | undefined;
2330
2329
  finishedAt?: string | undefined;
2331
2330
  } | null;
2331
+ datasetId: string;
2332
2332
  _tag: "TelemetryProjectionDefinition";
2333
2333
  objectIdField: string;
2334
2334
  atField: string;
@@ -2339,7 +2339,6 @@ export declare const TelemetryProjectionSchema: z.ZodObject<{
2339
2339
  unitField?: string | undefined;
2340
2340
  }>;
2341
2341
  objectTypeId: string;
2342
- datasetId: string;
2343
2342
  latestRun: {
2344
2343
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
2345
2344
  projectId: string;
@@ -2435,6 +2434,7 @@ export declare const TelemetryProjectionSchema: z.ZodObject<{
2435
2434
  startedAt?: string | undefined;
2436
2435
  finishedAt?: string | undefined;
2437
2436
  } | null;
2437
+ datasetId: string;
2438
2438
  _tag: "TelemetryProjectionDefinition";
2439
2439
  objectIdField: string;
2440
2440
  atField: string;
@@ -2911,7 +2911,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
2911
2911
  }>;
2912
2912
  properties: Record<string, string>;
2913
2913
  objectTypeId: string;
2914
- datasetId: string;
2915
2914
  latestRun: {
2916
2915
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
2917
2916
  projectId: string;
@@ -3007,6 +3006,7 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
3007
3006
  startedAt?: string | undefined;
3008
3007
  finishedAt?: string | undefined;
3009
3008
  } | null;
3009
+ datasetId: string;
3010
3010
  _tag: "ObjectProjectionDefinition";
3011
3011
  conflictResolution: {
3012
3012
  strategy: "editsWin";
@@ -3024,7 +3024,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
3024
3024
  }>;
3025
3025
  properties: Record<string, string>;
3026
3026
  objectTypeId: string;
3027
- datasetId: string;
3028
3027
  latestRun: {
3029
3028
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
3030
3029
  projectId: string;
@@ -3120,6 +3119,7 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
3120
3119
  startedAt?: string | undefined;
3121
3120
  finishedAt?: string | undefined;
3122
3121
  } | null;
3122
+ datasetId: string;
3123
3123
  _tag: "ObjectProjectionDefinition";
3124
3124
  conflictResolution: {
3125
3125
  strategy: "editsWin";
@@ -3563,9 +3563,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
3563
3563
  }, "strip", z.ZodTypeAny, {
3564
3564
  id: string;
3565
3565
  targetObjectTypeId: string;
3566
- datasetId: string;
3567
- linkId: string;
3568
- sourceObjectTypeId: string;
3569
3566
  latestRun: {
3570
3567
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
3571
3568
  projectId: string;
@@ -3661,15 +3658,15 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
3661
3658
  startedAt?: string | undefined;
3662
3659
  finishedAt?: string | undefined;
3663
3660
  } | null;
3661
+ datasetId: string;
3662
+ linkId: string;
3663
+ sourceObjectTypeId: string;
3664
3664
  sourceField: string;
3665
3665
  _tag: "LinkProjectionDefinition";
3666
3666
  targetField: string;
3667
3667
  }, {
3668
3668
  id: string;
3669
3669
  targetObjectTypeId: string;
3670
- datasetId: string;
3671
- linkId: string;
3672
- sourceObjectTypeId: string;
3673
3670
  latestRun: {
3674
3671
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
3675
3672
  projectId: string;
@@ -3765,6 +3762,9 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
3765
3762
  startedAt?: string | undefined;
3766
3763
  finishedAt?: string | undefined;
3767
3764
  } | null;
3765
+ datasetId: string;
3766
+ linkId: string;
3767
+ sourceObjectTypeId: string;
3768
3768
  sourceField: string;
3769
3769
  _tag: "LinkProjectionDefinition";
3770
3770
  targetField: string;
@@ -4216,7 +4216,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4216
4216
  unitField?: string | undefined;
4217
4217
  }>;
4218
4218
  objectTypeId: string;
4219
- datasetId: string;
4220
4219
  latestRun: {
4221
4220
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
4222
4221
  projectId: string;
@@ -4312,6 +4311,7 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4312
4311
  startedAt?: string | undefined;
4313
4312
  finishedAt?: string | undefined;
4314
4313
  } | null;
4314
+ datasetId: string;
4315
4315
  _tag: "TelemetryProjectionDefinition";
4316
4316
  objectIdField: string;
4317
4317
  atField: string;
@@ -4322,7 +4322,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4322
4322
  unitField?: string | undefined;
4323
4323
  }>;
4324
4324
  objectTypeId: string;
4325
- datasetId: string;
4326
4325
  latestRun: {
4327
4326
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
4328
4327
  projectId: string;
@@ -4418,6 +4417,7 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4418
4417
  startedAt?: string | undefined;
4419
4418
  finishedAt?: string | undefined;
4420
4419
  } | null;
4420
+ datasetId: string;
4421
4421
  _tag: "TelemetryProjectionDefinition";
4422
4422
  objectIdField: string;
4423
4423
  atField: string;
@@ -4433,7 +4433,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4433
4433
  }>;
4434
4434
  properties: Record<string, string>;
4435
4435
  objectTypeId: string;
4436
- datasetId: string;
4437
4436
  latestRun: {
4438
4437
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
4439
4438
  projectId: string;
@@ -4529,6 +4528,7 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4529
4528
  startedAt?: string | undefined;
4530
4529
  finishedAt?: string | undefined;
4531
4530
  } | null;
4531
+ datasetId: string;
4532
4532
  _tag: "ObjectProjectionDefinition";
4533
4533
  conflictResolution: {
4534
4534
  strategy: "editsWin";
@@ -4540,9 +4540,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4540
4540
  linkProjections: {
4541
4541
  id: string;
4542
4542
  targetObjectTypeId: string;
4543
- datasetId: string;
4544
- linkId: string;
4545
- sourceObjectTypeId: string;
4546
4543
  latestRun: {
4547
4544
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
4548
4545
  projectId: string;
@@ -4638,6 +4635,9 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4638
4635
  startedAt?: string | undefined;
4639
4636
  finishedAt?: string | undefined;
4640
4637
  } | null;
4638
+ datasetId: string;
4639
+ linkId: string;
4640
+ sourceObjectTypeId: string;
4641
4641
  sourceField: string;
4642
4642
  _tag: "LinkProjectionDefinition";
4643
4643
  targetField: string;
@@ -4649,7 +4649,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4649
4649
  unitField?: string | undefined;
4650
4650
  }>;
4651
4651
  objectTypeId: string;
4652
- datasetId: string;
4653
4652
  latestRun: {
4654
4653
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
4655
4654
  projectId: string;
@@ -4745,6 +4744,7 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4745
4744
  startedAt?: string | undefined;
4746
4745
  finishedAt?: string | undefined;
4747
4746
  } | null;
4747
+ datasetId: string;
4748
4748
  _tag: "TelemetryProjectionDefinition";
4749
4749
  objectIdField: string;
4750
4750
  atField: string;
@@ -4760,7 +4760,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4760
4760
  }>;
4761
4761
  properties: Record<string, string>;
4762
4762
  objectTypeId: string;
4763
- datasetId: string;
4764
4763
  latestRun: {
4765
4764
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
4766
4765
  projectId: string;
@@ -4856,6 +4855,7 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4856
4855
  startedAt?: string | undefined;
4857
4856
  finishedAt?: string | undefined;
4858
4857
  } | null;
4858
+ datasetId: string;
4859
4859
  _tag: "ObjectProjectionDefinition";
4860
4860
  conflictResolution: {
4861
4861
  strategy: "editsWin";
@@ -4867,9 +4867,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4867
4867
  linkProjections: {
4868
4868
  id: string;
4869
4869
  targetObjectTypeId: string;
4870
- datasetId: string;
4871
- linkId: string;
4872
- sourceObjectTypeId: string;
4873
4870
  latestRun: {
4874
4871
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
4875
4872
  projectId: string;
@@ -4965,6 +4962,9 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4965
4962
  startedAt?: string | undefined;
4966
4963
  finishedAt?: string | undefined;
4967
4964
  } | null;
4965
+ datasetId: string;
4966
+ linkId: string;
4967
+ sourceObjectTypeId: string;
4968
4968
  sourceField: string;
4969
4969
  _tag: "LinkProjectionDefinition";
4970
4970
  targetField: string;
@@ -4976,7 +4976,6 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
4976
4976
  unitField?: string | undefined;
4977
4977
  }>;
4978
4978
  objectTypeId: string;
4979
- datasetId: string;
4980
4979
  latestRun: {
4981
4980
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
4982
4981
  projectId: string;
@@ -5072,6 +5071,7 @@ export declare const ProjectionListResponseSchema: z.ZodObject<{
5072
5071
  startedAt?: string | undefined;
5073
5072
  finishedAt?: string | undefined;
5074
5073
  } | null;
5074
+ datasetId: string;
5075
5075
  _tag: "TelemetryProjectionDefinition";
5076
5076
  objectIdField: string;
5077
5077
  atField: string;
@@ -5555,7 +5555,6 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
5555
5555
  }>;
5556
5556
  properties: Record<string, string>;
5557
5557
  objectTypeId: string;
5558
- datasetId: string;
5559
5558
  latestRun: {
5560
5559
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
5561
5560
  projectId: string;
@@ -5651,6 +5650,7 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
5651
5650
  startedAt?: string | undefined;
5652
5651
  finishedAt?: string | undefined;
5653
5652
  } | null;
5653
+ datasetId: string;
5654
5654
  _tag: "ObjectProjectionDefinition";
5655
5655
  conflictResolution: {
5656
5656
  strategy: "editsWin";
@@ -5668,7 +5668,6 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
5668
5668
  }>;
5669
5669
  properties: Record<string, string>;
5670
5670
  objectTypeId: string;
5671
- datasetId: string;
5672
5671
  latestRun: {
5673
5672
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
5674
5673
  projectId: string;
@@ -5764,6 +5763,7 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
5764
5763
  startedAt?: string | undefined;
5765
5764
  finishedAt?: string | undefined;
5766
5765
  } | null;
5766
+ datasetId: string;
5767
5767
  _tag: "ObjectProjectionDefinition";
5768
5768
  conflictResolution: {
5769
5769
  strategy: "editsWin";
@@ -6206,9 +6206,6 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
6206
6206
  }, "strip", z.ZodTypeAny, {
6207
6207
  id: string;
6208
6208
  targetObjectTypeId: string;
6209
- datasetId: string;
6210
- linkId: string;
6211
- sourceObjectTypeId: string;
6212
6209
  latestRun: {
6213
6210
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
6214
6211
  projectId: string;
@@ -6304,15 +6301,15 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
6304
6301
  startedAt?: string | undefined;
6305
6302
  finishedAt?: string | undefined;
6306
6303
  } | null;
6304
+ datasetId: string;
6305
+ linkId: string;
6306
+ sourceObjectTypeId: string;
6307
6307
  sourceField: string;
6308
6308
  _tag: "LinkProjectionDefinition";
6309
6309
  targetField: string;
6310
6310
  }, {
6311
6311
  id: string;
6312
6312
  targetObjectTypeId: string;
6313
- datasetId: string;
6314
- linkId: string;
6315
- sourceObjectTypeId: string;
6316
6313
  latestRun: {
6317
6314
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
6318
6315
  projectId: string;
@@ -6408,6 +6405,9 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
6408
6405
  startedAt?: string | undefined;
6409
6406
  finishedAt?: string | undefined;
6410
6407
  } | null;
6408
+ datasetId: string;
6409
+ linkId: string;
6410
+ sourceObjectTypeId: string;
6411
6411
  sourceField: string;
6412
6412
  _tag: "LinkProjectionDefinition";
6413
6413
  targetField: string;
@@ -6858,7 +6858,6 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
6858
6858
  unitField?: string | undefined;
6859
6859
  }>;
6860
6860
  objectTypeId: string;
6861
- datasetId: string;
6862
6861
  latestRun: {
6863
6862
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
6864
6863
  projectId: string;
@@ -6954,6 +6953,7 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
6954
6953
  startedAt?: string | undefined;
6955
6954
  finishedAt?: string | undefined;
6956
6955
  } | null;
6956
+ datasetId: string;
6957
6957
  _tag: "TelemetryProjectionDefinition";
6958
6958
  objectIdField: string;
6959
6959
  atField: string;
@@ -6964,7 +6964,6 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
6964
6964
  unitField?: string | undefined;
6965
6965
  }>;
6966
6966
  objectTypeId: string;
6967
- datasetId: string;
6968
6967
  latestRun: {
6969
6968
  status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "superseded";
6970
6969
  projectId: string;
@@ -7060,6 +7059,7 @@ export declare const ProjectionResponseSchema: z.ZodUnion<[z.ZodObject<{
7060
7059
  startedAt?: string | undefined;
7061
7060
  finishedAt?: string | undefined;
7062
7061
  } | null;
7062
+ datasetId: string;
7063
7063
  _tag: "TelemetryProjectionDefinition";
7064
7064
  objectIdField: string;
7065
7065
  atField: string;
@@ -50,11 +50,11 @@ export declare const SharedAccessGrantSchema: z.ZodObject<{
50
50
  id: string;
51
51
  expiresAt: string;
52
52
  createdAt: string;
53
+ definitionId: string;
53
54
  target: {
54
55
  objectTypeId: string;
55
56
  primaryId: string;
56
57
  };
57
- definitionId: string;
58
58
  issuedBy: {
59
59
  id: string;
60
60
  type: "user" | "serviceAccount";
@@ -69,11 +69,11 @@ export declare const SharedAccessGrantSchema: z.ZodObject<{
69
69
  id: string;
70
70
  expiresAt: string;
71
71
  createdAt: string;
72
+ definitionId: string;
72
73
  target: {
73
74
  objectTypeId: string;
74
75
  primaryId: string;
75
76
  };
76
- definitionId: string;
77
77
  issuedBy: {
78
78
  id: string;
79
79
  type: "user" | "serviceAccount";
@@ -101,19 +101,19 @@ export declare const IssueSharedAccessGrantBodySchema: z.ZodObject<{
101
101
  expiresAt: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  expiresAt: string;
104
+ definitionId: string;
104
105
  target: {
105
106
  objectTypeId: string;
106
107
  primaryId: string;
107
108
  };
108
- definitionId: string;
109
109
  destinationPath: string;
110
110
  }, {
111
111
  expiresAt: string;
112
+ definitionId: string;
112
113
  target: {
113
114
  objectTypeId: string;
114
115
  primaryId: string;
115
116
  };
116
- definitionId: string;
117
117
  destinationPath: string;
118
118
  }>;
119
119
  export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
@@ -158,11 +158,11 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
158
158
  id: string;
159
159
  expiresAt: string;
160
160
  createdAt: string;
161
+ definitionId: string;
161
162
  target: {
162
163
  objectTypeId: string;
163
164
  primaryId: string;
164
165
  };
165
- definitionId: string;
166
166
  issuedBy: {
167
167
  id: string;
168
168
  type: "user" | "serviceAccount";
@@ -177,11 +177,11 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
177
177
  id: string;
178
178
  expiresAt: string;
179
179
  createdAt: string;
180
+ definitionId: string;
180
181
  target: {
181
182
  objectTypeId: string;
182
183
  primaryId: string;
183
184
  };
184
- definitionId: string;
185
185
  issuedBy: {
186
186
  id: string;
187
187
  type: "user" | "serviceAccount";
@@ -201,11 +201,11 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
201
201
  id: string;
202
202
  expiresAt: string;
203
203
  createdAt: string;
204
+ definitionId: string;
204
205
  target: {
205
206
  objectTypeId: string;
206
207
  primaryId: string;
207
208
  };
208
- definitionId: string;
209
209
  issuedBy: {
210
210
  id: string;
211
211
  type: "user" | "serviceAccount";
@@ -223,11 +223,11 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
223
223
  id: string;
224
224
  expiresAt: string;
225
225
  createdAt: string;
226
+ definitionId: string;
226
227
  target: {
227
228
  objectTypeId: string;
228
229
  primaryId: string;
229
230
  };
230
- definitionId: string;
231
231
  issuedBy: {
232
232
  id: string;
233
233
  type: "user" | "serviceAccount";
@@ -304,11 +304,11 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
304
304
  id: string;
305
305
  expiresAt: string;
306
306
  createdAt: string;
307
+ definitionId: string;
307
308
  target: {
308
309
  objectTypeId: string;
309
310
  primaryId: string;
310
311
  };
311
- definitionId: string;
312
312
  issuedBy: {
313
313
  id: string;
314
314
  type: "user" | "serviceAccount";
@@ -323,11 +323,11 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
323
323
  id: string;
324
324
  expiresAt: string;
325
325
  createdAt: string;
326
+ definitionId: string;
326
327
  target: {
327
328
  objectTypeId: string;
328
329
  primaryId: string;
329
330
  };
330
- definitionId: string;
331
331
  issuedBy: {
332
332
  id: string;
333
333
  type: "user" | "serviceAccount";
@@ -348,11 +348,11 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
348
348
  id: string;
349
349
  expiresAt: string;
350
350
  createdAt: string;
351
+ definitionId: string;
351
352
  target: {
352
353
  objectTypeId: string;
353
354
  primaryId: string;
354
355
  };
355
- definitionId: string;
356
356
  issuedBy: {
357
357
  id: string;
358
358
  type: "user" | "serviceAccount";
@@ -371,11 +371,11 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
371
371
  id: string;
372
372
  expiresAt: string;
373
373
  createdAt: string;
374
+ definitionId: string;
374
375
  target: {
375
376
  objectTypeId: string;
376
377
  primaryId: string;
377
378
  };
378
- definitionId: string;
379
379
  issuedBy: {
380
380
  id: string;
381
381
  type: "user" | "serviceAccount";
@@ -437,11 +437,11 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
437
437
  id: string;
438
438
  expiresAt: string;
439
439
  createdAt: string;
440
+ definitionId: string;
440
441
  target: {
441
442
  objectTypeId: string;
442
443
  primaryId: string;
443
444
  };
444
- definitionId: string;
445
445
  issuedBy: {
446
446
  id: string;
447
447
  type: "user" | "serviceAccount";
@@ -456,11 +456,11 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
456
456
  id: string;
457
457
  expiresAt: string;
458
458
  createdAt: string;
459
+ definitionId: string;
459
460
  target: {
460
461
  objectTypeId: string;
461
462
  primaryId: string;
462
463
  };
463
- definitionId: string;
464
464
  issuedBy: {
465
465
  id: string;
466
466
  type: "user" | "serviceAccount";
@@ -477,11 +477,11 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
477
477
  id: string;
478
478
  expiresAt: string;
479
479
  createdAt: string;
480
+ definitionId: string;
480
481
  target: {
481
482
  objectTypeId: string;
482
483
  primaryId: string;
483
484
  };
484
- definitionId: string;
485
485
  issuedBy: {
486
486
  id: string;
487
487
  type: "user" | "serviceAccount";
@@ -498,11 +498,11 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
498
498
  id: string;
499
499
  expiresAt: string;
500
500
  createdAt: string;
501
+ definitionId: string;
501
502
  target: {
502
503
  objectTypeId: string;
503
504
  primaryId: string;
504
505
  };
505
- definitionId: string;
506
506
  issuedBy: {
507
507
  id: string;
508
508
  type: "user" | "serviceAccount";