@blaxel/core 0.2.80 → 0.2.81-preview.143
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 +54 -3
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/sandbox/sandbox.js +4 -1
- package/dist/cjs/types/client/sdk.gen.d.ts +20 -5
- package/dist/cjs/types/client/types.gen.d.ts +304 -4
- package/dist/cjs/types/sandbox/types.d.ts +1 -0
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/client/sdk.gen.js +54 -3
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/sandbox/sandbox.js +4 -1
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +20 -5
- package/dist/cjs-browser/types/client/types.gen.d.ts +304 -4
- package/dist/cjs-browser/types/sandbox/types.d.ts +1 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/client/sdk.gen.js +49 -1
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/sandbox/sandbox.js +4 -1
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/sdk.gen.js +49 -1
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/sandbox/sandbox.js +4 -1
- package/package.json +1 -1
|
@@ -601,7 +601,7 @@ export const listImageShares = (options) => {
|
|
|
601
601
|
};
|
|
602
602
|
/**
|
|
603
603
|
* Share a container image
|
|
604
|
-
* Shares a container image with another workspace by copying the metadata record. The underlying storage (S3) data is not duplicated.
|
|
604
|
+
* Shares a container image with another workspace by copying the metadata record. The underlying storage (S3) data is not duplicated. For same-account targets the share is applied immediately. For cross-account targets, a pending image share is created and must be explicitly accepted by an admin of the target workspace; the correct target account ID must be supplied as an anti-spam measure.
|
|
605
605
|
*/
|
|
606
606
|
export const shareImage = (options) => {
|
|
607
607
|
return (options.client ?? _heyApiClient).post({
|
|
@@ -1111,6 +1111,54 @@ export const listModelRevisions = (options) => {
|
|
|
1111
1111
|
...options
|
|
1112
1112
|
});
|
|
1113
1113
|
};
|
|
1114
|
+
/**
|
|
1115
|
+
* List pending image shares
|
|
1116
|
+
* Lists pending cross-account image shares targeting the caller's workspace (incoming) or originating from it (outgoing). Expired shares are cleaned up opportunistically.
|
|
1117
|
+
*/
|
|
1118
|
+
export const listPendingImageShares = (options) => {
|
|
1119
|
+
return (options?.client ?? _heyApiClient).get({
|
|
1120
|
+
security: [
|
|
1121
|
+
{
|
|
1122
|
+
scheme: 'bearer',
|
|
1123
|
+
type: 'http'
|
|
1124
|
+
}
|
|
1125
|
+
],
|
|
1126
|
+
url: '/pending-image-shares',
|
|
1127
|
+
...options
|
|
1128
|
+
});
|
|
1129
|
+
};
|
|
1130
|
+
/**
|
|
1131
|
+
* Accept a pending image share
|
|
1132
|
+
* Accepts a pending cross-account image share and copies the image metadata to the target workspace. Caller must be an admin of the target workspace.
|
|
1133
|
+
*/
|
|
1134
|
+
export const acceptImageShare = (options) => {
|
|
1135
|
+
return (options.client ?? _heyApiClient).post({
|
|
1136
|
+
security: [
|
|
1137
|
+
{
|
|
1138
|
+
scheme: 'bearer',
|
|
1139
|
+
type: 'http'
|
|
1140
|
+
}
|
|
1141
|
+
],
|
|
1142
|
+
url: '/pending-image-shares/{pendingShareId}/accept',
|
|
1143
|
+
...options
|
|
1144
|
+
});
|
|
1145
|
+
};
|
|
1146
|
+
/**
|
|
1147
|
+
* Decline a pending image share
|
|
1148
|
+
* Declines a pending cross-account image share. Caller must be an admin of the target workspace.
|
|
1149
|
+
*/
|
|
1150
|
+
export const declineImageShare = (options) => {
|
|
1151
|
+
return (options.client ?? _heyApiClient).post({
|
|
1152
|
+
security: [
|
|
1153
|
+
{
|
|
1154
|
+
scheme: 'bearer',
|
|
1155
|
+
type: 'http'
|
|
1156
|
+
}
|
|
1157
|
+
],
|
|
1158
|
+
url: '/pending-image-shares/{pendingShareId}/decline',
|
|
1159
|
+
...options
|
|
1160
|
+
});
|
|
1161
|
+
};
|
|
1114
1162
|
/**
|
|
1115
1163
|
* List governance policies
|
|
1116
1164
|
* Returns all governance policies in the workspace. Policies control deployment locations, hardware flavors, and token limits for agents, functions, and models.
|
|
@@ -5,8 +5,8 @@ import { authentication } from "../authentication/index.js";
|
|
|
5
5
|
import { env } from "../common/env.js";
|
|
6
6
|
import { fs, os, path } from "../common/node.js";
|
|
7
7
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
8
|
-
const BUILD_VERSION = "0.2.
|
|
9
|
-
const BUILD_COMMIT = "
|
|
8
|
+
const BUILD_VERSION = "0.2.81-preview.143";
|
|
9
|
+
const BUILD_COMMIT = "e2dfc37c711becd7d0262c6cb7b566301dc35d71";
|
|
10
10
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
11
11
|
// Cache for config.yaml tracking value
|
|
12
12
|
let configTrackingValue = null;
|
|
@@ -104,7 +104,8 @@ export class SandboxInstance {
|
|
|
104
104
|
'lifecycle' in sandbox ||
|
|
105
105
|
'network' in sandbox ||
|
|
106
106
|
'snapshotEnabled' in sandbox ||
|
|
107
|
-
'labels' in sandbox
|
|
107
|
+
'labels' in sandbox ||
|
|
108
|
+
'extraArgs' in sandbox) {
|
|
108
109
|
if (!sandbox)
|
|
109
110
|
sandbox = {};
|
|
110
111
|
if (!sandbox.name)
|
|
@@ -126,6 +127,7 @@ export class SandboxInstance {
|
|
|
126
127
|
const lifecycle = sandbox.lifecycle;
|
|
127
128
|
const network = sandbox.network;
|
|
128
129
|
const snapshotEnabled = sandbox.snapshotEnabled;
|
|
130
|
+
const extraArgs = sandbox.extraArgs;
|
|
129
131
|
sandbox = {
|
|
130
132
|
metadata: { name: sandbox.name, labels: sandbox.labels },
|
|
131
133
|
spec: {
|
|
@@ -137,6 +139,7 @@ export class SandboxInstance {
|
|
|
137
139
|
envs: envs,
|
|
138
140
|
generation: "mk3",
|
|
139
141
|
snapshotEnabled,
|
|
142
|
+
extraArgs,
|
|
140
143
|
},
|
|
141
144
|
volumes: volumes,
|
|
142
145
|
lifecycle: lifecycle,
|