modal 0.8.1 → 0.8.2
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/README.md +1 -0
- package/dist/index.cjs +486 -7
- package/dist/index.d.cts +108 -1
- package/dist/index.d.ts +108 -1
- package/dist/index.js +486 -7
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1199,6 +1199,8 @@ interface ContainerReloadVolumesResponse {
|
|
|
1199
1199
|
declare const ContainerReloadVolumesResponse: MessageFns$1<ContainerReloadVolumesResponse>;
|
|
1200
1200
|
interface ContainerStopRequest {
|
|
1201
1201
|
taskId: string;
|
|
1202
|
+
/** Let a Function container finish processing any inputs before exiting. */
|
|
1203
|
+
graceful: boolean;
|
|
1202
1204
|
}
|
|
1203
1205
|
declare const ContainerStopRequest: MessageFns$1<ContainerStopRequest>;
|
|
1204
1206
|
interface ContainerStopResponse {
|
|
@@ -2233,6 +2235,7 @@ interface FunctionOptions$1 {
|
|
|
2233
2235
|
replaceCloudBucketMounts: boolean;
|
|
2234
2236
|
cloudBucketMounts: CloudBucketMount$1[];
|
|
2235
2237
|
pinnedAppVersion?: number | undefined;
|
|
2238
|
+
routingRegion?: string | undefined;
|
|
2236
2239
|
}
|
|
2237
2240
|
declare const FunctionOptions$1: MessageFns$1<FunctionOptions$1>;
|
|
2238
2241
|
interface FunctionPrecreateRequest {
|
|
@@ -2563,6 +2566,7 @@ interface ImageTagRevisionsItem {
|
|
|
2563
2566
|
imageId: string;
|
|
2564
2567
|
revisionId: string;
|
|
2565
2568
|
createdAt: number;
|
|
2569
|
+
publishedBy: string;
|
|
2566
2570
|
}
|
|
2567
2571
|
declare const ImageTagRevisionsItem: MessageFns$1<ImageTagRevisionsItem>;
|
|
2568
2572
|
interface ImageTagRevisionsRequest {
|
|
@@ -4277,6 +4281,23 @@ interface WorkspaceNameLookupResponse {
|
|
|
4277
4281
|
username: string;
|
|
4278
4282
|
}
|
|
4279
4283
|
declare const WorkspaceNameLookupResponse: MessageFns$1<WorkspaceNameLookupResponse>;
|
|
4284
|
+
interface WorkspaceSetDefaultEnvironmentRequest {
|
|
4285
|
+
environmentName: string;
|
|
4286
|
+
}
|
|
4287
|
+
declare const WorkspaceSetDefaultEnvironmentRequest: MessageFns$1<WorkspaceSetDefaultEnvironmentRequest>;
|
|
4288
|
+
interface WorkspaceSetImageBuilderVersionRequest {
|
|
4289
|
+
newImageBuilderVersion: string;
|
|
4290
|
+
}
|
|
4291
|
+
declare const WorkspaceSetImageBuilderVersionRequest: MessageFns$1<WorkspaceSetImageBuilderVersionRequest>;
|
|
4292
|
+
interface WorkspaceSetImageBuilderVersionResponse {
|
|
4293
|
+
imageBuilderVersion: string;
|
|
4294
|
+
}
|
|
4295
|
+
declare const WorkspaceSetImageBuilderVersionResponse: MessageFns$1<WorkspaceSetImageBuilderVersionResponse>;
|
|
4296
|
+
interface WorkspaceSettingsResponse {
|
|
4297
|
+
defaultEnvironmentName: string;
|
|
4298
|
+
imageBuilderVersion: string;
|
|
4299
|
+
}
|
|
4300
|
+
declare const WorkspaceSettingsResponse: MessageFns$1<WorkspaceSettingsResponse>;
|
|
4280
4301
|
type ModalClientDefinition = typeof ModalClientDefinition;
|
|
4281
4302
|
declare const ModalClientDefinition: {
|
|
4282
4303
|
readonly name: "ModalClient";
|
|
@@ -6063,6 +6084,30 @@ declare const ModalClientDefinition: {
|
|
|
6063
6084
|
readonly responseStream: false;
|
|
6064
6085
|
readonly options: {};
|
|
6065
6086
|
};
|
|
6087
|
+
readonly workspaceSetDefaultEnvironment: {
|
|
6088
|
+
readonly name: "WorkspaceSetDefaultEnvironment";
|
|
6089
|
+
readonly requestType: MessageFns$1<WorkspaceSetDefaultEnvironmentRequest>;
|
|
6090
|
+
readonly requestStream: false;
|
|
6091
|
+
readonly responseType: MessageFns$2<Empty>;
|
|
6092
|
+
readonly responseStream: false;
|
|
6093
|
+
readonly options: {};
|
|
6094
|
+
};
|
|
6095
|
+
readonly workspaceSetImageBuilderVersion: {
|
|
6096
|
+
readonly name: "WorkspaceSetImageBuilderVersion";
|
|
6097
|
+
readonly requestType: MessageFns$1<WorkspaceSetImageBuilderVersionRequest>;
|
|
6098
|
+
readonly requestStream: false;
|
|
6099
|
+
readonly responseType: MessageFns$1<WorkspaceSetImageBuilderVersionResponse>;
|
|
6100
|
+
readonly responseStream: false;
|
|
6101
|
+
readonly options: {};
|
|
6102
|
+
};
|
|
6103
|
+
readonly workspaceSettings: {
|
|
6104
|
+
readonly name: "WorkspaceSettings";
|
|
6105
|
+
readonly requestType: MessageFns$2<Empty>;
|
|
6106
|
+
readonly requestStream: false;
|
|
6107
|
+
readonly responseType: MessageFns$1<WorkspaceSettingsResponse>;
|
|
6108
|
+
readonly responseStream: false;
|
|
6109
|
+
readonly options: {};
|
|
6110
|
+
};
|
|
6066
6111
|
};
|
|
6067
6112
|
};
|
|
6068
6113
|
type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
@@ -6889,6 +6934,19 @@ interface TaskMountDirectoryRequest {
|
|
|
6889
6934
|
customerSuppliedEncryptionKey?: Uint8Array | undefined;
|
|
6890
6935
|
}
|
|
6891
6936
|
declare const TaskMountDirectoryRequest: MessageFns<TaskMountDirectoryRequest>;
|
|
6937
|
+
interface TaskReloadVolumesRequest {
|
|
6938
|
+
taskId: string;
|
|
6939
|
+
}
|
|
6940
|
+
declare const TaskReloadVolumesRequest: MessageFns<TaskReloadVolumesRequest>;
|
|
6941
|
+
interface TaskSetNetworkAccessRequest {
|
|
6942
|
+
taskId: string;
|
|
6943
|
+
/**
|
|
6944
|
+
* Replaces the task's network access policy. Only ALLOWLIST is currently
|
|
6945
|
+
* supported; open access is expressed as an allow-all allowlist.
|
|
6946
|
+
*/
|
|
6947
|
+
networkAccess: NetworkAccess | undefined;
|
|
6948
|
+
}
|
|
6949
|
+
declare const TaskSetNetworkAccessRequest: MessageFns<TaskSetNetworkAccessRequest>;
|
|
6892
6950
|
interface TaskSnapshotDirectoryRequest {
|
|
6893
6951
|
taskId: string;
|
|
6894
6952
|
path: Uint8Array;
|
|
@@ -7015,6 +7073,9 @@ declare class TaskCommandRouterClientImpl {
|
|
|
7015
7073
|
snapshotDirectory(request: TaskSnapshotDirectoryRequest, options?: TimeoutOptions): Promise<TaskSnapshotDirectoryResponse>;
|
|
7016
7074
|
snapshotFilesystem(request: TaskSnapshotFilesystemRequest, options?: TimeoutOptions): Promise<TaskSnapshotFilesystemResponse>;
|
|
7017
7075
|
unmountDirectory(request: TaskUnmountDirectoryRequest): Promise<void>;
|
|
7076
|
+
setNetworkAccess(request: TaskSetNetworkAccessRequest): Promise<void>;
|
|
7077
|
+
/** Reload all Volumes mounted in the task to reflect their latest committed state. */
|
|
7078
|
+
reloadVolumes(request: TaskReloadVolumesRequest): Promise<void>;
|
|
7018
7079
|
sandboxWaitUntilReady(taskId: string, timeoutMs: number): Promise<SandboxWaitUntilReadyTcrResponse>;
|
|
7019
7080
|
private refreshJwt;
|
|
7020
7081
|
private callWithAuthRetry;
|
|
@@ -7470,6 +7531,20 @@ declare class SandboxService {
|
|
|
7470
7531
|
* If tags are specified, only Sandboxes that have at least those tags are returned.
|
|
7471
7532
|
*/
|
|
7472
7533
|
list(params?: SandboxListParams): AsyncGenerator<Sandbox, void, unknown>;
|
|
7534
|
+
/**
|
|
7535
|
+
* List the V2 {@link Sandbox}es in an {@link App}.
|
|
7536
|
+
*
|
|
7537
|
+
* This lists V2 Sandboxes, i.e. Sandboxes created via
|
|
7538
|
+
* {@link SandboxService#experimentalCreate client.sandboxes.experimentalCreate()}.
|
|
7539
|
+
* Such Sandboxes are not returned by
|
|
7540
|
+
* {@link SandboxService#list client.sandboxes.list()}. Filtering based on tags
|
|
7541
|
+
* is not yet supported.
|
|
7542
|
+
*
|
|
7543
|
+
* Yields {@link Sandbox} objects that are currently running in the App.
|
|
7544
|
+
*
|
|
7545
|
+
* EXPERIMENTAL: the API is subject to change.
|
|
7546
|
+
*/
|
|
7547
|
+
experimentalList(params: SandboxExperimentalListParams): AsyncGenerator<Sandbox, void, unknown>;
|
|
7473
7548
|
}
|
|
7474
7549
|
/** Optional parameters for {@link SandboxService#list client.sandboxes.list()}. */
|
|
7475
7550
|
type SandboxListParams = {
|
|
@@ -7480,6 +7555,11 @@ type SandboxListParams = {
|
|
|
7480
7555
|
/** Override environment for the request; defaults to current profile. */
|
|
7481
7556
|
environment?: string;
|
|
7482
7557
|
};
|
|
7558
|
+
/** Parameters for {@link SandboxService#experimentalList client.sandboxes.experimentalList()}. */
|
|
7559
|
+
type SandboxExperimentalListParams = {
|
|
7560
|
+
/** The App to list Sandboxes under. */
|
|
7561
|
+
appId: string;
|
|
7562
|
+
};
|
|
7483
7563
|
/** Optional parameters for {@link SandboxService#fromName client.sandboxes.fromName()}. */
|
|
7484
7564
|
type SandboxFromNameParams = {
|
|
7485
7565
|
environment?: string;
|
|
@@ -7560,6 +7640,21 @@ type SandboxCreateConnectTokenParams = {
|
|
|
7560
7640
|
/** Container port that requests are routed to when using this token. Defaults to 8080. */
|
|
7561
7641
|
port?: number;
|
|
7562
7642
|
};
|
|
7643
|
+
/**
|
|
7644
|
+
* Parameters for {@link Sandbox#updateNetworkPolicy Sandbox.updateNetworkPolicy()}.
|
|
7645
|
+
*
|
|
7646
|
+
* Each dimension is independent: `undefined` leaves that dimension unchanged,
|
|
7647
|
+
* while a defined value replaces it (an empty array blocks all egress for that
|
|
7648
|
+
* dimension; a wildcard entry such as `"0.0.0.0/0"` or `"*"` allows everything).
|
|
7649
|
+
*
|
|
7650
|
+
* Currently, both dimensions must be provided (the underlying transport does
|
|
7651
|
+
* not yet support partial updates). This requirement will be relaxed in a
|
|
7652
|
+
* future release.
|
|
7653
|
+
*/
|
|
7654
|
+
type SandboxUpdateNetworkPolicyParams = {
|
|
7655
|
+
outboundCidrAllowlist?: string[];
|
|
7656
|
+
outboundDomainAllowlist?: string[];
|
|
7657
|
+
};
|
|
7563
7658
|
/** Credentials returned by {@link Sandbox#createConnectToken Sandbox.createConnectToken()}. */
|
|
7564
7659
|
type SandboxCreateConnectCredentials = {
|
|
7565
7660
|
url: string;
|
|
@@ -7670,6 +7765,18 @@ declare class Sandbox {
|
|
|
7670
7765
|
* @param path - The mount path to unmount
|
|
7671
7766
|
*/
|
|
7672
7767
|
unmountImage(path: string): Promise<void>;
|
|
7768
|
+
/**
|
|
7769
|
+
* Updates the outbound network policy of a running Sandbox.
|
|
7770
|
+
*
|
|
7771
|
+
* Established connections that the new policy no longer permits are terminated.
|
|
7772
|
+
*
|
|
7773
|
+
* @param params - Both `outboundCidrAllowlist` and `outboundDomainAllowlist` must be provided.
|
|
7774
|
+
*/
|
|
7775
|
+
updateNetworkPolicy(params: SandboxUpdateNetworkPolicyParams): Promise<void>;
|
|
7776
|
+
/**
|
|
7777
|
+
* Reload all Volumes mounted in the Sandbox.
|
|
7778
|
+
*/
|
|
7779
|
+
reloadVolumes(): Promise<void>;
|
|
7673
7780
|
/**
|
|
7674
7781
|
* Snapshots and creates a new {@link Image} from a directory in the running sandbox.
|
|
7675
7782
|
*
|
|
@@ -7920,4 +8027,4 @@ declare class ClientClosedError extends Error {
|
|
|
7920
8027
|
|
|
7921
8028
|
declare function checkForRenamedParams(params: any, renames: Record<string, string>): void;
|
|
7922
8029
|
|
|
7923
|
-
export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ContainerProcess, type FileInfo, type FileType, FunctionCall, type FunctionCallCancelParams, type FunctionCallGetParams, FunctionCallService, type FunctionFromNameParams, FunctionService, type FunctionStats, FunctionTimeoutError, type FunctionUpdateAutoscalerParams, type FunctionWithBatchingParams, type FunctionWithConcurrencyParams, type FunctionWithOptionsParams, Function_, Image, type ImageDeleteParams, type ImageDockerfileCommandsParams, type ImageFromNameParams, type ImagePublishParams, ImageService, InternalFailure, InvalidError, type LogLevel, type Logger, ModalClient, type ModalClientParams, type ModalReadStream, type ModalWriteStream, NotFoundError, Probe, type ProbeParams, type Profile, Proxy, type ProxyFromNameParams, ProxyService, Queue, type QueueClearParams, type QueueDeleteParams, QueueEmptyError, type QueueEphemeralParams, type QueueFromNameParams, QueueFullError, type QueueGetParams, type QueueIterateParams, type QueueLenParams, type QueuePutParams, QueueService, RemoteError, Retries, Sandbox, type SandboxCreateConnectCredentials, type SandboxCreateConnectTokenParams, type SandboxCreateParams, type SandboxExecParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, type SandboxMountImageParams, SandboxService, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, type SandboxTerminateParams, SandboxTimeoutError, Secret, type SecretDeleteParams, type SecretFromNameParams, type SecretFromObjectParams, SecretService, SidecarContainer, type SidecarCreateParams, type SidecarExecParams, type SidecarGetParams, type SidecarListParams, SidecarService, type SidecarTerminateParams, type StdioBehavior, type StreamMode, TimeoutError, Tunnel, Volume, type VolumeDeleteParams, type VolumeEphemeralParams, type VolumeFromNameParams, type VolumeMountOptions, VolumeService, checkForRenamedParams };
|
|
8030
|
+
export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ContainerProcess, type FileInfo, type FileType, FunctionCall, type FunctionCallCancelParams, type FunctionCallGetParams, FunctionCallService, type FunctionFromNameParams, FunctionService, type FunctionStats, FunctionTimeoutError, type FunctionUpdateAutoscalerParams, type FunctionWithBatchingParams, type FunctionWithConcurrencyParams, type FunctionWithOptionsParams, Function_, Image, type ImageDeleteParams, type ImageDockerfileCommandsParams, type ImageFromNameParams, type ImagePublishParams, ImageService, InternalFailure, InvalidError, type LogLevel, type Logger, ModalClient, type ModalClientParams, type ModalReadStream, type ModalWriteStream, NotFoundError, Probe, type ProbeParams, type Profile, Proxy, type ProxyFromNameParams, ProxyService, Queue, type QueueClearParams, type QueueDeleteParams, QueueEmptyError, type QueueEphemeralParams, type QueueFromNameParams, QueueFullError, type QueueGetParams, type QueueIterateParams, type QueueLenParams, type QueuePutParams, QueueService, RemoteError, Retries, Sandbox, type SandboxCreateConnectCredentials, type SandboxCreateConnectTokenParams, type SandboxCreateParams, type SandboxExecParams, type SandboxExperimentalListParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, type SandboxMountImageParams, SandboxService, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, type SandboxTerminateParams, SandboxTimeoutError, type SandboxUpdateNetworkPolicyParams, Secret, type SecretDeleteParams, type SecretFromNameParams, type SecretFromObjectParams, SecretService, SidecarContainer, type SidecarCreateParams, type SidecarExecParams, type SidecarGetParams, type SidecarListParams, SidecarService, type SidecarTerminateParams, type StdioBehavior, type StreamMode, TimeoutError, Tunnel, Volume, type VolumeDeleteParams, type VolumeEphemeralParams, type VolumeFromNameParams, type VolumeMountOptions, VolumeService, checkForRenamedParams };
|
package/dist/index.d.ts
CHANGED
|
@@ -1199,6 +1199,8 @@ interface ContainerReloadVolumesResponse {
|
|
|
1199
1199
|
declare const ContainerReloadVolumesResponse: MessageFns$1<ContainerReloadVolumesResponse>;
|
|
1200
1200
|
interface ContainerStopRequest {
|
|
1201
1201
|
taskId: string;
|
|
1202
|
+
/** Let a Function container finish processing any inputs before exiting. */
|
|
1203
|
+
graceful: boolean;
|
|
1202
1204
|
}
|
|
1203
1205
|
declare const ContainerStopRequest: MessageFns$1<ContainerStopRequest>;
|
|
1204
1206
|
interface ContainerStopResponse {
|
|
@@ -2233,6 +2235,7 @@ interface FunctionOptions$1 {
|
|
|
2233
2235
|
replaceCloudBucketMounts: boolean;
|
|
2234
2236
|
cloudBucketMounts: CloudBucketMount$1[];
|
|
2235
2237
|
pinnedAppVersion?: number | undefined;
|
|
2238
|
+
routingRegion?: string | undefined;
|
|
2236
2239
|
}
|
|
2237
2240
|
declare const FunctionOptions$1: MessageFns$1<FunctionOptions$1>;
|
|
2238
2241
|
interface FunctionPrecreateRequest {
|
|
@@ -2563,6 +2566,7 @@ interface ImageTagRevisionsItem {
|
|
|
2563
2566
|
imageId: string;
|
|
2564
2567
|
revisionId: string;
|
|
2565
2568
|
createdAt: number;
|
|
2569
|
+
publishedBy: string;
|
|
2566
2570
|
}
|
|
2567
2571
|
declare const ImageTagRevisionsItem: MessageFns$1<ImageTagRevisionsItem>;
|
|
2568
2572
|
interface ImageTagRevisionsRequest {
|
|
@@ -4277,6 +4281,23 @@ interface WorkspaceNameLookupResponse {
|
|
|
4277
4281
|
username: string;
|
|
4278
4282
|
}
|
|
4279
4283
|
declare const WorkspaceNameLookupResponse: MessageFns$1<WorkspaceNameLookupResponse>;
|
|
4284
|
+
interface WorkspaceSetDefaultEnvironmentRequest {
|
|
4285
|
+
environmentName: string;
|
|
4286
|
+
}
|
|
4287
|
+
declare const WorkspaceSetDefaultEnvironmentRequest: MessageFns$1<WorkspaceSetDefaultEnvironmentRequest>;
|
|
4288
|
+
interface WorkspaceSetImageBuilderVersionRequest {
|
|
4289
|
+
newImageBuilderVersion: string;
|
|
4290
|
+
}
|
|
4291
|
+
declare const WorkspaceSetImageBuilderVersionRequest: MessageFns$1<WorkspaceSetImageBuilderVersionRequest>;
|
|
4292
|
+
interface WorkspaceSetImageBuilderVersionResponse {
|
|
4293
|
+
imageBuilderVersion: string;
|
|
4294
|
+
}
|
|
4295
|
+
declare const WorkspaceSetImageBuilderVersionResponse: MessageFns$1<WorkspaceSetImageBuilderVersionResponse>;
|
|
4296
|
+
interface WorkspaceSettingsResponse {
|
|
4297
|
+
defaultEnvironmentName: string;
|
|
4298
|
+
imageBuilderVersion: string;
|
|
4299
|
+
}
|
|
4300
|
+
declare const WorkspaceSettingsResponse: MessageFns$1<WorkspaceSettingsResponse>;
|
|
4280
4301
|
type ModalClientDefinition = typeof ModalClientDefinition;
|
|
4281
4302
|
declare const ModalClientDefinition: {
|
|
4282
4303
|
readonly name: "ModalClient";
|
|
@@ -6063,6 +6084,30 @@ declare const ModalClientDefinition: {
|
|
|
6063
6084
|
readonly responseStream: false;
|
|
6064
6085
|
readonly options: {};
|
|
6065
6086
|
};
|
|
6087
|
+
readonly workspaceSetDefaultEnvironment: {
|
|
6088
|
+
readonly name: "WorkspaceSetDefaultEnvironment";
|
|
6089
|
+
readonly requestType: MessageFns$1<WorkspaceSetDefaultEnvironmentRequest>;
|
|
6090
|
+
readonly requestStream: false;
|
|
6091
|
+
readonly responseType: MessageFns$2<Empty>;
|
|
6092
|
+
readonly responseStream: false;
|
|
6093
|
+
readonly options: {};
|
|
6094
|
+
};
|
|
6095
|
+
readonly workspaceSetImageBuilderVersion: {
|
|
6096
|
+
readonly name: "WorkspaceSetImageBuilderVersion";
|
|
6097
|
+
readonly requestType: MessageFns$1<WorkspaceSetImageBuilderVersionRequest>;
|
|
6098
|
+
readonly requestStream: false;
|
|
6099
|
+
readonly responseType: MessageFns$1<WorkspaceSetImageBuilderVersionResponse>;
|
|
6100
|
+
readonly responseStream: false;
|
|
6101
|
+
readonly options: {};
|
|
6102
|
+
};
|
|
6103
|
+
readonly workspaceSettings: {
|
|
6104
|
+
readonly name: "WorkspaceSettings";
|
|
6105
|
+
readonly requestType: MessageFns$2<Empty>;
|
|
6106
|
+
readonly requestStream: false;
|
|
6107
|
+
readonly responseType: MessageFns$1<WorkspaceSettingsResponse>;
|
|
6108
|
+
readonly responseStream: false;
|
|
6109
|
+
readonly options: {};
|
|
6110
|
+
};
|
|
6066
6111
|
};
|
|
6067
6112
|
};
|
|
6068
6113
|
type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
@@ -6889,6 +6934,19 @@ interface TaskMountDirectoryRequest {
|
|
|
6889
6934
|
customerSuppliedEncryptionKey?: Uint8Array | undefined;
|
|
6890
6935
|
}
|
|
6891
6936
|
declare const TaskMountDirectoryRequest: MessageFns<TaskMountDirectoryRequest>;
|
|
6937
|
+
interface TaskReloadVolumesRequest {
|
|
6938
|
+
taskId: string;
|
|
6939
|
+
}
|
|
6940
|
+
declare const TaskReloadVolumesRequest: MessageFns<TaskReloadVolumesRequest>;
|
|
6941
|
+
interface TaskSetNetworkAccessRequest {
|
|
6942
|
+
taskId: string;
|
|
6943
|
+
/**
|
|
6944
|
+
* Replaces the task's network access policy. Only ALLOWLIST is currently
|
|
6945
|
+
* supported; open access is expressed as an allow-all allowlist.
|
|
6946
|
+
*/
|
|
6947
|
+
networkAccess: NetworkAccess | undefined;
|
|
6948
|
+
}
|
|
6949
|
+
declare const TaskSetNetworkAccessRequest: MessageFns<TaskSetNetworkAccessRequest>;
|
|
6892
6950
|
interface TaskSnapshotDirectoryRequest {
|
|
6893
6951
|
taskId: string;
|
|
6894
6952
|
path: Uint8Array;
|
|
@@ -7015,6 +7073,9 @@ declare class TaskCommandRouterClientImpl {
|
|
|
7015
7073
|
snapshotDirectory(request: TaskSnapshotDirectoryRequest, options?: TimeoutOptions): Promise<TaskSnapshotDirectoryResponse>;
|
|
7016
7074
|
snapshotFilesystem(request: TaskSnapshotFilesystemRequest, options?: TimeoutOptions): Promise<TaskSnapshotFilesystemResponse>;
|
|
7017
7075
|
unmountDirectory(request: TaskUnmountDirectoryRequest): Promise<void>;
|
|
7076
|
+
setNetworkAccess(request: TaskSetNetworkAccessRequest): Promise<void>;
|
|
7077
|
+
/** Reload all Volumes mounted in the task to reflect their latest committed state. */
|
|
7078
|
+
reloadVolumes(request: TaskReloadVolumesRequest): Promise<void>;
|
|
7018
7079
|
sandboxWaitUntilReady(taskId: string, timeoutMs: number): Promise<SandboxWaitUntilReadyTcrResponse>;
|
|
7019
7080
|
private refreshJwt;
|
|
7020
7081
|
private callWithAuthRetry;
|
|
@@ -7470,6 +7531,20 @@ declare class SandboxService {
|
|
|
7470
7531
|
* If tags are specified, only Sandboxes that have at least those tags are returned.
|
|
7471
7532
|
*/
|
|
7472
7533
|
list(params?: SandboxListParams): AsyncGenerator<Sandbox, void, unknown>;
|
|
7534
|
+
/**
|
|
7535
|
+
* List the V2 {@link Sandbox}es in an {@link App}.
|
|
7536
|
+
*
|
|
7537
|
+
* This lists V2 Sandboxes, i.e. Sandboxes created via
|
|
7538
|
+
* {@link SandboxService#experimentalCreate client.sandboxes.experimentalCreate()}.
|
|
7539
|
+
* Such Sandboxes are not returned by
|
|
7540
|
+
* {@link SandboxService#list client.sandboxes.list()}. Filtering based on tags
|
|
7541
|
+
* is not yet supported.
|
|
7542
|
+
*
|
|
7543
|
+
* Yields {@link Sandbox} objects that are currently running in the App.
|
|
7544
|
+
*
|
|
7545
|
+
* EXPERIMENTAL: the API is subject to change.
|
|
7546
|
+
*/
|
|
7547
|
+
experimentalList(params: SandboxExperimentalListParams): AsyncGenerator<Sandbox, void, unknown>;
|
|
7473
7548
|
}
|
|
7474
7549
|
/** Optional parameters for {@link SandboxService#list client.sandboxes.list()}. */
|
|
7475
7550
|
type SandboxListParams = {
|
|
@@ -7480,6 +7555,11 @@ type SandboxListParams = {
|
|
|
7480
7555
|
/** Override environment for the request; defaults to current profile. */
|
|
7481
7556
|
environment?: string;
|
|
7482
7557
|
};
|
|
7558
|
+
/** Parameters for {@link SandboxService#experimentalList client.sandboxes.experimentalList()}. */
|
|
7559
|
+
type SandboxExperimentalListParams = {
|
|
7560
|
+
/** The App to list Sandboxes under. */
|
|
7561
|
+
appId: string;
|
|
7562
|
+
};
|
|
7483
7563
|
/** Optional parameters for {@link SandboxService#fromName client.sandboxes.fromName()}. */
|
|
7484
7564
|
type SandboxFromNameParams = {
|
|
7485
7565
|
environment?: string;
|
|
@@ -7560,6 +7640,21 @@ type SandboxCreateConnectTokenParams = {
|
|
|
7560
7640
|
/** Container port that requests are routed to when using this token. Defaults to 8080. */
|
|
7561
7641
|
port?: number;
|
|
7562
7642
|
};
|
|
7643
|
+
/**
|
|
7644
|
+
* Parameters for {@link Sandbox#updateNetworkPolicy Sandbox.updateNetworkPolicy()}.
|
|
7645
|
+
*
|
|
7646
|
+
* Each dimension is independent: `undefined` leaves that dimension unchanged,
|
|
7647
|
+
* while a defined value replaces it (an empty array blocks all egress for that
|
|
7648
|
+
* dimension; a wildcard entry such as `"0.0.0.0/0"` or `"*"` allows everything).
|
|
7649
|
+
*
|
|
7650
|
+
* Currently, both dimensions must be provided (the underlying transport does
|
|
7651
|
+
* not yet support partial updates). This requirement will be relaxed in a
|
|
7652
|
+
* future release.
|
|
7653
|
+
*/
|
|
7654
|
+
type SandboxUpdateNetworkPolicyParams = {
|
|
7655
|
+
outboundCidrAllowlist?: string[];
|
|
7656
|
+
outboundDomainAllowlist?: string[];
|
|
7657
|
+
};
|
|
7563
7658
|
/** Credentials returned by {@link Sandbox#createConnectToken Sandbox.createConnectToken()}. */
|
|
7564
7659
|
type SandboxCreateConnectCredentials = {
|
|
7565
7660
|
url: string;
|
|
@@ -7670,6 +7765,18 @@ declare class Sandbox {
|
|
|
7670
7765
|
* @param path - The mount path to unmount
|
|
7671
7766
|
*/
|
|
7672
7767
|
unmountImage(path: string): Promise<void>;
|
|
7768
|
+
/**
|
|
7769
|
+
* Updates the outbound network policy of a running Sandbox.
|
|
7770
|
+
*
|
|
7771
|
+
* Established connections that the new policy no longer permits are terminated.
|
|
7772
|
+
*
|
|
7773
|
+
* @param params - Both `outboundCidrAllowlist` and `outboundDomainAllowlist` must be provided.
|
|
7774
|
+
*/
|
|
7775
|
+
updateNetworkPolicy(params: SandboxUpdateNetworkPolicyParams): Promise<void>;
|
|
7776
|
+
/**
|
|
7777
|
+
* Reload all Volumes mounted in the Sandbox.
|
|
7778
|
+
*/
|
|
7779
|
+
reloadVolumes(): Promise<void>;
|
|
7673
7780
|
/**
|
|
7674
7781
|
* Snapshots and creates a new {@link Image} from a directory in the running sandbox.
|
|
7675
7782
|
*
|
|
@@ -7920,4 +8027,4 @@ declare class ClientClosedError extends Error {
|
|
|
7920
8027
|
|
|
7921
8028
|
declare function checkForRenamedParams(params: any, renames: Record<string, string>): void;
|
|
7922
8029
|
|
|
7923
|
-
export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ContainerProcess, type FileInfo, type FileType, FunctionCall, type FunctionCallCancelParams, type FunctionCallGetParams, FunctionCallService, type FunctionFromNameParams, FunctionService, type FunctionStats, FunctionTimeoutError, type FunctionUpdateAutoscalerParams, type FunctionWithBatchingParams, type FunctionWithConcurrencyParams, type FunctionWithOptionsParams, Function_, Image, type ImageDeleteParams, type ImageDockerfileCommandsParams, type ImageFromNameParams, type ImagePublishParams, ImageService, InternalFailure, InvalidError, type LogLevel, type Logger, ModalClient, type ModalClientParams, type ModalReadStream, type ModalWriteStream, NotFoundError, Probe, type ProbeParams, type Profile, Proxy, type ProxyFromNameParams, ProxyService, Queue, type QueueClearParams, type QueueDeleteParams, QueueEmptyError, type QueueEphemeralParams, type QueueFromNameParams, QueueFullError, type QueueGetParams, type QueueIterateParams, type QueueLenParams, type QueuePutParams, QueueService, RemoteError, Retries, Sandbox, type SandboxCreateConnectCredentials, type SandboxCreateConnectTokenParams, type SandboxCreateParams, type SandboxExecParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, type SandboxMountImageParams, SandboxService, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, type SandboxTerminateParams, SandboxTimeoutError, Secret, type SecretDeleteParams, type SecretFromNameParams, type SecretFromObjectParams, SecretService, SidecarContainer, type SidecarCreateParams, type SidecarExecParams, type SidecarGetParams, type SidecarListParams, SidecarService, type SidecarTerminateParams, type StdioBehavior, type StreamMode, TimeoutError, Tunnel, Volume, type VolumeDeleteParams, type VolumeEphemeralParams, type VolumeFromNameParams, type VolumeMountOptions, VolumeService, checkForRenamedParams };
|
|
8030
|
+
export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ContainerProcess, type FileInfo, type FileType, FunctionCall, type FunctionCallCancelParams, type FunctionCallGetParams, FunctionCallService, type FunctionFromNameParams, FunctionService, type FunctionStats, FunctionTimeoutError, type FunctionUpdateAutoscalerParams, type FunctionWithBatchingParams, type FunctionWithConcurrencyParams, type FunctionWithOptionsParams, Function_, Image, type ImageDeleteParams, type ImageDockerfileCommandsParams, type ImageFromNameParams, type ImagePublishParams, ImageService, InternalFailure, InvalidError, type LogLevel, type Logger, ModalClient, type ModalClientParams, type ModalReadStream, type ModalWriteStream, NotFoundError, Probe, type ProbeParams, type Profile, Proxy, type ProxyFromNameParams, ProxyService, Queue, type QueueClearParams, type QueueDeleteParams, QueueEmptyError, type QueueEphemeralParams, type QueueFromNameParams, QueueFullError, type QueueGetParams, type QueueIterateParams, type QueueLenParams, type QueuePutParams, QueueService, RemoteError, Retries, Sandbox, type SandboxCreateConnectCredentials, type SandboxCreateConnectTokenParams, type SandboxCreateParams, type SandboxExecParams, type SandboxExperimentalListParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, type SandboxMountImageParams, SandboxService, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, type SandboxTerminateParams, SandboxTimeoutError, type SandboxUpdateNetworkPolicyParams, Secret, type SecretDeleteParams, type SecretFromNameParams, type SecretFromObjectParams, SecretService, SidecarContainer, type SidecarCreateParams, type SidecarExecParams, type SidecarGetParams, type SidecarListParams, SidecarService, type SidecarTerminateParams, type StdioBehavior, type StreamMode, TimeoutError, Tunnel, Volume, type VolumeDeleteParams, type VolumeEphemeralParams, type VolumeFromNameParams, type VolumeMountOptions, VolumeService, checkForRenamedParams };
|