/** * The shapes this engine PUBLISHES — what a composing vertical returns from an * operation it has bound, and what reaches its API document. * * These existed only as TypeScript interfaces, which is enough to implement * against and not enough to DECLARE against: `defineOperations` takes a schema, * so without these a vertical binding `protocol/get` had nothing to point at. * * **Each one is asserted against its interface, in both directions.** A schema * that drifts from the shape the handler actually returns is worse than no * schema — it publishes a contract nobody honours, which is exactly the defect * #695 found eleven times. The assertions below fail to compile if either side * gains, loses or retypes a field. */ import { z } from '@substrat-run/contracts'; export declare const protocolTemplateRow: z.ZodObject<{ id: z.ZodString; key: z.ZodString; version: z.ZodNumber; title: z.ZodString; content_json: z.ZodString; created_at: z.ZodString; }, z.core.$strip>; export declare const protocolResponseRow: z.ZodObject<{ id: z.ZodString; instance_id: z.ZodString; item_key: z.ZodString; value_json: z.ZodString; note: z.ZodNullable; responded_by: z.ZodString; responded_at: z.ZodString; }, z.core.$strip>; export declare const protocolSignatureRow: z.ZodObject<{ id: z.ZodString; instance_id: z.ZodString; signed_by: z.ZodString; kind: z.ZodEnum<{ counter: "counter"; primary: "primary"; }>; method: z.ZodString; content_hash: z.ZodString; evidence_ref: z.ZodNullable; signed_at: z.ZodString; request_id: z.ZodNullable; signatory_kind: z.ZodEnum<{ external: "external"; principal: "principal"; }>; signatory_label: z.ZodNullable; }, z.core.$strip>; export declare const protocolSignatureRequestRow: z.ZodObject<{ id: z.ZodString; instance_id: z.ZodString; party_label: z.ZodString; party_kind: z.ZodEnum<{ external: "external"; principal: "principal"; }>; party_ref: z.ZodNullable; signature_kind: z.ZodEnum<{ counter: "counter"; primary: "primary"; }>; method: z.ZodString; auth_level: z.ZodNullable>; contact_key_id: z.ZodNullable; contact_ciphertext: z.ZodNullable; status: z.ZodEnum<{ cancelled: "cancelled"; declined: "declined"; expired: "expired"; pending: "pending"; signed: "signed"; }>; content_hash: z.ZodString; external_ref: z.ZodNullable; resolved_note: z.ZodNullable; requested_by: z.ZodString; requested_at: z.ZodString; resolved_at: z.ZodNullable; }, z.core.$strip>; /** * The COMPOSITE returns — what the operations answer with, as opposed to the * rows above. * * These existed only as interfaces, and an interface is exactly as much as an * operation cannot be declared against. `output` on a declared operation is a * Zod schema, so without these four `protocol/get` and `protocol/sign` had * nothing to point at and the engine could declare only the half of its surface * that happens to return one row. * * They are assembled from the row schemas rather than restating their fields, * so a column added to a row reaches every projection that carries it. */ export declare const signResult: z.ZodObject<{ instance: z.ZodObject<{ id: z.ZodString; template_key: z.ZodString; template_version: z.ZodNumber; entity_type: z.ZodString; entity_id: z.ZodString; status: z.ZodEnum<{ open: "open"; pending_signature: "pending_signature"; signed: "signed"; voided: "voided"; }>; created_by: z.ZodString; created_at: z.ZodString; voided_by: z.ZodNullable; voided_reason: z.ZodNullable; voided_at: z.ZodNullable; content_ref_type: z.ZodNullable; content_ref_id: z.ZodNullable; bound_hash: z.ZodNullable; document_attachment_id: z.ZodNullable; frozen_hash: z.ZodNullable; frozen_at: z.ZodNullable; }, z.core.$strip>; signature: z.ZodObject<{ id: z.ZodString; instance_id: z.ZodString; signed_by: z.ZodString; kind: z.ZodEnum<{ counter: "counter"; primary: "primary"; }>; method: z.ZodString; content_hash: z.ZodString; evidence_ref: z.ZodNullable; signed_at: z.ZodString; request_id: z.ZodNullable; signatory_kind: z.ZodEnum<{ external: "external"; principal: "principal"; }>; signatory_label: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>; export declare const requestSignaturesResult: z.ZodObject<{ instance: z.ZodObject<{ id: z.ZodString; template_key: z.ZodString; template_version: z.ZodNumber; entity_type: z.ZodString; entity_id: z.ZodString; status: z.ZodEnum<{ open: "open"; pending_signature: "pending_signature"; signed: "signed"; voided: "voided"; }>; created_by: z.ZodString; created_at: z.ZodString; voided_by: z.ZodNullable; voided_reason: z.ZodNullable; voided_at: z.ZodNullable; content_ref_type: z.ZodNullable; content_ref_id: z.ZodNullable; bound_hash: z.ZodNullable; document_attachment_id: z.ZodNullable; frozen_hash: z.ZodNullable; frozen_at: z.ZodNullable; }, z.core.$strip>; contentHash: z.ZodString; requests: z.ZodArray; party_ref: z.ZodNullable; signature_kind: z.ZodEnum<{ counter: "counter"; primary: "primary"; }>; method: z.ZodString; auth_level: z.ZodNullable>; contact_key_id: z.ZodNullable; contact_ciphertext: z.ZodNullable; status: z.ZodEnum<{ cancelled: "cancelled"; declined: "declined"; expired: "expired"; pending: "pending"; signed: "signed"; }>; content_hash: z.ZodString; external_ref: z.ZodNullable; resolved_note: z.ZodNullable; requested_by: z.ZodString; requested_at: z.ZodString; resolved_at: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>; export declare const protocolDetail: z.ZodObject<{ instance: z.ZodObject<{ id: z.ZodString; template_key: z.ZodString; template_version: z.ZodNumber; entity_type: z.ZodString; entity_id: z.ZodString; status: z.ZodEnum<{ open: "open"; pending_signature: "pending_signature"; signed: "signed"; voided: "voided"; }>; created_by: z.ZodString; created_at: z.ZodString; voided_by: z.ZodNullable; voided_reason: z.ZodNullable; voided_at: z.ZodNullable; content_ref_type: z.ZodNullable; content_ref_id: z.ZodNullable; bound_hash: z.ZodNullable; document_attachment_id: z.ZodNullable; frozen_hash: z.ZodNullable; frozen_at: z.ZodNullable; }, z.core.$strip>; template: z.ZodObject<{ key: z.ZodString; version: z.ZodNumber; title: z.ZodString; content: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"checklist">; sections: z.ZodArray; unit: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"document">; documentType: z.ZodString; hashRecipe: z.ZodString; description: z.ZodOptional; }, z.core.$strip>], "kind">; }, z.core.$strip>; responses: z.ZodArray; responded_by: z.ZodString; responded_at: z.ZodString; }, z.core.$strip>>; latest: z.ZodRecord; responded_by: z.ZodString; responded_at: z.ZodString; }, z.core.$strip>>; signature: z.ZodNullable; method: z.ZodString; content_hash: z.ZodString; evidence_ref: z.ZodNullable; signed_at: z.ZodString; request_id: z.ZodNullable; signatory_kind: z.ZodEnum<{ external: "external"; principal: "principal"; }>; signatory_label: z.ZodNullable; }, z.core.$strip>>; signatures: z.ZodArray; method: z.ZodString; content_hash: z.ZodString; evidence_ref: z.ZodNullable; signed_at: z.ZodString; request_id: z.ZodNullable; signatory_kind: z.ZodEnum<{ external: "external"; principal: "principal"; }>; signatory_label: z.ZodNullable; }, z.core.$strip>>; requests: z.ZodArray; party_ref: z.ZodNullable; signature_kind: z.ZodEnum<{ counter: "counter"; primary: "primary"; }>; method: z.ZodString; auth_level: z.ZodNullable>; contact_key_id: z.ZodNullable; contact_ciphertext: z.ZodNullable; status: z.ZodEnum<{ cancelled: "cancelled"; declined: "declined"; expired: "expired"; pending: "pending"; signed: "signed"; }>; content_hash: z.ZodString; external_ref: z.ZodNullable; resolved_note: z.ZodNullable; requested_by: z.ZodString; requested_at: z.ZodString; resolved_at: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>; export declare const protocolSummary: z.ZodObject<{ instance: z.ZodObject<{ id: z.ZodString; template_key: z.ZodString; template_version: z.ZodNumber; entity_type: z.ZodString; entity_id: z.ZodString; status: z.ZodEnum<{ open: "open"; pending_signature: "pending_signature"; signed: "signed"; voided: "voided"; }>; created_by: z.ZodString; created_at: z.ZodString; voided_by: z.ZodNullable; voided_reason: z.ZodNullable; voided_at: z.ZodNullable; content_ref_type: z.ZodNullable; content_ref_id: z.ZodNullable; bound_hash: z.ZodNullable; document_attachment_id: z.ZodNullable; frozen_hash: z.ZodNullable; frozen_at: z.ZodNullable; }, z.core.$strip>; title: z.ZodString; contentKind: z.ZodEnum<{ checklist: "checklist"; document: "document"; }>; answered: z.ZodNumber; total: z.ZodNumber; signedBy: z.ZodNullable; signedAt: z.ZodNullable; countersignedBy: z.ZodNullable; countersignedAt: z.ZodNullable; pendingSignatures: z.ZodNumber; }, z.core.$strip>; //# sourceMappingURL=schemas.d.ts.map