@sixb/client 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 (45) hide show
  1. package/dist/activity-attribution.d.ts +29 -0
  2. package/dist/activity-attribution.d.ts.map +1 -0
  3. package/dist/activity-tracker.d.ts +105 -0
  4. package/dist/activity-tracker.d.ts.map +1 -0
  5. package/dist/browser.d.ts +2 -0
  6. package/dist/browser.d.ts.map +1 -1
  7. package/dist/browser.js +513 -11
  8. package/dist/browser.js.map +6 -4
  9. package/dist/{chunk-g05ar78c.js → chunk-3b154p8n.js} +3 -3
  10. package/dist/{chunk-tkjkrcdt.js → chunk-3f2pjdzk.js} +155 -2
  11. package/dist/chunk-3f2pjdzk.js.map +19 -0
  12. package/dist/{chunk-awbb496e.js → chunk-9wd8x2em.js} +1 -1
  13. package/dist/{chunk-3aa3m9z6.js → chunk-ana8rtgb.js} +2 -2
  14. package/dist/{chunk-95bnb04n.js → chunk-qdq5gfqx.js} +1 -1
  15. package/dist/{chunk-12s8gbwj.js → chunk-s5zamywm.js} +2 -2
  16. package/dist/generated/@tanstack/react-query.gen.d.ts +2281 -591
  17. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  18. package/dist/generated/index.d.ts +2 -2
  19. package/dist/generated/index.d.ts.map +1 -1
  20. package/dist/generated/sdk.gen.d.ts +89 -1
  21. package/dist/generated/sdk.gen.d.ts.map +1 -1
  22. package/dist/generated/types.gen.d.ts +1669 -448
  23. package/dist/generated/types.gen.d.ts.map +1 -1
  24. package/dist/hooks.js +299 -6
  25. package/dist/hooks.js.map +3 -3
  26. package/dist/index.js +40 -6
  27. package/dist/index.js.map +1 -1
  28. package/dist/logs.js +3 -3
  29. package/dist/models.js +36 -2
  30. package/dist/models.js.map +1 -1
  31. package/dist/query.js +3 -3
  32. package/package.json +2 -2
  33. package/src/activity-attribution.ts +211 -0
  34. package/src/activity-tracker.ts +527 -0
  35. package/src/browser.ts +14 -1
  36. package/src/generated/@tanstack/react-query.gen.ts +580 -0
  37. package/src/generated/index.ts +101 -0
  38. package/src/generated/sdk.gen.ts +389 -0
  39. package/src/generated/types.gen.ts +2405 -1090
  40. package/dist/chunk-tkjkrcdt.js.map +0 -19
  41. /package/dist/{chunk-g05ar78c.js.map → chunk-3b154p8n.js.map} +0 -0
  42. /package/dist/{chunk-awbb496e.js.map → chunk-9wd8x2em.js.map} +0 -0
  43. /package/dist/{chunk-3aa3m9z6.js.map → chunk-ana8rtgb.js.map} +0 -0
  44. /package/dist/{chunk-95bnb04n.js.map → chunk-qdq5gfqx.js.map} +0 -0
  45. /package/dist/{chunk-12s8gbwj.js.map → chunk-s5zamywm.js.map} +0 -0
@@ -8843,10 +8843,9 @@ export type ListAgentThreadMessagesResponses = {
8843
8843
  errorText: string;
8844
8844
  }>;
8845
8845
  annotations: Array<{
8846
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
8846
+ code: "step_limit_reached";
8847
8847
  severity: "warning" | "error";
8848
- scope: "output" | "run";
8849
- path?: string;
8848
+ scope: "run";
8850
8849
  message: string;
8851
8850
  }>;
