TransitionBuilder
Declares a transition between two states, its payload and who may execute it.
Remarks
Section titled “Remarks”The payload is declared with the InputBuilder methods this interface exposes, such as
addProperty. The Runtime checks the source state atomically when the transition executes.
Extends
Section titled “Extends”BaseBuilder.Omit<InputBuilder,"toDefinition">
Properties
Section titled “Properties”
readonlyprn:string
Platform Resource Name of the declared resource, derived from the App key and resource key.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”addArray()
Section titled “addArray()”addArray(
key):ArrayInputBuilder
Declares an array value; declare its element type on the returned builder.
Parameters
Section titled “Parameters”string
Input key.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”addGrant()
Section titled “addGrant()”addGrant(
role):TransitionGrantBuilder
Grants a Template Role permission to execute this transition.
Parameters
Section titled “Parameters”Template Role permitted to execute the transition.
Returns
Section titled “Returns”The Grant builder.
addJson()
Section titled “addJson()”addJson(
key,parser):JsonInputBuilder
Declares a JSON value parsed by a Zod type or parse function.
Parameters
Section titled “Parameters”string
Input key.
parser
Section titled “parser”ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>> | JsonParse<any>
Zod type or parse function that parses the value.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”addObject()
Section titled “addObject()”addObject(
key):ObjectInputBuilder
Declares a nested object value; declare its members on the returned builder.
Parameters
Section titled “Parameters”string
Input key.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”addProperty()
Section titled “addProperty()”Call Signature
Section titled “Call Signature”addProperty(
key,type):DataTypeInputBuilder
Declares a primitive or temporal value such as 'id', 'string' or 'date'.
Parameters
Section titled “Parameters”string
Input key.
PrimitiveDataType | TemporalDataType
Data type of the value.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”addProperty(
key,type,options?):SelectInputBuilder
Declares a single-select or multi-select value; declare its options on the returned builder,
or resolve them from a well-known format via options.format.
Parameters
Section titled “Parameters”string
Input key.
Select data type.
options?
Section titled “options?”Select options, such as the format the options are resolved from.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”addProperty(
key,type):JsonInputBuilder
Declares a JSON value parsed by a Zod type.
Parameters
Section titled “Parameters”string
Input key.
ZodType
Zod type of the value.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”addProperty(
key,type,options?):JsonInputBuilder
Declares a value of any supported type and returns the matching builder.
Parameters
Section titled “Parameters”string
Input key.
PrimitiveDataType | TemporalDataType | SelectDataType | ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>
Data type name or Zod type.
options?
Section titled “options?”Select options, only applicable to a select data type.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”setDescription()
Section titled “setDescription()”setDescription(
description):this
Sets the description emitted into the definition and rendered in generated reference and application assets.
Parameters
Section titled “Parameters”description
Section titled “description”string
Human-readable description of the resource.
Returns
Section titled “Returns”this
This builder for chaining.
Inherited from
Section titled “Inherited from”toDefinition()
Section titled “toDefinition()”toDefinition():
TransitionDefinition
Emits the Definition of this transition, including its source and target states, payload and Grants.

