Files
mesh-contracts/provisioning/ts/seats/meshprovisioner/index.d.ts
T
jschoubben 2172a8732d H2 K1: every seat package read tolerantly, saying its form
A reader of another part's value refused a field it did not know, so a holder
that added one broke every reader until each was rebuilt. Every package is
generated again by mesh-delivery's seatgen (feat/47-H2 ff7db337): each
generated decoder keeps unknown fields, returns the form read (1 when absent)
and each package states its Form (1 everywhere, left out on the wire). The
hand-written clients take the three values, and the node-engine client's
ask, answer, composition and have decoders keep unknown fields too; their tests
now hold that tolerance. seatgen -check clean in all five folders.

Builds: design 47 H2 §780; H-A-350 DMC-4
2026-11-21 23:15:25 +01:00

182 lines
6.5 KiB
TypeScript

// Code generated by seatgen from the seat definitions; DO NOT EDIT.
// The contract of the seat "mesh-provisioner", defined whole (seats/mesh-provisioner/seat.json): The provisioner (ADR 0349): which domain answers which kind of placeholder, what each module needs, what is applied where.
export declare const seat: "mesh-provisioner";
export declare const verbs: {
readonly provisioning: "provisioning";
};
export declare const states: {
readonly plans: "plans";
readonly provisions: "provisions";
};
/** The key of one value of the state plans under the form "<node>.<module>". */
export declare function plansByNodeModuleKey(node: string, module: string): string;
/** The parts of a key of the form "<node>.<module>", or undefined for a key of another form. */
export declare function parsePlansByNodeModuleKey(_key: string): { node: string; module: string } | undefined;
/** The key of one value of the state provisions under the form "<node>.<consumer>.<provision>". */
export declare function provisionsByNodeConsumerProvisionKey(node: string, consumer: string, provision: string): string;
/** The parts of a key of the form "<node>.<consumer>.<provision>", or undefined for a key of another form. */
export declare function parseProvisionsByNodeConsumerProvisionKey(_key: string): { node: string; consumer: string; provision: string } | undefined;
/** The key of one value of the state provisions under the form "<node>.<consumer>.<provision>.<local>". */
export declare function provisionsByNodeConsumerProvisionLocalKey(node: string, consumer: string, provision: string, local: string): string;
/** The parts of a key of the form "<node>.<consumer>.<provision>.<local>", or undefined for a key of another form. */
export declare function parseProvisionsByNodeConsumerProvisionLocalKey(_key: string): { node: string; consumer: string; provision: string; local: string } | undefined;
/** is what provisioning takes. */
export interface ProvisioningInput {
/** for collect: a collection */
"collection"?: string;
/** a module: for collect, a contributor */
"module"?: string;
/** a node */
"node"?: string;
/** registry (when not given), needs, applied or collect */
"what"?: string;
}
/** is what provisioning answers. */
export type ProvisioningAnswer = Record<string, unknown>;
/** is one value of the state plans under the key <node>.<module>. */
export interface PlansByNodeModuleValue {
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
"form"?: number;
"module": string;
"node": string;
/** the module's plan */
"plan": Record<string, unknown>;
"v"?: number;
}
export interface ProvisionsByNodeConsumerProvisionValueConsumer {
"module"?: string;
"node"?: string;
}
/** the plan's provision: the entry the key was composed from, at the consumer's wanted build or its newest (issue 1126) */
export interface ProvisionsByNodeConsumerProvisionValuePlan {
"as"?: string;
"at"?: string;
/** the provider's own contract's bytes, carried unread */
"contributed"?: Record<string, unknown>;
"contributes"?: Record<string, unknown>;
"credential-form"?: unknown;
"credential-tool"?: string;
"from"?: string;
"local"?: string;
"name"?: string;
"names"?: Record<string, string>;
"path"?: string;
"provider": string;
"provider-module": string;
"provision": string;
}
export interface ProvisionsByNodeConsumerProvisionValueProvider {
"module"?: string;
"node"?: string;
}
export interface ProvisionsByNodeConsumerProvisionValueReference {
"generation"?: number;
"id"?: string;
}
export interface ProvisionsByNodeConsumerProvisionValueWarrant {
"ask"?: string;
"at"?: string;
"by"?: string;
"option"?: string;
}
/** is one value of the state provisions under the key <node>.<consumer>.<provision>. */
export interface ProvisionsByNodeConsumerProvisionValue {
"ask"?: string;
"at": string;
"consumer": ProvisionsByNodeConsumerProvisionValueConsumer;
"depends-on"?: string[];
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
"form"?: number;
"local"?: string;
/** the plan's provision: the entry the key was composed from, at the consumer's wanted build or its newest (issue 1126) */
"plan"?: ProvisionsByNodeConsumerProvisionValuePlan;
"provider": ProvisionsByNodeConsumerProvisionValueProvider;
"provision": string;
"reference"?: ProvisionsByNodeConsumerProvisionValueReference;
"state": "asked" | "provided" | "waits" | "failed" | "retiring";
"v"?: number;
"warrant"?: ProvisionsByNodeConsumerProvisionValueWarrant;
"why"?: string;
}
export interface ProvisionsByNodeConsumerProvisionLocalValueConsumer {
"module"?: string;
"node"?: string;
}
/** the plan's provision: the entry the key was composed from, at the consumer's wanted build or its newest (issue 1126) */
export interface ProvisionsByNodeConsumerProvisionLocalValuePlan {
"as"?: string;
"at"?: string;
/** the provider's own contract's bytes, carried unread */
"contributed"?: Record<string, unknown>;
"contributes"?: Record<string, unknown>;
"credential-form"?: unknown;
"credential-tool"?: string;
"from"?: string;
"local"?: string;
"name"?: string;
"names"?: Record<string, string>;
"path"?: string;
"provider": string;
"provider-module": string;
"provision": string;
}
export interface ProvisionsByNodeConsumerProvisionLocalValueProvider {
"module"?: string;
"node"?: string;
}
export interface ProvisionsByNodeConsumerProvisionLocalValueReference {
"generation"?: number;
"id"?: string;
}
export interface ProvisionsByNodeConsumerProvisionLocalValueWarrant {
"ask"?: string;
"at"?: string;
"by"?: string;
"option"?: string;
}
/** is one value of the state provisions under the key <node>.<consumer>.<provision>.<local>. */
export interface ProvisionsByNodeConsumerProvisionLocalValue {
"ask"?: string;
"at": string;
"consumer": ProvisionsByNodeConsumerProvisionLocalValueConsumer;
"depends-on"?: string[];
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
"form"?: number;
"local"?: string;
/** the plan's provision: the entry the key was composed from, at the consumer's wanted build or its newest (issue 1126) */
"plan"?: ProvisionsByNodeConsumerProvisionLocalValuePlan;
"provider": ProvisionsByNodeConsumerProvisionLocalValueProvider;
"provision": string;
"reference"?: ProvisionsByNodeConsumerProvisionLocalValueReference;
"state": "asked" | "provided" | "waits" | "failed" | "retiring";
"v"?: number;
"warrant"?: ProvisionsByNodeConsumerProvisionLocalValueWarrant;
"why"?: string;
}