Skip to main content

Type Alias: CortexFunction

type CortexFunction: components["schemas"]["Function"];

Properties

PropertyTypeRequiredDescription
idstringYesFunction UUID
tenantIdstringYesTenant ID
projectIdstringYesProject ID
namestringYesFunction name (example: "process-webhook")
slugstringYesURL-friendly identifier (example: "process-webhook")
descriptionstringNoFunction description
draftCodestringYesDraft source code
draftEntrypointstringYesEntrypoint function name (example: "handler")
runtime"nodejs20" | "nodejs22"YesRuntime environment
authMode"public" | "api_key" | "signed"YesAuthentication mode
timeoutnumberYesExecution timeout in milliseconds (example: 30000)
memorynumberYesMemory limit in MB (example: 256)
envVarsFunctionEnvVar[]YesEnvironment variables (secrets masked)
publishedVersionIdstringNoPublished version ID (if published)
status"draft" | "published"YesFunction status: draft (not published) or published (available in runtime)
activeDeploymentunknownNoActive deployment info (deprecated - use status field instead)
createdAtstringYesCreation timestamp
updatedAtstringYesLast update timestamp

Exported as CortexFunction to avoid shadowing the global Function type

Defined in

4Players/cortex-typescript-sdk/src/resources/functions.ts:31