FunctionVersion

The `FunctionVersion` entity.

Definition

TypeScript
interface FunctionVersion {
  id: string;
  functionId: string;
  name: string;
  parentId: string | null;
  inputSchemaId: string;
  outputSchemaId: string;
  files: Array<{ id: string; name: string; source: string; createdAt: string }>;
  createdAt: string;
  updatedAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
functionIdstringrequired — Function this version belongs to.
namestringrequired — Version label (e.g. 'v1', 'experiment').
parentIdstring | nullrequired — Version this one was forked from; null for the initial version.
inputSchemaIdstringrequired — Schema enforced on function input.
outputSchemaIdstringrequired — Schema the function is expected to produce.
filesArray<{ id: string; name: string; source: string; createdAt: string; }>required — Source files captured at the time this version was created. The runtime bundler resolves any package.json deps and compiles TS/JS to a Worker Loader bundle on demand.
createdAtstringreadonly required — ISO-8601 timestamp of creation.
updatedAtstringreadonly required — ISO-8601 timestamp of the last update.