@blaxel/core 0.2.65-dev.77 → 0.2.65-preview.78
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/client/sdk.gen.js +241 -3
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/tools/zodSchema.js +19 -27
- package/dist/cjs/types/client/sdk.gen.d.ts +71 -1
- package/dist/cjs/types/client/types.gen.d.ts +457 -0
- package/dist/cjs/types/sandbox/client/types.gen.d.ts +0 -11
- package/dist/cjs/types/tools/zodSchema.d.ts +1 -1
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/client/sdk.gen.js +241 -3
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/tools/zodSchema.js +19 -27
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +71 -1
- package/dist/cjs-browser/types/client/types.gen.d.ts +457 -0
- package/dist/cjs-browser/types/sandbox/client/types.gen.d.ts +0 -11
- package/dist/cjs-browser/types/tools/zodSchema.d.ts +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/client/sdk.gen.js +224 -0
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/tools/zodSchema.js +19 -27
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/sdk.gen.js +224 -0
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/tools/zodSchema.js +19 -27
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.checkWorkspaceAvailability = exports.leaveWorkspace = exports.acceptWorkspaceInvitation = exports.declineWorkspaceInvitation = void 0;
|
|
4
|
+
exports.deleteModel = exports.createModel = exports.listModels = exports.listMcpHubDefinitions = exports.listLocations = exports.listJobRevisions = exports.getJobExecution = exports.deleteJobExecution = exports.createJobExecution = exports.listJobExecutions = exports.updateJob = exports.getJob = exports.deleteJob = exports.createJob = exports.listJobs = exports.getIntegrationConnectionModel = exports.listIntegrationConnectionModels = exports.getIntegrationConnectionModelEndpointConfigurations = exports.updateIntegrationConnection = exports.getIntegrationConnection = exports.deleteIntegrationConnection = exports.createIntegrationConnection = exports.listIntegrationConnections = exports.getIntegration = exports.deleteImageTag = exports.getImage = exports.deleteImage = exports.listImages = exports.cleanupImages = exports.listFunctionRevisions = exports.updateFunction = exports.getFunction = exports.deleteFunction = exports.createFunction = exports.listFunctions = exports.testFeatureFlag = exports.getWorkspaceFeatures = exports.verifyCustomDomain = exports.updateCustomDomain = exports.getCustomDomain = exports.deleteCustomDomain = exports.createCustomDomain = exports.listCustomDomains = exports.getConfiguration = exports.listAgentRevisions = exports.updateAgent = exports.getAgent = exports.deleteAgent = exports.createAgent = exports.listAgents = void 0;
|
|
5
|
+
exports.deleteVpc = exports.createVpc = exports.listVpcs = exports.updateVolume = exports.getVolume = exports.deleteVolume = exports.createVolume = exports.listVolumes = exports.deleteVolumeTemplateVersion = exports.updateVolumeTemplate = exports.getVolumeTemplate = exports.deleteVolumeTemplate = exports.createVolumeTemplate = exports.listVolumeTemplates = exports.updateWorkspaceUserRole = exports.removeWorkspaceUser = exports.inviteWorkspaceUser = exports.listWorkspaceUsers = exports.getTemplate = exports.listTemplates = exports.deleteApiKeyForServiceAccount = exports.createApiKeyForServiceAccount = exports.listApiKeysForServiceAccount = exports.updateWorkspaceServiceAccount = exports.deleteWorkspaceServiceAccount = exports.createWorkspaceServiceAccount = exports.getWorkspaceServiceAccounts = exports.deleteSandboxPreviewToken = exports.createSandboxPreviewToken = exports.listSandboxPreviewTokens = exports.updateSandboxPreview = exports.getSandboxPreview = exports.deleteSandboxPreview = exports.createSandboxPreview = exports.listSandboxPreviews = exports.updateSandbox = exports.getSandbox = exports.deleteSandbox = exports.createSandbox = exports.listSandboxes = exports.listSandboxHubDefinitions = exports.listPublicIps = exports.updatePolicy = exports.getPolicy = exports.deletePolicy = exports.createPolicy = exports.listPolicies = exports.listModelRevisions = exports.updateModel = exports.getModel = void 0;
|
|
6
|
+
exports.checkWorkspaceAvailability = exports.leaveWorkspace = exports.acceptWorkspaceInvitation = exports.declineWorkspaceInvitation = exports.updateWorkspace = exports.getWorkspace = exports.deleteWorkspace = exports.createWorkspace = exports.listWorkspaces = exports.getEgressIp = exports.deleteEgressIp = exports.createEgressIp = exports.listEgressIps = exports.getEgressGateway = exports.deleteEgressGateway = exports.createEgressGateway = exports.listEgressGateways = exports.getVpc = void 0;
|
|
7
7
|
const client_gen_1 = require("./client.gen");
|
|
8
8
|
/**
|
|
9
9
|
* List all agents
|
|
@@ -237,6 +237,40 @@ const verifyCustomDomain = (options) => {
|
|
|
237
237
|
});
|
|
238
238
|
};
|
|
239
239
|
exports.verifyCustomDomain = verifyCustomDomain;
|
|
240
|
+
/**
|
|
241
|
+
* Get enabled features for workspace
|
|
242
|
+
* Returns only the feature flags that are currently enabled for the specified workspace. Disabled features are not included to prevent information leakage.
|
|
243
|
+
*/
|
|
244
|
+
const getWorkspaceFeatures = (options) => {
|
|
245
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
246
|
+
security: [
|
|
247
|
+
{
|
|
248
|
+
scheme: 'bearer',
|
|
249
|
+
type: 'http'
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
url: '/features',
|
|
253
|
+
...options
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
exports.getWorkspaceFeatures = getWorkspaceFeatures;
|
|
257
|
+
/**
|
|
258
|
+
* Retrieve feature flag evaluation for workspace
|
|
259
|
+
* Evaluates a specific feature flag for the workspace with full details including variant and payload. Useful for testing and debugging feature flag targeting.
|
|
260
|
+
*/
|
|
261
|
+
const testFeatureFlag = (options) => {
|
|
262
|
+
return (options.client ?? client_gen_1.client).get({
|
|
263
|
+
security: [
|
|
264
|
+
{
|
|
265
|
+
scheme: 'bearer',
|
|
266
|
+
type: 'http'
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
url: '/features/{featureKey}',
|
|
270
|
+
...options
|
|
271
|
+
});
|
|
272
|
+
};
|
|
273
|
+
exports.testFeatureFlag = testFeatureFlag;
|
|
240
274
|
/**
|
|
241
275
|
* List all MCP servers
|
|
242
276
|
* Returns all MCP server functions deployed in the workspace. Each function includes its deployment status, transport protocol (websocket or http-stream), and endpoint URL.
|
|
@@ -1731,6 +1765,210 @@ const updateVolume = (options) => {
|
|
|
1731
1765
|
});
|
|
1732
1766
|
};
|
|
1733
1767
|
exports.updateVolume = updateVolume;
|
|
1768
|
+
/**
|
|
1769
|
+
* List all VPCs in the workspace
|
|
1770
|
+
*/
|
|
1771
|
+
const listVpcs = (options) => {
|
|
1772
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
1773
|
+
security: [
|
|
1774
|
+
{
|
|
1775
|
+
scheme: 'bearer',
|
|
1776
|
+
type: 'http'
|
|
1777
|
+
}
|
|
1778
|
+
],
|
|
1779
|
+
url: '/vpcs',
|
|
1780
|
+
...options
|
|
1781
|
+
});
|
|
1782
|
+
};
|
|
1783
|
+
exports.listVpcs = listVpcs;
|
|
1784
|
+
/**
|
|
1785
|
+
* Create a VPC for the workspace
|
|
1786
|
+
*/
|
|
1787
|
+
const createVpc = (options) => {
|
|
1788
|
+
return (options.client ?? client_gen_1.client).post({
|
|
1789
|
+
security: [
|
|
1790
|
+
{
|
|
1791
|
+
scheme: 'bearer',
|
|
1792
|
+
type: 'http'
|
|
1793
|
+
}
|
|
1794
|
+
],
|
|
1795
|
+
url: '/vpcs',
|
|
1796
|
+
...options,
|
|
1797
|
+
headers: {
|
|
1798
|
+
'Content-Type': 'application/json',
|
|
1799
|
+
...options?.headers
|
|
1800
|
+
}
|
|
1801
|
+
});
|
|
1802
|
+
};
|
|
1803
|
+
exports.createVpc = createVpc;
|
|
1804
|
+
/**
|
|
1805
|
+
* Delete a VPC
|
|
1806
|
+
*/
|
|
1807
|
+
const deleteVpc = (options) => {
|
|
1808
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
1809
|
+
security: [
|
|
1810
|
+
{
|
|
1811
|
+
scheme: 'bearer',
|
|
1812
|
+
type: 'http'
|
|
1813
|
+
}
|
|
1814
|
+
],
|
|
1815
|
+
url: '/vpcs/{vpcName}',
|
|
1816
|
+
...options
|
|
1817
|
+
});
|
|
1818
|
+
};
|
|
1819
|
+
exports.deleteVpc = deleteVpc;
|
|
1820
|
+
/**
|
|
1821
|
+
* Get a VPC by name
|
|
1822
|
+
*/
|
|
1823
|
+
const getVpc = (options) => {
|
|
1824
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1825
|
+
security: [
|
|
1826
|
+
{
|
|
1827
|
+
scheme: 'bearer',
|
|
1828
|
+
type: 'http'
|
|
1829
|
+
}
|
|
1830
|
+
],
|
|
1831
|
+
url: '/vpcs/{vpcName}',
|
|
1832
|
+
...options
|
|
1833
|
+
});
|
|
1834
|
+
};
|
|
1835
|
+
exports.getVpc = getVpc;
|
|
1836
|
+
/**
|
|
1837
|
+
* List egress gateways in a VPC
|
|
1838
|
+
*/
|
|
1839
|
+
const listEgressGateways = (options) => {
|
|
1840
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1841
|
+
security: [
|
|
1842
|
+
{
|
|
1843
|
+
scheme: 'bearer',
|
|
1844
|
+
type: 'http'
|
|
1845
|
+
}
|
|
1846
|
+
],
|
|
1847
|
+
url: '/vpcs/{vpcName}/egressgateways',
|
|
1848
|
+
...options
|
|
1849
|
+
});
|
|
1850
|
+
};
|
|
1851
|
+
exports.listEgressGateways = listEgressGateways;
|
|
1852
|
+
/**
|
|
1853
|
+
* Create an egress gateway in a VPC
|
|
1854
|
+
*/
|
|
1855
|
+
const createEgressGateway = (options) => {
|
|
1856
|
+
return (options.client ?? client_gen_1.client).post({
|
|
1857
|
+
security: [
|
|
1858
|
+
{
|
|
1859
|
+
scheme: 'bearer',
|
|
1860
|
+
type: 'http'
|
|
1861
|
+
}
|
|
1862
|
+
],
|
|
1863
|
+
url: '/vpcs/{vpcName}/egressgateways',
|
|
1864
|
+
...options,
|
|
1865
|
+
headers: {
|
|
1866
|
+
'Content-Type': 'application/json',
|
|
1867
|
+
...options?.headers
|
|
1868
|
+
}
|
|
1869
|
+
});
|
|
1870
|
+
};
|
|
1871
|
+
exports.createEgressGateway = createEgressGateway;
|
|
1872
|
+
/**
|
|
1873
|
+
* Delete an egress gateway
|
|
1874
|
+
*/
|
|
1875
|
+
const deleteEgressGateway = (options) => {
|
|
1876
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
1877
|
+
security: [
|
|
1878
|
+
{
|
|
1879
|
+
scheme: 'bearer',
|
|
1880
|
+
type: 'http'
|
|
1881
|
+
}
|
|
1882
|
+
],
|
|
1883
|
+
url: '/vpcs/{vpcName}/egressgateways/{gatewayName}',
|
|
1884
|
+
...options
|
|
1885
|
+
});
|
|
1886
|
+
};
|
|
1887
|
+
exports.deleteEgressGateway = deleteEgressGateway;
|
|
1888
|
+
/**
|
|
1889
|
+
* Get an egress gateway by name
|
|
1890
|
+
*/
|
|
1891
|
+
const getEgressGateway = (options) => {
|
|
1892
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1893
|
+
security: [
|
|
1894
|
+
{
|
|
1895
|
+
scheme: 'bearer',
|
|
1896
|
+
type: 'http'
|
|
1897
|
+
}
|
|
1898
|
+
],
|
|
1899
|
+
url: '/vpcs/{vpcName}/egressgateways/{gatewayName}',
|
|
1900
|
+
...options
|
|
1901
|
+
});
|
|
1902
|
+
};
|
|
1903
|
+
exports.getEgressGateway = getEgressGateway;
|
|
1904
|
+
/**
|
|
1905
|
+
* List egress IPs in a gateway
|
|
1906
|
+
*/
|
|
1907
|
+
const listEgressIps = (options) => {
|
|
1908
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1909
|
+
security: [
|
|
1910
|
+
{
|
|
1911
|
+
scheme: 'bearer',
|
|
1912
|
+
type: 'http'
|
|
1913
|
+
}
|
|
1914
|
+
],
|
|
1915
|
+
url: '/vpcs/{vpcName}/egressgateways/{gatewayName}/ips',
|
|
1916
|
+
...options
|
|
1917
|
+
});
|
|
1918
|
+
};
|
|
1919
|
+
exports.listEgressIps = listEgressIps;
|
|
1920
|
+
/**
|
|
1921
|
+
* Allocate a new egress IP from the gateway
|
|
1922
|
+
*/
|
|
1923
|
+
const createEgressIp = (options) => {
|
|
1924
|
+
return (options.client ?? client_gen_1.client).post({
|
|
1925
|
+
security: [
|
|
1926
|
+
{
|
|
1927
|
+
scheme: 'bearer',
|
|
1928
|
+
type: 'http'
|
|
1929
|
+
}
|
|
1930
|
+
],
|
|
1931
|
+
url: '/vpcs/{vpcName}/egressgateways/{gatewayName}/ips',
|
|
1932
|
+
...options,
|
|
1933
|
+
headers: {
|
|
1934
|
+
'Content-Type': 'application/json',
|
|
1935
|
+
...options?.headers
|
|
1936
|
+
}
|
|
1937
|
+
});
|
|
1938
|
+
};
|
|
1939
|
+
exports.createEgressIp = createEgressIp;
|
|
1940
|
+
/**
|
|
1941
|
+
* Delete an egress IP
|
|
1942
|
+
*/
|
|
1943
|
+
const deleteEgressIp = (options) => {
|
|
1944
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
1945
|
+
security: [
|
|
1946
|
+
{
|
|
1947
|
+
scheme: 'bearer',
|
|
1948
|
+
type: 'http'
|
|
1949
|
+
}
|
|
1950
|
+
],
|
|
1951
|
+
url: '/vpcs/{vpcName}/egressgateways/{gatewayName}/ips/{ipName}',
|
|
1952
|
+
...options
|
|
1953
|
+
});
|
|
1954
|
+
};
|
|
1955
|
+
exports.deleteEgressIp = deleteEgressIp;
|
|
1956
|
+
/**
|
|
1957
|
+
* Get an egress IP by name
|
|
1958
|
+
*/
|
|
1959
|
+
const getEgressIp = (options) => {
|
|
1960
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1961
|
+
security: [
|
|
1962
|
+
{
|
|
1963
|
+
scheme: 'bearer',
|
|
1964
|
+
type: 'http'
|
|
1965
|
+
}
|
|
1966
|
+
],
|
|
1967
|
+
url: '/vpcs/{vpcName}/egressgateways/{gatewayName}/ips/{ipName}',
|
|
1968
|
+
...options
|
|
1969
|
+
});
|
|
1970
|
+
};
|
|
1971
|
+
exports.getEgressIp = getEgressIp;
|
|
1734
1972
|
/**
|
|
1735
1973
|
* List accessible workspaces
|
|
1736
1974
|
* Returns all workspaces the authenticated user has access to. Each workspace is a separate tenant with its own resources, team members, and billing.
|
|
@@ -9,8 +9,8 @@ const index_js_1 = require("../authentication/index.js");
|
|
|
9
9
|
const env_js_1 = require("../common/env.js");
|
|
10
10
|
const node_js_1 = require("../common/node.js");
|
|
11
11
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
12
|
-
const BUILD_VERSION = "0.2.65-
|
|
13
|
-
const BUILD_COMMIT = "
|
|
12
|
+
const BUILD_VERSION = "0.2.65-preview.78";
|
|
13
|
+
const BUILD_COMMIT = "6c83194dcf2c9345e2ddfab4318623f520020d1b";
|
|
14
14
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
15
15
|
// Cache for config.yaml tracking value
|
|
16
16
|
let configTrackingValue = null;
|
|
@@ -5,23 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.schemaToZodSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
const jsonTypeToZod = (type, param) => {
|
|
9
|
-
switch (type) {
|
|
10
|
-
case "boolean":
|
|
11
|
-
return zod_1.default.boolean();
|
|
12
|
-
case "number":
|
|
13
|
-
case "integer":
|
|
14
|
-
return zod_1.default.number();
|
|
15
|
-
case "null":
|
|
16
|
-
return zod_1.default.null();
|
|
17
|
-
case "array":
|
|
18
|
-
return zod_1.default.array((0, exports.schemaToZodSchema)(param.items || {}));
|
|
19
|
-
case "object":
|
|
20
|
-
return (0, exports.schemaToZodSchema)(param);
|
|
21
|
-
default:
|
|
22
|
-
return zod_1.default.string();
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
8
|
/**
|
|
26
9
|
* Converts an array of `FunctionSchema` objects into a Zod schema for validation.
|
|
27
10
|
*
|
|
@@ -33,16 +16,25 @@ const schemaToZodSchema = (schema) => {
|
|
|
33
16
|
if (schema.properties) {
|
|
34
17
|
Object.entries(schema.properties).forEach(([key, param]) => {
|
|
35
18
|
let zodType;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
19
|
+
switch (param.type) {
|
|
20
|
+
case "boolean":
|
|
21
|
+
zodType = zod_1.default.boolean();
|
|
22
|
+
break;
|
|
23
|
+
case "number":
|
|
24
|
+
case "integer":
|
|
25
|
+
zodType = zod_1.default.number();
|
|
26
|
+
break;
|
|
27
|
+
case "null":
|
|
28
|
+
zodType = zod_1.default.null();
|
|
29
|
+
break;
|
|
30
|
+
case "array":
|
|
31
|
+
zodType = zod_1.default.array((0, exports.schemaToZodSchema)(param.items || {}));
|
|
32
|
+
break;
|
|
33
|
+
case "object":
|
|
34
|
+
zodType = (0, exports.schemaToZodSchema)(param);
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
zodType = zod_1.default.string();
|
|
46
38
|
}
|
|
47
39
|
if (param.description) {
|
|
48
40
|
zodType = zodType.describe(param.description);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
|
|
2
|
-
import type { ListAgentsData, CreateAgentData, DeleteAgentData, GetAgentData, UpdateAgentData, ListAgentRevisionsData, GetConfigurationData, ListCustomDomainsData, CreateCustomDomainData, DeleteCustomDomainData, GetCustomDomainData, UpdateCustomDomainData, VerifyCustomDomainData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, CleanupImagesData, ListImagesData, DeleteImageData, GetImageData, DeleteImageTagData, GetIntegrationData, ListIntegrationConnectionsData, CreateIntegrationConnectionData, DeleteIntegrationConnectionData, GetIntegrationConnectionData, UpdateIntegrationConnectionData, GetIntegrationConnectionModelEndpointConfigurationsData, ListIntegrationConnectionModelsData, GetIntegrationConnectionModelData, ListJobsData, CreateJobData, DeleteJobData, GetJobData, UpdateJobData, ListJobExecutionsData, CreateJobExecutionData, DeleteJobExecutionData, GetJobExecutionData, ListJobRevisionsData, ListLocationsData, ListMcpHubDefinitionsData, ListModelsData, CreateModelData, DeleteModelData, GetModelData, UpdateModelData, ListModelRevisionsData, ListPoliciesData, CreatePolicyData, DeletePolicyData, GetPolicyData, UpdatePolicyData, ListPublicIpsData, ListSandboxHubDefinitionsData, ListSandboxesData, CreateSandboxData, DeleteSandboxData, GetSandboxData, UpdateSandboxData, ListSandboxPreviewsData, CreateSandboxPreviewData, DeleteSandboxPreviewData, GetSandboxPreviewData, UpdateSandboxPreviewData, ListSandboxPreviewTokensData, CreateSandboxPreviewTokenData, DeleteSandboxPreviewTokenData, GetWorkspaceServiceAccountsData, CreateWorkspaceServiceAccountData, DeleteWorkspaceServiceAccountData, UpdateWorkspaceServiceAccountData, ListApiKeysForServiceAccountData, CreateApiKeyForServiceAccountData, DeleteApiKeyForServiceAccountData, ListTemplatesData, GetTemplateData, ListWorkspaceUsersData, InviteWorkspaceUserData, RemoveWorkspaceUserData, UpdateWorkspaceUserRoleData, ListVolumeTemplatesData, CreateVolumeTemplateData, DeleteVolumeTemplateData, GetVolumeTemplateData, UpdateVolumeTemplateData, DeleteVolumeTemplateVersionData, ListVolumesData, CreateVolumeData, DeleteVolumeData, GetVolumeData, UpdateVolumeData, ListWorkspacesData, CreateWorkspaceData, DeleteWorkspaceData, GetWorkspaceData, UpdateWorkspaceData, DeclineWorkspaceInvitationData, AcceptWorkspaceInvitationData, LeaveWorkspaceData, CheckWorkspaceAvailabilityData } from './types.gen.js';
|
|
2
|
+
import type { ListAgentsData, CreateAgentData, DeleteAgentData, GetAgentData, UpdateAgentData, ListAgentRevisionsData, GetConfigurationData, ListCustomDomainsData, CreateCustomDomainData, DeleteCustomDomainData, GetCustomDomainData, UpdateCustomDomainData, VerifyCustomDomainData, GetWorkspaceFeaturesData, TestFeatureFlagData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, CleanupImagesData, ListImagesData, DeleteImageData, GetImageData, DeleteImageTagData, GetIntegrationData, ListIntegrationConnectionsData, CreateIntegrationConnectionData, DeleteIntegrationConnectionData, GetIntegrationConnectionData, UpdateIntegrationConnectionData, GetIntegrationConnectionModelEndpointConfigurationsData, ListIntegrationConnectionModelsData, GetIntegrationConnectionModelData, ListJobsData, CreateJobData, DeleteJobData, GetJobData, UpdateJobData, ListJobExecutionsData, CreateJobExecutionData, DeleteJobExecutionData, GetJobExecutionData, ListJobRevisionsData, ListLocationsData, ListMcpHubDefinitionsData, ListModelsData, CreateModelData, DeleteModelData, GetModelData, UpdateModelData, ListModelRevisionsData, ListPoliciesData, CreatePolicyData, DeletePolicyData, GetPolicyData, UpdatePolicyData, ListPublicIpsData, ListSandboxHubDefinitionsData, ListSandboxesData, CreateSandboxData, DeleteSandboxData, GetSandboxData, UpdateSandboxData, ListSandboxPreviewsData, CreateSandboxPreviewData, DeleteSandboxPreviewData, GetSandboxPreviewData, UpdateSandboxPreviewData, ListSandboxPreviewTokensData, CreateSandboxPreviewTokenData, DeleteSandboxPreviewTokenData, GetWorkspaceServiceAccountsData, CreateWorkspaceServiceAccountData, DeleteWorkspaceServiceAccountData, UpdateWorkspaceServiceAccountData, ListApiKeysForServiceAccountData, CreateApiKeyForServiceAccountData, DeleteApiKeyForServiceAccountData, ListTemplatesData, GetTemplateData, ListWorkspaceUsersData, InviteWorkspaceUserData, RemoveWorkspaceUserData, UpdateWorkspaceUserRoleData, ListVolumeTemplatesData, CreateVolumeTemplateData, DeleteVolumeTemplateData, GetVolumeTemplateData, UpdateVolumeTemplateData, DeleteVolumeTemplateVersionData, ListVolumesData, CreateVolumeData, DeleteVolumeData, GetVolumeData, UpdateVolumeData, ListVpcsData, CreateVpcData, DeleteVpcData, GetVpcData, ListEgressGatewaysData, CreateEgressGatewayData, DeleteEgressGatewayData, GetEgressGatewayData, ListEgressIpsData, CreateEgressIpData, DeleteEgressIpData, GetEgressIpData, ListWorkspacesData, CreateWorkspaceData, DeleteWorkspaceData, GetWorkspaceData, UpdateWorkspaceData, DeclineWorkspaceInvitationData, AcceptWorkspaceInvitationData, LeaveWorkspaceData, CheckWorkspaceAvailabilityData } from './types.gen.js';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -73,6 +73,28 @@ export declare const updateCustomDomain: <ThrowOnError extends boolean = false>(
|
|
|
73
73
|
* Verify custom domain
|
|
74
74
|
*/
|
|
75
75
|
export declare const verifyCustomDomain: <ThrowOnError extends boolean = false>(options: Options<VerifyCustomDomainData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain, unknown, ThrowOnError>;
|
|
76
|
+
/**
|
|
77
|
+
* Get enabled features for workspace
|
|
78
|
+
* Returns only the feature flags that are currently enabled for the specified workspace. Disabled features are not included to prevent information leakage.
|
|
79
|
+
*/
|
|
80
|
+
export declare const getWorkspaceFeatures: <ThrowOnError extends boolean = false>(options?: Options<GetWorkspaceFeaturesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
81
|
+
features?: {
|
|
82
|
+
[key: string]: boolean;
|
|
83
|
+
};
|
|
84
|
+
}, import("./types.gen.js")._Error, ThrowOnError>;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieve feature flag evaluation for workspace
|
|
87
|
+
* Evaluates a specific feature flag for the workspace with full details including variant and payload. Useful for testing and debugging feature flag targeting.
|
|
88
|
+
*/
|
|
89
|
+
export declare const testFeatureFlag: <ThrowOnError extends boolean = false>(options: Options<TestFeatureFlagData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
90
|
+
enabled?: boolean;
|
|
91
|
+
evaluatedAt?: string;
|
|
92
|
+
featureKey?: string;
|
|
93
|
+
payload?: {
|
|
94
|
+
[key: string]: unknown;
|
|
95
|
+
};
|
|
96
|
+
variant?: string;
|
|
97
|
+
}, import("./types.gen.js")._Error, ThrowOnError>;
|
|
76
98
|
/**
|
|
77
99
|
* List all MCP servers
|
|
78
100
|
* Returns all MCP server functions deployed in the workspace. Each function includes its deployment status, transport protocol (websocket or http-stream), and endpoint URL.
|
|
@@ -516,6 +538,54 @@ export declare const getVolume: <ThrowOnError extends boolean = false>(options:
|
|
|
516
538
|
* Updates a volume.
|
|
517
539
|
*/
|
|
518
540
|
export declare const updateVolume: <ThrowOnError extends boolean = false>(options: Options<UpdateVolumeData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Volume, unknown, ThrowOnError>;
|
|
541
|
+
/**
|
|
542
|
+
* List all VPCs in the workspace
|
|
543
|
+
*/
|
|
544
|
+
export declare const listVpcs: <ThrowOnError extends boolean = false>(options?: Options<ListVpcsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Vpc[], unknown, ThrowOnError>;
|
|
545
|
+
/**
|
|
546
|
+
* Create a VPC for the workspace
|
|
547
|
+
*/
|
|
548
|
+
export declare const createVpc: <ThrowOnError extends boolean = false>(options: Options<CreateVpcData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Vpc, unknown, ThrowOnError>;
|
|
549
|
+
/**
|
|
550
|
+
* Delete a VPC
|
|
551
|
+
*/
|
|
552
|
+
export declare const deleteVpc: <ThrowOnError extends boolean = false>(options: Options<DeleteVpcData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Vpc, unknown, ThrowOnError>;
|
|
553
|
+
/**
|
|
554
|
+
* Get a VPC by name
|
|
555
|
+
*/
|
|
556
|
+
export declare const getVpc: <ThrowOnError extends boolean = false>(options: Options<GetVpcData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Vpc, unknown, ThrowOnError>;
|
|
557
|
+
/**
|
|
558
|
+
* List egress gateways in a VPC
|
|
559
|
+
*/
|
|
560
|
+
export declare const listEgressGateways: <ThrowOnError extends boolean = false>(options: Options<ListEgressGatewaysData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressGateway[], unknown, ThrowOnError>;
|
|
561
|
+
/**
|
|
562
|
+
* Create an egress gateway in a VPC
|
|
563
|
+
*/
|
|
564
|
+
export declare const createEgressGateway: <ThrowOnError extends boolean = false>(options: Options<CreateEgressGatewayData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressGateway, unknown, ThrowOnError>;
|
|
565
|
+
/**
|
|
566
|
+
* Delete an egress gateway
|
|
567
|
+
*/
|
|
568
|
+
export declare const deleteEgressGateway: <ThrowOnError extends boolean = false>(options: Options<DeleteEgressGatewayData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressGateway, unknown, ThrowOnError>;
|
|
569
|
+
/**
|
|
570
|
+
* Get an egress gateway by name
|
|
571
|
+
*/
|
|
572
|
+
export declare const getEgressGateway: <ThrowOnError extends boolean = false>(options: Options<GetEgressGatewayData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressGateway, unknown, ThrowOnError>;
|
|
573
|
+
/**
|
|
574
|
+
* List egress IPs in a gateway
|
|
575
|
+
*/
|
|
576
|
+
export declare const listEgressIps: <ThrowOnError extends boolean = false>(options: Options<ListEgressIpsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressIp[], unknown, ThrowOnError>;
|
|
577
|
+
/**
|
|
578
|
+
* Allocate a new egress IP from the gateway
|
|
579
|
+
*/
|
|
580
|
+
export declare const createEgressIp: <ThrowOnError extends boolean = false>(options: Options<CreateEgressIpData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressIp, unknown, ThrowOnError>;
|
|
581
|
+
/**
|
|
582
|
+
* Delete an egress IP
|
|
583
|
+
*/
|
|
584
|
+
export declare const deleteEgressIp: <ThrowOnError extends boolean = false>(options: Options<DeleteEgressIpData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressIp, unknown, ThrowOnError>;
|
|
585
|
+
/**
|
|
586
|
+
* Get an egress IP by name
|
|
587
|
+
*/
|
|
588
|
+
export declare const getEgressIp: <ThrowOnError extends boolean = false>(options: Options<GetEgressIpData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressIp, unknown, ThrowOnError>;
|
|
519
589
|
/**
|
|
520
590
|
* List accessible workspaces
|
|
521
591
|
* Returns all workspaces the authenticated user has access to. Each workspace is a separate tenant with its own resources, team members, and billing.
|