@vibexp/api-client 0.48.0 → 0.50.0
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.
- package/dist/axios/sdk.gen.d.ts +61 -68
- package/dist/axios/sdk.gen.js +61 -68
- package/dist/axios/types.gen.d.ts +6 -12
- package/dist/schema.d.ts +72 -93
- package/package.json +1 -1
package/dist/axios/sdk.gen.d.ts
CHANGED
|
@@ -111,21 +111,21 @@ export declare const createApiKey: <ThrowOnError extends boolean = false>(option
|
|
|
111
111
|
*/
|
|
112
112
|
export declare const deleteApiKey: <ThrowOnError extends boolean = false>(options: Options<DeleteApiKeyData, ThrowOnError>) => RequestResult<DeleteApiKeyResponses, DeleteApiKeyErrors, ThrowOnError>;
|
|
113
113
|
/**
|
|
114
|
-
* List API keys
|
|
114
|
+
* List API keys
|
|
115
115
|
*
|
|
116
|
-
* Retrieves all API keys for the authenticated user
|
|
116
|
+
* Retrieves all API keys for the authenticated user
|
|
117
117
|
*/
|
|
118
118
|
export declare const listApiKeysSettings: <ThrowOnError extends boolean = false>(options?: Options<ListApiKeysSettingsData, ThrowOnError>) => RequestResult<ListApiKeysSettingsResponses, ListApiKeysSettingsErrors, ThrowOnError>;
|
|
119
119
|
/**
|
|
120
|
-
* Create new API key
|
|
120
|
+
* Create new API key
|
|
121
121
|
*
|
|
122
|
-
* Creates a new API key for the authenticated user
|
|
122
|
+
* Creates a new API key for the authenticated user
|
|
123
123
|
*/
|
|
124
124
|
export declare const createApiKeySettings: <ThrowOnError extends boolean = false>(options: Options<CreateApiKeySettingsData, ThrowOnError>) => RequestResult<CreateApiKeySettingsResponses, CreateApiKeySettingsErrors, ThrowOnError>;
|
|
125
125
|
/**
|
|
126
|
-
* Delete API key
|
|
126
|
+
* Delete API key
|
|
127
127
|
*
|
|
128
|
-
* Deletes an API key by ID
|
|
128
|
+
* Deletes an API key by ID
|
|
129
129
|
*/
|
|
130
130
|
export declare const deleteApiKeySettings: <ThrowOnError extends boolean = false>(options: Options<DeleteApiKeySettingsData, ThrowOnError>) => RequestResult<DeleteApiKeySettingsResponses, DeleteApiKeySettingsErrors, ThrowOnError>;
|
|
131
131
|
/**
|
|
@@ -858,9 +858,6 @@ export declare const listTeams: <ThrowOnError extends boolean = false>(options?:
|
|
|
858
858
|
* default "Project 1" project inside it so resources created immediately
|
|
859
859
|
* afterwards are correctly scoped.
|
|
860
860
|
*
|
|
861
|
-
* Team creation is subject to the plan's team resource limit; exceeding it
|
|
862
|
-
* returns `403` with code `RESOURCE_LIMIT_EXCEEDED`.
|
|
863
|
-
*
|
|
864
861
|
*/
|
|
865
862
|
export declare const createTeam: <ThrowOnError extends boolean = false>(options: Options<CreateTeamData, ThrowOnError>) => RequestResult<CreateTeamResponses, CreateTeamErrors, ThrowOnError>;
|
|
866
863
|
/**
|
|
@@ -871,8 +868,6 @@ export declare const createTeam: <ThrowOnError extends boolean = false>(options:
|
|
|
871
868
|
*
|
|
872
869
|
* Deletion conflicts return `409` with RFC 9457 problem details carrying an
|
|
873
870
|
* UPPERCASE `code` and string-valued `metadata`:
|
|
874
|
-
* - `ACTIVE_SUBSCRIPTION_EXISTS` — the team still has an active subscription
|
|
875
|
-
* - `SUBSCRIPTION_CANCELING` — the subscription is scheduled to cancel; retry after `metadata.cancel_at`
|
|
876
871
|
* - `TEAM_HAS_MEMBERS` — remove all members first (`metadata.member_count`)
|
|
877
872
|
*
|
|
878
873
|
*/
|
|
@@ -945,15 +940,8 @@ export declare const listTeamInvitations: <ThrowOnError extends boolean = false>
|
|
|
945
940
|
* Send team invitations
|
|
946
941
|
*
|
|
947
942
|
* Sends invitations to join the team to up to 50 email addresses with the given
|
|
948
|
-
* role. Requires an eligible team (not a personal workspace)
|
|
949
|
-
*
|
|
950
|
-
*
|
|
951
|
-
* Limit failures return `403` with code `RESOURCE_LIMIT_EXCEEDED` and a
|
|
952
|
-
* `metadata` object: for missing subscriptions it carries `team_id`, `feature`
|
|
953
|
-
* and `upgrade_url`; for seat limits it carries `team_id` plus seat accounting fields
|
|
954
|
-
* (`total_seats`, `occupied_seats`, `current_members`, `pending_invitations`,
|
|
955
|
-
* `requested_invitations`, `available_seats`, `additional_seats_needed`,
|
|
956
|
-
* `upgrade_url`).
|
|
943
|
+
* role. Requires an eligible team (not a personal workspace). Team membership is
|
|
944
|
+
* unlimited.
|
|
957
945
|
*
|
|
958
946
|
* Inviting users who are already team members returns `409` with code
|
|
959
947
|
* `DUPLICATE_MEMBERS` and a top-level `duplicate_emails` string array.
|
|
@@ -1460,18 +1448,18 @@ export declare const getTeamSearchSettings: <ThrowOnError extends boolean = fals
|
|
|
1460
1448
|
*/
|
|
1461
1449
|
export declare const updateTeamSearchSettings: <ThrowOnError extends boolean = false>(options: Options<UpdateTeamSearchSettingsData, ThrowOnError>) => RequestResult<UpdateTeamSearchSettingsResponses, UpdateTeamSearchSettingsErrors, ThrowOnError>;
|
|
1462
1450
|
/**
|
|
1463
|
-
* List embedding providers
|
|
1451
|
+
* List embedding providers
|
|
1464
1452
|
*
|
|
1465
|
-
* Retrieves all embedding providers belonging to the authenticated user
|
|
1453
|
+
* Retrieves all embedding providers belonging to the authenticated user.
|
|
1466
1454
|
* Returns a bare JSON array (no pagination envelope). Encrypted API keys
|
|
1467
1455
|
* are never included; each item carries a `has_api_key` boolean instead.
|
|
1468
1456
|
*
|
|
1469
1457
|
*/
|
|
1470
1458
|
export declare const listEmbeddingProvidersSettings: <ThrowOnError extends boolean = false>(options: Options<ListEmbeddingProvidersSettingsData, ThrowOnError>) => RequestResult<ListEmbeddingProvidersSettingsResponses, ListEmbeddingProvidersSettingsErrors, ThrowOnError>;
|
|
1471
1459
|
/**
|
|
1472
|
-
* Create embedding provider
|
|
1460
|
+
* Create embedding provider
|
|
1473
1461
|
*
|
|
1474
|
-
* Creates a new embedding provider configuration for the authenticated user
|
|
1462
|
+
* Creates a new embedding provider configuration for the authenticated user.
|
|
1475
1463
|
* The `api_key` supplied in the request is encrypted at rest and is never
|
|
1476
1464
|
* returned by the API — responses expose only a `has_api_key` boolean.
|
|
1477
1465
|
* Returns 200 (not 201) on success.
|
|
@@ -1479,63 +1467,69 @@ export declare const listEmbeddingProvidersSettings: <ThrowOnError extends boole
|
|
|
1479
1467
|
*/
|
|
1480
1468
|
export declare const createEmbeddingProviderSettings: <ThrowOnError extends boolean = false>(options: Options<CreateEmbeddingProviderSettingsData, ThrowOnError>) => RequestResult<CreateEmbeddingProviderSettingsResponses, CreateEmbeddingProviderSettingsErrors, ThrowOnError>;
|
|
1481
1469
|
/**
|
|
1482
|
-
* Get embedding coverage
|
|
1470
|
+
* Get embedding coverage
|
|
1483
1471
|
*
|
|
1484
1472
|
* Returns derived, team-scoped embedding coverage per entity type under the
|
|
1485
|
-
* team's active provider model
|
|
1486
|
-
*
|
|
1473
|
+
* team's active provider model: how many entities exist (`total`), how many
|
|
1474
|
+
* have an embedding (`embedded`), how many are still pending, and the
|
|
1475
|
+
* embedded percentage. Counts are computed from existing rows — there is no
|
|
1476
|
+
* per-entity state. When the team has no active provider, the response
|
|
1477
|
+
* reports every type as all-pending (0%) rather than an error.
|
|
1487
1478
|
*
|
|
1488
1479
|
*/
|
|
1489
1480
|
export declare const getEmbeddingCoverageSettings: <ThrowOnError extends boolean = false>(options: Options<GetEmbeddingCoverageSettingsData, ThrowOnError>) => RequestResult<GetEmbeddingCoverageSettingsResponses, GetEmbeddingCoverageSettingsErrors, ThrowOnError>;
|
|
1490
1481
|
/**
|
|
1491
|
-
* Delete embedding provider
|
|
1482
|
+
* Delete embedding provider
|
|
1492
1483
|
*
|
|
1493
|
-
* Deletes an embedding provider owned by the authenticated user
|
|
1494
|
-
*
|
|
1484
|
+
* Deletes an embedding provider owned by the authenticated user. Deleting
|
|
1485
|
+
* the user's last remaining provider is blocked with a 400
|
|
1495
1486
|
* `PROVIDER_LAST_DELETE_BLOCKED` error.
|
|
1496
1487
|
*
|
|
1497
1488
|
*/
|
|
1498
1489
|
export declare const deleteEmbeddingProviderSettings: <ThrowOnError extends boolean = false>(options: Options<DeleteEmbeddingProviderSettingsData, ThrowOnError>) => RequestResult<DeleteEmbeddingProviderSettingsResponses, DeleteEmbeddingProviderSettingsErrors, ThrowOnError>;
|
|
1499
1490
|
/**
|
|
1500
|
-
* Get embedding provider
|
|
1491
|
+
* Get embedding provider
|
|
1501
1492
|
*
|
|
1502
|
-
* Retrieves a single embedding provider owned by the authenticated user
|
|
1493
|
+
* Retrieves a single embedding provider owned by the authenticated user.
|
|
1503
1494
|
* The encrypted API key is never returned; `has_api_key` indicates whether
|
|
1504
1495
|
* one is stored.
|
|
1505
1496
|
*
|
|
1506
1497
|
*/
|
|
1507
1498
|
export declare const getEmbeddingProviderSettings: <ThrowOnError extends boolean = false>(options: Options<GetEmbeddingProviderSettingsData, ThrowOnError>) => RequestResult<GetEmbeddingProviderSettingsResponses, GetEmbeddingProviderSettingsErrors, ThrowOnError>;
|
|
1508
1499
|
/**
|
|
1509
|
-
* Update embedding provider
|
|
1500
|
+
* Update embedding provider
|
|
1510
1501
|
*
|
|
1511
|
-
* Updates an existing embedding provider
|
|
1512
|
-
*
|
|
1513
|
-
*
|
|
1514
|
-
* response.
|
|
1502
|
+
* Updates an existing embedding provider. All fields are optional; only
|
|
1503
|
+
* provided fields are changed. A supplied `api_key` replaces the stored
|
|
1504
|
+
* (encrypted) key and is never echoed back in the response.
|
|
1515
1505
|
*
|
|
1516
1506
|
*/
|
|
1517
1507
|
export declare const updateEmbeddingProviderSettings: <ThrowOnError extends boolean = false>(options: Options<UpdateEmbeddingProviderSettingsData, ThrowOnError>) => RequestResult<UpdateEmbeddingProviderSettingsResponses, UpdateEmbeddingProviderSettingsErrors, ThrowOnError>;
|
|
1518
1508
|
/**
|
|
1519
|
-
* Reprocess missing embeddings
|
|
1509
|
+
* Reprocess missing embeddings
|
|
1520
1510
|
*
|
|
1521
1511
|
* Re-drives embedding generation for the team's entities that are still
|
|
1522
|
-
* missing an embedding, through the concurrency-bounded embedding path
|
|
1523
|
-
*
|
|
1524
|
-
*
|
|
1525
|
-
*
|
|
1526
|
-
*
|
|
1527
|
-
*
|
|
1512
|
+
* missing an embedding, through the concurrency-bounded embedding path so a
|
|
1513
|
+
* large run never fans out beyond the provider's configured concurrency. It
|
|
1514
|
+
* is the sanctioned replacement for the removed back-office backfill
|
|
1515
|
+
* endpoint.
|
|
1516
|
+
*
|
|
1517
|
+
* The provider `{id}` is validated and authorized, but the work is
|
|
1518
|
+
* team-scoped: an embedding provider is per-team, so reprocess enqueues the
|
|
1519
|
+
* team's entity set (generated via the team's active provider). It returns
|
|
1520
|
+
* 202 immediately and runs in the background; generation is idempotent
|
|
1521
|
+
* (delete-then-insert per entity) and a per-team in-flight guard makes
|
|
1522
|
+
* repeat calls safe (no double fan-out).
|
|
1528
1523
|
*
|
|
1529
1524
|
*/
|
|
1530
1525
|
export declare const reprocessEmbeddingProviderSettings: <ThrowOnError extends boolean = false>(options: Options<ReprocessEmbeddingProviderSettingsData, ThrowOnError>) => RequestResult<ReprocessEmbeddingProviderSettingsResponses, ReprocessEmbeddingProviderSettingsErrors, ThrowOnError>;
|
|
1531
1526
|
/**
|
|
1532
|
-
* Validate embedding provider configuration
|
|
1527
|
+
* Validate embedding provider configuration
|
|
1533
1528
|
*
|
|
1534
1529
|
* Validates an embedding provider configuration (connectivity/credentials)
|
|
1535
|
-
* without persisting anything
|
|
1536
|
-
*
|
|
1537
|
-
*
|
|
1538
|
-
* internal service errors.
|
|
1530
|
+
* without persisting anything. Validation outcome — including an invalid
|
|
1531
|
+
* configuration — is reported in the 200 response body (`is_valid`,
|
|
1532
|
+
* `message`, `details`); 500 is returned only for internal service errors.
|
|
1539
1533
|
*
|
|
1540
1534
|
*/
|
|
1541
1535
|
export declare const validateEmbeddingProviderSettings: <ThrowOnError extends boolean = false>(options: Options<ValidateEmbeddingProviderSettingsData, ThrowOnError>) => RequestResult<ValidateEmbeddingProviderSettingsResponses, ValidateEmbeddingProviderSettingsErrors, ThrowOnError>;
|
|
@@ -1885,18 +1879,18 @@ export declare const updateModelProvider: <ThrowOnError extends boolean = false>
|
|
|
1885
1879
|
*/
|
|
1886
1880
|
export declare const validateModelProvider: <ThrowOnError extends boolean = false>(options: Options<ValidateModelProviderData, ThrowOnError>) => RequestResult<ValidateModelProviderResponses, ValidateModelProviderErrors, ThrowOnError>;
|
|
1887
1881
|
/**
|
|
1888
|
-
* List model providers
|
|
1882
|
+
* List model providers
|
|
1889
1883
|
*
|
|
1890
|
-
* Retrieves all model providers belonging to the authenticated user
|
|
1884
|
+
* Retrieves all model providers belonging to the authenticated user.
|
|
1891
1885
|
* Returns a bare JSON array (no pagination envelope). Encrypted API keys
|
|
1892
1886
|
* are never included; each item carries a `has_api_key` boolean instead.
|
|
1893
1887
|
*
|
|
1894
1888
|
*/
|
|
1895
1889
|
export declare const listModelProvidersSettings: <ThrowOnError extends boolean = false>(options: Options<ListModelProvidersSettingsData, ThrowOnError>) => RequestResult<ListModelProvidersSettingsResponses, ListModelProvidersSettingsErrors, ThrowOnError>;
|
|
1896
1890
|
/**
|
|
1897
|
-
* Create model provider
|
|
1891
|
+
* Create model provider
|
|
1898
1892
|
*
|
|
1899
|
-
* Creates a new model provider configuration for the authenticated user
|
|
1893
|
+
* Creates a new model provider configuration for the authenticated user.
|
|
1900
1894
|
* The `api_key` supplied in the request is encrypted at rest and is never
|
|
1901
1895
|
* returned by the API — responses expose only a `has_api_key` boolean.
|
|
1902
1896
|
* Returns 200 (not 201) on success.
|
|
@@ -1904,41 +1898,40 @@ export declare const listModelProvidersSettings: <ThrowOnError extends boolean =
|
|
|
1904
1898
|
*/
|
|
1905
1899
|
export declare const createModelProviderSettings: <ThrowOnError extends boolean = false>(options: Options<CreateModelProviderSettingsData, ThrowOnError>) => RequestResult<CreateModelProviderSettingsResponses, CreateModelProviderSettingsErrors, ThrowOnError>;
|
|
1906
1900
|
/**
|
|
1907
|
-
* Delete model provider
|
|
1901
|
+
* Delete model provider
|
|
1908
1902
|
*
|
|
1909
|
-
* Deletes a model provider owned by the authenticated user
|
|
1910
|
-
*
|
|
1903
|
+
* Deletes a model provider owned by the authenticated user. Deleting the
|
|
1904
|
+
* team's last remaining provider is blocked with a 400
|
|
1911
1905
|
* `MODEL_PROVIDER_LAST_DELETE_BLOCKED` error.
|
|
1912
1906
|
*
|
|
1913
1907
|
*/
|
|
1914
1908
|
export declare const deleteModelProviderSettings: <ThrowOnError extends boolean = false>(options: Options<DeleteModelProviderSettingsData, ThrowOnError>) => RequestResult<DeleteModelProviderSettingsResponses, DeleteModelProviderSettingsErrors, ThrowOnError>;
|
|
1915
1909
|
/**
|
|
1916
|
-
* Get model provider
|
|
1910
|
+
* Get model provider
|
|
1917
1911
|
*
|
|
1918
|
-
* Retrieves a single model provider owned by the authenticated user
|
|
1912
|
+
* Retrieves a single model provider owned by the authenticated user.
|
|
1919
1913
|
* The encrypted API key is never returned; `has_api_key` indicates whether
|
|
1920
1914
|
* one is stored.
|
|
1921
1915
|
*
|
|
1922
1916
|
*/
|
|
1923
1917
|
export declare const getModelProviderSettings: <ThrowOnError extends boolean = false>(options: Options<GetModelProviderSettingsData, ThrowOnError>) => RequestResult<GetModelProviderSettingsResponses, GetModelProviderSettingsErrors, ThrowOnError>;
|
|
1924
1918
|
/**
|
|
1925
|
-
* Update model provider
|
|
1919
|
+
* Update model provider
|
|
1926
1920
|
*
|
|
1927
|
-
* Updates an existing model provider
|
|
1928
|
-
*
|
|
1929
|
-
*
|
|
1930
|
-
*
|
|
1921
|
+
* Updates an existing model provider. All fields are optional; only
|
|
1922
|
+
* provided fields are changed. A supplied `api_key` replaces the stored
|
|
1923
|
+
* (encrypted) key and is never echoed back in the response. A blank/omitted
|
|
1924
|
+
* `api_key` preserves the stored key.
|
|
1931
1925
|
*
|
|
1932
1926
|
*/
|
|
1933
1927
|
export declare const updateModelProviderSettings: <ThrowOnError extends boolean = false>(options: Options<UpdateModelProviderSettingsData, ThrowOnError>) => RequestResult<UpdateModelProviderSettingsResponses, UpdateModelProviderSettingsErrors, ThrowOnError>;
|
|
1934
1928
|
/**
|
|
1935
|
-
* Validate model provider configuration
|
|
1929
|
+
* Validate model provider configuration
|
|
1936
1930
|
*
|
|
1937
1931
|
* Validates a model provider configuration (connectivity/credentials)
|
|
1938
|
-
* without persisting anything
|
|
1939
|
-
* `
|
|
1940
|
-
*
|
|
1941
|
-
* invalid configuration — is reported in the 200 response body
|
|
1932
|
+
* without persisting anything. The probe attempts `GET {base_url}/models`
|
|
1933
|
+
* and falls back to `POST {base_url}/chat/completions`. Validation outcome —
|
|
1934
|
+
* including an invalid configuration — is reported in the 200 response body
|
|
1942
1935
|
* (`is_valid`, `message`, `details`); 500 is returned only for internal
|
|
1943
1936
|
* service errors.
|
|
1944
1937
|
*
|
package/dist/axios/sdk.gen.js
CHANGED
|
@@ -167,9 +167,9 @@ export const deleteApiKey = (options) => (options.client ?? client).delete({
|
|
|
167
167
|
...options
|
|
168
168
|
});
|
|
169
169
|
/**
|
|
170
|
-
* List API keys
|
|
170
|
+
* List API keys
|
|
171
171
|
*
|
|
172
|
-
* Retrieves all API keys for the authenticated user
|
|
172
|
+
* Retrieves all API keys for the authenticated user
|
|
173
173
|
*/
|
|
174
174
|
export const listApiKeysSettings = (options) => (options?.client ?? client).get({
|
|
175
175
|
responseType: 'json',
|
|
@@ -182,9 +182,9 @@ export const listApiKeysSettings = (options) => (options?.client ?? client).get(
|
|
|
182
182
|
...options
|
|
183
183
|
});
|
|
184
184
|
/**
|
|
185
|
-
* Create new API key
|
|
185
|
+
* Create new API key
|
|
186
186
|
*
|
|
187
|
-
* Creates a new API key for the authenticated user
|
|
187
|
+
* Creates a new API key for the authenticated user
|
|
188
188
|
*/
|
|
189
189
|
export const createApiKeySettings = (options) => (options.client ?? client).post({
|
|
190
190
|
responseType: 'json',
|
|
@@ -201,9 +201,9 @@ export const createApiKeySettings = (options) => (options.client ?? client).post
|
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
/**
|
|
204
|
-
* Delete API key
|
|
204
|
+
* Delete API key
|
|
205
205
|
*
|
|
206
|
-
* Deletes an API key by ID
|
|
206
|
+
* Deletes an API key by ID
|
|
207
207
|
*/
|
|
208
208
|
export const deleteApiKeySettings = (options) => (options.client ?? client).delete({
|
|
209
209
|
responseType: 'json',
|
|
@@ -2093,9 +2093,6 @@ export const listTeams = (options) => (options?.client ?? client).get({
|
|
|
2093
2093
|
* default "Project 1" project inside it so resources created immediately
|
|
2094
2094
|
* afterwards are correctly scoped.
|
|
2095
2095
|
*
|
|
2096
|
-
* Team creation is subject to the plan's team resource limit; exceeding it
|
|
2097
|
-
* returns `403` with code `RESOURCE_LIMIT_EXCEEDED`.
|
|
2098
|
-
*
|
|
2099
2096
|
*/
|
|
2100
2097
|
export const createTeam = (options) => (options.client ?? client).post({
|
|
2101
2098
|
responseType: 'json',
|
|
@@ -2123,8 +2120,6 @@ export const createTeam = (options) => (options.client ?? client).post({
|
|
|
2123
2120
|
*
|
|
2124
2121
|
* Deletion conflicts return `409` with RFC 9457 problem details carrying an
|
|
2125
2122
|
* UPPERCASE `code` and string-valued `metadata`:
|
|
2126
|
-
* - `ACTIVE_SUBSCRIPTION_EXISTS` — the team still has an active subscription
|
|
2127
|
-
* - `SUBSCRIPTION_CANCELING` — the subscription is scheduled to cancel; retry after `metadata.cancel_at`
|
|
2128
2123
|
* - `TEAM_HAS_MEMBERS` — remove all members first (`metadata.member_count`)
|
|
2129
2124
|
*
|
|
2130
2125
|
*/
|
|
@@ -2311,15 +2306,8 @@ export const listTeamInvitations = (options) => (options.client ?? client).get({
|
|
|
2311
2306
|
* Send team invitations
|
|
2312
2307
|
*
|
|
2313
2308
|
* Sends invitations to join the team to up to 50 email addresses with the given
|
|
2314
|
-
* role. Requires an eligible team (not a personal workspace)
|
|
2315
|
-
*
|
|
2316
|
-
*
|
|
2317
|
-
* Limit failures return `403` with code `RESOURCE_LIMIT_EXCEEDED` and a
|
|
2318
|
-
* `metadata` object: for missing subscriptions it carries `team_id`, `feature`
|
|
2319
|
-
* and `upgrade_url`; for seat limits it carries `team_id` plus seat accounting fields
|
|
2320
|
-
* (`total_seats`, `occupied_seats`, `current_members`, `pending_invitations`,
|
|
2321
|
-
* `requested_invitations`, `available_seats`, `additional_seats_needed`,
|
|
2322
|
-
* `upgrade_url`).
|
|
2309
|
+
* role. Requires an eligible team (not a personal workspace). Team membership is
|
|
2310
|
+
* unlimited.
|
|
2323
2311
|
*
|
|
2324
2312
|
* Inviting users who are already team members returns `409` with code
|
|
2325
2313
|
* `DUPLICATE_MEMBERS` and a top-level `duplicate_emails` string array.
|
|
@@ -3561,9 +3549,9 @@ export const updateTeamSearchSettings = (options) => (options.client ?? client).
|
|
|
3561
3549
|
}
|
|
3562
3550
|
});
|
|
3563
3551
|
/**
|
|
3564
|
-
* List embedding providers
|
|
3552
|
+
* List embedding providers
|
|
3565
3553
|
*
|
|
3566
|
-
* Retrieves all embedding providers belonging to the authenticated user
|
|
3554
|
+
* Retrieves all embedding providers belonging to the authenticated user.
|
|
3567
3555
|
* Returns a bare JSON array (no pagination envelope). Encrypted API keys
|
|
3568
3556
|
* are never included; each item carries a `has_api_key` boolean instead.
|
|
3569
3557
|
*
|
|
@@ -3583,9 +3571,9 @@ export const listEmbeddingProvidersSettings = (options) => (options.client ?? cl
|
|
|
3583
3571
|
...options
|
|
3584
3572
|
});
|
|
3585
3573
|
/**
|
|
3586
|
-
* Create embedding provider
|
|
3574
|
+
* Create embedding provider
|
|
3587
3575
|
*
|
|
3588
|
-
* Creates a new embedding provider configuration for the authenticated user
|
|
3576
|
+
* Creates a new embedding provider configuration for the authenticated user.
|
|
3589
3577
|
* The `api_key` supplied in the request is encrypted at rest and is never
|
|
3590
3578
|
* returned by the API — responses expose only a `has_api_key` boolean.
|
|
3591
3579
|
* Returns 200 (not 201) on success.
|
|
@@ -3610,11 +3598,14 @@ export const createEmbeddingProviderSettings = (options) => (options.client ?? c
|
|
|
3610
3598
|
}
|
|
3611
3599
|
});
|
|
3612
3600
|
/**
|
|
3613
|
-
* Get embedding coverage
|
|
3601
|
+
* Get embedding coverage
|
|
3614
3602
|
*
|
|
3615
3603
|
* Returns derived, team-scoped embedding coverage per entity type under the
|
|
3616
|
-
* team's active provider model
|
|
3617
|
-
*
|
|
3604
|
+
* team's active provider model: how many entities exist (`total`), how many
|
|
3605
|
+
* have an embedding (`embedded`), how many are still pending, and the
|
|
3606
|
+
* embedded percentage. Counts are computed from existing rows — there is no
|
|
3607
|
+
* per-entity state. When the team has no active provider, the response
|
|
3608
|
+
* reports every type as all-pending (0%) rather than an error.
|
|
3618
3609
|
*
|
|
3619
3610
|
*/
|
|
3620
3611
|
export const getEmbeddingCoverageSettings = (options) => (options.client ?? client).get({
|
|
@@ -3632,10 +3623,10 @@ export const getEmbeddingCoverageSettings = (options) => (options.client ?? clie
|
|
|
3632
3623
|
...options
|
|
3633
3624
|
});
|
|
3634
3625
|
/**
|
|
3635
|
-
* Delete embedding provider
|
|
3626
|
+
* Delete embedding provider
|
|
3636
3627
|
*
|
|
3637
|
-
* Deletes an embedding provider owned by the authenticated user
|
|
3638
|
-
*
|
|
3628
|
+
* Deletes an embedding provider owned by the authenticated user. Deleting
|
|
3629
|
+
* the user's last remaining provider is blocked with a 400
|
|
3639
3630
|
* `PROVIDER_LAST_DELETE_BLOCKED` error.
|
|
3640
3631
|
*
|
|
3641
3632
|
*/
|
|
@@ -3653,9 +3644,9 @@ export const deleteEmbeddingProviderSettings = (options) => (options.client ?? c
|
|
|
3653
3644
|
...options
|
|
3654
3645
|
});
|
|
3655
3646
|
/**
|
|
3656
|
-
* Get embedding provider
|
|
3647
|
+
* Get embedding provider
|
|
3657
3648
|
*
|
|
3658
|
-
* Retrieves a single embedding provider owned by the authenticated user
|
|
3649
|
+
* Retrieves a single embedding provider owned by the authenticated user.
|
|
3659
3650
|
* The encrypted API key is never returned; `has_api_key` indicates whether
|
|
3660
3651
|
* one is stored.
|
|
3661
3652
|
*
|
|
@@ -3675,12 +3666,11 @@ export const getEmbeddingProviderSettings = (options) => (options.client ?? clie
|
|
|
3675
3666
|
...options
|
|
3676
3667
|
});
|
|
3677
3668
|
/**
|
|
3678
|
-
* Update embedding provider
|
|
3669
|
+
* Update embedding provider
|
|
3679
3670
|
*
|
|
3680
|
-
* Updates an existing embedding provider
|
|
3681
|
-
*
|
|
3682
|
-
*
|
|
3683
|
-
* response.
|
|
3671
|
+
* Updates an existing embedding provider. All fields are optional; only
|
|
3672
|
+
* provided fields are changed. A supplied `api_key` replaces the stored
|
|
3673
|
+
* (encrypted) key and is never echoed back in the response.
|
|
3684
3674
|
*
|
|
3685
3675
|
*/
|
|
3686
3676
|
export const updateEmbeddingProviderSettings = (options) => (options.client ?? client).put({
|
|
@@ -3702,15 +3692,20 @@ export const updateEmbeddingProviderSettings = (options) => (options.client ?? c
|
|
|
3702
3692
|
}
|
|
3703
3693
|
});
|
|
3704
3694
|
/**
|
|
3705
|
-
* Reprocess missing embeddings
|
|
3695
|
+
* Reprocess missing embeddings
|
|
3706
3696
|
*
|
|
3707
3697
|
* Re-drives embedding generation for the team's entities that are still
|
|
3708
|
-
* missing an embedding, through the concurrency-bounded embedding path
|
|
3709
|
-
*
|
|
3710
|
-
*
|
|
3711
|
-
*
|
|
3712
|
-
*
|
|
3713
|
-
*
|
|
3698
|
+
* missing an embedding, through the concurrency-bounded embedding path so a
|
|
3699
|
+
* large run never fans out beyond the provider's configured concurrency. It
|
|
3700
|
+
* is the sanctioned replacement for the removed back-office backfill
|
|
3701
|
+
* endpoint.
|
|
3702
|
+
*
|
|
3703
|
+
* The provider `{id}` is validated and authorized, but the work is
|
|
3704
|
+
* team-scoped: an embedding provider is per-team, so reprocess enqueues the
|
|
3705
|
+
* team's entity set (generated via the team's active provider). It returns
|
|
3706
|
+
* 202 immediately and runs in the background; generation is idempotent
|
|
3707
|
+
* (delete-then-insert per entity) and a per-team in-flight guard makes
|
|
3708
|
+
* repeat calls safe (no double fan-out).
|
|
3714
3709
|
*
|
|
3715
3710
|
*/
|
|
3716
3711
|
export const reprocessEmbeddingProviderSettings = (options) => (options.client ?? client).post({
|
|
@@ -3728,13 +3723,12 @@ export const reprocessEmbeddingProviderSettings = (options) => (options.client ?
|
|
|
3728
3723
|
...options
|
|
3729
3724
|
});
|
|
3730
3725
|
/**
|
|
3731
|
-
* Validate embedding provider configuration
|
|
3726
|
+
* Validate embedding provider configuration
|
|
3732
3727
|
*
|
|
3733
3728
|
* Validates an embedding provider configuration (connectivity/credentials)
|
|
3734
|
-
* without persisting anything
|
|
3735
|
-
*
|
|
3736
|
-
*
|
|
3737
|
-
* internal service errors.
|
|
3729
|
+
* without persisting anything. Validation outcome — including an invalid
|
|
3730
|
+
* configuration — is reported in the 200 response body (`is_valid`,
|
|
3731
|
+
* `message`, `details`); 500 is returned only for internal service errors.
|
|
3738
3732
|
*
|
|
3739
3733
|
*/
|
|
3740
3734
|
export const validateEmbeddingProviderSettings = (options) => (options.client ?? client).post({
|
|
@@ -4491,9 +4485,9 @@ export const validateModelProvider = (options) => (options.client ?? client).pos
|
|
|
4491
4485
|
}
|
|
4492
4486
|
});
|
|
4493
4487
|
/**
|
|
4494
|
-
* List model providers
|
|
4488
|
+
* List model providers
|
|
4495
4489
|
*
|
|
4496
|
-
* Retrieves all model providers belonging to the authenticated user
|
|
4490
|
+
* Retrieves all model providers belonging to the authenticated user.
|
|
4497
4491
|
* Returns a bare JSON array (no pagination envelope). Encrypted API keys
|
|
4498
4492
|
* are never included; each item carries a `has_api_key` boolean instead.
|
|
4499
4493
|
*
|
|
@@ -4513,9 +4507,9 @@ export const listModelProvidersSettings = (options) => (options.client ?? client
|
|
|
4513
4507
|
...options
|
|
4514
4508
|
});
|
|
4515
4509
|
/**
|
|
4516
|
-
* Create model provider
|
|
4510
|
+
* Create model provider
|
|
4517
4511
|
*
|
|
4518
|
-
* Creates a new model provider configuration for the authenticated user
|
|
4512
|
+
* Creates a new model provider configuration for the authenticated user.
|
|
4519
4513
|
* The `api_key` supplied in the request is encrypted at rest and is never
|
|
4520
4514
|
* returned by the API — responses expose only a `has_api_key` boolean.
|
|
4521
4515
|
* Returns 200 (not 201) on success.
|
|
@@ -4540,10 +4534,10 @@ export const createModelProviderSettings = (options) => (options.client ?? clien
|
|
|
4540
4534
|
}
|
|
4541
4535
|
});
|
|
4542
4536
|
/**
|
|
4543
|
-
* Delete model provider
|
|
4537
|
+
* Delete model provider
|
|
4544
4538
|
*
|
|
4545
|
-
* Deletes a model provider owned by the authenticated user
|
|
4546
|
-
*
|
|
4539
|
+
* Deletes a model provider owned by the authenticated user. Deleting the
|
|
4540
|
+
* team's last remaining provider is blocked with a 400
|
|
4547
4541
|
* `MODEL_PROVIDER_LAST_DELETE_BLOCKED` error.
|
|
4548
4542
|
*
|
|
4549
4543
|
*/
|
|
@@ -4561,9 +4555,9 @@ export const deleteModelProviderSettings = (options) => (options.client ?? clien
|
|
|
4561
4555
|
...options
|
|
4562
4556
|
});
|
|
4563
4557
|
/**
|
|
4564
|
-
* Get model provider
|
|
4558
|
+
* Get model provider
|
|
4565
4559
|
*
|
|
4566
|
-
* Retrieves a single model provider owned by the authenticated user
|
|
4560
|
+
* Retrieves a single model provider owned by the authenticated user.
|
|
4567
4561
|
* The encrypted API key is never returned; `has_api_key` indicates whether
|
|
4568
4562
|
* one is stored.
|
|
4569
4563
|
*
|
|
@@ -4583,12 +4577,12 @@ export const getModelProviderSettings = (options) => (options.client ?? client).
|
|
|
4583
4577
|
...options
|
|
4584
4578
|
});
|
|
4585
4579
|
/**
|
|
4586
|
-
* Update model provider
|
|
4580
|
+
* Update model provider
|
|
4587
4581
|
*
|
|
4588
|
-
* Updates an existing model provider
|
|
4589
|
-
*
|
|
4590
|
-
*
|
|
4591
|
-
*
|
|
4582
|
+
* Updates an existing model provider. All fields are optional; only
|
|
4583
|
+
* provided fields are changed. A supplied `api_key` replaces the stored
|
|
4584
|
+
* (encrypted) key and is never echoed back in the response. A blank/omitted
|
|
4585
|
+
* `api_key` preserves the stored key.
|
|
4592
4586
|
*
|
|
4593
4587
|
*/
|
|
4594
4588
|
export const updateModelProviderSettings = (options) => (options.client ?? client).put({
|
|
@@ -4610,13 +4604,12 @@ export const updateModelProviderSettings = (options) => (options.client ?? clien
|
|
|
4610
4604
|
}
|
|
4611
4605
|
});
|
|
4612
4606
|
/**
|
|
4613
|
-
* Validate model provider configuration
|
|
4607
|
+
* Validate model provider configuration
|
|
4614
4608
|
*
|
|
4615
4609
|
* Validates a model provider configuration (connectivity/credentials)
|
|
4616
|
-
* without persisting anything
|
|
4617
|
-
* `
|
|
4618
|
-
*
|
|
4619
|
-
* invalid configuration — is reported in the 200 response body
|
|
4610
|
+
* without persisting anything. The probe attempts `GET {base_url}/models`
|
|
4611
|
+
* and falls back to `POST {base_url}/chat/completions`. Validation outcome —
|
|
4612
|
+
* including an invalid configuration — is reported in the 200 response body
|
|
4620
4613
|
* (`is_valid`, `message`, `details`); 500 is returned only for internal
|
|
4621
4614
|
* service errors.
|
|
4622
4615
|
*
|
|
@@ -2905,7 +2905,7 @@ export type Team = {
|
|
|
2905
2905
|
slug: string;
|
|
2906
2906
|
description: string;
|
|
2907
2907
|
/**
|
|
2908
|
-
* Whether this is the user's personal workspace (cannot be deleted
|
|
2908
|
+
* Whether this is the user's personal workspace (cannot be deleted)
|
|
2909
2909
|
*/
|
|
2910
2910
|
is_personal: boolean;
|
|
2911
2911
|
/**
|
|
@@ -3064,8 +3064,6 @@ export type TeamQuotaTypeDetail = {
|
|
|
3064
3064
|
/**
|
|
3065
3065
|
* RFC 9457 problem details returned when team deletion is blocked (HTTP 409).
|
|
3066
3066
|
* Codes are UPPERCASE and all `metadata` values are strings:
|
|
3067
|
-
* - `ACTIVE_SUBSCRIPTION_EXISTS` — metadata: `subscription_id`, `subscription_tier`, `billing_portal_url`, `help_text`
|
|
3068
|
-
* - `SUBSCRIPTION_CANCELING` — metadata: `cancel_at` (date the cancellation takes effect)
|
|
3069
3067
|
* - `TEAM_HAS_MEMBERS` — metadata: `member_count` (stringified integer)
|
|
3070
3068
|
*
|
|
3071
3069
|
*/
|
|
@@ -3077,13 +3075,13 @@ export type TeamDeleteConflictError = {
|
|
|
3077
3075
|
/**
|
|
3078
3076
|
* Short, human-readable summary of the problem type
|
|
3079
3077
|
*/
|
|
3080
|
-
title: '
|
|
3078
|
+
title: 'Team Has Members';
|
|
3081
3079
|
status: number;
|
|
3082
3080
|
/**
|
|
3083
3081
|
* Human-readable explanation specific to this occurrence
|
|
3084
3082
|
*/
|
|
3085
3083
|
detail: string;
|
|
3086
|
-
code: '
|
|
3084
|
+
code: 'TEAM_HAS_MEMBERS';
|
|
3087
3085
|
request_id: string;
|
|
3088
3086
|
timestamp: string;
|
|
3089
3087
|
/**
|
|
@@ -6502,7 +6500,7 @@ export type CreateBlueprintErrors = {
|
|
|
6502
6500
|
*/
|
|
6503
6501
|
401: ErrorResponse;
|
|
6504
6502
|
/**
|
|
6505
|
-
*
|
|
6503
|
+
* No permission to create blueprints in this team
|
|
6506
6504
|
*/
|
|
6507
6505
|
403: ErrorResponse;
|
|
6508
6506
|
/**
|
|
@@ -9665,10 +9663,6 @@ export type CreateTeamErrors = {
|
|
|
9665
9663
|
* Payment required — active subscription required
|
|
9666
9664
|
*/
|
|
9667
9665
|
402: ErrorResponse;
|
|
9668
|
-
/**
|
|
9669
|
-
* Team creation limit reached for the current plan (code `RESOURCE_LIMIT_EXCEEDED`)
|
|
9670
|
-
*/
|
|
9671
|
-
403: ErrorResponse;
|
|
9672
9666
|
/**
|
|
9673
9667
|
* Internal server error
|
|
9674
9668
|
*/
|
|
@@ -9711,7 +9705,7 @@ export type DeleteTeamErrors = {
|
|
|
9711
9705
|
*/
|
|
9712
9706
|
404: ErrorResponse;
|
|
9713
9707
|
/**
|
|
9714
|
-
* Deletion blocked —
|
|
9708
|
+
* Deletion blocked — the team still has members (code `TEAM_HAS_MEMBERS`)
|
|
9715
9709
|
*/
|
|
9716
9710
|
409: TeamDeleteConflictError;
|
|
9717
9711
|
/**
|
|
@@ -10048,7 +10042,7 @@ export type SendTeamInvitationsErrors = {
|
|
|
10048
10042
|
*/
|
|
10049
10043
|
402: ErrorResponse;
|
|
10050
10044
|
/**
|
|
10051
|
-
* Forbidden — personal workspace (code `upgrade_required`)
|
|
10045
|
+
* Forbidden — personal workspace (code `upgrade_required`) or no permission to invite (code `FORBIDDEN`)
|
|
10052
10046
|
*/
|
|
10053
10047
|
403: ErrorResponse;
|
|
10054
10048
|
/**
|
package/dist/schema.d.ts
CHANGED
|
@@ -240,14 +240,14 @@ export interface paths {
|
|
|
240
240
|
cookie?: never;
|
|
241
241
|
};
|
|
242
242
|
/**
|
|
243
|
-
* List API keys
|
|
244
|
-
* @description Retrieves all API keys for the authenticated user
|
|
243
|
+
* List API keys
|
|
244
|
+
* @description Retrieves all API keys for the authenticated user
|
|
245
245
|
*/
|
|
246
246
|
get: operations["listAPIKeysSettings"];
|
|
247
247
|
put?: never;
|
|
248
248
|
/**
|
|
249
|
-
* Create new API key
|
|
250
|
-
* @description Creates a new API key for the authenticated user
|
|
249
|
+
* Create new API key
|
|
250
|
+
* @description Creates a new API key for the authenticated user
|
|
251
251
|
*/
|
|
252
252
|
post: operations["createAPIKeySettings"];
|
|
253
253
|
delete?: never;
|
|
@@ -267,8 +267,8 @@ export interface paths {
|
|
|
267
267
|
put?: never;
|
|
268
268
|
post?: never;
|
|
269
269
|
/**
|
|
270
|
-
* Delete API key
|
|
271
|
-
* @description Deletes an API key by ID
|
|
270
|
+
* Delete API key
|
|
271
|
+
* @description Deletes an API key by ID
|
|
272
272
|
*/
|
|
273
273
|
delete: operations["deleteAPIKeySettings"];
|
|
274
274
|
options?: never;
|
|
@@ -1973,9 +1973,6 @@ export interface paths {
|
|
|
1973
1973
|
* @description Creates a new team owned by the current user and synchronously bootstraps a
|
|
1974
1974
|
* default "Project 1" project inside it so resources created immediately
|
|
1975
1975
|
* afterwards are correctly scoped.
|
|
1976
|
-
*
|
|
1977
|
-
* Team creation is subject to the plan's team resource limit; exceeding it
|
|
1978
|
-
* returns `403` with code `RESOURCE_LIMIT_EXCEEDED`.
|
|
1979
1976
|
*/
|
|
1980
1977
|
post: operations["createTeam"];
|
|
1981
1978
|
delete?: never;
|
|
@@ -2010,8 +2007,6 @@ export interface paths {
|
|
|
2010
2007
|
*
|
|
2011
2008
|
* Deletion conflicts return `409` with RFC 9457 problem details carrying an
|
|
2012
2009
|
* UPPERCASE `code` and string-valued `metadata`:
|
|
2013
|
-
* - `ACTIVE_SUBSCRIPTION_EXISTS` — the team still has an active subscription
|
|
2014
|
-
* - `SUBSCRIPTION_CANCELING` — the subscription is scheduled to cancel; retry after `metadata.cancel_at`
|
|
2015
2010
|
* - `TEAM_HAS_MEMBERS` — remove all members first (`metadata.member_count`)
|
|
2016
2011
|
*/
|
|
2017
2012
|
delete: operations["deleteTeam"];
|
|
@@ -2131,15 +2126,8 @@ export interface paths {
|
|
|
2131
2126
|
/**
|
|
2132
2127
|
* Send team invitations
|
|
2133
2128
|
* @description Sends invitations to join the team to up to 50 email addresses with the given
|
|
2134
|
-
* role. Requires an eligible team (not a personal workspace)
|
|
2135
|
-
*
|
|
2136
|
-
*
|
|
2137
|
-
* Limit failures return `403` with code `RESOURCE_LIMIT_EXCEEDED` and a
|
|
2138
|
-
* `metadata` object: for missing subscriptions it carries `team_id`, `feature`
|
|
2139
|
-
* and `upgrade_url`; for seat limits it carries `team_id` plus seat accounting fields
|
|
2140
|
-
* (`total_seats`, `occupied_seats`, `current_members`, `pending_invitations`,
|
|
2141
|
-
* `requested_invitations`, `available_seats`, `additional_seats_needed`,
|
|
2142
|
-
* `upgrade_url`).
|
|
2129
|
+
* role. Requires an eligible team (not a personal workspace). Team membership is
|
|
2130
|
+
* unlimited.
|
|
2143
2131
|
*
|
|
2144
2132
|
* Inviting users who are already team members returns `409` with code
|
|
2145
2133
|
* `DUPLICATE_MEMBERS` and a top-level `duplicate_emails` string array.
|
|
@@ -3187,16 +3175,16 @@ export interface paths {
|
|
|
3187
3175
|
cookie?: never;
|
|
3188
3176
|
};
|
|
3189
3177
|
/**
|
|
3190
|
-
* List embedding providers
|
|
3191
|
-
* @description Retrieves all embedding providers belonging to the authenticated user
|
|
3178
|
+
* List embedding providers
|
|
3179
|
+
* @description Retrieves all embedding providers belonging to the authenticated user.
|
|
3192
3180
|
* Returns a bare JSON array (no pagination envelope). Encrypted API keys
|
|
3193
3181
|
* are never included; each item carries a `has_api_key` boolean instead.
|
|
3194
3182
|
*/
|
|
3195
3183
|
get: operations["listEmbeddingProvidersSettings"];
|
|
3196
3184
|
put?: never;
|
|
3197
3185
|
/**
|
|
3198
|
-
* Create embedding provider
|
|
3199
|
-
* @description Creates a new embedding provider configuration for the authenticated user
|
|
3186
|
+
* Create embedding provider
|
|
3187
|
+
* @description Creates a new embedding provider configuration for the authenticated user.
|
|
3200
3188
|
* The `api_key` supplied in the request is encrypted at rest and is never
|
|
3201
3189
|
* returned by the API — responses expose only a `has_api_key` boolean.
|
|
3202
3190
|
* Returns 200 (not 201) on success.
|
|
@@ -3219,10 +3207,13 @@ export interface paths {
|
|
|
3219
3207
|
cookie?: never;
|
|
3220
3208
|
};
|
|
3221
3209
|
/**
|
|
3222
|
-
* Get embedding coverage
|
|
3210
|
+
* Get embedding coverage
|
|
3223
3211
|
* @description Returns derived, team-scoped embedding coverage per entity type under the
|
|
3224
|
-
* team's active provider model
|
|
3225
|
-
*
|
|
3212
|
+
* team's active provider model: how many entities exist (`total`), how many
|
|
3213
|
+
* have an embedding (`embedded`), how many are still pending, and the
|
|
3214
|
+
* embedded percentage. Counts are computed from existing rows — there is no
|
|
3215
|
+
* per-entity state. When the team has no active provider, the response
|
|
3216
|
+
* reports every type as all-pending (0%) rather than an error.
|
|
3226
3217
|
*/
|
|
3227
3218
|
get: operations["getEmbeddingCoverageSettings"];
|
|
3228
3219
|
put?: never;
|
|
@@ -3244,25 +3235,24 @@ export interface paths {
|
|
|
3244
3235
|
cookie?: never;
|
|
3245
3236
|
};
|
|
3246
3237
|
/**
|
|
3247
|
-
* Get embedding provider
|
|
3248
|
-
* @description Retrieves a single embedding provider owned by the authenticated user
|
|
3238
|
+
* Get embedding provider
|
|
3239
|
+
* @description Retrieves a single embedding provider owned by the authenticated user.
|
|
3249
3240
|
* The encrypted API key is never returned; `has_api_key` indicates whether
|
|
3250
3241
|
* one is stored.
|
|
3251
3242
|
*/
|
|
3252
3243
|
get: operations["getEmbeddingProviderSettings"];
|
|
3253
3244
|
/**
|
|
3254
|
-
* Update embedding provider
|
|
3255
|
-
* @description Updates an existing embedding provider
|
|
3256
|
-
*
|
|
3257
|
-
*
|
|
3258
|
-
* response.
|
|
3245
|
+
* Update embedding provider
|
|
3246
|
+
* @description Updates an existing embedding provider. All fields are optional; only
|
|
3247
|
+
* provided fields are changed. A supplied `api_key` replaces the stored
|
|
3248
|
+
* (encrypted) key and is never echoed back in the response.
|
|
3259
3249
|
*/
|
|
3260
3250
|
put: operations["updateEmbeddingProviderSettings"];
|
|
3261
3251
|
post?: never;
|
|
3262
3252
|
/**
|
|
3263
|
-
* Delete embedding provider
|
|
3264
|
-
* @description Deletes an embedding provider owned by the authenticated user
|
|
3265
|
-
*
|
|
3253
|
+
* Delete embedding provider
|
|
3254
|
+
* @description Deletes an embedding provider owned by the authenticated user. Deleting
|
|
3255
|
+
* the user's last remaining provider is blocked with a 400
|
|
3266
3256
|
* `PROVIDER_LAST_DELETE_BLOCKED` error.
|
|
3267
3257
|
*/
|
|
3268
3258
|
delete: operations["deleteEmbeddingProviderSettings"];
|
|
@@ -3284,14 +3274,19 @@ export interface paths {
|
|
|
3284
3274
|
get?: never;
|
|
3285
3275
|
put?: never;
|
|
3286
3276
|
/**
|
|
3287
|
-
* Reprocess missing embeddings
|
|
3277
|
+
* Reprocess missing embeddings
|
|
3288
3278
|
* @description Re-drives embedding generation for the team's entities that are still
|
|
3289
|
-
* missing an embedding, through the concurrency-bounded embedding path
|
|
3290
|
-
*
|
|
3291
|
-
*
|
|
3292
|
-
*
|
|
3293
|
-
*
|
|
3294
|
-
*
|
|
3279
|
+
* missing an embedding, through the concurrency-bounded embedding path so a
|
|
3280
|
+
* large run never fans out beyond the provider's configured concurrency. It
|
|
3281
|
+
* is the sanctioned replacement for the removed back-office backfill
|
|
3282
|
+
* endpoint.
|
|
3283
|
+
*
|
|
3284
|
+
* The provider `{id}` is validated and authorized, but the work is
|
|
3285
|
+
* team-scoped: an embedding provider is per-team, so reprocess enqueues the
|
|
3286
|
+
* team's entity set (generated via the team's active provider). It returns
|
|
3287
|
+
* 202 immediately and runs in the background; generation is idempotent
|
|
3288
|
+
* (delete-then-insert per entity) and a per-team in-flight guard makes
|
|
3289
|
+
* repeat calls safe (no double fan-out).
|
|
3295
3290
|
*/
|
|
3296
3291
|
post: operations["reprocessEmbeddingProviderSettings"];
|
|
3297
3292
|
delete?: never;
|
|
@@ -3313,12 +3308,11 @@ export interface paths {
|
|
|
3313
3308
|
get?: never;
|
|
3314
3309
|
put?: never;
|
|
3315
3310
|
/**
|
|
3316
|
-
* Validate embedding provider configuration
|
|
3311
|
+
* Validate embedding provider configuration
|
|
3317
3312
|
* @description Validates an embedding provider configuration (connectivity/credentials)
|
|
3318
|
-
* without persisting anything
|
|
3319
|
-
*
|
|
3320
|
-
*
|
|
3321
|
-
* internal service errors.
|
|
3313
|
+
* without persisting anything. Validation outcome — including an invalid
|
|
3314
|
+
* configuration — is reported in the 200 response body (`is_valid`,
|
|
3315
|
+
* `message`, `details`); 500 is returned only for internal service errors.
|
|
3322
3316
|
*/
|
|
3323
3317
|
post: operations["validateEmbeddingProviderSettings"];
|
|
3324
3318
|
delete?: never;
|
|
@@ -3868,16 +3862,16 @@ export interface paths {
|
|
|
3868
3862
|
cookie?: never;
|
|
3869
3863
|
};
|
|
3870
3864
|
/**
|
|
3871
|
-
* List model providers
|
|
3872
|
-
* @description Retrieves all model providers belonging to the authenticated user
|
|
3865
|
+
* List model providers
|
|
3866
|
+
* @description Retrieves all model providers belonging to the authenticated user.
|
|
3873
3867
|
* Returns a bare JSON array (no pagination envelope). Encrypted API keys
|
|
3874
3868
|
* are never included; each item carries a `has_api_key` boolean instead.
|
|
3875
3869
|
*/
|
|
3876
3870
|
get: operations["listModelProvidersSettings"];
|
|
3877
3871
|
put?: never;
|
|
3878
3872
|
/**
|
|
3879
|
-
* Create model provider
|
|
3880
|
-
* @description Creates a new model provider configuration for the authenticated user
|
|
3873
|
+
* Create model provider
|
|
3874
|
+
* @description Creates a new model provider configuration for the authenticated user.
|
|
3881
3875
|
* The `api_key` supplied in the request is encrypted at rest and is never
|
|
3882
3876
|
* returned by the API — responses expose only a `has_api_key` boolean.
|
|
3883
3877
|
* Returns 200 (not 201) on success.
|
|
@@ -3900,25 +3894,25 @@ export interface paths {
|
|
|
3900
3894
|
cookie?: never;
|
|
3901
3895
|
};
|
|
3902
3896
|
/**
|
|
3903
|
-
* Get model provider
|
|
3904
|
-
* @description Retrieves a single model provider owned by the authenticated user
|
|
3897
|
+
* Get model provider
|
|
3898
|
+
* @description Retrieves a single model provider owned by the authenticated user.
|
|
3905
3899
|
* The encrypted API key is never returned; `has_api_key` indicates whether
|
|
3906
3900
|
* one is stored.
|
|
3907
3901
|
*/
|
|
3908
3902
|
get: operations["getModelProviderSettings"];
|
|
3909
3903
|
/**
|
|
3910
|
-
* Update model provider
|
|
3911
|
-
* @description Updates an existing model provider
|
|
3912
|
-
*
|
|
3913
|
-
*
|
|
3914
|
-
*
|
|
3904
|
+
* Update model provider
|
|
3905
|
+
* @description Updates an existing model provider. All fields are optional; only
|
|
3906
|
+
* provided fields are changed. A supplied `api_key` replaces the stored
|
|
3907
|
+
* (encrypted) key and is never echoed back in the response. A blank/omitted
|
|
3908
|
+
* `api_key` preserves the stored key.
|
|
3915
3909
|
*/
|
|
3916
3910
|
put: operations["updateModelProviderSettings"];
|
|
3917
3911
|
post?: never;
|
|
3918
3912
|
/**
|
|
3919
|
-
* Delete model provider
|
|
3920
|
-
* @description Deletes a model provider owned by the authenticated user
|
|
3921
|
-
*
|
|
3913
|
+
* Delete model provider
|
|
3914
|
+
* @description Deletes a model provider owned by the authenticated user. Deleting the
|
|
3915
|
+
* team's last remaining provider is blocked with a 400
|
|
3922
3916
|
* `MODEL_PROVIDER_LAST_DELETE_BLOCKED` error.
|
|
3923
3917
|
*/
|
|
3924
3918
|
delete: operations["deleteModelProviderSettings"];
|
|
@@ -3940,12 +3934,11 @@ export interface paths {
|
|
|
3940
3934
|
get?: never;
|
|
3941
3935
|
put?: never;
|
|
3942
3936
|
/**
|
|
3943
|
-
* Validate model provider configuration
|
|
3937
|
+
* Validate model provider configuration
|
|
3944
3938
|
* @description Validates a model provider configuration (connectivity/credentials)
|
|
3945
|
-
* without persisting anything
|
|
3946
|
-
* `
|
|
3947
|
-
*
|
|
3948
|
-
* invalid configuration — is reported in the 200 response body
|
|
3939
|
+
* without persisting anything. The probe attempts `GET {base_url}/models`
|
|
3940
|
+
* and falls back to `POST {base_url}/chat/completions`. Validation outcome —
|
|
3941
|
+
* including an invalid configuration — is reported in the 200 response body
|
|
3949
3942
|
* (`is_valid`, `message`, `details`); 500 is returned only for internal
|
|
3950
3943
|
* service errors.
|
|
3951
3944
|
*/
|
|
@@ -7915,7 +7908,7 @@ export interface components {
|
|
|
7915
7908
|
/** @example Team for the core engineering group */
|
|
7916
7909
|
description: string;
|
|
7917
7910
|
/**
|
|
7918
|
-
* @description Whether this is the user's personal workspace (cannot be deleted
|
|
7911
|
+
* @description Whether this is the user's personal workspace (cannot be deleted)
|
|
7919
7912
|
* @example false
|
|
7920
7913
|
*/
|
|
7921
7914
|
is_personal: boolean;
|
|
@@ -8113,34 +8106,32 @@ export interface components {
|
|
|
8113
8106
|
/**
|
|
8114
8107
|
* @description RFC 9457 problem details returned when team deletion is blocked (HTTP 409).
|
|
8115
8108
|
* Codes are UPPERCASE and all `metadata` values are strings:
|
|
8116
|
-
* - `ACTIVE_SUBSCRIPTION_EXISTS` — metadata: `subscription_id`, `subscription_tier`, `billing_portal_url`, `help_text`
|
|
8117
|
-
* - `SUBSCRIPTION_CANCELING` — metadata: `cancel_at` (date the cancellation takes effect)
|
|
8118
8109
|
* - `TEAM_HAS_MEMBERS` — metadata: `member_count` (stringified integer)
|
|
8119
8110
|
*/
|
|
8120
8111
|
TeamDeleteConflictError: {
|
|
8121
8112
|
/**
|
|
8122
8113
|
* @description URI reference that identifies the problem type
|
|
8123
|
-
* @example https://api.example.com/errors/
|
|
8114
|
+
* @example https://api.example.com/errors/TEAM_HAS_MEMBERS
|
|
8124
8115
|
*/
|
|
8125
8116
|
type: string;
|
|
8126
8117
|
/**
|
|
8127
8118
|
* @description Short, human-readable summary of the problem type
|
|
8128
|
-
* @example
|
|
8119
|
+
* @example Team Has Members
|
|
8129
8120
|
* @enum {string}
|
|
8130
8121
|
*/
|
|
8131
|
-
title: "
|
|
8122
|
+
title: "Team Has Members";
|
|
8132
8123
|
/** @example 409 */
|
|
8133
8124
|
status: number;
|
|
8134
8125
|
/**
|
|
8135
8126
|
* @description Human-readable explanation specific to this occurrence
|
|
8136
|
-
* @example team
|
|
8127
|
+
* @example cannot delete team with active members. Remove all 3 members first
|
|
8137
8128
|
*/
|
|
8138
8129
|
detail: string;
|
|
8139
8130
|
/**
|
|
8140
|
-
* @example
|
|
8131
|
+
* @example TEAM_HAS_MEMBERS
|
|
8141
8132
|
* @enum {string}
|
|
8142
8133
|
*/
|
|
8143
|
-
code: "
|
|
8134
|
+
code: "TEAM_HAS_MEMBERS";
|
|
8144
8135
|
/** @example abc123-def456 */
|
|
8145
8136
|
request_id: string;
|
|
8146
8137
|
/**
|
|
@@ -8156,10 +8147,7 @@ export interface components {
|
|
|
8156
8147
|
/**
|
|
8157
8148
|
* @description Code-specific string-valued metadata (see schema description for per-code keys)
|
|
8158
8149
|
* @example {
|
|
8159
|
-
* "
|
|
8160
|
-
* "subscription_tier": "professional",
|
|
8161
|
-
* "billing_portal_url": "https://billing.stripe.com/p/session/abc123",
|
|
8162
|
-
* "help_text": "Cancel your subscription via the billing portal, then delete the team."
|
|
8150
|
+
* "member_count": "3"
|
|
8163
8151
|
* }
|
|
8164
8152
|
*/
|
|
8165
8153
|
metadata?: {
|
|
@@ -12659,7 +12647,7 @@ export interface operations {
|
|
|
12659
12647
|
"application/problem+json": components["schemas"]["ErrorResponse"];
|
|
12660
12648
|
};
|
|
12661
12649
|
};
|
|
12662
|
-
/** @description
|
|
12650
|
+
/** @description No permission to create blueprints in this team */
|
|
12663
12651
|
403: {
|
|
12664
12652
|
headers: {
|
|
12665
12653
|
[name: string]: unknown;
|
|
@@ -17306,15 +17294,6 @@ export interface operations {
|
|
|
17306
17294
|
"application/problem+json": components["schemas"]["ErrorResponse"];
|
|
17307
17295
|
};
|
|
17308
17296
|
};
|
|
17309
|
-
/** @description Team creation limit reached for the current plan (code `RESOURCE_LIMIT_EXCEEDED`) */
|
|
17310
|
-
403: {
|
|
17311
|
-
headers: {
|
|
17312
|
-
[name: string]: unknown;
|
|
17313
|
-
};
|
|
17314
|
-
content: {
|
|
17315
|
-
"application/problem+json": components["schemas"]["ErrorResponse"];
|
|
17316
|
-
};
|
|
17317
|
-
};
|
|
17318
17297
|
/** @description Internal server error */
|
|
17319
17298
|
500: {
|
|
17320
17299
|
headers: {
|
|
@@ -17521,7 +17500,7 @@ export interface operations {
|
|
|
17521
17500
|
"application/problem+json": components["schemas"]["ErrorResponse"];
|
|
17522
17501
|
};
|
|
17523
17502
|
};
|
|
17524
|
-
/** @description Deletion blocked —
|
|
17503
|
+
/** @description Deletion blocked — the team still has members (code `TEAM_HAS_MEMBERS`) */
|
|
17525
17504
|
409: {
|
|
17526
17505
|
headers: {
|
|
17527
17506
|
[name: string]: unknown;
|
|
@@ -17930,7 +17909,7 @@ export interface operations {
|
|
|
17930
17909
|
"application/problem+json": components["schemas"]["ErrorResponse"];
|
|
17931
17910
|
};
|
|
17932
17911
|
};
|
|
17933
|
-
/** @description Forbidden — personal workspace (code `upgrade_required`)
|
|
17912
|
+
/** @description Forbidden — personal workspace (code `upgrade_required`) or no permission to invite (code `FORBIDDEN`) */
|
|
17934
17913
|
403: {
|
|
17935
17914
|
headers: {
|
|
17936
17915
|
[name: string]: unknown;
|
package/package.json
CHANGED