Skip to content

AccessEvent

AccessEvent = Readonly<{ envelopeId: EnvelopeId; sourceId: SourceId; type: "core.envelope_indexed"; }> | Readonly<{ type: "access.rules_changed"; version: number; }> | Readonly<{ attestation: CeremonyAttestation; identifierId: string; type: "principal.identifier_verified"; }> | Readonly<{ identifierId: string; reason?: string; sessionsInvalidate: true; type: "principal.identifier_revoked"; }> | Readonly<{ authorityProof: AuthorityProof; loserId: PrincipalId; reason: string; type: "principal.merge_requested"; winnerId: PrincipalId; }> | Readonly<{ loserId: PrincipalId; mergedAt: Date; type: "principal.merged"; winnerId: PrincipalId; }> | Readonly<{ loserId: PrincipalId; reason: string; type: "principal.merge_rejected"; winnerId: PrincipalId; }> | Readonly<{ fromPrincipalId: PrincipalId; hostId?: HostId; networkId?: NetworkId; role: OwnerRole; signatures: ReadonlyArray<Uint8Array>; toPrincipalId: PrincipalId; type: "role.transferred"; }> | Readonly<{ expiresAt: Date; hostOwnerPrincipalId: PrincipalId; tokenId: string; type: "pairing.token_issued"; }> | Readonly<{ joiningHostId: HostId; tokenId: string; type: "pairing.token_consumed"; }> | Readonly<{ tokenId: string; type: "pairing.token_expired"; }> | Readonly<{ decision: "allow" | "deny"; principalId: PrincipalId; ruleId: string; sourceId: SourceId; type: "access.fetch_evaluated"; }>

Defined in: pkgs/access-contract/src/index.ts:215