modal 0.10.2-dev.5 → 0.10.2-dev.7
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 +459 -151
- package/dist/index.d.cts +91 -1
- package/dist/index.d.ts +91 -1
- package/dist/index.js +458 -151
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4097,6 +4097,14 @@ interface SecretDeleteRequest {
|
|
|
4097
4097
|
secretId: string;
|
|
4098
4098
|
}
|
|
4099
4099
|
declare const SecretDeleteRequest: MessageFns$1<SecretDeleteRequest>;
|
|
4100
|
+
interface SecretGetInfoRequest {
|
|
4101
|
+
secretId: string;
|
|
4102
|
+
}
|
|
4103
|
+
declare const SecretGetInfoRequest: MessageFns$1<SecretGetInfoRequest>;
|
|
4104
|
+
interface SecretGetInfoResponse {
|
|
4105
|
+
metadata: SecretMetadata | undefined;
|
|
4106
|
+
}
|
|
4107
|
+
declare const SecretGetInfoResponse: MessageFns$1<SecretGetInfoResponse>;
|
|
4100
4108
|
interface SecretGetOrCreateRequest {
|
|
4101
4109
|
deploymentName: string;
|
|
4102
4110
|
environmentName: string;
|
|
@@ -4140,6 +4148,7 @@ interface SecretMetadata {
|
|
|
4140
4148
|
name: string;
|
|
4141
4149
|
creationInfo: CreationInfo | undefined;
|
|
4142
4150
|
keys: string[];
|
|
4151
|
+
environmentName: string;
|
|
4143
4152
|
}
|
|
4144
4153
|
declare const SecretMetadata: MessageFns$1<SecretMetadata>;
|
|
4145
4154
|
interface SecretUpdateRequest {
|
|
@@ -6619,6 +6628,14 @@ declare const ModalClientDefinition: {
|
|
|
6619
6628
|
readonly responseStream: false;
|
|
6620
6629
|
readonly options: {};
|
|
6621
6630
|
};
|
|
6631
|
+
readonly secretGetInfo: {
|
|
6632
|
+
readonly name: "SecretGetInfo";
|
|
6633
|
+
readonly requestType: MessageFns$1<SecretGetInfoRequest>;
|
|
6634
|
+
readonly requestStream: false;
|
|
6635
|
+
readonly responseType: MessageFns$1<SecretGetInfoResponse>;
|
|
6636
|
+
readonly responseStream: false;
|
|
6637
|
+
readonly options: {};
|
|
6638
|
+
};
|
|
6622
6639
|
readonly secretGetOrCreate: {
|
|
6623
6640
|
readonly name: "SecretGetOrCreate";
|
|
6624
6641
|
readonly requestType: MessageFns$1<SecretGetOrCreateRequest>;
|
|
@@ -7319,6 +7336,8 @@ interface FunctionCallLogFetchParams {
|
|
|
7319
7336
|
/** Filter by text contained in the log message. */
|
|
7320
7337
|
searchText?: string;
|
|
7321
7338
|
}
|
|
7339
|
+
type SandboxLogFetchParams = FunctionLogFetchParams;
|
|
7340
|
+
type SandboxLogTailParams = FunctionLogTailParams;
|
|
7322
7341
|
interface FunctionLogs {
|
|
7323
7342
|
fetch(params: FunctionLogFetchParams): AsyncIterable<LogEntry>;
|
|
7324
7343
|
tail(params?: FunctionLogTailParams): AsyncIterable<LogEntry>;
|
|
@@ -7329,6 +7348,10 @@ interface FunctionCallLogs extends Omit<FunctionLogs, "fetch"> {
|
|
|
7329
7348
|
tail(params?: FunctionCallLogTailParams): AsyncIterable<LogEntry>;
|
|
7330
7349
|
stream(params?: FunctionCallLogStreamParams): AsyncIterable<LogEntry>;
|
|
7331
7350
|
}
|
|
7351
|
+
interface SandboxLogs {
|
|
7352
|
+
fetch(params: SandboxLogFetchParams): AsyncIterable<LogEntry>;
|
|
7353
|
+
tail(params?: SandboxLogTailParams): AsyncIterable<LogEntry>;
|
|
7354
|
+
}
|
|
7332
7355
|
interface LogQueryParams {
|
|
7333
7356
|
client: ModalClient;
|
|
7334
7357
|
objectId: string;
|
|
@@ -7481,6 +7504,59 @@ declare class FunctionCallLogsManager extends LogsManager implements FunctionCal
|
|
|
7481
7504
|
*/
|
|
7482
7505
|
stream(params?: FunctionCallLogStreamParams): AsyncIterable<LogEntry>;
|
|
7483
7506
|
}
|
|
7507
|
+
/** Namespace for Sandbox entrypoint log APIs. */
|
|
7508
|
+
declare class SandboxLogsManager implements SandboxLogs {
|
|
7509
|
+
private readonly client;
|
|
7510
|
+
private readonly sandboxId;
|
|
7511
|
+
private readonly getAppId;
|
|
7512
|
+
private readonly getTaskId;
|
|
7513
|
+
/** @ignore */
|
|
7514
|
+
constructor(client: ModalClient, sandboxId: string, getAppId: () => Promise<string>, getTaskId: () => Promise<string>);
|
|
7515
|
+
/**
|
|
7516
|
+
* Fetch Sandbox entrypoint logs corresponding to a UTC time range and
|
|
7517
|
+
* optional filters.
|
|
7518
|
+
*
|
|
7519
|
+
* Entries are returned in chronological order.
|
|
7520
|
+
*
|
|
7521
|
+
* @returns An async iterable of {@link LogEntry} objects.
|
|
7522
|
+
*
|
|
7523
|
+
* @example
|
|
7524
|
+
* ```typescript
|
|
7525
|
+
* import { ModalClient } from "modal";
|
|
7526
|
+
*
|
|
7527
|
+
* const modal = new ModalClient();
|
|
7528
|
+
* const sandbox = await modal.sandboxes.fromId("sb-...");
|
|
7529
|
+
*
|
|
7530
|
+
* for await (const entry of sandbox.logs.fetch({
|
|
7531
|
+
* since: new Date(Date.now() - 60 * 60 * 1_000),
|
|
7532
|
+
* source: "stdout",
|
|
7533
|
+
* })) {
|
|
7534
|
+
* process.stdout.write(entry.message);
|
|
7535
|
+
* }
|
|
7536
|
+
* ```
|
|
7537
|
+
*/
|
|
7538
|
+
fetch(params: SandboxLogFetchParams): AsyncIterable<LogEntry>;
|
|
7539
|
+
/**
|
|
7540
|
+
* Fetch the most recent Sandbox entrypoint logs.
|
|
7541
|
+
*
|
|
7542
|
+
* Entries are returned in chronological order.
|
|
7543
|
+
*
|
|
7544
|
+
* @returns An async iterable of {@link LogEntry} objects.
|
|
7545
|
+
*
|
|
7546
|
+
* @example
|
|
7547
|
+
* ```typescript
|
|
7548
|
+
* import { ModalClient } from "modal";
|
|
7549
|
+
*
|
|
7550
|
+
* const modal = new ModalClient();
|
|
7551
|
+
* const sandbox = await modal.sandboxes.fromId("sb-...");
|
|
7552
|
+
*
|
|
7553
|
+
* for await (const entry of sandbox.logs.tail({ entries: 20 })) {
|
|
7554
|
+
* process.stdout.write(entry.message);
|
|
7555
|
+
* }
|
|
7556
|
+
* ```
|
|
7557
|
+
*/
|
|
7558
|
+
tail(params?: SandboxLogTailParams): AsyncIterable<LogEntry>;
|
|
7559
|
+
}
|
|
7484
7560
|
|
|
7485
7561
|
/**
|
|
7486
7562
|
* Service for managing {@link FunctionCall}s.
|
|
@@ -8893,6 +8969,8 @@ type SidecarCreateParams = {
|
|
|
8893
8969
|
secrets?: Secret[];
|
|
8894
8970
|
/** Working directory of the sidecar container. */
|
|
8895
8971
|
workdir?: string;
|
|
8972
|
+
/** Mount points for Modal {@link Volume}s. */
|
|
8973
|
+
volumes?: Record<string, Volume>;
|
|
8896
8974
|
/**
|
|
8897
8975
|
* List of CIDRs the sidecar is allowed to access. Independent of the main
|
|
8898
8976
|
* container; if not set, all CIDRs are allowed. An empty list blocks all
|
|
@@ -9502,6 +9580,18 @@ declare class Sandbox {
|
|
|
9502
9580
|
get stdin(): ModalWriteStream<string>;
|
|
9503
9581
|
get stdout(): ModalReadStream<string>;
|
|
9504
9582
|
get stderr(): ModalReadStream<string>;
|
|
9583
|
+
/**
|
|
9584
|
+
* Access persisted entrypoint logs emitted by this Sandbox.
|
|
9585
|
+
*
|
|
9586
|
+
* Use {@link SandboxLogsManager#fetch fetch()} to read logs from a UTC time
|
|
9587
|
+
* range and {@link SandboxLogsManager#tail tail()} to read the most recent
|
|
9588
|
+
* logs.
|
|
9589
|
+
*
|
|
9590
|
+
* This is separate from {@link Sandbox#stdout stdout} and
|
|
9591
|
+
* {@link Sandbox#stderr stderr}, which expose the Sandbox's live output
|
|
9592
|
+
* streams.
|
|
9593
|
+
*/
|
|
9594
|
+
get logs(): SandboxLogsManager;
|
|
9505
9595
|
get filesystem(): SandboxFilesystem;
|
|
9506
9596
|
/**
|
|
9507
9597
|
* Operations for managing sidecar containers that run alongside the
|
|
@@ -9970,4 +10060,4 @@ declare class ClientClosedError extends Error {
|
|
|
9970
10060
|
|
|
9971
10061
|
declare function checkForRenamedParams(params: any, renames: Record<string, string>): void;
|
|
9972
10062
|
|
|
9973
|
-
export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ConflictError, ContainerProcess, ExecutionError, type FileInfo, type FileType, type FileWatchEvent, type FileWatchEventType, type FunctionAutoscalerSettings, FunctionCall, type FunctionCallCancelParams, type FunctionCallGetParams, type FunctionCallLogFetchParams, type FunctionCallLogStreamParams, type FunctionCallLogTailParams, FunctionCallLogsManager, FunctionCallService, type FunctionFromNameParams, type FunctionLogFetchParams, type FunctionLogStreamParams, type FunctionLogTailParams, FunctionLogsManager, 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 LogEntry, type FunctionLogFetchParams as LogFetchParams, type LogLevel, type LogSource, type Logger, ModalClient, type ModalClientParams, type ModalReadStream, type ModalWriteStream, NotFoundError, OutboundPolicy, 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 SandboxExperimentalFromNameParams, type SandboxExperimentalFromSnapshotParams, type SandboxExperimentalGetExitSnapshotParams, type SandboxExperimentalListParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, type SandboxMountImageParams, type SandboxReloadVolumesParams, SandboxService, SandboxSnapshot, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, SandboxSnapshotService, type SandboxTerminateParams, SandboxTimeoutError, type SandboxUpdateNetworkPolicyParams, Secret, type SecretDeleteParams, type SecretFromNameParams, type SecretFromObjectParams, SecretService, SidecarContainer, type SidecarCreateParams, type SidecarExecParams, type SidecarGetParams, type SidecarListParams, type SidecarMountImageParams, SidecarService, type SidecarSnapshotDirectoryParams, type SidecarSnapshotFilesystemParams, type SidecarTerminateParams, type SidecarUnmountImageParams, SnapshotCreationError, type StdioBehavior, type StreamMode, TimeoutError, Tunnel, Volume, type VolumeDeleteParams, type VolumeEphemeralParams, type VolumeFromNameParams, type VolumeMountOptionsParams, VolumeService, checkForRenamedParams };
|
|
10063
|
+
export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ConflictError, ContainerProcess, ExecutionError, type FileInfo, type FileType, type FileWatchEvent, type FileWatchEventType, type FunctionAutoscalerSettings, FunctionCall, type FunctionCallCancelParams, type FunctionCallGetParams, type FunctionCallLogFetchParams, type FunctionCallLogStreamParams, type FunctionCallLogTailParams, FunctionCallLogsManager, FunctionCallService, type FunctionFromNameParams, type FunctionLogFetchParams, type FunctionLogStreamParams, type FunctionLogTailParams, FunctionLogsManager, 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 LogEntry, type FunctionLogFetchParams as LogFetchParams, type LogLevel, type LogSource, type Logger, ModalClient, type ModalClientParams, type ModalReadStream, type ModalWriteStream, NotFoundError, OutboundPolicy, 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 SandboxExperimentalFromNameParams, type SandboxExperimentalFromSnapshotParams, type SandboxExperimentalGetExitSnapshotParams, type SandboxExperimentalListParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, type SandboxLogFetchParams, type SandboxLogTailParams, SandboxLogsManager, type SandboxMountImageParams, type SandboxReloadVolumesParams, SandboxService, SandboxSnapshot, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, SandboxSnapshotService, type SandboxTerminateParams, SandboxTimeoutError, type SandboxUpdateNetworkPolicyParams, Secret, type SecretDeleteParams, type SecretFromNameParams, type SecretFromObjectParams, SecretService, SidecarContainer, type SidecarCreateParams, type SidecarExecParams, type SidecarGetParams, type SidecarListParams, type SidecarMountImageParams, SidecarService, type SidecarSnapshotDirectoryParams, type SidecarSnapshotFilesystemParams, type SidecarTerminateParams, type SidecarUnmountImageParams, SnapshotCreationError, type StdioBehavior, type StreamMode, TimeoutError, Tunnel, Volume, type VolumeDeleteParams, type VolumeEphemeralParams, type VolumeFromNameParams, type VolumeMountOptionsParams, VolumeService, checkForRenamedParams };
|
package/dist/index.d.ts
CHANGED
|
@@ -4097,6 +4097,14 @@ interface SecretDeleteRequest {
|
|
|
4097
4097
|
secretId: string;
|
|
4098
4098
|
}
|
|
4099
4099
|
declare const SecretDeleteRequest: MessageFns$1<SecretDeleteRequest>;
|
|
4100
|
+
interface SecretGetInfoRequest {
|
|
4101
|
+
secretId: string;
|
|
4102
|
+
}
|
|
4103
|
+
declare const SecretGetInfoRequest: MessageFns$1<SecretGetInfoRequest>;
|
|
4104
|
+
interface SecretGetInfoResponse {
|
|
4105
|
+
metadata: SecretMetadata | undefined;
|
|
4106
|
+
}
|
|
4107
|
+
declare const SecretGetInfoResponse: MessageFns$1<SecretGetInfoResponse>;
|
|
4100
4108
|
interface SecretGetOrCreateRequest {
|
|
4101
4109
|
deploymentName: string;
|
|
4102
4110
|
environmentName: string;
|
|
@@ -4140,6 +4148,7 @@ interface SecretMetadata {
|
|
|
4140
4148
|
name: string;
|
|
4141
4149
|
creationInfo: CreationInfo | undefined;
|
|
4142
4150
|
keys: string[];
|
|
4151
|
+
environmentName: string;
|
|
4143
4152
|
}
|
|
4144
4153
|
declare const SecretMetadata: MessageFns$1<SecretMetadata>;
|
|
4145
4154
|
interface SecretUpdateRequest {
|
|
@@ -6619,6 +6628,14 @@ declare const ModalClientDefinition: {
|
|
|
6619
6628
|
readonly responseStream: false;
|
|
6620
6629
|
readonly options: {};
|
|
6621
6630
|
};
|
|
6631
|
+
readonly secretGetInfo: {
|
|
6632
|
+
readonly name: "SecretGetInfo";
|
|
6633
|
+
readonly requestType: MessageFns$1<SecretGetInfoRequest>;
|
|
6634
|
+
readonly requestStream: false;
|
|
6635
|
+
readonly responseType: MessageFns$1<SecretGetInfoResponse>;
|
|
6636
|
+
readonly responseStream: false;
|
|
6637
|
+
readonly options: {};
|
|
6638
|
+
};
|
|
6622
6639
|
readonly secretGetOrCreate: {
|
|
6623
6640
|
readonly name: "SecretGetOrCreate";
|
|
6624
6641
|
readonly requestType: MessageFns$1<SecretGetOrCreateRequest>;
|
|
@@ -7319,6 +7336,8 @@ interface FunctionCallLogFetchParams {
|
|
|
7319
7336
|
/** Filter by text contained in the log message. */
|
|
7320
7337
|
searchText?: string;
|
|
7321
7338
|
}
|
|
7339
|
+
type SandboxLogFetchParams = FunctionLogFetchParams;
|
|
7340
|
+
type SandboxLogTailParams = FunctionLogTailParams;
|
|
7322
7341
|
interface FunctionLogs {
|
|
7323
7342
|
fetch(params: FunctionLogFetchParams): AsyncIterable<LogEntry>;
|
|
7324
7343
|
tail(params?: FunctionLogTailParams): AsyncIterable<LogEntry>;
|
|
@@ -7329,6 +7348,10 @@ interface FunctionCallLogs extends Omit<FunctionLogs, "fetch"> {
|
|
|
7329
7348
|
tail(params?: FunctionCallLogTailParams): AsyncIterable<LogEntry>;
|
|
7330
7349
|
stream(params?: FunctionCallLogStreamParams): AsyncIterable<LogEntry>;
|
|
7331
7350
|
}
|
|
7351
|
+
interface SandboxLogs {
|
|
7352
|
+
fetch(params: SandboxLogFetchParams): AsyncIterable<LogEntry>;
|
|
7353
|
+
tail(params?: SandboxLogTailParams): AsyncIterable<LogEntry>;
|
|
7354
|
+
}
|
|
7332
7355
|
interface LogQueryParams {
|
|
7333
7356
|
client: ModalClient;
|
|
7334
7357
|
objectId: string;
|
|
@@ -7481,6 +7504,59 @@ declare class FunctionCallLogsManager extends LogsManager implements FunctionCal
|
|
|
7481
7504
|
*/
|
|
7482
7505
|
stream(params?: FunctionCallLogStreamParams): AsyncIterable<LogEntry>;
|
|
7483
7506
|
}
|
|
7507
|
+
/** Namespace for Sandbox entrypoint log APIs. */
|
|
7508
|
+
declare class SandboxLogsManager implements SandboxLogs {
|
|
7509
|
+
private readonly client;
|
|
7510
|
+
private readonly sandboxId;
|
|
7511
|
+
private readonly getAppId;
|
|
7512
|
+
private readonly getTaskId;
|
|
7513
|
+
/** @ignore */
|
|
7514
|
+
constructor(client: ModalClient, sandboxId: string, getAppId: () => Promise<string>, getTaskId: () => Promise<string>);
|
|
7515
|
+
/**
|
|
7516
|
+
* Fetch Sandbox entrypoint logs corresponding to a UTC time range and
|
|
7517
|
+
* optional filters.
|
|
7518
|
+
*
|
|
7519
|
+
* Entries are returned in chronological order.
|
|
7520
|
+
*
|
|
7521
|
+
* @returns An async iterable of {@link LogEntry} objects.
|
|
7522
|
+
*
|
|
7523
|
+
* @example
|
|
7524
|
+
* ```typescript
|
|
7525
|
+
* import { ModalClient } from "modal";
|
|
7526
|
+
*
|
|
7527
|
+
* const modal = new ModalClient();
|
|
7528
|
+
* const sandbox = await modal.sandboxes.fromId("sb-...");
|
|
7529
|
+
*
|
|
7530
|
+
* for await (const entry of sandbox.logs.fetch({
|
|
7531
|
+
* since: new Date(Date.now() - 60 * 60 * 1_000),
|
|
7532
|
+
* source: "stdout",
|
|
7533
|
+
* })) {
|
|
7534
|
+
* process.stdout.write(entry.message);
|
|
7535
|
+
* }
|
|
7536
|
+
* ```
|
|
7537
|
+
*/
|
|
7538
|
+
fetch(params: SandboxLogFetchParams): AsyncIterable<LogEntry>;
|
|
7539
|
+
/**
|
|
7540
|
+
* Fetch the most recent Sandbox entrypoint logs.
|
|
7541
|
+
*
|
|
7542
|
+
* Entries are returned in chronological order.
|
|
7543
|
+
*
|
|
7544
|
+
* @returns An async iterable of {@link LogEntry} objects.
|
|
7545
|
+
*
|
|
7546
|
+
* @example
|
|
7547
|
+
* ```typescript
|
|
7548
|
+
* import { ModalClient } from "modal";
|
|
7549
|
+
*
|
|
7550
|
+
* const modal = new ModalClient();
|
|
7551
|
+
* const sandbox = await modal.sandboxes.fromId("sb-...");
|
|
7552
|
+
*
|
|
7553
|
+
* for await (const entry of sandbox.logs.tail({ entries: 20 })) {
|
|
7554
|
+
* process.stdout.write(entry.message);
|
|
7555
|
+
* }
|
|
7556
|
+
* ```
|
|
7557
|
+
*/
|
|
7558
|
+
tail(params?: SandboxLogTailParams): AsyncIterable<LogEntry>;
|
|
7559
|
+
}
|
|
7484
7560
|
|
|
7485
7561
|
/**
|
|
7486
7562
|
* Service for managing {@link FunctionCall}s.
|
|
@@ -8893,6 +8969,8 @@ type SidecarCreateParams = {
|
|
|
8893
8969
|
secrets?: Secret[];
|
|
8894
8970
|
/** Working directory of the sidecar container. */
|
|
8895
8971
|
workdir?: string;
|
|
8972
|
+
/** Mount points for Modal {@link Volume}s. */
|
|
8973
|
+
volumes?: Record<string, Volume>;
|
|
8896
8974
|
/**
|
|
8897
8975
|
* List of CIDRs the sidecar is allowed to access. Independent of the main
|
|
8898
8976
|
* container; if not set, all CIDRs are allowed. An empty list blocks all
|
|
@@ -9502,6 +9580,18 @@ declare class Sandbox {
|
|
|
9502
9580
|
get stdin(): ModalWriteStream<string>;
|
|
9503
9581
|
get stdout(): ModalReadStream<string>;
|
|
9504
9582
|
get stderr(): ModalReadStream<string>;
|
|
9583
|
+
/**
|
|
9584
|
+
* Access persisted entrypoint logs emitted by this Sandbox.
|
|
9585
|
+
*
|
|
9586
|
+
* Use {@link SandboxLogsManager#fetch fetch()} to read logs from a UTC time
|
|
9587
|
+
* range and {@link SandboxLogsManager#tail tail()} to read the most recent
|
|
9588
|
+
* logs.
|
|
9589
|
+
*
|
|
9590
|
+
* This is separate from {@link Sandbox#stdout stdout} and
|
|
9591
|
+
* {@link Sandbox#stderr stderr}, which expose the Sandbox's live output
|
|
9592
|
+
* streams.
|
|
9593
|
+
*/
|
|
9594
|
+
get logs(): SandboxLogsManager;
|
|
9505
9595
|
get filesystem(): SandboxFilesystem;
|
|
9506
9596
|
/**
|
|
9507
9597
|
* Operations for managing sidecar containers that run alongside the
|
|
@@ -9970,4 +10060,4 @@ declare class ClientClosedError extends Error {
|
|
|
9970
10060
|
|
|
9971
10061
|
declare function checkForRenamedParams(params: any, renames: Record<string, string>): void;
|
|
9972
10062
|
|
|
9973
|
-
export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ConflictError, ContainerProcess, ExecutionError, type FileInfo, type FileType, type FileWatchEvent, type FileWatchEventType, type FunctionAutoscalerSettings, FunctionCall, type FunctionCallCancelParams, type FunctionCallGetParams, type FunctionCallLogFetchParams, type FunctionCallLogStreamParams, type FunctionCallLogTailParams, FunctionCallLogsManager, FunctionCallService, type FunctionFromNameParams, type FunctionLogFetchParams, type FunctionLogStreamParams, type FunctionLogTailParams, FunctionLogsManager, 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 LogEntry, type FunctionLogFetchParams as LogFetchParams, type LogLevel, type LogSource, type Logger, ModalClient, type ModalClientParams, type ModalReadStream, type ModalWriteStream, NotFoundError, OutboundPolicy, 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 SandboxExperimentalFromNameParams, type SandboxExperimentalFromSnapshotParams, type SandboxExperimentalGetExitSnapshotParams, type SandboxExperimentalListParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, type SandboxMountImageParams, type SandboxReloadVolumesParams, SandboxService, SandboxSnapshot, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, SandboxSnapshotService, type SandboxTerminateParams, SandboxTimeoutError, type SandboxUpdateNetworkPolicyParams, Secret, type SecretDeleteParams, type SecretFromNameParams, type SecretFromObjectParams, SecretService, SidecarContainer, type SidecarCreateParams, type SidecarExecParams, type SidecarGetParams, type SidecarListParams, type SidecarMountImageParams, SidecarService, type SidecarSnapshotDirectoryParams, type SidecarSnapshotFilesystemParams, type SidecarTerminateParams, type SidecarUnmountImageParams, SnapshotCreationError, type StdioBehavior, type StreamMode, TimeoutError, Tunnel, Volume, type VolumeDeleteParams, type VolumeEphemeralParams, type VolumeFromNameParams, type VolumeMountOptionsParams, VolumeService, checkForRenamedParams };
|
|
10063
|
+
export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ConflictError, ContainerProcess, ExecutionError, type FileInfo, type FileType, type FileWatchEvent, type FileWatchEventType, type FunctionAutoscalerSettings, FunctionCall, type FunctionCallCancelParams, type FunctionCallGetParams, type FunctionCallLogFetchParams, type FunctionCallLogStreamParams, type FunctionCallLogTailParams, FunctionCallLogsManager, FunctionCallService, type FunctionFromNameParams, type FunctionLogFetchParams, type FunctionLogStreamParams, type FunctionLogTailParams, FunctionLogsManager, 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 LogEntry, type FunctionLogFetchParams as LogFetchParams, type LogLevel, type LogSource, type Logger, ModalClient, type ModalClientParams, type ModalReadStream, type ModalWriteStream, NotFoundError, OutboundPolicy, 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 SandboxExperimentalFromNameParams, type SandboxExperimentalFromSnapshotParams, type SandboxExperimentalGetExitSnapshotParams, type SandboxExperimentalListParams, SandboxFilesystem, SandboxFilesystemDirectoryNotEmptyError, SandboxFilesystemError, SandboxFilesystemFileTooLargeError, SandboxFilesystemIsADirectoryError, SandboxFilesystemNotADirectoryError, SandboxFilesystemNotFoundError, SandboxFilesystemPathAlreadyExistsError, SandboxFilesystemPermissionError, type SandboxFromNameParams, type SandboxListParams, type SandboxLogFetchParams, type SandboxLogTailParams, SandboxLogsManager, type SandboxMountImageParams, type SandboxReloadVolumesParams, SandboxService, SandboxSnapshot, type SandboxSnapshotDirectoryParams, type SandboxSnapshotFilesystemParams, SandboxSnapshotService, type SandboxTerminateParams, SandboxTimeoutError, type SandboxUpdateNetworkPolicyParams, Secret, type SecretDeleteParams, type SecretFromNameParams, type SecretFromObjectParams, SecretService, SidecarContainer, type SidecarCreateParams, type SidecarExecParams, type SidecarGetParams, type SidecarListParams, type SidecarMountImageParams, SidecarService, type SidecarSnapshotDirectoryParams, type SidecarSnapshotFilesystemParams, type SidecarTerminateParams, type SidecarUnmountImageParams, SnapshotCreationError, type StdioBehavior, type StreamMode, TimeoutError, Tunnel, Volume, type VolumeDeleteParams, type VolumeEphemeralParams, type VolumeFromNameParams, type VolumeMountOptionsParams, VolumeService, checkForRenamedParams };
|