@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
@@ -10703,17 +10703,9 @@ export type ListAgentThreadMessagesResponses = {
10703
10703
  }
10704
10704
  >
10705
10705
  annotations: Array<{
10706
- code:
10707
- | "output_file_limit_exceeded"
10708
- | "output_file_too_large"
10709
- | "output_budget_exhausted"
10710
- | "output_collection_failed"
10711
- | "output_file_changed"
10712
- | "output_storage_failed"
10713
- | "step_limit_reached"
10706
+ code: "step_limit_reached"
10714
10707
  severity: "warning" | "error"
10715
- scope: "output" | "run"
10716
- path?: string
10708
+ scope: "run"
10717
10709
  message: string
10718
10710
  }>
10719
10711
  compaction?: {
@@ -10943,17 +10935,9 @@ export type PostAgentThreadMessageResponses = {
10943
10935
  unvaluedCallCount: number
10944
10936
  }
10945
10937
  diagnostics?: Array<{
10946
- code:
10947
- | "output_file_limit_exceeded"
10948
- | "output_file_too_large"
10949
- | "output_budget_exhausted"
10950
- | "output_collection_failed"
10951
- | "output_file_changed"
10952
- | "output_storage_failed"
10953
- | "step_limit_reached"
10938
+ code: "step_limit_reached"
10954
10939
  severity: "warning" | "error"
10955
- scope: "output" | "run"
10956
- path?: string
10940
+ scope: "run"
10957
10941
  message: string
10958
10942
  }>
10959
10943
  error?: {
@@ -11204,17 +11188,9 @@ export type CancelAgentRunResponses = {
11204
11188
  unvaluedCallCount: number
11205
11189
  }
11206
11190
  diagnostics?: Array<{
11207
- code:
11208
- | "output_file_limit_exceeded"
11209
- | "output_file_too_large"
11210
- | "output_budget_exhausted"
11211
- | "output_collection_failed"
11212
- | "output_file_changed"
11213
- | "output_storage_failed"
11214
- | "step_limit_reached"
11191
+ code: "step_limit_reached"
11215
11192
  severity: "warning" | "error"
11216
- scope: "output" | "run"
11217
- path?: string
11193
+ scope: "run"
11218
11194
  message: string
11219
11195
  }>
11220
11196
  error?: {
@@ -11382,17 +11358,9 @@ export type RetryAgentRunResponses = {
11382
11358
  unvaluedCallCount: number
11383
11359
  }
11384
11360
  diagnostics?: Array<{
11385
- code:
11386
- | "output_file_limit_exceeded"
11387
- | "output_file_too_large"
11388
- | "output_budget_exhausted"
11389
- | "output_collection_failed"
11390
- | "output_file_changed"
11391
- | "output_storage_failed"
11392
- | "step_limit_reached"
11361
+ code: "step_limit_reached"
11393
11362
  severity: "warning" | "error"
11394
- scope: "output" | "run"
11395
- path?: string
11363
+ scope: "run"
11396
11364
  message: string
11397
11365
  }>
11398
11366
  error?: {
@@ -11536,17 +11504,9 @@ export type ListAgentThreadRunsResponses = {
11536
11504
  unvaluedCallCount: number
11537
11505
  }
11538
11506
  diagnostics?: Array<{
11539
- code:
11540
- | "output_file_limit_exceeded"
11541
- | "output_file_too_large"
11542
- | "output_budget_exhausted"
11543
- | "output_collection_failed"
11544
- | "output_file_changed"
11545
- | "output_storage_failed"
11546
- | "step_limit_reached"
11507
+ code: "step_limit_reached"
11547
11508
  severity: "warning" | "error"
11548
- scope: "output" | "run"
11549
- path?: string
11509
+ scope: "run"
11550
11510
  message: string
11551
11511
  }>
11552
11512
  error?: {
@@ -11687,17 +11647,9 @@ export type GetAgentRunResponses = {
11687
11647
  unvaluedCallCount: number
11688
11648
  }
11689
11649
  diagnostics?: Array<{
11690
- code:
11691
- | "output_file_limit_exceeded"
11692
- | "output_file_too_large"
11693
- | "output_budget_exhausted"
11694
- | "output_collection_failed"
11695
- | "output_file_changed"
11696
- | "output_storage_failed"
11697
- | "step_limit_reached"
11650
+ code: "step_limit_reached"
11698
11651
  severity: "warning" | "error"
11699
- scope: "output" | "run"
11700
- path?: string
11652
+ scope: "run"
11701
11653
  message: string
11702
11654
  }>
11703
11655
  error?: {
@@ -11736,933 +11688,1755 @@ export type GetAgentRunResponses = {
11736
11688
 
11737
11689
  export type GetAgentRunResponse = GetAgentRunResponses[keyof GetAgentRunResponses]
11738
11690
 
11739
- export type ListModelsData = {
11691
+ export type ListArtifactsData = {
11740
11692
  body?: never
11741
11693
  path?: never
11742
- query?: never
11743
- url: "/api/models"
11744
- }
11745
-
11746
- export type ListModelsResponses = {
11747
- /**
11748
- * Response for status 200
11749
- */
11750
- 200: {
11751
- language: Array<{
11752
- provider: string
11753
- modelId: string
11754
- isDefault: boolean
11755
- name: string
11756
- description?: string
11757
- publisher: {
11758
- id: string
11759
- name: string
11760
- }
11761
- via?: string
11762
- capabilities: {
11763
- input: Array<"text" | "image" | "audio" | "video" | "pdf">
11764
- output: Array<"text" | "image" | "audio" | "video" | "pdf">
11765
- attachments?: boolean
11766
- reasoning?: boolean
11767
- tools?: boolean
11768
- structuredOutput?: boolean
11769
- contextWindowTokens?: number
11770
- }
11771
- reasoningLevels: Array<
11772
- "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
11773
- >
11774
- defaultReasoning?:
11775
- | "provider-default"
11776
- | "none"
11777
- | "minimal"
11778
- | "low"
11779
- | "medium"
11780
- | "high"
11781
- | "xhigh"
11782
- | "max"
11783
- }>
11784
- }
11785
- }
11786
-
11787
- export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses]
11788
-
11789
- export type RemoveObjectLinkData = {
11790
- body?: never
11791
- path: {
11792
- objectTypeId: string
11793
- objectId: string
11794
- linkId: string
11795
- }
11796
- query: {
11797
- targetTypeId: string
11798
- targetId: string
11694
+ query?: {
11695
+ /**
11696
+ * Only artifacts with a version the Agent published in this thread
11697
+ */
11698
+ thread?: string
11699
+ /**
11700
+ * Only artifacts of this kind
11701
+ */
11702
+ kind?: "document" | "sheet" | "slides" | "file"
11703
+ limit?: string
11704
+ offset?: string
11799
11705
  }
11800
- url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}"
11706
+ url: "/api/artifacts"
11801
11707
  }
11802
11708
 
11803
- export type RemoveObjectLinkErrors = {
11709
+ export type ListArtifactsErrors = {
11804
11710
  /**
11805
11711
  * Response for status 400
11806
11712
  */
11807
11713
  400: {
11808
11714
  error: string
11715
+ /**
11716
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
11717
+ */
11718
+ code?: string
11809
11719
  }
11810
11720
  /**
11811
- * Response for status 403
11812
- */
11813
- 403: {
11814
- error: string
11815
- }
11816
- /**
11817
- * Response for status 404
11721
+ * Response for status 501
11818
11722
  */
11819
- 404: {
11723
+ 501: {
11820
11724
  error: string
11725
+ /**
11726
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
11727
+ */
11728
+ code?: string
11821
11729
  }
11822
11730
  }
11823
11731
 
11824
- export type RemoveObjectLinkError = RemoveObjectLinkErrors[keyof RemoveObjectLinkErrors]
11732
+ export type ListArtifactsError = ListArtifactsErrors[keyof ListArtifactsErrors]
11825
11733
 
11826
- export type RemoveObjectLinkResponses = {
11734
+ export type ListArtifactsResponses = {
11827
11735
  /**
11828
11736
  * Response for status 200
11829
11737
  */
11830
11738
  200: {
11831
- success: boolean
11739
+ artifacts: Array<{
11740
+ id: string
11741
+ projectId: string
11742
+ kind: "document" | "sheet" | "slides" | "file"
11743
+ title: string
11744
+ owner: {
11745
+ type: "user" | "serviceAccount" | "system"
11746
+ id: string
11747
+ }
11748
+ latestVersion: number
11749
+ createdAt: string
11750
+ updatedAt: string
11751
+ }>
11752
+ hasMore: boolean
11753
+ total: number
11832
11754
  }
11833
11755
  }
11834
11756
 
11835
- export type RemoveObjectLinkResponse = RemoveObjectLinkResponses[keyof RemoveObjectLinkResponses]
11757
+ export type ListArtifactsResponse = ListArtifactsResponses[keyof ListArtifactsResponses]
11836
11758
 
11837
- export type UpsertObjectLinkData = {
11759
+ export type CreateArtifactData = {
11838
11760
  body: {
11839
- targetTypeId: string
11840
- targetId: string
11841
- properties?: {
11842
- [key: string]: unknown
11843
- }
11844
- }
11845
- path: {
11846
- objectTypeId: string
11847
- objectId: string
11848
- linkId: string
11761
+ kind: "document" | "sheet" | "slides" | "file"
11762
+ title: string
11763
+ /**
11764
+ * Files stored with POST /api/files, at their paths in the artifact
11765
+ */
11766
+ files: Array<{
11767
+ /**
11768
+ * The file's path inside the artifact, such as figures/revenue.svg
11769
+ */
11770
+ path: string
11771
+ file: {
11772
+ blobId: string
11773
+ digest: string
11774
+ sizeBytes: number
11775
+ fileName?: string
11776
+ mediaType?: string
11777
+ logicalPath?: string
11778
+ }
11779
+ }>
11849
11780
  }
11781
+ path?: never
11850
11782
  query?: never
11851
- url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}"
11783
+ url: "/api/artifacts"
11852
11784
  }
11853
11785
 
11854
- export type UpsertObjectLinkErrors = {
11786
+ export type CreateArtifactErrors = {
11855
11787
  /**
11856
11788
  * Response for status 400
11857
11789
  */
11858
11790
  400: {
11859
11791
  error: string
11792
+ /**
11793
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
11794
+ */
11795
+ code?: string
11860
11796
  }
11861
11797
  /**
11862
11798
  * Response for status 403
11863
11799
  */
11864
11800
  403: {
11865
11801
  error: string
11802
+ /**
11803
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
11804
+ */
11805
+ code?: string
11866
11806
  }
11867
11807
  /**
11868
11808
  * Response for status 404
11869
11809
  */
11870
11810
  404: {
11871
11811
  error: string
11812
+ /**
11813
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
11814
+ */
11815
+ code?: string
11816
+ }
11817
+ /**
11818
+ * Response for status 409
11819
+ */
11820
+ 409: {
11821
+ error: string
11822
+ /**
11823
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
11824
+ */
11825
+ code?: string
11826
+ }
11827
+ /**
11828
+ * Response for status 501
11829
+ */
11830
+ 501: {
11831
+ error: string
11832
+ /**
11833
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
11834
+ */
11835
+ code?: string
11872
11836
  }
11873
11837
  }
11874
11838
 
11875
- export type UpsertObjectLinkError = UpsertObjectLinkErrors[keyof UpsertObjectLinkErrors]
11839
+ export type CreateArtifactError = CreateArtifactErrors[keyof CreateArtifactErrors]
11876
11840
 
11877
- export type UpsertObjectLinkResponses = {
11841
+ export type CreateArtifactResponses = {
11878
11842
  /**
11879
- * Response for status 200
11843
+ * Response for status 201
11880
11844
  */
11881
- 200: {
11882
- success: boolean
11845
+ 201: {
11846
+ artifact: {
11847
+ id: string
11848
+ projectId: string
11849
+ kind: "document" | "sheet" | "slides" | "file"
11850
+ title: string
11851
+ owner: {
11852
+ type: "user" | "serviceAccount" | "system"
11853
+ id: string
11854
+ }
11855
+ latestVersion: number
11856
+ createdAt: string
11857
+ updatedAt: string
11858
+ }
11859
+ version: {
11860
+ artifactId: string
11861
+ version: number
11862
+ title: string
11863
+ entry: string
11864
+ files: Array<{
11865
+ /**
11866
+ * The file's path inside the artifact, such as figures/revenue.svg
11867
+ */
11868
+ path: string
11869
+ file: {
11870
+ blobId: string
11871
+ digest: string
11872
+ sizeBytes: number
11873
+ fileName?: string
11874
+ mediaType?: string
11875
+ logicalPath?: string
11876
+ }
11877
+ }>
11878
+ outline:
11879
+ | {
11880
+ kind: "document"
11881
+ headings: Array<{
11882
+ depth: number
11883
+ text: string
11884
+ slug: string
11885
+ }>
11886
+ }
11887
+ | {
11888
+ kind: "sheet"
11889
+ sheets: Array<{
11890
+ name: string
11891
+ rows: number
11892
+ columns: Array<string>
11893
+ }>
11894
+ charts: Array<string>
11895
+ }
11896
+ | {
11897
+ kind: "slides"
11898
+ slides: Array<{
11899
+ title?: string
11900
+ }>
11901
+ }
11902
+ | {
11903
+ kind: "file"
11904
+ mediaType: string
11905
+ }
11906
+ references: Array<{
11907
+ address: string
11908
+ as: "embed" | "link"
11909
+ at: string
11910
+ resolvedVersion: number
11911
+ }>
11912
+ author: {
11913
+ type: "user" | "serviceAccount" | "system"
11914
+ id: string
11915
+ }
11916
+ origin?: {
11917
+ threadId: string
11918
+ runId: string
11919
+ }
11920
+ createdAt: string
11921
+ }
11922
+ warnings: Array<{
11923
+ code: string
11924
+ message: string
11925
+ part?: string
11926
+ }>
11883
11927
  }
11884
11928
  }
11885
11929
 
11886
- export type UpsertObjectLinkResponse = UpsertObjectLinkResponses[keyof UpsertObjectLinkResponses]
11930
+ export type CreateArtifactResponse = CreateArtifactResponses[keyof CreateArtifactResponses]
11887
11931
 
11888
- export type AppendTelemetryData = {
11889
- body: {
11890
- value?: unknown
11891
- unit?: string
11892
- at?: string
11893
- }
11932
+ export type DeleteArtifactData = {
11933
+ body?: never
11894
11934
  path: {
11895
- objectTypeId: string
11896
- objectId: string
11897
- propertyId: string
11935
+ artifactId: string
11898
11936
  }
11899
11937
  query?: never
11900
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}"
11938
+ url: "/api/artifacts/{artifactId}"
11901
11939
  }
11902
11940
 
11903
- export type AppendTelemetryErrors = {
11941
+ export type DeleteArtifactErrors = {
11904
11942
  /**
11905
- * Response for status 400
11906
- */
11907
- 400: {
11908
- error: string
11909
- }
11910
- /**
11911
- * Response for status 403
11943
+ * Response for status 404
11912
11944
  */
11913
- 403: {
11945
+ 404: {
11914
11946
  error: string
11947
+ /**
11948
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
11949
+ */
11950
+ code?: string
11915
11951
  }
11916
11952
  /**
11917
- * Response for status 404
11953
+ * Response for status 501
11918
11954
  */
11919
- 404: {
11955
+ 501: {
11920
11956
  error: string
11957
+ /**
11958
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
11959
+ */
11960
+ code?: string
11921
11961
  }
11922
11962
  }
11923
11963
 
11924
- export type AppendTelemetryError = AppendTelemetryErrors[keyof AppendTelemetryErrors]
11964
+ export type DeleteArtifactError = DeleteArtifactErrors[keyof DeleteArtifactErrors]
11925
11965
 
11926
- export type AppendTelemetryResponses = {
11966
+ export type DeleteArtifactResponses = {
11927
11967
  /**
11928
11968
  * Response for status 200
11929
11969
  */
11930
11970
  200: {
11931
- success: boolean
11971
+ deleted: true
11932
11972
  }
11933
11973
  }
11934
11974
 
11935
- export type AppendTelemetryResponse = AppendTelemetryResponses[keyof AppendTelemetryResponses]
11975
+ export type DeleteArtifactResponse = DeleteArtifactResponses[keyof DeleteArtifactResponses]
11936
11976
 
11937
- export type GetBulkTelemetryHistoryData = {
11938
- body: {
11939
- series: Array<{
11940
- objectTypeId: string
11941
- objectId: string
11942
- propertyId: string
11943
- }>
11944
- from?: string
11945
- to?: string
11946
- limitPerSeries?: number
11947
- order?: "asc" | "desc"
11977
+ export type GetArtifactData = {
11978
+ body?: never
11979
+ path: {
11980
+ artifactId: string
11948
11981
  }
11949
- path?: never
11950
11982
  query?: never
11951
- url: "/api/telemetry/history"
11983
+ url: "/api/artifacts/{artifactId}"
11952
11984
  }
11953
11985
 
11954
- export type GetBulkTelemetryHistoryErrors = {
11986
+ export type GetArtifactErrors = {
11955
11987
  /**
11956
- * Response for status 400
11988
+ * Response for status 404
11957
11989
  */
11958
- 400: {
11990
+ 404: {
11959
11991
  error: string
11992
+ /**
11993
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
11994
+ */
11995
+ code?: string
11960
11996
  }
11961
11997
  /**
11962
- * Response for status 403
11998
+ * Response for status 501
11963
11999
  */
11964
- 403: {
12000
+ 501: {
11965
12001
  error: string
12002
+ /**
12003
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12004
+ */
12005
+ code?: string
11966
12006
  }
11967
12007
  }
11968
12008
 
11969
- export type GetBulkTelemetryHistoryError =
11970
- GetBulkTelemetryHistoryErrors[keyof GetBulkTelemetryHistoryErrors]
12009
+ export type GetArtifactError = GetArtifactErrors[keyof GetArtifactErrors]
11971
12010
 
11972
- export type GetBulkTelemetryHistoryResponses = {
12011
+ export type GetArtifactResponses = {
11973
12012
  /**
11974
12013
  * Response for status 200
11975
12014
  */
11976
12015
  200: {
11977
- series: Array<{
11978
- objectTypeId: string
11979
- objectId: string
11980
- propertyId: string
11981
- points: Array<{
11982
- projectId: string
11983
- objectTypeId: string
11984
- objectId: string
11985
- propertyId: string
11986
- value?: unknown
11987
- unit?: string
11988
- at: string
11989
- }>
12016
+ artifact: {
12017
+ id: string
12018
+ projectId: string
12019
+ kind: "document" | "sheet" | "slides" | "file"
12020
+ title: string
12021
+ owner: {
12022
+ type: "user" | "serviceAccount" | "system"
12023
+ id: string
12024
+ }
12025
+ latestVersion: number
12026
+ createdAt: string
12027
+ updatedAt: string
12028
+ }
12029
+ /**
12030
+ * Newest first
12031
+ */
12032
+ versions: Array<{
12033
+ version: number
12034
+ title: string
12035
+ author: {
12036
+ type: "user" | "serviceAccount" | "system"
12037
+ id: string
12038
+ }
12039
+ origin?: {
12040
+ threadId: string
12041
+ runId: string
12042
+ }
12043
+ createdAt: string
11990
12044
  }>
11991
12045
  }
11992
12046
  }
11993
12047
 
11994
- export type GetBulkTelemetryHistoryResponse =
11995
- GetBulkTelemetryHistoryResponses[keyof GetBulkTelemetryHistoryResponses]
12048
+ export type GetArtifactResponse = GetArtifactResponses[keyof GetArtifactResponses]
11996
12049
 
11997
- export type GetTelemetryHistoryData = {
11998
- body?: never
11999
- path: {
12000
- objectTypeId: string
12001
- objectId: string
12002
- propertyId: string
12050
+ export type PublishArtifactVersionData = {
12051
+ body: {
12052
+ kind: "document" | "sheet" | "slides" | "file"
12053
+ title: string
12054
+ /**
12055
+ * Files stored with POST /api/files, at their paths in the artifact
12056
+ */
12057
+ files: Array<{
12058
+ /**
12059
+ * The file's path inside the artifact, such as figures/revenue.svg
12060
+ */
12061
+ path: string
12062
+ file: {
12063
+ blobId: string
12064
+ digest: string
12065
+ sizeBytes: number
12066
+ fileName?: string
12067
+ mediaType?: string
12068
+ logicalPath?: string
12069
+ }
12070
+ }>
12003
12071
  }
12004
- query?: {
12005
- from?: string
12006
- to?: string
12007
- limit?: string
12008
- order?: "asc" | "desc"
12072
+ path: {
12073
+ artifactId: string
12009
12074
  }
12010
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/history"
12075
+ query?: never
12076
+ url: "/api/artifacts/{artifactId}/versions"
12011
12077
  }
12012
12078
 
12013
- export type GetTelemetryHistoryErrors = {
12079
+ export type PublishArtifactVersionErrors = {
12014
12080
  /**
12015
12081
  * Response for status 400
12016
12082
  */
12017
12083
  400: {
12018
12084
  error: string
12085
+ /**
12086
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12087
+ */
12088
+ code?: string
12089
+ }
12090
+ /**
12091
+ * Response for status 403
12092
+ */
12093
+ 403: {
12094
+ error: string
12095
+ /**
12096
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12097
+ */
12098
+ code?: string
12019
12099
  }
12020
12100
  /**
12021
12101
  * Response for status 404
12022
12102
  */
12023
12103
  404: {
12024
12104
  error: string
12105
+ /**
12106
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12107
+ */
12108
+ code?: string
12109
+ }
12110
+ /**
12111
+ * Response for status 409
12112
+ */
12113
+ 409: {
12114
+ error: string
12115
+ /**
12116
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12117
+ */
12118
+ code?: string
12119
+ }
12120
+ /**
12121
+ * Response for status 501
12122
+ */
12123
+ 501: {
12124
+ error: string
12125
+ /**
12126
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12127
+ */
12128
+ code?: string
12025
12129
  }
12026
12130
  }
12027
12131
 
12028
- export type GetTelemetryHistoryError = GetTelemetryHistoryErrors[keyof GetTelemetryHistoryErrors]
12132
+ export type PublishArtifactVersionError =
12133
+ PublishArtifactVersionErrors[keyof PublishArtifactVersionErrors]
12029
12134
 
12030
- export type GetTelemetryHistoryResponses = {
12135
+ export type PublishArtifactVersionResponses = {
12031
12136
  /**
12032
- * Response for status 200
12137
+ * Response for status 201
12033
12138
  */
12034
- 200: Array<{
12035
- projectId: string
12036
- objectTypeId: string
12037
- objectId: string
12038
- propertyId: string
12039
- value?: unknown
12040
- unit?: string
12041
- at: string
12042
- }>
12139
+ 201: {
12140
+ artifact: {
12141
+ id: string
12142
+ projectId: string
12143
+ kind: "document" | "sheet" | "slides" | "file"
12144
+ title: string
12145
+ owner: {
12146
+ type: "user" | "serviceAccount" | "system"
12147
+ id: string
12148
+ }
12149
+ latestVersion: number
12150
+ createdAt: string
12151
+ updatedAt: string
12152
+ }
12153
+ version: {
12154
+ artifactId: string
12155
+ version: number
12156
+ title: string
12157
+ entry: string
12158
+ files: Array<{
12159
+ /**
12160
+ * The file's path inside the artifact, such as figures/revenue.svg
12161
+ */
12162
+ path: string
12163
+ file: {
12164
+ blobId: string
12165
+ digest: string
12166
+ sizeBytes: number
12167
+ fileName?: string
12168
+ mediaType?: string
12169
+ logicalPath?: string
12170
+ }
12171
+ }>
12172
+ outline:
12173
+ | {
12174
+ kind: "document"
12175
+ headings: Array<{
12176
+ depth: number
12177
+ text: string
12178
+ slug: string
12179
+ }>
12180
+ }
12181
+ | {
12182
+ kind: "sheet"
12183
+ sheets: Array<{
12184
+ name: string
12185
+ rows: number
12186
+ columns: Array<string>
12187
+ }>
12188
+ charts: Array<string>
12189
+ }
12190
+ | {
12191
+ kind: "slides"
12192
+ slides: Array<{
12193
+ title?: string
12194
+ }>
12195
+ }
12196
+ | {
12197
+ kind: "file"
12198
+ mediaType: string
12199
+ }
12200
+ references: Array<{
12201
+ address: string
12202
+ as: "embed" | "link"
12203
+ at: string
12204
+ resolvedVersion: number
12205
+ }>
12206
+ author: {
12207
+ type: "user" | "serviceAccount" | "system"
12208
+ id: string
12209
+ }
12210
+ origin?: {
12211
+ threadId: string
12212
+ runId: string
12213
+ }
12214
+ createdAt: string
12215
+ }
12216
+ warnings: Array<{
12217
+ code: string
12218
+ message: string
12219
+ part?: string
12220
+ }>
12221
+ }
12043
12222
  }
12044
12223
 
12045
- export type GetTelemetryHistoryResponse =
12046
- GetTelemetryHistoryResponses[keyof GetTelemetryHistoryResponses]
12224
+ export type PublishArtifactVersionResponse =
12225
+ PublishArtifactVersionResponses[keyof PublishArtifactVersionResponses]
12047
12226
 
12048
- export type GetLatestTelemetryData = {
12227
+ export type CreateArtifactFrameData = {
12049
12228
  body?: never
12050
12229
  path: {
12051
- objectTypeId: string
12052
- objectId: string
12053
- propertyId: string
12230
+ artifactId: string
12231
+ /**
12232
+ * A version number, or "latest"
12233
+ */
12234
+ version: string
12054
12235
  }
12055
12236
  query?: never
12056
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/latest"
12237
+ url: "/api/artifacts/{artifactId}/versions/{version}/frame"
12057
12238
  }
12058
12239
 
12059
- export type GetLatestTelemetryErrors = {
12240
+ export type CreateArtifactFrameErrors = {
12060
12241
  /**
12061
- * Response for status 400
12242
+ * Response for status 404
12062
12243
  */
12063
- 400: {
12244
+ 404: {
12064
12245
  error: string
12246
+ /**
12247
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12248
+ */
12249
+ code?: string
12065
12250
  }
12066
12251
  /**
12067
- * Response for status 404
12252
+ * Response for status 409
12068
12253
  */
12069
- 404: {
12254
+ 409: {
12255
+ error: string
12256
+ /**
12257
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12258
+ */
12259
+ code?: string
12260
+ }
12261
+ /**
12262
+ * Response for status 501
12263
+ */
12264
+ 501: {
12070
12265
  error: string
12266
+ /**
12267
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12268
+ */
12269
+ code?: string
12071
12270
  }
12072
12271
  }
12073
12272
 
12074
- export type GetLatestTelemetryError = GetLatestTelemetryErrors[keyof GetLatestTelemetryErrors]
12273
+ export type CreateArtifactFrameError = CreateArtifactFrameErrors[keyof CreateArtifactFrameErrors]
12075
12274
 
12076
- export type GetLatestTelemetryResponses = {
12275
+ export type CreateArtifactFrameResponses = {
12077
12276
  /**
12078
12277
  * Response for status 200
12079
12278
  */
12080
12279
  200: {
12081
- projectId: string
12082
- objectTypeId: string
12083
- objectId: string
12084
- propertyId: string
12085
- value?: unknown
12086
- unit?: string
12087
- at: string
12280
+ /**
12281
+ * The frame's base path on this API, ending in /; the deck's entry is served under it
12282
+ */
12283
+ path: string
12284
+ /**
12285
+ * When the frame stops serving; ask for a new one before then
12286
+ */
12287
+ expiresAt: string
12088
12288
  }
12089
12289
  }
12090
12290
 
12091
- export type GetLatestTelemetryResponse =
12092
- GetLatestTelemetryResponses[keyof GetLatestTelemetryResponses]
12291
+ export type CreateArtifactFrameResponse =
12292
+ CreateArtifactFrameResponses[keyof CreateArtifactFrameResponses]
12093
12293
 
12094
- export type ListEventsData = {
12294
+ export type GetArtifactVersionData = {
12095
12295
  body?: never
12096
- path?: never
12097
- query?: {
12098
- topic?:
12099
- | "objects"
12100
- | "telemetry"
12101
- | "links"
12102
- | "schedules"
12103
- | "syncs"
12104
- | "pipelines"
12105
- | "workflows"
12106
- | "datasets"
12107
- | "rules"
12108
- type?:
12109
- | "object.created"
12110
- | "object.updated"
12111
- | "object.deleted"
12112
- | "telemetry.appended"
12113
- | "link.created"
12114
- | "link.updated"
12115
- | "link.deleted"
12116
- | "schedule.triggered"
12117
- | "sync.run.started"
12118
- | "sync.run.finished"
12119
- | "pipeline.run.started"
12120
- | "pipeline.run.step.started"
12121
- | "pipeline.run.step.finished"
12122
- | "pipeline.run.finished"
12123
- | "workflow.run.queued"
12124
- | "workflow.run.started"
12125
- | "workflow.run.node.started"
12126
- | "workflow.run.waiting"
12127
- | "workflow.run.node.waiting"
12128
- | "workflow.run.node.finished"
12129
- | "workflow.run.finished"
12130
- | "workflow.intervention.requested"
12131
- | "workflow.intervention.submitted"
12132
- | "workflow.intervention.cancelled"
12133
- | "workflow.intervention.expired"
12134
- | "dataset.version.committed"
12135
- | "rule.triggered"
12136
- | "rule.resolved"
12137
- afterCursor?: string
12138
- limit?: string
12296
+ path: {
12297
+ artifactId: string
12298
+ /**
12299
+ * A version number, or "latest"
12300
+ */
12301
+ version: string
12139
12302
  }
12140
- url: "/api/events"
12303
+ query?: never
12304
+ url: "/api/artifacts/{artifactId}/versions/{version}"
12141
12305
  }
12142
12306
 
12143
- export type ListEventsErrors = {
12307
+ export type GetArtifactVersionErrors = {
12144
12308
  /**
12145
- * Response for status 400
12309
+ * Response for status 404
12146
12310
  */
12147
- 400: {
12311
+ 404: {
12148
12312
  error: string
12313
+ /**
12314
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12315
+ */
12316
+ code?: string
12149
12317
  }
12150
12318
  /**
12151
- * Response for status 403
12319
+ * Response for status 501
12152
12320
  */
12153
- 403: {
12321
+ 501: {
12154
12322
  error: string
12323
+ /**
12324
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
12325
+ */
12326
+ code?: string
12155
12327
  }
12156
12328
  }
12157
12329
 
12158
- export type ListEventsError = ListEventsErrors[keyof ListEventsErrors]
12330
+ export type GetArtifactVersionError = GetArtifactVersionErrors[keyof GetArtifactVersionErrors]
12159
12331
 
12160
- export type ListEventsResponses = {
12332
+ export type GetArtifactVersionResponses = {
12161
12333
  /**
12162
12334
  * Response for status 200
12163
12335
  */
12164
12336
  200: {
12165
- count: number
12166
- events: Array<
12337
+ artifactId: string
12338
+ version: number
12339
+ title: string
12340
+ entry: string
12341
+ files: Array<{
12342
+ /**
12343
+ * The file's path inside the artifact, such as figures/revenue.svg
12344
+ */
12345
+ path: string
12346
+ file: {
12347
+ blobId: string
12348
+ digest: string
12349
+ sizeBytes: number
12350
+ fileName?: string
12351
+ mediaType?: string
12352
+ logicalPath?: string
12353
+ }
12354
+ }>
12355
+ outline:
12167
12356
  | {
12168
- id: string
12169
- cursor: string
12170
- schemaVersion: 1
12171
- projectId: string
12172
- occurredAt: string
12173
- partitionKey: string
12174
- origin:
12175
- | {
12176
- kind: "action"
12177
- actionId: string
12178
- runId: string
12179
- }
12180
- | {
12181
- kind: "runtime"
12182
- requestId: string
12183
- }
12184
- | {
12185
- kind: "projection"
12186
- projectionId: string
12187
- projectionRunId: string
12188
- datasetId: string
12189
- datasetVersionId: string
12190
- }
12191
- | {
12192
- kind: "telemetry"
12193
- source:
12194
- | {
12195
- kind: "runtime"
12196
- requestId: string
12197
- }
12198
- | {
12199
- kind: "projection"
12200
- projectionId: string
12201
- projectionRunId: string
12202
- datasetId: string
12203
- datasetVersionId: string
12204
- batchOrdinal: number
12205
- }
12206
- }
12207
- /**
12208
- * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12209
- */
12210
- requestedBy?: {
12211
- type: "user" | "serviceAccount"
12212
- id: string
12213
- }
12214
- executor:
12215
- | {
12216
- type: "request"
12217
- requestId: string
12218
- }
12219
- | {
12220
- type: "primitive"
12221
- kind:
12222
- | "action"
12223
- | "pipeline"
12224
- | "projection"
12225
- | "rule"
12226
- | "sync"
12227
- | "webhook"
12228
- | "workflow"
12229
- id: string
12230
- runId: string
12231
- }
12232
- | {
12233
- type: "agent"
12234
- runId: string
12235
- }
12236
- | {
12237
- type: "kernel"
12238
- operation:
12239
- | {
12240
- type: "ontology.recover"
12241
- recoveryId: string
12242
- }
12243
- | {
12244
- type: "ontology.indexVectors"
12245
- indexingId: string
12246
- }
12247
- }
12248
- commitId: string
12249
- commitOrdinal: number
12250
- type: "object.created"
12251
- topic: "objects"
12252
- payload: {
12253
- objectTypeId: string
12254
- primaryId: string
12255
- properties: {
12256
- [key: string]:
12257
- | string
12258
- | number
12259
- | boolean
12260
- | Array<unknown>
12261
- | {
12262
- [key: string]: unknown
12263
- }
12264
- | null
12265
- }
12266
- propertyChanges: {
12267
- [key: string]:
12268
- | {
12269
- operation: "created"
12270
- /**
12271
- * Any JSON-compatible value.
12272
- */
12273
- after:
12274
- | string
12275
- | number
12276
- | boolean
12277
- | Array<unknown>
12278
- | {
12279
- [key: string]: unknown
12280
- }
12281
- | null
12282
- }
12283
- | {
12284
- operation: "updated"
12285
- /**
12286
- * Any JSON-compatible value.
12287
- */
12288
- before:
12289
- | string
12290
- | number
12291
- | boolean
12292
- | Array<unknown>
12293
- | {
12294
- [key: string]: unknown
12295
- }
12296
- | null
12297
- /**
12298
- * Any JSON-compatible value.
12299
- */
12300
- after:
12301
- | string
12302
- | number
12303
- | boolean
12304
- | Array<unknown>
12305
- | {
12306
- [key: string]: unknown
12307
- }
12308
- | null
12309
- }
12310
- | {
12311
- operation: "cleared"
12312
- /**
12313
- * Any JSON-compatible value.
12314
- */
12315
- before:
12316
- | string
12317
- | number
12318
- | boolean
12319
- | Array<unknown>
12320
- | {
12321
- [key: string]: unknown
12322
- }
12323
- | null
12324
- after: null
12325
- }
12326
- }
12327
- redactions?: {
12328
- [key: string]: {
12329
- reason: "missing_clearance"
12330
- }
12331
- }
12332
- }
12357
+ kind: "document"
12358
+ headings: Array<{
12359
+ depth: number
12360
+ text: string
12361
+ slug: string
12362
+ }>
12333
12363
  }
12334
12364
  | {
12335
- id: string
12336
- cursor: string
12337
- schemaVersion: 1
12338
- projectId: string
12339
- occurredAt: string
12340
- partitionKey: string
12341
- origin:
12342
- | {
12343
- kind: "action"
12344
- actionId: string
12345
- runId: string
12346
- }
12347
- | {
12348
- kind: "runtime"
12349
- requestId: string
12350
- }
12351
- | {
12352
- kind: "projection"
12353
- projectionId: string
12354
- projectionRunId: string
12355
- datasetId: string
12356
- datasetVersionId: string
12357
- }
12358
- | {
12359
- kind: "telemetry"
12360
- source:
12361
- | {
12362
- kind: "runtime"
12363
- requestId: string
12364
- }
12365
- | {
12366
- kind: "projection"
12367
- projectionId: string
12368
- projectionRunId: string
12369
- datasetId: string
12370
- datasetVersionId: string
12371
- batchOrdinal: number
12372
- }
12373
- }
12374
- /**
12375
- * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12376
- */
12377
- requestedBy?: {
12378
- type: "user" | "serviceAccount"
12379
- id: string
12380
- }
12381
- executor:
12382
- | {
12383
- type: "request"
12384
- requestId: string
12385
- }
12386
- | {
12387
- type: "primitive"
12388
- kind:
12389
- | "action"
12390
- | "pipeline"
12391
- | "projection"
12392
- | "rule"
12393
- | "sync"
12394
- | "webhook"
12395
- | "workflow"
12396
- id: string
12397
- runId: string
12398
- }
12399
- | {
12400
- type: "agent"
12401
- runId: string
12402
- }
12403
- | {
12404
- type: "kernel"
12405
- operation:
12406
- | {
12407
- type: "ontology.recover"
12408
- recoveryId: string
12409
- }
12410
- | {
12411
- type: "ontology.indexVectors"
12412
- indexingId: string
12413
- }
12414
- }
12415
- commitId: string
12416
- commitOrdinal: number
12417
- type: "object.updated"
12418
- topic: "objects"
12419
- payload: {
12420
- objectTypeId: string
12421
- primaryId: string
12422
- properties: {
12423
- [key: string]:
12424
- | string
12425
- | number
12426
- | boolean
12427
- | Array<unknown>
12428
- | {
12429
- [key: string]: unknown
12430
- }
12431
- | null
12432
- }
12433
- propertyChanges: {
12434
- [key: string]:
12435
- | {
12436
- operation: "created"
12437
- /**
12438
- * Any JSON-compatible value.
12439
- */
12440
- after:
12441
- | string
12442
- | number
12443
- | boolean
12444
- | Array<unknown>
12445
- | {
12446
- [key: string]: unknown
12447
- }
12448
- | null
12449
- }
12450
- | {
12451
- operation: "updated"
12452
- /**
12453
- * Any JSON-compatible value.
12454
- */
12455
- before:
12456
- | string
12457
- | number
12458
- | boolean
12459
- | Array<unknown>
12460
- | {
12461
- [key: string]: unknown
12462
- }
12463
- | null
12464
- /**
12465
- * Any JSON-compatible value.
12466
- */
12467
- after:
12468
- | string
12469
- | number
12470
- | boolean
12471
- | Array<unknown>
12472
- | {
12473
- [key: string]: unknown
12474
- }
12475
- | null
12476
- }
12477
- | {
12478
- operation: "cleared"
12479
- /**
12480
- * Any JSON-compatible value.
12481
- */
12482
- before:
12483
- | string
12484
- | number
12485
- | boolean
12486
- | Array<unknown>
12487
- | {
12488
- [key: string]: unknown
12489
- }
12490
- | null
12491
- after: null
12492
- }
12493
- }
12494
- redactions?: {
12495
- [key: string]: {
12496
- reason: "missing_clearance"
12497
- }
12498
- }
12499
- }
12365
+ kind: "sheet"
12366
+ sheets: Array<{
12367
+ name: string
12368
+ rows: number
12369
+ columns: Array<string>
12370
+ }>
12371
+ charts: Array<string>
12500
12372
  }
12501
12373
  | {
12502
- id: string
12503
- cursor: string
12504
- schemaVersion: 1
12505
- projectId: string
12506
- occurredAt: string
12507
- partitionKey: string
12508
- origin:
12509
- | {
12510
- kind: "action"
12511
- actionId: string
12512
- runId: string
12513
- }
12514
- | {
12515
- kind: "runtime"
12516
- requestId: string
12517
- }
12518
- | {
12519
- kind: "projection"
12520
- projectionId: string
12521
- projectionRunId: string
12522
- datasetId: string
12523
- datasetVersionId: string
12524
- }
12525
- | {
12526
- kind: "telemetry"
12527
- source:
12528
- | {
12529
- kind: "runtime"
12530
- requestId: string
12531
- }
12532
- | {
12533
- kind: "projection"
12534
- projectionId: string
12535
- projectionRunId: string
12536
- datasetId: string
12537
- datasetVersionId: string
12538
- batchOrdinal: number
12539
- }
12540
- }
12541
- /**
12542
- * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12543
- */
12544
- requestedBy?: {
12545
- type: "user" | "serviceAccount"
12546
- id: string
12547
- }
12548
- executor:
12549
- | {
12550
- type: "request"
12551
- requestId: string
12552
- }
12553
- | {
12554
- type: "primitive"
12555
- kind:
12556
- | "action"
12557
- | "pipeline"
12558
- | "projection"
12559
- | "rule"
12560
- | "sync"
12561
- | "webhook"
12562
- | "workflow"
12563
- id: string
12564
- runId: string
12565
- }
12566
- | {
12567
- type: "agent"
12568
- runId: string
12569
- }
12570
- | {
12571
- type: "kernel"
12572
- operation:
12573
- | {
12574
- type: "ontology.recover"
12575
- recoveryId: string
12576
- }
12577
- | {
12578
- type: "ontology.indexVectors"
12579
- indexingId: string
12580
- }
12581
- }
12582
- commitId: string
12583
- commitOrdinal: number
12584
- type: "object.deleted"
12585
- topic: "objects"
12586
- payload: {
12587
- objectTypeId: string
12588
- primaryId: string
12589
- propertyChanges: {
12590
- [key: string]:
12591
- | {
12592
- operation: "created"
12593
- /**
12594
- * Any JSON-compatible value.
12595
- */
12596
- after:
12597
- | string
12598
- | number
12599
- | boolean
12600
- | Array<unknown>
12601
- | {
12602
- [key: string]: unknown
12603
- }
12604
- | null
12605
- }
12606
- | {
12607
- operation: "updated"
12608
- /**
12609
- * Any JSON-compatible value.
12610
- */
12611
- before:
12612
- | string
12613
- | number
12614
- | boolean
12615
- | Array<unknown>
12616
- | {
12617
- [key: string]: unknown
12618
- }
12619
- | null
12620
- /**
12621
- * Any JSON-compatible value.
12622
- */
12623
- after:
12624
- | string
12625
- | number
12626
- | boolean
12627
- | Array<unknown>
12628
- | {
12629
- [key: string]: unknown
12630
- }
12631
- | null
12632
- }
12633
- | {
12634
- operation: "cleared"
12635
- /**
12636
- * Any JSON-compatible value.
12637
- */
12638
- before:
12639
- | string
12640
- | number
12641
- | boolean
12642
- | Array<unknown>
12643
- | {
12644
- [key: string]: unknown
12645
- }
12646
- | null
12647
- after: null
12648
- }
12649
- }
12650
- redactions?: {
12651
- [key: string]: {
12652
- reason: "missing_clearance"
12653
- }
12654
- }
12655
- }
12374
+ kind: "slides"
12375
+ slides: Array<{
12376
+ title?: string
12377
+ }>
12656
12378
  }
12657
12379
  | {
12658
- id: string
12659
- cursor: string
12660
- schemaVersion: 1
12661
- projectId: string
12662
- occurredAt: string
12663
- partitionKey: string
12664
- origin:
12665
- | {
12380
+ kind: "file"
12381
+ mediaType: string
12382
+ }
12383
+ references: Array<{
12384
+ address: string
12385
+ as: "embed" | "link"
12386
+ at: string
12387
+ resolvedVersion: number
12388
+ }>
12389
+ author: {
12390
+ type: "user" | "serviceAccount" | "system"
12391
+ id: string
12392
+ }
12393
+ origin?: {
12394
+ threadId: string
12395
+ runId: string
12396
+ }
12397
+ createdAt: string
12398
+ }
12399
+ }
12400
+
12401
+ export type GetArtifactVersionResponse =
12402
+ GetArtifactVersionResponses[keyof GetArtifactVersionResponses]
12403
+
12404
+ export type GetArtifactFileContentData = {
12405
+ body?: never
12406
+ path: {
12407
+ artifactId: string
12408
+ /**
12409
+ * A version number, or "latest"
12410
+ */
12411
+ version: string
12412
+ }
12413
+ query: {
12414
+ path: string
12415
+ disposition?: "inline" | "attachment"
12416
+ /**
12417
+ * Client cache key; the route still resolves the current file
12418
+ */
12419
+ v?: string
12420
+ }
12421
+ url: "/api/artifacts/{artifactId}/versions/{version}/content"
12422
+ }
12423
+
12424
+ export type GetArtifactFileContentErrors = {
12425
+ /**
12426
+ * Response for status 400
12427
+ */
12428
+ 400: ErrorResponse
12429
+ /**
12430
+ * Response for status 404
12431
+ */
12432
+ 404: ErrorResponse
12433
+ /**
12434
+ * Requested byte range is not satisfiable
12435
+ */
12436
+ 416: unknown
12437
+ /**
12438
+ * The storage role backing this content is not configured
12439
+ */
12440
+ 501: ErrorResponse
12441
+ }
12442
+
12443
+ export type GetArtifactFileContentError =
12444
+ GetArtifactFileContentErrors[keyof GetArtifactFileContentErrors]
12445
+
12446
+ export type GetArtifactFileContentResponses = {
12447
+ /**
12448
+ * File content
12449
+ */
12450
+ 200: Blob | File
12451
+ /**
12452
+ * Partial file content
12453
+ */
12454
+ 206: Blob | File
12455
+ }
12456
+
12457
+ export type GetArtifactFileContentResponse =
12458
+ GetArtifactFileContentResponses[keyof GetArtifactFileContentResponses]
12459
+
12460
+ export type HeadArtifactFileContentData = {
12461
+ body?: never
12462
+ path: {
12463
+ artifactId: string
12464
+ /**
12465
+ * A version number, or "latest"
12466
+ */
12467
+ version: string
12468
+ }
12469
+ query: {
12470
+ path: string
12471
+ disposition?: "inline" | "attachment"
12472
+ /**
12473
+ * Client cache key; the route still resolves the current file
12474
+ */
12475
+ v?: string
12476
+ }
12477
+ url: "/api/artifacts/{artifactId}/versions/{version}/content"
12478
+ }
12479
+
12480
+ export type HeadArtifactFileContentErrors = {
12481
+ /**
12482
+ * Response for status 400
12483
+ */
12484
+ 400: ErrorResponse
12485
+ /**
12486
+ * Response for status 404
12487
+ */
12488
+ 404: ErrorResponse
12489
+ /**
12490
+ * Requested byte range is not satisfiable
12491
+ */
12492
+ 416: unknown
12493
+ /**
12494
+ * The storage role backing this content is not configured
12495
+ */
12496
+ 501: ErrorResponse
12497
+ }
12498
+
12499
+ export type HeadArtifactFileContentError =
12500
+ HeadArtifactFileContentErrors[keyof HeadArtifactFileContentErrors]
12501
+
12502
+ export type HeadArtifactFileContentResponses = {
12503
+ /**
12504
+ * File content headers
12505
+ */
12506
+ 200: unknown
12507
+ /**
12508
+ * Partial file content headers
12509
+ */
12510
+ 206: unknown
12511
+ }
12512
+
12513
+ export type ListModelsData = {
12514
+ body?: never
12515
+ path?: never
12516
+ query?: never
12517
+ url: "/api/models"
12518
+ }
12519
+
12520
+ export type ListModelsResponses = {
12521
+ /**
12522
+ * Response for status 200
12523
+ */
12524
+ 200: {
12525
+ language: Array<{
12526
+ provider: string
12527
+ modelId: string
12528
+ isDefault: boolean
12529
+ name: string
12530
+ description?: string
12531
+ publisher: {
12532
+ id: string
12533
+ name: string
12534
+ }
12535
+ via?: string
12536
+ capabilities: {
12537
+ input: Array<"text" | "image" | "audio" | "video" | "pdf">
12538
+ output: Array<"text" | "image" | "audio" | "video" | "pdf">
12539
+ attachments?: boolean
12540
+ reasoning?: boolean
12541
+ tools?: boolean
12542
+ structuredOutput?: boolean
12543
+ contextWindowTokens?: number
12544
+ }
12545
+ reasoningLevels: Array<
12546
+ "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
12547
+ >
12548
+ defaultReasoning?:
12549
+ | "provider-default"
12550
+ | "none"
12551
+ | "minimal"
12552
+ | "low"
12553
+ | "medium"
12554
+ | "high"
12555
+ | "xhigh"
12556
+ | "max"
12557
+ }>
12558
+ }
12559
+ }
12560
+
12561
+ export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses]
12562
+
12563
+ export type RemoveObjectLinkData = {
12564
+ body?: never
12565
+ path: {
12566
+ objectTypeId: string
12567
+ objectId: string
12568
+ linkId: string
12569
+ }
12570
+ query: {
12571
+ targetTypeId: string
12572
+ targetId: string
12573
+ }
12574
+ url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}"
12575
+ }
12576
+
12577
+ export type RemoveObjectLinkErrors = {
12578
+ /**
12579
+ * Response for status 400
12580
+ */
12581
+ 400: {
12582
+ error: string
12583
+ }
12584
+ /**
12585
+ * Response for status 403
12586
+ */
12587
+ 403: {
12588
+ error: string
12589
+ }
12590
+ /**
12591
+ * Response for status 404
12592
+ */
12593
+ 404: {
12594
+ error: string
12595
+ }
12596
+ }
12597
+
12598
+ export type RemoveObjectLinkError = RemoveObjectLinkErrors[keyof RemoveObjectLinkErrors]
12599
+
12600
+ export type RemoveObjectLinkResponses = {
12601
+ /**
12602
+ * Response for status 200
12603
+ */
12604
+ 200: {
12605
+ success: boolean
12606
+ }
12607
+ }
12608
+
12609
+ export type RemoveObjectLinkResponse = RemoveObjectLinkResponses[keyof RemoveObjectLinkResponses]
12610
+
12611
+ export type UpsertObjectLinkData = {
12612
+ body: {
12613
+ targetTypeId: string
12614
+ targetId: string
12615
+ properties?: {
12616
+ [key: string]: unknown
12617
+ }
12618
+ }
12619
+ path: {
12620
+ objectTypeId: string
12621
+ objectId: string
12622
+ linkId: string
12623
+ }
12624
+ query?: never
12625
+ url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}"
12626
+ }
12627
+
12628
+ export type UpsertObjectLinkErrors = {
12629
+ /**
12630
+ * Response for status 400
12631
+ */
12632
+ 400: {
12633
+ error: string
12634
+ }
12635
+ /**
12636
+ * Response for status 403
12637
+ */
12638
+ 403: {
12639
+ error: string
12640
+ }
12641
+ /**
12642
+ * Response for status 404
12643
+ */
12644
+ 404: {
12645
+ error: string
12646
+ }
12647
+ }
12648
+
12649
+ export type UpsertObjectLinkError = UpsertObjectLinkErrors[keyof UpsertObjectLinkErrors]
12650
+
12651
+ export type UpsertObjectLinkResponses = {
12652
+ /**
12653
+ * Response for status 200
12654
+ */
12655
+ 200: {
12656
+ success: boolean
12657
+ }
12658
+ }
12659
+
12660
+ export type UpsertObjectLinkResponse = UpsertObjectLinkResponses[keyof UpsertObjectLinkResponses]
12661
+
12662
+ export type AppendTelemetryData = {
12663
+ body: {
12664
+ value?: unknown
12665
+ unit?: string
12666
+ at?: string
12667
+ }
12668
+ path: {
12669
+ objectTypeId: string
12670
+ objectId: string
12671
+ propertyId: string
12672
+ }
12673
+ query?: never
12674
+ url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}"
12675
+ }
12676
+
12677
+ export type AppendTelemetryErrors = {
12678
+ /**
12679
+ * Response for status 400
12680
+ */
12681
+ 400: {
12682
+ error: string
12683
+ }
12684
+ /**
12685
+ * Response for status 403
12686
+ */
12687
+ 403: {
12688
+ error: string
12689
+ }
12690
+ /**
12691
+ * Response for status 404
12692
+ */
12693
+ 404: {
12694
+ error: string
12695
+ }
12696
+ }
12697
+
12698
+ export type AppendTelemetryError = AppendTelemetryErrors[keyof AppendTelemetryErrors]
12699
+
12700
+ export type AppendTelemetryResponses = {
12701
+ /**
12702
+ * Response for status 200
12703
+ */
12704
+ 200: {
12705
+ success: boolean
12706
+ }
12707
+ }
12708
+
12709
+ export type AppendTelemetryResponse = AppendTelemetryResponses[keyof AppendTelemetryResponses]
12710
+
12711
+ export type GetBulkTelemetryHistoryData = {
12712
+ body: {
12713
+ series: Array<{
12714
+ objectTypeId: string
12715
+ objectId: string
12716
+ propertyId: string
12717
+ }>
12718
+ from?: string
12719
+ to?: string
12720
+ limitPerSeries?: number
12721
+ order?: "asc" | "desc"
12722
+ }
12723
+ path?: never
12724
+ query?: never
12725
+ url: "/api/telemetry/history"
12726
+ }
12727
+
12728
+ export type GetBulkTelemetryHistoryErrors = {
12729
+ /**
12730
+ * Response for status 400
12731
+ */
12732
+ 400: {
12733
+ error: string
12734
+ }
12735
+ /**
12736
+ * Response for status 403
12737
+ */
12738
+ 403: {
12739
+ error: string
12740
+ }
12741
+ }
12742
+
12743
+ export type GetBulkTelemetryHistoryError =
12744
+ GetBulkTelemetryHistoryErrors[keyof GetBulkTelemetryHistoryErrors]
12745
+
12746
+ export type GetBulkTelemetryHistoryResponses = {
12747
+ /**
12748
+ * Response for status 200
12749
+ */
12750
+ 200: {
12751
+ series: Array<{
12752
+ objectTypeId: string
12753
+ objectId: string
12754
+ propertyId: string
12755
+ points: Array<{
12756
+ projectId: string
12757
+ objectTypeId: string
12758
+ objectId: string
12759
+ propertyId: string
12760
+ value?: unknown
12761
+ unit?: string
12762
+ at: string
12763
+ }>
12764
+ }>
12765
+ }
12766
+ }
12767
+
12768
+ export type GetBulkTelemetryHistoryResponse =
12769
+ GetBulkTelemetryHistoryResponses[keyof GetBulkTelemetryHistoryResponses]
12770
+
12771
+ export type GetTelemetryHistoryData = {
12772
+ body?: never
12773
+ path: {
12774
+ objectTypeId: string
12775
+ objectId: string
12776
+ propertyId: string
12777
+ }
12778
+ query?: {
12779
+ from?: string
12780
+ to?: string
12781
+ limit?: string
12782
+ order?: "asc" | "desc"
12783
+ }
12784
+ url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/history"
12785
+ }
12786
+
12787
+ export type GetTelemetryHistoryErrors = {
12788
+ /**
12789
+ * Response for status 400
12790
+ */
12791
+ 400: {
12792
+ error: string
12793
+ }
12794
+ /**
12795
+ * Response for status 404
12796
+ */
12797
+ 404: {
12798
+ error: string
12799
+ }
12800
+ }
12801
+
12802
+ export type GetTelemetryHistoryError = GetTelemetryHistoryErrors[keyof GetTelemetryHistoryErrors]
12803
+
12804
+ export type GetTelemetryHistoryResponses = {
12805
+ /**
12806
+ * Response for status 200
12807
+ */
12808
+ 200: Array<{
12809
+ projectId: string
12810
+ objectTypeId: string
12811
+ objectId: string
12812
+ propertyId: string
12813
+ value?: unknown
12814
+ unit?: string
12815
+ at: string
12816
+ }>
12817
+ }
12818
+
12819
+ export type GetTelemetryHistoryResponse =
12820
+ GetTelemetryHistoryResponses[keyof GetTelemetryHistoryResponses]
12821
+
12822
+ export type GetLatestTelemetryData = {
12823
+ body?: never
12824
+ path: {
12825
+ objectTypeId: string
12826
+ objectId: string
12827
+ propertyId: string
12828
+ }
12829
+ query?: never
12830
+ url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/latest"
12831
+ }
12832
+
12833
+ export type GetLatestTelemetryErrors = {
12834
+ /**
12835
+ * Response for status 400
12836
+ */
12837
+ 400: {
12838
+ error: string
12839
+ }
12840
+ /**
12841
+ * Response for status 404
12842
+ */
12843
+ 404: {
12844
+ error: string
12845
+ }
12846
+ }
12847
+
12848
+ export type GetLatestTelemetryError = GetLatestTelemetryErrors[keyof GetLatestTelemetryErrors]
12849
+
12850
+ export type GetLatestTelemetryResponses = {
12851
+ /**
12852
+ * Response for status 200
12853
+ */
12854
+ 200: {
12855
+ projectId: string
12856
+ objectTypeId: string
12857
+ objectId: string
12858
+ propertyId: string
12859
+ value?: unknown
12860
+ unit?: string
12861
+ at: string
12862
+ }
12863
+ }
12864
+
12865
+ export type GetLatestTelemetryResponse =
12866
+ GetLatestTelemetryResponses[keyof GetLatestTelemetryResponses]
12867
+
12868
+ export type ListEventsData = {
12869
+ body?: never
12870
+ path?: never
12871
+ query?: {
12872
+ topic?:
12873
+ | "objects"
12874
+ | "telemetry"
12875
+ | "links"
12876
+ | "schedules"
12877
+ | "syncs"
12878
+ | "pipelines"
12879
+ | "workflows"
12880
+ | "datasets"
12881
+ | "rules"
12882
+ type?:
12883
+ | "object.created"
12884
+ | "object.updated"
12885
+ | "object.deleted"
12886
+ | "telemetry.appended"
12887
+ | "link.created"
12888
+ | "link.updated"
12889
+ | "link.deleted"
12890
+ | "schedule.triggered"
12891
+ | "sync.run.started"
12892
+ | "sync.run.finished"
12893
+ | "pipeline.run.started"
12894
+ | "pipeline.run.step.started"
12895
+ | "pipeline.run.step.finished"
12896
+ | "pipeline.run.finished"
12897
+ | "workflow.run.queued"
12898
+ | "workflow.run.started"
12899
+ | "workflow.run.node.started"
12900
+ | "workflow.run.waiting"
12901
+ | "workflow.run.node.waiting"
12902
+ | "workflow.run.node.finished"
12903
+ | "workflow.run.finished"
12904
+ | "workflow.intervention.requested"
12905
+ | "workflow.intervention.submitted"
12906
+ | "workflow.intervention.cancelled"
12907
+ | "workflow.intervention.expired"
12908
+ | "dataset.version.committed"
12909
+ | "rule.triggered"
12910
+ | "rule.resolved"
12911
+ afterCursor?: string
12912
+ limit?: string
12913
+ }
12914
+ url: "/api/events"
12915
+ }
12916
+
12917
+ export type ListEventsErrors = {
12918
+ /**
12919
+ * Response for status 400
12920
+ */
12921
+ 400: {
12922
+ error: string
12923
+ }
12924
+ /**
12925
+ * Response for status 403
12926
+ */
12927
+ 403: {
12928
+ error: string
12929
+ }
12930
+ }
12931
+
12932
+ export type ListEventsError = ListEventsErrors[keyof ListEventsErrors]
12933
+
12934
+ export type ListEventsResponses = {
12935
+ /**
12936
+ * Response for status 200
12937
+ */
12938
+ 200: {
12939
+ count: number
12940
+ events: Array<
12941
+ | {
12942
+ id: string
12943
+ cursor: string
12944
+ schemaVersion: 1
12945
+ projectId: string
12946
+ occurredAt: string
12947
+ partitionKey: string
12948
+ origin:
12949
+ | {
12950
+ kind: "action"
12951
+ actionId: string
12952
+ runId: string
12953
+ }
12954
+ | {
12955
+ kind: "runtime"
12956
+ requestId: string
12957
+ }
12958
+ | {
12959
+ kind: "projection"
12960
+ projectionId: string
12961
+ projectionRunId: string
12962
+ datasetId: string
12963
+ datasetVersionId: string
12964
+ }
12965
+ | {
12966
+ kind: "telemetry"
12967
+ source:
12968
+ | {
12969
+ kind: "runtime"
12970
+ requestId: string
12971
+ }
12972
+ | {
12973
+ kind: "projection"
12974
+ projectionId: string
12975
+ projectionRunId: string
12976
+ datasetId: string
12977
+ datasetVersionId: string
12978
+ batchOrdinal: number
12979
+ }
12980
+ }
12981
+ /**
12982
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12983
+ */
12984
+ requestedBy?: {
12985
+ type: "user" | "serviceAccount"
12986
+ id: string
12987
+ }
12988
+ executor:
12989
+ | {
12990
+ type: "request"
12991
+ requestId: string
12992
+ }
12993
+ | {
12994
+ type: "primitive"
12995
+ kind:
12996
+ | "action"
12997
+ | "pipeline"
12998
+ | "projection"
12999
+ | "rule"
13000
+ | "sync"
13001
+ | "webhook"
13002
+ | "workflow"
13003
+ id: string
13004
+ runId: string
13005
+ }
13006
+ | {
13007
+ type: "agent"
13008
+ runId: string
13009
+ }
13010
+ | {
13011
+ type: "kernel"
13012
+ operation:
13013
+ | {
13014
+ type: "ontology.recover"
13015
+ recoveryId: string
13016
+ }
13017
+ | {
13018
+ type: "ontology.indexVectors"
13019
+ indexingId: string
13020
+ }
13021
+ }
13022
+ commitId: string
13023
+ commitOrdinal: number
13024
+ type: "object.created"
13025
+ topic: "objects"
13026
+ payload: {
13027
+ objectTypeId: string
13028
+ primaryId: string
13029
+ properties: {
13030
+ [key: string]:
13031
+ | string
13032
+ | number
13033
+ | boolean
13034
+ | Array<unknown>
13035
+ | {
13036
+ [key: string]: unknown
13037
+ }
13038
+ | null
13039
+ }
13040
+ propertyChanges: {
13041
+ [key: string]:
13042
+ | {
13043
+ operation: "created"
13044
+ /**
13045
+ * Any JSON-compatible value.
13046
+ */
13047
+ after:
13048
+ | string
13049
+ | number
13050
+ | boolean
13051
+ | Array<unknown>
13052
+ | {
13053
+ [key: string]: unknown
13054
+ }
13055
+ | null
13056
+ }
13057
+ | {
13058
+ operation: "updated"
13059
+ /**
13060
+ * Any JSON-compatible value.
13061
+ */
13062
+ before:
13063
+ | string
13064
+ | number
13065
+ | boolean
13066
+ | Array<unknown>
13067
+ | {
13068
+ [key: string]: unknown
13069
+ }
13070
+ | null
13071
+ /**
13072
+ * Any JSON-compatible value.
13073
+ */
13074
+ after:
13075
+ | string
13076
+ | number
13077
+ | boolean
13078
+ | Array<unknown>
13079
+ | {
13080
+ [key: string]: unknown
13081
+ }
13082
+ | null
13083
+ }
13084
+ | {
13085
+ operation: "cleared"
13086
+ /**
13087
+ * Any JSON-compatible value.
13088
+ */
13089
+ before:
13090
+ | string
13091
+ | number
13092
+ | boolean
13093
+ | Array<unknown>
13094
+ | {
13095
+ [key: string]: unknown
13096
+ }
13097
+ | null
13098
+ after: null
13099
+ }
13100
+ }
13101
+ redactions?: {
13102
+ [key: string]: {
13103
+ reason: "missing_clearance"
13104
+ }
13105
+ }
13106
+ }
13107
+ }
13108
+ | {
13109
+ id: string
13110
+ cursor: string
13111
+ schemaVersion: 1
13112
+ projectId: string
13113
+ occurredAt: string
13114
+ partitionKey: string
13115
+ origin:
13116
+ | {
13117
+ kind: "action"
13118
+ actionId: string
13119
+ runId: string
13120
+ }
13121
+ | {
13122
+ kind: "runtime"
13123
+ requestId: string
13124
+ }
13125
+ | {
13126
+ kind: "projection"
13127
+ projectionId: string
13128
+ projectionRunId: string
13129
+ datasetId: string
13130
+ datasetVersionId: string
13131
+ }
13132
+ | {
13133
+ kind: "telemetry"
13134
+ source:
13135
+ | {
13136
+ kind: "runtime"
13137
+ requestId: string
13138
+ }
13139
+ | {
13140
+ kind: "projection"
13141
+ projectionId: string
13142
+ projectionRunId: string
13143
+ datasetId: string
13144
+ datasetVersionId: string
13145
+ batchOrdinal: number
13146
+ }
13147
+ }
13148
+ /**
13149
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
13150
+ */
13151
+ requestedBy?: {
13152
+ type: "user" | "serviceAccount"
13153
+ id: string
13154
+ }
13155
+ executor:
13156
+ | {
13157
+ type: "request"
13158
+ requestId: string
13159
+ }
13160
+ | {
13161
+ type: "primitive"
13162
+ kind:
13163
+ | "action"
13164
+ | "pipeline"
13165
+ | "projection"
13166
+ | "rule"
13167
+ | "sync"
13168
+ | "webhook"
13169
+ | "workflow"
13170
+ id: string
13171
+ runId: string
13172
+ }
13173
+ | {
13174
+ type: "agent"
13175
+ runId: string
13176
+ }
13177
+ | {
13178
+ type: "kernel"
13179
+ operation:
13180
+ | {
13181
+ type: "ontology.recover"
13182
+ recoveryId: string
13183
+ }
13184
+ | {
13185
+ type: "ontology.indexVectors"
13186
+ indexingId: string
13187
+ }
13188
+ }
13189
+ commitId: string
13190
+ commitOrdinal: number
13191
+ type: "object.updated"
13192
+ topic: "objects"
13193
+ payload: {
13194
+ objectTypeId: string
13195
+ primaryId: string
13196
+ properties: {
13197
+ [key: string]:
13198
+ | string
13199
+ | number
13200
+ | boolean
13201
+ | Array<unknown>
13202
+ | {
13203
+ [key: string]: unknown
13204
+ }
13205
+ | null
13206
+ }
13207
+ propertyChanges: {
13208
+ [key: string]:
13209
+ | {
13210
+ operation: "created"
13211
+ /**
13212
+ * Any JSON-compatible value.
13213
+ */
13214
+ after:
13215
+ | string
13216
+ | number
13217
+ | boolean
13218
+ | Array<unknown>
13219
+ | {
13220
+ [key: string]: unknown
13221
+ }
13222
+ | null
13223
+ }
13224
+ | {
13225
+ operation: "updated"
13226
+ /**
13227
+ * Any JSON-compatible value.
13228
+ */
13229
+ before:
13230
+ | string
13231
+ | number
13232
+ | boolean
13233
+ | Array<unknown>
13234
+ | {
13235
+ [key: string]: unknown
13236
+ }
13237
+ | null
13238
+ /**
13239
+ * Any JSON-compatible value.
13240
+ */
13241
+ after:
13242
+ | string
13243
+ | number
13244
+ | boolean
13245
+ | Array<unknown>
13246
+ | {
13247
+ [key: string]: unknown
13248
+ }
13249
+ | null
13250
+ }
13251
+ | {
13252
+ operation: "cleared"
13253
+ /**
13254
+ * Any JSON-compatible value.
13255
+ */
13256
+ before:
13257
+ | string
13258
+ | number
13259
+ | boolean
13260
+ | Array<unknown>
13261
+ | {
13262
+ [key: string]: unknown
13263
+ }
13264
+ | null
13265
+ after: null
13266
+ }
13267
+ }
13268
+ redactions?: {
13269
+ [key: string]: {
13270
+ reason: "missing_clearance"
13271
+ }
13272
+ }
13273
+ }
13274
+ }
13275
+ | {
13276
+ id: string
13277
+ cursor: string
13278
+ schemaVersion: 1
13279
+ projectId: string
13280
+ occurredAt: string
13281
+ partitionKey: string
13282
+ origin:
13283
+ | {
13284
+ kind: "action"
13285
+ actionId: string
13286
+ runId: string
13287
+ }
13288
+ | {
13289
+ kind: "runtime"
13290
+ requestId: string
13291
+ }
13292
+ | {
13293
+ kind: "projection"
13294
+ projectionId: string
13295
+ projectionRunId: string
13296
+ datasetId: string
13297
+ datasetVersionId: string
13298
+ }
13299
+ | {
13300
+ kind: "telemetry"
13301
+ source:
13302
+ | {
13303
+ kind: "runtime"
13304
+ requestId: string
13305
+ }
13306
+ | {
13307
+ kind: "projection"
13308
+ projectionId: string
13309
+ projectionRunId: string
13310
+ datasetId: string
13311
+ datasetVersionId: string
13312
+ batchOrdinal: number
13313
+ }
13314
+ }
13315
+ /**
13316
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
13317
+ */
13318
+ requestedBy?: {
13319
+ type: "user" | "serviceAccount"
13320
+ id: string
13321
+ }
13322
+ executor:
13323
+ | {
13324
+ type: "request"
13325
+ requestId: string
13326
+ }
13327
+ | {
13328
+ type: "primitive"
13329
+ kind:
13330
+ | "action"
13331
+ | "pipeline"
13332
+ | "projection"
13333
+ | "rule"
13334
+ | "sync"
13335
+ | "webhook"
13336
+ | "workflow"
13337
+ id: string
13338
+ runId: string
13339
+ }
13340
+ | {
13341
+ type: "agent"
13342
+ runId: string
13343
+ }
13344
+ | {
13345
+ type: "kernel"
13346
+ operation:
13347
+ | {
13348
+ type: "ontology.recover"
13349
+ recoveryId: string
13350
+ }
13351
+ | {
13352
+ type: "ontology.indexVectors"
13353
+ indexingId: string
13354
+ }
13355
+ }
13356
+ commitId: string
13357
+ commitOrdinal: number
13358
+ type: "object.deleted"
13359
+ topic: "objects"
13360
+ payload: {
13361
+ objectTypeId: string
13362
+ primaryId: string
13363
+ propertyChanges: {
13364
+ [key: string]:
13365
+ | {
13366
+ operation: "created"
13367
+ /**
13368
+ * Any JSON-compatible value.
13369
+ */
13370
+ after:
13371
+ | string
13372
+ | number
13373
+ | boolean
13374
+ | Array<unknown>
13375
+ | {
13376
+ [key: string]: unknown
13377
+ }
13378
+ | null
13379
+ }
13380
+ | {
13381
+ operation: "updated"
13382
+ /**
13383
+ * Any JSON-compatible value.
13384
+ */
13385
+ before:
13386
+ | string
13387
+ | number
13388
+ | boolean
13389
+ | Array<unknown>
13390
+ | {
13391
+ [key: string]: unknown
13392
+ }
13393
+ | null
13394
+ /**
13395
+ * Any JSON-compatible value.
13396
+ */
13397
+ after:
13398
+ | string
13399
+ | number
13400
+ | boolean
13401
+ | Array<unknown>
13402
+ | {
13403
+ [key: string]: unknown
13404
+ }
13405
+ | null
13406
+ }
13407
+ | {
13408
+ operation: "cleared"
13409
+ /**
13410
+ * Any JSON-compatible value.
13411
+ */
13412
+ before:
13413
+ | string
13414
+ | number
13415
+ | boolean
13416
+ | Array<unknown>
13417
+ | {
13418
+ [key: string]: unknown
13419
+ }
13420
+ | null
13421
+ after: null
13422
+ }
13423
+ }
13424
+ redactions?: {
13425
+ [key: string]: {
13426
+ reason: "missing_clearance"
13427
+ }
13428
+ }
13429
+ }
13430
+ }
13431
+ | {
13432
+ id: string
13433
+ cursor: string
13434
+ schemaVersion: 1
13435
+ projectId: string
13436
+ occurredAt: string
13437
+ partitionKey: string
13438
+ origin:
13439
+ | {
12666
13440
  kind: "action"
12667
13441
  actionId: string
12668
13442
  runId: string
@@ -12842,7 +13616,172 @@ export type ListEventsResponses = {
12842
13616
  }
12843
13617
  commitId: string
12844
13618
  commitOrdinal: number
12845
- type: "link.created"
13619
+ type: "link.created"
13620
+ topic: "links"
13621
+ payload: {
13622
+ sourceTypeId: string
13623
+ sourceId: string
13624
+ linkId: string
13625
+ targetTypeId: string
13626
+ targetId: string
13627
+ properties?: {
13628
+ [key: string]:
13629
+ | string
13630
+ | number
13631
+ | boolean
13632
+ | Array<unknown>
13633
+ | {
13634
+ [key: string]: unknown
13635
+ }
13636
+ | null
13637
+ }
13638
+ propertyChanges: {
13639
+ [key: string]:
13640
+ | {
13641
+ operation: "created"
13642
+ /**
13643
+ * Any JSON-compatible value.
13644
+ */
13645
+ after:
13646
+ | string
13647
+ | number
13648
+ | boolean
13649
+ | Array<unknown>
13650
+ | {
13651
+ [key: string]: unknown
13652
+ }
13653
+ | null
13654
+ }
13655
+ | {
13656
+ operation: "updated"
13657
+ /**
13658
+ * Any JSON-compatible value.
13659
+ */
13660
+ before:
13661
+ | string
13662
+ | number
13663
+ | boolean
13664
+ | Array<unknown>
13665
+ | {
13666
+ [key: string]: unknown
13667
+ }
13668
+ | null
13669
+ /**
13670
+ * Any JSON-compatible value.
13671
+ */
13672
+ after:
13673
+ | string
13674
+ | number
13675
+ | boolean
13676
+ | Array<unknown>
13677
+ | {
13678
+ [key: string]: unknown
13679
+ }
13680
+ | null
13681
+ }
13682
+ | {
13683
+ operation: "cleared"
13684
+ /**
13685
+ * Any JSON-compatible value.
13686
+ */
13687
+ before:
13688
+ | string
13689
+ | number
13690
+ | boolean
13691
+ | Array<unknown>
13692
+ | {
13693
+ [key: string]: unknown
13694
+ }
13695
+ | null
13696
+ after: null
13697
+ }
13698
+ }
13699
+ }
13700
+ }
13701
+ | {
13702
+ id: string
13703
+ cursor: string
13704
+ schemaVersion: 1
13705
+ projectId: string
13706
+ occurredAt: string
13707
+ partitionKey: string
13708
+ origin:
13709
+ | {
13710
+ kind: "action"
13711
+ actionId: string
13712
+ runId: string
13713
+ }
13714
+ | {
13715
+ kind: "runtime"
13716
+ requestId: string
13717
+ }
13718
+ | {
13719
+ kind: "projection"
13720
+ projectionId: string
13721
+ projectionRunId: string
13722
+ datasetId: string
13723
+ datasetVersionId: string
13724
+ }
13725
+ | {
13726
+ kind: "telemetry"
13727
+ source:
13728
+ | {
13729
+ kind: "runtime"
13730
+ requestId: string
13731
+ }
13732
+ | {
13733
+ kind: "projection"
13734
+ projectionId: string
13735
+ projectionRunId: string
13736
+ datasetId: string
13737
+ datasetVersionId: string
13738
+ batchOrdinal: number
13739
+ }
13740
+ }
13741
+ /**
13742
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
13743
+ */
13744
+ requestedBy?: {
13745
+ type: "user" | "serviceAccount"
13746
+ id: string
13747
+ }
13748
+ executor:
13749
+ | {
13750
+ type: "request"
13751
+ requestId: string
13752
+ }
13753
+ | {
13754
+ type: "primitive"
13755
+ kind:
13756
+ | "action"
13757
+ | "pipeline"
13758
+ | "projection"
13759
+ | "rule"
13760
+ | "sync"
13761
+ | "webhook"
13762
+ | "workflow"
13763
+ id: string
13764
+ runId: string
13765
+ }
13766
+ | {
13767
+ type: "agent"
13768
+ runId: string
13769
+ }
13770
+ | {
13771
+ type: "kernel"
13772
+ operation:
13773
+ | {
13774
+ type: "ontology.recover"
13775
+ recoveryId: string
13776
+ }
13777
+ | {
13778
+ type: "ontology.indexVectors"
13779
+ indexingId: string
13780
+ }
13781
+ }
13782
+ commitId: string
13783
+ commitOrdinal: number
13784
+ type: "link.updated"
12846
13785
  topic: "links"
12847
13786
  payload: {
12848
13787
  sourceTypeId: string
@@ -13007,7 +13946,7 @@ export type ListEventsResponses = {
13007
13946
  }
13008
13947
  commitId: string
13009
13948
  commitOrdinal: number
13010
- type: "link.updated"
13949
+ type: "link.deleted"
13011
13950
  topic: "links"
13012
13951
  payload: {
13013
13952
  sourceTypeId: string
@@ -13015,17 +13954,6 @@ export type ListEventsResponses = {
13015
13954
  linkId: string
13016
13955
  targetTypeId: string
13017
13956
  targetId: string
13018
- properties?: {
13019
- [key: string]:
13020
- | string
13021
- | number
13022
- | boolean
13023
- | Array<unknown>
13024
- | {
13025
- [key: string]: unknown
13026
- }
13027
- | null
13028
- }
13029
13957
  propertyChanges: {
13030
13958
  [key: string]:
13031
13959
  | {
@@ -13088,273 +14016,642 @@ export type ListEventsResponses = {
13088
14016
  }
13089
14017
  }
13090
14018
  }
13091
- }
13092
- | {
13093
- id: string
13094
- cursor: string
13095
- schemaVersion: 1
13096
- projectId: string
13097
- occurredAt: string
13098
- partitionKey: string
13099
- origin:
13100
- | {
13101
- kind: "action"
13102
- actionId: string
13103
- runId: string
13104
- }
13105
- | {
13106
- kind: "runtime"
13107
- requestId: string
13108
- }
13109
- | {
13110
- kind: "projection"
13111
- projectionId: string
13112
- projectionRunId: string
13113
- datasetId: string
13114
- datasetVersionId: string
13115
- }
13116
- | {
13117
- kind: "telemetry"
13118
- source:
13119
- | {
13120
- kind: "runtime"
13121
- requestId: string
13122
- }
13123
- | {
13124
- kind: "projection"
13125
- projectionId: string
13126
- projectionRunId: string
13127
- datasetId: string
13128
- datasetVersionId: string
13129
- batchOrdinal: number
13130
- }
13131
- }
13132
- /**
13133
- * Principal on whose behalf the write ran; absent for automatic or anonymous work.
13134
- */
13135
- requestedBy?: {
13136
- type: "user" | "serviceAccount"
13137
- id: string
14019
+ }
14020
+ | {
14021
+ id: string
14022
+ cursor: string
14023
+ schemaVersion: 1
14024
+ projectId: string
14025
+ occurredAt: string
14026
+ partitionKey: string
14027
+ correlationId?: string
14028
+ causationId?: string
14029
+ idempotencyKey?: string
14030
+ origin?:
14031
+ | {
14032
+ kind: "action"
14033
+ actionId: string
14034
+ runId: string
14035
+ }
14036
+ | {
14037
+ kind: "runtime"
14038
+ requestId: string
14039
+ }
14040
+ | {
14041
+ kind: "projection"
14042
+ projectionId: string
14043
+ projectionRunId: string
14044
+ datasetId: string
14045
+ datasetVersionId: string
14046
+ }
14047
+ | {
14048
+ kind: "telemetry"
14049
+ source:
14050
+ | {
14051
+ kind: "runtime"
14052
+ requestId: string
14053
+ }
14054
+ | {
14055
+ kind: "projection"
14056
+ projectionId: string
14057
+ projectionRunId: string
14058
+ datasetId: string
14059
+ datasetVersionId: string
14060
+ batchOrdinal: number
14061
+ }
14062
+ }
14063
+ metadata?: {
14064
+ [key: string]:
14065
+ | string
14066
+ | number
14067
+ | boolean
14068
+ | Array<unknown>
14069
+ | {
14070
+ [key: string]: unknown
14071
+ }
14072
+ | null
14073
+ }
14074
+ type:
14075
+ | "schedule.triggered"
14076
+ | "sync.run.started"
14077
+ | "sync.run.finished"
14078
+ | "pipeline.run.started"
14079
+ | "pipeline.run.step.started"
14080
+ | "pipeline.run.step.finished"
14081
+ | "pipeline.run.finished"
14082
+ | "workflow.run.queued"
14083
+ | "workflow.run.started"
14084
+ | "workflow.run.node.started"
14085
+ | "workflow.run.waiting"
14086
+ | "workflow.run.node.waiting"
14087
+ | "workflow.run.node.finished"
14088
+ | "workflow.run.finished"
14089
+ | "workflow.intervention.requested"
14090
+ | "workflow.intervention.submitted"
14091
+ | "workflow.intervention.cancelled"
14092
+ | "workflow.intervention.expired"
14093
+ | "dataset.version.committed"
14094
+ | "rule.triggered"
14095
+ | "rule.resolved"
14096
+ topic:
14097
+ | "objects"
14098
+ | "telemetry"
14099
+ | "links"
14100
+ | "schedules"
14101
+ | "syncs"
14102
+ | "pipelines"
14103
+ | "workflows"
14104
+ | "datasets"
14105
+ | "rules"
14106
+ payload: {
14107
+ [key: string]: unknown
14108
+ }
14109
+ }
14110
+ >
14111
+ }
14112
+ }
14113
+
14114
+ export type ListEventsResponse = ListEventsResponses[keyof ListEventsResponses]
14115
+
14116
+ export type ListLogsData = {
14117
+ body?: never
14118
+ path?: never
14119
+ query?: {
14120
+ kind?: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow"
14121
+ runId?: string
14122
+ level?: "debug" | "info" | "warn" | "error"
14123
+ direction?: "forward" | "backward"
14124
+ afterCursor?: string
14125
+ beforeCursor?: string
14126
+ limit?: number
14127
+ }
14128
+ url: "/api/logs"
14129
+ }
14130
+
14131
+ export type ListLogsErrors = {
14132
+ /**
14133
+ * Response for status 400
14134
+ */
14135
+ 400: {
14136
+ error: string
14137
+ }
14138
+ /**
14139
+ * Response for status 403
14140
+ */
14141
+ 403: {
14142
+ error: string
14143
+ }
14144
+ }
14145
+
14146
+ export type ListLogsError = ListLogsErrors[keyof ListLogsErrors]
14147
+
14148
+ export type ListLogsResponses = {
14149
+ /**
14150
+ * Response for status 200
14151
+ */
14152
+ 200: {
14153
+ count: number
14154
+ lines: Array<{
14155
+ level: "debug" | "info" | "warn" | "error"
14156
+ message: string
14157
+ fields?: {
14158
+ [key: string]: unknown
14159
+ }
14160
+ at: string
14161
+ context: {
14162
+ run: {
14163
+ kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow"
14164
+ id: string
14165
+ }
14166
+ stepId?: string
14167
+ phase?: string
14168
+ attempt?: number
14169
+ }
14170
+ cursor: string
14171
+ }>
14172
+ cursor?: string
14173
+ hasMore: boolean
14174
+ }
14175
+ }
14176
+
14177
+ export type ListLogsResponse = ListLogsResponses[keyof ListLogsResponses]
14178
+
14179
+ export type GetActivityCaptureConfigData = {
14180
+ body?: never
14181
+ path?: never
14182
+ query?: never
14183
+ url: "/api/activity/capture-config"
14184
+ }
14185
+
14186
+ export type GetActivityCaptureConfigErrors = {
14187
+ /**
14188
+ * Response for status 400
14189
+ */
14190
+ 400: {
14191
+ error: string
14192
+ }
14193
+ /**
14194
+ * Response for status 403
14195
+ */
14196
+ 403: {
14197
+ error: string
14198
+ }
14199
+ }
14200
+
14201
+ export type GetActivityCaptureConfigError =
14202
+ GetActivityCaptureConfigErrors[keyof GetActivityCaptureConfigErrors]
14203
+
14204
+ export type GetActivityCaptureConfigResponses = {
14205
+ /**
14206
+ * Response for status 200
14207
+ */
14208
+ 200: {
14209
+ enabled: boolean
14210
+ idleTimeoutMs: number
14211
+ }
14212
+ }
14213
+
14214
+ export type GetActivityCaptureConfigResponse =
14215
+ GetActivityCaptureConfigResponses[keyof GetActivityCaptureConfigResponses]
14216
+
14217
+ export type CaptureActivityData = {
14218
+ body: {
14219
+ events: Array<
14220
+ | {
14221
+ id: string
14222
+ type: "page.view" | "visit.activity"
14223
+ route: string
14224
+ attribution?: {
14225
+ source?: string
14226
+ medium?: string
14227
+ campaign?: string
14228
+ referrer?: string
14229
+ }
14230
+ }
14231
+ | {
14232
+ id: string
14233
+ type: "ui.interaction"
14234
+ name: string
14235
+ route: string
14236
+ }
14237
+ >
14238
+ }
14239
+ path?: never
14240
+ query?: never
14241
+ url: "/api/activity/events"
14242
+ }
14243
+
14244
+ export type CaptureActivityErrors = {
14245
+ /**
14246
+ * Response for status 400
14247
+ */
14248
+ 400: {
14249
+ error: string
14250
+ }
14251
+ /**
14252
+ * Response for status 403
14253
+ */
14254
+ 403: {
14255
+ error: string
14256
+ }
14257
+ /**
14258
+ * Response for status 429
14259
+ */
14260
+ 429: {
14261
+ status: "accepted" | "disabled" | "throttled"
14262
+ accepted: number
14263
+ }
14264
+ }
14265
+
14266
+ export type CaptureActivityError = CaptureActivityErrors[keyof CaptureActivityErrors]
14267
+
14268
+ export type CaptureActivityResponses = {
14269
+ /**
14270
+ * Response for status 200
14271
+ */
14272
+ 200: {
14273
+ status: "accepted" | "disabled" | "throttled"
14274
+ accepted: number
14275
+ }
14276
+ }
14277
+
14278
+ export type CaptureActivityResponse = CaptureActivityResponses[keyof CaptureActivityResponses]
14279
+
14280
+ export type ListActivityVisitsData = {
14281
+ body?: never
14282
+ path?: never
14283
+ query: {
14284
+ from: string
14285
+ to: string
14286
+ userId?: string
14287
+ limit?: number
14288
+ beforeAt?: string
14289
+ beforeId?: string
14290
+ }
14291
+ url: "/api/activity/visits"
14292
+ }
14293
+
14294
+ export type ListActivityVisitsErrors = {
14295
+ /**
14296
+ * Response for status 400
14297
+ */
14298
+ 400: {
14299
+ error: string
14300
+ }
14301
+ /**
14302
+ * Response for status 403
14303
+ */
14304
+ 403: {
14305
+ error: string
14306
+ }
14307
+ }
14308
+
14309
+ export type ListActivityVisitsError = ListActivityVisitsErrors[keyof ListActivityVisitsErrors]
14310
+
14311
+ export type ListActivityVisitsResponses = {
14312
+ /**
14313
+ * Response for status 200
14314
+ */
14315
+ 200: {
14316
+ visits: Array<{
14317
+ id: string
14318
+ actor:
14319
+ | {
14320
+ type: "user"
14321
+ userId: string
14322
+ }
14323
+ | {
14324
+ type: "share"
14325
+ grantId: string
14326
+ definitionId?: string
13138
14327
  }
13139
- executor:
13140
- | {
13141
- type: "request"
13142
- requestId: string
13143
- }
13144
- | {
13145
- type: "primitive"
13146
- kind:
13147
- | "action"
13148
- | "pipeline"
13149
- | "projection"
13150
- | "rule"
13151
- | "sync"
13152
- | "webhook"
13153
- | "workflow"
13154
- id: string
13155
- runId: string
13156
- }
13157
- | {
13158
- type: "agent"
13159
- runId: string
13160
- }
13161
- | {
13162
- type: "kernel"
13163
- operation:
13164
- | {
13165
- type: "ontology.recover"
13166
- recoveryId: string
13167
- }
13168
- | {
13169
- type: "ontology.indexVectors"
13170
- indexingId: string
13171
- }
13172
- }
13173
- commitId: string
13174
- commitOrdinal: number
13175
- type: "link.deleted"
13176
- topic: "links"
13177
- payload: {
13178
- sourceTypeId: string
13179
- sourceId: string
13180
- linkId: string
13181
- targetTypeId: string
13182
- targetId: string
13183
- propertyChanges: {
13184
- [key: string]:
13185
- | {
13186
- operation: "created"
13187
- /**
13188
- * Any JSON-compatible value.
13189
- */
13190
- after:
13191
- | string
13192
- | number
13193
- | boolean
13194
- | Array<unknown>
13195
- | {
13196
- [key: string]: unknown
13197
- }
13198
- | null
13199
- }
13200
- | {
13201
- operation: "updated"
13202
- /**
13203
- * Any JSON-compatible value.
13204
- */
13205
- before:
13206
- | string
13207
- | number
13208
- | boolean
13209
- | Array<unknown>
13210
- | {
13211
- [key: string]: unknown
13212
- }
13213
- | null
13214
- /**
13215
- * Any JSON-compatible value.
13216
- */
13217
- after:
13218
- | string
13219
- | number
13220
- | boolean
13221
- | Array<unknown>
13222
- | {
13223
- [key: string]: unknown
13224
- }
13225
- | null
13226
- }
13227
- | {
13228
- operation: "cleared"
13229
- /**
13230
- * Any JSON-compatible value.
13231
- */
13232
- before:
13233
- | string
13234
- | number
13235
- | boolean
13236
- | Array<unknown>
13237
- | {
13238
- [key: string]: unknown
13239
- }
13240
- | null
13241
- after: null
13242
- }
13243
- }
14328
+ attribution: {
14329
+ source?: string
14330
+ medium?: string
14331
+ campaign?: string
14332
+ referrer?: string
14333
+ } | null
14334
+ startedAt: string
14335
+ lastSeenAt: string
14336
+ pageViews: number
14337
+ interactions: number
14338
+ }>
14339
+ hasMore: boolean
14340
+ }
14341
+ }
14342
+
14343
+ export type ListActivityVisitsResponse =
14344
+ ListActivityVisitsResponses[keyof ListActivityVisitsResponses]
14345
+
14346
+ export type ListActivityUsersData = {
14347
+ body?: never
14348
+ path?: never
14349
+ query: {
14350
+ from: string
14351
+ to: string
14352
+ userId?: string
14353
+ limit?: number
14354
+ beforeAt?: string
14355
+ beforeId?: string
14356
+ }
14357
+ url: "/api/activity/users"
14358
+ }
14359
+
14360
+ export type ListActivityUsersErrors = {
14361
+ /**
14362
+ * Response for status 400
14363
+ */
14364
+ 400: {
14365
+ error: string
14366
+ }
14367
+ /**
14368
+ * Response for status 403
14369
+ */
14370
+ 403: {
14371
+ error: string
14372
+ }
14373
+ }
14374
+
14375
+ export type ListActivityUsersError = ListActivityUsersErrors[keyof ListActivityUsersErrors]
14376
+
14377
+ export type ListActivityUsersResponses = {
14378
+ /**
14379
+ * Response for status 200
14380
+ */
14381
+ 200: {
14382
+ users: Array<{
14383
+ userId: string
14384
+ displayName?: string
14385
+ lastSeenAt: string
14386
+ visits: number
14387
+ pageViews: number
14388
+ }>
14389
+ hasMore: boolean
14390
+ }
14391
+ }
14392
+
14393
+ export type ListActivityUsersResponse = ListActivityUsersResponses[keyof ListActivityUsersResponses]
14394
+
14395
+ export type GetActivitySummaryData = {
14396
+ body?: never
14397
+ path?: never
14398
+ query: {
14399
+ from: string
14400
+ to: string
14401
+ userId?: string
14402
+ }
14403
+ url: "/api/activity/summary"
14404
+ }
14405
+
14406
+ export type GetActivitySummaryErrors = {
14407
+ /**
14408
+ * Response for status 400
14409
+ */
14410
+ 400: {
14411
+ error: string
14412
+ }
14413
+ /**
14414
+ * Response for status 403
14415
+ */
14416
+ 403: {
14417
+ error: string
14418
+ }
14419
+ }
14420
+
14421
+ export type GetActivitySummaryError = GetActivitySummaryErrors[keyof GetActivitySummaryErrors]
14422
+
14423
+ export type GetActivitySummaryResponses = {
14424
+ /**
14425
+ * Response for status 200
14426
+ */
14427
+ 200: {
14428
+ users: number
14429
+ visits: number
14430
+ sharedVisits: number
14431
+ pageViews: number
14432
+ }
14433
+ }
14434
+
14435
+ export type GetActivitySummaryResponse =
14436
+ GetActivitySummaryResponses[keyof GetActivitySummaryResponses]
14437
+
14438
+ export type GetActivityCalendarData = {
14439
+ body?: never
14440
+ path?: never
14441
+ query: {
14442
+ userId: string
14443
+ year: number
14444
+ }
14445
+ url: "/api/activity/calendar"
14446
+ }
14447
+
14448
+ export type GetActivityCalendarErrors = {
14449
+ /**
14450
+ * Response for status 400
14451
+ */
14452
+ 400: {
14453
+ error: string
14454
+ }
14455
+ /**
14456
+ * Response for status 403
14457
+ */
14458
+ 403: {
14459
+ error: string
14460
+ }
14461
+ }
14462
+
14463
+ export type GetActivityCalendarError = GetActivityCalendarErrors[keyof GetActivityCalendarErrors]
14464
+
14465
+ export type GetActivityCalendarResponses = {
14466
+ /**
14467
+ * Response for status 200
14468
+ */
14469
+ 200: {
14470
+ userId: string
14471
+ year: number
14472
+ days: Array<{
14473
+ day: string
14474
+ visits: number
14475
+ pageViews: number
14476
+ }>
14477
+ }
14478
+ }
14479
+
14480
+ export type GetActivityCalendarResponse =
14481
+ GetActivityCalendarResponses[keyof GetActivityCalendarResponses]
14482
+
14483
+ export type GetActivityVisitTimelineData = {
14484
+ body?: never
14485
+ path: {
14486
+ visitId: string
14487
+ }
14488
+ query?: never
14489
+ url: "/api/activity/visits/{visitId}/timeline"
14490
+ }
14491
+
14492
+ export type GetActivityVisitTimelineErrors = {
14493
+ /**
14494
+ * Response for status 400
14495
+ */
14496
+ 400: {
14497
+ error: string
14498
+ }
14499
+ /**
14500
+ * Response for status 403
14501
+ */
14502
+ 403: {
14503
+ error: string
14504
+ }
14505
+ /**
14506
+ * Response for status 404
14507
+ */
14508
+ 404: {
14509
+ error: string
14510
+ }
14511
+ }
14512
+
14513
+ export type GetActivityVisitTimelineError =
14514
+ GetActivityVisitTimelineErrors[keyof GetActivityVisitTimelineErrors]
14515
+
14516
+ export type GetActivityVisitTimelineResponses = {
14517
+ /**
14518
+ * Response for status 200
14519
+ */
14520
+ 200: {
14521
+ visit: {
14522
+ id: string
14523
+ actor:
14524
+ | {
14525
+ type: "user"
14526
+ userId: string
14527
+ }
14528
+ | {
14529
+ type: "share"
14530
+ grantId: string
14531
+ definitionId?: string
14532
+ }
14533
+ attribution: {
14534
+ source?: string
14535
+ medium?: string
14536
+ campaign?: string
14537
+ referrer?: string
14538
+ } | null
14539
+ startedAt: string
14540
+ lastSeenAt: string
14541
+ pageViews: number
14542
+ interactions: number
14543
+ }
14544
+ connection?:
14545
+ | {
14546
+ type: "session"
14547
+ device: {
14548
+ browser?: string
14549
+ os?: string
13244
14550
  }
14551
+ clientName?: string
14552
+ status: "active" | "expired" | "revoked"
14553
+ createdAt: string
14554
+ lastSeenAt?: string
14555
+ revokedAt?: string
13245
14556
  }
13246
14557
  | {
13247
- id: string
13248
- cursor: string
13249
- schemaVersion: 1
13250
- projectId: string
13251
- occurredAt: string
13252
- partitionKey: string
13253
- correlationId?: string
13254
- causationId?: string
13255
- idempotencyKey?: string
13256
- origin?:
13257
- | {
13258
- kind: "action"
13259
- actionId: string
13260
- runId: string
13261
- }
13262
- | {
13263
- kind: "runtime"
13264
- requestId: string
13265
- }
13266
- | {
13267
- kind: "projection"
13268
- projectionId: string
13269
- projectionRunId: string
13270
- datasetId: string
13271
- datasetVersionId: string
13272
- }
13273
- | {
13274
- kind: "telemetry"
13275
- source:
13276
- | {
13277
- kind: "runtime"
13278
- requestId: string
13279
- }
13280
- | {
13281
- kind: "projection"
13282
- projectionId: string
13283
- projectionRunId: string
13284
- datasetId: string
13285
- datasetVersionId: string
13286
- batchOrdinal: number
13287
- }
13288
- }
13289
- metadata?: {
13290
- [key: string]:
13291
- | string
13292
- | number
13293
- | boolean
13294
- | Array<unknown>
13295
- | {
13296
- [key: string]: unknown
13297
- }
13298
- | null
14558
+ type: "share"
14559
+ grantId: string
14560
+ definitionId?: string
14561
+ status: "active" | "expired" | "revoked"
14562
+ createdAt: string
14563
+ revokedAt?: string
14564
+ }
14565
+ entries: Array<
14566
+ | {
14567
+ kind: "page"
14568
+ at: string
14569
+ sequence: number
14570
+ route: string
14571
+ }
14572
+ | {
14573
+ kind: "interaction"
14574
+ at: string
14575
+ sequence: number
14576
+ name: string
14577
+ route: string
14578
+ }
14579
+ | {
14580
+ kind: "action"
14581
+ at: string
14582
+ executionId: string
14583
+ actionId: string
14584
+ runId: string
14585
+ status: "succeeded" | "failed" | "incomplete"
14586
+ /**
14587
+ * Whether the viewer may read the run itself.
14588
+ */
14589
+ runVisible: boolean
14590
+ object?: {
14591
+ objectTypeId: string
14592
+ primaryId: string
13299
14593
  }
13300
- type:
13301
- | "schedule.triggered"
13302
- | "sync.run.started"
13303
- | "sync.run.finished"
13304
- | "pipeline.run.started"
13305
- | "pipeline.run.step.started"
13306
- | "pipeline.run.step.finished"
13307
- | "pipeline.run.finished"
13308
- | "workflow.run.queued"
13309
- | "workflow.run.started"
13310
- | "workflow.run.node.started"
13311
- | "workflow.run.waiting"
13312
- | "workflow.run.node.waiting"
13313
- | "workflow.run.node.finished"
13314
- | "workflow.run.finished"
13315
- | "workflow.intervention.requested"
13316
- | "workflow.intervention.submitted"
13317
- | "workflow.intervention.cancelled"
13318
- | "workflow.intervention.expired"
13319
- | "dataset.version.committed"
13320
- | "rule.triggered"
13321
- | "rule.resolved"
13322
- topic:
13323
- | "objects"
13324
- | "telemetry"
13325
- | "links"
13326
- | "schedules"
13327
- | "syncs"
13328
- | "pipelines"
13329
- | "workflows"
13330
- | "datasets"
13331
- | "rules"
13332
- payload: {
13333
- [key: string]: unknown
14594
+ }
14595
+ | {
14596
+ kind: "workflow"
14597
+ at: string
14598
+ executionId: string
14599
+ workflowId: string
14600
+ runId: string
14601
+ status:
14602
+ | "queued"
14603
+ | "running"
14604
+ | "waiting"
14605
+ | "succeeded"
14606
+ | "failed"
14607
+ | "cancelled"
14608
+ | "incomplete"
14609
+ /**
14610
+ * Whether the viewer may read the run itself.
14611
+ */
14612
+ runVisible: boolean
14613
+ }
14614
+ | {
14615
+ kind: "agent"
14616
+ at: string
14617
+ executionId: string
14618
+ runId: string
14619
+ threadId: string
14620
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
14621
+ messages: number
14622
+ cost?: {
14623
+ amounts: Array<{
14624
+ currency: string
14625
+ amountNanos: string
14626
+ }>
14627
+ ratedCallCount: number
14628
+ unpriceableCallCount: number
14629
+ unvaluedCallCount: number
13334
14630
  }
13335
14631
  }
13336
14632
  >
14633
+ truncated: boolean
13337
14634
  }
13338
14635
  }
13339
14636
 
13340
- export type ListEventsResponse = ListEventsResponses[keyof ListEventsResponses]
14637
+ export type GetActivityVisitTimelineResponse =
14638
+ GetActivityVisitTimelineResponses[keyof GetActivityVisitTimelineResponses]
13341
14639
 
13342
- export type ListLogsData = {
14640
+ export type ListActivityConnectionsData = {
13343
14641
  body?: never
13344
14642
  path?: never
13345
- query?: {
13346
- kind?: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow"
13347
- runId?: string
13348
- level?: "debug" | "info" | "warn" | "error"
13349
- direction?: "forward" | "backward"
13350
- afterCursor?: string
13351
- beforeCursor?: string
14643
+ query: {
14644
+ userId: string
13352
14645
  limit?: number
14646
+ /**
14647
+ * The previous page's nextCursor.
14648
+ */
14649
+ cursor?: string
13353
14650
  }
13354
- url: "/api/logs"
14651
+ url: "/api/activity/connections"
13355
14652
  }
13356
14653
 
13357
- export type ListLogsErrors = {
14654
+ export type ListActivityConnectionsErrors = {
13358
14655
  /**
13359
14656
  * Response for status 400
13360
14657
  */
@@ -13369,38 +14666,56 @@ export type ListLogsErrors = {
13369
14666
  }
13370
14667
  }
13371
14668
 
13372
- export type ListLogsError = ListLogsErrors[keyof ListLogsErrors]
14669
+ export type ListActivityConnectionsError =
14670
+ ListActivityConnectionsErrors[keyof ListActivityConnectionsErrors]
13373
14671
 
13374
- export type ListLogsResponses = {
14672
+ export type ListActivityConnectionsResponses = {
13375
14673
  /**
13376
14674
  * Response for status 200
13377
14675
  */
13378
14676
  200: {
13379
- count: number
13380
- lines: Array<{
13381
- level: "debug" | "info" | "warn" | "error"
13382
- message: string
13383
- fields?: {
13384
- [key: string]: unknown
13385
- }
13386
- at: string
13387
- context: {
13388
- run: {
13389
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow"
13390
- id: string
13391
- }
13392
- stepId?: string
13393
- phase?: string
13394
- attempt?: number
14677
+ connections: Array<{
14678
+ type: "session"
14679
+ device: {
14680
+ browser?: string
14681
+ os?: string
13395
14682
  }
13396
- cursor: string
14683
+ clientName?: string
14684
+ status: "active" | "expired" | "revoked"
14685
+ createdAt: string
14686
+ lastSeenAt?: string
14687
+ revokedAt?: string
14688
+ visits: number
14689
+ latestVisits: Array<{
14690
+ id: string
14691
+ actor:
14692
+ | {
14693
+ type: "user"
14694
+ userId: string
14695
+ }
14696
+ | {
14697
+ type: "share"
14698
+ grantId: string
14699
+ definitionId?: string
14700
+ }
14701
+ attribution: {
14702
+ source?: string
14703
+ medium?: string
14704
+ campaign?: string
14705
+ referrer?: string
14706
+ } | null
14707
+ startedAt: string
14708
+ lastSeenAt: string
14709
+ pageViews: number
14710
+ interactions: number
14711
+ }>
13397
14712
  }>
13398
- cursor?: string
13399
- hasMore: boolean
14713
+ nextCursor?: string
13400
14714
  }
13401
14715
  }
13402
14716
 
13403
- export type ListLogsResponse = ListLogsResponses[keyof ListLogsResponses]
14717
+ export type ListActivityConnectionsResponse =
14718
+ ListActivityConnectionsResponses[keyof ListActivityConnectionsResponses]
13404
14719
 
13405
14720
  export type ListProjectionsData = {
13406
14721
  body?: never