package modal.client

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service ModalClient

api.proto:3123

enum AppDeployVisibility

api.proto:12

Used in: AppDeployRequest

message AppDeploymentHistory

api.proto:310

Used in: AppDeploymentHistoryResponse

enum AppDisconnectReason

api.proto:18

Used in: AppClientDisconnectRequest

message AppGetObjectsItem

api.proto:360

Used in: AppGetObjectsResponse

message AppLayout

api.proto:389

Used in: AppGetLayoutResponse, ContainerArguments

message AppListResponse.AppListItem

api.proto:400

Used in: AppListResponse

enum AppState

api.proto:29

NOTE: make sure to update the frontend if we add a new state here https://github.com/modal-labs/modal/blob/main/frontend/src/routes/(dashboard)/%5B%5Bworkspace%5D%5D/apps/+page.svelte#L95

Used in: AppCreateRequest, AppListResponse.AppListItem, AppPublishRequest, AppSetObjectsRequest

enum AppStopSource

api.proto:59

Used in: AppStopRequest

message Asgi

api.proto:468

A web endpoint connection-related message. Modal's internal web endpoint runtime effectively acts as a global web server that schedules requests to tasks that are spawned on-demand, so we need an internal protocol to model HTTP requests. This is that protocol. We base this protocol on Python's ASGI specification, which is a popular interface between applications and web servers. ASGI Spec: https://asgi.readthedocs.io/en/latest/specs/www.html

message Asgi.Http

api.proto:470

Message of type "http" (connection scope)

Used in: Asgi

message Asgi.HttpDisconnect

api.proto:507

Message of type "http.disconnect"

Used in: Asgi

(message has no fields)

message Asgi.HttpRequest

api.proto:482

Message of type "http.request"

Used in: Asgi

message Asgi.HttpResponseBody

api.proto:495

Message of type "http.response.body"

Used in: Asgi

message Asgi.HttpResponseStart

api.proto:488

Message of type "http.response.start"

Used in: Asgi

message Asgi.HttpResponseTrailers

api.proto:501

Message of type "http.response.trailers"

Used in: Asgi

message Asgi.Websocket

api.proto:511

Message of type "websocket" (connection scope)

Used in: Asgi

message Asgi.WebsocketAccept

api.proto:527

Message of type "websocket.accept"

Used in: Asgi

message Asgi.WebsocketClose

api.proto:554

Message of type "websocket.close"

Used in: Asgi

message Asgi.WebsocketConnect

api.proto:523

Message of type "websocket.connect"

Used in: Asgi

(message has no fields)

message Asgi.WebsocketDisconnect

api.proto:549

Message of type "websocket.disconnect"

Used in: Asgi

message Asgi.WebsocketReceive

api.proto:533

Message of type "websocket.receive"

Used in: Asgi

message Asgi.WebsocketSend

api.proto:541

Message of type "websocket.send"

Used in: Asgi

message AutoscalerSettings

api.proto:609

A collection of user-configurable settings for Function autoscaling These are used for static configuration and for dynamic autoscaler updates

Used in: Function, FunctionData, FunctionUpdateSchedulingParamsRequest

message BaseImage

api.proto:625

Used in: Image

message BuildFunction

api.proto:655

Used in: Image

message CancelInputEvent

api.proto:661

Used in: ContainerHeartbeatResponse

enum CertificateStatus

api.proto:66

Used in: Domain

message CheckpointInfo

api.proto:666

Used in: Function

enum CheckpointStatus

api.proto:73

Used in: CheckpointInfo

message ClassHandleMetadata

api.proto:708

Used in: ClassCreateResponse, ClassGetResponse, Object

message ClassMethod

api.proto:714

Used in: ClassCreateRequest, ClassHandleMetadata

message ClassParameterInfo

api.proto:722

Used in: Function, FunctionData, FunctionHandleMetadata

enum ClassParameterInfo.ParameterSerializationFormat

api.proto:723

Used in: ClassParameterInfo

message ClassParameterSet

api.proto:732

message ClassParameterSpec

api.proto:739

TODO: rename into NamedPayloadType or similar

Used in: ClassParameterInfo, FunctionSchema

message ClassParameterValue

api.proto:755

TODO: rename into NamedPayloadValue

Used in: ClassParameterSet

enum ClientType

api.proto:81

message CloudBucketMount

