Files
mesh-delivery/contracts/ts/seats/meshartifactsweep/index.d.ts
T
jschoubben 72ac9b09cb CT11: regenerate the Go and TypeScript contracts from CT1 to CT9; each TypeScript contract as index.js with index.d.ts
Generated by seatgen (mesh-catalog, GEN1 and GEN2 on its worktree) from the
definitions of CT1 to CT9; module.json names the artifacts of the new seats
mesh-builds, mesh-pipeline-runner and git. seatgen -check is clean; every seat
package's generated fixture test passes.

Builds: design 47 G §341 (a TypeScript contract is emitted as index.js with
index.d.ts), §196, §339 (the generator refuses an unknown callers entry),
§260, §331.

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

100 lines
2.9 KiB
TypeScript

// Code generated by seatgen from the seat definitions; DO NOT EDIT.
// The contract of the seat "mesh-artifact-sweep", defined whole (seats/mesh-artifact-sweep/seat.json): no description.
export declare const seat: "mesh-artifact-sweep";
export declare const verbs: {
readonly artifacts: "artifacts";
readonly held: "held";
readonly collect: "collect";
readonly mirrors: "mirrors";
readonly images: "images";
};
export declare const events: {
readonly artifactsGone: "artifacts-gone";
};
export declare const family: { readonly name: "mesh-artifact-sweep.events"; readonly maxAgeDays: 7 };
export declare const artifactsGoneSubject: "mesh.seat.mesh-artifact-sweep.event.artifacts-gone";
/** the body of artifacts-gone */
export interface ArtifactsGone {
/** when the sweep found it */
"at"?: string;
/** artifacts-gone */
"event": string;
/** the key's fingerprint */
"fingerprint": string;
/** every reference of the key the store does not hold, sorted */
"gone": string[];
/** the builder's done key */
"key"?: string;
/** the module whose builder's key names a gone artifact */
"module": string;
}
/** is what artifacts takes. */
export interface ArtifactsInput {
/** "true": list the collected references too (counted always) */
"collected"?: "true" | "false";
/** only this repository's references, as <module>/<artifact> (the counts stay whole) */
"repository"?: string;
}
/** is what artifacts answers. */
export type ArtifactsAnswer = Record<string, unknown>;
/** is what held takes. */
export interface HeldInput {
/** the artifacts' references, artifact-store://<module>/<artifact>/blobs/sha256:<hex>: a list, or one text separated by commas */
"references": string[];
}
/** is what held answers. */
export interface HeldAnswer {
/** the references the store answered 404 for */
"gone": string[];
/** the references the store holds */
"held": string[];
/** the store asked, host and port */
"store"?: string;
/** a reference the store could not be asked about, to why */
"unknown"?: Record<string, string>;
}
/** is what collect takes. */
export interface CollectInput {
/** "true": let go of what is eligible (needs why); without it nothing is done */
"confirm"?: "true" | "false";
/** let go of at most this many (500 by default, at most 5000) */
"most"?: string;
/** with confirm: why, required and recorded */
"why"?: string;
}
/** is what collect answers. */
export type CollectAnswer = Record<string, unknown>;
/** is what mirrors takes. */
export interface MirrorsInput {
}
/** is what mirrors answers. */
export type MirrorsAnswer = Record<string, unknown>;
/** is what images takes. */
export interface ImagesInput {
/** the machine's name */
"node": string;
}
/** is what images answers. */
export type ImagesAnswer = Record<string, unknown>;
/** is the body of the event artifacts-gone. */
export type ArtifactsGoneEvent = ArtifactsGone;