**@refoldai/refold-js** *** # Refold Javascript SDK Refold frontend SDK. ## Install #### npm ```bash npm install @refoldai/refold-js ``` #### yarn ```bash yarn add @refoldai/refold-js ``` ## Usage ### Include #### Browser ```html ``` #### Node ```js import { Refold } from "@refoldai/refold-js"; // or, if you're using CommonJS const { Refold } = require("@refoldai/refold-js"); ``` ### Initialize ```js // initialize with token const refold = new Refold({ // the token you generate for linked accounts using the Refold backend SDK token: "REFOLD_SESSION_TOKEN", // OPTIONAL: set custom base url for all API requests. only useful if you are hosting Refold on premise. baseUrl: "https://refold.example.com/backend", }); // Or, initialize without token const refold = new Refold(); // and you can set the token later. refold.token = "REFOLD_SESSION_TOKEN"; ``` # Documentation - You can read the [SDK documentation here](https://gocobalt.github.io/refold-js). - [`llms.txt`](https://gocobalt.github.io/refold-js/llms.txt) This documentation is also available in [llms.txt](https://llmstxt.org) format, which is a simple markdown standard that LLMs can consume easily. ## Enumerations ### AuthStatus Defined in: [refold.ts:10](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L10) #### Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `Active` | `"active"` | [refold.ts:11](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L11) | | `Expired` | `"expired"` | [refold.ts:12](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L12) | *** ### AuthType Defined in: [refold.ts:5](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L5) Refold Frontend SDK #### Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `KeyBased` | `"keybased"` | [refold.ts:7](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L7) | | `OAuth2` | `"oauth2"` | [refold.ts:6](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L6) | ## Classes ### Refold Defined in: [refold.ts:364](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L364) #### Constructors ##### Constructor > **new Refold**(`options?`): [`Refold`](#refold) Defined in: [refold.ts:374](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L374) Refold Frontend SDK ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`RefoldOptions`](#refoldoptions) | The options to configure the Refold SDK. | ###### Returns [`Refold`](#refold) #### Properties | Property | Modifier | Type | Defined in | | ------ | ------ | ------ | ------ | | `token` | `public` | `string` | [refold.ts:366](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L366) | #### Methods ##### config() > **config**(`payload`): `Promise`\<[`Config`](#config-1)\> Defined in: [refold.ts:638](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L638) Returns the specified config, or creates one if it doesn't exist. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `payload` | [`ConfigPayload`](#configpayload) | The payload object for config. | ###### Returns `Promise`\<[`Config`](#config-1)\> The specified config. ##### connect() > **connect**(`params`): `Promise`\<`boolean`\> Defined in: [refold.ts:591](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L591) Connects the specified application using the provided authentication type and optional auth data. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `params` | \{ `payload?`: `Record`\<`string`, `string`\>; `slug`: `string`; `type?`: [`AuthType`](#authtype); \} | The parameters for connecting the application. | | `params.payload?` | `Record`\<`string`, `string`\> | key-value pairs of authentication data required for the specified auth type. | | `params.slug` | `string` | The application slug. | | `params.type?` | [`AuthType`](#authtype) | The authentication type to use. If not provided, it defaults to `keybased` if payload is provided, otherwise `oauth2`. | ###### Returns `Promise`\<`boolean`\> A promise that resolves to true if the connection was successful, otherwise false. ###### Throws Throws an error if the authentication type is invalid or the connection fails. ##### createWorkflow() > **createWorkflow**(`params`): `Promise`\<[`PublicWorkflow`](#publicworkflow)\> Defined in: [refold.ts:896](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L896) Create a public workflow for the linked account. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `params` | [`PublicWorkflowPayload`](#publicworkflowpayload) | - | ###### Returns `Promise`\<[`PublicWorkflow`](#publicworkflow)\> The created public workflow. ##### deleteConfig() > **deleteConfig**(`slug`, `configId?`): `Promise`\<`unknown`\> Defined in: [refold.ts:731](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L731) Delete the specified config. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `slug` | `string` | The application slug. | | `configId?` | `string` | The unique ID of the config. | ###### Returns `Promise`\<`unknown`\> ##### deleteConfigField() > **deleteConfigField**(`slug`, `fieldId`, `workflowId?`): `Promise`\<`unknown`\> Defined in: [refold.ts:808](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L808) Delete the specified config field value. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `slug` | `string` | The application slug. | | `fieldId` | `string` | The unique ID of the field. | | `workflowId?` | `string` | The unique ID of the workflow. | ###### Returns `Promise`\<`unknown`\> ##### deleteWorkflow() > **deleteWorkflow**(`workflowId`): `Promise`\<`unknown`\> Defined in: [refold.ts:924](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L924) Delete the specified public workflow. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `workflowId` | `string` | The workflow ID. | ###### Returns `Promise`\<`unknown`\> ##### disconnect() > **disconnect**(`slug`, `type?`): `Promise`\<`unknown`\> Defined in: [refold.ts:617](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L617) Disconnect the specified application and remove any associated data from Refold. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `slug` | `string` | The application slug. | | `type?` | [`AuthType`](#authtype) | The authentication type to use. If not provided, it'll remove all the connected accounts. | ###### Returns `Promise`\<`unknown`\> ##### executeWorkflow() > **executeWorkflow**(`options`): `Promise`\<`unknown`\> Defined in: [refold.ts:968](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L968) Execute the specified public workflow. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`ExecuteWorkflowPayload`](#executeworkflowpayload) | The execution payload. | ###### Returns `Promise`\<`unknown`\> ##### getApp() Returns the application details for the specified application, provided the application is enabled in Refold. If no application is specified, it returns all the enabled applications. ###### Param The application slug. ###### Call Signature > **getApp**(): `Promise`\<[`Application`](#application)[]\> Defined in: [refold.ts:434](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L434) Returns the list of enabled applications and their details. ###### Returns `Promise`\<[`Application`](#application)[]\> The list of applications. ###### Call Signature > **getApp**(`slug`): `Promise`\<[`Application`](#application)\> Defined in: [refold.ts:441](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L441) Returns the application details for the specified application, provided the application is enabled in Refold. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `slug` | `string` | The application slug. | ###### Returns `Promise`\<[`Application`](#application)\> The application details. ##### getApps() > **getApps**(): `Promise`\<[`Application`](#application)[]\> Defined in: [refold.ts:469](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L469) Returns all the enabled apps. ###### Returns `Promise`\<[`Application`](#application)[]\> The list of applications. ##### getConfig() > **getConfig**(`slug`, `configId?`, `excludeOptions?`): `Promise`\<[`Config`](#config-1)\> Defined in: [refold.ts:686](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L686) Returns the specified config. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `slug` | `string` | The application slug. | | `configId?` | `string` | The unique ID of the config. | | `excludeOptions?` | `boolean` | Whether to exclude the options from the fields in the response. | ###### Returns `Promise`\<[`Config`](#config-1)\> The specified config. ##### getConfigField() > **getConfigField**(`slug`, `fieldId`, `workflowId?`, `payload?`): `Promise`\<[`Config`](#config-1)\> Defined in: [refold.ts:755](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L755) Returns the specified field of the config. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `slug` | `string` | The application slug. | | `fieldId` | `string` | The unique ID of the field. | | `workflowId?` | `string` | The unique ID of the workflow. | | `payload?` | `Record`\<`string`, `unknown`\> | The payload to be sent in the request body. | ###### Returns `Promise`\<[`Config`](#config-1)\> The specified config field. ##### getConfigs() > **getConfigs**(`slug`): `Promise`\<`object`[]\> Defined in: [refold.ts:664](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L664) Returns the configs created for the specified application. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `slug` | `string` | The application slug. | ###### Returns `Promise`\<`object`[]\> The configs created for the specified application. ##### getExecution() > **getExecution**(`executionId`): `Promise`\<[`Execution`](#execution)\> Defined in: [refold.ts:1028](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L1028) Returns the specified workflow execution log. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `executionId` | `string` | The execution ID. | ###### Returns `Promise`\<[`Execution`](#execution)\> The specified execution log. ##### getExecutions() > **getExecutions**(`params?`): `Promise`\<`PaginatedResponse`\<[`Execution`](#execution)\>\> Defined in: [refold.ts:1002](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L1002) Returns the workflow execution logs for the linked account. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `params?` | [`GetExecutionsParams`](#getexecutionsparams) | - | ###### Returns `Promise`\<`PaginatedResponse`\<[`Execution`](#execution)\>\> The paginated workflow execution logs. ##### getFieldOptions() > **getFieldOptions**(`lhs`, `slug`, `fieldId`, `workflowId?`): `Promise`\<[`RuleOptions`](#ruleoptions)\> Defined in: [refold.ts:833](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L833) Returns the options for the specified field. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `lhs` | `string` | The selected value of the lhs field. | | `slug` | `string` | The application slug. | | `fieldId` | `string` | The unique ID of the field. | | `workflowId?` | `string` | The unique ID of the workflow, if this is a workflow field. | ###### Returns `Promise`\<[`RuleOptions`](#ruleoptions)\> The specified rule field's options. ##### getWorkflowPayload() > **getWorkflowPayload**(`workflowId`): `Promise`\<[`WorkflowPayloadResponse`](#workflowpayloadresponse)\> Defined in: [refold.ts:945](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L945) Returns the execution payload for the specified public workflow. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `workflowId` | `string` | The workflow ID. | ###### Returns `Promise`\<[`WorkflowPayloadResponse`](#workflowpayloadresponse)\> The workflow payload response. ##### getWorkflows() > **getWorkflows**(`params?`): `Promise`\<`PaginatedResponse`\<[`PublicWorkflow`](#publicworkflow)\>\> Defined in: [refold.ts:866](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L866) Returns the private workflows for the specified application. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `params` | [`PublicWorkflowsPayload`](#publicworkflowspayload) | - | ###### Returns `Promise`\<`PaginatedResponse`\<[`PublicWorkflow`](#publicworkflow)\>\> ##### updateConfig() > **updateConfig**(`payload`): `Promise`\<[`Config`](#config-1)\> Defined in: [refold.ts:707](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L707) Update the specified config. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `payload` | [`UpdateConfigPayload`](#updateconfigpayload) | The update payload. | ###### Returns `Promise`\<[`Config`](#config-1)\> The specified config. ##### updateConfigField() > **updateConfigField**(`slug`, `fieldId`, `value`, `workflowId?`): `Promise`\<[`Config`](#config-1)\> Defined in: [refold.ts:782](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L782) Update the specified config field value. ###### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `slug` | `string` | The application slug. | | `fieldId` | `string` | The unique ID of the field. | | `value` | `string` \| `number` \| `boolean` \| `null` | The new value for the field. | | `workflowId?` | `string` | The unique ID of the workflow. | ###### Returns `Promise`\<[`Config`](#config-1)\> The updated config field. ## Interfaces ### Application Defined in: [refold.ts:16](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L16) An application in Refold. #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `app_id` | `string` | Application ID | [refold.ts:18](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L18) | | ~~`auth_input_map?`~~ | [`InputField`](#inputfield)[] | The fields required from the user to connect the application (for `keybased` auth type). **Deprecated** Check `auth_type_options` for multiple auth types support. | [refold.ts:69](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L69) | | ~~`auth_type`~~ | `"oauth2"` \| `"keybased"` | The type of auth used by application. **Deprecated** Check `auth_type_options` and `connected_accounts` for multiple auth types support. | [refold.ts:54](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L54) | | `auth_type_options?` | `object` | The supported auth types for the application, and the fields required from the user to connect the application. | [refold.ts:35](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L35) | | `auth_type_options.keybased` | [`InputField`](#inputfield)[] | - | | | `auth_type_options.oauth2` | [`InputField`](#inputfield)[] | - | | | ~~`connected?`~~ | `boolean` | Whether the user has connected the application. **Deprecated** Check `connected_accounts` for multiple auth types support. | [refold.ts:59](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L59) | | `connected_accounts?` | `object`[] | The list of connected accounts for this application | [refold.ts:40](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L40) | | `description` | `string` | The application description. | [refold.ts:22](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L22) | | `icon` | `string` | The application icon. | [refold.ts:24](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L24) | | `name` | `string` | The application name. | [refold.ts:20](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L20) | | ~~`reauth_required?`~~ | `boolean` | Whether the connection has expired and re-auth is required. **Deprecated** Check `connected_accounts` for multiple auth types support. | [refold.ts:64](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L64) | | `slug` | `string` | The application slug. | [refold.ts:31](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L31) | | `tags?` | `string`[] | The categories/tags for the application. | [refold.ts:33](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L33) | | ~~`type`~~ | `string` | **Deprecated** Use `slug` instead. The application slug for native apps and `custom` for custom apps. | [refold.ts:29](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L29) | *** ### Config Defined in: [refold.ts:250](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L250) #### Properties | Property | Type | Defined in | | ------ | ------ | ------ | | `config_id?` | `string` | [refold.ts:252](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L252) | | `field_errors?` | `object`[] | [refold.ts:255](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L255) | | `fields?` | [`ConfigField`](#configfield)[] | [refold.ts:253](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L253) | | `slug` | `string` | [refold.ts:251](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L251) | | `workflows?` | [`ConfigWorkflow`](#configworkflow)[] | [refold.ts:254](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L254) | *** ### ConfigField Defined in: [refold.ts:265](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L265) #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `associated_page?` | `string` | The page this field is associated with. | [refold.ts:287](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L287) | | `field_type` | `string` | - | [refold.ts:268](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L268) | | `help_text?` | `string` | The help text for the field. | [refold.ts:285](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L285) | | `hidden?` | `boolean` | - | [refold.ts:280](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L280) | | `id` | `string` | - | [refold.ts:266](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L266) | | `labels?` | `object`[] | - | [refold.ts:274](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L274) | | `multiple?` | `boolean` | - | [refold.ts:278](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L278) | | `name` | `string` | - | [refold.ts:267](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L267) | | `options?` | `object`[] | - | [refold.ts:269](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L269) | | `parent?` | `string` | - | [refold.ts:273](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L273) | | `placeholder?` | `string` | The placeholder for the field. | [refold.ts:283](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L283) | | `required?` | `boolean` | - | [refold.ts:279](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L279) | | `value?` | `any` | - | [refold.ts:281](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L281) | *** ### ConfigPayload Defined in: [refold.ts:96](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L96) The payload object for config. #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `config_id?` | `string` | Unique ID for the config. | [refold.ts:100](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L100) | | `labels?` | [`Label`](#label-1)[] | The dynamic label mappings. | [refold.ts:102](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L102) | | `slug` | `string` | The application slug. | [refold.ts:98](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L98) | *** ### ConfigWorkflow Defined in: [refold.ts:290](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L290) #### Properties | Property | Type | Defined in | | ------ | ------ | ------ | | `description?` | `string` | [refold.ts:293](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L293) | | `enabled` | `boolean` | [refold.ts:294](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L294) | | `fields?` | [`ConfigField`](#configfield)[] | [refold.ts:295](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L295) | | `id` | `string` | [refold.ts:291](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L291) | | `name` | `string` | [refold.ts:292](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L292) | *** ### ExecuteWorkflowPayload Defined in: [refold.ts:304](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L304) #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `payload?` | `Record`\<`string`, `any`\> | The payload to execute the workflow. | [refold.ts:310](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L310) | | `slug?` | `string` | The application's slug this workflow belongs to. | [refold.ts:308](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L308) | | `sync_execution?` | `boolean` | Whether to execute the workflow synchronously. | [refold.ts:312](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L312) | | `worklfow` | `string` | The workflow id or alias. | [refold.ts:306](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L306) | *** ### Execution Defined in: [refold.ts:315](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L315) #### Properties | Property | Type | Defined in | | ------ | ------ | ------ | | `_id` | `string` | [refold.ts:316](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L316) | | `associated_application` | `object` | [refold.ts:320](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L320) | | `associated_application._id` | `string` | [refold.ts:321](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L321) | | `associated_application.icon?` | `string` | [refold.ts:323](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L323) | | `associated_application.name` | `string` | [refold.ts:322](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L322) | | `associated_event_id` | `string` | [refold.ts:344](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L344) | | `associated_trigger_application` | `object` | [refold.ts:330](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L330) | | `associated_trigger_application._id` | `string` | [refold.ts:331](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L331) | | `associated_trigger_application.app_type?` | `string` | [refold.ts:334](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L334) | | `associated_trigger_application.icon?` | `string` | [refold.ts:333](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L333) | | `associated_trigger_application.name` | `string` | [refold.ts:332](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L332) | | `associated_trigger_application.origin_trigger` | `object` | [refold.ts:335](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L335) | | `associated_trigger_application.origin_trigger._id` | `string` | [refold.ts:336](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L336) | | `associated_trigger_application.origin_trigger.name` | `string` | [refold.ts:337](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L337) | | `associated_workflow` | `object` | [refold.ts:326](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L326) | | `associated_workflow._id` | `string` | [refold.ts:327](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L327) | | `associated_workflow.name` | `string` | [refold.ts:328](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L328) | | `completion_percentage?` | `number` | [refold.ts:347](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L347) | | `config_id` | `string` | [refold.ts:343](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L343) | | `createdAt` | `string` | [refold.ts:359](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L359) | | `custom_application_id?` | `string` | [refold.ts:346](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L346) | | `custom_trigger_id?` | `string` | [refold.ts:345](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L345) | | `environment` | `"test"` \| `"production"` | [refold.ts:342](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L342) | | `id?` | `string` | [refold.ts:317](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L317) | | `linked_account_id` | `string` | [refold.ts:341](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L341) | | `name` | `string` | [refold.ts:318](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L318) | | `nodes?` | `object`[] | [refold.ts:348](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L348) | | `org_id` | `string` | [refold.ts:319](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L319) | | `status` | [`ExecutionStatus`](#executionstatus-1) | [refold.ts:325](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L325) | | `trigger_application_event?` | `string` | [refold.ts:340](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L340) | *** ### ExecutionFilters Defined in: [refold.ts:219](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L219) Filters for narrowing down the list of workflow executions. #### Extended by - [`GetExecutionsParams`](#getexecutionsparams) #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `end_date?` | `string` | Filter executions that started on or before this ISO 8601 date string. | [refold.ts:229](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L229) | | `execution_source?` | [`ExecutionSource`](#executionsource) | Filter by the trigger source that initiated the execution. | [refold.ts:233](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L233) | | `execution_type?` | [`ExecutionType`](#executiontype) | Filter by how the execution was invoked — synchronously or asynchronously. | [refold.ts:231](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L231) | | `start_date?` | `string` | Filter executions that started on or after this ISO 8601 date string. | [refold.ts:227](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L227) | | `status?` | [`ExecutionStatus`](#executionstatus-1) | Filter executions by their current status. | [refold.ts:221](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L221) | | `workflow_id?` | `string` | Filter executions by workflow ID. | [refold.ts:225](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L225) | | `workflow_name?` | `string` | Filter executions by workflow name (partial match). | [refold.ts:223](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L223) | *** ### GetExecutionsParams Defined in: [refold.ts:237](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L237) Parameters for filtering and paginating the list of workflow executions. #### Extends - `PaginationProps`.[`ExecutionFilters`](#executionfilters) #### Indexable > \[`key`: `string`\]: `string` \| `number` \| `undefined` Any additional filter keys supported by the API. #### Properties | Property | Type | Description | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | | `end_date?` | `string` | Filter executions that started on or before this ISO 8601 date string. | [`ExecutionFilters`](#executionfilters).[`end_date`](#end_date) | [refold.ts:229](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L229) | | `execution_source?` | [`ExecutionSource`](#executionsource) | Filter by the trigger source that initiated the execution. | [`ExecutionFilters`](#executionfilters).[`execution_source`](#execution_source) | [refold.ts:233](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L233) | | `execution_type?` | [`ExecutionType`](#executiontype) | Filter by how the execution was invoked — synchronously or asynchronously. | [`ExecutionFilters`](#executionfilters).[`execution_type`](#execution_type) | [refold.ts:231](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L231) | | `limit?` | `number` | - | `PaginationProps.limit` | [refold.ts:208](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L208) | | `page?` | `number` | - | `PaginationProps.page` | [refold.ts:207](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L207) | | `start_date?` | `string` | Filter executions that started on or after this ISO 8601 date string. | [`ExecutionFilters`](#executionfilters).[`start_date`](#start_date) | [refold.ts:227](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L227) | | `status?` | [`ExecutionStatus`](#executionstatus-1) | Filter executions by their current status. | [`ExecutionFilters`](#executionfilters).[`status`](#status-1) | [refold.ts:221](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L221) | | `workflow_id?` | `string` | Filter executions by workflow ID. | [`ExecutionFilters`](#executionfilters).[`workflow_id`](#workflow_id) | [refold.ts:225](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L225) | | `workflow_name?` | `string` | Filter executions by workflow name (partial match). | [`ExecutionFilters`](#executionfilters).[`workflow_name`](#workflow_name) | [refold.ts:223](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L223) | *** ### InputField Defined in: [refold.ts:73](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L73) An Input field to take input from the user. #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `help_text?` | `string` | The help text for the field. | [refold.ts:87](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L87) | | `label` | `string` | The label of the field. | [refold.ts:85](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L85) | | `multiple?` | `boolean` | Whether the field accepts multiple values. | [refold.ts:81](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L81) | | `name` | `string` | Key name of the field. | [refold.ts:75](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L75) | | `options?` | `object`[] | The options for the field. | [refold.ts:89](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L89) | | `placeholder` | `string` | The placeholder of the field. | [refold.ts:83](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L83) | | `required` | `boolean` | Whether the field is required. | [refold.ts:79](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L79) | | `type` | `string` | Input type of the field. | [refold.ts:77](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L77) | *** ### Label Defined in: [refold.ts:106](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L106) Label Mapping #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `name` | `string` | The label name. | [refold.ts:108](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L108) | | `value` | `string` \| `number` \| `boolean` | The label value. | [refold.ts:110](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L110) | *** ### PublicWorkflow Defined in: [refold.ts:163](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L163) A public workflow in Refold. #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `_id` | `string` | The workflow ID. | [refold.ts:165](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L165) | | `createdAt` | `string` | The workflow created at. | [refold.ts:173](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L173) | | `description?` | `string` | The workflow description. | [refold.ts:169](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L169) | | `name` | `string` | The workflow name. | [refold.ts:167](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L167) | | `published` | `boolean` | Whether the workflow is published. | [refold.ts:177](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L177) | | `slug?` | `string` | The application's slug in which this workflow exists. | [refold.ts:171](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L171) | | `updatedAt` | `string` | The workflow updated at. | [refold.ts:175](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L175) | *** ### PublicWorkflowPayload Defined in: [refold.ts:181](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L181) The payload for creating a public workflow for the linked account. #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `description?` | `string` | The workflow description. | [refold.ts:185](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L185) | | `name` | `string` | The workflow name. | [refold.ts:183](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L183) | | `slug?` | `string` | The application slug in which this workflow should be created. | [refold.ts:187](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L187) | *** ### PublicWorkflowsPayload Defined in: [refold.ts:191](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L191) Parameters for filtering and paginating the list of workflows. #### Extends - `PaginationProps` #### Indexable > \[`key`: `string`\]: `string` \| `number` \| `boolean` \| `undefined` Any additional filter keys supported by the API. #### Properties | Property | Type | Description | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | | `end_date?` | `string` | Filter workflows created on or before this ISO 8601 date string. | - | [refold.ts:199](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L199) | | `limit?` | `number` | - | `PaginationProps.limit` | [refold.ts:208](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L208) | | `name?` | `string` | Filter workflows by name (partial match). | - | [refold.ts:195](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L195) | | `page?` | `number` | - | `PaginationProps.page` | [refold.ts:207](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L207) | | `published?` | `boolean` | Filter by workflow published status. `true` returns only published workflows, `false` returns only drafts. | - | [refold.ts:201](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L201) | | `slug?` | `string` | Filter workflows by the application slug. | - | [refold.ts:193](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L193) | | `start_date?` | `string` | Filter workflows created on or after this ISO 8601 date string. | - | [refold.ts:197](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L197) | *** ### RefoldOptions Defined in: [refold.ts:135](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L135) #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `baseUrl?` | `string` | The base URL of the Refold API. You don't need to set this. | [refold.ts:137](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L137) | | `token?` | `string` | The session token. | [refold.ts:139](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L139) | *** ### RuleOptions Defined in: [refold.ts:142](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L142) #### Properties | Property | Type | Defined in | | ------ | ------ | ------ | | `conditional_code_stdout?` | `string`[] | [refold.ts:155](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L155) | | `error?` | `object` | [refold.ts:156](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L156) | | `error.message?` | `string` | [refold.ts:157](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L157) | | `error.stack?` | `string` | [refold.ts:158](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L158) | | `rule_column` | `object` | [refold.ts:143](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L143) | | `rule_column.operator` | `object` | [refold.ts:149](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L149) | | `rule_column.operator.name` | `string` | [refold.ts:150](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L150) | | `rule_column.operator.options` | [`Label`](#label-1)[] | [refold.ts:152](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L152) | | `rule_column.operator.type` | `"select"` | [refold.ts:151](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L151) | | `rule_column.rhs` | `object` | [refold.ts:144](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L144) | | `rule_column.rhs.name` | `string` | [refold.ts:145](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L145) | | `rule_column.rhs.options?` | [`Label`](#label-1)[] | [refold.ts:147](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L147) | | `rule_column.rhs.type` | `"text"` \| `"select"` | [refold.ts:146](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L146) | *** ### UpdateConfigPayload Defined in: [refold.ts:114](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L114) The configuration data for an application. #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `config_id?` | `string` | Unique ID for the config. | [refold.ts:118](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L118) | | `fields` | `Record`\<`string`, `string` \| `number` \| `boolean`\> | A map of application fields and their values. | [refold.ts:120](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L120) | | `slug` | `string` | The application slug | [refold.ts:116](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L116) | | `workflows` | [`WorkflowPayload`](#workflowpayload)[] | The config workflows data. | [refold.ts:122](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L122) | *** ### WorkflowPayload Defined in: [refold.ts:126](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L126) The workflow. #### Properties | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | | `enabled` | `boolean` | Whether the workflow is enabled. | [refold.ts:130](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L130) | | `fields` | `Record`\<`string`, `string` \| `number` \| `boolean`\> | A map of workflow field names and their values. | [refold.ts:132](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L132) | | `id` | `string` | The ID of the workflow. | [refold.ts:128](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L128) | *** ### WorkflowPayloadResponse Defined in: [refold.ts:298](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L298) #### Properties | Property | Type | Defined in | | ------ | ------ | ------ | | `payload` | `Record`\<`string`, `any`\> | [refold.ts:299](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L299) | | `schema?` | `unknown` | [refold.ts:300](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L300) | | `schema_interpreted?` | `unknown` | [refold.ts:301](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L301) | ## Type Aliases ### ExecutionSource > **ExecutionSource** = `"Event"` \| `"Schedule"` \| `"API Call"` Defined in: [refold.ts:214](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L214) The trigger source that initiated a workflow execution. *** ### ExecutionStatus > **ExecutionStatus** = `"COMPLETED"` \| `"RUNNING"` \| `"ERRORED"` \| `"STOPPED"` \| `"STOPPING"` \| `"TIMED_OUT"` Defined in: [refold.ts:212](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L212) The current status of a workflow execution. *** ### ExecutionType > **ExecutionType** = `"SYNC"` \| `"ASYNC"` Defined in: [refold.ts:216](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L216) Whether a workflow execution runs synchronously (waits for result) or asynchronously (fire-and-forget).