@sixb/client 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +5 -8
  2. package/dist/activity-attribution.d.ts +29 -0
  3. package/dist/activity-attribution.d.ts.map +1 -0
  4. package/dist/activity-tracker.d.ts +105 -0
  5. package/dist/activity-tracker.d.ts.map +1 -0
  6. package/dist/browser.d.ts +3 -4
  7. package/dist/browser.d.ts.map +1 -1
  8. package/dist/browser.js +514 -14
  9. package/dist/browser.js.map +6 -4
  10. package/dist/{chunk-j512cs3e.js → chunk-3b154p8n.js} +5 -6
  11. package/dist/{chunk-j512cs3e.js.map → chunk-3b154p8n.js.map} +4 -4
  12. package/dist/{chunk-tkjkrcdt.js → chunk-3f2pjdzk.js} +155 -2
  13. package/dist/chunk-3f2pjdzk.js.map +19 -0
  14. package/dist/{chunk-awbb496e.js → chunk-9wd8x2em.js} +1 -1
  15. package/dist/{chunk-3aa3m9z6.js → chunk-ana8rtgb.js} +2 -2
  16. package/dist/{chunk-jh4ts8mt.js → chunk-m2rmbshc.js} +3 -2
  17. package/dist/{chunk-jh4ts8mt.js.map → chunk-m2rmbshc.js.map} +3 -3
  18. package/dist/{chunk-95bnb04n.js → chunk-qdq5gfqx.js} +1 -1
  19. package/dist/{chunk-12s8gbwj.js → chunk-s5zamywm.js} +2 -2
  20. package/dist/connectors/queries.d.ts.map +1 -1
  21. package/dist/file.d.ts +1 -3
  22. package/dist/file.d.ts.map +1 -1
  23. package/dist/generated/@tanstack/react-query.gen.d.ts +2250 -572
  24. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  25. package/dist/generated/index.d.ts +2 -2
  26. package/dist/generated/index.d.ts.map +1 -1
  27. package/dist/generated/sdk.gen.d.ts +89 -1
  28. package/dist/generated/sdk.gen.d.ts.map +1 -1
  29. package/dist/generated/types.gen.d.ts +1910 -734
  30. package/dist/generated/types.gen.d.ts.map +1 -1
  31. package/dist/hooks.js +300 -7
  32. package/dist/hooks.js.map +3 -3
  33. package/dist/index.js +41 -7
  34. package/dist/index.js.map +1 -1
  35. package/dist/logs.js +3 -3
  36. package/dist/models.d.ts.map +1 -1
  37. package/dist/models.js +37 -3
  38. package/dist/models.js.map +1 -1
  39. package/dist/query.js +3 -3
  40. package/package.json +2 -2
  41. package/src/activity-attribution.ts +211 -0
  42. package/src/activity-tracker.ts +527 -0
  43. package/src/agent-streams.ts +1 -1
  44. package/src/browser.ts +15 -7
  45. package/src/file.ts +1 -4
  46. package/src/generated/@tanstack/react-query.gen.ts +580 -0
  47. package/src/generated/index.ts +101 -0
  48. package/src/generated/sdk.gen.ts +389 -0
  49. package/src/generated/types.gen.ts +1947 -677
  50. package/src/models.ts +5 -3
  51. package/dist/chunk-tkjkrcdt.js.map +0 -19
  52. /package/dist/{chunk-awbb496e.js.map → chunk-9wd8x2em.js.map} +0 -0
  53. /package/dist/{chunk-3aa3m9z6.js.map → chunk-ana8rtgb.js.map} +0 -0
  54. /package/dist/{chunk-95bnb04n.js.map → chunk-qdq5gfqx.js.map} +0 -0
  55. /package/dist/{chunk-12s8gbwj.js.map → chunk-s5zamywm.js.map} +0 -0
