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" | "participant"YesAuthentication mode: public (none), api_key (a Cortex API key), signed (HMAC like webhooks) or participant (a participant token — the function receives the verified identity as event.auth)
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​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/functions.ts:31