@lizard-build/sdk 0.1.56 → 0.1.58
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/index.d.mts +27 -2
- package/dist/index.d.ts +27 -2
- package/dist/index.js +17 -3
- package/dist/index.mjs +17 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -918,10 +918,24 @@ interface SandboxSnapshot {
|
|
|
918
918
|
memoryMb: number;
|
|
919
919
|
/** Unix milliseconds. */
|
|
920
920
|
createdAt: number;
|
|
921
|
+
/** Where it may be restored; see {@link SnapshotScope}. */
|
|
922
|
+
scope: SnapshotScope;
|
|
923
|
+
/** Whether the source had a volume attached (a restore then cannot attach another); `null` for older snapshots, which cannot take one. */
|
|
924
|
+
sourceVolume: boolean | null;
|
|
925
|
+
/** The user who took it; `null` for snapshots from before snapshots belonged to a user. */
|
|
926
|
+
createdBy: string | null;
|
|
921
927
|
}
|
|
928
|
+
/**
|
|
929
|
+
* Where a snapshot may be restored, always in its own region: `'user'` (the default) into any
|
|
930
|
+
* project you can use, in any of your workspaces; `'workspace'` only its own workspace;
|
|
931
|
+
* `'project'` only its own project.
|
|
932
|
+
*/
|
|
933
|
+
type SnapshotScope = 'user' | 'workspace' | 'project';
|
|
922
934
|
interface SnapshotOpts {
|
|
923
935
|
/** Warm copies to keep ready (container sandboxes only; ignored for Firecracker, whose snapshots restore from disk). */
|
|
924
936
|
poolSize?: number;
|
|
937
|
+
/** Where it may be restored. Default `'user'`: any of your projects and workspaces. */
|
|
938
|
+
scope?: SnapshotScope;
|
|
925
939
|
}
|
|
926
940
|
/**
|
|
927
941
|
* One entry of {@link Sandbox.fork}'s result: the new sandbox, or why that copy
|
|
@@ -1173,11 +1187,22 @@ declare class Sandbox extends SandboxClient {
|
|
|
1173
1187
|
signal?: AbortSignal;
|
|
1174
1188
|
}): AsyncGenerator<StreamEvent, any, any>;
|
|
1175
1189
|
static snapshots(projectId: string, opts?: ConnectionOpts): Promise<SandboxSnapshot[]>;
|
|
1190
|
+
/** Every snapshot you took, across all your workspaces and projects. */
|
|
1191
|
+
static mySnapshots(opts?: ConnectionOpts): Promise<SandboxSnapshot[]>;
|
|
1176
1192
|
static getSnapshot(snapshotId: string, opts?: ConnectionOpts): Promise<SandboxSnapshot>;
|
|
1177
|
-
/**
|
|
1193
|
+
/**
|
|
1194
|
+
* Start a new sandbox from a snapshot, in its region. `projectId` puts it in another project,
|
|
1195
|
+
* in any of your workspaces, as the snapshot's scope allows; default: the volume's project, else
|
|
1196
|
+
* the snapshot's own. `volumeId` mounts that volume at `/workspace` (a Firecracker snapshot of a
|
|
1197
|
+
* sandbox that had no volume attached; the volume must be in the snapshot's region).
|
|
1198
|
+
*/
|
|
1178
1199
|
static restore(snapshotId: string, opts?: ConnectionOpts & {
|
|
1179
1200
|
timeoutMs?: number;
|
|
1201
|
+
projectId?: string;
|
|
1202
|
+
volumeId?: string;
|
|
1180
1203
|
}): Promise<Sandbox>;
|
|
1204
|
+
/** Change where a snapshot you took may be restored. */
|
|
1205
|
+
static setSnapshotScope(snapshotId: string, scope: SnapshotScope, opts?: ConnectionOpts): Promise<SandboxSnapshot>;
|
|
1181
1206
|
static setSnapshotWarmPool(snapshotId: string, poolSize: number, opts?: ConnectionOpts): Promise<SandboxSnapshot>;
|
|
1182
1207
|
/** Release idle warm copies (container snapshots); retain saved state and existing claimed sandboxes. */
|
|
1183
1208
|
static pauseSnapshot(snapshotId: string, opts?: ConnectionOpts): Promise<SandboxSnapshot>;
|
|
@@ -2218,4 +2243,4 @@ declare class LizardCLI {
|
|
|
2218
2243
|
}): Promise<CLIResult>;
|
|
2219
2244
|
}
|
|
2220
2245
|
|
|
2221
|
-
export { type Account, type Addon, type AddonType, AddonsAPI, type ApiKey, type ApiKeyScope, ApiKeysAPI, AuthenticationError, type Balance, BillingAPI, type CLIOptions, type CLIResult, type CheckoutSession, type ClickOpts, type CodeContext, CodeSandbox, ConfigApplyError, type ConfigResult, ConflictError, type ConnectionOpts, type CostMetrics, type CreateAddonOpts, type CreateApiKeyOpts, type CreateContextOpts, type CreateProjectOpts, type CreateServiceOpts, type CreateVolumeOpts, type CreateWorkspaceOpts, type CreatedApiKey, type DeployEvent, DeployHandle, Desktop, type DesktopInfo, type DesktopStartOpts, type DomainInfo, type DomainStatus, DomainsAPI, Execution, ExecutionError, type ExposedPort, type FileInfo, type ForkResult, type FsEvent, type FsOpts, GitHubAPI, type ListTransactionsOpts, Lizard, LizardCLI, LizardError, type LizardOpts, type LogLine, type MetricPoint, type MetricRange, MetricsAPI, type MouseButton, NotFoundError, PaymentRequiredError, type Plan, PlatformClient, type ProcessInfo, type ProcessOpts, type ProcessResult, type ProcessSignal, type Project, type ProjectConfig, type ProjectCost, ProjectsAPI, type PromoRedemption, type RawMetrics, type Region, RegionsAPI, type RunCodeLanguage, type RunCodeOpts, Sandbox, type SandboxInfo, type SandboxOpts, type SandboxSnapshot, type ScaleOpts, type ScrollDirection, type Secret, SecretsAPI, type Service, type ServiceMetrics, type ServiceUpdate, ServicesAPI, type SetSecretOpts, type SnapshotOpts, type SnapshotWaitOpts, type StartCheckoutOpts, type StartProNowResult, StorageAPI, type StreamEvent, type Subscription, type SubscriptionStatus, TimeoutError, type Transaction, type TransactionPage, Volume, type VolumeInfo, type Workspace, WorkspacesAPI, resolveProjectId };
|
|
2246
|
+
export { type Account, type Addon, type AddonType, AddonsAPI, type ApiKey, type ApiKeyScope, ApiKeysAPI, AuthenticationError, type Balance, BillingAPI, type CLIOptions, type CLIResult, type CheckoutSession, type ClickOpts, type CodeContext, CodeSandbox, ConfigApplyError, type ConfigResult, ConflictError, type ConnectionOpts, type CostMetrics, type CreateAddonOpts, type CreateApiKeyOpts, type CreateContextOpts, type CreateProjectOpts, type CreateServiceOpts, type CreateVolumeOpts, type CreateWorkspaceOpts, type CreatedApiKey, type DeployEvent, DeployHandle, Desktop, type DesktopInfo, type DesktopStartOpts, type DomainInfo, type DomainStatus, DomainsAPI, Execution, ExecutionError, type ExposedPort, type FileInfo, type ForkResult, type FsEvent, type FsOpts, GitHubAPI, type ListTransactionsOpts, Lizard, LizardCLI, LizardError, type LizardOpts, type LogLine, type MetricPoint, type MetricRange, MetricsAPI, type MouseButton, NotFoundError, PaymentRequiredError, type Plan, PlatformClient, type ProcessInfo, type ProcessOpts, type ProcessResult, type ProcessSignal, type Project, type ProjectConfig, type ProjectCost, ProjectsAPI, type PromoRedemption, type RawMetrics, type Region, RegionsAPI, type RunCodeLanguage, type RunCodeOpts, Sandbox, type SandboxInfo, type SandboxOpts, type SandboxSnapshot, type ScaleOpts, type ScrollDirection, type Secret, SecretsAPI, type Service, type ServiceMetrics, type ServiceUpdate, ServicesAPI, type SetSecretOpts, type SnapshotOpts, type SnapshotScope, type SnapshotWaitOpts, type StartCheckoutOpts, type StartProNowResult, StorageAPI, type StreamEvent, type Subscription, type SubscriptionStatus, TimeoutError, type Transaction, type TransactionPage, Volume, type VolumeInfo, type Workspace, WorkspacesAPI, resolveProjectId };
|
package/dist/index.d.ts
CHANGED
|
@@ -918,10 +918,24 @@ interface SandboxSnapshot {
|
|
|
918
918
|
memoryMb: number;
|
|
919
919
|
/** Unix milliseconds. */
|
|
920
920
|
createdAt: number;
|
|
921
|
+
/** Where it may be restored; see {@link SnapshotScope}. */
|
|
922
|
+
scope: SnapshotScope;
|
|
923
|
+
/** Whether the source had a volume attached (a restore then cannot attach another); `null` for older snapshots, which cannot take one. */
|
|
924
|
+
sourceVolume: boolean | null;
|
|
925
|
+
/** The user who took it; `null` for snapshots from before snapshots belonged to a user. */
|
|
926
|
+
createdBy: string | null;
|
|
921
927
|
}
|
|
928
|
+
/**
|
|
929
|
+
* Where a snapshot may be restored, always in its own region: `'user'` (the default) into any
|
|
930
|
+
* project you can use, in any of your workspaces; `'workspace'` only its own workspace;
|
|
931
|
+
* `'project'` only its own project.
|
|
932
|
+
*/
|
|
933
|
+
type SnapshotScope = 'user' | 'workspace' | 'project';
|
|
922
934
|
interface SnapshotOpts {
|
|
923
935
|
/** Warm copies to keep ready (container sandboxes only; ignored for Firecracker, whose snapshots restore from disk). */
|
|
924
936
|
poolSize?: number;
|
|
937
|
+
/** Where it may be restored. Default `'user'`: any of your projects and workspaces. */
|
|
938
|
+
scope?: SnapshotScope;
|
|
925
939
|
}
|
|
926
940
|
/**
|
|
927
941
|
* One entry of {@link Sandbox.fork}'s result: the new sandbox, or why that copy
|
|
@@ -1173,11 +1187,22 @@ declare class Sandbox extends SandboxClient {
|
|
|
1173
1187
|
signal?: AbortSignal;
|
|
1174
1188
|
}): AsyncGenerator<StreamEvent, any, any>;
|
|
1175
1189
|
static snapshots(projectId: string, opts?: ConnectionOpts): Promise<SandboxSnapshot[]>;
|
|
1190
|
+
/** Every snapshot you took, across all your workspaces and projects. */
|
|
1191
|
+
static mySnapshots(opts?: ConnectionOpts): Promise<SandboxSnapshot[]>;
|
|
1176
1192
|
static getSnapshot(snapshotId: string, opts?: ConnectionOpts): Promise<SandboxSnapshot>;
|
|
1177
|
-
/**
|
|
1193
|
+
/**
|
|
1194
|
+
* Start a new sandbox from a snapshot, in its region. `projectId` puts it in another project,
|
|
1195
|
+
* in any of your workspaces, as the snapshot's scope allows; default: the volume's project, else
|
|
1196
|
+
* the snapshot's own. `volumeId` mounts that volume at `/workspace` (a Firecracker snapshot of a
|
|
1197
|
+
* sandbox that had no volume attached; the volume must be in the snapshot's region).
|
|
1198
|
+
*/
|
|
1178
1199
|
static restore(snapshotId: string, opts?: ConnectionOpts & {
|
|
1179
1200
|
timeoutMs?: number;
|
|
1201
|
+
projectId?: string;
|
|
1202
|
+
volumeId?: string;
|
|
1180
1203
|
}): Promise<Sandbox>;
|
|
1204
|
+
/** Change where a snapshot you took may be restored. */
|
|
1205
|
+
static setSnapshotScope(snapshotId: string, scope: SnapshotScope, opts?: ConnectionOpts): Promise<SandboxSnapshot>;
|
|
1181
1206
|
static setSnapshotWarmPool(snapshotId: string, poolSize: number, opts?: ConnectionOpts): Promise<SandboxSnapshot>;
|
|
1182
1207
|
/** Release idle warm copies (container snapshots); retain saved state and existing claimed sandboxes. */
|
|
1183
1208
|
static pauseSnapshot(snapshotId: string, opts?: ConnectionOpts): Promise<SandboxSnapshot>;
|
|
@@ -2218,4 +2243,4 @@ declare class LizardCLI {
|
|
|
2218
2243
|
}): Promise<CLIResult>;
|
|
2219
2244
|
}
|
|
2220
2245
|
|
|
2221
|
-
export { type Account, type Addon, type AddonType, AddonsAPI, type ApiKey, type ApiKeyScope, ApiKeysAPI, AuthenticationError, type Balance, BillingAPI, type CLIOptions, type CLIResult, type CheckoutSession, type ClickOpts, type CodeContext, CodeSandbox, ConfigApplyError, type ConfigResult, ConflictError, type ConnectionOpts, type CostMetrics, type CreateAddonOpts, type CreateApiKeyOpts, type CreateContextOpts, type CreateProjectOpts, type CreateServiceOpts, type CreateVolumeOpts, type CreateWorkspaceOpts, type CreatedApiKey, type DeployEvent, DeployHandle, Desktop, type DesktopInfo, type DesktopStartOpts, type DomainInfo, type DomainStatus, DomainsAPI, Execution, ExecutionError, type ExposedPort, type FileInfo, type ForkResult, type FsEvent, type FsOpts, GitHubAPI, type ListTransactionsOpts, Lizard, LizardCLI, LizardError, type LizardOpts, type LogLine, type MetricPoint, type MetricRange, MetricsAPI, type MouseButton, NotFoundError, PaymentRequiredError, type Plan, PlatformClient, type ProcessInfo, type ProcessOpts, type ProcessResult, type ProcessSignal, type Project, type ProjectConfig, type ProjectCost, ProjectsAPI, type PromoRedemption, type RawMetrics, type Region, RegionsAPI, type RunCodeLanguage, type RunCodeOpts, Sandbox, type SandboxInfo, type SandboxOpts, type SandboxSnapshot, type ScaleOpts, type ScrollDirection, type Secret, SecretsAPI, type Service, type ServiceMetrics, type ServiceUpdate, ServicesAPI, type SetSecretOpts, type SnapshotOpts, type SnapshotWaitOpts, type StartCheckoutOpts, type StartProNowResult, StorageAPI, type StreamEvent, type Subscription, type SubscriptionStatus, TimeoutError, type Transaction, type TransactionPage, Volume, type VolumeInfo, type Workspace, WorkspacesAPI, resolveProjectId };
|
|
2246
|
+
export { type Account, type Addon, type AddonType, AddonsAPI, type ApiKey, type ApiKeyScope, ApiKeysAPI, AuthenticationError, type Balance, BillingAPI, type CLIOptions, type CLIResult, type CheckoutSession, type ClickOpts, type CodeContext, CodeSandbox, ConfigApplyError, type ConfigResult, ConflictError, type ConnectionOpts, type CostMetrics, type CreateAddonOpts, type CreateApiKeyOpts, type CreateContextOpts, type CreateProjectOpts, type CreateServiceOpts, type CreateVolumeOpts, type CreateWorkspaceOpts, type CreatedApiKey, type DeployEvent, DeployHandle, Desktop, type DesktopInfo, type DesktopStartOpts, type DomainInfo, type DomainStatus, DomainsAPI, Execution, ExecutionError, type ExposedPort, type FileInfo, type ForkResult, type FsEvent, type FsOpts, GitHubAPI, type ListTransactionsOpts, Lizard, LizardCLI, LizardError, type LizardOpts, type LogLine, type MetricPoint, type MetricRange, MetricsAPI, type MouseButton, NotFoundError, PaymentRequiredError, type Plan, PlatformClient, type ProcessInfo, type ProcessOpts, type ProcessResult, type ProcessSignal, type Project, type ProjectConfig, type ProjectCost, ProjectsAPI, type PromoRedemption, type RawMetrics, type Region, RegionsAPI, type RunCodeLanguage, type RunCodeOpts, Sandbox, type SandboxInfo, type SandboxOpts, type SandboxSnapshot, type ScaleOpts, type ScrollDirection, type Secret, SecretsAPI, type Service, type ServiceMetrics, type ServiceUpdate, ServicesAPI, type SetSecretOpts, type SnapshotOpts, type SnapshotScope, type SnapshotWaitOpts, type StartCheckoutOpts, type StartProNowResult, StorageAPI, type StreamEvent, type Subscription, type SubscriptionStatus, TimeoutError, type Transaction, type TransactionPage, Volume, type VolumeInfo, type Workspace, WorkspacesAPI, resolveProjectId };
|
package/dist/index.js
CHANGED
|
@@ -1291,7 +1291,7 @@ var Sandbox = class extends SandboxClient {
|
|
|
1291
1291
|
* keeps running. `poolSize` applies to container sandboxes only.
|
|
1292
1292
|
*/
|
|
1293
1293
|
snapshot(name = `Snapshot ${this.sandboxId}`, opts = {}) {
|
|
1294
|
-
return new PlatformClient(this.resolveOpts()).post(`/api/sandboxes/${this.sandboxId}/snapshot`, { name, poolSize: opts.poolSize ?? 5 });
|
|
1294
|
+
return new PlatformClient(this.resolveOpts()).post(`/api/sandboxes/${this.sandboxId}/snapshot`, { name, poolSize: opts.poolSize ?? 5, scope: opts.scope });
|
|
1295
1295
|
}
|
|
1296
1296
|
unexpose(port) {
|
|
1297
1297
|
return new PlatformClient(this.resolveOpts()).delete(`/api/sandboxes/${this.sandboxId}/expose/${port}`);
|
|
@@ -1303,21 +1303,35 @@ var Sandbox = class extends SandboxClient {
|
|
|
1303
1303
|
static snapshots(projectId, opts) {
|
|
1304
1304
|
return new PlatformClient(opts ?? {}).get(`/api/projects/${encodeURIComponent(projectId)}/snapshots`);
|
|
1305
1305
|
}
|
|
1306
|
+
/** Every snapshot you took, across all your workspaces and projects. */
|
|
1307
|
+
static mySnapshots(opts) {
|
|
1308
|
+
return new PlatformClient(opts ?? {}).get("/api/sandbox-snapshots");
|
|
1309
|
+
}
|
|
1306
1310
|
static getSnapshot(snapshotId, opts) {
|
|
1307
1311
|
return new PlatformClient(opts ?? {}).get(`/api/sandbox-snapshots/${encodeURIComponent(snapshotId)}`);
|
|
1308
1312
|
}
|
|
1309
|
-
/**
|
|
1313
|
+
/**
|
|
1314
|
+
* Start a new sandbox from a snapshot, in its region. `projectId` puts it in another project,
|
|
1315
|
+
* in any of your workspaces, as the snapshot's scope allows; default: the volume's project, else
|
|
1316
|
+
* the snapshot's own. `volumeId` mounts that volume at `/workspace` (a Firecracker snapshot of a
|
|
1317
|
+
* sandbox that had no volume attached; the volume must be in the snapshot's region).
|
|
1318
|
+
*/
|
|
1310
1319
|
static async restore(snapshotId, opts) {
|
|
1311
1320
|
const client = new PlatformClient(opts ?? {});
|
|
1312
1321
|
const snapshot = await this.getSnapshot(snapshotId, opts);
|
|
1313
1322
|
const result = await client.post("/api/sandboxes", {
|
|
1314
1323
|
snapshotId,
|
|
1315
|
-
projectId: snapshot.projectId,
|
|
1324
|
+
projectId: opts?.projectId ?? (opts?.volumeId ? void 0 : snapshot.projectId),
|
|
1316
1325
|
region: snapshot.region,
|
|
1326
|
+
volumeId: opts?.volumeId,
|
|
1317
1327
|
timeoutMs: opts?.timeoutMs ?? DEFAULT_SANDBOX_TIMEOUT_MS
|
|
1318
1328
|
});
|
|
1319
1329
|
return new this({ ...opts, sandboxId: result.sandboxId ?? result.id });
|
|
1320
1330
|
}
|
|
1331
|
+
/** Change where a snapshot you took may be restored. */
|
|
1332
|
+
static setSnapshotScope(snapshotId, scope, opts) {
|
|
1333
|
+
return new PlatformClient(opts ?? {}).patch(`/api/sandbox-snapshots/${encodeURIComponent(snapshotId)}`, { scope });
|
|
1334
|
+
}
|
|
1321
1335
|
static setSnapshotWarmPool(snapshotId, poolSize, opts) {
|
|
1322
1336
|
return new PlatformClient(opts ?? {}).patch(`/api/sandbox-snapshots/${encodeURIComponent(snapshotId)}`, { poolSize });
|
|
1323
1337
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1238,7 +1238,7 @@ var Sandbox = class extends SandboxClient {
|
|
|
1238
1238
|
* keeps running. `poolSize` applies to container sandboxes only.
|
|
1239
1239
|
*/
|
|
1240
1240
|
snapshot(name = `Snapshot ${this.sandboxId}`, opts = {}) {
|
|
1241
|
-
return new PlatformClient(this.resolveOpts()).post(`/api/sandboxes/${this.sandboxId}/snapshot`, { name, poolSize: opts.poolSize ?? 5 });
|
|
1241
|
+
return new PlatformClient(this.resolveOpts()).post(`/api/sandboxes/${this.sandboxId}/snapshot`, { name, poolSize: opts.poolSize ?? 5, scope: opts.scope });
|
|
1242
1242
|
}
|
|
1243
1243
|
unexpose(port) {
|
|
1244
1244
|
return new PlatformClient(this.resolveOpts()).delete(`/api/sandboxes/${this.sandboxId}/expose/${port}`);
|
|
@@ -1250,21 +1250,35 @@ var Sandbox = class extends SandboxClient {
|
|
|
1250
1250
|
static snapshots(projectId, opts) {
|
|
1251
1251
|
return new PlatformClient(opts ?? {}).get(`/api/projects/${encodeURIComponent(projectId)}/snapshots`);
|
|
1252
1252
|
}
|
|
1253
|
+
/** Every snapshot you took, across all your workspaces and projects. */
|
|
1254
|
+
static mySnapshots(opts) {
|
|
1255
|
+
return new PlatformClient(opts ?? {}).get("/api/sandbox-snapshots");
|
|
1256
|
+
}
|
|
1253
1257
|
static getSnapshot(snapshotId, opts) {
|
|
1254
1258
|
return new PlatformClient(opts ?? {}).get(`/api/sandbox-snapshots/${encodeURIComponent(snapshotId)}`);
|
|
1255
1259
|
}
|
|
1256
|
-
/**
|
|
1260
|
+
/**
|
|
1261
|
+
* Start a new sandbox from a snapshot, in its region. `projectId` puts it in another project,
|
|
1262
|
+
* in any of your workspaces, as the snapshot's scope allows; default: the volume's project, else
|
|
1263
|
+
* the snapshot's own. `volumeId` mounts that volume at `/workspace` (a Firecracker snapshot of a
|
|
1264
|
+
* sandbox that had no volume attached; the volume must be in the snapshot's region).
|
|
1265
|
+
*/
|
|
1257
1266
|
static async restore(snapshotId, opts) {
|
|
1258
1267
|
const client = new PlatformClient(opts ?? {});
|
|
1259
1268
|
const snapshot = await this.getSnapshot(snapshotId, opts);
|
|
1260
1269
|
const result = await client.post("/api/sandboxes", {
|
|
1261
1270
|
snapshotId,
|
|
1262
|
-
projectId: snapshot.projectId,
|
|
1271
|
+
projectId: opts?.projectId ?? (opts?.volumeId ? void 0 : snapshot.projectId),
|
|
1263
1272
|
region: snapshot.region,
|
|
1273
|
+
volumeId: opts?.volumeId,
|
|
1264
1274
|
timeoutMs: opts?.timeoutMs ?? DEFAULT_SANDBOX_TIMEOUT_MS
|
|
1265
1275
|
});
|
|
1266
1276
|
return new this({ ...opts, sandboxId: result.sandboxId ?? result.id });
|
|
1267
1277
|
}
|
|
1278
|
+
/** Change where a snapshot you took may be restored. */
|
|
1279
|
+
static setSnapshotScope(snapshotId, scope, opts) {
|
|
1280
|
+
return new PlatformClient(opts ?? {}).patch(`/api/sandbox-snapshots/${encodeURIComponent(snapshotId)}`, { scope });
|
|
1281
|
+
}
|
|
1268
1282
|
static setSnapshotWarmPool(snapshotId, poolSize, opts) {
|
|
1269
1283
|
return new PlatformClient(opts ?? {}).patch(`/api/sandbox-snapshots/${encodeURIComponent(snapshotId)}`, { poolSize });
|
|
1270
1284
|
}
|
package/package.json
CHANGED