Defines a function, its source, and its execution settings.
import { defineFunction } from '@rippling/rippling-sdk';
Properties
| Property | Required | Type | Description |
|---|---|---|---|
apiName | Required | string | Unique identifier for this function (e.g. |
description | Required | null | string | Human-readable description of what this function does. |
name | Required | string | Display name shown in the Rippling UI. |
allowedDomains | Optional | string[] | Outbound domain allowlist. Requests to domains not in this list will be blocked. Documented default: |
code | Optional | string | TypeScript handler source code. Must export an Documented default: |
dependencies | Optional | Record<string, string> | NPM package dependencies as a Documented default: |
deploymentOptions | Optional | Record<string, any> | Raw deployment options object. Documented default: |
editorGroup | Optional | null | DefinedGroup | — |
input | Optional | ValueParser<TInput> | — |
isAsync | Optional | boolean | Whether this function runs asynchronously (fire-and-forget). Documented default: |
output | Optional | ValueParser<TOutput> | — |
runnerGroup | Optional | null | DefinedGroup | Embedded permission groups. Omit to preserve existing groups or use backend defaults on creation. |
settingDependencies | Optional | readonly (string | DefinedCustomSetting)[] | Setting definitions to include in the manifest, or API names of existing settings. Composer currently supports declaring these on creation, but not changing an existing Function's list. |
source | Optional | URL | Handler source file read unchanged by project export. Importing the definition performs no file I/O. |
viewerGroup | Optional | null | DefinedGroup | — |
TypeScript signature
defineFunction<TInput = unknown, TOutput = unknown>(props: DefinedFunctionProps<TInput, TOutput>): DefinedFunction<TInput, TOutput>;
Returns
DefinedFunction<TInput, TOutput>
Availability
| Capability | Support |
|---|---|
| Pull into a project | Supported |
| Runtime operations | Available with an authenticated SDK client |