vapor-chamber API reference - v1.16.0
    Preparing search index...

    Type Alias ActionSchema

    type ActionSchema = {
        description?: string;
        target?: FieldMap;
        payload?: FieldMap;
        result?: FieldMap;
        authorize?: string;
    }
    Index
    description?: string
    target?: FieldMap
    payload?: FieldMap
    result?: FieldMap
    authorize?: string

    Laravel Gate ability name required to run this action — declarative, server-enforced authorization. Purely descriptive on the bus itself (auth must be server-side, so schemaValidator never checks it); scripts/generate-laravel.mjs reads it to emit Gate::forUser($user)->authorize('<ability>', ...) into the generated action-class stub, ahead of the existing validation block.

    cartCheckout: {
    authorize: 'checkout',
    target: { cartId: 'number' },
    },