/** * ACDC v2 message factory helpers. * * This module mirrors KERIpy's `keri.acdc.messaging` builder surface. Callers * provide semantic values and the helpers preserve KERIpy field order, default * schema content, compact-form SAID rules, and v2 registry-update SAD shapes * before delegating serialization to `SerderACDC`. */ import { Ilks, type Kind, type MapperMap, type MapperValue, SerderACDC, type Versionage } from "../../../cesr/mod.js"; type SectionValue = string | MapperMap; type AggregateValue = string | MapperValue[]; interface AcdcVersionOptions { pvrsn?: Versionage; gvrsn?: Versionage | null; kind?: Kind; } interface AcdcTopLevelOptions extends AcdcVersionOptions { uuid?: string | null; regid?: string | null; schema?: SectionValue | null; edge?: SectionValue | null; rule?: SectionValue | null; compactify?: boolean; } export interface RegceptOptions extends AcdcVersionOptions { uuid?: string | null; stamp?: string | null; } export interface BlindateOptions extends AcdcVersionOptions { sn?: number | bigint; stamp?: string | null; } export interface UpdateOptions extends AcdcVersionOptions { sn?: number | bigint; stamp?: string | null; } export interface AcdcMapOptions extends AcdcTopLevelOptions { ilk?: typeof Ilks.acm | null; attribute?: SectionValue | null; issuee?: string | null; aggregate?: AggregateValue | null; } export interface AcdcAttributeOptions extends AcdcTopLevelOptions { attribute?: SectionValue | null; issuee?: string | null; } export interface AcdcAggregateOptions extends AcdcTopLevelOptions { aggregate?: AggregateValue | null; } export interface SectionateOptions extends AcdcVersionOptions { ilk?: typeof Ilks.acm | typeof Ilks.act | typeof Ilks.acg | null; uuid?: string | null; regid?: string | null; schema?: SectionValue | null; attribute?: SectionValue | null; issuee?: string | null; aggregate?: AggregateValue | null; edge?: SectionValue | null; rule?: SectionValue | null; } export type DefaultSchemaResult = readonly [said: string, sad: MapperMap]; export type SectionateResult = readonly [ acdc: SerderACDC, schema: SerderACDC, attribute: SerderACDC | null, aggregate: SerderACDC | null, edge: SerderACDC, rule: SerderACDC ]; /** Create an ACDC v2 registry inception (`rip`) message. */ export declare function regcept(issuer: string, options?: RegceptOptions): SerderACDC; /** Create an ACDC v2 blindable registry update (`bup`) message. */ export declare function blindate(regid: string, prior: string, blid: string, options?: BlindateOptions): SerderACDC; /** Create an ACDC v2 registry transaction-state update (`upd`) message. */ export declare function update(regid: string, prior: string, acdc: string, state: string, options?: UpdateOptions): SerderACDC; /** Create the default schema block for ACDC v2 map-style (`acm`) messages. */ export declare function acmSchemaDefault(kind?: Kind): DefaultSchemaResult; /** Create the default schema block for ACDC v2 fixed-attribute (`act`) messages. */ export declare function actSchemaDefault(kind?: Kind): DefaultSchemaResult; /** Create the default schema block for ACDC v2 fixed-aggregate (`acg`) messages. */ export declare function acgSchemaDefault(kind?: Kind): DefaultSchemaResult; /** Create a top-level field-map ACDC v2 message (`acm` or implicit map ACDC). */ export declare function acdcmap(issuer: string, options?: AcdcMapOptions): SerderACDC; /** Create a top-level fixed-attribute ACDC v2 message (`act`). */ export declare function acdcatt(issuer: string, options?: AcdcAttributeOptions): SerderACDC; /** Create a top-level fixed-aggregate ACDC v2 message (`acg`). */ export declare function acdcagg(issuer: string, options?: AcdcAggregateOptions): SerderACDC; /** Create a compact schema-section (`sch`) disclosure message. */ export declare function sectschema(schema: SectionValue, options?: AcdcVersionOptions): SerderACDC; /** Create a compact attribute-section (`att`) disclosure message. */ export declare function sectattr(attribute: SectionValue, options?: AcdcVersionOptions): SerderACDC; /** Create a compact aggregate-section (`agg`) disclosure message. */ export declare function sectaggr(aggregate: AggregateValue, options?: AcdcVersionOptions): SerderACDC; /** Create a compact edge-section (`edg`) disclosure message. */ export declare function sectedge(edge: SectionValue | null | undefined, options?: AcdcVersionOptions): SerderACDC; /** Create a compact rule-section (`rul`) disclosure message. */ export declare function sectrule(rule: SectionValue | null | undefined, options?: AcdcVersionOptions): SerderACDC; /** * Create a compact top-level ACDC plus the section disclosure messages needed * to re-expand it. */ export declare function sectionate(issuer: string, options?: SectionateOptions): SectionateResult; export {}; //# sourceMappingURL=messaging.d.ts.map