1 | export declare type AuthStrategy = 'owner' | 'groups' | 'public' | 'private';
|
2 | export declare type AuthProvider = 'apiKey' | 'iam' | 'oidc' | 'userPools';
|
3 | export declare type ModelQuery = 'get' | 'list';
|
4 | export declare type ModelMutation = 'create' | 'update' | 'delete';
|
5 | export declare type ModelOperation = 'create' | 'update' | 'delete' | 'read';
|
6 | export 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 |
|
\ | No newline at end of file |