@sixb/client 0.1.10 → 0.1.12

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 (48) hide show
  1. package/README.md +26 -0
  2. package/dist/browser.js +2 -2
  3. package/dist/{chunk-rvaq39w5.js → chunk-bsy1hg20.js} +1 -1
  4. package/dist/{chunk-62nthgkf.js → chunk-e8qjsvha.js} +12 -2
  5. package/dist/chunk-e8qjsvha.js.map +19 -0
  6. package/dist/{chunk-6pmyt76w.js → chunk-hx3n4fer.js} +8 -6
  7. package/dist/{chunk-6pmyt76w.js.map → chunk-hx3n4fer.js.map} +3 -3
  8. package/dist/{chunk-cs98dfbc.js → chunk-kh20z2mt.js} +6 -4
  9. package/dist/chunk-kh20z2mt.js.map +10 -0
  10. package/dist/{chunk-d0m9gz29.js → chunk-sjb188se.js} +1 -1
  11. package/dist/{chunk-dp68jpeq.js → chunk-t50n91tk.js} +2 -2
  12. package/dist/connectors/connection.d.ts.map +1 -1
  13. package/dist/connectors/mutations.d.ts.map +1 -1
  14. package/dist/connectors/queries.d.ts +0 -4
  15. package/dist/connectors/queries.d.ts.map +1 -1
  16. package/dist/file.d.ts +3 -1
  17. package/dist/file.d.ts.map +1 -1
  18. package/dist/generated/@tanstack/react-query.gen.d.ts +1087 -120
  19. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  20. package/dist/generated/index.d.ts +2 -2
  21. package/dist/generated/index.d.ts.map +1 -1
  22. package/dist/generated/sdk.gen.d.ts +9 -1
  23. package/dist/generated/sdk.gen.d.ts.map +1 -1
  24. package/dist/generated/types.gen.d.ts +466 -16
  25. package/dist/generated/types.gen.d.ts.map +1 -1
  26. package/dist/hooks.js +92 -32
  27. package/dist/hooks.js.map +6 -6
  28. package/dist/index.js +10 -6
  29. package/dist/index.js.map +1 -1
  30. package/dist/logs.js +3 -3
  31. package/dist/models.js +6 -2
  32. package/dist/models.js.map +1 -1
  33. package/dist/query.d.ts.map +1 -1
  34. package/dist/query.js +3 -3
  35. package/package.json +2 -2
  36. package/src/connectors/connection.ts +45 -7
  37. package/src/connectors/mutations.ts +9 -4
  38. package/src/file.ts +11 -6
  39. package/src/generated/@tanstack/react-query.gen.ts +63 -0
  40. package/src/generated/index.ts +13 -0
  41. package/src/generated/sdk.gen.ts +38 -0
  42. package/src/generated/types.gen.ts +540 -16
  43. package/src/query.ts +3 -1
  44. package/dist/chunk-62nthgkf.js.map +0 -19
  45. package/dist/chunk-cs98dfbc.js.map +0 -10
  46. /package/dist/{chunk-rvaq39w5.js.map → chunk-bsy1hg20.js.map} +0 -0
  47. /package/dist/{chunk-d0m9gz29.js.map → chunk-sjb188se.js.map} +0 -0
  48. /package/dist/{chunk-dp68jpeq.js.map → chunk-t50n91tk.js.map} +0 -0
@@ -9,6 +9,7 @@ export type ErrorResponse = {
9
9
  }
10
10
 
