@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
@@ -5,6 +5,7 @@ export type ErrorResponse = {
5
5
  error: string;
6
6
  };
7
7
  export type ObjectQueryObject = {
8
+ score?: number;
8
9
  primaryId: string;
9
10
  objectTypeId: string;
10
11
  properties: {
@@ -84,6 +85,19 @@ export type ObjectQueryLinksResponse = {
84
85
  hasMore: boolean;
85
86
  nextPageToken?: string;
86
87
  };
88
+ export type AiUsageLimitErrorResponse = {
89
+ error: string;
90
+ /**
91
+ * Stable machine-readable failure code for programmatic handling.
92
+ */
93
+ code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
94
+ /**
95
+ * Any JSON-compatible value.
96
+ */
97
+ details?: string | number | boolean | Array<unknown> | {
98
+ [key: string]: unknown;
99
+ } | null;
100
+ };
87
101
  export type ObjectQueryErrorResponse = {
88
102
  error: string;
89
103
  issues?: Array<ObjectQueryIssue>;
@@ -146,8 +160,8 @@ export type ObjectQuery = {
146
160
  } | {
147
161
  kind: "vector";
148
162
  input: ObjectQuery;
149
- vector: Array<number>;
150
- propertyId: string;
163
+ vector: string;
164
+ profile: string;
151
165
  k: number;
152
166
  } | {
153
167
  kind: "traverse";
@@ -1543,6 +1557,9 @@ export type GetAiAccountingOverviewResponses = {
1543
1557
  bucket: "hour" | "day" | "week";
1544
1558
  totals: {
1545
1559
  modelCallCount: number;
1560
+ /**
1561
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1562
+ */
1546
1563
  usage: {
1547
1564
  inputTokens?: number;
1548
1565
  outputTokens?: number;
@@ -1554,6 +1571,21 @@ export type GetAiAccountingOverviewResponses = {
1554
1571
  reasoningOutputTokens?: number;
1555
1572
  reportingStatus: "complete" | "partial" | "unavailable";
1556
1573
  };
1574
+ usageCoverage: {
1575
+ /**
1576
+ * Calls reporting both inputTokens and outputTokens.
1577
+ */
1578
+ completeCallCount: number;
1579
+ fieldCallCounts: {
1580
+ inputTokens: number;
1581
+ outputTokens: number;
1582
+ uncachedInputTokens: number;
1583
+ cacheReadInputTokens: number;
1584
+ cacheWriteInputTokens: number;
1585
+ textOutputTokens: number;
1586
+ reasoningOutputTokens: number;
1587
+ };
1588
+ };
1557
1589
  costs: {
1558
1590
  amounts: Array<{
1559
1591
  currency: string;
@@ -1566,6 +1598,9 @@ export type GetAiAccountingOverviewResponses = {
1566
1598
  };
1567
1599
  series: Array<{
1568
1600
  modelCallCount: number;
1601
+ /**
1602
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1603
+ */
1569
1604
  usage: {
1570
1605
  inputTokens?: number;
1571
1606
  outputTokens?: number;
@@ -1577,6 +1612,21 @@ export type GetAiAccountingOverviewResponses = {
1577
1612
  reasoningOutputTokens?: number;
1578
1613
  reportingStatus: "complete" | "partial" | "unavailable";
1579
1614
  };
1615
+ usageCoverage: {
1616
+ /**
1617
+ * Calls reporting both inputTokens and outputTokens.
1618
+ */
1619
+ completeCallCount: number;
1620
+ fieldCallCounts: {
1621
+ inputTokens: number;
1622
+ outputTokens: number;
1623
+ uncachedInputTokens: number;
1624
+ cacheReadInputTokens: number;
1625
+ cacheWriteInputTokens: number;
1626
+ textOutputTokens: number;
1627
+ reasoningOutputTokens: number;
1628
+ };
1629
+ };
1580
1630
  costs: {
1581
1631
  amounts: Array<{
1582
1632
  currency: string;
@@ -1591,6 +1641,9 @@ export type GetAiAccountingOverviewResponses = {
1591
1641
  }>;
1592
1642
  models: Array<{
1593
1643
  modelCallCount: number;
1644
+ /**
1645
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1646
+ */
1594
1647
  usage: {
1595
1648
  inputTokens?: number;
1596
1649
  outputTokens?: number;
@@ -1602,6 +1655,21 @@ export type GetAiAccountingOverviewResponses = {
1602
1655
  reasoningOutputTokens?: number;
1603
1656
  reportingStatus: "complete" | "partial" | "unavailable";
1604
1657
  };
1658
+ usageCoverage: {
1659
+ /**
1660
+ * Calls reporting both inputTokens and outputTokens.
1661
+ */
1662
+ completeCallCount: number;
1663
+ fieldCallCounts: {
1664
+ inputTokens: number;
1665
+ outputTokens: number;
1666
+ uncachedInputTokens: number;
1667
+ cacheReadInputTokens: number;
1668
+ cacheWriteInputTokens: number;
1669
+ textOutputTokens: number;
1670
+ reasoningOutputTokens: number;
1671
+ };
1672
+ };
1605
1673
  costs: {
1606
1674
  amounts: Array<{
1607
1675
  currency: string;
@@ -1616,6 +1684,9 @@ export type GetAiAccountingOverviewResponses = {
1616
1684
  }>;
1617
1685
  agents: Array<{
1618
1686
  modelCallCount: number;
1687
+ /**
1688
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1689
+ */
1619
1690
  usage: {
1620
1691
  inputTokens?: number;
1621
1692
  outputTokens?: number;
@@ -1627,6 +1698,21 @@ export type GetAiAccountingOverviewResponses = {
1627
1698
  reasoningOutputTokens?: number;
1628
1699
  reportingStatus: "complete" | "partial" | "unavailable";
1629
1700
  };
1701
+ usageCoverage: {
1702
+ /**
1703
+ * Calls reporting both inputTokens and outputTokens.
1704
+ */
1705
+ completeCallCount: number;
1706
+ fieldCallCounts: {
1707
+ inputTokens: number;
1708
+ outputTokens: number;
1709
+ uncachedInputTokens: number;
1710
+ cacheReadInputTokens: number;
1711
+ cacheWriteInputTokens: number;
1712
+ textOutputTokens: number;
1713
+ reasoningOutputTokens: number;
1714
+ };
1715
+ };
1630
1716
  costs: {
1631
1717
  amounts: Array<{
1632
1718
  currency: string;
@@ -1639,6 +1725,9 @@ export type GetAiAccountingOverviewResponses = {
1639
1725
  kind: "agent";
1640
1726
  } | {
1641
1727
  modelCallCount: number;
1728
+ /**
1729
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1730
+ */
1642
1731
  usage: {
1643
1732
  inputTokens?: number;
1644
1733
  outputTokens?: number;
@@ -1650,6 +1739,21 @@ export type GetAiAccountingOverviewResponses = {
1650
1739
  reasoningOutputTokens?: number;
1651
1740
  reportingStatus: "complete" | "partial" | "unavailable";
1652
1741
  };
1742
+ usageCoverage: {
1743
+ /**
1744
+ * Calls reporting both inputTokens and outputTokens.
1745
+ */
1746
+ completeCallCount: number;
1747
+ fieldCallCounts: {
1748
+ inputTokens: number;
1749
+ outputTokens: number;
1750
+ uncachedInputTokens: number;
1751
+ cacheReadInputTokens: number;
1752
+ cacheWriteInputTokens: number;
1753
+ textOutputTokens: number;
1754
+ reasoningOutputTokens: number;
1755
+ };
1756
+ };
1653
1757
  costs: {
1654
1758
  amounts: Array<{
1655
1759
  currency: string;
@@ -1665,6 +1769,9 @@ export type GetAiAccountingOverviewResponses = {
1665
1769
  }>;
1666
1770
  workflows: Array<{
1667
1771
  modelCallCount: number;
1772
+ /**
1773
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
1774
+ */
1668
1775
  usage: {
1669
1776
  inputTokens?: number;
1670
1777
  outputTokens?: number;
@@ -1676,6 +1783,21 @@ export type GetAiAccountingOverviewResponses = {
1676
1783
  reasoningOutputTokens?: number;
1677
1784
  reportingStatus: "complete" | "partial" | "unavailable";
1678
1785
  };
1786
+ usageCoverage: {
1787
+ /**
1788
+ * Calls reporting both inputTokens and outputTokens.
1789
+ */
1790
+ completeCallCount: number;
1791
+ fieldCallCounts: {
1792
+ inputTokens: number;
1793
+ outputTokens: number;
1794
+ uncachedInputTokens: number;
1795
+ cacheReadInputTokens: number;
1796
+ cacheWriteInputTokens: number;
1797
+ textOutputTokens: number;
1798
+ reasoningOutputTokens: number;
1799
+ };
1800
+ };
1679
1801
  costs: {
1680
1802
  amounts: Array<{
1681
1803
  currency: string;
@@ -2846,6 +2968,168 @@ export type RevokeConnectorConnectionResponses = {
2846
2968
  };
2847
2969
  };
2848
2970
  export type RevokeConnectorConnectionResponse = RevokeConnectorConnectionResponses[keyof RevokeConnectorConnectionResponses];
2971
+ export type ListPendingConnectorConnectionRunsData = {
2972
+ body?: never;
2973
+ path: {
2974
+ connectorId: string;
2975
+ };
2976
+ query?: never;
2977
+ url: "/api/connectors/{connectorId}/connection-runs";
2978
+ };
2979
+ export type ListPendingConnectorConnectionRunsErrors = {
2980
+ /**
2981
+ * Response for status 400
2982
+ */
2983
+ 400: {
2984
+ error: string;
2985
+ /**
2986
+ * Stable machine-readable failure code for programmatic handling.
2987
+ */
2988
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid";
2989
+ };
2990
+ /**
2991
+ * Response for status 403
2992
+ */
2993
+ 403: {
2994
+ error: string;
2995
+ };
2996
+ /**
2997
+ * Response for status 404
2998
+ */
2999
+ 404: {
3000
+ error: string;
3001
+ /**
3002
+ * Stable machine-readable failure code for programmatic handling.
3003
+ */
3004
+ code?: "connector.not_found";
3005
+ };
3006
+ /**
3007
+ * Response for status 500
3008
+ */
3009
+ 500: {
3010
+ error: string;
3011
+ /**
3012
+ * Stable machine-readable failure code for programmatic handling.
3013
+ */
3014
+ code?: "internal.unexpected";
3015
+ };
3016
+ };
3017
+ export type ListPendingConnectorConnectionRunsError = ListPendingConnectorConnectionRunsErrors[keyof ListPendingConnectorConnectionRunsErrors];
3018
+ export type ListPendingConnectorConnectionRunsResponses = {
3019
+ /**
3020
+ * Response for status 200
3021
+ */
3022
+ 200: Array<{
3023
+ id: string;
3024
+ connectorId: string;
3025
+ kind: "connect" | "reauthorize";
3026
+ owner: {
3027
+ type: "project";
3028
+ };
3029
+ slot: string;
3030
+ createdAt: string;
3031
+ updatedAt: string;
3032
+ status: "waiting";
3033
+ waitingFor: "provider_authorization";
3034
+ expiresAt: string;
3035
+ } | {
3036
+ id: string;
3037
+ connectorId: string;
3038
+ kind: "connect" | "reauthorize";
3039
+ owner: {
3040
+ type: "project";
3041
+ };
3042
+ slot: string;
3043
+ createdAt: string;
3044
+ updatedAt: string;
3045
+ status: "running";
3046
+ } | {
3047
+ id: string;
3048
+ connectorId: string;
3049
+ kind: "connect" | "reauthorize";
3050
+ owner: {
3051
+ type: "project";
3052
+ };
3053
+ slot: string;
3054
+ createdAt: string;
3055
+ updatedAt: string;
3056
+ status: "waiting";
3057
+ waitingFor: "account_selection";
3058
+ accounts: Array<{
3059
+ id: string;
3060
+ label: string;
3061
+ description?: string;
3062
+ avatarUrl?: string;
3063
+ }>;
3064
+ } | {
3065
+ id: string;
3066
+ connectorId: string;
3067
+ kind: "connect" | "reauthorize";
3068
+ owner: {
3069
+ type: "project";
3070
+ };
3071
+ slot: string;
3072
+ createdAt: string;
3073
+ updatedAt: string;
3074
+ status: "succeeded";
3075
+ connections: Array<{
3076
+ id: string;
3077
+ connectorId: string;
3078
+ owner: {
3079
+ type: "project";
3080
+ };
3081
+ slot: string;
3082
+ account: {
3083
+ id: string;
3084
+ label: string;
3085
+ description?: string;
3086
+ avatarUrl?: string;
3087
+ };
3088
+ status: "connected" | "needs_reauthorization" | "disconnected";
3089
+ }>;
3090
+ finishedAt: string;
3091
+ } | {
3092
+ id: string;
3093
+ connectorId: string;
3094
+ kind: "connect" | "reauthorize";
3095
+ owner: {
3096
+ type: "project";
3097
+ };
3098
+ slot: string;
3099
+ createdAt: string;
3100
+ updatedAt: string;
3101
+ status: "failed";
3102
+ error: {
3103
+ code: "internal.unexpected" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable";
3104
+ message: string;
3105
+ retryable: boolean;
3106
+ at: string;
3107
+ /**
3108
+ * Any JSON-compatible value.
3109
+ */
3110
+ details?: string | number | boolean | Array<unknown> | {
3111
+ [key: string]: unknown;
3112
+ } | null;
3113
+ httpStatus?: number;
3114
+ redacted?: true;
3115
+ truncated?: true;
3116
+ };
3117
+ finishedAt: string;
3118
+ } | {
3119
+ id: string;
3120
+ connectorId: string;
3121
+ kind: "connect" | "reauthorize";
3122
+ owner: {
3123
+ type: "project";
3124
+ };
3125
+ slot: string;
3126
+ createdAt: string;
3127
+ updatedAt: string;
3128
+ status: "cancelled" | "expired";
3129
+ finishedAt: string;
3130
+ }>;
3131
+ };
3132
+ export type ListPendingConnectorConnectionRunsResponse = ListPendingConnectorConnectionRunsResponses[keyof ListPendingConnectorConnectionRunsResponses];
2849
3133
  export type StartConnectorConnectionRunData = {
2850
3134
  body: {
2851
3135
  slot: string;
@@ -3045,7 +3329,6 @@ export type GetConnectorConnectionRunResponses = {
3045
3329
  description?: string;
3046
3330
  avatarUrl?: string;
3047
3331
  }>;
3048
- expiresAt: string;
3049
3332
  } | {
3050
3333
  id: string;
3051
3334
  connectorId: string;
@@ -3221,7 +3504,6 @@ export type AddConnectorConnectionResponses = {
3221
3504
  description?: string;
3222
3505
  avatarUrl?: string;
3223
3506
  }>;
3224
- expiresAt: string;
3225
3507
  } | {
3226
3508
  id: string;
3227
3509
  connectorId: string;
@@ -3398,7 +3680,6 @@ export type SelectConnectorConnectionRunAccountResponses = {
3398
3680
  description?: string;
3399
3681
  avatarUrl?: string;
3400
3682
  }>;
3401
- expiresAt: string;
3402
3683
  } | {
3403
3684
  id: string;
3404
3685
  connectorId: string;
@@ -5663,6 +5944,10 @@ export type GetWorkflowRunFileContentData = {
5663
5944
  runId: string;
5664
5945
  };
5665
5946
  query: {
5947
+ /**
5948
+ * Session audience for file navigation without Origin; must match Origin when present
5949
+ */
5950
+ audience?: "atlas" | "app";
5666
5951
  path: string;
5667
5952
  disposition?: "inline" | "attachment";
5668
5953
  /**
@@ -5708,6 +5993,10 @@ export type HeadWorkflowRunFileContentData = {
5708
5993
  runId: string;
5709
5994
  };
5710
5995
  query: {
5996
+ /**
5997
+ * Session audience for file navigation without Origin; must match Origin when present
5998
+ */
5999
+ audience?: "atlas" | "app";
5711
6000
  path: string;
5712
6001
  disposition?: "inline" | "attachment";
5713
6002
  /**
@@ -5753,6 +6042,10 @@ export type GetWorkflowNodeRunFileContentData = {
5753
6042
  nodeKey: string;
5754
6043
  };
5755
6044
  query: {
6045
+ /**
6046
+ * Session audience for file navigation without Origin; must match Origin when present
6047
+ */
6048
+ audience?: "atlas" | "app";
5756
6049
  path: string;
5757
6050
  disposition?: "inline" | "attachment";
5758
6051
  /**
@@ -5799,6 +6092,10 @@ export type HeadWorkflowNodeRunFileContentData = {
5799
6092
  nodeKey: string;
5800
6093
  };
5801
6094
  query: {
6095
+ /**
6096
+ * Session audience for file navigation without Origin; must match Origin when present
6097
+ */
6098
+ audience?: "atlas" | "app";
5802
6099
  path: string;
5803
6100
  disposition?: "inline" | "attachment";
5804
6101
  /**
@@ -6535,7 +6832,6 @@ export type ListObjectTypesResponses = {
6535
6832
  text?: boolean;
6536
6833
  exact?: boolean;
6537
6834
  facet?: boolean;
6538
- vector?: boolean;
6539
6835
  weight?: number;
6540
6836
  };
6541
6837
  }>;
@@ -6543,9 +6839,19 @@ export type ListObjectTypesResponses = {
6543
6839
  title?: string;
6544
6840
  defaultText?: Array<string>;
6545
6841
  exact?: Array<string>;
6546
- vector?: {
6547
- property: string;
6548
- source: Array<string>;
6842
+ vectors?: {
6843
+ [key: string]: {
6844
+ source: Array<string>;
6845
+ model: {
6846
+ providerId: string;
6847
+ modelId: string;
6848
+ dimensions: number;
6849
+ representation?: {
6850
+ name: string;
6851
+ version?: string;
6852
+ };
6853
+ };
6854
+ };
6549
6855
  };
6550
6856
  };
6551
6857
  links: Array<{
@@ -6571,7 +6877,6 @@ export type ListObjectTypesResponses = {
6571
6877
  text?: boolean;
6572
6878
  exact?: boolean;
6573
6879
  facet?: boolean;
6574
- vector?: boolean;
6575
6880
  weight?: number;
6576
6881
  };
6577
6882
  }>;
@@ -6637,7 +6942,6 @@ export type GetObjectTypeResponses = {
6637
6942
  text?: boolean;
6638
6943
  exact?: boolean;
6639
6944
  facet?: boolean;
6640
- vector?: boolean;
6641
6945
  weight?: number;
6642
6946
  };
6643
6947
  }>;
@@ -6645,9 +6949,19 @@ export type GetObjectTypeResponses = {
6645
6949
  title?: string;
6646
6950
  defaultText?: Array<string>;
6647
6951
  exact?: Array<string>;
6648
- vector?: {
6649
- property: string;
6650
- source: Array<string>;
6952
+ vectors?: {
6953
+ [key: string]: {
6954
+ source: Array<string>;
6955
+ model: {
6956
+ providerId: string;
6957
+ modelId: string;
6958
+ dimensions: number;
6959
+ representation?: {
6960
+ name: string;
6961
+ version?: string;
6962
+ };
6963
+ };
6964
+ };
6651
6965
  };
6652
6966
  };
6653
6967
  links: Array<{
@@ -6673,7 +6987,6 @@ export type GetObjectTypeResponses = {
6673
6987
  text?: boolean;
6674
6988
  exact?: boolean;
6675
6989
  facet?: boolean;
6676
- vector?: boolean;
6677
6990
  weight?: number;
6678
6991
  };
6679
6992
  }>;
@@ -6773,6 +7086,7 @@ export type ListObjectsResponses = {
6773
7086
  */
6774
7087
  200: {
6775
7088
  objects: Array<{
7089
+ score?: number;
6776
7090
  primaryId: string;
6777
7091
  objectTypeId: string;
6778
7092
  properties: {
@@ -6801,6 +7115,10 @@ export type QueryObjectsErrors = {
6801
7115
  * Response for status 403
6802
7116
  */
6803
7117
  403: ErrorResponse;
7118
+ /**
7119
+ * AI usage limit exceeded or unavailable
7120
+ */
7121
+ 429: AiUsageLimitErrorResponse;
6804
7122
  /**
6805
7123
  * Response for status 500
6806
7124
  */
@@ -6857,6 +7175,10 @@ export type CountObjectsErrors = {
6857
7175
  * Response for status 403
6858
7176
  */
6859
7177
  403: ErrorResponse;
7178
+ /**
7179
+ * AI usage limit exceeded or unavailable
7180
+ */
7181
+ 429: AiUsageLimitErrorResponse;
6860
7182
  /**
6861
7183
  * Response for status 500
6862
7184
  */
@@ -6885,6 +7207,10 @@ export type ExistsObjectsErrors = {
6885
7207
  * Response for status 403
6886
7208
  */
6887
7209
  403: ErrorResponse;
7210
+ /**
7211
+ * AI usage limit exceeded or unavailable
7212
+ */
7213
+ 429: AiUsageLimitErrorResponse;
6888
7214
  /**
6889
7215
  * Response for status 500
6890
7216
  */
@@ -6933,6 +7259,10 @@ export type GetObjectFileContentData = {
6933
7259
  objectId: string;
6934
7260
  };
6935
7261
  query: {
7262
+ /**
7263
+ * Session audience for file navigation without Origin; must match Origin when present
7264
+ */
7265
+ audience?: "atlas" | "app";
6936
7266
  path: string;
6937
7267
  disposition?: "inline" | "attachment";
6938
7268
  /**
@@ -6975,6 +7305,10 @@ export type HeadObjectFileContentData = {
6975
7305
  objectId: string;
6976
7306
  };
6977
7307
  query: {
7308
+ /**
7309
+ * Session audience for file navigation without Origin; must match Origin when present
7310
+ */
7311
+ audience?: "atlas" | "app";
6978
7312
  path: string;
6979
7313
  disposition?: "inline" | "attachment";
6980
7314
  /**
@@ -7032,6 +7366,7 @@ export type GetObjectResponses = {
7032
7366
  * Response for status 200
7033
7367
  */
7034
7368
  200: {
7369
+ score?: number;
7035
7370
  primaryId: string;
7036
7371
  objectTypeId: string;
7037
7372
  properties: {
@@ -7081,6 +7416,7 @@ export type UpsertObjectResponses = {
7081
7416
  * Response for status 200
7082
7417
  */
7083
7418
  200: {
7419
+ score?: number;
7084
7420
  primaryId: string;
7085
7421
  objectTypeId: string;
7086
7422
  properties: {
@@ -7304,6 +7640,7 @@ export type CreateFileUploadResponses = {
7304
7640
  expiresAt: string;
7305
7641
  } | {
7306
7642
  strategy: "multipart";
7643
+ partReceipt: "etag" | "none";
7307
7644
  uploadId: string;
7308
7645
  partSizeBytes: number;
7309
7646
  expiresAt: string;
@@ -7411,7 +7748,7 @@ export type CompleteFileUploadData = {
7411
7748
  digest?: string;
7412
7749
  parts?: Array<{
7413
7750
  partNumber: number;
7414
- etag: string;
7751
+ etag?: string;
7415
7752
  }>;
7416
7753
  };
7417
7754
  path: {
@@ -7700,6 +8037,10 @@ export type GetActionRunFileContentData = {
7700
8037
  runId: string;
7701
8038
  };
7702
8039
  query: {
8040
+ /**
8041
+ * Session audience for file navigation without Origin; must match Origin when present
8042
+ */
8043
+ audience?: "atlas" | "app";
7703
8044
  path: string;
7704
8045
  disposition?: "inline" | "attachment";
7705
8046
  /**
@@ -7745,6 +8086,10 @@ export type HeadActionRunFileContentData = {
7745
8086
  runId: string;
7746
8087
  };
7747
8088
  query: {
8089
+ /**
8090
+ * Session audience for file navigation without Origin; must match Origin when present
8091
+ */
8092
+ audience?: "atlas" | "app";
7748
8093
  path: string;
7749
8094
  disposition?: "inline" | "attachment";
7750
8095
  /**
@@ -7843,6 +8188,11 @@ export type ListAgentThreadsResponses = {
7843
8188
  */
7844
8189
  200: {
7845
8190
  threads: Array<{
8191
+ sandboxState?: {
8192
+ name: string;
8193
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable";
8194
+ initialized: boolean;
8195
+ };
7846
8196
  id: string;
7847
8197
  projectId: string;
7848
8198
  ownerPrincipal: {
@@ -7850,6 +8200,11 @@ export type ListAgentThreadsResponses = {
7850
8200
  id: string;
7851
8201
  };
7852
8202
  title?: string;
8203
+ sandboxParams?: {
8204
+ [key: string]: string | number | boolean | Array<unknown> | {
8205
+ [key: string]: unknown;
8206
+ } | null;
8207
+ };
7853
8208
  status: "active" | "archived";
7854
8209
  activeRunId: string | null;
7855
8210
  lastMessageAt?: string;
@@ -7866,6 +8221,11 @@ export type CreateAgentThreadData = {
7866
8221
  body: {
7867
8222
  title?: string;
7868
8223
  threadId?: string;
8224
+ sandbox?: {
8225
+ [key: string]: string | number | boolean | Array<unknown> | {
8226
+ [key: string]: unknown;
8227
+ } | null;
8228
+ };
7869
8229
  };
7870
8230
  path?: never;
7871
8231
  query?: never;
@@ -7904,6 +8264,11 @@ export type CreateAgentThreadResponses = {
7904
8264
  */
7905
8265
  201: {
7906
8266
  thread: {
8267
+ sandboxState?: {
8268
+ name: string;
8269
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable";
8270
+ initialized: boolean;
8271
+ };
7907
8272
  id: string;
7908
8273
  projectId: string;
7909
8274
  ownerPrincipal: {
@@ -7911,6 +8276,11 @@ export type CreateAgentThreadResponses = {
7911
8276
  id: string;
7912
8277
  };
7913
8278
  title?: string;
8279
+ sandboxParams?: {
8280
+ [key: string]: string | number | boolean | Array<unknown> | {
8281
+ [key: string]: unknown;
8282
+ } | null;
8283
+ };
7914
8284
  status: "active" | "archived";
7915
8285
  activeRunId: string | null;
7916
8286
  lastMessageAt?: string;
@@ -7955,6 +8325,11 @@ export type GetAgentThreadResponses = {
7955
8325
  * Response for status 200
7956
8326
  */
7957
8327
  200: {
8328
+ sandboxState?: {
8329
+ name: string;
8330
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable";
8331
+ initialized: boolean;
8332
+ };
7958
8333
  id: string;
7959
8334
  projectId: string;
7960
8335
  ownerPrincipal: {
@@ -7962,6 +8337,11 @@ export type GetAgentThreadResponses = {
7962
8337
  id: string;
7963
8338
  };
7964
8339
  title?: string;
8340
+ sandboxParams?: {
8341
+ [key: string]: string | number | boolean | Array<unknown> | {
8342
+ [key: string]: unknown;
8343
+ } | null;
8344
+ };
7965
8345
  status: "active" | "archived";
7966
8346
  activeRunId: string | null;
7967
8347
  lastMessageAt?: string;
@@ -7971,6 +8351,68 @@ export type GetAgentThreadResponses = {
7971
8351
  };
7972
8352
  };
7973
8353
  export type GetAgentThreadResponse = GetAgentThreadResponses[keyof GetAgentThreadResponses];
8354
+ export type RecreateAgentThreadSandboxData = {
8355
+ body: {
8356
+ expectedSandboxName: string;
8357
+ };
8358
+ path: {
8359
+ threadId: string;
8360
+ };
8361
+ query?: never;
8362
+ url: "/api/agent-threads/{threadId}/sandbox/recreate";
8363
+ };
8364
+ export type RecreateAgentThreadSandboxErrors = {
8365
+ /**
8366
+ * Response for status 400
8367
+ */
8368
+ 400: {
8369
+ error: string;
8370
+ };
8371
+ /**
8372
+ * Response for status 404
8373
+ */
8374
+ 404: {
8375
+ error: string;
8376
+ };
8377
+ /**
8378
+ * Response for status 409
8379
+ */
8380
+ 409: {
8381
+ error: string;
8382
+ };
8383
+ };
8384
+ export type RecreateAgentThreadSandboxError = RecreateAgentThreadSandboxErrors[keyof RecreateAgentThreadSandboxErrors];
8385
+ export type RecreateAgentThreadSandboxResponses = {
8386
+ /**
8387
+ * Response for status 200
8388
+ */
8389
+ 200: {
8390
+ sandboxState?: {
8391
+ name: string;
8392
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable";
8393
+ initialized: boolean;
8394
+ };
8395
+ id: string;
8396
+ projectId: string;
8397
+ ownerPrincipal: {
8398
+ type: "user" | "serviceAccount" | "system";
8399
+ id: string;
8400
+ };
8401
+ title?: string;
8402
+ sandboxParams?: {
8403
+ [key: string]: string | number | boolean | Array<unknown> | {
8404
+ [key: string]: unknown;
8405
+ } | null;
8406
+ };
8407
+ status: "active" | "archived";
8408
+ activeRunId: string | null;
8409
+ lastMessageAt?: string;
8410
+ messageCount: number;
8411
+ createdAt: string;
8412
+ updatedAt: string;
8413
+ };
8414
+ };
8415
+ export type RecreateAgentThreadSandboxResponse = RecreateAgentThreadSandboxResponses[keyof RecreateAgentThreadSandboxResponses];
7974
8416
  export type ListAgentThreadMessagesData = {
7975
8417
  body?: never;
7976
8418
  path: {
@@ -8338,6 +8780,10 @@ export type GetAgentMessageFileContentData = {
8338
8780
  messageId: string;
8339
8781
  };
8340
8782
  query: {
8783
+ /**
8784
+ * Session audience for file navigation without Origin; must match Origin when present
8785
+ */
8786
+ audience?: "atlas" | "app";
8341
8787
  path: string;
8342
8788
  disposition?: "inline" | "attachment";
8343
8789
  /**
@@ -8384,6 +8830,10 @@ export type HeadAgentMessageFileContentData = {
8384
8830
  messageId: string;
8385
8831
  };
8386
8832
  query: {
8833
+ /**
8834
+ * Session audience for file navigation without Origin; must match Origin when present
8835
+ */
8836
+ audience?: "atlas" | "app";
8387
8837
  path: string;
8388
8838
  disposition?: "inline" | "attachment";
8389
8839
  /**