Secret

The `Secret` entity.

Definition

TypeScript
interface Secret {
  id: string;
  workspaceId: string;
  name: string;
  hint: string | null;
  metadata: Record<string, unknown>;
  createdBy: string;
  createdAt: string;
  updatedAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
workspaceIdstringrequired — Workspace that owns this secret.
namestringrequired — Human-readable label, unique within the workspace.
hintstring | nullrequired — Masked preview of the value (e.g. "••••4242"). Server-derived; safe to display. Null when no hint could be computed.
metadataRecord<string, unknown>required — Arbitrary non-secret metadata (vendor, scopes, …). Never holds the secret value.
createdBystringrequired — User who created the secret.
createdAtstringreadonly required — ISO-8601 timestamp of creation.
updatedAtstringreadonly required — ISO-8601 timestamp of the last update.