ObjectStackObjectStack

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

PropertyTypeRequiredDescription
typeEnum<'field_update' | 'email_alert' | 'webhook' | 'script' | 'connector_action' | 'inbox_notify'>
namestringAction name
configRecord<string, any>Action configuration
connectorIdstringoptional
actionIdstringoptional

ApprovalActionType

Allowed Values

  • field_update
  • email_alert
  • webhook
  • script
  • connector_action
  • inbox_notify

ApproverType

Allowed Values

  • user
  • role
  • team
  • department
  • manager
  • field
  • queue

On this page