go/seats the seat list every reader compiles and every seat's name; a package per whole seat with its names, subjects, types and a test of its fixtures; ts/ the same as a TypeScript package. Written by seatgen, never by hand. Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
51 lines
1.7 KiB
TypeScript
51 lines
1.7 KiB
TypeScript
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
|
|
|
// The contract of the seat "npm-package-registry", defined whole (seats/npm-package-registry/seat.json): The mesh's npm packages: the npm registry protocol's read side, and publishing over the bus.
|
|
|
|
import type * as registry from "./parts/registry.js";
|
|
|
|
export const seat = "npm-package-registry";
|
|
|
|
export const verbs = {
|
|
publish: "publish",
|
|
publishPart: "publish-part",
|
|
versions: "versions",
|
|
remove: "remove",
|
|
} as const;
|
|
|
|
export const events = {
|
|
published: "published",
|
|
refused: "refused",
|
|
removed: "removed",
|
|
} as const;
|
|
|
|
export const family = { name: "npm-package-registry.events", maxAgeDays: 7 } as const;
|
|
|
|
export const publishedSubject = "mesh.seat.npm-package-registry.event.published";
|
|
|
|
export const refusedSubject = "mesh.seat.npm-package-registry.event.refused";
|
|
|
|
export const removedSubject = "mesh.seat.npm-package-registry.event.removed";
|
|
|
|
export type Artifact = registry.Artifact;
|
|
export type Outcome = registry.Outcome;
|
|
export type Part = registry.Part;
|
|
export type PublishAnswer = registry.PublishAnswer;
|
|
export type PublishInput = registry.PublishInput;
|
|
export type PublishPartAnswer = registry.PublishPartAnswer;
|
|
export type PublishPartInput = registry.PublishPartInput;
|
|
export type PublishedEvent = registry.PublishedEvent;
|
|
export type RefusedEvent = registry.RefusedEvent;
|
|
export type RemoveAnswer = registry.RemoveAnswer;
|
|
export type RemoveInput = registry.RemoveInput;
|
|
export type RemovedEvent = registry.RemovedEvent;
|
|
export type VersionsAnswer = registry.VersionsAnswer;
|
|
export type VersionsInput = registry.VersionsInput;
|
|
|
|
/** is the form of the provision npm-package-registry. */
|
|
export interface NpmPackageRegistryForm {
|
|
/** the read side's address */
|
|
"url": string;
|
|
}
|
|
|