UNPKG

722 BTypeScriptView Raw
1export declare type AuthStrategy = 'owner' | 'groups' | 'public' | 'private';
2export declare type AuthProvider = 'apiKey' | 'iam' | 'oidc' | 'userPools';
3export declare type ModelQuery = 'get' | 'list';
4export declare type ModelMutation = 'create' | 'update' | 'delete';
5export declare type ModelOperation = 'create' | 'update' | 'delete' | 'read';
6export interface AuthRule {
7 allow: AuthStrategy;
8 provider?: AuthProvider;
9 ownerField?: string;
10 identityField?: string;
11 identityClaim?: string;
12 groupsField?: string;
13 groupClaim?: string;
14 groups?: string[];
15 operations?: ModelOperation[];
16 queries?: ModelQuery[];
17 mutations?: ModelMutation[];
18}
19//# sourceMappingURL=AuthRule.d.ts.map
\No newline at end of file