SpecMember

The `SpecMember` entity.

Definition

TypeScript
interface SpecMember {
  id: string;
  specId: string;
  entityId: string;
  memberKind:
    | "function"
    | "trigger"
    | "schema-input"
    | "schema-output"
    | "tool";
  operationRef: string | null;
  addedBy: string;
  deletedAt: string | null;
  retentionTier: "short" | "medium" | "long" | "none" | null;
  addedAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
specIdstringrequired — Parent spec.
entityIdstringrequired — Polymorphic prefixed ID of the generated entity. Entity type is derived via detectEntityType.
memberKind"function" | "trigger" | "schema-input" | "schema-output" | "tool"required
operationRefstring | nullrequired — OpenAPI operationId (or ${method}:${path} fallback) the entity was generated from. Populated for function and schema-* kinds; null otherwise.
addedBystringrequired — User whose action created this membership (typically the spec creator at ingest time).
deletedAtstring | nullrequired — ISO-8601 timestamp of soft-removal; null while active. Soft-removed when refresh drops the underlying operation.
retentionTier"short" | "medium" | "long" | "none" | nullrequired — Retention tier snapshotted at soft-remove time.
addedAtstringrequired