{"modulePath":"github.com/runware/runware-cli","version":"v1.3.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package serverless\n\nPackage serverless is a thin wrapper around the OpenAPI-generated client for the Runware Serverless control-plane API (api.serverless.runware.ai).\n\nRegenerate the client after updating api/serverless/openapi.yaml:\n\n\tmake generate-serverless\n\n## Constants\n\n```go\nconst (\n\t// AppSourceTypeCode is appSource.type = \"code\".\n\tAppSourceTypeCode = gen.Code\n\t// AppSourceTypeContainer is appSource.type = \"container\".\n\tAppSourceTypeContainer = gen.Container\n)\n```\n\n```go\nconst (\n\t// LogQueryRuntime is the pageable application log query.\n\tLogQueryRuntime = \"runtime\"\n\t// LogQueryRuntimeTail is the only log query the tail route accepts.\n\tLogQueryRuntimeTail = \"runtime_tail\"\n\t// DefaultLogLimit is sent when the caller sets no page size. The API\n\t// documents 20 but does not apply it, so an omitted limit falls through\n\t// to the downstream default of 100.\n\tDefaultLogLimit = 20\n)\n```\n\n```go\nconst (\n\tUsageDimensionApp      = gen.UsageDimensionApp\n\tUsageDimensionGpuType  = gen.UsageDimensionGpuType\n\tUsageDimensionDay      = gen.UsageDimensionDay\n\tUsageDimensionCoverage = gen.UsageDimensionCoverage\n)\n```\nUsage summary grouping dimensions.\n\n```go\nconst SourceUploadStateReady = gen.SourceUploadStateReady\n```\nSourceUploadStateReady is the state a session reaches once completion has verified the staged archive against the declaration.\n\n## Variables\n\n```go\nvar ErrSSEEventTooLarge = errors.New(\"log stream event exceeds \" + strconv.Itoa(maxSSEFrameBytes) + \" bytes\")\n```\nErrSSEEventTooLarge reports an event whose lines together exceed maxSSEFrameBytes.\n\n```go\nvar ErrTailEnded = errors.New(\"log stream ended\")\n```\nErrTailEnded reports that the server closed a log stream on purpose, at the end of its connection lifetime or on shutdown. The caller may reconnect.\n\n## Functions\n\n```go\nfunc AppDeployTerminal(status AppStatus) bool\n```\nAppDeployTerminal reports whether WaitApp would stop polling for status.\n\n```go\nfunc ValidateEndpointPath(path string) error\n```\nValidateEndpointPath checks ADR-034. A leading slash is rejected by the API with 422; fail locally with a hint naming the bare segment.\n\n## Types\n\n```go\ntype App = gen.App\n```\nApp is a serverless application.\n\n```go\ntype AppCreate = gen.AppCreate\n```\nAppCreate is the request body for createApp.\n\n```go\ntype AppEvent = gen.AppEvent\n```\nAppEvent is a deploy, scaling, audit, or error event on an app.\n\n```go\ntype AppEventType = gen.AppEventType\n```\nAppEventType is an AppEvent.type value.\n\n```go\ntype AppHealth = gen.AppHealth\n```\nAppHealth is the platform's last observed verdict on an app's ability to serve.\n\n```go\ntype AppSort = gen.AppSort\n```\nAppSort is a listApps ordering.\n\n```go\nconst (\n\tAppSortCreatedAt AppSort = gen.CreatedAt\n\tAppSortName      AppSort = gen.Name\n)\n```\n\n```go\ntype AppSourceType = gen.AppSourceType\n```\nAppSourceType selects the version creation path (\\`code\\` or \\`container\\`).\n\n```go\ntype AppSourceUpsert = gen.AppSourceUpsert\n```\nAppSourceUpsert selects the initial version creation path.\n\n```go\nfunc NewCodeAppSource(src CodeSourceUpsert) (AppSourceUpsert, error)\n```\nNewCodeAppSource builds an appSource for a code-based create or update.\n\n```go\nfunc NewContainerAppSource(src ContainerSource) (AppSourceUpsert, error)\n```\nNewContainerAppSource builds an appSource for a container-based create or update.\n\n```go\ntype AppStatus = gen.AppStatus\n```\nAppStatus is an app lifecycle status.\n\n```go\nconst (\n\tAppStatusActive       AppStatus = gen.AppStatusActive\n\tAppStatusDeleted      AppStatus = gen.AppStatusDeleted\n\tAppStatusDeleting     AppStatus = gen.AppStatusDeleting\n\tAppStatusFailed       AppStatus = gen.AppStatusFailed\n\tAppStatusInitializing AppStatus = gen.AppStatusInitializing\n\tAppStatusStopped      AppStatus = gen.AppStatusStopped\n\tAppStatusStopping     AppStatus = gen.AppStatusStopping\n)\n```\n\n```go\ntype AppUpdate = gen.AppUpdate\n```\nAppUpdate is the request body for updateApp.\n\n```go\ntype AppVolume = gen.AppVolume\n```\nAppVolume is a persistent node-local directory mounted into the application.\n\n```go\ntype Build = gen.Build\n```\nBuild is a code build or container validation for an app.\n\n```go\ntype BuildStatus = gen.BuildStatus\n```\nBuildStatus is a build lifecycle status.\n\n```go\nconst (\n\tBuildStatusBuilding BuildStatus = gen.BuildStatusBuilding\n\tBuildStatusFailed   BuildStatus = gen.BuildStatusFailed\n\tBuildStatusQueued   BuildStatus = gen.BuildStatusQueued\n\tBuildStatusReady    BuildStatus = gen.BuildStatusReady\n)\n```\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient talks to the Serverless control-plane REST API.\n\n```go\nfunc NewClient(apiKey, baseURL string, logger *slog.Logger) *Client\n```\nNewClient creates a Serverless API client for the given API key and base URL.\n\n```go\nfunc (c *Client) AttachAppSecret(ctx context.Context, appID string, body SecretAttach) error\n```\nAttachAppSecret records that an organization secret is attached to an app and rolls the live deployment so a running worker picks up the value.\n\n```go\nfunc (c *Client) CompleteSourceUpload(ctx context.Context, uploadID SourceUploadID) (*SourceUpload, error)\n```\nCompleteSourceUpload asks the API to verify the staged archive against the session declaration and returns the session in its settled state.\n\n```go\nfunc (c *Client) CreateApp(ctx context.Context, body AppCreate) (*App, error)\n```\nCreateApp creates a new app and starts its initial rollout.\n\n```go\nfunc (c *Client) CreateSecret(ctx context.Context, body SecretCreate) (*Secret, error)\n```\nCreateSecret creates an organization-scoped secret. The value is encrypted at rest; the response is metadata only.\n\n```go\nfunc (c *Client) CreateSourceUpload(ctx context.Context, body SourceUploadCreate) (*SourceUploadCreation, error)\n```\nCreateSourceUpload opens an upload session for appId, which need not exist yet, and returns it with a short-lived instruction for staging the archive.\n\n```go\nfunc (c *Client) DeleteApp(ctx context.Context, appID string) (*App, error)\n```\nDeleteApp accepts a soft delete and returns the app with status deleting. Router removal and worker drain are asynchronous.\n\n```go\nfunc (c *Client) DeleteAppEnvironmentVariable(ctx context.Context, appID, key string) error\n```\nDeleteAppEnvironmentVariable removes one plain-text environment variable from an app.\n\n```go\nfunc (c *Client) DeleteBuild(ctx context.Context, appID string, buildID uuid.UUID) error\n```\nDeleteBuild cancels a queued or running build (recorded as superseded) or deletes a terminal build that no live version still needs. Returns 409 while a live version still references a ready build.\n\n```go\nfunc (c *Client) DeleteSecret(ctx context.Context, name string) error\n```\nDeleteSecret soft-deletes an organization secret. Returns 409 while any app still attaches it.\n\n```go\nfunc (c *Client) DeleteSourceUpload(ctx context.Context, uploadID SourceUploadID) error\n```\nDeleteSourceUpload aborts an unconsumed session and removes its staging object. Repeating a successful abort is idempotent.\n\n```go\nfunc (c *Client) DeleteVersion(ctx context.Context, appID string, versionNumber int32) error\n```\nDeleteVersion deletes an unused version. Returns 409 while the version is active, is the app's only remaining version, has a non-stopped worker, is targeted by a live rollout, or the app is deleting.\n\n```go\nfunc (c *Client) DeployVersion(ctx context.Context, appID string, versionNumber int32) (*App, error)\n```\nDeployVersion activates a ready version by number. Worker rollout is asynchronous; the 202 App reflects the persisted intent (activeVersionId and status), not healthy workers. An older ready number is a rollback.\n\n```go\nfunc (c *Client) DetachAppSecret(ctx context.Context, appID, secretName string) error\n```\nDetachAppSecret removes a secret attachment from an app and rolls the live deployment so a running worker stops receiving the value. It does not delete the organization secret.\n\n```go\nfunc (c *Client) GetApp(ctx context.Context, appID string) (*App, error)\n```\nGetApp returns a single app by ID.\n\n```go\nfunc (c *Client) GetBuild(ctx context.Context, appID string, buildID uuid.UUID) (*Build, error)\n```\nGetBuild returns a single build by ID.\n\n```go\nfunc (c *Client) GetEndpoint(ctx context.Context, appID string, endpointID uuid.UUID) (*Endpoint, error)\n```\nGetEndpoint returns a single endpoint by ID.\n\n```go\nfunc (c *Client) GetLogEntries(ctx context.Context, queryID string, params GetLogEntriesParams) (LogEntryPage, error)\n```\nGetLogEntries returns one page of a named log query.\n\n```go\nfunc (c *Client) GetTask(ctx context.Context, appID, taskID string) (*Task, error)\n```\nGetTask returns a task by id.\n\n```go\nfunc (c *Client) GetUsageSummary(ctx context.Context, params *GetUsageSummaryParams) (*UsageSummary, error)\n```\nGetUsageSummary returns GPU time and spend for the authenticated organization over a half-open window, grouped by the requested dimensions. The API derives every figure on read; usage it cannot price fails the whole request rather than being left out of the totals.\n\n```go\nfunc (c *Client) GetVersion(ctx context.Context, appID string, versionNumber int32) (*Version, error)\n```\nGetVersion returns a single version by number.\n\n```go\nfunc (c *Client) GetWorker(ctx context.Context, appID string, workerID uuid.UUID) (*Worker, error)\n```\nGetWorker returns a single worker by ID (the Kubernetes pod UID).\n\n```go\nfunc (c *Client) InvokeAsync(ctx context.Context, appID, endpointPath, taskID string, body TaskPayload) (*Task, error)\n```\nInvokeAsync starts a task and returns the accepted (typically pending) task. taskID is the client-owned identifier; an empty value is replaced with a new UUID.\n\n```go\nfunc (c *Client) InvokeSync(ctx context.Context, appID, endpointPath, taskID string, body TaskPayload) (*Task, error)\n```\nInvokeSync starts a task and waits up to the platform wait window. A wait-window expiry is not a failure: the accepted task is returned so the caller can poll. Never resubmit.\n\n```go\nfunc (c *Client) ListAppEnvironmentVariables(ctx context.Context, appID string, params *ListAppEnvironmentVariablesParams) (Page[EnvironmentVariable], error)\n```\nListAppEnvironmentVariables returns a page of plain-text environment variables for an app. Values are included in the response.\n\n```go\nfunc (c *Client) ListAppErrors(ctx context.Context, appID string, params *ListAppErrorsParams) (Page[LogEntry], error)\n```\nListAppErrors returns one page of failed inference requests for an app.\n\n```go\nfunc (c *Client) ListAppEvents(ctx context.Context, appID string, params *ListAppEventsParams) (Page[AppEvent], error)\n```\nListAppEvents returns a page of deploy, scaling, audit, and error events for an app.\n\n```go\nfunc (c *Client) ListAppSecrets(ctx context.Context, appID string, params *ListAppSecretsParams) (Page[SecretAttachment], error)\n```\nListAppSecrets returns a page of secrets attached to an app.\n\n```go\nfunc (c *Client) ListApps(ctx context.Context, params *ListAppsParams) (Page[App], error)\n```\nListApps returns a page of apps for the authenticated organization.\n\n```go\nfunc (c *Client) ListBuilds(ctx context.Context, appID string, params *ListBuildsParams) (Page[Build], error)\n```\nListBuilds returns a page of builds for an app.\n\n```go\nfunc (c *Client) ListEndpoints(ctx context.Context, appID string, params *ListEndpointsParams) (Page[Endpoint], error)\n```\nListEndpoints returns a page of endpoints for an app.\n\n```go\nfunc (c *Client) ListGpuTypes(ctx context.Context) ([]GpuType, error)\n```\nListGpuTypes returns the catalog of supported GPU types and their pricing.\n\n```go\nfunc (c *Client) ListSecrets(ctx context.Context, params *ListSecretsParams) (Page[Secret], error)\n```\nListSecrets returns a page of organization secret metadata.\n\n```go\nfunc (c *Client) ListTasks(ctx context.Context, appID string, params *ListTasksParams) (Page[Task], error)\n```\nListTasks returns a page of tasks for an app.\n\n```go\nfunc (c *Client) ListUsageEvents(ctx context.Context, params *ListUsageEventsParams) (Page[UsageEvent], error)\n```\nListUsageEvents returns one newest-first page of worker state transitions. from and to bound occurredAt. An unknown appId selects an empty page.\n\n```go\nfunc (c *Client) ListVersions(ctx context.Context, appID string, params *ListVersionsParams) (Page[Version], error)\n```\nListVersions returns a page of versions for an app.\n\n```go\nfunc (c *Client) ListWorkers(ctx context.Context, appID string, params *ListWorkersParams) (Page[Worker], error)\n```\nListWorkers returns a page of workers for an app.\n\n```go\nfunc (c *Client) ResumeApp(ctx context.Context, appID string) (*App, error)\n```\nResumeApp accepts a resume and returns the app with status initializing. Worker start is asynchronous.\n\n```go\nfunc (c *Client) StageSourceArchive(ctx context.Context, transfer SourceUploadTransfer, archive []byte) error\n```\nStageSourceArchive sends the archive to the staging object the transfer instruction names.\n\nThe request is issued through the bare doer rather than the generated client: the URL carries its own signature, and the Authorization header the generated client attaches to every call would invalidate it. Only the headers the instruction lists are sent.\n\n```go\nfunc (c *Client) StopApp(ctx context.Context, appID string) (*App, error)\n```\nStopApp accepts a stop and returns the app with status stopping. Worker drain is asynchronous.\n\n```go\nfunc (c *Client) TailLogs(ctx context.Context, queryID, appID string, emit func(LogEntry) error) error\n```\nTailLogs follows a named log query for one app and hands every new entry to emit. It returns ErrTailEnded when the server closes the stream cleanly, a \\*TailStreamError when the server reports a failure, a \\*TailUnavailableError when a gateway answers before the stream opens, ctx.Err() when the caller stops, and any error emit returns.\n\n```go\nfunc (c *Client) UpdateApp(ctx context.Context, appID string, body AppUpdate) (*App, error)\n```\nUpdateApp patches an app in place. Omitted fields are left unchanged. appSource starts a build and records version N+1; name and configuration do not replace source.\n\n```go\nfunc (c *Client) UpdateAppEnvironmentVariable(ctx context.Context, appID, key string, body EnvironmentVariableUpdate) (*EnvironmentVariable, error)\n```\nUpdateAppEnvironmentVariable creates or replaces one plain-text environment variable on an app.\n\n```go\nfunc (c *Client) UpdateSecret(ctx context.Context, name string, body SecretUpdate) (*Secret, error)\n```\nUpdateSecret replaces the value of an existing organization secret and rolls every live deployment that attaches it.\n\n```go\nfunc (c *Client) WaitApp(ctx context.Context, appID string, interval time.Duration) (*App, error)\n```\nWaitApp polls getApp until the application leaves initializing/stopping. Active is success; failed, stopped, deleting, and deleted are also terminal so a create or redeploy wait cannot spin forever. The caller inspects Status.\n\n```go\nfunc (c *Client) WaitTask(ctx context.Context, appID, taskID string, interval time.Duration) (*Task, error)\n```\nWaitTask polls getTask until the task is completed or failed. Transient 404s are retried for taskNotFoundRetry; the invocation is never resubmitted.\n\n```go\ntype CodeSourceUpsert = gen.CodeSourceUpsert\n```\nCodeSourceUpsert is a code-based app source.\n\n```go\ntype CodebaseSource = gen.CodebaseSource\n```\nCodebaseSource is the zipped customer code payload.\n\n```go\ntype ContainerSource = gen.ContainerSource\n```\nContainerSource is a Dockerfile + container.yaml archive identified by sourceId.\n\n```go\ntype Cursor = gen.Cursor\n```\nCursor is an opaque pagination cursor.\n\n```go\ntype DeployRequest = gen.DeployRequest\n```\nDeployRequest is the request body for DeployVersion.\n\n```go\ntype Endpoint = gen.Endpoint\n```\nEndpoint is an app HTTP endpoint.\n\n```go\ntype EndpointRuntime = gen.EndpointRuntime\n```\nEndpointRuntime is latest-window traffic for one endpoint.\n\n```go\ntype EnvironmentVariable = gen.EnvironmentVariable\n```\nEnvironmentVariable is a plain-text app environment variable.\n\n```go\ntype EnvironmentVariableUpdate = gen.EnvironmentVariableUpdate\n```\nEnvironmentVariableUpdate is the request body for updateAppEnvironmentVariable.\n\n```go\ntype GetLogEntriesParams = gen.GetLogEntriesParams\n```\nGetLogEntriesParams narrows a log page: window, page size, cursor, sort, app and endpoint.\n\n```go\ntype GetUsageSummaryParams = gen.GetUsageSummaryParams\n```\nGetUsageSummaryParams are the query parameters of GET /v1/usage/summary.\n\n```go\ntype GpuType = gen.GpuType\n```\nGpuType is the public catalog entry for a supported GPU type.\n\n```go\ntype Limit = gen.Limit\n```\nLimit is a page size for cursor-paginated list endpoints.\n\n```go\ntype ListAppEnvironmentVariablesParams = gen.ListAppEnvironmentVariablesParams\n```\nListAppEnvironmentVariablesParams are optional filters for ListAppEnvironmentVariables.\n\n```go\ntype ListAppErrorsParams = gen.ListAppErrorsParams\n```\nListAppErrorsParams filters the request-error page for an app.\n\n```go\ntype ListAppErrorsParamsStatusClass = gen.ListAppErrorsParamsStatusClass\n```\nListAppErrorsParamsStatusClass filters listAppErrors by 4xx or 5xx.\n\n```go\ntype ListAppErrorsParamsWindow = gen.ListAppErrorsParamsWindow\n```\nListAppErrorsParamsWindow is the closed set of time windows listAppErrors accepts.\n\n```go\ntype ListAppEventsParams = gen.ListAppEventsParams\n```\nListAppEventsParams are optional filters for ListAppEvents.\n\n```go\ntype ListAppSecretsParams = gen.ListAppSecretsParams\n```\nListAppSecretsParams are optional filters for ListAppSecrets.\n\n```go\ntype ListAppsParams = gen.ListAppsParams\n```\nListAppsParams are optional filters for ListApps.\n\n```go\ntype ListBuildsParams = gen.ListBuildsParams\n```\nListBuildsParams are optional filters for ListBuilds.\n\n```go\ntype ListEndpointsParams = gen.ListEndpointsParams\n```\nListEndpointsParams are optional filters for ListEndpoints.\n\n```go\ntype ListSecretsParams = gen.ListSecretsParams\n```\nListSecretsParams are optional filters for ListSecrets.\n\n```go\ntype ListTasksParams = gen.ListTasksParams\n```\nListTasksParams are optional filters for ListTasks.\n\n```go\ntype ListUsageEventsParams = gen.ListUsageEventsParams\n```\nListUsageEventsParams are the query parameters of GET /v1/usage.\n\n```go\ntype ListVersionsParams = gen.ListVersionsParams\n```\nListVersionsParams are optional filters for ListVersions.\n\n```go\ntype ListWorkersParams = gen.ListWorkersParams\n```\nListWorkersParams are optional filters for ListWorkers.\n\n```go\ntype LogEntry = gen.LogEntry\n```\nLogEntry is one application log line.\n\n```go\ntype LogEntryPage = gen.LogEntryPage\n```\nLogEntryPage is one page of log entries in the requested sort order.\n\n```go\ntype LogSort = gen.LogSort\n```\nLogSort is the ordering of a log page.\n\n```go\nconst (\n\t// LogSortNewest lists newest first; nextCursor walks older.\n\tLogSortNewest LogSort = gen.Newest\n\t// LogSortOldest lists oldest first; nextCursor walks newer.\n\tLogSortOldest LogSort = gen.Oldest\n)\n```\n\n```go\ntype LogWindow = gen.GetLogEntriesParamsWindow\n```\nLogWindow is the closed set of time windows a log query accepts.\n\n```go\ntype MoneyAmount = gen.MoneyAmount\n```\nMoneyAmount is an exact decimal amount in a currency's major unit.\n\n```go\ntype Page[T any] struct {\n\tData       []T     `json:\"data\"`\n\tNextCursor *string `json:\"nextCursor,omitempty\"`\n}\n```\nPage is one page of results from a cursor-paginated list endpoint.\n\n```go\ntype Secret = gen.Secret\n```\nSecret is organization-scoped secret metadata. The encrypted value is never returned.\n\n```go\ntype SecretAttach = gen.SecretAttach\n```\nSecretAttach is the request body for attachAppSecret.\n\n```go\ntype SecretAttachment = gen.SecretAttachment\n```\nSecretAttachment is a secret attached to an app. The encrypted value is never returned.\n\n```go\ntype SecretCreate = gen.SecretCreate\n```\nSecretCreate is the request body for createSecret.\n\n```go\ntype SecretType = gen.SecretType\n```\nSecretType is the kind of organization secret.\n\n```go\nconst SecretTypeGeneric SecretType = gen.Generic\n```\nSecretTypeGeneric is the only supported secret type (environment-variable secrets).\n\n```go\ntype SecretUpdate = gen.SecretUpdate\n```\nSecretUpdate is the request body for updateSecret.\n\n```go\ntype SourceUpload = gen.SourceUpload\n```\nSourceUpload is one upload session for an app's source archive.\n\n```go\ntype SourceUploadCreate = gen.SourceUploadCreate\n```\nSourceUploadCreate declares the archive a session is opened for.\n\n```go\ntype SourceUploadCreation = gen.SourceUploadCreation\n```\nSourceUploadCreation is a new session plus the transfer instruction for it.\n\n```go\ntype SourceUploadID = gen.SourceUploadId\n```\nSourceUploadID identifies an upload session.\n\n```go\ntype SourceUploadState = gen.SourceUploadState\n```\nSourceUploadState is the lifecycle state of an upload session.\n\n```go\ntype SourceUploadTransfer = gen.SourceUploadTransfer\n```\nSourceUploadTransfer is the instruction for staging one archive.\n\n```go\ntype TailStreamError struct {\n\tDetail string\n}\n```\nTailStreamError is the server's \\`error\\` event: the stream is over and the detail says why.\n\n```go\nfunc (e *TailStreamError) Error() string\n```\n\n```go\ntype TailUnavailableError struct {\n\tStatusCode int\n\tErr        error\n}\n```\nTailUnavailableError reports that a gateway answered the tail request instead of the log store, so the stream never opened. No entry was delivered, which makes a reconnect free of repeated output. An app that has not written an entry yet answers this way: the store holds the request without writing its response headers, and the edge times it out before the first entry arrives.\n\n```go\nfunc (e *TailUnavailableError) Error() string\n```\n\n```go\nfunc (e *TailUnavailableError) Unwrap() error\n```\n\n```go\ntype Task = gen.Task\n```\nTask is a serverless invocation.\n\n```go\ntype TaskPayload = map[string]any\n```\nTaskPayload is the JSON object forwarded to an endpoint handler. It is the TaskInvocation.payload member, not the request body itself.\n\n```go\ntype TaskStatus = gen.TaskStatus\n```\nTaskStatus is a task lifecycle status.\n\n```go\nconst (\n\tTaskStatusPending   TaskStatus = gen.TaskStatusPending\n\tTaskStatusCompleted TaskStatus = gen.TaskStatusCompleted\n\tTaskStatusFailed    TaskStatus = gen.TaskStatusFailed\n)\n```\n\n```go\ntype UsageBucket = gen.UsageBucket\n```\nUsageBucket is the usage that fell into one grouping key.\n\n```go\ntype UsageCoverage = gen.UsageCoverage\n```\nUsageCoverage is which commercial capacity paid for a span of GPU time.\n\n```go\ntype UsageDimension = gen.UsageDimension\n```\nUsageDimension is one grouping a usage summary can be aggregated by.\n\n```go\ntype UsageEvent = gen.UsageEvent\n```\nUsageEvent is one worker state transition in the billing ledger.\n\n```go\ntype UsageSummary = gen.UsageSummary\n```\nUsageSummary is GPU time and spend aggregated over one half-open window.\n\n```go\ntype Version = gen.Version\n```\nVersion is a deployed application version.\n\n```go\ntype Worker = gen.Worker\n```\nWorker is a runtime worker instance.\n\n```go\ntype WorkerConfig = gen.WorkerConfig\n```\nWorkerConfig is the live worker configuration on an app.\n\n```go\ntype WorkerConfigCreate = gen.WorkerConfigCreate\n```\nWorkerConfigCreate is the worker configuration supplied at create time.\n\n```go\ntype WorkerConfigPatch = gen.WorkerConfigPatch\n```\nWorkerConfigPatch is a partial worker configuration for updateApp.\n\n```go\ntype WorkerStateFilter = gen.WorkerStateFilter\n```\nWorkerStateFilter selects whether listWorkers includes terminal stopped rows.\n\n```go\nconst (\n\tWorkerStateFilterAll  WorkerStateFilter = gen.WorkerStateFilterAll\n\tWorkerStateFilterLive WorkerStateFilter = gen.WorkerStateFilterLive\n)\n```\n\n```go\ntype WorkerStatus = gen.WorkerStatus\n```\nWorkerStatus is a worker lifecycle status.\n\n","path":"github.com/runware/runware-cli/internal/api/serverless","name":"serverless","synopsis":"Package serverless is a thin wrapper around the OpenAPI-generated client for the Runware Serverless control-plane API (api.serverless.runware.ai).","isRedistributable":true}
