RegistryCodebase

tcmts.registry.RegistryCodebase · #4kazof5q · type

A codebase the registry knows of: one its author lists (tcm announce), by the record that lists it, and its main branch as the registry last mirrored it.

export interface RegistryCodebase {
  /** at://<did>/codes.tcm.codebase/<name> */
  uri: string;
  did: string;
  name: string;
  /** the tcm server it's at */
  url: string;
  description: string;
  createdAt: string;
  /** shown only once it checks against its author's signed repository */
  state: "pending" | "verified";
  /** where its main branch is in the registry's codebase, once mirrored */
  mount?: string;
  /** the head of its main branch, as mirrored */
  head?: string;
  /** the server it was mirrored from (its URL then) */
  from?: string;
  /** how many names it has, as mirrored */
  definitions?: number;
  /** when it was mirrored as it is */
  fetchedAt?: Date;
  /** when its server was last asked for its main branch */
  triedAt?: Date;
  /** why it couldn't be mirrored, the last time it was tried */
  reason?: string;
}

used by