@@ -430,10 +430,6 @@ export type GetAuthSessionResponses = {
430
430
  | {
431
431
  authenticated: true
432
432
  csrfToken?: string
433
- applicationAccess: {
434
- allowed: boolean
435
- audience: "atlas" | "app"
436
- }
437
433
  user: {
438
434
  id: string
439
435
  email: string
@@ -504,7 +500,6 @@ export type ListAuthSessionsResponses = {
504
500
  200: {
505
501
  sessions: Array<{
506
502
  id: string
507
- audience?: "atlas" | "app"
508
503
  current: boolean
509
504
  createdAt: string
510
505
  expiresAt: string
@@ -1294,7 +1289,6 @@ export type CreateAuthInvitationData = {
1294
1289
  body: {
1295
1290
  email: string
1296
1291
  groupIds?: Array<string>
1297
- destinationId?: "atlas" | "app"
1298
1292
  expiresAt?: string
1299
1293
  returnTo?: string
1300
1294
  revealLink?: boolean
@@ -1409,11 +1403,6 @@ export type GetAuthInvitationOptionsResponses = {
1409
1403
  label?: string
1410
1404
  description?: string
1411
1405
  }>
1412
- destinations: Array<{
1413
- id: "atlas" | "app"
1414
- label: string
1415
- }>
1416
- defaultDestinationId?: "atlas" | "app"
1417
1406
  canInviteWithoutGroups: boolean
1418
1407
  capabilities: {
1419
1408
  createInvitation:
@@ -1532,10 +1521,16 @@ export type GetAuthMembershipOptionsResponses = {
1532
1521
  label?: string
1533
1522
  description?: string
1534
1523
  }>
1524
+ serviceAccountGroups: Array<{
1525
+ id: string
1526
+ label?: string
1527
+ description?: string
1528
+ }>
1535
1529
  capabilities: {
1536
1530
  invite: boolean
1537
1531
  assignGroups: boolean
1538
1532
  suspend: boolean
1533
+ serviceAccounts: boolean
1539
1534
  }
1540
1535
  }
1541
1536
  }
@@ -7409,10 +7404,6 @@ export type GetWorkflowRunFileContentData = {
7409
7404
  runId: string
7410
7405
  }
7411
7406
  query: {
7412
- /**
7413
- * Session audience for file navigation without Origin; must match Origin when present
7414
- */
7415
- audience?: "atlas" | "app"
7416
7407
  path: string
7417
7408
  disposition?: "inline" | "attachment"
7418
7409
  /**
@@ -7465,10 +7456,6 @@ export type HeadWorkflowRunFileContentData = {
7465
7456
  runId: string
7466
7457
  }
7467
7458
  query: {
7468
- /**
7469
- * Session audience for file navigation without Origin; must match Origin when present
7470
- */
7471
- audience?: "atlas" | "app"
7472
7459
  path: string
7473
7460
  disposition?: "inline" | "attachment"
7474
7461
  /**
@@ -7519,10 +7506,6 @@ export type GetWorkflowNodeRunFileContentData = {
7519
7506
  nodeKey: string
7520
7507
  }
7521
7508
  query: {
7522
- /**
7523
- * Session audience for file navigation without Origin; must match Origin when present
7524
- */
7525
- audience?: "atlas" | "app"
7526
7509
  path: string
7527
7510
  disposition?: "inline" | "attachment"
7528
7511
  /**
@@ -7576,10 +7559,6 @@ export type HeadWorkflowNodeRunFileContentData = {
7576
7559
  nodeKey: string
7577
7560
  }
7578
7561
  query: {
7579
- /**
7580
- * Session audience for file navigation without Origin; must match Origin when present
7581
- */
7582
- audience?: "atlas" | "app"
7583
7562
  path: string
7584
7563
  disposition?: "inline" | "attachment"
7585
7564
  /**
@@ -8931,10 +8910,6 @@ export type GetObjectFileContentData = {
8931
8910
  objectId: string
8932
8911
  }
8933
8912
  query: {
8934
- /**
8935
- * Session audience for file navigation without Origin; must match Origin when present
8936
- */
8937
- audience?: "atlas" | "app"
8938
8913
  path: string
8939
8914
  disposition?: "inline" | "attachment"
8940
8915
  /**
@@ -8987,10 +8962,6 @@ export type HeadObjectFileContentData = {
8987
8962
  objectId: string
8988
8963
  }
8989
8964
  query: {
8990
- /**
8991
- * Session audience for file navigation without Origin; must match Origin when present
8992
- */
8993
- audience?: "atlas" | "app"
8994
8965
  path: string
8995
8966
  disposition?: "inline" | "attachment"
8996
8967
  /**
@@ -10050,10 +10021,6 @@ export type GetActionRunFileContentData = {
10050
10021
  runId: string
10051
10022
  }
10052
10023
  query: {
10053
- /**
10054
- * Session audience for file navigation without Origin; must match Origin when present
10055
- */
10056
- audience?: "atlas" | "app"
10057
10024
  path: string
10058
10025
  disposition?: "inline" | "attachment"
10059
10026
  /**
@@ -10106,10 +10073,6 @@ export type HeadActionRunFileContentData = {
10106
10073
  runId: string
10107
10074
  }
10108
10075
  query: {
10109
- /**
10110
- * Session audience for file navigation without Origin; must match Origin when present
10111
- */
10112
- audience?: "atlas" | "app"
10113
10076
  path: string
10114
10077
  disposition?: "inline" | "attachment"
10115
10078
  /**
@@ -10740,17 +10703,9 @@ export type ListAgentThreadMessagesResponses = {
10740
10703
  }
10741
10704
  >
10742
10705
  annotations: Array<{
10743
- code:
10744
- | "output_file_limit_exceeded"
10745
- | "output_file_too_large"
10746
- | "output_budget_exhausted"
10747
- | "output_collection_failed"
10748
- | "output_file_changed"
10749
- | "output_storage_failed"
10750
- | "step_limit_reached"
10706
+ code: "step_limit_reached"
10751
10707
  severity: "warning" | "error"
10752
- scope: "output" | "run"
10753
- path?: string
10708
+ scope: "run"
10754
10709
  message: string
10755
10710
  }>
10756
10711
  compaction?: {
@@ -10980,17 +10935,9 @@ export type PostAgentThreadMessageResponses = {
10980
10935
  unvaluedCallCount: number
10981
10936
  }
10982
10937
  diagnostics?: Array<{
10983
- code:
10984
- | "output_file_limit_exceeded"
10985
- | "output_file_too_large"
10986
- | "output_budget_exhausted"
10987
- | "output_collection_failed"
10988
- | "output_file_changed"
10989
- | "output_storage_failed"
10990
- | "step_limit_reached"
10938
+ code: "step_limit_reached"
10991
10939
  severity: "warning" | "error"
10992
- scope: "output" | "run"
10993
- path?: string
10940
+ scope: "run"
10994
10941
  message: string
10995
10942
  }>
10996
10943
  error?: {
@@ -11038,10 +10985,6 @@ export type GetAgentMessageFileContentData = {
11038
10985
  messageId: string
11039
10986
  }
11040
10987
  query: {
11041
- /**
11042
- * Session audience for file navigation without Origin; must match Origin when present
11043
- */
11044
- audience?: "atlas" | "app"
11045
10988
  path: string
11046
10989
  disposition?: "inline" | "attachment"
11047
10990
  /**
@@ -11095,10 +11038,6 @@ export type HeadAgentMessageFileContentData = {
11095
11038
  messageId: string
11096
11039
  }
11097
11040
  query: {
11098
- /**
11099
- * Session audience for file navigation without Origin; must match Origin when present
11100
- */
11101
- audience?: "atlas" | "app"
11102
11041
  path: string
11103
11042
  disposition?: "inline" | "attachment"
11104
11043
  /**
@@ -11249,17 +11188,9 @@ export type CancelAgentRunResponses = {
11249
11188
  unvaluedCallCount: number
11250
11189
  }
11251
11190
  diagnostics?: Array<{
11252
- code:
11253
- | "output_file_limit_exceeded"
11254
- | "output_file_too_large"
11255
- | "output_budget_exhausted"
11256
- | "output_collection_failed"
11257
- | "output_file_changed"
11258
- | "output_storage_failed"
11259
- | "step_limit_reached"
11191
+ code: "step_limit_reached"
11260
11192
  severity: "warning" | "error"
11261
- scope: "output" | "run"
11262
- path?: string
11193
+ scope: "run"
11263
11194
  message: string
11264
11195
  }>
11265
11196
  error?: {
@@ -11427,17 +11358,9 @@ export type RetryAgentRunResponses = {
11427
11358
  unvaluedCallCount: number
11428
11359
  }
11429
11360
  diagnostics?: Array<{
11430
- code:
11431
- | "output_file_limit_exceeded"
11432
- | "output_file_too_large"
11433
- | "output_budget_exhausted"
11434
- | "output_collection_failed"
11435
- | "output_file_changed"
11436
- | "output_storage_failed"
11437
- | "step_limit_reached"
11361
+ code: "step_limit_reached"
11438
11362
  severity: "warning" | "error"
11439
- scope: "output" | "run"
11440
- path?: string
11363
+ scope: "run"
11441
11364
  message: string
11442
11365
  }>
11443
11366
  error?: {
@@ -11581,17 +11504,9 @@ export type ListAgentThreadRunsResponses = {
11581
11504
  unvaluedCallCount: number
11582
11505
  }
11583
11506
  diagnostics?: Array<{
11584
- code:
11585
- | "output_file_limit_exceeded"
11586
- | "output_file_too_large"
11587
- | "output_budget_exhausted"
11588
- | "output_collection_failed"
11589
- | "output_file_changed"
11590
- | "output_storage_failed"
11591
- | "step_limit_reached"
11507
+ code: "step_limit_reached"
11592
11508
  severity: "warning" | "error"
11593
- scope: "output" | "run"
11594
- path?: string
11509
+ scope: "run"
11595
11510
  message: string
11596
11511
  }>
11597
11512
  error?: {
@@ -11732,17 +11647,9 @@ export type GetAgentRunResponses = {
11732
11647
  unvaluedCallCount: number
11733
11648
  }
11734
11649
  diagnostics?: Array<{
11735
- code:
11736
- | "output_file_limit_exceeded"
11737
- | "output_file_too_large"
11738
- | "output_budget_exhausted"
11739
- | "output_collection_failed"
11740
- | "output_file_changed"
11741
- | "output_storage_failed"
11742
- | "step_limit_reached"
11650
+ code: "step_limit_reached"
11743
11651
  severity: "warning" | "error"
11744
- scope: "output" | "run"
11745
- path?: string
11652
+ scope: "run"
11746
11653
  message: string
11747
11654
  }>
11748
11655
  error?: {
@@ -11781,411 +11688,893 @@ export type GetAgentRunResponses = {
11781
11688
 
11782
11689
  export type GetAgentRunResponse = GetAgentRunResponses[keyof GetAgentRunResponses]
11783
11690
 
11784
- export type ListModelsData = {
11691
+ export type ListArtifactsData = {
11785
11692
  body?: never
11786
11693
  path?: never
11787
- query?: never
11788
- url: "/api/models"
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
11705
+ }
11706
+ url: "/api/artifacts"
11789
11707
  }
11790
11708
 
11791
- export type ListModelsResponses = {
11709
+ export type ListArtifactsErrors = {
11710
+ /**
11711
+ * Response for status 400
11712
+ */
11713
+ 400: {
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
11719
+ }
11720
+ /**
11721
+ * Response for status 501
11722
+ */
11723
+ 501: {
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
11729
+ }
11730
+ }
11731
+
11732
+ export type ListArtifactsError = ListArtifactsErrors[keyof ListArtifactsErrors]
11733
+
11734
+ export type ListArtifactsResponses = {
11792
11735
  /**
11793
11736
  * Response for status 200
11794
11737
  */
11795
11738
  200: {
11796
- language: Array<{
11797
- provider: string
11798
- modelId: string
11799
- isDefault: boolean
11800
- name: string
11801
- description?: string
11802
- publisher: {
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"
11803
11746
  id: string
11804
- name: string
11805
- }
11806
- via?: string
11807
- capabilities: {
11808
- input: Array<"text" | "image" | "audio" | "video" | "pdf">
11809
- output: Array<"text" | "image" | "audio" | "video" | "pdf">
11810
- attachments?: boolean
11811
- reasoning?: boolean
11812
- tools?: boolean
11813
- structuredOutput?: boolean
11814
- contextWindowTokens?: number
11815
11747
  }
11816
- reasoningLevels: Array<
11817
- "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
11818
- >
11819
- defaultReasoning?:
11820
- | "provider-default"
11821
- | "none"
11822
- | "minimal"
11823
- | "low"
11824
- | "medium"
11825
- | "high"
11826
- | "xhigh"
11827
- | "max"
11748
+ latestVersion: number
11749
+ createdAt: string
11750
+ updatedAt: string
11828
11751
  }>
11752
+ hasMore: boolean
11753
+ total: number
11829
11754
  }
11830
11755
  }
11831
11756
 
11832
- export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses]
11757
+ export type ListArtifactsResponse = ListArtifactsResponses[keyof ListArtifactsResponses]
11833
11758
 
11834
- export type RemoveObjectLinkData = {
11835
- body?: never
11836
- path: {
11837
- objectTypeId: string
11838
- objectId: string
11839
- linkId: string
11840
- }
11841
- query: {
11842
- targetTypeId: string
11843
- targetId: string
11759
+ export type CreateArtifactData = {
11760
+ body: {
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
+ }>
11844
11780
  }
11845
- url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}"
11781
+ path?: never
11782
+ query?: never
11783
+ url: "/api/artifacts"
11846
11784
  }
11847
11785
 
11848
- export type RemoveObjectLinkErrors = {
11786
+ export type CreateArtifactErrors = {
11849
11787
  /**
11850
11788
  * Response for status 400
11851
11789
  */
11852
11790
  400: {
11853
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
11854
11796
  }
11855
11797
  /**
11856
11798
  * Response for status 403
11857
11799
  */
11858
11800
  403: {
11859
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
11860
11806
  }
11861
11807
  /**
11862
11808
  * Response for status 404
11863
11809
  */
11864
11810
  404: {
11865
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
11866
11836
  }
11867
11837
  }
11868
11838
 
11869
- export type RemoveObjectLinkError = RemoveObjectLinkErrors[keyof RemoveObjectLinkErrors]
11839
+ export type CreateArtifactError = CreateArtifactErrors[keyof CreateArtifactErrors]
11870
11840
 
11871
- export type RemoveObjectLinkResponses = {
11841
+ export type CreateArtifactResponses = {
11872
11842
  /**
11873
- * Response for status 200
11843
+ * Response for status 201
11874
11844
  */
11875
- 200: {
11876
- 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
+ }>
11877
11927
  }
11878
11928
  }
11879
11929
 
11880
- export type RemoveObjectLinkResponse = RemoveObjectLinkResponses[keyof RemoveObjectLinkResponses]
11930
+ export type CreateArtifactResponse = CreateArtifactResponses[keyof CreateArtifactResponses]
11881
11931
 
11882
- export type UpsertObjectLinkData = {
11883
- body: {
11884
- targetTypeId: string
11885
- targetId: string
11886
- properties?: {
11887
- [key: string]: unknown
11888
- }
11889
- }
11932
+ export type DeleteArtifactData = {
11933
+ body?: never
11890
11934
  path: {
11891
- objectTypeId: string
11892
- objectId: string
11893
- linkId: string
11935
+ artifactId: string
11894
11936
  }
11895
11937
  query?: never
11896
- url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}"
11938
+ url: "/api/artifacts/{artifactId}"
11897
11939
  }
11898
11940
 
11899
- export type UpsertObjectLinkErrors = {
11900
- /**
11901
- * Response for status 400
11902
- */
11903
- 400: {
11904
- error: string
11905
- }
11941
+ export type DeleteArtifactErrors = {
11906
11942
  /**
11907
- * Response for status 403
11943
+ * Response for status 404
11908
11944
  */
11909
- 403: {
11945
+ 404: {
11910
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
11911
11951
  }
11912
11952
  /**
11913
- * Response for status 404
11953
+ * Response for status 501
11914
11954
  */
11915
- 404: {
11955
+ 501: {
11916
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
11917
11961
  }
11918
11962
  }
11919
11963
 
11920
- export type UpsertObjectLinkError = UpsertObjectLinkErrors[keyof UpsertObjectLinkErrors]
11964
+ export type DeleteArtifactError = DeleteArtifactErrors[keyof DeleteArtifactErrors]
11921
11965
 
11922
- export type UpsertObjectLinkResponses = {
11966
+ export type DeleteArtifactResponses = {
11923
11967
  /**
11924
11968
  * Response for status 200
11925
11969
  */
11926
11970
  200: {
11927
- success: boolean
11971
+ deleted: true
11928
11972
  }
11929
11973
  }
11930
11974
 
11931
- export type UpsertObjectLinkResponse = UpsertObjectLinkResponses[keyof UpsertObjectLinkResponses]
11975
+ export type DeleteArtifactResponse = DeleteArtifactResponses[keyof DeleteArtifactResponses]
11932
11976
 
11933
- export type AppendTelemetryData = {
11934
- body: {
11935
- value?: unknown
11936
- unit?: string
11937
- at?: string
11938
- }
11977
+ export type GetArtifactData = {
11978
+ body?: never
11939
11979
  path: {
11940
- objectTypeId: string
11941
- objectId: string
11942
- propertyId: string
11980
+ artifactId: string
11943
11981
  }
11944
11982
  query?: never
11945
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}"
11983
+ url: "/api/artifacts/{artifactId}"
11946
11984
  }
11947
11985
 
11948
- export type AppendTelemetryErrors = {
11986
+ export type GetArtifactErrors = {
11949
11987
  /**
11950
- * Response for status 400
11988
+ * Response for status 404
11951
11989
  */
11952
- 400: {
11990
+ 404: {
11953
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
11954
11996
  }
11955
11997
  /**
11956
- * Response for status 403
11957
- */
11958
- 403: {
11959
- error: string
11960
- }
11961
- /**
11962
- * Response for status 404
11998
+ * Response for status 501
11963
11999
  */
11964
- 404: {
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 AppendTelemetryError = AppendTelemetryErrors[keyof AppendTelemetryErrors]
12009
+ export type GetArtifactError = GetArtifactErrors[keyof GetArtifactErrors]
11970
12010
 
11971
- export type AppendTelemetryResponses = {
12011
+ export type GetArtifactResponses = {
11972
12012
  /**
11973
12013
  * Response for status 200
11974
12014
  */
11975
12015
  200: {
11976
- success: boolean
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
12044
+ }>
11977
12045
  }
11978
12046
  }
11979
12047
 
11980
- export type AppendTelemetryResponse = AppendTelemetryResponses[keyof AppendTelemetryResponses]
12048
+ export type GetArtifactResponse = GetArtifactResponses[keyof GetArtifactResponses]
11981
12049
 
11982
- export type GetBulkTelemetryHistoryData = {
12050
+ export type PublishArtifactVersionData = {
11983
12051
  body: {
11984
- series: Array<{
11985
- objectTypeId: string
11986
- objectId: string
11987
- propertyId: string
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
+ }
11988
12070
  }>
11989
- from?: string
11990
- to?: string
11991
- limitPerSeries?: number
11992
- order?: "asc" | "desc"
11993
12071
  }
11994
- path?: never
12072
+ path: {
12073
+ artifactId: string
12074
+ }
11995
12075
  query?: never
11996
- url: "/api/telemetry/history"
12076
+ url: "/api/artifacts/{artifactId}/versions"
11997
12077
  }
11998
12078
 
11999
- export type GetBulkTelemetryHistoryErrors = {
12079
+ export type PublishArtifactVersionErrors = {
12000
12080
  /**
12001
12081
  * Response for status 400
12002
12082
  */
12003
12083
  400: {
12004
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
12005
12089
  }
12006
12090
  /**
12007
12091
  * Response for status 403
12008
12092
  */
12009
12093
  403: {
12010
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
12099
+ }
12100
+ /**
12101
+ * Response for status 404
12102
+ */
12103
+ 404: {
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
12011
12129
  }
12012
12130
  }
12013
12131
 
12014
- export type GetBulkTelemetryHistoryError =
12015
- GetBulkTelemetryHistoryErrors[keyof GetBulkTelemetryHistoryErrors]
12132
+ export type PublishArtifactVersionError =
12133
+ PublishArtifactVersionErrors[keyof PublishArtifactVersionErrors]
12016
12134
 
12017
- export type GetBulkTelemetryHistoryResponses = {
12135
+ export type PublishArtifactVersionResponses = {
12018
12136
  /**
12019
- * Response for status 200
12137
+ * Response for status 201
12020
12138
  */
12021
- 200: {
12022
- series: Array<{
12023
- objectTypeId: string
12024
- objectId: string
12025
- propertyId: string
12026
- points: Array<{
12027
- projectId: string
12028
- objectTypeId: string
12029
- objectId: string
12030
- propertyId: string
12031
- value?: unknown
12032
- unit?: string
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"
12033
12203
  at: string
12204
+ resolvedVersion: number
12034
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
12035
12220
  }>
12036
12221
  }
12037
12222
  }
12038
12223
 
12039
- export type GetBulkTelemetryHistoryResponse =
12040
- GetBulkTelemetryHistoryResponses[keyof GetBulkTelemetryHistoryResponses]
12224
+ export type PublishArtifactVersionResponse =
12225
+ PublishArtifactVersionResponses[keyof PublishArtifactVersionResponses]
12041
12226
 
12042
- export type GetTelemetryHistoryData = {
12227
+ export type CreateArtifactFrameData = {
12043
12228
  body?: never
12044
12229
  path: {
12045
- objectTypeId: string
12046
- objectId: string
12047
- propertyId: string
12048
- }
12049
- query?: {
12050
- from?: string
12051
- to?: string
12052
- limit?: string
12053
- order?: "asc" | "desc"
12230
+ artifactId: string
12231
+ /**
12232
+ * A version number, or "latest"
12233
+ */
12234
+ version: string
12054
12235
  }
12055
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/history"
12236
+ query?: never
12237
+ url: "/api/artifacts/{artifactId}/versions/{version}/frame"
12056
12238
  }
12057
12239
 
12058
- export type GetTelemetryHistoryErrors = {
12240
+ export type CreateArtifactFrameErrors = {
12059
12241
  /**
12060
- * Response for status 400
12242
+ * Response for status 404
12061
12243
  */
12062
- 400: {
12244
+ 404: {
12063
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
12064
12250
  }
12065
12251
  /**
12066
- * Response for status 404
12252
+ * Response for status 409
12067
12253
  */
12068
- 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: {
12069
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
12070
12270
  }
12071
12271
  }
12072
12272
 
12073
- export type GetTelemetryHistoryError = GetTelemetryHistoryErrors[keyof GetTelemetryHistoryErrors]
12273
+ export type CreateArtifactFrameError = CreateArtifactFrameErrors[keyof CreateArtifactFrameErrors]
12074
12274
 
12075
- export type GetTelemetryHistoryResponses = {
12275
+ export type CreateArtifactFrameResponses = {
12076
12276
  /**
12077
12277
  * Response for status 200
12078
12278
  */
12079
- 200: Array<{
12080
- projectId: string
12081
- objectTypeId: string
12082
- objectId: string
12083
- propertyId: string
12084
- value?: unknown
12085
- unit?: string
12086
- at: string
12087
- }>
12279
+ 200: {
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
12288
+ }
12088
12289
  }
12089
12290
 
12090
- export type GetTelemetryHistoryResponse =
12091
- GetTelemetryHistoryResponses[keyof GetTelemetryHistoryResponses]
12291
+ export type CreateArtifactFrameResponse =
12292
+ CreateArtifactFrameResponses[keyof CreateArtifactFrameResponses]
12092
12293
 
12093
- export type GetLatestTelemetryData = {
12294
+ export type GetArtifactVersionData = {
12094
12295
  body?: never
12095
12296
  path: {
12096
- objectTypeId: string
12097
- objectId: string
12098
- propertyId: string
12297
+ artifactId: string
12298
+ /**
12299
+ * A version number, or "latest"
12300
+ */
12301
+ version: string
12099
12302
  }
12100
12303
  query?: never
12101
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/latest"
12304
+ url: "/api/artifacts/{artifactId}/versions/{version}"
12102
12305
  }
12103
12306
 
12104
- export type GetLatestTelemetryErrors = {
12307
+ export type GetArtifactVersionErrors = {
12105
12308
  /**
12106
- * Response for status 400
12309
+ * Response for status 404
12107
12310
  */
12108
- 400: {
12311
+ 404: {
12109
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
12110
12317
  }
12111
12318
  /**
12112
- * Response for status 404
12319
+ * Response for status 501
12113
12320
  */
12114
- 404: {
12321
+ 501: {
12115
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
12116
12327
  }
12117
12328
  }
12118
12329
 
12119
- export type GetLatestTelemetryError = GetLatestTelemetryErrors[keyof GetLatestTelemetryErrors]
12330
+ export type GetArtifactVersionError = GetArtifactVersionErrors[keyof GetArtifactVersionErrors]
12120
12331
 
12121
- export type GetLatestTelemetryResponses = {
12332
+ export type GetArtifactVersionResponses = {
12122
12333
  /**
12123
12334
  * Response for status 200
12124
12335
  */
12125
12336
  200: {
12126
- projectId: string
12127
- objectTypeId: string
12128
- objectId: string
12129
- propertyId: string
12130
- value?: unknown
12131
- unit?: string
12132
- at: string
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:
12356
+ | {
12357
+ kind: "document"
12358
+ headings: Array<{
12359
+ depth: number
12360
+ text: string
12361
+ slug: string
12362
+ }>
12363
+ }
12364
+ | {
12365
+ kind: "sheet"
12366
+ sheets: Array<{
12367
+ name: string
12368
+ rows: number
12369
+ columns: Array<string>
12370
+ }>
12371
+ charts: Array<string>
12372
+ }
12373
+ | {
12374
+ kind: "slides"
12375
+ slides: Array<{
12376
+ title?: string
12377
+ }>
12378
+ }
12379
+ | {
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
12133
12398
  }
12134
12399
  }
12135
12400
 
12136
- export type GetLatestTelemetryResponse =
12137
- GetLatestTelemetryResponses[keyof GetLatestTelemetryResponses]
12401
+ export type GetArtifactVersionResponse =
12402
+ GetArtifactVersionResponses[keyof GetArtifactVersionResponses]
12138
12403
 
12139
- export type ListEventsData = {
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 = {
12140
12514
  body?: never
12141
12515
  path?: never
12142
- query?: {
12143
- topic?:
12144
- | "objects"
12145
- | "telemetry"
12146
- | "links"
12147
- | "schedules"
12148
- | "syncs"
12149
- | "pipelines"
12150
- | "workflows"
12151
- | "datasets"
12152
- | "rules"
12153
- type?:
12154
- | "object.created"
12155
- | "object.updated"
12156
- | "object.deleted"
12157
- | "telemetry.appended"
12158
- | "link.created"
12159
- | "link.updated"
12160
- | "link.deleted"
12161
- | "schedule.triggered"
12162
- | "sync.run.started"
12163
- | "sync.run.finished"
12164
- | "pipeline.run.started"
12165
- | "pipeline.run.step.started"
12166
- | "pipeline.run.step.finished"
12167
- | "pipeline.run.finished"
12168
- | "workflow.run.queued"
12169
- | "workflow.run.started"
12170
- | "workflow.run.node.started"
12171
- | "workflow.run.waiting"
12172
- | "workflow.run.node.waiting"
12173
- | "workflow.run.node.finished"
12174
- | "workflow.run.finished"
12175
- | "workflow.intervention.requested"
12176
- | "workflow.intervention.submitted"
12177
- | "workflow.intervention.cancelled"
12178
- | "workflow.intervention.expired"
12179
- | "dataset.version.committed"
12180
- | "rule.triggered"
12181
- | "rule.resolved"
12182
- afterCursor?: string
12183
- limit?: string
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
+ }>
12184
12558
  }
12185
- url: "/api/events"
12186
12559
  }
12187
12560
 
12188
- export type ListEventsErrors = {
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 = {
12189
12578
  /**
12190
12579
  * Response for status 400
12191
12580
  */
@@ -12198,65 +12587,405 @@ export type ListEventsErrors = {
12198
12587
  403: {
12199
12588
  error: string
12200
12589
  }
12590
+ /**
12591
+ * Response for status 404
12592
+ */
12593
+ 404: {
12594
+ error: string
12595
+ }
12201
12596
  }
12202
12597
 
12203
- export type ListEventsError = ListEventsErrors[keyof ListEventsErrors]
12598
+ export type RemoveObjectLinkError = RemoveObjectLinkErrors[keyof RemoveObjectLinkErrors]
12204
12599
 
12205
- export type ListEventsResponses = {
12600
+ export type RemoveObjectLinkResponses = {
12206
12601
  /**
12207
12602
  * Response for status 200
12208
12603
  */
12209
12604
  200: {
12210
- count: number
12211
- events: Array<
12212
- | {
12213
- id: string
12214
- cursor: string
12215
- schemaVersion: 1
12216
- projectId: string
12217
- occurredAt: string
12218
- partitionKey: string
12219
- origin:
12220
- | {
12221
- kind: "action"
12222
- actionId: string
12223
- runId: string
12224
- }
12225
- | {
12226
- kind: "runtime"
12227
- requestId: string
12228
- }
12229
- | {
12230
- kind: "projection"
12231
- projectionId: string
12232
- projectionRunId: string
12233
- datasetId: string
12234
- datasetVersionId: string
12235
- }
12236
- | {
12237
- kind: "telemetry"
12238
- source:
12239
- | {
12240
- kind: "runtime"
12241
- requestId: string
12242
- }
12243
- | {
12244
- kind: "projection"
12245
- projectionId: string
12246
- projectionRunId: string
12247
- datasetId: string
12248
- datasetVersionId: string
12249
- batchOrdinal: number
12250
- }
12251
- }
12252
- /**
12253
- * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12254
- */
12255
- requestedBy?: {
12256
- type: "user" | "serviceAccount"
12257
- id: string
12258
- }
12259
- executor:
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:
12260
12989
  | {
12261
12990
  type: "request"
12262
12991
  requestId: string
@@ -12887,7 +13616,172 @@ export type ListEventsResponses = {
12887
13616
  }
12888
13617
  commitId: string
12889
13618
  commitOrdinal: number
12890
- 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"
12891
13785
  topic: "links"
12892
13786
  payload: {
12893
13787
  sourceTypeId: string
@@ -13052,7 +13946,7 @@ export type ListEventsResponses = {
13052
13946
  }
13053
13947
  commitId: string
13054
13948
  commitOrdinal: number
13055
- type: "link.updated"
13949
+ type: "link.deleted"
13056
13950
  topic: "links"
13057
13951
  payload: {
13058
13952
  sourceTypeId: string
@@ -13060,17 +13954,6 @@ export type ListEventsResponses = {
13060
13954
  linkId: string
13061
13955
  targetTypeId: string
13062
13956
  targetId: string
13063
- properties?: {
13064
- [key: string]:
13065
- | string
13066
- | number
13067
- | boolean
13068
- | Array<unknown>
13069
- | {
13070
- [key: string]: unknown
13071
- }
13072
- | null
13073
- }
13074
13957
  propertyChanges: {
13075
13958
  [key: string]:
13076
13959
  | {
@@ -13133,273 +14016,642 @@ export type ListEventsResponses = {
13133
14016
  }
13134
14017
  }
13135
14018
  }
13136
- }
13137
- | {
13138
- id: string
13139
- cursor: string
13140
- schemaVersion: 1
13141
- projectId: string
13142
- occurredAt: string
13143
- partitionKey: string
13144
- origin:
13145
- | {
13146
- kind: "action"
13147
- actionId: string
13148
- runId: string
13149
- }
13150
- | {
13151
- kind: "runtime"
13152
- requestId: string
13153
- }
13154
- | {
13155
- kind: "projection"
13156
- projectionId: string
13157
- projectionRunId: string
13158
- datasetId: string
13159
- datasetVersionId: string
13160
- }
13161
- | {
13162
- kind: "telemetry"
13163
- source:
13164
- | {
13165
- kind: "runtime"
13166
- requestId: string
13167
- }
13168
- | {
13169
- kind: "projection"
13170
- projectionId: string
13171
- projectionRunId: string
13172
- datasetId: string
13173
- datasetVersionId: string
13174
- batchOrdinal: number
13175
- }
13176
- }
13177
- /**
13178
- * Principal on whose behalf the write ran; absent for automatic or anonymous work.
13179
- */
13180
- requestedBy?: {
13181
- type: "user" | "serviceAccount"
13182
- 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
13183
14327
  }
13184
- executor:
13185
- | {
13186
- type: "request"
13187
- requestId: string
13188
- }
13189
- | {
13190
- type: "primitive"
13191
- kind:
13192
- | "action"
13193
- | "pipeline"
13194
- | "projection"
13195
- | "rule"
13196
- | "sync"
13197
- | "webhook"
13198
- | "workflow"
13199
- id: string
13200
- runId: string
13201
- }
13202
- | {
13203
- type: "agent"
13204
- runId: string
13205
- }
13206
- | {
13207
- type: "kernel"
13208
- operation:
13209
- | {
13210
- type: "ontology.recover"
13211
- recoveryId: string
13212
- }
13213
- | {
13214
- type: "ontology.indexVectors"
13215
- indexingId: string
13216
- }
13217
- }
13218
- commitId: string
13219
- commitOrdinal: number
13220
- type: "link.deleted"
13221
- topic: "links"
13222
- payload: {
13223
- sourceTypeId: string
13224
- sourceId: string
13225
- linkId: string
13226
- targetTypeId: string
13227
- targetId: string
13228
- propertyChanges: {
13229
- [key: string]:
13230
- | {
13231
- operation: "created"
13232
- /**
13233
- * Any JSON-compatible value.
13234
- */
13235
- after:
13236
- | string
13237
- | number
13238
- | boolean
13239
- | Array<unknown>
13240
- | {
13241
- [key: string]: unknown
13242
- }
13243
- | null
13244
- }
13245
- | {
13246
- operation: "updated"
13247
- /**
13248
- * Any JSON-compatible value.
13249
- */
13250
- before:
13251
- | string
13252
- | number
13253
- | boolean
13254
- | Array<unknown>
13255
- | {
13256
- [key: string]: unknown
13257
- }
13258
- | null
13259
- /**
13260
- * Any JSON-compatible value.
13261
- */
13262
- after:
13263
- | string
13264
- | number
13265
- | boolean
13266
- | Array<unknown>
13267
- | {
13268
- [key: string]: unknown
13269
- }
13270
- | null
13271
- }
13272
- | {
13273
- operation: "cleared"
13274
- /**
13275
- * Any JSON-compatible value.
13276
- */
13277
- before:
13278
- | string
13279
- | number
13280
- | boolean
13281
- | Array<unknown>
13282
- | {
13283
- [key: string]: unknown
13284
- }
13285
- | null
13286
- after: null
13287
- }
13288
- }
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
13289
14550
  }
14551
+ clientName?: string
14552
+ status: "active" | "expired" | "revoked"
14553
+ createdAt: string
14554
+ lastSeenAt?: string
14555
+ revokedAt?: string
13290
14556
  }
13291
14557
  | {
13292
- id: string
13293
- cursor: string
13294
- schemaVersion: 1
13295
- projectId: string
13296
- occurredAt: string
13297
- partitionKey: string
13298
- correlationId?: string
13299
- causationId?: string
13300
- idempotencyKey?: string
13301
- origin?:
13302
- | {
13303
- kind: "action"
13304
- actionId: string
13305
- runId: string
13306
- }
13307
- | {
13308
- kind: "runtime"
13309
- requestId: string
13310
- }
13311
- | {
13312
- kind: "projection"
13313
- projectionId: string
13314
- projectionRunId: string
13315
- datasetId: string
13316
- datasetVersionId: string
13317
- }
13318
- | {
13319
- kind: "telemetry"
13320
- source:
13321
- | {
13322
- kind: "runtime"
13323
- requestId: string
13324
- }
13325
- | {
13326
- kind: "projection"
13327
- projectionId: string
13328
- projectionRunId: string
13329
- datasetId: string
13330
- datasetVersionId: string
13331
- batchOrdinal: number
13332
- }
13333
- }
13334
- metadata?: {
13335
- [key: string]:
13336
- | string
13337
- | number
13338
- | boolean
13339
- | Array<unknown>
13340
- | {
13341
- [key: string]: unknown
13342
- }
13343
- | 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
13344
14593
  }
13345
- type:
13346
- | "schedule.triggered"
13347
- | "sync.run.started"
13348
- | "sync.run.finished"
13349
- | "pipeline.run.started"
13350
- | "pipeline.run.step.started"
13351
- | "pipeline.run.step.finished"
13352
- | "pipeline.run.finished"
13353
- | "workflow.run.queued"
13354
- | "workflow.run.started"
13355
- | "workflow.run.node.started"
13356
- | "workflow.run.waiting"
13357
- | "workflow.run.node.waiting"
13358
- | "workflow.run.node.finished"
13359
- | "workflow.run.finished"
13360
- | "workflow.intervention.requested"
13361
- | "workflow.intervention.submitted"
13362
- | "workflow.intervention.cancelled"
13363
- | "workflow.intervention.expired"
13364
- | "dataset.version.committed"
13365
- | "rule.triggered"
13366
- | "rule.resolved"
13367
- topic:
13368
- | "objects"
13369
- | "telemetry"
13370
- | "links"
13371
- | "schedules"
13372
- | "syncs"
13373
- | "pipelines"
13374
- | "workflows"
13375
- | "datasets"
13376
- | "rules"
13377
- payload: {
13378
- [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
13379
14630
  }
13380
14631
  }
13381
14632
  >
14633
+ truncated: boolean
13382
14634
  }
13383
14635
  }
13384
14636
 
13385
- export type ListEventsResponse = ListEventsResponses[keyof ListEventsResponses]
14637
+ export type GetActivityVisitTimelineResponse =
14638
+ GetActivityVisitTimelineResponses[keyof GetActivityVisitTimelineResponses]
13386
14639
 
13387
- export type ListLogsData = {
14640
+ export type ListActivityConnectionsData = {
13388
14641
  body?: never
13389
14642
  path?: never
13390
- query?: {
13391
- kind?: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow"
13392
- runId?: string
13393
- level?: "debug" | "info" | "warn" | "error"
13394
- direction?: "forward" | "backward"
13395
- afterCursor?: string
13396
- beforeCursor?: string
14643
+ query: {
14644
+ userId: string
13397
14645
  limit?: number
14646
+ /**
14647
+ * The previous page's nextCursor.
14648
+ */
14649
+ cursor?: string
13398
14650
  }
13399
- url: "/api/logs"
14651
+ url: "/api/activity/connections"
13400
14652
  }
13401
14653
 
13402
- export type ListLogsErrors = {
14654
+ export type ListActivityConnectionsErrors = {
13403
14655
  /**
13404
14656
  * Response for status 400
13405
14657
  */
@@ -13414,38 +14666,56 @@ export type ListLogsErrors = {
13414
14666
  }
13415
14667
  }
13416
14668
 
13417
- export type ListLogsError = ListLogsErrors[keyof ListLogsErrors]
14669
+ export type ListActivityConnectionsError =
14670
+ ListActivityConnectionsErrors[keyof ListActivityConnectionsErrors]
13418
14671
 
13419
- export type ListLogsResponses = {
14672
+ export type ListActivityConnectionsResponses = {
13420
14673
  /**
13421
14674
  * Response for status 200
13422
14675
  */
13423
14676
  200: {
13424
- count: number
13425
- lines: Array<{
13426
- level: "debug" | "info" | "warn" | "error"
13427
- message: string
13428
- fields?: {
13429
- [key: string]: unknown
13430
- }
13431
- at: string
13432
- context: {
13433
- run: {
13434
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow"
13435
- id: string
13436
- }
13437
- stepId?: string
13438
- phase?: string
13439
- attempt?: number
14677
+ connections: Array<{
14678
+ type: "session"
14679
+ device: {
14680
+ browser?: string
14681
+ os?: string
13440
14682
  }
13441
- 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
+ }>
13442
14712
  }>
13443
- cursor?: string
13444
- hasMore: boolean
14713
+ nextCursor?: string
13445
14714
  }
13446
14715
  }
13447
14716
 
13448
- export type ListLogsResponse = ListLogsResponses[keyof ListLogsResponses]
14717
+ export type ListActivityConnectionsResponse =
14718
+ ListActivityConnectionsResponses[keyof ListActivityConnectionsResponses]
13449
14719
 
13450
14720
  export type ListProjectionsData = {
13451
14721
  body?: never