InputBuilder
Declares the input of an operation, Event or transition as a set of named values.
Remarks
Section titled “Remarks”Every value is optional until mandatory() is called on its builder. Generated TypeScript
types mirror the declaration, so handlers receive parsed and typed input.
Example
Section titled “Example”Declaring the input of a Mutation
archive.input.addProperty('id', 'id').mandatory();bulkVerify.input.addArray('ids').mandatory().property('id');getItems.input.addJson('filter', zItemFilter.optional());MutationBuilder.input and QueryBuilder.input
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”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”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”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”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”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”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”toDefinition()
Section titled “toDefinition()”toDefinition():
InputDefinition
Emits the input Definition, or null when no values are declared.