api.proto:776

Used in: Function, Sandbox

enum CloudBucketMount.BucketType

api.proto:777

Used in: CloudBucketMount

enum CloudProvider

api.proto:91

Used in: Function, Sandbox, SharedVolumeListItem, SharedVolumeMount

message ClusterStats

api.proto:811

Used in: ClusterGetResponse, ClusterListResponse

message CommitInfo

api.proto:818

Used in: AppDeploymentHistory, AppPublishRequest

message ContainerArguments

api.proto:829

This is used to pass data from the worker to the container

message ContainerFileCloseRequest

api.proto:892

Used in: ContainerFilesystemExecRequest

message ContainerFileDeleteBytesRequest

api.proto:896

Used in: ContainerFilesystemExecRequest

message ContainerFileFlushRequest

api.proto:902

Used in: ContainerFilesystemExecRequest

message ContainerFileLsRequest

api.proto:906

Used in: ContainerFilesystemExecRequest

message ContainerFileMkdirRequest

api.proto:910

Used in: ContainerFilesystemExecRequest

message ContainerFileOpenRequest

api.proto:915

Used in: ContainerFilesystemExecRequest

message ContainerFileReadLineRequest

api.proto:922

Used in: ContainerFilesystemExecRequest

message ContainerFileReadRequest

api.proto:926

Used in: ContainerFilesystemExecRequest

message ContainerFileRmRequest

api.proto:931

Used in: ContainerFilesystemExecRequest

message ContainerFileSeekRequest

api.proto:936

Used in: ContainerFilesystemExecRequest

message ContainerFileWatchRequest

api.proto:942

Used in: ContainerFilesystemExecRequest

message ContainerFileWriteReplaceBytesRequest

api.proto:948

Used in: ContainerFilesystemExecRequest

message ContainerFileWriteRequest

api.proto:955

Used in: ContainerFilesystemExecRequest

message CustomDomainConfig

api.proto:1012

Used in: WebhookConfig

message CustomDomainInfo

api.proto:1016

Used in: Function, FunctionData, MethodDefinition

message DNSRecord

api.proto:1020

Used in: Domain, DomainCreateResponse

enum DNSRecordType

api.proto:100

Used in: DNSRecord

message DataChunk

api.proto:1027

Chunks of data that can be streamed in and out of tasks.

Used as response type in: ModalClient.FunctionCallGetDataIn, ModalClient.FunctionCallGetDataOut

Used as field type in: FunctionCallPutDataRequest

enum DataFormat

api.proto:107

Which data format a binary message is encoded with.

Used in: DataChunk, FunctionGetOutputsItem, FunctionInput, FunctionPutOutputsItem

enum DeploymentNamespace

api.proto:114

Used in: AppDeployRequest, AppGetByDeploymentNameRequest, ClassGetRequest, DictGetOrCreateRequest, FunctionGetRequest, ImageGetOrCreateRequest, MountGetOrCreateRequest, ProxyGetOrCreateRequest, QueueGetOrCreateRequest, SecretGetOrCreateRequest, SharedVolumeGetOrCreateRequest, VolumeGetOrCreateRequest

message DictEntry

api.proto:1061

Used as response type in: ModalClient.DictContents

Used as field type in: DictGetOrCreateRequest, DictUpdateRequest

message DictListResponse.DictInfo

api.proto:1105

Used in: DictListResponse

message Domain

api.proto:1133

Used in: DomainCertificateVerifyResponse, DomainListResponse

message EnvironmentListItem

api.proto:1182

Used as response type in: ModalClient.EnvironmentUpdate

Used as field type in: EnvironmentListResponse

message EnvironmentMetadata

api.proto:1193

Used in: EnvironmentGetOrCreateResponse

message EnvironmentSettings

api.proto:1201

Environment-scoped settings, with workspace-level defaults. Note that we use MergeFrom to combine workspace / environment settings, which will *append* any `repeated` fields!

Used in: EnvironmentMetadata

enum ExecOutputOption

api.proto:120

Used in: ContainerExecRequest

enum FileDescriptor

api.proto:127

Used in: AppGetLogsRequest, ContainerExecGetOutputRequest, RuntimeOutputMessage, SandboxGetLogsRequest, TaskLogs

message FileEntry

api.proto:1213

A file entry when listing files in a volume or network file system.

