Core Concepts

These are the main concepts used throughout the current product and API.

Concept Meaning

Tenant

The authenticated workspace boundary used for authorization and product limits.

Project

The unit that owns functions, cloud integrations, storage config, and deployment state.

Function

A saved Dart function record, usually created in draft state before deployment.

Trigger

The execution style selected in the editor. The current trigger catalog is returned by GET /api/v1/functions/trigger-types.

Runtime

The selected Dart SDK version for the function. New drafts can only use versions returned in GET /api/v1/runtimes under supported.

Integration

The project-scoped cloud identity and storage configuration for Azure, AWS, or GCP.

Artifact

An uploaded source file such as main.dart, Dockerfile, or pubspec.yaml.

Deployment

An async lifecycle row that moves through queued, running, deploying, succeeded, failed, or undeploy states.

Deployment event

An append-only event entry that explains what happened during deployment or undeploy.

How The Pieces Fit Together

  1. A user authenticates and lands inside a tenant workspace.

  2. The user creates or selects a project.

  3. The user uploads artifacts and saves a draft function.

  4. The project connects the target cloud provider.

  5. The backend validates runtime and artifact contracts.

  6. A deployment row is queued and executed by the runner.

  7. The frontend polls deployment status and events until a terminal state.

Storage And Runtime Separation

The saved function record and the deployment artifact source are related but not identical:

  • the function record stores authoring metadata

  • uploads stage concrete files in the connected storage provider

  • the deployment request should pass explicit artifact sources instead of assuming the function row is the only source of truth

Runtime Lifecycle

Runtime support is not hardcoded in the UI. The backend serves a lifecycle catalog that distinguishes:

  • supported

  • deprecating

  • disabled

That catalog drives draft selection, deploy validation, and warning text.