Skip to content

Predicate

Predicate = Readonly<{ kind: IdentifierKind; scope: string; tag: "identifierEquals"; value: string; }> | Readonly<{ kind: IdentifierKind; match: IdentifierMatch; scope: string; tag: "identifierMatches"; }> | Readonly<{ principalId: PrincipalId; tag: "principalIs"; }> | Readonly<{ role: OwnerRole; tag: "principalHasRole"; }> | Readonly<{ kinds: ReadonlyArray<string>; tag: "sourceKindIn"; }> | Readonly<{ contentTypes: ReadonlyArray<string>; tag: "sourceContentTypeIn"; }> | Readonly<{ hostId: HostId; tag: "sourceOwnerHostIs"; }> | Readonly<{ tag: "sourceOwnerHostMine"; }> | Readonly<{ networkId: NetworkId; tag: "sourceNetworkIs"; }> | Readonly<{ kinds: ReadonlyArray<string>; tag: "connectionKindIn"; }> | Readonly<{ connectionId: string; tag: "connectionIs"; }> | Readonly<{ roles: ReadonlyArray<Role>; tag: "roleIn"; }> | Readonly<{ packages: ReadonlyArray<string>; tag: "assertedByPackageIn"; }> | Readonly<{ of: ReadonlyArray<Predicate>; tag: "all"; }> | Readonly<{ of: ReadonlyArray<Predicate>; tag: "any"; }> | Readonly<{ of: Predicate; tag: "not"; }>

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