Used in: SharedVolumeListFilesResponse, VolumeListFilesResponse

enum FileEntry.FileType

api.proto:1214

Used in: FileEntry

message Function

api.proto:1233

Used in: ContainerArguments, FunctionCreateRequest, FunctionCreateResponse, FunctionData.RankedFunction, FunctionExtended

enum Function.DefinitionType

api.proto:1240

Used in: Function

enum Function.FunctionType

api.proto:1247

Used in: Function, FunctionData, FunctionHandleMetadata, FunctionPrecreateRequest, MethodDefinition

message FunctionCallCallGraphInfo

api.proto:1408

Used in: FunctionGetCallGraphResponse

message FunctionCallGetDataRequest

api.proto:1420

Used as request type in: ModalClient.FunctionCallGetDataIn, ModalClient.FunctionCallGetDataOut

message FunctionCallInfo

api.proto:1425

Used in: FunctionCallListResponse

enum FunctionCallInvocationType

api.proto:134

Used in: FunctionGetInputsItem, FunctionMapRequest

enum FunctionCallType

api.proto:142

Used in: FunctionMapRequest

message FunctionData

api.proto:1470

Note: FunctionData pulls "up" a subset of fields from Function message that will get deprecated there and made authoritative here, at the top-level. All remaining fields will stay within the Function message itself and a single FunctionData will contain a list of such (ranked) Functions. The top-level fields capture data not specific to any particular underlying task (like warm-pool-size, applicable across all tasks), while fields specific to the task (like the resource request) will exist at the bottom level.

Used in: FunctionCreateRequest, FunctionExtended

message FunctionData.RankedFunction

api.proto:1517

Used in: FunctionData

message FunctionExtended

api.proto:1537

message FunctionGetInputsItem

api.proto:1574

Used in: FunctionGetInputsResponse

message FunctionGetOutputsItem

api.proto:1600

Used in: AttemptAwaitResponse, FunctionGetOutputsResponse

message FunctionHandleMetadata

api.proto:1652

contains all the info about a function that is needed to trigger the right behaviour when using a FunctionHandler. Notably excludes things purely used for *executing* the function in a container entrypoint

Used in: ClassHandleMetadata, ClassMethod, FunctionBindParamsResponse, FunctionCreateResponse, FunctionGetResponse, FunctionPrecreateResponse, Object

message FunctionInput

api.proto:1672

Used in: BuildFunction, FunctionAsyncInvokeRequest, FunctionGetInputsItem, FunctionPutInputsItem, FunctionRetryInputsItem

message FunctionOptions

api.proto:1702

Used in: FunctionBindParamsRequest

message FunctionPutInputsItem

api.proto:1739

Used in: AttemptRetryRequest, AttemptStartRequest, FunctionMapRequest, FunctionPutInputsRequest

message FunctionPutInputsResponseItem

api.proto:1754

Used in: FunctionMapResponse, FunctionPutInputsResponse

message FunctionPutOutputsItem

api.proto:1760

Used in: FunctionPutOutputsRequest

message FunctionRetryInputsItem

api.proto:1774

Used in: FunctionRetryInputsRequest

message FunctionRetryPolicy

api.proto:1789

Used in: AttemptStartResponse, Function, FunctionMapResponse, FunctionOptions

message FunctionSchema

api.proto:1797

Used in: Function, FunctionData, FunctionHandleMetadata, FunctionPrecreateRequest, MethodDefinition

enum FunctionSchema.FunctionSchemaType

api.proto:1798

Used in: FunctionSchema

message GPUConfig

api.proto:1820

Used in: Image, Resources

enum GPUType

api.proto:148

Used in: GPUConfig

message GeneratorDone

api.proto:1826

Sent as the output when a generator finishes running.

message GenericPayloadType

api.proto:1830

Used in: ClassParameterSpec, FunctionSchema

message GenericResult

api.proto:1835

Used for both tasks and function outputs

Used in: FunctionGetOutputsItem, FunctionPutOutputsItem, ImageGetOrCreateResponse, ImageJoinStreamingResponse, SandboxGetTaskIdResponse, SandboxGetTunnelsResponse, SandboxHandleMetadata, SandboxSnapshotFsResponse, SandboxSnapshotWaitResponse, SandboxTerminateResponse, SandboxWaitResponse, TaskInfo, TaskResultRequest

