Skip to content

ActionSpec

Defined in: src/standard-schema.ts:53

One action’s definition in code.

Type Parameter Default type
TMetadata extends | StandardSchemaV1 | undefined | StandardSchemaV1 | undefined
Property Type Description Defined in
deprecated? boolean - src/standard-schema.ts:67
description? string - src/standard-schema.ts:58
group? string UI grouping label. src/standard-schema.ts:60
metadata? TMetadata Validator for metadata (any Standard Schema). Omit for untyped metadata. src/standard-schema.ts:57
outcome? AuditOutcome Default outcome when the caller does not pass one. src/standard-schema.ts:66
schema? JsonValue JSON-Schema-ish description of metadata for the UI catalog. src/standard-schema.ts:64
targets? string[] Target types this action carries (documentation; enforced when strictTargets). src/standard-schema.ts:62