UNPKG

@atproto/oauth-scopes

Version:

A library for manipulating and validating ATproto OAuth scopes in TypeScript.

19 lines • 627 B
import type { ParamValue } from './syntax.js'; export type LexiconPermission<P extends string = string> = { readonly type: 'permission'; readonly resource: P; readonly [x: string]: undefined | ParamValue | readonly ParamValue[]; }; type LangMap = { readonly [Lang in string]?: string; }; export type LexiconPermissionSet = { readonly type: 'permission-set'; readonly permissions: readonly LexiconPermission<string>[]; readonly title?: string; readonly 'title:lang'?: LangMap; readonly detail?: string; readonly 'detail:lang'?: LangMap; }; export {}; //# sourceMappingURL=lexicon.d.ts.map