11
11
  export type ObjectQueryObject = {
12
+ score?: number
12
13
  primaryId: string
13
14
  objectTypeId: string
14
15
  properties: {
@@ -100,6 +101,26 @@ export type ObjectQueryLinksResponse = {
100
101
  nextPageToken?: string
101
102
  }
102
103
 
104
+ export type AiUsageLimitErrorResponse = {
105
+ error: string
106
+ /**
107
+ * Stable machine-readable failure code for programmatic handling.
108
+ */
109
+ code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable"
110
+ /**
111
+ * Any JSON-compatible value.
112
+ */
113
+ details?:
114
+ | string
115
+ | number
116
+ | boolean
117
+ | Array<unknown>
118
+ | {
119
+ [key: string]: unknown
120
+ }
121
+ | null
122
+ }
123
+
103
124
  export type ObjectQueryErrorResponse = {
104
125
  error: string
105
126
  issues?: Array<ObjectQueryIssue>
@@ -175,8 +196,8 @@ export type ObjectQuery =
175
196
  | {
176
197
  kind: "vector"
177
198
  input: ObjectQuery
178
- vector: Array<number>
179
- propertyId: string
199
+ vector: string
200
+ profile: string
180
201
  k: number
181
202
  }
182
203
  | {
@@ -1761,6 +1782,9 @@ export type GetAiAccountingOverviewResponses = {
1761
1782
  bucket: "hour" | "day" | "week"
1762
1783
  totals: {
1763
1784
  modelCallCount: number
1785
+ /**
1786
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1787
+ */
1764
1788
  usage: {
1765
1789
  inputTokens?: number
1766
1790
  outputTokens?: number
@@ -1772,6 +1796,21 @@ export type GetAiAccountingOverviewResponses = {
1772
1796
  reasoningOutputTokens?: number
1773
1797
  reportingStatus: "complete" | "partial" | "unavailable"
1774
1798
  }
1799
+ usageCoverage: {
1800
+ /**
1801
+ * Calls reporting both inputTokens and outputTokens.
1802
+ */
1803
+ completeCallCount: number
1804
+ fieldCallCounts: {
1805
+ inputTokens: number
1806
+ outputTokens: number
1807
+ uncachedInputTokens: number
1808
+ cacheReadInputTokens: number
1809
+ cacheWriteInputTokens: number
1810
+ textOutputTokens: number
1811
+ reasoningOutputTokens: number
1812
+ }
1813
+ }
1775
1814
  costs: {
1776
1815
  amounts: Array<{
1777
1816
  currency: string
@@ -1784,6 +1823,9 @@ export type GetAiAccountingOverviewResponses = {
1784
1823
  }
1785
1824
  series: Array<{
1786
1825
  modelCallCount: number
1826
+ /**
1827
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1828
+ */
1787
1829
  usage: {
1788
1830
  inputTokens?: number
1789
1831
  outputTokens?: number
@@ -1795,6 +1837,21 @@ export type GetAiAccountingOverviewResponses = {
1795
1837
  reasoningOutputTokens?: number
1796
1838
  reportingStatus: "complete" | "partial" | "unavailable"
1797
1839
  }
1840
+ usageCoverage: {
1841
+ /**
1842
+ * Calls reporting both inputTokens and outputTokens.
1843
+ */
1844
+ completeCallCount: number
1845
+ fieldCallCounts: {
1846
+ inputTokens: number
1847
+ outputTokens: number
1848
+ uncachedInputTokens: number
1849
+ cacheReadInputTokens: number
1850
+ cacheWriteInputTokens: number
1851
+ textOutputTokens: number
1852
+ reasoningOutputTokens: number
1853
+ }
1854
+ }
1798
1855
  costs: {
1799
1856
  amounts: Array<{
1800
1857
  currency: string
@@ -1809,6 +1866,9 @@ export type GetAiAccountingOverviewResponses = {
1809
1866
  }>
1810
1867
  models: Array<{
1811
1868
  modelCallCount: number
1869
+ /**
1870
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1871
+ */
1812
1872
  usage: {
1813
1873
  inputTokens?: number
1814
1874
  outputTokens?: number
@@ -1820,6 +1880,21 @@ export type GetAiAccountingOverviewResponses = {
1820
1880
  reasoningOutputTokens?: number
1821
1881
  reportingStatus: "complete" | "partial" | "unavailable"
1822
1882
  }
1883
+ usageCoverage: {
1884
+ /**
1885
+ * Calls reporting both inputTokens and outputTokens.
1886
+ */
1887
+ completeCallCount: number
1888
+ fieldCallCounts: {
1889
+ inputTokens: number
1890
+ outputTokens: number
1891
+ uncachedInputTokens: number
1892
+ cacheReadInputTokens: number
1893
+ cacheWriteInputTokens: number
1894
+ textOutputTokens: number
1895
+ reasoningOutputTokens: number
1896
+ }
1897
+ }
1823
1898
  costs: {
1824
1899
  amounts: Array<{
1825
1900
  currency: string
@@ -1835,6 +1910,9 @@ export type GetAiAccountingOverviewResponses = {
1835
1910
  agents: Array<
1836
1911
  | {
1837
1912
  modelCallCount: number
1913
+ /**
1914
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1915
+ */
1838
1916
  usage: {
1839
1917
  inputTokens?: number
1840
1918
  outputTokens?: number
@@ -1846,6 +1924,21 @@ export type GetAiAccountingOverviewResponses = {
1846
1924
  reasoningOutputTokens?: number
1847
1925
  reportingStatus: "complete" | "partial" | "unavailable"
1848
1926
  }
1927
+ usageCoverage: {
1928
+ /**
1929
+ * Calls reporting both inputTokens and outputTokens.
1930
+ */
1931
+ completeCallCount: number
1932
+ fieldCallCounts: {
1933
+ inputTokens: number
1934
+ outputTokens: number
1935
+ uncachedInputTokens: number
1936
+ cacheReadInputTokens: number
1937
+ cacheWriteInputTokens: number
1938
+ textOutputTokens: number
1939
+ reasoningOutputTokens: number
1940
+ }
1941
+ }
1849
1942
  costs: {
1850
1943
  amounts: Array<{
1851
1944
  currency: string
@@ -1859,6 +1952,9 @@ export type GetAiAccountingOverviewResponses = {
1859
1952
  }
1860
1953
  | {
1861
1954
  modelCallCount: number
1955
+ /**
1956
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1957
+ */
1862
1958
  usage: {
1863
1959
  inputTokens?: number
1864
1960
  outputTokens?: number
@@ -1870,6 +1966,21 @@ export type GetAiAccountingOverviewResponses = {
1870
1966
  reasoningOutputTokens?: number
1871
1967
  reportingStatus: "complete" | "partial" | "unavailable"
1872
1968
  }
1969
+ usageCoverage: {
1970
+ /**
1971
+ * Calls reporting both inputTokens and outputTokens.
1972
+ */
1973
+ completeCallCount: number
1974
+ fieldCallCounts: {
1975
+ inputTokens: number
1976
+ outputTokens: number
1977
+ uncachedInputTokens: number
1978
+ cacheReadInputTokens: number
1979
+ cacheWriteInputTokens: number
1980
+ textOutputTokens: number
1981
+ reasoningOutputTokens: number
1982
+ }
1983
+ }
1873
1984
  costs: {
1874
1985
  amounts: Array<{
1875
1986
  currency: string
@@ -1886,6 +1997,9 @@ export type GetAiAccountingOverviewResponses = {
1886
1997
  >
1887
1998
  workflows: Array<{
1888
1999
  modelCallCount: number
2000
+ /**
2001
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
2002
+ */
1889
2003
  usage: {
1890
2004
  inputTokens?: number
1891
2005
  outputTokens?: number
@@ -1897,6 +2011,21 @@ export type GetAiAccountingOverviewResponses = {
1897
2011
  reasoningOutputTokens?: number
1898
2012
  reportingStatus: "complete" | "partial" | "unavailable"
1899
2013
  }
2014
+ usageCoverage: {
2015
+ /**
2016
+ * Calls reporting both inputTokens and outputTokens.
2017
+ */
2018
+ completeCallCount: number
2019
+ fieldCallCounts: {
2020
+ inputTokens: number
2021
+ outputTokens: number
2022
+ uncachedInputTokens: number
2023
+ cacheReadInputTokens: number
2024
+ cacheWriteInputTokens: number
2025
+ textOutputTokens: number
2026
+ reasoningOutputTokens: number
2027
+ }
2028
+ }
1900
2029
  costs: {
1901
2030
  amounts: Array<{
1902
2031
  currency: string
@@ -3308,6 +3437,198 @@ export type RevokeConnectorConnectionResponses = {
3308
3437
  export type RevokeConnectorConnectionResponse =
3309
3438
  RevokeConnectorConnectionResponses[keyof RevokeConnectorConnectionResponses]
3310
3439
 
3440
+ export type ListPendingConnectorConnectionRunsData = {
3441
+ body?: never
3442
+ path: {
3443
+ connectorId: string
3444
+ }
3445
+ query?: never
3446
+ url: "/api/connectors/{connectorId}/connection-runs"
3447
+ }
3448
+
3449
+ export type ListPendingConnectorConnectionRunsErrors = {
3450
+ /**
3451
+ * Response for status 400
3452
+ */
3453
+ 400: {
3454
+ error: string
3455
+ /**
3456
+ * Stable machine-readable failure code for programmatic handling.
3457
+ */
3458
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid"
3459
+ }
3460
+ /**
3461
+ * Response for status 403
3462
+ */
3463
+ 403: {
3464
+ error: string
3465
+ }
3466
+ /**
3467
+ * Response for status 404
3468
+ */
3469
+ 404: {
3470
+ error: string
3471
+ /**
3472
+ * Stable machine-readable failure code for programmatic handling.
3473
+ */
3474
+ code?: "connector.not_found"
3475
+ }
3476
+ /**
3477
+ * Response for status 500
3478
+ */
3479
+ 500: {
3480
+ error: string
3481
+ /**
3482
+ * Stable machine-readable failure code for programmatic handling.
3483
+ */
3484
+ code?: "internal.unexpected"
3485
+ }
3486
+ }
3487
+
3488
+ export type ListPendingConnectorConnectionRunsError =
3489
+ ListPendingConnectorConnectionRunsErrors[keyof ListPendingConnectorConnectionRunsErrors]
3490
+
3491
+ export type ListPendingConnectorConnectionRunsResponses = {
3492
+ /**
3493
+ * Response for status 200
3494
+ */
3495
+ 200: Array<
3496
+ | {
3497
+ id: string
3498
+ connectorId: string
3499
+ kind: "connect" | "reauthorize"
3500
+ owner: {
3501
+ type: "project"
3502
+ }
3503
+ slot: string
3504
+ createdAt: string
3505
+ updatedAt: string
3506
+ status: "waiting"
3507
+ waitingFor: "provider_authorization"
3508
+ expiresAt: string
3509
+ }
3510
+ | {
3511
+ id: string
3512
+ connectorId: string
3513
+ kind: "connect" | "reauthorize"
3514
+ owner: {
3515
+ type: "project"
3516
+ }
3517
+ slot: string
3518
+ createdAt: string
3519
+ updatedAt: string
3520
+ status: "running"
3521
+ }
3522
+ | {
3523
+ id: string
3524
+ connectorId: string
3525
+ kind: "connect" | "reauthorize"
3526
+ owner: {
3527
+ type: "project"
3528
+ }
3529
+ slot: string
3530
+ createdAt: string
3531
+ updatedAt: string
3532
+ status: "waiting"
3533
+ waitingFor: "account_selection"
3534
+ accounts: Array<{
3535
+ id: string
3536
+ label: string
3537
+ description?: string
3538
+ avatarUrl?: string
3539
+ }>
3540
+ }
3541
+ | {
3542
+ id: string
3543
+ connectorId: string
3544
+ kind: "connect" | "reauthorize"
3545
+ owner: {
3546
+ type: "project"
3547
+ }
3548
+ slot: string
3549
+ createdAt: string
3550
+ updatedAt: string
3551
+ status: "succeeded"
3552
+ connections: Array<{
3553
+ id: string
3554
+ connectorId: string
3555
+ owner: {
3556
+ type: "project"
3557
+ }
3558
+ slot: string
3559
+ account: {
3560
+ id: string
3561
+ label: string
3562
+ description?: string
3563
+ avatarUrl?: string
3564
+ }
3565
+ status: "connected" | "needs_reauthorization" | "disconnected"
3566
+ }>
3567
+ finishedAt: string
3568
+ }
3569
+ | {
3570
+ id: string
3571
+ connectorId: string
3572
+ kind: "connect" | "reauthorize"
3573
+ owner: {
3574
+ type: "project"
3575
+ }
3576
+ slot: string
3577
+ createdAt: string
3578
+ updatedAt: string
3579
+ status: "failed"
3580
+ error: {
3581
+ code:
3582
+ | "internal.unexpected"
3583
+ | "connector.adapter_invalid"
3584
+ | "connector.authorization_invalid"
3585
+ | "connector.authorization_required"
3586
+ | "connector.credentials_unavailable"
3587
+ | "connector.not_found"
3588
+ | "connector.operation_conflict"
3589
+ | "connector.operation_in_progress"
3590
+ | "connector.provider_failed"
3591
+ | "connector.provider_unavailable"
3592
+ message: string
3593
+ retryable: boolean
3594
+ at: string
3595
+ /**
3596
+ * Any JSON-compatible value.
3597
+ */
3598
+ details?:
3599
+ | string
3600
+ | number
3601
+ | boolean
3602
+ | Array<unknown>
3603
+ | {
3604
+ [key: string]: unknown
3605
+ }
3606
+ | null
3607
+ httpStatus?: number
3608
+ redacted?: true
3609
+ truncated?: true
3610
+ }
3611
+ finishedAt: string
3612
+ }
3613
+ | {
3614
+ id: string
3615
+ connectorId: string
3616
+ kind: "connect" | "reauthorize"
3617
+ owner: {
3618
+ type: "project"
3619
+ }
3620
+ slot: string
3621
+ createdAt: string
3622
+ updatedAt: string
3623
+ status: "cancelled" | "expired"
3624
+ finishedAt: string
3625
+ }
3626
+ >
3627
+ }
3628
+
3629
+ export type ListPendingConnectorConnectionRunsResponse =
3630
+ ListPendingConnectorConnectionRunsResponses[keyof ListPendingConnectorConnectionRunsResponses]
3631
+
3311
3632
  export type StartConnectorConnectionRunData = {
3312
3633
  body: {
3313
3634
  slot: string
@@ -3526,7 +3847,6 @@ export type GetConnectorConnectionRunResponses = {
3526
3847
  description?: string
3527
3848
  avatarUrl?: string
3528
3849
  }>
3529
- expiresAt: string
3530
3850
  }
3531
3851
  | {
3532
3852
  id: string
@@ -3736,7 +4056,6 @@ export type AddConnectorConnectionResponses = {
3736
4056
  description?: string
3737
4057
  avatarUrl?: string
3738
4058
  }>
3739
- expiresAt: string
3740
4059
  }
3741
4060
  | {
3742
4061
  id: string
@@ -3947,7 +4266,6 @@ export type SelectConnectorConnectionRunAccountResponses = {
3947
4266
  description?: string
3948
4267
  avatarUrl?: string
3949
4268
  }>
3950
- expiresAt: string
3951
4269
  }
3952
4270
  | {
3953
4271
  id: string
@@ -6953,6 +7271,10 @@ export type GetWorkflowRunFileContentData = {
6953
7271
  runId: string
6954
7272
  }
6955
7273
  query: {
7274
+ /**
7275
+ * Session audience for file navigation without Origin; must match Origin when present
7276
+ */
7277
+ audience?: "atlas" | "app"
6956
7278
  path: string
6957
7279
  disposition?: "inline" | "attachment"
6958
7280
  /**
@@ -7005,6 +7327,10 @@ export type HeadWorkflowRunFileContentData = {
7005
7327
  runId: string
7006
7328
  }
7007
7329
  query: {
7330
+ /**
7331
+ * Session audience for file navigation without Origin; must match Origin when present
7332
+ */
7333
+ audience?: "atlas" | "app"
7008
7334
  path: string
7009
7335
  disposition?: "inline" | "attachment"
7010
7336
  /**
@@ -7055,6 +7381,10 @@ export type GetWorkflowNodeRunFileContentData = {
7055
7381
  nodeKey: string
7056
7382
  }
7057
7383
  query: {
7384
+ /**
7385
+ * Session audience for file navigation without Origin; must match Origin when present
7386
+ */
7387
+ audience?: "atlas" | "app"
7058
7388
  path: string
7059
7389
  disposition?: "inline" | "attachment"
7060
7390
  /**
@@ -7108,6 +7438,10 @@ export type HeadWorkflowNodeRunFileContentData = {
7108
7438
  nodeKey: string
7109
7439
  }
7110
7440
  query: {
7441
+ /**
7442
+ * Session audience for file navigation without Origin; must match Origin when present
7443
+ */
7444
+ audience?: "atlas" | "app"
7111
7445
  path: string
7112
7446
  disposition?: "inline" | "attachment"
7113
7447
  /**
@@ -7965,7 +8299,6 @@ export type ListObjectTypesResponses = {
7965
8299
  text?: boolean
7966
8300
  exact?: boolean
7967
8301
  facet?: boolean
7968
- vector?: boolean
7969
8302
  weight?: number
7970
8303
  }
7971
8304
  }>
@@ -7973,9 +8306,19 @@ export type ListObjectTypesResponses = {
7973
8306
  title?: string
7974
8307
  defaultText?: Array<string>
7975
8308
  exact?: Array<string>
7976
- vector?: {
7977
- property: string
7978
- source: Array<string>
8309
+ vectors?: {
8310
+ [key: string]: {
8311
+ source: Array<string>
8312
+ model: {
8313
+ providerId: string
8314
+ modelId: string
8315
+ dimensions: number
8316
+ representation?: {
8317
+ name: string
8318
+ version?: string
8319
+ }
8320
+ }
8321
+ }
7979
8322
  }
7980
8323
  }
7981
8324
  links: Array<{
@@ -8001,7 +8344,6 @@ export type ListObjectTypesResponses = {
8001
8344
  text?: boolean
8002
8345
  exact?: boolean
8003
8346
  facet?: boolean
8004
- vector?: boolean
8005
8347
  weight?: number
8006
8348
  }
8007
8349
  }>
@@ -8072,7 +8414,6 @@ export type GetObjectTypeResponses = {
8072
8414
  text?: boolean
8073
8415
  exact?: boolean
8074
8416
  facet?: boolean
8075
- vector?: boolean
8076
8417
  weight?: number
8077
8418
  }
8078
8419
  }>
@@ -8080,9 +8421,19 @@ export type GetObjectTypeResponses = {
8080
8421
  title?: string
8081
8422
  defaultText?: Array<string>
8082
8423
  exact?: Array<string>
8083
- vector?: {
8084
- property: string
8085
- source: Array<string>
8424
+ vectors?: {
8425
+ [key: string]: {
8426
+ source: Array<string>
8427
+ model: {
8428
+ providerId: string
8429
+ modelId: string
8430
+ dimensions: number
8431
+ representation?: {
8432
+ name: string
8433
+ version?: string
8434
+ }
8435
+ }
8436
+ }
8086
8437
  }
8087
8438
  }
8088
8439
  links: Array<{
@@ -8108,7 +8459,6 @@ export type GetObjectTypeResponses = {
8108
8459
  text?: boolean
8109
8460
  exact?: boolean
8110
8461
  facet?: boolean
8111
- vector?: boolean
8112
8462
  weight?: number
8113
8463
  }
8114
8464
  }>
@@ -8218,6 +8568,7 @@ export type ListObjectsResponses = {
8218
8568
  */
8219
8569
  200: {
8220
8570
  objects: Array<{
8571
+ score?: number
8221
8572
  primaryId: string
8222
8573
  objectTypeId: string
8223
8574
  properties: {
@@ -8249,6 +8600,10 @@ export type QueryObjectsErrors = {
8249
8600
  * Response for status 403
8250
8601
  */
8251
8602
  403: ErrorResponse
8603
+ /**
8604
+ * AI usage limit exceeded or unavailable
8605
+ */
8606
+ 429: AiUsageLimitErrorResponse
8252
8607
  /**
8253
8608
  * Response for status 500
8254
8609
  */
@@ -8315,6 +8670,10 @@ export type CountObjectsErrors = {
8315
8670
  * Response for status 403
8316
8671
  */
8317
8672
  403: ErrorResponse
8673
+ /**
8674
+ * AI usage limit exceeded or unavailable
8675
+ */
8676
+ 429: AiUsageLimitErrorResponse
8318
8677
  /**
8319
8678
  * Response for status 500
8320
8679
  */
@@ -8348,6 +8707,10 @@ export type ExistsObjectsErrors = {
8348
8707
  * Response for status 403
8349
8708
  */
8350
8709
  403: ErrorResponse
8710
+ /**
8711
+ * AI usage limit exceeded or unavailable
8712
+ */
8713
+ 429: AiUsageLimitErrorResponse
8351
8714
  /**
8352
8715
  * Response for status 500
8353
8716
  */
@@ -8405,6 +8768,10 @@ export type GetObjectFileContentData = {
8405
8768
  objectId: string
8406
8769
  }
8407
8770
  query: {
8771
+ /**
8772
+ * Session audience for file navigation without Origin; must match Origin when present
8773
+ */
8774
+ audience?: "atlas" | "app"
8408
8775
  path: string
8409
8776
  disposition?: "inline" | "attachment"
8410
8777
  /**
@@ -8453,6 +8820,10 @@ export type HeadObjectFileContentData = {
8453
8820
  objectId: string
8454
8821
  }
8455
8822
  query: {
8823
+ /**
8824
+ * Session audience for file navigation without Origin; must match Origin when present
8825
+ */
8826
+ audience?: "atlas" | "app"
8456
8827
  path: string
8457
8828
  disposition?: "inline" | "attachment"
8458
8829
  /**
@@ -8518,6 +8889,7 @@ export type GetObjectResponses = {
8518
8889
  * Response for status 200
8519
8890
  */
8520
8891
  200: {
8892
+ score?: number
8521
8893
  primaryId: string
8522
8894
  objectTypeId: string
8523
8895
  properties: {
@@ -8572,6 +8944,7 @@ export type UpsertObjectResponses = {
8572
8944
  * Response for status 200
8573
8945
  */
8574
8946
  200: {
8947
+ score?: number
8575
8948
  primaryId: string
8576
8949
  objectTypeId: string
8577
8950
  properties: {
@@ -8823,6 +9196,7 @@ export type CreateFileUploadResponses = {
8823
9196
  }
8824
9197
  | {
8825
9198
  strategy: "multipart"
9199
+ partReceipt: "etag" | "none"
8826
9200
  uploadId: string
8827
9201
  partSizeBytes: number
8828
9202
  expiresAt: string
@@ -8943,7 +9317,7 @@ export type CompleteFileUploadData = {
8943
9317
  digest?: string
8944
9318
  parts?: Array<{
8945
9319
  partNumber: number
8946
- etag: string
9320
+ etag?: string
8947
9321
  }>
8948
9322
  }
8949
9323
  path: {
@@ -9315,6 +9689,10 @@ export type GetActionRunFileContentData = {
9315
9689
  runId: string
9316
9690
  }
9317
9691
  query: {
9692
+ /**
9693
+ * Session audience for file navigation without Origin; must match Origin when present
9694
+ */
9695
+ audience?: "atlas" | "app"
9318
9696
  path: string
9319
9697
  disposition?: "inline" | "attachment"
9320
9698
  /**
@@ -9367,6 +9745,10 @@ export type HeadActionRunFileContentData = {
9367
9745
  runId: string
9368
9746
  }
9369
9747
  query: {
9748
+ /**
9749
+ * Session audience for file navigation without Origin; must match Origin when present
9750
+ */
9751
+ audience?: "atlas" | "app"
9370
9752
  path: string
9371
9753
  disposition?: "inline" | "attachment"
9372
9754
  /**
@@ -9478,6 +9860,11 @@ export type ListAgentThreadsResponses = {
9478
9860
  */
9479
9861
  200: {
9480
9862
  threads: Array<{
9863
+ sandboxState?: {
9864
+ name: string
9865
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable"
9866
+ initialized: boolean
9867
+ }
9481
9868
  id: string
9482
9869
  projectId: string
9483
9870
  ownerPrincipal: {
@@ -9485,6 +9872,17 @@ export type ListAgentThreadsResponses = {
9485
9872
  id: string
9486
9873
  }
9487
9874
  title?: string
9875
+ sandboxParams?: {
9876
+ [key: string]:
9877
+ | string
9878
+ | number
9879
+ | boolean
9880
+ | Array<unknown>
9881
+ | {
9882
+ [key: string]: unknown
9883
+ }
9884
+ | null
9885
+ }
9488
9886
  status: "active" | "archived"
9489
9887
  activeRunId: string | null
9490
9888
  lastMessageAt?: string
@@ -9503,6 +9901,17 @@ export type CreateAgentThreadData = {
9503
9901
  body: {
9504
9902
  title?: string
9505
9903
  threadId?: string
9904
+ sandbox?: {
9905
+ [key: string]:
9906
+ | string
9907
+ | number
9908
+ | boolean
9909
+ | Array<unknown>
9910
+ | {
9911
+ [key: string]: unknown
9912
+ }
9913
+ | null
9914
+ }
9506
9915
  }
9507
9916
  path?: never
9508
9917
  query?: never
@@ -9544,6 +9953,11 @@ export type CreateAgentThreadResponses = {
9544
9953
  */
9545
9954
  201: {
9546
9955
  thread: {
9956
+ sandboxState?: {
9957
+ name: string
9958
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable"
9959
+ initialized: boolean
9960
+ }
9547
9961
  id: string
9548
9962
  projectId: string
9549
9963
  ownerPrincipal: {
@@ -9551,6 +9965,17 @@ export type CreateAgentThreadResponses = {
9551
9965
  id: string
9552
9966
  }
9553
9967
  title?: string
9968
+ sandboxParams?: {
9969
+ [key: string]:
9970
+ | string
9971
+ | number
9972
+ | boolean
9973
+ | Array<unknown>
9974
+ | {
9975
+ [key: string]: unknown
9976
+ }
9977
+ | null
9978
+ }
9554
9979
  status: "active" | "archived"
9555
9980
  activeRunId: string | null
9556
9981
  lastMessageAt?: string
@@ -9600,6 +10025,11 @@ export type GetAgentThreadResponses = {
9600
10025
  * Response for status 200
9601
10026
  */
9602
10027
  200: {
10028
+ sandboxState?: {
10029
+ name: string
10030
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable"
10031
+ initialized: boolean
10032
+ }
9603
10033
  id: string
9604
10034
  projectId: string
9605
10035
  ownerPrincipal: {
@@ -9607,6 +10037,17 @@ export type GetAgentThreadResponses = {
9607
10037
  id: string
9608
10038
  }
9609
10039
  title?: string
10040
+ sandboxParams?: {
10041
+ [key: string]:
10042
+ | string
10043
+ | number
10044
+ | boolean
10045
+ | Array<unknown>
10046
+ | {
10047
+ [key: string]: unknown
10048
+ }
10049
+ | null
10050
+ }
9610
10051
  status: "active" | "archived"
9611
10052
  activeRunId: string | null
9612
10053
  lastMessageAt?: string
@@ -9618,6 +10059,81 @@ export type GetAgentThreadResponses = {
9618
10059
 
9619
10060
  export type GetAgentThreadResponse = GetAgentThreadResponses[keyof GetAgentThreadResponses]
9620
10061
 
10062
+ export type RecreateAgentThreadSandboxData = {
10063
+ body: {
10064
+ expectedSandboxName: string
10065
+ }
10066
+ path: {
10067
+ threadId: string
10068
+ }
10069
+ query?: never
10070
+ url: "/api/agent-threads/{threadId}/sandbox/recreate"
10071
+ }
10072
+
10073
+ export type RecreateAgentThreadSandboxErrors = {
10074
+ /**
10075
+ * Response for status 400
10076
+ */
10077
+ 400: {
10078
+ error: string
10079
+ }
10080
+ /**
10081
+ * Response for status 404
10082
+ */
10083
+ 404: {
10084
+ error: string
10085
+ }
10086
+ /**
10087
+ * Response for status 409
10088
+ */
10089
+ 409: {
10090
+ error: string
10091
+ }
10092
+ }
10093
+
10094
+ export type RecreateAgentThreadSandboxError =
10095
+ RecreateAgentThreadSandboxErrors[keyof RecreateAgentThreadSandboxErrors]
10096
+
10097
+ export type RecreateAgentThreadSandboxResponses = {
10098
+ /**
10099
+ * Response for status 200
10100
+ */
10101
+ 200: {
10102
+ sandboxState?: {
10103
+ name: string
10104
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable"
10105
+ initialized: boolean
10106
+ }
10107
+ id: string
10108
+ projectId: string
10109
+ ownerPrincipal: {
10110
+ type: "user" | "serviceAccount" | "system"
10111
+ id: string
10112
+ }
10113
+ title?: string
10114
+ sandboxParams?: {
10115
+ [key: string]:
10116
+ | string
10117
+ | number
10118
+ | boolean
10119
+ | Array<unknown>
10120
+ | {
10121
+ [key: string]: unknown
10122
+ }
10123
+ | null
10124
+ }
10125
+ status: "active" | "archived"
10126
+ activeRunId: string | null
10127
+ lastMessageAt?: string
10128
+ messageCount: number
10129
+ createdAt: string
10130
+ updatedAt: string
10131
+ }
10132
+ }
10133
+
10134
+ export type RecreateAgentThreadSandboxResponse =
10135
+ RecreateAgentThreadSandboxResponses[keyof RecreateAgentThreadSandboxResponses]
10136
+
9621
10137
  export type ListAgentThreadMessagesData = {
9622
10138
  body?: never
9623
10139
  path: {
@@ -10139,6 +10655,10 @@ export type GetAgentMessageFileContentData = {
10139
10655
  messageId: string
10140
10656
  }
10141
10657
  query: {
10658
+ /**
10659
+ * Session audience for file navigation without Origin; must match Origin when present
10660
+ */
10661
+ audience?: "atlas" | "app"
10142
10662
  path: string
10143
10663
  disposition?: "inline" | "attachment"
10144
10664
  /**
@@ -10192,6 +10712,10 @@ export type HeadAgentMessageFileContentData = {
10192
10712
  messageId: string
10193
10713
  }
10194
10714
  query: {
10715
+ /**
10716
+ * Session audience for file navigation without Origin; must match Origin when present
10717
+ */
10718
+ audience?: "atlas" | "app"
10195
10719
  path: string
10196
10720
  disposition?: "inline" | "attachment"
10197
10721
  /**