Sanity Library Reference Docs
    Preparing search index...

    Type Alias WorkflowOperationResponse

    WorkflowOperationResponse:
        | { error?: never; protocolVersion: 1; result: OperationResult }
        | { error: WorkflowOperationFailure; protocolVersion: 1; result?: never }

    The Workflows service's answer to a WorkflowOperationRequest: the verb's result, or an error. An engine error carries its WorkflowErrorKind as code and its structured fields in details.