enum GenericResult.GenericStatus

api.proto:1836

Used in: GenericResult, InputCallGraphInfo

message Image

api.proto:1865

Used in: ImageGetOrCreateRequest

message ImageContextFile

api.proto:1888

Used in: Image

message ImageMetadata

api.proto:1941

Used in: ImageFromIdResponse, ImageGetOrCreateResponse, ImageJoinStreamingResponse, SandboxSnapshotFsResponse

message ImageRegistryConfig

api.proto:1952

Used in: Image

message InputCallGraphInfo

api.proto:1957

Used in: FunctionGetCallGraphResponse

message InputCategoryInfo

api.proto:1964

Used in: FunctionCallInfo

message InputInfo

api.proto:1969

Used in: InputCategoryInfo

message MethodDefinition

api.proto:1979

Used in: Function, FunctionData, FunctionPrecreateRequest

message MountFile

api.proto:1989

Used in: MountGetOrCreateRequest, VolumePutFilesRequest

message MountHandleMetadata

api.proto:2010

Used in: MountGetOrCreateResponse, Object

message MultiPartUpload

api.proto:2027

Used in: BlobCreateResponse

message NetworkAccess

api.proto:2033

Used in: Sandbox

enum NetworkAccess.NetworkAccessType

api.proto:2034

Used in: NetworkAccess

message NotebookKernelPublishResultsRequest.CellResult

api.proto:2054

IOPub message or reply received from the kernel for a cell.

Used in: NotebookKernelPublishResultsRequest

message NotebookKernelPublishResultsRequest.ExecuteReply

api.proto:2047

See kernelshim.py for the differences between this and `ExecuteResult`. https://jupyter-client.readthedocs.io/en/stable/messaging.html#execution-results

Used in: CellResult

message NotebookOutput

api.proto:2077

A single output from a notebook. When you execute a cell, it produces an array of these outputs as the code runs. https://github.com/jupyter/nbformat/blob/v5.10.4/nbformat/v4/nbformat.v4.schema.json#L301-L309

Used in: NotebookKernelPublishResultsRequest.CellResult

message NotebookOutput.DisplayData

api.proto:2086

Data displayed as a result of code cell execution.

Used in: NotebookOutput

message NotebookOutput.Error

api.proto:2101

Output of an error that occurred during code cell execution.

Used in: NotebookOutput

message NotebookOutput.ExecuteResult

api.proto:2079

Result of executing a code cell.

Used in: NotebookOutput

message NotebookOutput.Stream

api.proto:2095

Stream output from a code cell (stdout / stderr).

Used in: NotebookOutput

message Object

api.proto:2115

Used in: AppGetObjectsItem, AppLayout

enum ObjectCreationType

api.proto:163

Used in: AppGetOrCreateRequest, DictGetOrCreateRequest, EnvironmentGetOrCreateRequest, MountGetOrCreateRequest, ProxyGetOrCreateRequest, QueueGetOrCreateRequest, SecretGetOrCreateRequest, SharedVolumeGetOrCreateRequest, VolumeGetOrCreateRequest

message ObjectDependency

api.proto:2126

Used in: Function

message PTYInfo

api.proto:2130

Used in: ContainerExecRequest, Function, Sandbox

enum PTYInfo.PTYType

api.proto:2137

Used in: PTYInfo

enum ParameterType

api.proto:172

Used in: ClassParameterSpec, ClassParameterValue, GenericPayloadType

message PortSpec

api.proto:2145

Used in: PortSpecs

message PortSpecs

api.proto:2150

Used in: Sandbox

enum ProgressType

api.proto:185

Used in: TaskProgress

message Proxy

api.proto:2154

Used in: ProxyCreateResponse, ProxyGetResponse, ProxyListResponse

message ProxyInfo

api.proto:2203

Used in: ContainerArguments

message ProxyIp

api.proto:2211

Used in: Proxy, ProxyAddIpResponse

enum ProxyIpStatus

api.proto:190

Used in: ProxyIp

enum ProxyType

api.proto:198

Used in: ProxyInfo

message QueueItem

api.proto:2262

Used in: QueueNextItemsResponse

message QueueListResponse.QueueInfo

api.proto:2284

Used in: QueueListResponse

message RateLimit

api.proto:2313

Used in: Function

enum RateLimitInterval

api.proto:204

