@blaxel/core 0.3.29-preview.321 → 0.3.30-preview.323
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 +93 -4
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/types/client/sdk.gen.d.ts +26 -1
- package/dist/cjs/types/client/types.gen.d.ts +156 -2
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/client/sdk.gen.js +93 -4
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +26 -1
- package/dist/cjs-browser/types/client/types.gen.d.ts +156 -2
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/client/sdk.gen.js +84 -0
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/sdk.gen.js +84 -0
- package/dist/esm-browser/common/settings.js +2 -2
- package/package.json +1 -1
|
@@ -508,6 +508,22 @@ export const createDriveAccessToken = (options) => {
|
|
|
508
508
|
...options
|
|
509
509
|
});
|
|
510
510
|
};
|
|
511
|
+
/**
|
|
512
|
+
* Delete a folder and its contents
|
|
513
|
+
* Deletes a folder and all its contents directly in drive storage. This is synchronous and non-atomic. If it times out or fails, some contents may have been deleted; retry the same path to finish cleanup. An absent folder succeeds. The drive root and internal metadata cannot be deleted.
|
|
514
|
+
*/
|
|
515
|
+
export const deleteDriveFolder = (options) => {
|
|
516
|
+
return (options.client ?? _heyApiClient).delete({
|
|
517
|
+
security: [
|
|
518
|
+
{
|
|
519
|
+
scheme: 'bearer',
|
|
520
|
+
type: 'http'
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
url: '/drives/{driveName}/folders',
|
|
524
|
+
...options
|
|
525
|
+
});
|
|
526
|
+
};
|
|
511
527
|
/**
|
|
512
528
|
* Get drive by external ID
|
|
513
529
|
* Returns a drive matching the given external ID. If no drive is found, returns 404.
|
|
@@ -2060,6 +2076,74 @@ export const getSandboxScheduleMetrics = (options) => {
|
|
|
2060
2076
|
...options
|
|
2061
2077
|
});
|
|
2062
2078
|
};
|
|
2079
|
+
/**
|
|
2080
|
+
* Delete secret by query
|
|
2081
|
+
* Deletes a secret by name (query parameter) from the workspace.
|
|
2082
|
+
*/
|
|
2083
|
+
export const deleteSecretByQuery = (options) => {
|
|
2084
|
+
return (options.client ?? _heyApiClient).delete({
|
|
2085
|
+
security: [
|
|
2086
|
+
{
|
|
2087
|
+
scheme: 'bearer',
|
|
2088
|
+
type: 'http'
|
|
2089
|
+
}
|
|
2090
|
+
],
|
|
2091
|
+
url: '/secrets',
|
|
2092
|
+
...options
|
|
2093
|
+
});
|
|
2094
|
+
};
|
|
2095
|
+
/**
|
|
2096
|
+
* List secrets
|
|
2097
|
+
* Lists the secrets of the workspace. Values are write-only and never returned.
|
|
2098
|
+
*/
|
|
2099
|
+
export const listSecrets = (options) => {
|
|
2100
|
+
return (options?.client ?? _heyApiClient).get({
|
|
2101
|
+
security: [
|
|
2102
|
+
{
|
|
2103
|
+
scheme: 'bearer',
|
|
2104
|
+
type: 'http'
|
|
2105
|
+
}
|
|
2106
|
+
],
|
|
2107
|
+
url: '/secrets',
|
|
2108
|
+
...options
|
|
2109
|
+
});
|
|
2110
|
+
};
|
|
2111
|
+
/**
|
|
2112
|
+
* Upsert secret
|
|
2113
|
+
* Creates or updates a secret by name. Each call stores a new immutable version; the latest version is the one resolved by the proxy.
|
|
2114
|
+
*/
|
|
2115
|
+
export const upsertSecret = (options) => {
|
|
2116
|
+
return (options.client ?? _heyApiClient).post({
|
|
2117
|
+
security: [
|
|
2118
|
+
{
|
|
2119
|
+
scheme: 'bearer',
|
|
2120
|
+
type: 'http'
|
|
2121
|
+
}
|
|
2122
|
+
],
|
|
2123
|
+
url: '/secrets',
|
|
2124
|
+
...options,
|
|
2125
|
+
headers: {
|
|
2126
|
+
'Content-Type': 'application/json',
|
|
2127
|
+
...options?.headers
|
|
2128
|
+
}
|
|
2129
|
+
});
|
|
2130
|
+
};
|
|
2131
|
+
/**
|
|
2132
|
+
* Delete secret
|
|
2133
|
+
* Deletes a secret and all its versions from the workspace.
|
|
2134
|
+
*/
|
|
2135
|
+
export const deleteSecret = (options) => {
|
|
2136
|
+
return (options.client ?? _heyApiClient).delete({
|
|
2137
|
+
security: [
|
|
2138
|
+
{
|
|
2139
|
+
scheme: 'bearer',
|
|
2140
|
+
type: 'http'
|
|
2141
|
+
}
|
|
2142
|
+
],
|
|
2143
|
+
url: '/secrets/{secretName}',
|
|
2144
|
+
...options
|
|
2145
|
+
});
|
|
2146
|
+
};
|
|
2063
2147
|
/**
|
|
2064
2148
|
* List service accounts
|
|
2065
2149
|
* Returns all service accounts in the workspace. Service accounts are machine identities for external systems to authenticate with Blaxel via OAuth or API keys.
|
|
@@ -24,8 +24,8 @@ function missingCredentialsMessage() {
|
|
|
24
24
|
return "No Blaxel credentials found. Set the BL_API_KEY and BL_WORKSPACE environment variables, or run `bl login`.";
|
|
25
25
|
}
|
|
26
26
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
27
|
-
const BUILD_VERSION = "0.3.
|
|
28
|
-
const BUILD_COMMIT = "
|
|
27
|
+
const BUILD_VERSION = "0.3.30-preview.323";
|
|
28
|
+
const BUILD_COMMIT = "999bd1ab9bdf3a42c60a8d62a89f5cb21a520c30";
|
|
29
29
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
30
30
|
const BLAXEL_API_VERSION = "2026-09-22";
|
|
31
31
|
// Bun < 1.3.11 never sends connection-level WINDOW_UPDATE: the pooled h2
|