@blaxel/core 0.2.95-preview.199 → 0.2.95-preview.200

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.
@@ -22,8 +22,8 @@ function missingCredentialsMessage() {
22
22
  return "No Blaxel credentials found. Set the BL_API_KEY and BL_WORKSPACE environment variables, or run `bl login`.";
23
23
  }
24
24
  // Build info - these placeholders are replaced at build time by build:replace-imports
25
- const BUILD_VERSION = "0.2.95-preview.199";
26
- const BUILD_COMMIT = "a9ab5d2a89d113a4b1c42476839f7424b5165f31";
25
+ const BUILD_VERSION = "0.2.95-preview.200";
26
+ const BUILD_COMMIT = "21ecd90513bd1d7c3e6af0a9e8add801c5abb297";
27
27
  const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
28
28
  const BLAXEL_API_VERSION = "2026-04-16";
29
29
  // Cache for config.yaml tracking value
@@ -30,6 +30,9 @@ export class DriveInstance {
30
30
  get region() {
31
31
  return this.drive.spec.region;
32
32
  }
33
+ get permissions() {
34
+ return this.drive.spec?.permissions;
35
+ }
33
36
  static async create(config) {
34
37
  const defaultName = `drive-${uuidv4().replace(/-/g, '').substring(0, 8)}`;
35
38
  let drive;
@@ -47,7 +50,8 @@ export class DriveInstance {
47
50
  },
48
51
  spec: {
49
52
  size: config.size,
50
- region: config.region || settings.region
53
+ region: config.region || settings.region,
54
+ permissions: config.permissions,
51
55
  }
52
56
  };
53
57
  }
@@ -117,6 +121,8 @@ export class DriveInstance {
117
121
  specUpdates.size = updates.spec.size;
118
122
  if (updates.spec.region !== undefined)
119
123
  specUpdates.region = updates.spec.region;
124
+ if (updates.spec.permissions !== undefined)
125
+ specUpdates.permissions = updates.spec.permissions;
120
126
  }
121
127
  }
122
128
  else {
@@ -129,6 +135,8 @@ export class DriveInstance {
129
135
  specUpdates.size = updates.size;
130
136
  if (updates.region !== undefined)
131
137
  specUpdates.region = updates.region;
138
+ if (updates.permissions !== undefined)
139
+ specUpdates.permissions = updates.permissions;
132
140
  }
133
141
  const body = {
134
142
  metadata: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/core",
3
- "version": "0.2.95-preview.199",
3
+ "version": "0.2.95-preview.200",
4
4
  "description": "Blaxel Core SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",