Used in: RateLimit

enum RegistryAuthType

api.proto:210

Used in: ImageRegistryConfig

message Resources

api.proto:2318

Used in: Function, FunctionOptions, Sandbox, TaskTemplate

message RuntimeInputMessage

api.proto:2328

Used in: ContainerExecPutInputRequest

message RuntimeOutputMessage

api.proto:2345

Used for `modal container exec`, `modal shell`, and Sandboxes

Used in: RuntimeOutputBatch

message S3Mount

api.proto:2352

Used in: Function, Sandbox

message Sandbox

api.proto:2359

Used in: SandboxCreateRequest

message SandboxHandleMetadata

api.proto:2470

Used in: Object

message SandboxInfo

api.proto:2474

Used in: SandboxListResponse

message SandboxTag

api.proto:2550

Used in: SandboxListRequest, SandboxTagsSetRequest

message Schedule

api.proto:2578

Used in: Function, FunctionCreateRequest, FunctionData

message Schedule.Cron

api.proto:2579

Used in: Schedule

message Schedule.Period

api.proto:2582

Used in: Schedule

message SchedulerPlacement

api.proto:2597

TODO(irfansharif): - Fold in cloud, resource needs here too. - Allow specifying list of zones, cloud, fallback and alternative GPU types.

Used in: Function, Sandbox

message SecretCreateRequest

api.proto:2612

Not used by client anymore

message SecretCreateResponse

api.proto:2619

Not used by client anymore

message SecretListItem

api.proto:2641

Used in: SecretListResponse

enum SeekWhence

api.proto:218

Used in: ContainerFileSeekRequest

message SharedVolumeListFilesRequest

api.proto:2690

Used as request type in: ModalClient.SharedVolumeListFiles, ModalClient.SharedVolumeListFilesStream

message SharedVolumeListFilesResponse

api.proto:2695

Used as response type in: ModalClient.SharedVolumeListFiles, ModalClient.SharedVolumeListFilesStream

message SharedVolumeListItem

api.proto:2699

Used in: SharedVolumeListResponse

message SharedVolumeMount

api.proto:2715

Used in: Function, Sandbox

enum SystemErrorCode

api.proto:224

Used in: SystemErrorMessage

message SystemErrorMessage

api.proto:2743

Used in: FilesystemRuntimeOutputBatch

message TaskInfo

api.proto:2764

Used in: SandboxInfo

message TaskLogs

api.proto:2781

Used in: ContainerLogRequest, ImageJoinStreamingResponse, TaskLogsBatch

message TaskLogsBatch

api.proto:2791

Used as response type in: ModalClient.AppGetLogs, ModalClient.SandboxGetLogs

message TaskProgress

api.proto:2804

Used in: TaskLogs

enum TaskState

api.proto:241

Used in: TaskLogs

message TaskStats

api.proto:2815

Used in: TaskListResponse

message TaskTemplate

api.proto:2822

Used in: Function

message TunnelData

api.proto:2859

Used in: SandboxGetTunnelsResponse

enum VolumeFsVersion

api.proto:256

Used in: VolumeGetOrCreateRequest, VolumeGetOrCreateResponse, VolumeMetadata

message VolumeListItem

api.proto:2970

Used in: VolumeListResponse

message VolumeMetadata

api.proto:2985

Used in: Object, VolumeGetOrCreateResponse

message VolumeMount

api.proto:2989

Used in: Function, FunctionOptions, Sandbox

message VolumePutFiles2Request.Block

api.proto:3022

Used in: File

message VolumePutFiles2Request.File

api.proto:3007

Used in: VolumePutFiles2Request

message VolumePutFiles2Response.MissingBlock

api.proto:3048

Used in: VolumePutFiles2Response

message Warning

api.proto:3088

Used in: AppPublishResponse, ClassGetResponse, ClientHelloResponse, FunctionCreateResponse, FunctionGetResponse

enum Warning.WarningType

api.proto:3089

Used in: Warning

message WebUrlInfo

api.proto:3099

Used in: Function, FunctionData, MethodDefinition

enum WebhookAsyncMode

api.proto:262

Used in: WebhookConfig

message WebhookConfig

api.proto:3105

Used in: Function, FunctionData, FunctionPrecreateRequest, MethodDefinition

enum WebhookType

api.proto:270

Used in: WebhookConfig