The mesh knows no pull request (design 47 G, G-1 §38-39), so mesh-config keeps no value held for one. The seat definition loses the state kept, its fixtures and generated Go and TypeScript (seatgen), and the generated client package, which held only the held values' key and decoder, goes with its artifact in module.json. Builds: ADR 0681 §1 (nothing mesh-config records is a held value), §6 (no check reads a held value, so the seat keeps none and its generated client goes). Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
136 lines
3.8 KiB
TypeScript
136 lines
3.8 KiB
TypeScript
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
|
|
|
// The contract of the seat "mesh-config", defined whole (seats/mesh-config/seat.json): The mesh's config values: read and set one, and the renames still open. mesh-config's own events stay under its own subjects (ADR 0620 §2).
|
|
|
|
export declare const seat: "mesh-config";
|
|
|
|
export declare const verbs: {
|
|
readonly config: "config";
|
|
readonly renames: "renames";
|
|
};
|
|
|
|
export declare const holderEvents: {
|
|
readonly configChanged: "config-changed";
|
|
readonly renamed: "renamed";
|
|
readonly retiring: "retiring";
|
|
readonly retired: "retired";
|
|
};
|
|
|
|
export declare function configChangedHolderSubject(holder: string): string;
|
|
|
|
export declare function renamedHolderSubject(holder: string): string;
|
|
|
|
export declare function retiringHolderSubject(holder: string): string;
|
|
|
|
export declare function retiredHolderSubject(holder: string): string;
|
|
|
|
export declare const states: {
|
|
readonly resolved: "resolved";
|
|
};
|
|
|
|
/** The key of one value of the state resolved under the form "<node>.<module>.<key>". */
|
|
export declare function resolvedByNodeModuleKeyKey(node: string, module: string, key: string): string;
|
|
|
|
/** The parts of a key of the form "<node>.<module>.<key>", or undefined for a key of another form. */
|
|
export declare function parseResolvedByNodeModuleKeyKey(_key: string): { node: string; module: string; key: string } | undefined;
|
|
|
|
/** is what config takes. */
|
|
export interface ConfigInput {
|
|
/** list (when not given), set, clear or history */
|
|
"action"?: string;
|
|
/** who gave the value at the controller's terminal */
|
|
"by"?: string;
|
|
/** the config key */
|
|
"key"?: string;
|
|
/** for history: at most this many, newest */
|
|
"limit"?: number;
|
|
/** a module: its own value, with node */
|
|
"module"?: string;
|
|
/** a node */
|
|
"node"?: string;
|
|
/** for set: the value, of the key's type: a number, a string, a boolean, or for a trusted key an object or a list */
|
|
"value"?: unknown;
|
|
/** for set and clear: why */
|
|
"why"?: string;
|
|
}
|
|
|
|
/** is what config answers. */
|
|
export type ConfigAnswer = Record<string, unknown>;
|
|
|
|
/** is what renames takes. */
|
|
export interface RenamesInput {
|
|
/** one module (optional) */
|
|
"module"?: string;
|
|
}
|
|
|
|
export interface RenamesAnswerRenamesItem {
|
|
/** when it moved, RFC 3339 */
|
|
"at"?: string;
|
|
/** the old name */
|
|
"from": string;
|
|
/** the module */
|
|
"module": string;
|
|
/** the nodes still holding the old name open */
|
|
"open"?: string[];
|
|
/** the new name */
|
|
"to": string;
|
|
}
|
|
|
|
/** is what renames answers. */
|
|
export interface RenamesAnswer {
|
|
/** every open rename */
|
|
"renames": RenamesAnswerRenamesItem[];
|
|
}
|
|
|
|
/** is the body of the holder's event renamed. */
|
|
export interface RenamedHolderEvent {
|
|
/** when, RFC 3339 */
|
|
"at": string;
|
|
/** the old name */
|
|
"from": string;
|
|
/** the module */
|
|
"module": string;
|
|
/** the new name */
|
|
"to": string;
|
|
}
|
|
|
|
/** is the body of the holder's event retiring. */
|
|
export interface RetiringHolderEvent {
|
|
/** the ask's id */
|
|
"ask"?: string;
|
|
/** the value's or secret's name */
|
|
"key": string;
|
|
"kind": "value" | "secret";
|
|
/** the module */
|
|
"module": string;
|
|
/** since when, RFC 3339 */
|
|
"since": string;
|
|
}
|
|
|
|
/** is the body of the holder's event retired. */
|
|
export interface RetiredHolderEvent {
|
|
/** the ask's id */
|
|
"ask"?: string;
|
|
/** the module */
|
|
"module": string;
|
|
/** the name */
|
|
"name": string;
|
|
/** the node */
|
|
"node"?: string;
|
|
}
|
|
|
|
/** is one value of the state resolved under the key <node>.<module>.<key>. */
|
|
export interface ResolvedByNodeModuleKeyValue {
|
|
"key": string;
|
|
"module": string;
|
|
"node": string;
|
|
/** the predefined key the value falls back to */
|
|
"predefined"?: string;
|
|
/** an unset value is the operator's own to set */
|
|
"required"?: boolean;
|
|
"source": string;
|
|
"trusted"?: boolean;
|
|
"value"?: unknown;
|
|
}
|
|
|