Type Alias: CortexFunction
Properties
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Function UUID |
tenantId | string | Yes | Tenant ID |
projectId | string | Yes | Project ID |
name | string | Yes | Function name (example: "process-webhook") |
slug | string | Yes | URL-friendly identifier (example: "process-webhook") |
description | string | No | Function description |
draftCode | string | Yes | Draft source code |
draftEntrypoint | string | Yes | Entrypoint function name (example: "handler") |
runtime | "nodejs20" | "nodejs22" | Yes | Runtime environment |
authMode | "public" | "api_key" | "signed" | Yes | Authentication mode |
timeout | number | Yes | Execution timeout in milliseconds (example: 30000) |
memory | number | Yes | Memory limit in MB (example: 256) |
envVars | FunctionEnvVar[] | Yes | Environment variables (secrets masked) |
publishedVersionId | string | No | Published version ID (if published) |
status | "draft" | "published" | Yes | Function status: draft (not published) or published (available in runtime) |
activeDeployment | unknown | No | Active deployment info (deprecated - use status field instead) |
createdAt | string | Yes | Creation timestamp |
updatedAt | string | Yes | Last update timestamp |
Exported as CortexFunction to avoid shadowing the global Function type
Defined in
4Players/cortex-typescript-sdk/src/resources/functions.ts:31