@constructive-io/react 1.21.47 → 1.21.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/schema-types.d.ts +4 -0
- package/agent/schema-types.d.ts +4 -0
- package/api/orm/input-types.d.ts +663 -69
- package/api/orm/input-types.js +22 -0
- package/api/schema-types.d.ts +199 -44
- package/auth/schema-types.d.ts +4 -0
- package/compute/schema-types.d.ts +4 -0
- package/config/schema-types.d.ts +4 -0
- package/esm/admin/schema-types.d.ts +4 -0
- package/esm/agent/schema-types.d.ts +4 -0
- package/esm/api/orm/input-types.d.ts +663 -69
- package/esm/api/orm/input-types.js +22 -0
- package/esm/api/schema-types.d.ts +199 -44
- package/esm/auth/schema-types.d.ts +4 -0
- package/esm/compute/schema-types.d.ts +4 -0
- package/esm/config/schema-types.d.ts +4 -0
- package/esm/infra/schema-types.d.ts +4 -0
- package/esm/modules/hooks/index.d.ts +1 -1
- package/esm/modules/hooks/index.js +1 -1
- package/esm/modules/hooks/invalidation.d.ts +6 -0
- package/esm/modules/hooks/invalidation.js +17 -1
- package/esm/modules/hooks/mutation-keys.d.ts +12 -0
- package/esm/modules/hooks/mutation-keys.js +7 -0
- package/esm/modules/hooks/mutations/index.d.ts +3 -0
- package/esm/modules/hooks/mutations/index.js +3 -0
- package/esm/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.d.ts +2 -2
- package/esm/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.js +1 -1
- package/esm/modules/hooks/mutations/useCreatePrincipalsModuleMutation.d.ts +34 -0
- package/esm/modules/hooks/mutations/useCreatePrincipalsModuleMutation.js +31 -0
- package/esm/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.d.ts +2 -2
- package/esm/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.js +1 -1
- package/esm/modules/hooks/mutations/useDeletePrincipalsModuleMutation.d.ts +38 -0
- package/esm/modules/hooks/mutations/useDeletePrincipalsModuleMutation.js +36 -0
- package/esm/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.d.ts +2 -2
- package/esm/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.js +1 -1
- package/esm/modules/hooks/mutations/useUpdatePrincipalsModuleMutation.d.ts +40 -0
- package/esm/modules/hooks/mutations/useUpdatePrincipalsModuleMutation.js +37 -0
- package/esm/modules/hooks/queries/index.d.ts +2 -0
- package/esm/modules/hooks/queries/index.js +2 -0
- package/esm/modules/hooks/queries/usePrincipalAuthModuleQuery.d.ts +4 -4
- package/esm/modules/hooks/queries/usePrincipalAuthModuleQuery.js +1 -1
- package/esm/modules/hooks/queries/usePrincipalAuthModulesQuery.d.ts +4 -4
- package/esm/modules/hooks/queries/usePrincipalAuthModulesQuery.js +1 -1
- package/esm/modules/hooks/queries/usePrincipalsModuleQuery.d.ts +65 -0
- package/esm/modules/hooks/queries/usePrincipalsModuleQuery.js +47 -0
- package/esm/modules/hooks/queries/usePrincipalsModulesQuery.d.ts +69 -0
- package/esm/modules/hooks/queries/usePrincipalsModulesQuery.js +32 -0
- package/esm/modules/hooks/query-keys.d.ts +14 -0
- package/esm/modules/hooks/query-keys.js +8 -0
- package/esm/modules/orm/index.d.ts +2 -0
- package/esm/modules/orm/index.js +2 -0
- package/esm/modules/orm/input-types.d.ts +190 -1
- package/esm/modules/orm/models/index.d.ts +1 -0
- package/esm/modules/orm/models/index.js +1 -0
- package/esm/modules/orm/models/principalsModule.d.ts +54 -0
- package/esm/modules/orm/models/principalsModule.js +100 -0
- package/esm/modules/schema-types.d.ts +124 -1
- package/esm/modules/types.d.ts +16 -0
- package/esm/objects/schema-types.d.ts +4 -0
- package/esm/remote/schema-types.d.ts +4 -0
- package/esm/storage/schema-types.d.ts +4 -0
- package/esm/usage/schema-types.d.ts +4 -0
- package/infra/schema-types.d.ts +4 -0
- package/modules/hooks/index.d.ts +1 -1
- package/modules/hooks/index.js +1 -1
- package/modules/hooks/invalidation.d.ts +6 -0
- package/modules/hooks/invalidation.js +16 -0
- package/modules/hooks/mutation-keys.d.ts +12 -0
- package/modules/hooks/mutation-keys.js +8 -1
- package/modules/hooks/mutations/index.d.ts +3 -0
- package/modules/hooks/mutations/index.js +3 -0
- package/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.d.ts +2 -2
- package/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.js +1 -1
- package/modules/hooks/mutations/useCreatePrincipalsModuleMutation.d.ts +34 -0
- package/modules/hooks/mutations/useCreatePrincipalsModuleMutation.js +34 -0
- package/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.d.ts +2 -2
- package/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.js +1 -1
- package/modules/hooks/mutations/useDeletePrincipalsModuleMutation.d.ts +38 -0
- package/modules/hooks/mutations/useDeletePrincipalsModuleMutation.js +39 -0
- package/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.d.ts +2 -2
- package/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.js +1 -1
- package/modules/hooks/mutations/useUpdatePrincipalsModuleMutation.d.ts +40 -0
- package/modules/hooks/mutations/useUpdatePrincipalsModuleMutation.js +40 -0
- package/modules/hooks/queries/index.d.ts +2 -0
- package/modules/hooks/queries/index.js +2 -0
- package/modules/hooks/queries/usePrincipalAuthModuleQuery.d.ts +4 -4
- package/modules/hooks/queries/usePrincipalAuthModuleQuery.js +1 -1
- package/modules/hooks/queries/usePrincipalAuthModulesQuery.d.ts +4 -4
- package/modules/hooks/queries/usePrincipalAuthModulesQuery.js +1 -1
- package/modules/hooks/queries/usePrincipalsModuleQuery.d.ts +65 -0
- package/modules/hooks/queries/usePrincipalsModuleQuery.js +53 -0
- package/modules/hooks/queries/usePrincipalsModulesQuery.d.ts +69 -0
- package/modules/hooks/queries/usePrincipalsModulesQuery.js +38 -0
- package/modules/hooks/query-keys.d.ts +14 -0
- package/modules/hooks/query-keys.js +9 -1
- package/modules/orm/index.d.ts +2 -0
- package/modules/orm/index.js +2 -0
- package/modules/orm/input-types.d.ts +190 -1
- package/modules/orm/models/index.d.ts +1 -0
- package/modules/orm/models/index.js +3 -1
- package/modules/orm/models/principalsModule.d.ts +54 -0
- package/modules/orm/models/principalsModule.js +104 -0
- package/modules/schema-types.d.ts +124 -1
- package/modules/types.d.ts +16 -0
- package/objects/schema-types.d.ts +4 -0
- package/package.json +5 -5
- package/remote/schema-types.d.ts +4 -0
- package/storage/schema-types.d.ts +4 -0
- package/usage/schema-types.d.ts +4 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions principals as authorization data, with no dependency on sessions or sign-in: the principals, principal_entities and principal_scope_overrides tables, the create/update/delete and scope mutations, the SPRT derivation that keeps a principal's capabilities in step with its owner, and the expiry sweep. The caller that opens the transaction sets jwt.claims.principal_id to a principal's user_id. Credentials for principals (API keys, child sessions, token exchange) are principal_auth_module, which builds on this one.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { principalsModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const principalsModuleQueryKey = principalsModuleKeys.detail;
|
|
12
|
+
export function usePrincipalsModuleQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: principalsModuleKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.principalsModule.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchPrincipalsModuleQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.principalsModule.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchPrincipalsModuleQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: principalsModuleKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.principalsModule.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions principals as authorization data, with no dependency on sessions or sign-in: the principals, principal_entities and principal_scope_overrides tables, the create/update/delete and scope mutations, the SPRT derivation that keeps a principal's capabilities in step with its owner, and the expiry sweep. The caller that opens the transaction sets jwt.claims.principal_id to a principal's user_id. Credentials for principals (API keys, child sessions, token exchange) are principal_auth_module, which builds on this one.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { PrincipalsModuleSelect, PrincipalsModuleWithRelations, PrincipalsModuleFilter, PrincipalsModuleOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { PrincipalsModuleSelect, PrincipalsModuleWithRelations, PrincipalsModuleFilter, PrincipalsModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const principalsModulesQueryKey: (variables?: object) => readonly ["principalsmodule", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Provisions principals as authorization data, with no dependency on sessions or sign-in: the principals, principal_entities and principal_scope_overrides tables, the create/update/delete and scope mutations, the SPRT derivation that keeps a principal's capabilities in step with its owner, and the expiry sweep. The caller that opens the transaction sets jwt.claims.principal_id to a principal's user_id. Credentials for principals (API keys, child sessions, token exchange) are principal_auth_module, which builds on this one.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = usePrincipalsModulesQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function usePrincipalsModulesQuery<S extends PrincipalsModuleSelect, TData = {
|
|
29
|
+
principalsModules: ConnectionResult<InferSelectResult<PrincipalsModuleWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, PrincipalsModuleFilter, PrincipalsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalsModuleSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
principalsModules: ConnectionResult<InferSelectResult<PrincipalsModuleWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Provisions principals as authorization data, with no dependency on sessions or sign-in: the principals, principal_entities and principal_scope_overrides tables, the create/update/delete and scope mutations, the SPRT derivation that keeps a principal's capabilities in step with its owner, and the expiry sweep. The caller that opens the transaction sets jwt.claims.principal_id to a principal's user_id. Credentials for principals (API keys, child sessions, token exchange) are principal_auth_module, which builds on this one.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchPrincipalsModulesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchPrincipalsModulesQuery<S extends PrincipalsModuleSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, PrincipalsModuleFilter, PrincipalsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalsModuleSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
principalsModules: ConnectionResult<InferSelectResult<PrincipalsModuleWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Provisions principals as authorization data, with no dependency on sessions or sign-in: the principals, principal_entities and principal_scope_overrides tables, the create/update/delete and scope mutations, the SPRT derivation that keeps a principal's capabilities in step with its owner, and the expiry sweep. The caller that opens the transaction sets jwt.claims.principal_id to a principal's user_id. Credentials for principals (API keys, child sessions, token exchange) are principal_auth_module, which builds on this one.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchPrincipalsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchPrincipalsModulesQuery<S extends PrincipalsModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, PrincipalsModuleFilter, PrincipalsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalsModuleSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions principals as authorization data, with no dependency on sessions or sign-in: the principals, principal_entities and principal_scope_overrides tables, the create/update/delete and scope mutations, the SPRT derivation that keeps a principal's capabilities in step with its owner, and the expiry sweep. The caller that opens the transaction sets jwt.claims.principal_id to a principal's user_id. Credentials for principals (API keys, child sessions, token exchange) are principal_auth_module, which builds on this one.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { principalsModuleKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const principalsModulesQueryKey = principalsModuleKeys.list;
|
|
12
|
+
export function usePrincipalsModulesQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: principalsModuleKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().principalsModule.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchPrincipalsModulesQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().principalsModule.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchPrincipalsModulesQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: principalsModuleKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().principalsModule.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -430,6 +430,13 @@ export declare const principalAuthModuleKeys: {
|
|
|
430
430
|
/** Detail query keys */ readonly details: () => readonly ["principalauthmodule", "detail"];
|
|
431
431
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principalauthmodule", "detail", string | number];
|
|
432
432
|
};
|
|
433
|
+
export declare const principalsModuleKeys: {
|
|
434
|
+
/** All principalsModule queries */ readonly all: readonly ["principalsmodule"];
|
|
435
|
+
/** List query keys */ readonly lists: () => readonly ["principalsmodule", "list"];
|
|
436
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["principalsmodule", "list", object];
|
|
437
|
+
/** Detail query keys */ readonly details: () => readonly ["principalsmodule", "detail"];
|
|
438
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principalsmodule", "detail", string | number];
|
|
439
|
+
};
|
|
433
440
|
export declare const profilesModuleKeys: {
|
|
434
441
|
/** All profilesModule queries */ readonly all: readonly ["profilesmodule"];
|
|
435
442
|
/** List query keys */ readonly lists: () => readonly ["profilesmodule", "list"];
|
|
@@ -1069,6 +1076,13 @@ export declare const queryKeys: {
|
|
|
1069
1076
|
/** Detail query keys */ readonly details: () => readonly ["principalauthmodule", "detail"];
|
|
1070
1077
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principalauthmodule", "detail", string | number];
|
|
1071
1078
|
};
|
|
1079
|
+
readonly principalsModule: {
|
|
1080
|
+
/** All principalsModule queries */ readonly all: readonly ["principalsmodule"];
|
|
1081
|
+
/** List query keys */ readonly lists: () => readonly ["principalsmodule", "list"];
|
|
1082
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["principalsmodule", "list", object];
|
|
1083
|
+
/** Detail query keys */ readonly details: () => readonly ["principalsmodule", "detail"];
|
|
1084
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principalsmodule", "detail", string | number];
|
|
1085
|
+
};
|
|
1072
1086
|
readonly profilesModule: {
|
|
1073
1087
|
/** All profilesModule queries */ readonly all: readonly ["profilesmodule"];
|
|
1074
1088
|
/** List query keys */ readonly lists: () => readonly ["profilesmodule", "list"];
|
|
@@ -443,6 +443,13 @@ export const principalAuthModuleKeys = {
|
|
|
443
443
|
/** Detail query keys */ details: () => [...principalAuthModuleKeys.all, 'detail'],
|
|
444
444
|
/** Detail query key for specific item */ detail: (id) => [...principalAuthModuleKeys.details(), id],
|
|
445
445
|
};
|
|
446
|
+
export const principalsModuleKeys = {
|
|
447
|
+
/** All principalsModule queries */ all: ['principalsmodule'],
|
|
448
|
+
/** List query keys */ lists: () => [...principalsModuleKeys.all, 'list'],
|
|
449
|
+
/** List query key with variables */ list: (variables) => [...principalsModuleKeys.lists(), variables],
|
|
450
|
+
/** Detail query keys */ details: () => [...principalsModuleKeys.all, 'detail'],
|
|
451
|
+
/** Detail query key for specific item */ detail: (id) => [...principalsModuleKeys.details(), id],
|
|
452
|
+
};
|
|
446
453
|
export const profilesModuleKeys = {
|
|
447
454
|
/** All profilesModule queries */ all: ['profilesmodule'],
|
|
448
455
|
/** List query keys */ lists: () => [...profilesModuleKeys.all, 'list'],
|
|
@@ -716,6 +723,7 @@ export const queryKeys = {
|
|
|
716
723
|
phoneNumbersModule: phoneNumbersModuleKeys,
|
|
717
724
|
plansModule: plansModuleKeys,
|
|
718
725
|
principalAuthModule: principalAuthModuleKeys,
|
|
726
|
+
principalsModule: principalsModuleKeys,
|
|
719
727
|
profilesModule: profilesModuleKeys,
|
|
720
728
|
rateLimitMetersModule: rateLimitMetersModuleKeys,
|
|
721
729
|
rateLimitsModule: rateLimitsModuleKeys,
|
|
@@ -60,6 +60,7 @@ import { PagesModuleModel } from './models/pagesModule';
|
|
|
60
60
|
import { PhoneNumbersModuleModel } from './models/phoneNumbersModule';
|
|
61
61
|
import { PlansModuleModel } from './models/plansModule';
|
|
62
62
|
import { PrincipalAuthModuleModel } from './models/principalAuthModule';
|
|
63
|
+
import { PrincipalsModuleModel } from './models/principalsModule';
|
|
63
64
|
import { ProfilesModuleModel } from './models/profilesModule';
|
|
64
65
|
import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
|
|
65
66
|
import { RateLimitsModuleModel } from './models/rateLimitsModule';
|
|
@@ -178,6 +179,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
178
179
|
phoneNumbersModule: PhoneNumbersModuleModel;
|
|
179
180
|
plansModule: PlansModuleModel;
|
|
180
181
|
principalAuthModule: PrincipalAuthModuleModel;
|
|
182
|
+
principalsModule: PrincipalsModuleModel;
|
|
181
183
|
profilesModule: ProfilesModuleModel;
|
|
182
184
|
rateLimitMetersModule: RateLimitMetersModuleModel;
|
|
183
185
|
rateLimitsModule: RateLimitsModuleModel;
|
package/esm/modules/orm/index.js
CHANGED
|
@@ -65,6 +65,7 @@ import { PagesModuleModel } from './models/pagesModule';
|
|
|
65
65
|
import { PhoneNumbersModuleModel } from './models/phoneNumbersModule';
|
|
66
66
|
import { PlansModuleModel } from './models/plansModule';
|
|
67
67
|
import { PrincipalAuthModuleModel } from './models/principalAuthModule';
|
|
68
|
+
import { PrincipalsModuleModel } from './models/principalsModule';
|
|
68
69
|
import { ProfilesModuleModel } from './models/profilesModule';
|
|
69
70
|
import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
|
|
70
71
|
import { RateLimitsModuleModel } from './models/rateLimitsModule';
|
|
@@ -185,6 +186,7 @@ export function createClient(config) {
|
|
|
185
186
|
phoneNumbersModule: new PhoneNumbersModuleModel(client),
|
|
186
187
|
plansModule: new PlansModuleModel(client),
|
|
187
188
|
principalAuthModule: new PrincipalAuthModuleModel(client),
|
|
189
|
+
principalsModule: new PrincipalsModuleModel(client),
|
|
188
190
|
profilesModule: new ProfilesModuleModel(client),
|
|
189
191
|
rateLimitMetersModule: new RateLimitMetersModuleModel(client),
|
|
190
192
|
rateLimitsModule: new RateLimitsModuleModel(client),
|
|
@@ -1919,7 +1919,7 @@ export interface PlansModule {
|
|
|
1919
1919
|
publicSchemaName?: string | null;
|
|
1920
1920
|
schemaId?: string | null;
|
|
1921
1921
|
}
|
|
1922
|
-
/** Provisions
|
|
1922
|
+
/** Provisions credentials for principals on top of principals_module: API keys, child sessions, delegation and token exchange, and org API key management. Requires the built-in auth stack (sessions_module, user_auth_module); installing it provisions principals_module first when the database does not have it. Org API key functions are only generated when an org-scoped memberships_module exists for the database. */
|
|
1923
1923
|
export interface PrincipalAuthModule {
|
|
1924
1924
|
apiName?: string | null;
|
|
1925
1925
|
auditsTableId?: string | null;
|
|
@@ -1942,6 +1942,23 @@ export interface PrincipalAuthModule {
|
|
|
1942
1942
|
sweepExpiredPrincipalsFunction?: string | null;
|
|
1943
1943
|
usersTableId?: string | null;
|
|
1944
1944
|
}
|
|
1945
|
+
/** Provisions principals as authorization data, with no dependency on sessions or sign-in: the principals, principal_entities and principal_scope_overrides tables, the create/update/delete and scope mutations, the SPRT derivation that keeps a principal's capabilities in step with its owner, and the expiry sweep. The caller that opens the transaction sets jwt.claims.principal_id to a principal's user_id. Credentials for principals (API keys, child sessions, token exchange) are principal_auth_module, which builds on this one. */
|
|
1946
|
+
export interface PrincipalsModule {
|
|
1947
|
+
createOrgPrincipalFunction?: string | null;
|
|
1948
|
+
createPrincipalFunction?: string | null;
|
|
1949
|
+
databaseId?: string | null;
|
|
1950
|
+
deleteOrgPrincipalFunction?: string | null;
|
|
1951
|
+
deletePrincipalFunction?: string | null;
|
|
1952
|
+
id: string;
|
|
1953
|
+
principalEntitiesTableId?: string | null;
|
|
1954
|
+
principalScopeOverridesTableId?: string | null;
|
|
1955
|
+
principalsTableId?: string | null;
|
|
1956
|
+
principalsTableName?: string | null;
|
|
1957
|
+
privateSchemaId?: string | null;
|
|
1958
|
+
schemaId?: string | null;
|
|
1959
|
+
sweepExpiredPrincipalsFunction?: string | null;
|
|
1960
|
+
usersTableId?: string | null;
|
|
1961
|
+
}
|
|
1945
1962
|
export interface ProfilesModule {
|
|
1946
1963
|
actorTableId?: string | null;
|
|
1947
1964
|
apiName?: string | null;
|
|
@@ -2805,6 +2822,8 @@ export interface PlansModuleRelations {
|
|
|
2805
2822
|
}
|
|
2806
2823
|
export interface PrincipalAuthModuleRelations {
|
|
2807
2824
|
}
|
|
2825
|
+
export interface PrincipalsModuleRelations {
|
|
2826
|
+
}
|
|
2808
2827
|
export interface ProfilesModuleRelations {
|
|
2809
2828
|
}
|
|
2810
2829
|
export interface RateLimitMetersModuleRelations {
|
|
@@ -2932,6 +2951,7 @@ export type PagesModuleWithRelations = PagesModule & PagesModuleRelations;
|
|
|
2932
2951
|
export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations;
|
|
2933
2952
|
export type PlansModuleWithRelations = PlansModule & PlansModuleRelations;
|
|
2934
2953
|
export type PrincipalAuthModuleWithRelations = PrincipalAuthModule & PrincipalAuthModuleRelations;
|
|
2954
|
+
export type PrincipalsModuleWithRelations = PrincipalsModule & PrincipalsModuleRelations;
|
|
2935
2955
|
export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations;
|
|
2936
2956
|
export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations;
|
|
2937
2957
|
export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations;
|
|
@@ -4542,6 +4562,22 @@ export type PrincipalAuthModuleSelect = {
|
|
|
4542
4562
|
sweepExpiredPrincipalsFunction?: boolean;
|
|
4543
4563
|
usersTableId?: boolean;
|
|
4544
4564
|
};
|
|
4565
|
+
export type PrincipalsModuleSelect = {
|
|
4566
|
+
createOrgPrincipalFunction?: boolean;
|
|
4567
|
+
createPrincipalFunction?: boolean;
|
|
4568
|
+
databaseId?: boolean;
|
|
4569
|
+
deleteOrgPrincipalFunction?: boolean;
|
|
4570
|
+
deletePrincipalFunction?: boolean;
|
|
4571
|
+
id?: boolean;
|
|
4572
|
+
principalEntitiesTableId?: boolean;
|
|
4573
|
+
principalScopeOverridesTableId?: boolean;
|
|
4574
|
+
principalsTableId?: boolean;
|
|
4575
|
+
principalsTableName?: boolean;
|
|
4576
|
+
privateSchemaId?: boolean;
|
|
4577
|
+
schemaId?: boolean;
|
|
4578
|
+
sweepExpiredPrincipalsFunction?: boolean;
|
|
4579
|
+
usersTableId?: boolean;
|
|
4580
|
+
};
|
|
4545
4581
|
export type ProfilesModuleSelect = {
|
|
4546
4582
|
actorTableId?: boolean;
|
|
4547
4583
|
apiName?: boolean;
|
|
@@ -8309,6 +8345,42 @@ export interface PrincipalAuthModuleFilter {
|
|
|
8309
8345
|
/** Filter by the object’s `usersTableId` field. */
|
|
8310
8346
|
usersTableId?: UUIDFilter;
|
|
8311
8347
|
}
|
|
8348
|
+
export interface PrincipalsModuleFilter {
|
|
8349
|
+
/** Checks for all expressions in this list. */
|
|
8350
|
+
and?: PrincipalsModuleFilter[];
|
|
8351
|
+
/** Filter by the object’s `createOrgPrincipalFunction` field. */
|
|
8352
|
+
createOrgPrincipalFunction?: StringFilter;
|
|
8353
|
+
/** Filter by the object’s `createPrincipalFunction` field. */
|
|
8354
|
+
createPrincipalFunction?: StringFilter;
|
|
8355
|
+
/** Filter by the object’s `databaseId` field. */
|
|
8356
|
+
databaseId?: UUIDFilter;
|
|
8357
|
+
/** Filter by the object’s `deleteOrgPrincipalFunction` field. */
|
|
8358
|
+
deleteOrgPrincipalFunction?: StringFilter;
|
|
8359
|
+
/** Filter by the object’s `deletePrincipalFunction` field. */
|
|
8360
|
+
deletePrincipalFunction?: StringFilter;
|
|
8361
|
+
/** Filter by the object’s `id` field. */
|
|
8362
|
+
id?: UUIDFilter;
|
|
8363
|
+
/** Negates the expression. */
|
|
8364
|
+
not?: PrincipalsModuleFilter;
|
|
8365
|
+
/** Checks for any expressions in this list. */
|
|
8366
|
+
or?: PrincipalsModuleFilter[];
|
|
8367
|
+
/** Filter by the object’s `principalEntitiesTableId` field. */
|
|
8368
|
+
principalEntitiesTableId?: UUIDFilter;
|
|
8369
|
+
/** Filter by the object’s `principalScopeOverridesTableId` field. */
|
|
8370
|
+
principalScopeOverridesTableId?: UUIDFilter;
|
|
8371
|
+
/** Filter by the object’s `principalsTableId` field. */
|
|
8372
|
+
principalsTableId?: UUIDFilter;
|
|
8373
|
+
/** Filter by the object’s `principalsTableName` field. */
|
|
8374
|
+
principalsTableName?: StringFilter;
|
|
8375
|
+
/** Filter by the object’s `privateSchemaId` field. */
|
|
8376
|
+
privateSchemaId?: UUIDFilter;
|
|
8377
|
+
/** Filter by the object’s `schemaId` field. */
|
|
8378
|
+
schemaId?: UUIDFilter;
|
|
8379
|
+
/** Filter by the object’s `sweepExpiredPrincipalsFunction` field. */
|
|
8380
|
+
sweepExpiredPrincipalsFunction?: StringFilter;
|
|
8381
|
+
/** Filter by the object’s `usersTableId` field. */
|
|
8382
|
+
usersTableId?: UUIDFilter;
|
|
8383
|
+
}
|
|
8312
8384
|
export interface ProfilesModuleFilter {
|
|
8313
8385
|
/** Filter by the object’s `actorTableId` field. */
|
|
8314
8386
|
actorTableId?: UUIDFilter;
|
|
@@ -9642,6 +9714,7 @@ export type PagesModuleOrderBy = 'API_NAME_ASC' | 'API_NAME_DESC' | 'CREATED_AT_
|
|
|
9642
9714
|
export type PhoneNumbersModuleOrderBy = 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC';
|
|
9643
9715
|
export type PlansModuleOrderBy = 'API_NAME_ASC' | 'API_NAME_DESC' | 'APPLY_BILLING_PLAN_FUNCTION_ASC' | 'APPLY_BILLING_PLAN_FUNCTION_DESC' | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' | 'APPLY_PLAN_CAPS_FUNCTION_ASC' | 'APPLY_PLAN_CAPS_FUNCTION_DESC' | 'APPLY_PLAN_FUNCTION_ASC' | 'APPLY_PLAN_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PLANS_TABLE_ID_ASC' | 'PLANS_TABLE_ID_DESC' | 'PLANS_TABLE_NAME_ASC' | 'PLANS_TABLE_NAME_DESC' | 'PLAN_CAPS_TABLE_ID_ASC' | 'PLAN_CAPS_TABLE_ID_DESC' | 'PLAN_LIMITS_TABLE_ID_ASC' | 'PLAN_LIMITS_TABLE_ID_DESC' | 'PLAN_LIMITS_TABLE_NAME_ASC' | 'PLAN_LIMITS_TABLE_NAME_DESC' | 'PLAN_METER_LIMITS_TABLE_ID_ASC' | 'PLAN_METER_LIMITS_TABLE_ID_DESC' | 'PLAN_PRICING_TABLE_ID_ASC' | 'PLAN_PRICING_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC';
|
|
9644
9716
|
export type PrincipalAuthModuleOrderBy = 'API_NAME_ASC' | 'API_NAME_DESC' | 'AUDITS_TABLE_ID_ASC' | 'AUDITS_TABLE_ID_DESC' | 'CREATE_ORG_API_KEY_FUNCTION_ASC' | 'CREATE_ORG_API_KEY_FUNCTION_DESC' | 'CREATE_ORG_PRINCIPAL_FUNCTION_ASC' | 'CREATE_ORG_PRINCIPAL_FUNCTION_DESC' | 'CREATE_PRINCIPAL_FUNCTION_ASC' | 'CREATE_PRINCIPAL_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DELETE_ORG_PRINCIPAL_FUNCTION_ASC' | 'DELETE_ORG_PRINCIPAL_FUNCTION_DESC' | 'DELETE_PRINCIPAL_FUNCTION_ASC' | 'DELETE_PRINCIPAL_FUNCTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPALS_TABLE_ID_ASC' | 'PRINCIPALS_TABLE_ID_DESC' | 'PRINCIPALS_TABLE_NAME_ASC' | 'PRINCIPALS_TABLE_NAME_DESC' | 'PRINCIPAL_ENTITIES_TABLE_ID_ASC' | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_ASC' | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC';
|
|
9717
|
+
export type PrincipalsModuleOrderBy = 'CREATE_ORG_PRINCIPAL_FUNCTION_ASC' | 'CREATE_ORG_PRINCIPAL_FUNCTION_DESC' | 'CREATE_PRINCIPAL_FUNCTION_ASC' | 'CREATE_PRINCIPAL_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DELETE_ORG_PRINCIPAL_FUNCTION_ASC' | 'DELETE_ORG_PRINCIPAL_FUNCTION_DESC' | 'DELETE_PRINCIPAL_FUNCTION_ASC' | 'DELETE_PRINCIPAL_FUNCTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPALS_TABLE_ID_ASC' | 'PRINCIPALS_TABLE_ID_DESC' | 'PRINCIPALS_TABLE_NAME_ASC' | 'PRINCIPALS_TABLE_NAME_DESC' | 'PRINCIPAL_ENTITIES_TABLE_ID_ASC' | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_ASC' | 'SWEEP_EXPIRED_PRINCIPALS_FUNCTION_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC';
|
|
9645
9718
|
export type ProfilesModuleOrderBy = 'ACTOR_TABLE_ID_ASC' | 'ACTOR_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'CAPABILITIES_TABLE_ID_ASC' | 'CAPABILITIES_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' | 'MEMBERSHIP_PROFILES_TABLE_ID_ASC' | 'MEMBERSHIP_PROFILES_TABLE_ID_DESC' | 'MEMBERSHIP_PROFILES_TABLE_NAME_ASC' | 'MEMBERSHIP_PROFILES_TABLE_NAME_DESC' | 'NATURAL' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' | 'PROFILE_CAPABILITIES_TABLE_ID_ASC' | 'PROFILE_CAPABILITIES_TABLE_ID_DESC' | 'PROFILE_CAPABILITIES_TABLE_NAME_ASC' | 'PROFILE_CAPABILITIES_TABLE_NAME_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' | 'PROFILE_GRANTS_TABLE_ID_ASC' | 'PROFILE_GRANTS_TABLE_ID_DESC' | 'PROFILE_GRANTS_TABLE_NAME_ASC' | 'PROFILE_GRANTS_TABLE_NAME_DESC' | 'PROFILE_TEMPLATES_TABLE_ID_ASC' | 'PROFILE_TEMPLATES_TABLE_ID_DESC' | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' | 'PROFILE_TEMPLATES_TABLE_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC';
|
|
9646
9719
|
export type RateLimitMetersModuleOrderBy = 'API_NAME_ASC' | 'API_NAME_DESC' | 'CHECK_RATE_LIMIT_FUNCTION_ASC' | 'CHECK_RATE_LIMIT_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' | 'RATE_LIMIT_STATE_TABLE_ID_ASC' | 'RATE_LIMIT_STATE_TABLE_ID_DESC' | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC';
|
|
9647
9720
|
export type RateLimitsModuleOrderBy = 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IP_RATE_LIMITS_TABLE_ID_ASC' | 'IP_RATE_LIMITS_TABLE_ID_DESC' | 'IP_RATE_LIMITS_TABLE_NAME_ASC' | 'IP_RATE_LIMITS_TABLE_NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'RATE_LIMITS_TABLE_ID_ASC' | 'RATE_LIMITS_TABLE_ID_DESC' | 'RATE_LIMITS_TABLE_NAME_ASC' | 'RATE_LIMITS_TABLE_NAME_DESC' | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' | 'RATE_LIMIT_SETTINGS_TABLE_NAME_ASC' | 'RATE_LIMIT_SETTINGS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC';
|
|
@@ -13009,6 +13082,48 @@ export interface DeletePrincipalAuthModuleInput {
|
|
|
13009
13082
|
clientMutationId?: string;
|
|
13010
13083
|
id: string;
|
|
13011
13084
|
}
|
|
13085
|
+
export interface CreatePrincipalsModuleInput {
|
|
13086
|
+
clientMutationId?: string;
|
|
13087
|
+
principalsModule: {
|
|
13088
|
+
createOrgPrincipalFunction?: string;
|
|
13089
|
+
createPrincipalFunction?: string;
|
|
13090
|
+
databaseId: string;
|
|
13091
|
+
deleteOrgPrincipalFunction?: string;
|
|
13092
|
+
deletePrincipalFunction?: string;
|
|
13093
|
+
principalEntitiesTableId?: string;
|
|
13094
|
+
principalScopeOverridesTableId?: string;
|
|
13095
|
+
principalsTableId?: string;
|
|
13096
|
+
principalsTableName?: string;
|
|
13097
|
+
privateSchemaId?: string;
|
|
13098
|
+
schemaId?: string;
|
|
13099
|
+
sweepExpiredPrincipalsFunction?: string;
|
|
13100
|
+
usersTableId?: string;
|
|
13101
|
+
};
|
|
13102
|
+
}
|
|
13103
|
+
export interface PrincipalsModulePatch {
|
|
13104
|
+
createOrgPrincipalFunction?: string | null;
|
|
13105
|
+
createPrincipalFunction?: string | null;
|
|
13106
|
+
databaseId?: string | null;
|
|
13107
|
+
deleteOrgPrincipalFunction?: string | null;
|
|
13108
|
+
deletePrincipalFunction?: string | null;
|
|
13109
|
+
principalEntitiesTableId?: string | null;
|
|
13110
|
+
principalScopeOverridesTableId?: string | null;
|
|
13111
|
+
principalsTableId?: string | null;
|
|
13112
|
+
principalsTableName?: string | null;
|
|
13113
|
+
privateSchemaId?: string | null;
|
|
13114
|
+
schemaId?: string | null;
|
|
13115
|
+
sweepExpiredPrincipalsFunction?: string | null;
|
|
13116
|
+
usersTableId?: string | null;
|
|
13117
|
+
}
|
|
13118
|
+
export interface UpdatePrincipalsModuleInput {
|
|
13119
|
+
clientMutationId?: string;
|
|
13120
|
+
id: string;
|
|
13121
|
+
principalsModulePatch: PrincipalsModulePatch;
|
|
13122
|
+
}
|
|
13123
|
+
export interface DeletePrincipalsModuleInput {
|
|
13124
|
+
clientMutationId?: string;
|
|
13125
|
+
id: string;
|
|
13126
|
+
}
|
|
13012
13127
|
export interface CreateProfilesModuleInput {
|
|
13013
13128
|
clientMutationId?: string;
|
|
13014
13129
|
profilesModule: {
|
|
@@ -16470,6 +16585,23 @@ export interface PrincipalAuthModuleInput {
|
|
|
16470
16585
|
sweepExpiredPrincipalsFunction?: string;
|
|
16471
16586
|
usersTableId?: string;
|
|
16472
16587
|
}
|
|
16588
|
+
/** An input for mutations affecting `PrincipalsModule` */
|
|
16589
|
+
export interface PrincipalsModuleInput {
|
|
16590
|
+
createOrgPrincipalFunction?: string;
|
|
16591
|
+
createPrincipalFunction?: string;
|
|
16592
|
+
databaseId: string;
|
|
16593
|
+
deleteOrgPrincipalFunction?: string;
|
|
16594
|
+
deletePrincipalFunction?: string;
|
|
16595
|
+
id?: string;
|
|
16596
|
+
principalEntitiesTableId?: string;
|
|
16597
|
+
principalScopeOverridesTableId?: string;
|
|
16598
|
+
principalsTableId?: string;
|
|
16599
|
+
principalsTableName?: string;
|
|
16600
|
+
privateSchemaId?: string;
|
|
16601
|
+
schemaId?: string;
|
|
16602
|
+
sweepExpiredPrincipalsFunction?: string;
|
|
16603
|
+
usersTableId?: string;
|
|
16604
|
+
}
|
|
16473
16605
|
/** An input for mutations affecting `ProfilesModule` */
|
|
16474
16606
|
export interface ProfilesModuleInput {
|
|
16475
16607
|
actorTableId?: string;
|
|
@@ -21935,6 +22067,51 @@ export type DeletePrincipalAuthModulePayloadSelect = {
|
|
|
21935
22067
|
select: PrincipalAuthModuleEdgeSelect;
|
|
21936
22068
|
};
|
|
21937
22069
|
};
|
|
22070
|
+
export interface CreatePrincipalsModulePayload {
|
|
22071
|
+
clientMutationId?: string | null;
|
|
22072
|
+
/** The `PrincipalsModule` that was created by this mutation. */
|
|
22073
|
+
principalsModule?: PrincipalsModule | null;
|
|
22074
|
+
principalsModuleEdge?: PrincipalsModuleEdge | null;
|
|
22075
|
+
}
|
|
22076
|
+
export type CreatePrincipalsModulePayloadSelect = {
|
|
22077
|
+
clientMutationId?: boolean;
|
|
22078
|
+
principalsModule?: {
|
|
22079
|
+
select: PrincipalsModuleSelect;
|
|
22080
|
+
};
|
|
22081
|
+
principalsModuleEdge?: {
|
|
22082
|
+
select: PrincipalsModuleEdgeSelect;
|
|
22083
|
+
};
|
|
22084
|
+
};
|
|
22085
|
+
export interface UpdatePrincipalsModulePayload {
|
|
22086
|
+
clientMutationId?: string | null;
|
|
22087
|
+
/** The `PrincipalsModule` that was updated by this mutation. */
|
|
22088
|
+
principalsModule?: PrincipalsModule | null;
|
|
22089
|
+
principalsModuleEdge?: PrincipalsModuleEdge | null;
|
|
22090
|
+
}
|
|
22091
|
+
export type UpdatePrincipalsModulePayloadSelect = {
|
|
22092
|
+
clientMutationId?: boolean;
|
|
22093
|
+
principalsModule?: {
|
|
22094
|
+
select: PrincipalsModuleSelect;
|
|
22095
|
+
};
|
|
22096
|
+
principalsModuleEdge?: {
|
|
22097
|
+
select: PrincipalsModuleEdgeSelect;
|
|
22098
|
+
};
|
|
22099
|
+
};
|
|
22100
|
+
export interface DeletePrincipalsModulePayload {
|
|
22101
|
+
clientMutationId?: string | null;
|
|
22102
|
+
/** The `PrincipalsModule` that was deleted by this mutation. */
|
|
22103
|
+
principalsModule?: PrincipalsModule | null;
|
|
22104
|
+
principalsModuleEdge?: PrincipalsModuleEdge | null;
|
|
22105
|
+
}
|
|
22106
|
+
export type DeletePrincipalsModulePayloadSelect = {
|
|
22107
|
+
clientMutationId?: boolean;
|
|
22108
|
+
principalsModule?: {
|
|
22109
|
+
select: PrincipalsModuleSelect;
|
|
22110
|
+
};
|
|
22111
|
+
principalsModuleEdge?: {
|
|
22112
|
+
select: PrincipalsModuleEdgeSelect;
|
|
22113
|
+
};
|
|
22114
|
+
};
|
|
21938
22115
|
export interface CreateProfilesModulePayload {
|
|
21939
22116
|
clientMutationId?: string | null;
|
|
21940
22117
|
/** The `ProfilesModule` that was created by this mutation. */
|
|
@@ -23882,6 +24059,18 @@ export type PrincipalAuthModuleEdgeSelect = {
|
|
|
23882
24059
|
select: PrincipalAuthModuleSelect;
|
|
23883
24060
|
};
|
|
23884
24061
|
};
|
|
24062
|
+
/** A `PrincipalsModule` edge in the connection. */
|
|
24063
|
+
export interface PrincipalsModuleEdge {
|
|
24064
|
+
cursor?: string | null;
|
|
24065
|
+
/** The `PrincipalsModule` at the end of the edge. */
|
|
24066
|
+
node?: PrincipalsModule | null;
|
|
24067
|
+
}
|
|
24068
|
+
export type PrincipalsModuleEdgeSelect = {
|
|
24069
|
+
cursor?: boolean;
|
|
24070
|
+
node?: {
|
|
24071
|
+
select: PrincipalsModuleSelect;
|
|
24072
|
+
};
|
|
24073
|
+
};
|
|
23885
24074
|
/** A `ProfilesModule` edge in the connection. */
|
|
23886
24075
|
export interface ProfilesModuleEdge {
|
|
23887
24076
|
cursor?: string | null;
|
|
@@ -64,6 +64,7 @@ export { PagesModuleModel } from './pagesModule';
|
|
|
64
64
|
export { PhoneNumbersModuleModel } from './phoneNumbersModule';
|
|
65
65
|
export { PlansModuleModel } from './plansModule';
|
|
66
66
|
export { PrincipalAuthModuleModel } from './principalAuthModule';
|
|
67
|
+
export { PrincipalsModuleModel } from './principalsModule';
|
|
67
68
|
export { ProfilesModuleModel } from './profilesModule';
|
|
68
69
|
export { RateLimitMetersModuleModel } from './rateLimitMetersModule';
|
|
69
70
|
export { RateLimitsModuleModel } from './rateLimitsModule';
|
|
@@ -64,6 +64,7 @@ export { PagesModuleModel } from './pagesModule';
|
|
|
64
64
|
export { PhoneNumbersModuleModel } from './phoneNumbersModule';
|
|
65
65
|
export { PlansModuleModel } from './plansModule';
|
|
66
66
|
export { PrincipalAuthModuleModel } from './principalAuthModule';
|
|
67
|
+
export { PrincipalsModuleModel } from './principalsModule';
|
|
67
68
|
export { ProfilesModuleModel } from './profilesModule';
|
|
68
69
|
export { RateLimitMetersModuleModel } from './rateLimitMetersModule';
|
|
69
70
|
export { RateLimitsModuleModel } from './rateLimitsModule';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PrincipalsModule model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { PrincipalsModuleWithRelations, PrincipalsModuleSelect, PrincipalsModuleFilter, PrincipalsModuleOrderBy, CreatePrincipalsModuleInput, PrincipalsModulePatch } from '../input-types';
|
|
10
|
+
export declare class PrincipalsModuleModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends PrincipalsModuleSelect>(args: FindManyArgs<S, PrincipalsModuleFilter, PrincipalsModuleOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, PrincipalsModuleSelect>): QueryBuilder<{
|
|
16
|
+
principalsModules: ConnectionResult<InferSelectResult<PrincipalsModuleWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends PrincipalsModuleSelect>(args: FindFirstArgs<S, PrincipalsModuleFilter, PrincipalsModuleOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, PrincipalsModuleSelect>): QueryBuilder<{
|
|
21
|
+
principalsModule: InferSelectResult<PrincipalsModuleWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends PrincipalsModuleSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, PrincipalsModuleSelect>): QueryBuilder<{
|
|
27
|
+
principalsModule: InferSelectResult<PrincipalsModuleWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends PrincipalsModuleSelect>(args: CreateArgs<S, CreatePrincipalsModuleInput['principalsModule']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, PrincipalsModuleSelect>): QueryBuilder<{
|
|
32
|
+
createPrincipalsModule: {
|
|
33
|
+
principalsModule: InferSelectResult<PrincipalsModuleWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends PrincipalsModuleSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, PrincipalsModulePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, PrincipalsModuleSelect>): QueryBuilder<{
|
|
41
|
+
updatePrincipalsModule: {
|
|
42
|
+
principalsModule: InferSelectResult<PrincipalsModuleWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends PrincipalsModuleSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, PrincipalsModuleSelect>): QueryBuilder<{
|
|
50
|
+
deletePrincipalsModule: {
|
|
51
|
+
principalsModule: InferSelectResult<PrincipalsModuleWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|