← Files GoodMemARCHIVED FILE
skills/goodmem-sdk/references/typescript/models/GrantAudience.md
790 Bytes · Oct 5, 2026 · 18:24 UTC
<!-- sdk-ref package=@pairsystems/goodmem registry=npm version=0.1.6 -->
# GrantAudience
Exactly one principal or the all-authenticated audience.
```ts
export type GrantAudience = RequireExactlyOne<GrantAudienceBase, "allAuthenticated" | "principalId">;
```
Helper definitions for the constraints above (kept here to avoid extra page reads):
```ts
export type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
export type RequireExactlyOne<T, Keys extends keyof T = keyof T> = Prettify<Omit<T, Keys> & {
[K in Keys]-?: {
[P in K]-?: NonNullable<T[P]>;
} & {
[P in Exclude<Keys, K>]?: null | undefined;
};
}[Keys]>;
```
[TypeScript](../../typescript.md)
Related types — open only those used by your request:
- [GrantAudienceBase](GrantAudienceBase.md)
SHA-256: dccc6cd90ff77b1d89332002d8cbadeee304cfcfe533d606d73b274a81251269