Files
mesh-contracts/provisioning/ts/seats/meshprovisioner/index.d.ts
T
jschoubben e529c372d0 C14: the generated Go and TypeScript of every seat follow the definitions
Written by seatgen at c62650e4 (GEN3) with mesh-sdk b19fc7fa (reader release): the seat mesh-grants new,
every TypeScript contract as index.js with index.d.ts, events with subject and stream. mesh-watchdogs gains
its family, which a definition with events needs. Written with the reader as it is: the field needs-approval
(node-login-shell) and the section bodies (mesh-conditions) are unknown to it, so they were laid aside for
the run; nothing generated carries either.

Builds: design 47 G §339, §341, §261, §389

Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
2026-11-11 10:45:30 +01:00

176 lines
6.2 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 {
"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[];
"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[];
"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;
}