Skip to main content

Variable: PersonView

const PersonView: TObject<{ createdAt: TString; email: TOptional<TString>; erased: TBoolean; familyName: TOptional<TString>; givenName: TOptional<TString>; id: TString; invitation: TOptional<TObject<{ failureReason: TOptional<TUnsafe<"other" | "provider_conflict" | "provider_rejected" | "account_linked_elsewhere" | "person_erased">>; state: TUnsafe<"failed" | "none" | "sent" | "pending">; }>>; kind: TLiteral<"person">; path: TString; status: TUnion<[TLiteral<"active">, TLiteral<"suspended">]>; }>

Defined in: packages/contracts/src/schemas/identity.ts:477

A person as it crosses the broker. After the subject's key is destroyed the three personal fields are absent and erased is true (D1.9); a replay of a create after erasure answers this form too. A person that never had a profile (the root account bootstrap creates from a provider subject) has them absent with erased false. A person's path ends in its own id.