8852
8851
  compaction?: {
@@ -9022,10 +9021,9 @@ export type PostAgentThreadMessageResponses = {
9022
9021
  unvaluedCallCount: number;
9023
9022
  };
9024
9023
  diagnostics?: Array<{
9025
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
9024
+ code: "step_limit_reached";
9026
9025
  severity: "warning" | "error";
9027
- scope: "output" | "run";
9028
- path?: string;
9026
+ scope: "run";
9029
9027
  message: string;
9030
9028
  }>;
9031
9029
  error?: {
@@ -9229,10 +9227,9 @@ export type CancelAgentRunResponses = {
9229
9227
  unvaluedCallCount: number;
9230
9228
  };
9231
9229
  diagnostics?: Array<{
9232
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
9230
+ code: "step_limit_reached";
9233
9231
  severity: "warning" | "error";
9234
- scope: "output" | "run";
9235
- path?: string;
9232
+ scope: "run";
9236
9233
  message: string;
9237
9234
  }>;
9238
9235
  error?: {
@@ -9360,10 +9357,9 @@ export type RetryAgentRunResponses = {
9360
9357
  unvaluedCallCount: number;
9361
9358
  };
9362
9359
  diagnostics?: Array<{
9363
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
9360
+ code: "step_limit_reached";
9364
9361
  severity: "warning" | "error";
9365
- scope: "output" | "run";
9366
- path?: string;
9362
+ scope: "run";
9367
9363
  message: string;
9368
9364
  }>;
9369
9365
  error?: {
@@ -9473,10 +9469,9 @@ export type ListAgentThreadRunsResponses = {
9473
9469
  unvaluedCallCount: number;
9474
9470
  };
9475
9471
  diagnostics?: Array<{
9476
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
9472
+ code: "step_limit_reached";
9477
9473
  severity: "warning" | "error";
9478
- scope: "output" | "run";
9479
- path?: string;
9474
+ scope: "run";
9480
9475
  message: string;
9481
9476
  }>;
9482
9477
  error?: {
@@ -9582,10 +9577,9 @@ export type GetAgentRunResponses = {
9582
9577
  unvaluedCallCount: number;
9583
9578
  };
9584
9579
  diagnostics?: Array<{
9585
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
9580
+ code: "step_limit_reached";
9586
9581
  severity: "warning" | "error";
9587
- scope: "output" | "run";
9588
- path?: string;
9582
+ scope: "run";
9589
9583
  message: string;
9590
9584
  }>;
9591
9585
  error?: {
@@ -9611,353 +9605,1112 @@ export type GetAgentRunResponses = {
9611
9605
  };
9612
9606
  };
9613
9607
  export type GetAgentRunResponse = GetAgentRunResponses[keyof GetAgentRunResponses];
9614
- export type ListModelsData = {
9608
+ export type ListArtifactsData = {
9615
9609
  body?: never;
9616
9610
  path?: never;
9617
- query?: never;
9618
- url: "/api/models";
9619
- };
9620
- export type ListModelsResponses = {
9621
- /**
9622
- * Response for status 200
9623
- */
9624
- 200: {
9625
- language: Array<{
9626
- provider: string;
9627
- modelId: string;
9628
- isDefault: boolean;
9629
- name: string;
9630
- description?: string;
9631
- publisher: {
9632
- id: string;
9633
- name: string;
9634
- };
9635
- via?: string;
9636
- capabilities: {
9637
- input: Array<"text" | "image" | "audio" | "video" | "pdf">;
9638
- output: Array<"text" | "image" | "audio" | "video" | "pdf">;
9639
- attachments?: boolean;
9640
- reasoning?: boolean;
9641
- tools?: boolean;
9642
- structuredOutput?: boolean;
9643
- contextWindowTokens?: number;
9644
- };
9645
- reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
9646
- defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
9647
- }>;
9648
- };
9649
- };
9650
- export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses];
9651
- export type RemoveObjectLinkData = {
9652
- body?: never;
9653
- path: {
9654
- objectTypeId: string;
9655
- objectId: string;
9656
- linkId: string;
9657
- };
9658
- query: {
9659
- targetTypeId: string;
9660
- targetId: string;
9611
+ query?: {
9612
+ /**
9613
+ * Only artifacts with a version the Agent published in this thread
9614
+ */
9615
+ thread?: string;
9616
+ /**
9617
+ * Only artifacts of this kind
9618
+ */
9619
+ kind?: "document" | "sheet" | "slides" | "file";
9620
+ limit?: string;
9621
+ offset?: string;
9661
9622
  };
9662
- url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}";
9623
+ url: "/api/artifacts";
9663
9624
  };
9664
- export type RemoveObjectLinkErrors = {
9625
+ export type ListArtifactsErrors = {
9665
9626
  /**
9666
9627
  * Response for status 400
9667
9628
  */
9668
9629
  400: {
9669
9630
  error: string;
9631
+ /**
9632
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9633
+ */
9634
+ code?: string;
9670
9635
  };
9671
9636
  /**
9672
- * Response for status 403
9673
- */
9674
- 403: {
9675
- error: string;
9676
- };
9677
- /**
9678
- * Response for status 404
9637
+ * Response for status 501
9679
9638
  */
9680
- 404: {
9639
+ 501: {
9681
9640
  error: string;
9641
+ /**
9642
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9643
+ */
9644
+ code?: string;
9682
9645
  };
9683
9646
  };
9684
- export type RemoveObjectLinkError = RemoveObjectLinkErrors[keyof RemoveObjectLinkErrors];
9685
- export type RemoveObjectLinkResponses = {
9647
+ export type ListArtifactsError = ListArtifactsErrors[keyof ListArtifactsErrors];
9648
+ export type ListArtifactsResponses = {
9686
9649
  /**
9687
9650
  * Response for status 200
9688
9651
  */
9689
9652
  200: {
9690
- success: boolean;
9653
+ artifacts: Array<{
9654
+ id: string;
9655
+ projectId: string;
9656
+ kind: "document" | "sheet" | "slides" | "file";
9657
+ title: string;
9658
+ owner: {
9659
+ type: "user" | "serviceAccount" | "system";
9660
+ id: string;
9661
+ };
9662
+ latestVersion: number;
9663
+ createdAt: string;
9664
+ updatedAt: string;
9665
+ }>;
9666
+ hasMore: boolean;
9667
+ total: number;
9691
9668
  };
9692
9669
  };
9693
- export type RemoveObjectLinkResponse = RemoveObjectLinkResponses[keyof RemoveObjectLinkResponses];
9694
- export type UpsertObjectLinkData = {
9670
+ export type ListArtifactsResponse = ListArtifactsResponses[keyof ListArtifactsResponses];
9671
+ export type CreateArtifactData = {
9695
9672
  body: {
9696
- targetTypeId: string;
9697
- targetId: string;
9698
- properties?: {
9699
- [key: string]: unknown;
9700
- };
9701
- };
9702
- path: {
9703
- objectTypeId: string;
9704
- objectId: string;
9705
- linkId: string;
9673
+ kind: "document" | "sheet" | "slides" | "file";
9674
+ title: string;
9675
+ /**
9676
+ * Files stored with POST /api/files, at their paths in the artifact
9677
+ */
9678
+ files: Array<{
9679
+ /**
9680
+ * The file's path inside the artifact, such as figures/revenue.svg
9681
+ */
9682
+ path: string;
9683
+ file: {
9684
+ blobId: string;
9685
+ digest: string;
9686
+ sizeBytes: number;
9687
+ fileName?: string;
9688
+ mediaType?: string;
9689
+ logicalPath?: string;
9690
+ };
9691
+ }>;
9706
9692
  };
9693
+ path?: never;
9707
9694
  query?: never;
9708
- url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}";
9695
+ url: "/api/artifacts";
9709
9696
  };
9710
- export type UpsertObjectLinkErrors = {
9697
+ export type CreateArtifactErrors = {
9711
9698
  /**
9712
9699
  * Response for status 400
9713
9700
  */
9714
9701
  400: {
9715
9702
  error: string;
9703
+ /**
9704
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9705
+ */
9706
+ code?: string;
9716
9707
  };
9717
9708
  /**
9718
9709
  * Response for status 403
9719
9710
  */
9720
9711
  403: {
9721
9712
  error: string;
9713
+ /**
9714
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9715
+ */
9716
+ code?: string;
9722
9717
  };
9723
9718
  /**
9724
9719
  * Response for status 404
9725
9720
  */
9726
9721
  404: {
9727
9722
  error: string;
9723
+ /**
9724
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9725
+ */
9726
+ code?: string;
9728
9727
  };
9729
- };
9730
- export type UpsertObjectLinkError = UpsertObjectLinkErrors[keyof UpsertObjectLinkErrors];
9731
- export type UpsertObjectLinkResponses = {
9732
9728
  /**
9733
- * Response for status 200
9729
+ * Response for status 409
9734
9730
  */
9735
- 200: {
9736
- success: boolean;
9731
+ 409: {
9732
+ error: string;
9733
+ /**
9734
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9735
+ */
9736
+ code?: string;
9737
+ };
9738
+ /**
9739
+ * Response for status 501
9740
+ */
9741
+ 501: {
9742
+ error: string;
9743
+ /**
9744
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9745
+ */
9746
+ code?: string;
9737
9747
  };
9738
9748
  };
9739
- export type UpsertObjectLinkResponse = UpsertObjectLinkResponses[keyof UpsertObjectLinkResponses];
9740
- export type AppendTelemetryData = {
9741
- body: {
9742
- value?: unknown;
9743
- unit?: string;
9744
- at?: string;
9749
+ export type CreateArtifactError = CreateArtifactErrors[keyof CreateArtifactErrors];
9750
+ export type CreateArtifactResponses = {
9751
+ /**
9752
+ * Response for status 201
9753
+ */
9754
+ 201: {
9755
+ artifact: {
9756
+ id: string;
9757
+ projectId: string;
9758
+ kind: "document" | "sheet" | "slides" | "file";
9759
+ title: string;
9760
+ owner: {
9761
+ type: "user" | "serviceAccount" | "system";
9762
+ id: string;
9763
+ };
9764
+ latestVersion: number;
9765
+ createdAt: string;
9766
+ updatedAt: string;
9767
+ };
9768
+ version: {
9769
+ artifactId: string;
9770
+ version: number;
9771
+ title: string;
9772
+ entry: string;
9773
+ files: Array<{
9774
+ /**
9775
+ * The file's path inside the artifact, such as figures/revenue.svg
9776
+ */
9777
+ path: string;
9778
+ file: {
9779
+ blobId: string;
9780
+ digest: string;
9781
+ sizeBytes: number;
9782
+ fileName?: string;
9783
+ mediaType?: string;
9784
+ logicalPath?: string;
9785
+ };
9786
+ }>;
9787
+ outline: {
9788
+ kind: "document";
9789
+ headings: Array<{
9790
+ depth: number;
9791
+ text: string;
9792
+ slug: string;
9793
+ }>;
9794
+ } | {
9795
+ kind: "sheet";
9796
+ sheets: Array<{
9797
+ name: string;
9798
+ rows: number;
9799
+ columns: Array<string>;
9800
+ }>;
9801
+ charts: Array<string>;
9802
+ } | {
9803
+ kind: "slides";
9804
+ slides: Array<{
9805
+ title?: string;
9806
+ }>;
9807
+ } | {
9808
+ kind: "file";
9809
+ mediaType: string;
9810
+ };
9811
+ references: Array<{
9812
+ address: string;
9813
+ as: "embed" | "link";
9814
+ at: string;
9815
+ resolvedVersion: number;
9816
+ }>;
9817
+ author: {
9818
+ type: "user" | "serviceAccount" | "system";
9819
+ id: string;
9820
+ };
9821
+ origin?: {
9822
+ threadId: string;
9823
+ runId: string;
9824
+ };
9825
+ createdAt: string;
9826
+ };
9827
+ warnings: Array<{
9828
+ code: string;
9829
+ message: string;
9830
+ part?: string;
9831
+ }>;
9745
9832
  };
9833
+ };
9834
+ export type CreateArtifactResponse = CreateArtifactResponses[keyof CreateArtifactResponses];
9835
+ export type DeleteArtifactData = {
9836
+ body?: never;
9746
9837
  path: {
9747
- objectTypeId: string;
9748
- objectId: string;
9749
- propertyId: string;
9838
+ artifactId: string;
9750
9839
  };
9751
9840
  query?: never;
9752
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}";
9841
+ url: "/api/artifacts/{artifactId}";
9753
9842
  };
9754
- export type AppendTelemetryErrors = {
9755
- /**
9756
- * Response for status 400
9757
- */
9758
- 400: {
9759
- error: string;
9760
- };
9843
+ export type DeleteArtifactErrors = {
9761
9844
  /**
9762
- * Response for status 403
9845
+ * Response for status 404
9763
9846
  */
9764
- 403: {
9847
+ 404: {
9765
9848
  error: string;
9849
+ /**
9850
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9851
+ */
9852
+ code?: string;
9766
9853
  };
9767
9854
  /**
9768
- * Response for status 404
9855
+ * Response for status 501
9769
9856
  */
9770
- 404: {
9857
+ 501: {
9771
9858
  error: string;
9859
+ /**
9860
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9861
+ */
9862
+ code?: string;
9772
9863
  };
9773
9864
  };
9774
- export type AppendTelemetryError = AppendTelemetryErrors[keyof AppendTelemetryErrors];
9775
- export type AppendTelemetryResponses = {
9865
+ export type DeleteArtifactError = DeleteArtifactErrors[keyof DeleteArtifactErrors];
9866
+ export type DeleteArtifactResponses = {
9776
9867
  /**
9777
9868
  * Response for status 200
9778
9869
  */
9779
9870
  200: {
9780
- success: boolean;
9871
+ deleted: true;
9781
9872
  };
9782
9873
  };
9783
- export type AppendTelemetryResponse = AppendTelemetryResponses[keyof AppendTelemetryResponses];
9784
- export type GetBulkTelemetryHistoryData = {
9785
- body: {
9786
- series: Array<{
9787
- objectTypeId: string;
9788
- objectId: string;
9789
- propertyId: string;
9790
- }>;
9791
- from?: string;
9792
- to?: string;
9793
- limitPerSeries?: number;
9794
- order?: "asc" | "desc";
9874
+ export type DeleteArtifactResponse = DeleteArtifactResponses[keyof DeleteArtifactResponses];
9875
+ export type GetArtifactData = {
9876
+ body?: never;
9877
+ path: {
9878
+ artifactId: string;
9795
9879
  };
9796
- path?: never;
9797
9880
  query?: never;
9798
- url: "/api/telemetry/history";
9881
+ url: "/api/artifacts/{artifactId}";
9799
9882
  };
9800
- export type GetBulkTelemetryHistoryErrors = {
9883
+ export type GetArtifactErrors = {
9801
9884
  /**
9802
- * Response for status 400
9885
+ * Response for status 404
9803
9886
  */
9804
- 400: {
9887
+ 404: {
9805
9888
  error: string;
9889
+ /**
9890
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9891
+ */
9892
+ code?: string;
9806
9893
  };
9807
9894
  /**
9808
- * Response for status 403
9895
+ * Response for status 501
9809
9896
  */
9810
- 403: {
9897
+ 501: {
9811
9898
  error: string;
9899
+ /**
9900
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9901
+ */
9902
+ code?: string;
9812
9903
  };
9813
9904
  };
9814
- export type GetBulkTelemetryHistoryError = GetBulkTelemetryHistoryErrors[keyof GetBulkTelemetryHistoryErrors];
9815
- export type GetBulkTelemetryHistoryResponses = {
9905
+ export type GetArtifactError = GetArtifactErrors[keyof GetArtifactErrors];
9906
+ export type GetArtifactResponses = {
9816
9907
  /**
9817
9908
  * Response for status 200
9818
9909
  */
9819
9910
  200: {
9820
- series: Array<{
9821
- objectTypeId: string;
9822
- objectId: string;
9823
- propertyId: string;
9824
- points: Array<{
9825
- projectId: string;
9826
- objectTypeId: string;
9827
- objectId: string;
9828
- propertyId: string;
9829
- value?: unknown;
9830
- unit?: string;
9831
- at: string;
9832
- }>;
9911
+ artifact: {
9912
+ id: string;
9913
+ projectId: string;
9914
+ kind: "document" | "sheet" | "slides" | "file";
9915
+ title: string;
9916
+ owner: {
9917
+ type: "user" | "serviceAccount" | "system";
9918
+ id: string;
9919
+ };
9920
+ latestVersion: number;
9921
+ createdAt: string;
9922
+ updatedAt: string;
9923
+ };
9924
+ /**
9925
+ * Newest first
9926
+ */
9927
+ versions: Array<{
9928
+ version: number;
9929
+ title: string;
9930
+ author: {
9931
+ type: "user" | "serviceAccount" | "system";
9932
+ id: string;
9933
+ };
9934
+ origin?: {
9935
+ threadId: string;
9936
+ runId: string;
9937
+ };
9938
+ createdAt: string;
9833
9939
  }>;
9834
9940
  };
9835
9941
  };
9836
- export type GetBulkTelemetryHistoryResponse = GetBulkTelemetryHistoryResponses[keyof GetBulkTelemetryHistoryResponses];
9837
- export type GetTelemetryHistoryData = {
9838
- body?: never;
9839
- path: {
9840
- objectTypeId: string;
9841
- objectId: string;
9842
- propertyId: string;
9942
+ export type GetArtifactResponse = GetArtifactResponses[keyof GetArtifactResponses];
9943
+ export type PublishArtifactVersionData = {
9944
+ body: {
9945
+ kind: "document" | "sheet" | "slides" | "file";
9946
+ title: string;
9947
+ /**
9948
+ * Files stored with POST /api/files, at their paths in the artifact
9949
+ */
9950
+ files: Array<{
9951
+ /**
9952
+ * The file's path inside the artifact, such as figures/revenue.svg
9953
+ */
9954
+ path: string;
9955
+ file: {
9956
+ blobId: string;
9957
+ digest: string;
9958
+ sizeBytes: number;
9959
+ fileName?: string;
9960
+ mediaType?: string;
9961
+ logicalPath?: string;
9962
+ };
9963
+ }>;
9843
9964
  };
9844
- query?: {
9845
- from?: string;
9846
- to?: string;
9847
- limit?: string;
9848
- order?: "asc" | "desc";
9965
+ path: {
9966
+ artifactId: string;
9849
9967
  };
9850
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/history";
9968
+ query?: never;
9969
+ url: "/api/artifacts/{artifactId}/versions";
9851
9970
  };
9852
- export type GetTelemetryHistoryErrors = {
9971
+ export type PublishArtifactVersionErrors = {
9853
9972
  /**
9854
9973
  * Response for status 400
9855
9974
  */
9856
9975
  400: {
9857
9976
  error: string;
9977
+ /**
9978
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9979
+ */
9980
+ code?: string;
9981
+ };
9982
+ /**
9983
+ * Response for status 403
9984
+ */
9985
+ 403: {
9986
+ error: string;
9987
+ /**
9988
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9989
+ */
9990
+ code?: string;
9858
9991
  };
9859
9992
  /**
9860
9993
  * Response for status 404
9861
9994
  */
9862
9995
  404: {
9863
9996
  error: string;
9997
+ /**
9998
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
9999
+ */
10000
+ code?: string;
10001
+ };
10002
+ /**
10003
+ * Response for status 409
10004
+ */
10005
+ 409: {
10006
+ error: string;
10007
+ /**
10008
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
10009
+ */
10010
+ code?: string;
10011
+ };
10012
+ /**
10013
+ * Response for status 501
10014
+ */
10015
+ 501: {
10016
+ error: string;
10017
+ /**
10018
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
10019
+ */
10020
+ code?: string;
9864
10021
  };
9865
10022
  };
9866
- export type GetTelemetryHistoryError = GetTelemetryHistoryErrors[keyof GetTelemetryHistoryErrors];
9867
- export type GetTelemetryHistoryResponses = {
10023
+ export type PublishArtifactVersionError = PublishArtifactVersionErrors[keyof PublishArtifactVersionErrors];
10024
+ export type PublishArtifactVersionResponses = {
9868
10025
  /**
9869
- * Response for status 200
10026
+ * Response for status 201
9870
10027
  */
9871
- 200: Array<{
9872
- projectId: string;
9873
- objectTypeId: string;
9874
- objectId: string;
9875
- propertyId: string;
9876
- value?: unknown;
9877
- unit?: string;
9878
- at: string;
9879
- }>;
10028
+ 201: {
10029
+ artifact: {
10030
+ id: string;
10031
+ projectId: string;
10032
+ kind: "document" | "sheet" | "slides" | "file";
10033
+ title: string;
10034
+ owner: {
10035
+ type: "user" | "serviceAccount" | "system";
10036
+ id: string;
10037
+ };
10038
+ latestVersion: number;
10039
+ createdAt: string;
10040
+ updatedAt: string;
10041
+ };
10042
+ version: {
10043
+ artifactId: string;
10044
+ version: number;
10045
+ title: string;
10046
+ entry: string;
10047
+ files: Array<{
10048
+ /**
10049
+ * The file's path inside the artifact, such as figures/revenue.svg
10050
+ */
10051
+ path: string;
10052
+ file: {
10053
+ blobId: string;
10054
+ digest: string;
10055
+ sizeBytes: number;
10056
+ fileName?: string;
10057
+ mediaType?: string;
10058
+ logicalPath?: string;
10059
+ };
10060
+ }>;
10061
+ outline: {
10062
+ kind: "document";
10063
+ headings: Array<{
10064
+ depth: number;
10065
+ text: string;
10066
+ slug: string;
10067
+ }>;
10068
+ } | {
10069
+ kind: "sheet";
10070
+ sheets: Array<{
10071
+ name: string;
10072
+ rows: number;
10073
+ columns: Array<string>;
10074
+ }>;
10075
+ charts: Array<string>;
10076
+ } | {
10077
+ kind: "slides";
10078
+ slides: Array<{
10079
+ title?: string;
10080
+ }>;
10081
+ } | {
10082
+ kind: "file";
10083
+ mediaType: string;
10084
+ };
10085
+ references: Array<{
10086
+ address: string;
10087
+ as: "embed" | "link";
10088
+ at: string;
10089
+ resolvedVersion: number;
10090
+ }>;
10091
+ author: {
10092
+ type: "user" | "serviceAccount" | "system";
10093
+ id: string;
10094
+ };
10095
+ origin?: {
10096
+ threadId: string;
10097
+ runId: string;
10098
+ };
10099
+ createdAt: string;
10100
+ };
10101
+ warnings: Array<{
10102
+ code: string;
10103
+ message: string;
10104
+ part?: string;
10105
+ }>;
10106
+ };
9880
10107
  };
9881
- export type GetTelemetryHistoryResponse = GetTelemetryHistoryResponses[keyof GetTelemetryHistoryResponses];
9882
- export type GetLatestTelemetryData = {
10108
+ export type PublishArtifactVersionResponse = PublishArtifactVersionResponses[keyof PublishArtifactVersionResponses];
10109
+ export type CreateArtifactFrameData = {
9883
10110
  body?: never;
9884
10111
  path: {
9885
- objectTypeId: string;
9886
- objectId: string;
9887
- propertyId: string;
10112
+ artifactId: string;
10113
+ /**
10114
+ * A version number, or "latest"
10115
+ */
10116
+ version: string;
9888
10117
  };
9889
10118
  query?: never;
9890
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/latest";
10119
+ url: "/api/artifacts/{artifactId}/versions/{version}/frame";
9891
10120
  };
9892
- export type GetLatestTelemetryErrors = {
10121
+ export type CreateArtifactFrameErrors = {
9893
10122
  /**
9894
- * Response for status 400
10123
+ * Response for status 404
9895
10124
  */
9896
- 400: {
10125
+ 404: {
9897
10126
  error: string;
10127
+ /**
10128
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
10129
+ */
10130
+ code?: string;
9898
10131
  };
9899
10132
  /**
9900
- * Response for status 404
10133
+ * Response for status 409
9901
10134
  */
9902
- 404: {
10135
+ 409: {
10136
+ error: string;
10137
+ /**
10138
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
10139
+ */
10140
+ code?: string;
10141
+ };
10142
+ /**
10143
+ * Response for status 501
10144
+ */
10145
+ 501: {
9903
10146
  error: string;
10147
+ /**
10148
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
10149
+ */
10150
+ code?: string;
9904
10151
  };
9905
10152
  };
9906
- export type GetLatestTelemetryError = GetLatestTelemetryErrors[keyof GetLatestTelemetryErrors];
9907
- export type GetLatestTelemetryResponses = {
10153
+ export type CreateArtifactFrameError = CreateArtifactFrameErrors[keyof CreateArtifactFrameErrors];
10154
+ export type CreateArtifactFrameResponses = {
9908
10155
  /**
9909
10156
  * Response for status 200
9910
10157
  */
9911
10158
  200: {
9912
- projectId: string;
9913
- objectTypeId: string;
9914
- objectId: string;
9915
- propertyId: string;
9916
- value?: unknown;
9917
- unit?: string;
9918
- at: string;
10159
+ /**
10160
+ * The frame's base path on this API, ending in /; the deck's entry is served under it
10161
+ */
10162
+ path: string;
10163
+ /**
10164
+ * When the frame stops serving; ask for a new one before then
10165
+ */
10166
+ expiresAt: string;
9919
10167
  };
9920
10168
  };
9921
- export type GetLatestTelemetryResponse = GetLatestTelemetryResponses[keyof GetLatestTelemetryResponses];
9922
- export type ListEventsData = {
10169
+ export type CreateArtifactFrameResponse = CreateArtifactFrameResponses[keyof CreateArtifactFrameResponses];
10170
+ export type GetArtifactVersionData = {
9923
10171
  body?: never;
9924
- path?: never;
9925
- query?: {
9926
- topic?: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules";
9927
- type?: "object.created" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved";
9928
- afterCursor?: string;
9929
- limit?: string;
10172
+ path: {
10173
+ artifactId: string;
10174
+ /**
10175
+ * A version number, or "latest"
10176
+ */
10177
+ version: string;
9930
10178
  };
9931
- url: "/api/events";
10179
+ query?: never;
10180
+ url: "/api/artifacts/{artifactId}/versions/{version}";
9932
10181
  };
9933
- export type ListEventsErrors = {
10182
+ export type GetArtifactVersionErrors = {
9934
10183
  /**
9935
- * Response for status 400
10184
+ * Response for status 404
9936
10185
  */
9937
- 400: {
10186
+ 404: {
9938
10187
  error: string;
10188
+ /**
10189
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
10190
+ */
10191
+ code?: string;
9939
10192
  };
9940
10193
  /**
9941
- * Response for status 403
10194
+ * Response for status 501
9942
10195
  */
9943
- 403: {
10196
+ 501: {
9944
10197
  error: string;
10198
+ /**
10199
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
10200
+ */
10201
+ code?: string;
9945
10202
  };
9946
10203
  };
9947
- export type ListEventsError = ListEventsErrors[keyof ListEventsErrors];
9948
- export type ListEventsResponses = {
10204
+ export type GetArtifactVersionError = GetArtifactVersionErrors[keyof GetArtifactVersionErrors];
10205
+ export type GetArtifactVersionResponses = {
9949
10206
  /**
9950
10207
  * Response for status 200
9951
10208
  */
9952
10209
  200: {
9953
- count: number;
9954
- events: Array<{
10210
+ artifactId: string;
10211
+ version: number;
10212
+ title: string;
10213
+ entry: string;
10214
+ files: Array<{
10215
+ /**
10216
+ * The file's path inside the artifact, such as figures/revenue.svg
10217
+ */
10218
+ path: string;
10219
+ file: {
10220
+ blobId: string;
10221
+ digest: string;
10222
+ sizeBytes: number;
10223
+ fileName?: string;
10224
+ mediaType?: string;
10225
+ logicalPath?: string;
10226
+ };
10227
+ }>;
10228
+ outline: {
10229
+ kind: "document";
10230
+ headings: Array<{
10231
+ depth: number;
10232
+ text: string;
10233
+ slug: string;
10234
+ }>;
10235
+ } | {
10236
+ kind: "sheet";
10237
+ sheets: Array<{
10238
+ name: string;
10239
+ rows: number;
10240
+ columns: Array<string>;
10241
+ }>;
10242
+ charts: Array<string>;
10243
+ } | {
10244
+ kind: "slides";
10245
+ slides: Array<{
10246
+ title?: string;
10247
+ }>;
10248
+ } | {
10249
+ kind: "file";
10250
+ mediaType: string;
10251
+ };
10252
+ references: Array<{
10253
+ address: string;
10254
+ as: "embed" | "link";
10255
+ at: string;
10256
+ resolvedVersion: number;
10257
+ }>;
10258
+ author: {
10259
+ type: "user" | "serviceAccount" | "system";
9955
10260
  id: string;
9956
- cursor: string;
9957
- schemaVersion: 1;
9958
- projectId: string;
9959
- occurredAt: string;
9960
- partitionKey: string;
10261
+ };
10262
+ origin?: {
10263
+ threadId: string;
10264
+ runId: string;
10265
+ };
10266
+ createdAt: string;
10267
+ };
10268
+ };
10269
+ export type GetArtifactVersionResponse = GetArtifactVersionResponses[keyof GetArtifactVersionResponses];
10270
+ export type GetArtifactFileContentData = {
10271
+ body?: never;
10272
+ path: {
10273
+ artifactId: string;
10274
+ /**
10275
+ * A version number, or "latest"
10276
+ */
10277
+ version: string;
10278
+ };
10279
+ query: {
10280
+ path: string;
10281
+ disposition?: "inline" | "attachment";
10282
+ /**
10283
+ * Client cache key; the route still resolves the current file
10284
+ */
10285
+ v?: string;
10286
+ };
10287
+ url: "/api/artifacts/{artifactId}/versions/{version}/content";
10288
+ };
10289
+ export type GetArtifactFileContentErrors = {
10290
+ /**
10291
+ * Response for status 400
10292
+ */
10293
+ 400: ErrorResponse;
10294
+ /**
10295
+ * Response for status 404
10296
+ */
10297
+ 404: ErrorResponse;
10298
+ /**
10299
+ * Requested byte range is not satisfiable
10300
+ */
10301
+ 416: unknown;
10302
+ /**
10303
+ * The storage role backing this content is not configured
10304
+ */
10305
+ 501: ErrorResponse;
10306
+ };
10307
+ export type GetArtifactFileContentError = GetArtifactFileContentErrors[keyof GetArtifactFileContentErrors];
10308
+ export type GetArtifactFileContentResponses = {
10309
+ /**
10310
+ * File content
10311
+ */
10312
+ 200: Blob | File;
10313
+ /**
10314
+ * Partial file content
10315
+ */
10316
+ 206: Blob | File;
10317
+ };
10318
+ export type GetArtifactFileContentResponse = GetArtifactFileContentResponses[keyof GetArtifactFileContentResponses];
10319
+ export type HeadArtifactFileContentData = {
10320
+ body?: never;
10321
+ path: {
10322
+ artifactId: string;
10323
+ /**
10324
+ * A version number, or "latest"
10325
+ */
10326
+ version: string;
10327
+ };
10328
+ query: {
10329
+ path: string;
10330
+ disposition?: "inline" | "attachment";
10331
+ /**
10332
+ * Client cache key; the route still resolves the current file
10333
+ */
10334
+ v?: string;
10335
+ };
10336
+ url: "/api/artifacts/{artifactId}/versions/{version}/content";
10337
+ };
10338
+ export type HeadArtifactFileContentErrors = {
10339
+ /**
10340
+ * Response for status 400
10341
+ */
10342
+ 400: ErrorResponse;
10343
+ /**
10344
+ * Response for status 404
10345
+ */
10346
+ 404: ErrorResponse;
10347
+ /**
10348
+ * Requested byte range is not satisfiable
10349
+ */
10350
+ 416: unknown;
10351
+ /**
10352
+ * The storage role backing this content is not configured
10353
+ */
10354
+ 501: ErrorResponse;
10355
+ };
10356
+ export type HeadArtifactFileContentError = HeadArtifactFileContentErrors[keyof HeadArtifactFileContentErrors];
10357
+ export type HeadArtifactFileContentResponses = {
10358
+ /**
10359
+ * File content headers
10360
+ */
10361
+ 200: unknown;
10362
+ /**
10363
+ * Partial file content headers
10364
+ */
10365
+ 206: unknown;
10366
+ };
10367
+ export type ListModelsData = {
10368
+ body?: never;
10369
+ path?: never;
10370
+ query?: never;
10371
+ url: "/api/models";
10372
+ };
10373
+ export type ListModelsResponses = {
10374
+ /**
10375
+ * Response for status 200
10376
+ */
10377
+ 200: {
10378
+ language: Array<{
10379
+ provider: string;
10380
+ modelId: string;
10381
+ isDefault: boolean;
10382
+ name: string;
10383
+ description?: string;
10384
+ publisher: {
10385
+ id: string;
10386
+ name: string;
10387
+ };
10388
+ via?: string;
10389
+ capabilities: {
10390
+ input: Array<"text" | "image" | "audio" | "video" | "pdf">;
10391
+ output: Array<"text" | "image" | "audio" | "video" | "pdf">;
10392
+ attachments?: boolean;
10393
+ reasoning?: boolean;
10394
+ tools?: boolean;
10395
+ structuredOutput?: boolean;
10396
+ contextWindowTokens?: number;
10397
+ };
10398
+ reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
10399
+ defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
10400
+ }>;
10401
+ };
10402
+ };
10403
+ export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses];
10404
+ export type RemoveObjectLinkData = {
10405
+ body?: never;
10406
+ path: {
10407
+ objectTypeId: string;
10408
+ objectId: string;
10409
+ linkId: string;
10410
+ };
10411
+ query: {
10412
+ targetTypeId: string;
10413
+ targetId: string;
10414
+ };
10415
+ url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}";
10416
+ };
10417
+ export type RemoveObjectLinkErrors = {
10418
+ /**
10419
+ * Response for status 400
10420
+ */
10421
+ 400: {
10422
+ error: string;
10423
+ };
10424
+ /**
10425
+ * Response for status 403
10426
+ */
10427
+ 403: {
10428
+ error: string;
10429
+ };
10430
+ /**
10431
+ * Response for status 404
10432
+ */
10433
+ 404: {
10434
+ error: string;
10435
+ };
10436
+ };
10437
+ export type RemoveObjectLinkError = RemoveObjectLinkErrors[keyof RemoveObjectLinkErrors];
10438
+ export type RemoveObjectLinkResponses = {
10439
+ /**
10440
+ * Response for status 200
10441
+ */
10442
+ 200: {
10443
+ success: boolean;
10444
+ };
10445
+ };
10446
+ export type RemoveObjectLinkResponse = RemoveObjectLinkResponses[keyof RemoveObjectLinkResponses];
10447
+ export type UpsertObjectLinkData = {
10448
+ body: {
10449
+ targetTypeId: string;
10450
+ targetId: string;
10451
+ properties?: {
10452
+ [key: string]: unknown;
10453
+ };
10454
+ };
10455
+ path: {
10456
+ objectTypeId: string;
10457
+ objectId: string;
10458
+ linkId: string;
10459
+ };
10460
+ query?: never;
10461
+ url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}";
10462
+ };
10463
+ export type UpsertObjectLinkErrors = {
10464
+ /**
10465
+ * Response for status 400
10466
+ */
10467
+ 400: {
10468
+ error: string;
10469
+ };
10470
+ /**
10471
+ * Response for status 403
10472
+ */
10473
+ 403: {
10474
+ error: string;
10475
+ };
10476
+ /**
10477
+ * Response for status 404
10478
+ */
10479
+ 404: {
10480
+ error: string;
10481
+ };
10482
+ };
10483
+ export type UpsertObjectLinkError = UpsertObjectLinkErrors[keyof UpsertObjectLinkErrors];
10484
+ export type UpsertObjectLinkResponses = {
10485
+ /**
10486
+ * Response for status 200
10487
+ */
10488
+ 200: {
10489
+ success: boolean;
10490
+ };
10491
+ };
10492
+ export type UpsertObjectLinkResponse = UpsertObjectLinkResponses[keyof UpsertObjectLinkResponses];
10493
+ export type AppendTelemetryData = {
10494
+ body: {
10495
+ value?: unknown;
10496
+ unit?: string;
10497
+ at?: string;
10498
+ };
10499
+ path: {
10500
+ objectTypeId: string;
10501
+ objectId: string;
10502
+ propertyId: string;
10503
+ };
10504
+ query?: never;
10505
+ url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}";
10506
+ };
10507
+ export type AppendTelemetryErrors = {
10508
+ /**
10509
+ * Response for status 400
10510
+ */
10511
+ 400: {
10512
+ error: string;
10513
+ };
10514
+ /**
10515
+ * Response for status 403
10516
+ */
10517
+ 403: {
10518
+ error: string;
10519
+ };
10520
+ /**
10521
+ * Response for status 404
10522
+ */
10523
+ 404: {
10524
+ error: string;
10525
+ };
10526
+ };
10527
+ export type AppendTelemetryError = AppendTelemetryErrors[keyof AppendTelemetryErrors];
10528
+ export type AppendTelemetryResponses = {
10529
+ /**
10530
+ * Response for status 200
10531
+ */
10532
+ 200: {
10533
+ success: boolean;
10534
+ };
10535
+ };
10536
+ export type AppendTelemetryResponse = AppendTelemetryResponses[keyof AppendTelemetryResponses];
10537
+ export type GetBulkTelemetryHistoryData = {
10538
+ body: {
10539
+ series: Array<{
10540
+ objectTypeId: string;
10541
+ objectId: string;
10542
+ propertyId: string;
10543
+ }>;
10544
+ from?: string;
10545
+ to?: string;
10546
+ limitPerSeries?: number;
10547
+ order?: "asc" | "desc";
10548
+ };
10549
+ path?: never;
10550
+ query?: never;
10551
+ url: "/api/telemetry/history";
10552
+ };
10553
+ export type GetBulkTelemetryHistoryErrors = {
10554
+ /**
10555
+ * Response for status 400
10556
+ */
10557
+ 400: {
10558
+ error: string;
10559
+ };
10560
+ /**
10561
+ * Response for status 403
10562
+ */
10563
+ 403: {
10564
+ error: string;
10565
+ };
10566
+ };
10567
+ export type GetBulkTelemetryHistoryError = GetBulkTelemetryHistoryErrors[keyof GetBulkTelemetryHistoryErrors];
10568
+ export type GetBulkTelemetryHistoryResponses = {
10569
+ /**
10570
+ * Response for status 200
10571
+ */
10572
+ 200: {
10573
+ series: Array<{
10574
+ objectTypeId: string;
10575
+ objectId: string;
10576
+ propertyId: string;
10577
+ points: Array<{
10578
+ projectId: string;
10579
+ objectTypeId: string;
10580
+ objectId: string;
10581
+ propertyId: string;
10582
+ value?: unknown;
10583
+ unit?: string;
10584
+ at: string;
10585
+ }>;
10586
+ }>;
10587
+ };
10588
+ };
10589
+ export type GetBulkTelemetryHistoryResponse = GetBulkTelemetryHistoryResponses[keyof GetBulkTelemetryHistoryResponses];
10590
+ export type GetTelemetryHistoryData = {
10591
+ body?: never;
10592
+ path: {
10593
+ objectTypeId: string;
10594
+ objectId: string;
10595
+ propertyId: string;
10596
+ };
10597
+ query?: {
10598
+ from?: string;
10599
+ to?: string;
10600
+ limit?: string;
10601
+ order?: "asc" | "desc";
10602
+ };
10603
+ url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/history";
10604
+ };
10605
+ export type GetTelemetryHistoryErrors = {
10606
+ /**
10607
+ * Response for status 400
10608
+ */
10609
+ 400: {
10610
+ error: string;
10611
+ };
10612
+ /**
10613
+ * Response for status 404
10614
+ */
10615
+ 404: {
10616
+ error: string;
10617
+ };
10618
+ };
10619
+ export type GetTelemetryHistoryError = GetTelemetryHistoryErrors[keyof GetTelemetryHistoryErrors];
10620
+ export type GetTelemetryHistoryResponses = {
10621
+ /**
10622
+ * Response for status 200
10623
+ */
10624
+ 200: Array<{
10625
+ projectId: string;
10626
+ objectTypeId: string;
10627
+ objectId: string;
10628
+ propertyId: string;
10629
+ value?: unknown;
10630
+ unit?: string;
10631
+ at: string;
10632
+ }>;
10633
+ };
10634
+ export type GetTelemetryHistoryResponse = GetTelemetryHistoryResponses[keyof GetTelemetryHistoryResponses];
10635
+ export type GetLatestTelemetryData = {
10636
+ body?: never;
10637
+ path: {
10638
+ objectTypeId: string;
10639
+ objectId: string;
10640
+ propertyId: string;
10641
+ };
10642
+ query?: never;
10643
+ url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/latest";
10644
+ };
10645
+ export type GetLatestTelemetryErrors = {
10646
+ /**
10647
+ * Response for status 400
10648
+ */
10649
+ 400: {
10650
+ error: string;
10651
+ };
10652
+ /**
10653
+ * Response for status 404
10654
+ */
10655
+ 404: {
10656
+ error: string;
10657
+ };
10658
+ };
10659
+ export type GetLatestTelemetryError = GetLatestTelemetryErrors[keyof GetLatestTelemetryErrors];
10660
+ export type GetLatestTelemetryResponses = {
10661
+ /**
10662
+ * Response for status 200
10663
+ */
10664
+ 200: {
10665
+ projectId: string;
10666
+ objectTypeId: string;
10667
+ objectId: string;
10668
+ propertyId: string;
10669
+ value?: unknown;
10670
+ unit?: string;
10671
+ at: string;
10672
+ };
10673
+ };
10674
+ export type GetLatestTelemetryResponse = GetLatestTelemetryResponses[keyof GetLatestTelemetryResponses];
10675
+ export type ListEventsData = {
10676
+ body?: never;
10677
+ path?: never;
10678
+ query?: {
10679
+ topic?: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules";
10680
+ type?: "object.created" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved";
10681
+ afterCursor?: string;
10682
+ limit?: string;
10683
+ };
10684
+ url: "/api/events";
10685
+ };
10686
+ export type ListEventsErrors = {
10687
+ /**
10688
+ * Response for status 400
10689
+ */
10690
+ 400: {
10691
+ error: string;
10692
+ };
10693
+ /**
10694
+ * Response for status 403
10695
+ */
10696
+ 403: {
10697
+ error: string;
10698
+ };
10699
+ };
10700
+ export type ListEventsError = ListEventsErrors[keyof ListEventsErrors];
10701
+ export type ListEventsResponses = {
10702
+ /**
10703
+ * Response for status 200
10704
+ */
10705
+ 200: {
10706
+ count: number;
10707
+ events: Array<{
10708
+ id: string;
10709
+ cursor: string;
10710
+ schemaVersion: 1;
10711
+ projectId: string;
10712
+ occurredAt: string;
10713
+ partitionKey: string;
9961
10714
  origin: {
9962
10715
  kind: "action";
9963
10716
  actionId: string;
@@ -10541,229 +11294,683 @@ export type ListEventsResponses = {
10541
11294
  indexingId: string;
10542
11295
  };
10543
11296
  };
10544
- commitId: string;
10545
- commitOrdinal: number;
10546
- type: "link.updated";
10547
- topic: "links";
10548
- payload: {
10549
- sourceTypeId: string;
10550
- sourceId: string;
10551
- linkId: string;
10552
- targetTypeId: string;
10553
- targetId: string;
10554
- properties?: {
10555
- [key: string]: string | number | boolean | Array<unknown> | {
10556
- [key: string]: unknown;
10557
- } | null;
10558
- };
10559
- propertyChanges: {
10560
- [key: string]: {
10561
- operation: "created";
10562
- /**
10563
- * Any JSON-compatible value.
10564
- */
10565
- after: string | number | boolean | Array<unknown> | {
10566
- [key: string]: unknown;
10567
- } | null;
10568
- } | {
10569
- operation: "updated";
10570
- /**
10571
- * Any JSON-compatible value.
10572
- */
10573
- before: string | number | boolean | Array<unknown> | {
10574
- [key: string]: unknown;
10575
- } | null;
10576
- /**
10577
- * Any JSON-compatible value.
10578
- */
10579
- after: string | number | boolean | Array<unknown> | {
10580
- [key: string]: unknown;
10581
- } | null;
10582
- } | {
10583
- operation: "cleared";
10584
- /**
10585
- * Any JSON-compatible value.
10586
- */
10587
- before: string | number | boolean | Array<unknown> | {
10588
- [key: string]: unknown;
10589
- } | null;
10590
- after: null;
10591
- };
11297
+ commitId: string;
11298
+ commitOrdinal: number;
11299
+ type: "link.updated";
11300
+ topic: "links";
11301
+ payload: {
11302
+ sourceTypeId: string;
11303
+ sourceId: string;
11304
+ linkId: string;
11305
+ targetTypeId: string;
11306
+ targetId: string;
11307
+ properties?: {
11308
+ [key: string]: string | number | boolean | Array<unknown> | {
11309
+ [key: string]: unknown;
11310
+ } | null;
11311
+ };
11312
+ propertyChanges: {
11313
+ [key: string]: {
11314
+ operation: "created";
11315
+ /**
11316
+ * Any JSON-compatible value.
11317
+ */
11318
+ after: string | number | boolean | Array<unknown> | {
11319
+ [key: string]: unknown;
11320
+ } | null;
11321
+ } | {
11322
+ operation: "updated";
11323
+ /**
11324
+ * Any JSON-compatible value.
11325
+ */
11326
+ before: string | number | boolean | Array<unknown> | {
11327
+ [key: string]: unknown;
11328
+ } | null;
11329
+ /**
11330
+ * Any JSON-compatible value.
11331
+ */
11332
+ after: string | number | boolean | Array<unknown> | {
11333
+ [key: string]: unknown;
11334
+ } | null;
11335
+ } | {
11336
+ operation: "cleared";
11337
+ /**
11338
+ * Any JSON-compatible value.
11339
+ */
11340
+ before: string | number | boolean | Array<unknown> | {
11341
+ [key: string]: unknown;
11342
+ } | null;
11343
+ after: null;
11344
+ };
11345
+ };
11346
+ };
11347
+ } | {
11348
+ id: string;
11349
+ cursor: string;
11350
+ schemaVersion: 1;
11351
+ projectId: string;
11352
+ occurredAt: string;
11353
+ partitionKey: string;
11354
+ origin: {
11355
+ kind: "action";
11356
+ actionId: string;
11357
+ runId: string;
11358
+ } | {
11359
+ kind: "runtime";
11360
+ requestId: string;
11361
+ } | {
11362
+ kind: "projection";
11363
+ projectionId: string;
11364
+ projectionRunId: string;
11365
+ datasetId: string;
11366
+ datasetVersionId: string;
11367
+ } | {
11368
+ kind: "telemetry";
11369
+ source: {
11370
+ kind: "runtime";
11371
+ requestId: string;
11372
+ } | {
11373
+ kind: "projection";
11374
+ projectionId: string;
11375
+ projectionRunId: string;
11376
+ datasetId: string;
11377
+ datasetVersionId: string;
11378
+ batchOrdinal: number;
11379
+ };
11380
+ };
11381
+ /**
11382
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
11383
+ */
11384
+ requestedBy?: {
11385
+ type: "user" | "serviceAccount";
11386
+ id: string;
11387
+ };
11388
+ executor: {
11389
+ type: "request";
11390
+ requestId: string;
11391
+ } | {
11392
+ type: "primitive";
11393
+ kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
11394
+ id: string;
11395
+ runId: string;
11396
+ } | {
11397
+ type: "agent";
11398
+ runId: string;
11399
+ } | {
11400
+ type: "kernel";
11401
+ operation: {
11402
+ type: "ontology.recover";
11403
+ recoveryId: string;
11404
+ } | {
11405
+ type: "ontology.indexVectors";
11406
+ indexingId: string;
11407
+ };
11408
+ };
11409
+ commitId: string;
11410
+ commitOrdinal: number;
11411
+ type: "link.deleted";
11412
+ topic: "links";
11413
+ payload: {
11414
+ sourceTypeId: string;
11415
+ sourceId: string;
11416
+ linkId: string;
11417
+ targetTypeId: string;
11418
+ targetId: string;
11419
+ propertyChanges: {
11420
+ [key: string]: {
11421
+ operation: "created";
11422
+ /**
11423
+ * Any JSON-compatible value.
11424
+ */
11425
+ after: string | number | boolean | Array<unknown> | {
11426
+ [key: string]: unknown;
11427
+ } | null;
11428
+ } | {
11429
+ operation: "updated";
11430
+ /**
11431
+ * Any JSON-compatible value.
11432
+ */
11433
+ before: string | number | boolean | Array<unknown> | {
11434
+ [key: string]: unknown;
11435
+ } | null;
11436
+ /**
11437
+ * Any JSON-compatible value.
11438
+ */
11439
+ after: string | number | boolean | Array<unknown> | {
11440
+ [key: string]: unknown;
11441
+ } | null;
11442
+ } | {
11443
+ operation: "cleared";
11444
+ /**
11445
+ * Any JSON-compatible value.
11446
+ */
11447
+ before: string | number | boolean | Array<unknown> | {
11448
+ [key: string]: unknown;
11449
+ } | null;
11450
+ after: null;
11451
+ };
11452
+ };
11453
+ };
11454
+ } | {
11455
+ id: string;
11456
+ cursor: string;
11457
+ schemaVersion: 1;
11458
+ projectId: string;
11459
+ occurredAt: string;
11460
+ partitionKey: string;
11461
+ correlationId?: string;
11462
+ causationId?: string;
11463
+ idempotencyKey?: string;
11464
+ origin?: {
11465
+ kind: "action";
11466
+ actionId: string;
11467
+ runId: string;
11468
+ } | {
11469
+ kind: "runtime";
11470
+ requestId: string;
11471
+ } | {
11472
+ kind: "projection";
11473
+ projectionId: string;
11474
+ projectionRunId: string;
11475
+ datasetId: string;
11476
+ datasetVersionId: string;
11477
+ } | {
11478
+ kind: "telemetry";
11479
+ source: {
11480
+ kind: "runtime";
11481
+ requestId: string;
11482
+ } | {
11483
+ kind: "projection";
11484
+ projectionId: string;
11485
+ projectionRunId: string;
11486
+ datasetId: string;
11487
+ datasetVersionId: string;
11488
+ batchOrdinal: number;
11489
+ };
11490
+ };
11491
+ metadata?: {
11492
+ [key: string]: string | number | boolean | Array<unknown> | {
11493
+ [key: string]: unknown;
11494
+ } | null;
11495
+ };
11496
+ type: "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved";
11497
+ topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules";
11498
+ payload: {
11499
+ [key: string]: unknown;
11500
+ };
11501
+ }>;
11502
+ };
11503
+ };
11504
+ export type ListEventsResponse = ListEventsResponses[keyof ListEventsResponses];
11505
+ export type ListLogsData = {
11506
+ body?: never;
11507
+ path?: never;
11508
+ query?: {
11509
+ kind?: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
11510
+ runId?: string;
11511
+ level?: "debug" | "info" | "warn" | "error";
11512
+ direction?: "forward" | "backward";
11513
+ afterCursor?: string;
11514
+ beforeCursor?: string;
11515
+ limit?: number;
11516
+ };
11517
+ url: "/api/logs";
11518
+ };
11519
+ export type ListLogsErrors = {
11520
+ /**
11521
+ * Response for status 400
11522
+ */
11523
+ 400: {
11524
+ error: string;
11525
+ };
11526
+ /**
11527
+ * Response for status 403
11528
+ */
11529
+ 403: {
11530
+ error: string;
11531
+ };
11532
+ };
11533
+ export type ListLogsError = ListLogsErrors[keyof ListLogsErrors];
11534
+ export type ListLogsResponses = {
11535
+ /**
11536
+ * Response for status 200
11537
+ */
11538
+ 200: {
11539
+ count: number;
11540
+ lines: Array<{
11541
+ level: "debug" | "info" | "warn" | "error";
11542
+ message: string;
11543
+ fields?: {
11544
+ [key: string]: unknown;
11545
+ };
11546
+ at: string;
11547
+ context: {
11548
+ run: {
11549
+ kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
11550
+ id: string;
10592
11551
  };
11552
+ stepId?: string;
11553
+ phase?: string;
11554
+ attempt?: number;
11555
+ };
11556
+ cursor: string;
11557
+ }>;
11558
+ cursor?: string;
11559
+ hasMore: boolean;
11560
+ };
11561
+ };
11562
+ export type ListLogsResponse = ListLogsResponses[keyof ListLogsResponses];
11563
+ export type GetActivityCaptureConfigData = {
11564
+ body?: never;
11565
+ path?: never;
11566
+ query?: never;
11567
+ url: "/api/activity/capture-config";
11568
+ };
11569
+ export type GetActivityCaptureConfigErrors = {
11570
+ /**
11571
+ * Response for status 400
11572
+ */
11573
+ 400: {
11574
+ error: string;
11575
+ };
11576
+ /**
11577
+ * Response for status 403
11578
+ */
11579
+ 403: {
11580
+ error: string;
11581
+ };
11582
+ };
11583
+ export type GetActivityCaptureConfigError = GetActivityCaptureConfigErrors[keyof GetActivityCaptureConfigErrors];
11584
+ export type GetActivityCaptureConfigResponses = {
11585
+ /**
11586
+ * Response for status 200
11587
+ */
11588
+ 200: {
11589
+ enabled: boolean;
11590
+ idleTimeoutMs: number;
11591
+ };
11592
+ };
11593
+ export type GetActivityCaptureConfigResponse = GetActivityCaptureConfigResponses[keyof GetActivityCaptureConfigResponses];
11594
+ export type CaptureActivityData = {
11595
+ body: {
11596
+ events: Array<{
11597
+ id: string;
11598
+ type: "page.view" | "visit.activity";
11599
+ route: string;
11600
+ attribution?: {
11601
+ source?: string;
11602
+ medium?: string;
11603
+ campaign?: string;
11604
+ referrer?: string;
10593
11605
  };
10594
11606
  } | {
10595
11607
  id: string;
10596
- cursor: string;
10597
- schemaVersion: 1;
10598
- projectId: string;
10599
- occurredAt: string;
10600
- partitionKey: string;
10601
- origin: {
10602
- kind: "action";
10603
- actionId: string;
10604
- runId: string;
10605
- } | {
10606
- kind: "runtime";
10607
- requestId: string;
10608
- } | {
10609
- kind: "projection";
10610
- projectionId: string;
10611
- projectionRunId: string;
10612
- datasetId: string;
10613
- datasetVersionId: string;
11608
+ type: "ui.interaction";
11609
+ name: string;
11610
+ route: string;
11611
+ }>;
11612
+ };
11613
+ path?: never;
11614
+ query?: never;
11615
+ url: "/api/activity/events";
11616
+ };
11617
+ export type CaptureActivityErrors = {
11618
+ /**
11619
+ * Response for status 400
11620
+ */
11621
+ 400: {
11622
+ error: string;
11623
+ };
11624
+ /**
11625
+ * Response for status 403
11626
+ */
11627
+ 403: {
11628
+ error: string;
11629
+ };
11630
+ /**
11631
+ * Response for status 429
11632
+ */
11633
+ 429: {
11634
+ status: "accepted" | "disabled" | "throttled";
11635
+ accepted: number;
11636
+ };
11637
+ };
11638
+ export type CaptureActivityError = CaptureActivityErrors[keyof CaptureActivityErrors];
11639
+ export type CaptureActivityResponses = {
11640
+ /**
11641
+ * Response for status 200
11642
+ */
11643
+ 200: {
11644
+ status: "accepted" | "disabled" | "throttled";
11645
+ accepted: number;
11646
+ };
11647
+ };
11648
+ export type CaptureActivityResponse = CaptureActivityResponses[keyof CaptureActivityResponses];
11649
+ export type ListActivityVisitsData = {
11650
+ body?: never;
11651
+ path?: never;
11652
+ query: {
11653
+ from: string;
11654
+ to: string;
11655
+ userId?: string;
11656
+ limit?: number;
11657
+ beforeAt?: string;
11658
+ beforeId?: string;
11659
+ };
11660
+ url: "/api/activity/visits";
11661
+ };
11662
+ export type ListActivityVisitsErrors = {
11663
+ /**
11664
+ * Response for status 400
11665
+ */
11666
+ 400: {
11667
+ error: string;
11668
+ };
11669
+ /**
11670
+ * Response for status 403
11671
+ */
11672
+ 403: {
11673
+ error: string;
11674
+ };
11675
+ };
11676
+ export type ListActivityVisitsError = ListActivityVisitsErrors[keyof ListActivityVisitsErrors];
11677
+ export type ListActivityVisitsResponses = {
11678
+ /**
11679
+ * Response for status 200
11680
+ */
11681
+ 200: {
11682
+ visits: Array<{
11683
+ id: string;
11684
+ actor: {
11685
+ type: "user";
11686
+ userId: string;
11687
+ } | {
11688
+ type: "share";
11689
+ grantId: string;
11690
+ definitionId?: string;
11691
+ };
11692
+ attribution: {
11693
+ source?: string;
11694
+ medium?: string;
11695
+ campaign?: string;
11696
+ referrer?: string;
11697
+ } | null;
11698
+ startedAt: string;
11699
+ lastSeenAt: string;
11700
+ pageViews: number;
11701
+ interactions: number;
11702
+ }>;
11703
+ hasMore: boolean;
11704
+ };
11705
+ };
11706
+ export type ListActivityVisitsResponse = ListActivityVisitsResponses[keyof ListActivityVisitsResponses];
11707
+ export type ListActivityUsersData = {
11708
+ body?: never;
11709
+ path?: never;
11710
+ query: {
11711
+ from: string;
11712
+ to: string;
11713
+ userId?: string;
11714
+ limit?: number;
11715
+ beforeAt?: string;
11716
+ beforeId?: string;
11717
+ };
11718
+ url: "/api/activity/users";
11719
+ };
11720
+ export type ListActivityUsersErrors = {
11721
+ /**
11722
+ * Response for status 400
11723
+ */
11724
+ 400: {
11725
+ error: string;
11726
+ };
11727
+ /**
11728
+ * Response for status 403
11729
+ */
11730
+ 403: {
11731
+ error: string;
11732
+ };
11733
+ };
11734
+ export type ListActivityUsersError = ListActivityUsersErrors[keyof ListActivityUsersErrors];
11735
+ export type ListActivityUsersResponses = {
11736
+ /**
11737
+ * Response for status 200
11738
+ */
11739
+ 200: {
11740
+ users: Array<{
11741
+ userId: string;
11742
+ displayName?: string;
11743
+ lastSeenAt: string;
11744
+ visits: number;
11745
+ pageViews: number;
11746
+ }>;
11747
+ hasMore: boolean;
11748
+ };
11749
+ };
11750
+ export type ListActivityUsersResponse = ListActivityUsersResponses[keyof ListActivityUsersResponses];
11751
+ export type GetActivitySummaryData = {
11752
+ body?: never;
11753
+ path?: never;
11754
+ query: {
11755
+ from: string;
11756
+ to: string;
11757
+ userId?: string;
11758
+ };
11759
+ url: "/api/activity/summary";
11760
+ };
11761
+ export type GetActivitySummaryErrors = {
11762
+ /**
11763
+ * Response for status 400
11764
+ */
11765
+ 400: {
11766
+ error: string;
11767
+ };
11768
+ /**
11769
+ * Response for status 403
11770
+ */
11771
+ 403: {
11772
+ error: string;
11773
+ };
11774
+ };
11775
+ export type GetActivitySummaryError = GetActivitySummaryErrors[keyof GetActivitySummaryErrors];
11776
+ export type GetActivitySummaryResponses = {
11777
+ /**
11778
+ * Response for status 200
11779
+ */
11780
+ 200: {
11781
+ users: number;
11782
+ visits: number;
11783
+ sharedVisits: number;
11784
+ pageViews: number;
11785
+ };
11786
+ };
11787
+ export type GetActivitySummaryResponse = GetActivitySummaryResponses[keyof GetActivitySummaryResponses];
11788
+ export type GetActivityCalendarData = {
11789
+ body?: never;
11790
+ path?: never;
11791
+ query: {
11792
+ userId: string;
11793
+ year: number;
11794
+ };
11795
+ url: "/api/activity/calendar";
11796
+ };
11797
+ export type GetActivityCalendarErrors = {
11798
+ /**
11799
+ * Response for status 400
11800
+ */
11801
+ 400: {
11802
+ error: string;
11803
+ };
11804
+ /**
11805
+ * Response for status 403
11806
+ */
11807
+ 403: {
11808
+ error: string;
11809
+ };
11810
+ };
11811
+ export type GetActivityCalendarError = GetActivityCalendarErrors[keyof GetActivityCalendarErrors];
11812
+ export type GetActivityCalendarResponses = {
11813
+ /**
11814
+ * Response for status 200
11815
+ */
11816
+ 200: {
11817
+ userId: string;
11818
+ year: number;
11819
+ days: Array<{
11820
+ day: string;
11821
+ visits: number;
11822
+ pageViews: number;
11823
+ }>;
11824
+ };
11825
+ };
11826
+ export type GetActivityCalendarResponse = GetActivityCalendarResponses[keyof GetActivityCalendarResponses];
11827
+ export type GetActivityVisitTimelineData = {
11828
+ body?: never;
11829
+ path: {
11830
+ visitId: string;
11831
+ };
11832
+ query?: never;
11833
+ url: "/api/activity/visits/{visitId}/timeline";
11834
+ };
11835
+ export type GetActivityVisitTimelineErrors = {
11836
+ /**
11837
+ * Response for status 400
11838
+ */
11839
+ 400: {
11840
+ error: string;
11841
+ };
11842
+ /**
11843
+ * Response for status 403
11844
+ */
11845
+ 403: {
11846
+ error: string;
11847
+ };
11848
+ /**
11849
+ * Response for status 404
11850
+ */
11851
+ 404: {
11852
+ error: string;
11853
+ };
11854
+ };
11855
+ export type GetActivityVisitTimelineError = GetActivityVisitTimelineErrors[keyof GetActivityVisitTimelineErrors];
11856
+ export type GetActivityVisitTimelineResponses = {
11857
+ /**
11858
+ * Response for status 200
11859
+ */
11860
+ 200: {
11861
+ visit: {
11862
+ id: string;
11863
+ actor: {
11864
+ type: "user";
11865
+ userId: string;
10614
11866
  } | {
10615
- kind: "telemetry";
10616
- source: {
10617
- kind: "runtime";
10618
- requestId: string;
10619
- } | {
10620
- kind: "projection";
10621
- projectionId: string;
10622
- projectionRunId: string;
10623
- datasetId: string;
10624
- datasetVersionId: string;
10625
- batchOrdinal: number;
10626
- };
11867
+ type: "share";
11868
+ grantId: string;
11869
+ definitionId?: string;
11870
+ };
11871
+ attribution: {
11872
+ source?: string;
11873
+ medium?: string;
11874
+ campaign?: string;
11875
+ referrer?: string;
11876
+ } | null;
11877
+ startedAt: string;
11878
+ lastSeenAt: string;
11879
+ pageViews: number;
11880
+ interactions: number;
11881
+ };
11882
+ connection?: {
11883
+ type: "session";
11884
+ device: {
11885
+ browser?: string;
11886
+ os?: string;
10627
11887
  };
11888
+ clientName?: string;
11889
+ status: "active" | "expired" | "revoked";
11890
+ createdAt: string;
11891
+ lastSeenAt?: string;
11892
+ revokedAt?: string;
11893
+ } | {
11894
+ type: "share";
11895
+ grantId: string;
11896
+ definitionId?: string;
11897
+ status: "active" | "expired" | "revoked";
11898
+ createdAt: string;
11899
+ revokedAt?: string;
11900
+ };
11901
+ entries: Array<{
11902
+ kind: "page";
11903
+ at: string;
11904
+ sequence: number;
11905
+ route: string;
11906
+ } | {
11907
+ kind: "interaction";
11908
+ at: string;
11909
+ sequence: number;
11910
+ name: string;
11911
+ route: string;
11912
+ } | {
11913
+ kind: "action";
11914
+ at: string;
11915
+ executionId: string;
11916
+ actionId: string;
11917
+ runId: string;
11918
+ status: "succeeded" | "failed" | "incomplete";
10628
11919
  /**
10629
- * Principal on whose behalf the write ran; absent for automatic or anonymous work.
11920
+ * Whether the viewer may read the run itself.
10630
11921
  */
10631
- requestedBy?: {
10632
- type: "user" | "serviceAccount";
10633
- id: string;
10634
- };
10635
- executor: {
10636
- type: "request";
10637
- requestId: string;
10638
- } | {
10639
- type: "primitive";
10640
- kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
10641
- id: string;
10642
- runId: string;
10643
- } | {
10644
- type: "agent";
10645
- runId: string;
10646
- } | {
10647
- type: "kernel";
10648
- operation: {
10649
- type: "ontology.recover";
10650
- recoveryId: string;
10651
- } | {
10652
- type: "ontology.indexVectors";
10653
- indexingId: string;
10654
- };
10655
- };
10656
- commitId: string;
10657
- commitOrdinal: number;
10658
- type: "link.deleted";
10659
- topic: "links";
10660
- payload: {
10661
- sourceTypeId: string;
10662
- sourceId: string;
10663
- linkId: string;
10664
- targetTypeId: string;
10665
- targetId: string;
10666
- propertyChanges: {
10667
- [key: string]: {
10668
- operation: "created";
10669
- /**
10670
- * Any JSON-compatible value.
10671
- */
10672
- after: string | number | boolean | Array<unknown> | {
10673
- [key: string]: unknown;
10674
- } | null;
10675
- } | {
10676
- operation: "updated";
10677
- /**
10678
- * Any JSON-compatible value.
10679
- */
10680
- before: string | number | boolean | Array<unknown> | {
10681
- [key: string]: unknown;
10682
- } | null;
10683
- /**
10684
- * Any JSON-compatible value.
10685
- */
10686
- after: string | number | boolean | Array<unknown> | {
10687
- [key: string]: unknown;
10688
- } | null;
10689
- } | {
10690
- operation: "cleared";
10691
- /**
10692
- * Any JSON-compatible value.
10693
- */
10694
- before: string | number | boolean | Array<unknown> | {
10695
- [key: string]: unknown;
10696
- } | null;
10697
- after: null;
10698
- };
10699
- };
11922
+ runVisible: boolean;
11923
+ object?: {
11924
+ objectTypeId: string;
11925
+ primaryId: string;
10700
11926
  };
10701
11927
  } | {
10702
- id: string;
10703
- cursor: string;
10704
- schemaVersion: 1;
10705
- projectId: string;
10706
- occurredAt: string;
10707
- partitionKey: string;
10708
- correlationId?: string;
10709
- causationId?: string;
10710
- idempotencyKey?: string;
10711
- origin?: {
10712
- kind: "action";
10713
- actionId: string;
10714
- runId: string;
10715
- } | {
10716
- kind: "runtime";
10717
- requestId: string;
10718
- } | {
10719
- kind: "projection";
10720
- projectionId: string;
10721
- projectionRunId: string;
10722
- datasetId: string;
10723
- datasetVersionId: string;
10724
- } | {
10725
- kind: "telemetry";
10726
- source: {
10727
- kind: "runtime";
10728
- requestId: string;
10729
- } | {
10730
- kind: "projection";
10731
- projectionId: string;
10732
- projectionRunId: string;
10733
- datasetId: string;
10734
- datasetVersionId: string;
10735
- batchOrdinal: number;
10736
- };
10737
- };
10738
- metadata?: {
10739
- [key: string]: string | number | boolean | Array<unknown> | {
10740
- [key: string]: unknown;
10741
- } | null;
10742
- };
10743
- type: "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved";
10744
- topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules";
10745
- payload: {
10746
- [key: string]: unknown;
11928
+ kind: "workflow";
11929
+ at: string;
11930
+ executionId: string;
11931
+ workflowId: string;
11932
+ runId: string;
11933
+ status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "incomplete";
11934
+ /**
11935
+ * Whether the viewer may read the run itself.
11936
+ */
11937
+ runVisible: boolean;
11938
+ } | {
11939
+ kind: "agent";
11940
+ at: string;
11941
+ executionId: string;
11942
+ runId: string;
11943
+ threadId: string;
11944
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
11945
+ messages: number;
11946
+ cost?: {
11947
+ amounts: Array<{
11948
+ currency: string;
11949
+ amountNanos: string;
11950
+ }>;
11951
+ ratedCallCount: number;
11952
+ unpriceableCallCount: number;
11953
+ unvaluedCallCount: number;
10747
11954
  };
10748
11955
  }>;
11956
+ truncated: boolean;
10749
11957
  };
10750
11958
  };
10751
- export type ListEventsResponse = ListEventsResponses[keyof ListEventsResponses];
10752
- export type ListLogsData = {
11959
+ export type GetActivityVisitTimelineResponse = GetActivityVisitTimelineResponses[keyof GetActivityVisitTimelineResponses];
11960
+ export type ListActivityConnectionsData = {
10753
11961
  body?: never;
10754
11962
  path?: never;
10755
- query?: {
10756
- kind?: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
10757
- runId?: string;
10758
- level?: "debug" | "info" | "warn" | "error";
10759
- direction?: "forward" | "backward";
10760
- afterCursor?: string;
10761
- beforeCursor?: string;
11963
+ query: {
11964
+ userId: string;
10762
11965
  limit?: number;
11966
+ /**
11967
+ * The previous page's nextCursor.
11968
+ */
11969
+ cursor?: string;
10763
11970
  };
10764
- url: "/api/logs";
11971
+ url: "/api/activity/connections";
10765
11972
  };
10766
- export type ListLogsErrors = {
11973
+ export type ListActivityConnectionsErrors = {
10767
11974
  /**
10768
11975
  * Response for status 400
10769
11976
  */
@@ -10777,36 +11984,50 @@ export type ListLogsErrors = {
10777
11984
  error: string;
10778
11985
  };
10779
11986
  };
10780
- export type ListLogsError = ListLogsErrors[keyof ListLogsErrors];
10781
- export type ListLogsResponses = {
11987
+ export type ListActivityConnectionsError = ListActivityConnectionsErrors[keyof ListActivityConnectionsErrors];
11988
+ export type ListActivityConnectionsResponses = {
10782
11989
  /**
10783
11990
  * Response for status 200
10784
11991
  */
10785
11992
  200: {
10786
- count: number;
10787
- lines: Array<{
10788
- level: "debug" | "info" | "warn" | "error";
10789
- message: string;
10790
- fields?: {
10791
- [key: string]: unknown;
11993
+ connections: Array<{
11994
+ type: "session";
11995
+ device: {
11996
+ browser?: string;
11997
+ os?: string;
10792
11998
  };
10793
- at: string;
10794
- context: {
10795
- run: {
10796
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
10797
- id: string;
11999
+ clientName?: string;
12000
+ status: "active" | "expired" | "revoked";
12001
+ createdAt: string;
12002
+ lastSeenAt?: string;
12003
+ revokedAt?: string;
12004
+ visits: number;
12005
+ latestVisits: Array<{
12006
+ id: string;
12007
+ actor: {
12008
+ type: "user";
12009
+ userId: string;
12010
+ } | {
12011
+ type: "share";
12012
+ grantId: string;
12013
+ definitionId?: string;
10798
12014
  };
10799
- stepId?: string;
10800
- phase?: string;
10801
- attempt?: number;
10802
- };
10803
- cursor: string;
12015
+ attribution: {
12016
+ source?: string;
12017
+ medium?: string;
12018
+ campaign?: string;
12019
+ referrer?: string;
12020
+ } | null;
12021
+ startedAt: string;
12022
+ lastSeenAt: string;
12023
+ pageViews: number;
12024
+ interactions: number;
12025
+ }>;
10804
12026
  }>;
10805
- cursor?: string;
10806
- hasMore: boolean;
12027
+ nextCursor?: string;
10807
12028
  };
10808
12029
  };
10809
- export type ListLogsResponse = ListLogsResponses[keyof ListLogsResponses];
12030
+ export type ListActivityConnectionsResponse = ListActivityConnectionsResponses[keyof ListActivityConnectionsResponses];
10810
12031
  export type ListProjectionsData = {
10811
12032
  body?: never;
10812
12033
  path?: never;