modal 0.10.2-dev.6 → 0.10.2-dev.8
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.cjs +416 -22
- package/dist/index.d.cts +133 -16
- package/dist/index.d.ts +133 -16
- package/dist/index.js +414 -21
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -702,6 +702,8 @@ interface AppGetInfoResponse_FunctionInfoSummary {
|
|
|
702
702
|
/** True for Web Functions and classes with web methods; false for Servers. */
|
|
703
703
|
webFunction: boolean;
|
|
704
704
|
requiresProxyAuth?: boolean | undefined;
|
|
705
|
+
/** True for Sessioned Servers. */
|
|
706
|
+
isSessioned: boolean;
|
|
705
707
|
}
|
|
706
708
|
declare const AppGetInfoResponse_FunctionInfoSummary: MessageFns$1<AppGetInfoResponse_FunctionInfoSummary>;
|
|
707
709
|
interface AppGetLayoutRequest {
|
|
@@ -3305,11 +3307,11 @@ interface ObjectDependency {
|
|
|
3305
3307
|
}
|
|
3306
3308
|
declare const ObjectDependency: MessageFns$1<ObjectDependency>;
|
|
3307
3309
|
/** Policy for outbound traffic from a sandbox. */
|
|
3308
|
-
interface OutboundPolicy
|
|
3310
|
+
interface OutboundPolicy {
|
|
3309
3311
|
/** Replace headers in outbound HTTPS requests, potentially with secret values. */
|
|
3310
3312
|
headerReplacements: OutboundPolicy_HeaderReplacement[];
|
|
3311
3313
|
}
|
|
3312
|
-
declare const OutboundPolicy
|
|
3314
|
+
declare const OutboundPolicy: MessageFns$1<OutboundPolicy>;
|
|
3313
3315
|
interface OutboundPolicy_HeaderReplacement {
|
|
3314
3316
|
/**
|
|
3315
3317
|
* Domain that the header replacements are scoped to. Supports wildcards in
|
|
@@ -3654,7 +3656,10 @@ interface Sandbox$1 {
|
|
|
3654
3656
|
* Set by the backend at snapshot creation time.
|
|
3655
3657
|
*/
|
|
3656
3658
|
runscRuntimeVersion?: string | undefined;
|
|
3657
|
-
/**
|
|
3659
|
+
/**
|
|
3660
|
+
* Runtime the sandbox runs in: "vm" for a virtual machine, or a container
|
|
3661
|
+
* runtime such as "gvisor". Leave it unset to let Modal pick.
|
|
3662
|
+
*/
|
|
3658
3663
|
runtime?: string | undefined;
|
|
3659
3664
|
/** If set, the sandbox will be created with verbose logging enabled. */
|
|
3660
3665
|
verbose: boolean;
|
|
@@ -3704,7 +3709,7 @@ interface Sandbox$1 {
|
|
|
3704
3709
|
*/
|
|
3705
3710
|
inboundCidrAllowlist: string[];
|
|
3706
3711
|
environmentVariables: StringMap | undefined;
|
|
3707
|
-
outboundPolicy?: OutboundPolicy
|
|
3712
|
+
outboundPolicy?: OutboundPolicy | undefined;
|
|
3708
3713
|
/**
|
|
3709
3714
|
* If set, the sandbox's main container is served an X.509-SVID over a
|
|
3710
3715
|
* SPIFFE Workload API socket, addressed by SPIFFE_ENDPOINT_SOCKET. The
|
|
@@ -4097,6 +4102,14 @@ interface SecretDeleteRequest {
|
|
|
4097
4102
|
secretId: string;
|
|
4098
4103
|
}
|
|
4099
4104
|
declare const SecretDeleteRequest: MessageFns$1<SecretDeleteRequest>;
|
|
4105
|
+
interface SecretGetInfoRequest {
|
|
4106
|
+
secretId: string;
|
|
4107
|
+
}
|
|
4108
|
+
declare const SecretGetInfoRequest: MessageFns$1<SecretGetInfoRequest>;
|
|
4109
|
+
interface SecretGetInfoResponse {
|
|
4110
|
+
metadata: SecretMetadata | undefined;
|
|
4111
|
+
}
|
|
4112
|
+
declare const SecretGetInfoResponse: MessageFns$1<SecretGetInfoResponse>;
|
|
4100
4113
|
interface SecretGetOrCreateRequest {
|
|
4101
4114
|
deploymentName: string;
|
|
4102
4115
|
environmentName: string;
|
|
@@ -4140,6 +4153,7 @@ interface SecretMetadata {
|
|
|
4140
4153
|
name: string;
|
|
4141
4154
|
creationInfo: CreationInfo | undefined;
|
|
4142
4155
|
keys: string[];
|
|
4156
|
+
environmentName: string;
|
|
4143
4157
|
}
|
|
4144
4158
|
declare const SecretMetadata: MessageFns$1<SecretMetadata>;
|
|
4145
4159
|
interface SecretUpdateRequest {
|
|
@@ -4959,6 +4973,11 @@ interface WebhookTokenListResponse {
|
|
|
4959
4973
|
tokens: WebhookToken[];
|
|
4960
4974
|
}
|
|
4961
4975
|
declare const WebhookTokenListResponse: MessageFns$1<WebhookTokenListResponse>;
|
|
4976
|
+
interface WebhookTokenUpdateRequest {
|
|
4977
|
+
tokenId: string;
|
|
4978
|
+
name?: string | undefined;
|
|
4979
|
+
}
|
|
4980
|
+
declare const WebhookTokenUpdateRequest: MessageFns$1<WebhookTokenUpdateRequest>;
|
|
4962
4981
|
interface WorkspaceBillingRatesRequest {
|
|
4963
4982
|
}
|
|
4964
4983
|
declare const WorkspaceBillingRatesRequest: MessageFns$1<WorkspaceBillingRatesRequest>;
|
|
@@ -6619,6 +6638,14 @@ declare const ModalClientDefinition: {
|
|
|
6619
6638
|
readonly responseStream: false;
|
|
6620
6639
|
readonly options: {};
|
|
6621
6640
|
};
|
|
6641
|
+
readonly secretGetInfo: {
|
|
6642
|
+
readonly name: "SecretGetInfo";
|
|
6643
|
+
readonly requestType: MessageFns$1<SecretGetInfoRequest>;
|
|
6644
|
+
readonly requestStream: false;
|
|
6645
|
+
readonly responseType: MessageFns$1<SecretGetInfoResponse>;
|
|
6646
|
+
readonly responseStream: false;
|
|
6647
|
+
readonly options: {};
|
|
6648
|
+
};
|
|
6622
6649
|
readonly secretGetOrCreate: {
|
|
6623
6650
|
readonly name: "SecretGetOrCreate";
|
|
6624
6651
|
readonly requestType: MessageFns$1<SecretGetOrCreateRequest>;
|
|
@@ -7053,6 +7080,14 @@ declare const ModalClientDefinition: {
|
|
|
7053
7080
|
readonly responseStream: false;
|
|
7054
7081
|
readonly options: {};
|
|
7055
7082
|
};
|
|
7083
|
+
readonly webhookTokenUpdate: {
|
|
7084
|
+
readonly name: "WebhookTokenUpdate";
|
|
7085
|
+
readonly requestType: MessageFns$1<WebhookTokenUpdateRequest>;
|
|
7086
|
+
readonly requestStream: false;
|
|
7087
|
+
readonly responseType: MessageFns$1<WebhookToken>;
|
|
7088
|
+
readonly responseStream: false;
|
|
7089
|
+
readonly options: {};
|
|
7090
|
+
};
|
|
7056
7091
|
/** Workspaces */
|
|
7057
7092
|
readonly workspaceBillingRates: {
|
|
7058
7093
|
readonly name: "WorkspaceBillingRates";
|
|
@@ -7319,6 +7354,8 @@ interface FunctionCallLogFetchParams {
|
|
|
7319
7354
|
/** Filter by text contained in the log message. */
|
|
7320
7355
|
searchText?: string;
|
|
7321
7356
|
}
|
|
7357
|
+
type SandboxLogFetchParams = FunctionLogFetchParams;
|
|
7358
|
+
type SandboxLogTailParams = FunctionLogTailParams;
|
|
7322
7359
|
interface FunctionLogs {
|
|
7323
7360
|
fetch(params: FunctionLogFetchParams): AsyncIterable<LogEntry>;
|
|
7324
7361
|
tail(params?: FunctionLogTailParams): AsyncIterable<LogEntry>;
|
|
@@ -7329,6 +7366,10 @@ interface FunctionCallLogs extends Omit<FunctionLogs, "fetch"> {
|
|
|
7329
7366
|
tail(params?: FunctionCallLogTailParams): AsyncIterable<LogEntry>;
|
|
7330
7367
|
stream(params?: FunctionCallLogStreamParams): AsyncIterable<LogEntry>;
|
|
7331
7368
|
}
|
|
7369
|
+
interface SandboxLogs {
|
|
7370
|
+
fetch(params: SandboxLogFetchParams): AsyncIterable<LogEntry>;
|
|
7371
|
+
tail(params?: SandboxLogTailParams): AsyncIterable<LogEntry>;
|
|
7372
|
+
}
|
|
7332
7373
|
interface LogQueryParams {
|
|
7333
7374
|
client: ModalClient;
|
|
7334
7375
|
objectId: string;
|
|
@@ -7481,6 +7522,59 @@ declare class FunctionCallLogsManager extends LogsManager implements FunctionCal
|
|
|
7481
7522
|
*/
|
|
7482
7523
|
stream(params?: FunctionCallLogStreamParams): AsyncIterable<LogEntry>;
|
|
7483
7524
|
}
|
|
7525
|
+
/** Namespace for Sandbox entrypoint log APIs. */
|
|
7526
|
+
declare class SandboxLogsManager implements SandboxLogs {
|
|
7527
|
+
private readonly client;
|
|
7528
|
+
private readonly sandboxId;
|
|
7529
|
+
private readonly getAppId;
|
|
7530
|
+
private readonly getTaskId;
|
|
7531
|
+
/** @ignore */
|
|
7532
|
+
constructor(client: ModalClient, sandboxId: string, getAppId: () => Promise<string>, getTaskId: () => Promise<string>);
|
|
7533
|
+
/**
|
|
7534
|
+
* Fetch Sandbox entrypoint logs corresponding to a UTC time range and
|
|
7535
|
+
* optional filters.
|
|
7536
|
+
*
|
|
7537
|
+
* Entries are returned in chronological order.
|
|
7538
|
+
*
|
|
7539
|
+
* @returns An async iterable of {@link LogEntry} objects.
|
|
7540
|
+
*
|
|
7541
|
+
* @example
|
|
7542
|
+
* ```typescript
|
|
7543
|
+
* import { ModalClient } from "modal";
|
|
7544
|
+
*
|
|
7545
|
+
* const modal = new ModalClient();
|
|
7546
|
+
* const sandbox = await modal.sandboxes.fromId("sb-...");
|
|
7547
|
+
*
|
|
7548
|
+
* for await (const entry of sandbox.logs.fetch({
|
|
7549
|
+
* since: new Date(Date.now() - 60 * 60 * 1_000),
|
|
7550
|
+
* source: "stdout",
|
|
7551
|
+
* })) {
|
|
7552
|
+
* process.stdout.write(entry.message);
|
|
7553
|
+
* }
|
|
7554
|
+
* ```
|
|
7555
|
+
*/
|
|
7556
|
+
fetch(params: SandboxLogFetchParams): AsyncIterable<LogEntry>;
|
|
7557
|
+
/**
|
|
7558
|
+
* Fetch the most recent Sandbox entrypoint logs.
|
|
7559
|
+
*
|
|
7560
|
+
* Entries are returned in chronological order.
|
|
7561
|
+
*
|
|
7562
|
+
* @returns An async iterable of {@link LogEntry} objects.
|
|
7563
|
+
*
|
|
7564
|
+
* @example
|
|
7565
|
+
* ```typescript
|
|
7566
|
+
* import { ModalClient } from "modal";
|
|
7567
|
+
*
|
|
7568
|
+
* const modal = new ModalClient();
|
|
7569
|
+
* const sandbox = await modal.sandboxes.fromId("sb-...");
|
|
7570
|
+
*
|
|
7571
|
+
* for await (const entry of sandbox.logs.tail({ entries: 20 })) {
|
|
7572
|
+
* process.stdout.write(entry.message);
|
|
7573
|
+
* }
|
|
7574
|
+
* ```
|
|
7575
|
+
*/
|
|
7576
|
+
tail(params?: SandboxLogTailParams): AsyncIterable<LogEntry>;
|
|
7577
|
+
}
|
|
7484
7578
|
|
|
7485
7579
|
/**
|
|
7486
7580
|
* Service for managing {@link FunctionCall}s.
|
|
@@ -8307,7 +8401,7 @@ declare const TaskSetNetworkAccessRequest: MessageFns<TaskSetNetworkAccessReques
|
|
|
8307
8401
|
interface TaskSetOutboundPolicyRequest {
|
|
8308
8402
|
taskId: string;
|
|
8309
8403
|
/** Replaces the task's outbound policy. */
|
|
8310
|
-
outboundPolicy: OutboundPolicy
|
|
8404
|
+
outboundPolicy: OutboundPolicy | undefined;
|
|
8311
8405
|
}
|
|
8312
8406
|
declare const TaskSetOutboundPolicyRequest: MessageFns<TaskSetOutboundPolicyRequest>;
|
|
8313
8407
|
interface TaskSnapshotDirectoryRequest {
|
|
@@ -8601,6 +8695,8 @@ type HeaderReplacement = {
|
|
|
8601
8695
|
* Immutable configuration for replacing headers in outbound HTTPS requests
|
|
8602
8696
|
* from a Sandbox.
|
|
8603
8697
|
*
|
|
8698
|
+
* EXPERIMENTAL: the API is subject to change.
|
|
8699
|
+
*
|
|
8604
8700
|
* Header values support templating with keys in a replacement's secret: a
|
|
8605
8701
|
* `$`-prefixed key name in the secret is replaced with the secret value.
|
|
8606
8702
|
* Literal `$` characters are written `$$`.
|
|
@@ -8611,7 +8707,7 @@ type HeaderReplacement = {
|
|
|
8611
8707
|
* ```ts
|
|
8612
8708
|
* const secret = await modal.secrets.fromName("api-token");
|
|
8613
8709
|
*
|
|
8614
|
-
* const outboundPolicy = new modal.
|
|
8710
|
+
* const outboundPolicy = new modal.ExperimentalOutboundPolicy()
|
|
8615
8711
|
* // Inject a secret-backed Authorization header.
|
|
8616
8712
|
* .withHeaderReplacement({
|
|
8617
8713
|
* domain: "example.com",
|
|
@@ -8624,16 +8720,18 @@ type HeaderReplacement = {
|
|
|
8624
8720
|
* headers: { "X-Trace-Token": "trace_abcd" },
|
|
8625
8721
|
* });
|
|
8626
8722
|
*
|
|
8627
|
-
* const sb = await modal.sandboxes.create(app, image, {
|
|
8723
|
+
* const sb = await modal.sandboxes.create(app, image, {
|
|
8724
|
+
* experimentalOutboundPolicy: outboundPolicy,
|
|
8725
|
+
* });
|
|
8628
8726
|
* ```
|
|
8629
8727
|
*/
|
|
8630
|
-
declare class
|
|
8728
|
+
declare class ExperimentalOutboundPolicy {
|
|
8631
8729
|
/** @internal */
|
|
8632
8730
|
readonly _replacements: readonly HeaderReplacement[];
|
|
8633
8731
|
/** @internal */
|
|
8634
8732
|
constructor(_replacements?: readonly HeaderReplacement[]);
|
|
8635
8733
|
/**
|
|
8636
|
-
* Return a new {@link
|
|
8734
|
+
* Return a new {@link ExperimentalOutboundPolicy} with an added header replacement.
|
|
8637
8735
|
*
|
|
8638
8736
|
* @param params.domain Domain the replacements are scoped to. Supports `*.` wildcard
|
|
8639
8737
|
* prefixes (matching the apex domain and subdomains) and a bare `"*"`.
|
|
@@ -8646,7 +8744,7 @@ declare class OutboundPolicy {
|
|
|
8646
8744
|
domain: string;
|
|
8647
8745
|
headers: Record<string, string>;
|
|
8648
8746
|
secret?: Secret;
|
|
8649
|
-
}):
|
|
8747
|
+
}): ExperimentalOutboundPolicy;
|
|
8650
8748
|
/** Check all replacements, throwing `InvalidError` on the first violation found.
|
|
8651
8749
|
* @internal
|
|
8652
8750
|
*/
|
|
@@ -8658,7 +8756,7 @@ declare class OutboundPolicy {
|
|
|
8658
8756
|
/** Convert to the wire format. Referenced secrets must be hydrated first.
|
|
8659
8757
|
* @internal
|
|
8660
8758
|
*/
|
|
8661
|
-
_toProto(): OutboundPolicy
|
|
8759
|
+
_toProto(): OutboundPolicy;
|
|
8662
8760
|
}
|
|
8663
8761
|
|
|
8664
8762
|
/** Type of a filesystem entry. */
|
|
@@ -9133,6 +9231,8 @@ type StdioBehavior = "pipe" | "ignore";
|
|
|
9133
9231
|
* means the data will be read as raw bytes (Uint8Array).
|
|
9134
9232
|
*/
|
|
9135
9233
|
type StreamMode = "text" | "binary";
|
|
9234
|
+
/** Runtime a Sandbox runs in: a virtual machine, or gVisor. */
|
|
9235
|
+
type SandboxRuntime = "gvisor" | "vm";
|
|
9136
9236
|
/** Optional parameters for {@link Probe.withTcp} and {@link Probe.withExec}. */
|
|
9137
9237
|
type ProbeParams = {
|
|
9138
9238
|
intervalMs: number;
|
|
@@ -9156,6 +9256,8 @@ type SandboxCreateParams = {
|
|
|
9156
9256
|
memoryMiB?: number;
|
|
9157
9257
|
/** Hard limit of memory in MiB. */
|
|
9158
9258
|
memoryLimitMiB?: number;
|
|
9259
|
+
/** Runtime under which the Sandbox executes, or undefined to let Modal pick. */
|
|
9260
|
+
runtime?: SandboxRuntime;
|
|
9159
9261
|
/** GPU reservation for the Sandbox (e.g. "A100", "T4:2", "A100-80GB:4"). */
|
|
9160
9262
|
gpu?: string;
|
|
9161
9263
|
/** Maximum lifetime of the Sandbox in milliseconds. Defaults to 5 minutes. */
|
|
@@ -9194,8 +9296,9 @@ type SandboxCreateParams = {
|
|
|
9194
9296
|
outboundDomainAllowlist?: string[];
|
|
9195
9297
|
/** Configuration for replacing headers in outbound HTTPS requests from the Sandbox.
|
|
9196
9298
|
* Secrets referenced by the policy are resolved outside the Sandbox and are never
|
|
9197
|
-
* visible to the workload. See {@link
|
|
9198
|
-
|
|
9299
|
+
* visible to the workload. See {@link ExperimentalOutboundPolicy}.
|
|
9300
|
+
* EXPERIMENTAL: the API is subject to change. */
|
|
9301
|
+
experimentalOutboundPolicy?: ExperimentalOutboundPolicy;
|
|
9199
9302
|
/** List of CIDRs allowed to connect inbound to the Sandbox (tunnels and connection tokens). If not set, all IPs are allowed. Cannot be used with blockNetwork. */
|
|
9200
9303
|
inboundCidrAllowlist?: string[];
|
|
9201
9304
|
/** Enable private IPv6 networking (i6pn) so Sandboxes in the same workspace can address each
|
|
@@ -9504,6 +9607,18 @@ declare class Sandbox {
|
|
|
9504
9607
|
get stdin(): ModalWriteStream<string>;
|
|
9505
9608
|
get stdout(): ModalReadStream<string>;
|
|
9506
9609
|
get stderr(): ModalReadStream<string>;
|
|
9610
|
+
/**
|
|
9611
|
+
* Access persisted entrypoint logs emitted by this Sandbox.
|
|
9612
|
+
*
|
|
9613
|
+
* Use {@link SandboxLogsManager#fetch fetch()} to read logs from a UTC time
|
|
9614
|
+
* range and {@link SandboxLogsManager#tail tail()} to read the most recent
|
|
9615
|
+
* logs.
|
|
9616
|
+
*
|
|
9617
|
+
* This is separate from {@link Sandbox#stdout stdout} and
|
|
9618
|
+
* {@link Sandbox#stderr stderr}, which expose the Sandbox's live output
|
|
9619
|
+
* streams.
|
|
9620
|
+
*/
|
|
9621
|
+
get logs(): SandboxLogsManager;
|
|
9507
9622
|
get filesystem(): SandboxFilesystem;
|
|
9508
9623
|
/**
|
|
9509
9624
|
* Operations for managing sidecar containers that run alongside the
|
|
@@ -9665,14 +9780,16 @@ declare class Sandbox {
|
|
|
9665
9780
|
/**
|
|
9666
9781
|
* Replace the outbound policy of a running Sandbox.
|
|
9667
9782
|
*
|
|
9783
|
+
* EXPERIMENTAL: the API is subject to change.
|
|
9784
|
+
*
|
|
9668
9785
|
* The new policy replaces all existing policy configuration on the
|
|
9669
9786
|
* Sandbox; build a policy including any existing rules you want to keep.
|
|
9670
9787
|
*
|
|
9671
|
-
* Only Sandboxes created with an `
|
|
9788
|
+
* Only Sandboxes created with an `experimentalOutboundPolicy` can be updated this
|
|
9672
9789
|
* way; for Sandboxes created without one this fails, since header
|
|
9673
9790
|
* replacement is only set up at creation time.
|
|
9674
9791
|
*/
|
|
9675
|
-
|
|
9792
|
+
experimentalUpdateOutboundPolicy(outboundPolicy: ExperimentalOutboundPolicy): Promise<void>;
|
|
9676
9793
|
/**
|
|
9677
9794
|
* Reload all Volumes mounted in the Sandbox.
|
|
9678
9795
|
*
|
|
@@ -9972,4 +10089,4 @@ declare class ClientClosedError extends Error {
|
|
|
9972
10089
|
|
|
9973
10090
|
declare function checkForRenamedParams(params: any, renames: Record<string, string>): void;
|
|
9974
10091
|
|
|
9975
|
-
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,
|
|
10092
|
+
export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ConflictError, ContainerProcess, ExecutionError, ExperimentalOutboundPolicy, 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, 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, type SandboxRuntime, 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
|
@@ -702,6 +702,8 @@ interface AppGetInfoResponse_FunctionInfoSummary {
|
|
|
702
702
|
/** True for Web Functions and classes with web methods; false for Servers. */
|
|
703
703
|
webFunction: boolean;
|
|
704
704
|
requiresProxyAuth?: boolean | undefined;
|
|
705
|
+
/** True for Sessioned Servers. */
|
|
706
|
+
isSessioned: boolean;
|
|
705
707
|
}
|
|
706
708
|
declare const AppGetInfoResponse_FunctionInfoSummary: MessageFns$1<AppGetInfoResponse_FunctionInfoSummary>;
|
|
707
709
|
interface AppGetLayoutRequest {
|
|
@@ -3305,11 +3307,11 @@ interface ObjectDependency {
|
|
|
3305
3307
|
}
|
|
3306
3308
|
declare const ObjectDependency: MessageFns$1<ObjectDependency>;
|
|
3307
3309
|
/** Policy for outbound traffic from a sandbox. */
|
|
3308
|
-
interface OutboundPolicy
|
|
3310
|
+
interface OutboundPolicy {
|
|
3309
3311
|
/** Replace headers in outbound HTTPS requests, potentially with secret values. */
|
|
3310
3312
|
headerReplacements: OutboundPolicy_HeaderReplacement[];
|
|
3311
3313
|
}
|
|
3312
|
-
declare const OutboundPolicy
|
|
3314
|
+
declare const OutboundPolicy: MessageFns$1<OutboundPolicy>;
|
|
3313
3315
|
interface OutboundPolicy_HeaderReplacement {
|
|
3314
3316
|
/**
|
|
3315
3317
|
* Domain that the header replacements are scoped to. Supports wildcards in
|
|
@@ -3654,7 +3656,10 @@ interface Sandbox$1 {
|
|
|
3654
3656
|
* Set by the backend at snapshot creation time.
|
|
3655
3657
|
*/
|
|
3656
3658
|
runscRuntimeVersion?: string | undefined;
|
|
3657
|
-
/**
|
|
3659
|
+
/**
|
|
3660
|
+
* Runtime the sandbox runs in: "vm" for a virtual machine, or a container
|
|
3661
|
+
* runtime such as "gvisor". Leave it unset to let Modal pick.
|
|
3662
|
+
*/
|
|
3658
3663
|
runtime?: string | undefined;
|
|
3659
3664
|
/** If set, the sandbox will be created with verbose logging enabled. */
|
|
3660
3665
|
verbose: boolean;
|
|
@@ -3704,7 +3709,7 @@ interface Sandbox$1 {
|
|
|
3704
3709
|
*/
|
|
3705
3710
|
inboundCidrAllowlist: string[];
|
|
3706
3711
|
environmentVariables: StringMap | undefined;
|
|
3707
|
-
outboundPolicy?: OutboundPolicy
|
|
3712
|
+
outboundPolicy?: OutboundPolicy | undefined;
|
|
3708
3713
|
/**
|
|
3709
3714
|
* If set, the sandbox's main container is served an X.509-SVID over a
|
|
3710
3715
|
* SPIFFE Workload API socket, addressed by SPIFFE_ENDPOINT_SOCKET. The
|
|
@@ -4097,6 +4102,14 @@ interface SecretDeleteRequest {
|
|
|
4097
4102
|
secretId: string;
|
|
4098
4103
|
}
|
|
4099
4104
|
declare const SecretDeleteRequest: MessageFns$1<SecretDeleteRequest>;
|
|
4105
|
+
interface SecretGetInfoRequest {
|
|
4106
|
+
secretId: string;
|
|
4107
|
+
}
|
|
4108
|
+
declare const SecretGetInfoRequest: MessageFns$1<SecretGetInfoRequest>;
|
|
4109
|
+
interface SecretGetInfoResponse {
|
|
4110
|
+
metadata: SecretMetadata | undefined;
|
|
4111
|
+
}
|
|
4112
|
+
declare const SecretGetInfoResponse: MessageFns$1<SecretGetInfoResponse>;
|
|
4100
4113
|
interface SecretGetOrCreateRequest {
|
|
4101
4114
|
deploymentName: string;
|
|
4102
4115
|
environmentName: string;
|
|
@@ -4140,6 +4153,7 @@ interface SecretMetadata {
|
|
|
4140
4153
|
name: string;
|
|
4141
4154
|
creationInfo: CreationInfo | undefined;
|
|
4142
4155
|
keys: string[];
|
|
4156
|
+
environmentName: string;
|
|
4143
4157
|
}
|
|
4144
4158
|
declare const SecretMetadata: MessageFns$1<SecretMetadata>;
|
|
4145
4159
|
interface SecretUpdateRequest {
|
|
@@ -4959,6 +4973,11 @@ interface WebhookTokenListResponse {
|
|
|
4959
4973
|
tokens: WebhookToken[];
|
|
4960
4974
|
}
|
|
4961
4975
|
declare const WebhookTokenListResponse: MessageFns$1<WebhookTokenListResponse>;
|
|
4976
|
+
interface WebhookTokenUpdateRequest {
|
|
4977
|
+
tokenId: string;
|
|
4978
|
+
name?: string | undefined;
|
|
4979
|
+
}
|
|
4980
|
+
declare const WebhookTokenUpdateRequest: MessageFns$1<WebhookTokenUpdateRequest>;
|
|
4962
4981
|
interface WorkspaceBillingRatesRequest {
|
|
4963
4982
|
}
|
|
4964
4983
|
declare const WorkspaceBillingRatesRequest: MessageFns$1<WorkspaceBillingRatesRequest>;
|
|
@@ -6619,6 +6638,14 @@ declare const ModalClientDefinition: {
|
|
|
6619
6638
|
readonly responseStream: false;
|
|
6620
6639
|
readonly options: {};
|
|
6621
6640
|
};
|
|
6641
|
+
readonly secretGetInfo: {
|
|
6642
|
+
readonly name: "SecretGetInfo";
|
|
6643
|
+
readonly requestType: MessageFns$1<SecretGetInfoRequest>;
|
|
6644
|
+
readonly requestStream: false;
|
|
6645
|
+
readonly responseType: MessageFns$1<SecretGetInfoResponse>;
|
|
6646
|
+
readonly responseStream: false;
|
|
6647
|
+
readonly options: {};
|
|
6648
|
+
};
|
|
6622
6649
|
readonly secretGetOrCreate: {
|
|
6623
6650
|
readonly name: "SecretGetOrCreate";
|
|
6624
6651
|
readonly requestType: MessageFns$1<SecretGetOrCreateRequest>;
|
|
@@ -7053,6 +7080,14 @@ declare const ModalClientDefinition: {
|
|
|
7053
7080
|
readonly responseStream: false;
|
|
7054
7081
|
readonly options: {};
|
|
7055
7082
|
};
|
|
7083
|
+
readonly webhookTokenUpdate: {
|
|
7084
|
+
readonly name: "WebhookTokenUpdate";
|
|
7085
|
+
readonly requestType: MessageFns$1<WebhookTokenUpdateRequest>;
|
|
7086
|
+
readonly requestStream: false;
|
|
7087
|
+
readonly responseType: MessageFns$1<WebhookToken>;
|
|
7088
|
+
readonly responseStream: false;
|
|
7089
|
+
readonly options: {};
|
|
7090
|
+
};
|
|
7056
7091
|
/** Workspaces */
|
|
7057
7092
|
readonly workspaceBillingRates: {
|
|
7058
7093
|
readonly name: "WorkspaceBillingRates";
|
|
@@ -7319,6 +7354,8 @@ interface FunctionCallLogFetchParams {
|
|
|
7319
7354
|
/** Filter by text contained in the log message. */
|
|
7320
7355
|
searchText?: string;
|
|
7321
7356
|
}
|
|
7357
|
+
type SandboxLogFetchParams = FunctionLogFetchParams;
|
|
7358
|
+
type SandboxLogTailParams = FunctionLogTailParams;
|
|
7322
7359
|
interface FunctionLogs {
|
|
7323
7360
|
fetch(params: FunctionLogFetchParams): AsyncIterable<LogEntry>;
|
|
7324
7361
|
tail(params?: FunctionLogTailParams): AsyncIterable<LogEntry>;
|
|
@@ -7329,6 +7366,10 @@ interface FunctionCallLogs extends Omit<FunctionLogs, "fetch"> {
|
|
|
7329
7366
|
tail(params?: FunctionCallLogTailParams): AsyncIterable<LogEntry>;
|
|
7330
7367
|
stream(params?: FunctionCallLogStreamParams): AsyncIterable<LogEntry>;
|
|
7331
7368
|
}
|
|
7369
|
+
interface SandboxLogs {
|
|
7370
|
+
fetch(params: SandboxLogFetchParams): AsyncIterable<LogEntry>;
|
|
7371
|
+
tail(params?: SandboxLogTailParams): AsyncIterable<LogEntry>;
|
|
7372
|
+
}
|
|
7332
7373
|
interface LogQueryParams {
|
|
7333
7374
|
client: ModalClient;
|
|
7334
7375
|
objectId: string;
|
|
@@ -7481,6 +7522,59 @@ declare class FunctionCallLogsManager extends LogsManager implements FunctionCal
|
|
|
7481
7522
|
*/
|
|
7482
7523
|
stream(params?: FunctionCallLogStreamParams): AsyncIterable<LogEntry>;
|
|
7483
7524
|
}
|
|
7525
|
+
/** Namespace for Sandbox entrypoint log APIs. */
|
|
7526
|
+
declare class SandboxLogsManager implements SandboxLogs {
|
|
7527
|
+
private readonly client;
|
|
7528
|
+
private readonly sandboxId;
|
|
7529
|
+
private readonly getAppId;
|
|
7530
|
+
private readonly getTaskId;
|
|
7531
|
+
/** @ignore */
|
|
7532
|
+
constructor(client: ModalClient, sandboxId: string, getAppId: () => Promise<string>, getTaskId: () => Promise<string>);
|
|
7533
|
+
/**
|
|
7534
|
+
* Fetch Sandbox entrypoint logs corresponding to a UTC time range and
|
|
7535
|
+
* optional filters.
|
|
7536
|
+
*
|
|
7537
|
+
* Entries are returned in chronological order.
|
|
7538
|
+
*
|
|
7539
|
+
* @returns An async iterable of {@link LogEntry} objects.
|
|
7540
|
+
*
|
|
7541
|
+
* @example
|
|
7542
|
+
* ```typescript
|
|
7543
|
+
* import { ModalClient } from "modal";
|
|
7544
|
+
*
|
|
7545
|
+
* const modal = new ModalClient();
|
|
7546
|
+
* const sandbox = await modal.sandboxes.fromId("sb-...");
|
|
7547
|
+
*
|
|
7548
|
+
* for await (const entry of sandbox.logs.fetch({
|
|
7549
|
+
* since: new Date(Date.now() - 60 * 60 * 1_000),
|
|
7550
|
+
* source: "stdout",
|
|
7551
|
+
* })) {
|
|
7552
|
+
* process.stdout.write(entry.message);
|
|
7553
|
+
* }
|
|
7554
|
+
* ```
|
|
7555
|
+
*/
|
|
7556
|
+
fetch(params: SandboxLogFetchParams): AsyncIterable<LogEntry>;
|
|
7557
|
+
/**
|
|
7558
|
+
* Fetch the most recent Sandbox entrypoint logs.
|
|
7559
|
+
*
|
|
7560
|
+
* Entries are returned in chronological order.
|
|
7561
|
+
*
|
|
7562
|
+
* @returns An async iterable of {@link LogEntry} objects.
|
|
7563
|
+
*
|
|
7564
|
+
* @example
|
|
7565
|
+
* ```typescript
|
|
7566
|
+
* import { ModalClient } from "modal";
|
|
7567
|
+
*
|
|
7568
|
+
* const modal = new ModalClient();
|
|
7569
|
+
* const sandbox = await modal.sandboxes.fromId("sb-...");
|
|
7570
|
+
*
|
|
7571
|
+
* for await (const entry of sandbox.logs.tail({ entries: 20 })) {
|
|
7572
|
+
* process.stdout.write(entry.message);
|
|
7573
|
+
* }
|
|
7574
|
+
* ```
|
|
7575
|
+
*/
|
|
7576
|
+
tail(params?: SandboxLogTailParams): AsyncIterable<LogEntry>;
|
|
7577
|
+
}
|
|
7484
7578
|
|
|
7485
7579
|
/**
|
|
7486
7580
|
* Service for managing {@link FunctionCall}s.
|
|
@@ -8307,7 +8401,7 @@ declare const TaskSetNetworkAccessRequest: MessageFns<TaskSetNetworkAccessReques
|
|
|
8307
8401
|
interface TaskSetOutboundPolicyRequest {
|
|
8308
8402
|
taskId: string;
|
|
8309
8403
|
/** Replaces the task's outbound policy. */
|
|
8310
|
-
outboundPolicy: OutboundPolicy
|
|
8404
|
+
outboundPolicy: OutboundPolicy | undefined;
|
|
8311
8405
|
}
|
|
8312
8406
|
declare const TaskSetOutboundPolicyRequest: MessageFns<TaskSetOutboundPolicyRequest>;
|
|
8313
8407
|
interface TaskSnapshotDirectoryRequest {
|
|
@@ -8601,6 +8695,8 @@ type HeaderReplacement = {
|
|
|
8601
8695
|
* Immutable configuration for replacing headers in outbound HTTPS requests
|
|
8602
8696
|
* from a Sandbox.
|
|
8603
8697
|
*
|
|
8698
|
+
* EXPERIMENTAL: the API is subject to change.
|
|
8699
|
+
*
|
|
8604
8700
|
* Header values support templating with keys in a replacement's secret: a
|
|
8605
8701
|
* `$`-prefixed key name in the secret is replaced with the secret value.
|
|
8606
8702
|
* Literal `$` characters are written `$$`.
|
|
@@ -8611,7 +8707,7 @@ type HeaderReplacement = {
|
|
|
8611
8707
|
* ```ts
|
|
8612
8708
|
* const secret = await modal.secrets.fromName("api-token");
|
|
8613
8709
|
*
|
|
8614
|
-
* const outboundPolicy = new modal.
|
|
8710
|
+
* const outboundPolicy = new modal.ExperimentalOutboundPolicy()
|
|
8615
8711
|
* // Inject a secret-backed Authorization header.
|
|
8616
8712
|
* .withHeaderReplacement({
|
|
8617
8713
|
* domain: "example.com",
|
|
@@ -8624,16 +8720,18 @@ type HeaderReplacement = {
|
|
|
8624
8720
|
* headers: { "X-Trace-Token": "trace_abcd" },
|
|
8625
8721
|
* });
|
|
8626
8722
|
*
|
|
8627
|
-
* const sb = await modal.sandboxes.create(app, image, {
|
|
8723
|
+
* const sb = await modal.sandboxes.create(app, image, {
|
|
8724
|
+
* experimentalOutboundPolicy: outboundPolicy,
|
|
8725
|
+
* });
|
|
8628
8726
|
* ```
|
|
8629
8727
|
*/
|
|
8630
|
-
declare class
|
|
8728
|
+
declare class ExperimentalOutboundPolicy {
|
|
8631
8729
|
/** @internal */
|
|
8632
8730
|
readonly _replacements: readonly HeaderReplacement[];
|
|
8633
8731
|
/** @internal */
|
|
8634
8732
|
constructor(_replacements?: readonly HeaderReplacement[]);
|
|
8635
8733
|
/**
|
|
8636
|
-
* Return a new {@link
|
|
8734
|
+
* Return a new {@link ExperimentalOutboundPolicy} with an added header replacement.
|
|
8637
8735
|
*
|
|
8638
8736
|
* @param params.domain Domain the replacements are scoped to. Supports `*.` wildcard
|
|
8639
8737
|
* prefixes (matching the apex domain and subdomains) and a bare `"*"`.
|
|
@@ -8646,7 +8744,7 @@ declare class OutboundPolicy {
|
|
|
8646
8744
|
domain: string;
|
|
8647
8745
|
headers: Record<string, string>;
|
|
8648
8746
|
secret?: Secret;
|
|
8649
|
-
}):
|
|
8747
|
+
}): ExperimentalOutboundPolicy;
|
|
8650
8748
|
/** Check all replacements, throwing `InvalidError` on the first violation found.
|
|
8651
8749
|
* @internal
|
|
8652
8750
|
*/
|
|
@@ -8658,7 +8756,7 @@ declare class OutboundPolicy {
|
|
|
8658
8756
|
/** Convert to the wire format. Referenced secrets must be hydrated first.
|
|
8659
8757
|
* @internal
|
|
8660
8758
|
*/
|
|
8661
|
-
_toProto(): OutboundPolicy
|
|
8759
|
+
_toProto(): OutboundPolicy;
|
|
8662
8760
|
}
|
|
8663
8761
|
|
|
8664
8762
|
/** Type of a filesystem entry. */
|
|
@@ -9133,6 +9231,8 @@ type StdioBehavior = "pipe" | "ignore";
|
|
|
9133
9231
|
* means the data will be read as raw bytes (Uint8Array).
|
|
9134
9232
|
*/
|
|
9135
9233
|
type StreamMode = "text" | "binary";
|
|
9234
|
+
/** Runtime a Sandbox runs in: a virtual machine, or gVisor. */
|
|
9235
|
+
type SandboxRuntime = "gvisor" | "vm";
|
|
9136
9236
|
/** Optional parameters for {@link Probe.withTcp} and {@link Probe.withExec}. */
|
|
9137
9237
|
type ProbeParams = {
|
|
9138
9238
|
intervalMs: number;
|
|
@@ -9156,6 +9256,8 @@ type SandboxCreateParams = {
|
|
|
9156
9256
|
memoryMiB?: number;
|
|
9157
9257
|
/** Hard limit of memory in MiB. */
|
|
9158
9258
|
memoryLimitMiB?: number;
|
|
9259
|
+
/** Runtime under which the Sandbox executes, or undefined to let Modal pick. */
|
|
9260
|
+
runtime?: SandboxRuntime;
|
|
9159
9261
|
/** GPU reservation for the Sandbox (e.g. "A100", "T4:2", "A100-80GB:4"). */
|
|
9160
9262
|
gpu?: string;
|
|
9161
9263
|
/** Maximum lifetime of the Sandbox in milliseconds. Defaults to 5 minutes. */
|
|
@@ -9194,8 +9296,9 @@ type SandboxCreateParams = {
|
|
|
9194
9296
|
outboundDomainAllowlist?: string[];
|
|
9195
9297
|
/** Configuration for replacing headers in outbound HTTPS requests from the Sandbox.
|
|
9196
9298
|
* Secrets referenced by the policy are resolved outside the Sandbox and are never
|
|
9197
|
-
* visible to the workload. See {@link
|
|
9198
|
-
|
|
9299
|
+
* visible to the workload. See {@link ExperimentalOutboundPolicy}.
|
|
9300
|
+
* EXPERIMENTAL: the API is subject to change. */
|
|
9301
|
+
experimentalOutboundPolicy?: ExperimentalOutboundPolicy;
|
|
9199
9302
|
/** List of CIDRs allowed to connect inbound to the Sandbox (tunnels and connection tokens). If not set, all IPs are allowed. Cannot be used with blockNetwork. */
|
|
9200
9303
|
inboundCidrAllowlist?: string[];
|
|
9201
9304
|
/** Enable private IPv6 networking (i6pn) so Sandboxes in the same workspace can address each
|
|
@@ -9504,6 +9607,18 @@ declare class Sandbox {
|
|
|
9504
9607
|
get stdin(): ModalWriteStream<string>;
|
|
9505
9608
|
get stdout(): ModalReadStream<string>;
|
|
9506
9609
|
get stderr(): ModalReadStream<string>;
|
|
9610
|
+
/**
|
|
9611
|
+
* Access persisted entrypoint logs emitted by this Sandbox.
|
|
9612
|
+
*
|
|
9613
|
+
* Use {@link SandboxLogsManager#fetch fetch()} to read logs from a UTC time
|
|
9614
|
+
* range and {@link SandboxLogsManager#tail tail()} to read the most recent
|
|
9615
|
+
* logs.
|
|
9616
|
+
*
|
|
9617
|
+
* This is separate from {@link Sandbox#stdout stdout} and
|
|
9618
|
+
* {@link Sandbox#stderr stderr}, which expose the Sandbox's live output
|
|
9619
|
+
* streams.
|
|
9620
|
+
*/
|
|
9621
|
+
get logs(): SandboxLogsManager;
|
|
9507
9622
|
get filesystem(): SandboxFilesystem;
|
|
9508
9623
|
/**
|
|
9509
9624
|
* Operations for managing sidecar containers that run alongside the
|
|
@@ -9665,14 +9780,16 @@ declare class Sandbox {
|
|
|
9665
9780
|
/**
|
|
9666
9781
|
* Replace the outbound policy of a running Sandbox.
|
|
9667
9782
|
*
|
|
9783
|
+
* EXPERIMENTAL: the API is subject to change.
|
|
9784
|
+
*
|
|
9668
9785
|
* The new policy replaces all existing policy configuration on the
|
|
9669
9786
|
* Sandbox; build a policy including any existing rules you want to keep.
|
|
9670
9787
|
*
|
|
9671
|
-
* Only Sandboxes created with an `
|
|
9788
|
+
* Only Sandboxes created with an `experimentalOutboundPolicy` can be updated this
|
|
9672
9789
|
* way; for Sandboxes created without one this fails, since header
|
|
9673
9790
|
* replacement is only set up at creation time.
|
|
9674
9791
|
*/
|
|
9675
|
-
|
|
9792
|
+
experimentalUpdateOutboundPolicy(outboundPolicy: ExperimentalOutboundPolicy): Promise<void>;
|
|
9676
9793
|
/**
|
|
9677
9794
|
* Reload all Volumes mounted in the Sandbox.
|
|
9678
9795
|
*
|
|
@@ -9972,4 +10089,4 @@ declare class ClientClosedError extends Error {
|
|
|
9972
10089
|
|
|
9973
10090
|
declare function checkForRenamedParams(params: any, renames: Record<string, string>): void;
|
|
9974
10091
|
|
|
9975
|
-
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,
|
|
10092
|
+
export { AlreadyExistsError, App, type AppFromNameParams, AppService, ClientClosedError, CloudBucketMount, CloudBucketMountService, Cls, type ClsFromNameParams, ClsInstance, ClsService, type ClsWithBatchingParams, type ClsWithConcurrencyParams, type ClsWithOptionsParams, ConflictError, ContainerProcess, ExecutionError, ExperimentalOutboundPolicy, 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, 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, type SandboxRuntime, 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 };
|