Approval
Approval protocol schemas
Approval Step Approver Type
Source: packages/spec/src/automation/approval.zod.ts
TypeScript Usage
import { ApprovalAction, ApprovalActionType, ApproverType } from '@objectstack/spec/automation';
import type { ApprovalAction, ApprovalActionType, ApproverType } from '@objectstack/spec/automation';
// Validate data
const result = ApprovalAction.parse(data);ApprovalAction
Properties
| Property | Type | Required | Description |
|---|---|---|---|
| type | Enum<'field_update' | 'email_alert' | 'webhook' | 'script' | 'connector_action' | 'inbox_notify'> | ✅ | |
| name | string | ✅ | Action name |
| config | Record<string, any> | ✅ | Action configuration |
| connectorId | string | optional | |
| actionId | string | optional |
ApprovalActionType
Allowed Values
field_updateemail_alertwebhookscriptconnector_actioninbox_notify
ApproverType
Allowed Values
userroleteamdepartmentmanagerfieldqueue