@constructive-io/react 1.21.47 → 1.21.49

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.
Files changed (109) hide show
  1. package/admin/schema-types.d.ts +4 -0
  2. package/agent/schema-types.d.ts +4 -0
  3. package/api/orm/input-types.d.ts +663 -69
  4. package/api/orm/input-types.js +22 -0
  5. package/api/schema-types.d.ts +199 -44
  6. package/auth/schema-types.d.ts +4 -0
  7. package/compute/schema-types.d.ts +4 -0
  8. package/config/schema-types.d.ts +4 -0
  9. package/esm/admin/schema-types.d.ts +4 -0
  10. package/esm/agent/schema-types.d.ts +4 -0
  11. package/esm/api/orm/input-types.d.ts +663 -69
  12. package/esm/api/orm/input-types.js +22 -0
  13. package/esm/api/schema-types.d.ts +199 -44
  14. package/esm/auth/schema-types.d.ts +4 -0
  15. package/esm/compute/schema-types.d.ts +4 -0
  16. package/esm/config/schema-types.d.ts +4 -0
  17. package/esm/infra/schema-types.d.ts +4 -0
  18. package/esm/modules/hooks/index.d.ts +1 -1
  19. package/esm/modules/hooks/index.js +1 -1
  20. package/esm/modules/hooks/invalidation.d.ts +6 -0
  21. package/esm/modules/hooks/invalidation.js +17 -1
  22. package/esm/modules/hooks/mutation-keys.d.ts +12 -0
  23. package/esm/modules/hooks/mutation-keys.js +7 -0
  24. package/esm/modules/hooks/mutations/index.d.ts +3 -0
  25. package/esm/modules/hooks/mutations/index.js +3 -0
  26. package/esm/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.d.ts +2 -2
  27. package/esm/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.js +1 -1
  28. package/esm/modules/hooks/mutations/useCreatePrincipalsModuleMutation.d.ts +34 -0
  29. package/esm/modules/hooks/mutations/useCreatePrincipalsModuleMutation.js +31 -0
  30. package/esm/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.d.ts +2 -2
  31. package/esm/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.js +1 -1
  32. package/esm/modules/hooks/mutations/useDeletePrincipalsModuleMutation.d.ts +38 -0
  33. package/esm/modules/hooks/mutations/useDeletePrincipalsModuleMutation.js +36 -0
  34. package/esm/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.d.ts +2 -2
  35. package/esm/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.js +1 -1
  36. package/esm/modules/hooks/mutations/useUpdatePrincipalsModuleMutation.d.ts +40 -0
  37. package/esm/modules/hooks/mutations/useUpdatePrincipalsModuleMutation.js +37 -0
  38. package/esm/modules/hooks/queries/index.d.ts +2 -0
  39. package/esm/modules/hooks/queries/index.js +2 -0
  40. package/esm/modules/hooks/queries/usePrincipalAuthModuleQuery.d.ts +4 -4
  41. package/esm/modules/hooks/queries/usePrincipalAuthModuleQuery.js +1 -1
  42. package/esm/modules/hooks/queries/usePrincipalAuthModulesQuery.d.ts +4 -4
  43. package/esm/modules/hooks/queries/usePrincipalAuthModulesQuery.js +1 -1
  44. package/esm/modules/hooks/queries/usePrincipalsModuleQuery.d.ts +65 -0
  45. package/esm/modules/hooks/queries/usePrincipalsModuleQuery.js +47 -0
  46. package/esm/modules/hooks/queries/usePrincipalsModulesQuery.d.ts +69 -0
  47. package/esm/modules/hooks/queries/usePrincipalsModulesQuery.js +32 -0
  48. package/esm/modules/hooks/query-keys.d.ts +14 -0
  49. package/esm/modules/hooks/query-keys.js +8 -0
  50. package/esm/modules/orm/index.d.ts +2 -0
  51. package/esm/modules/orm/index.js +2 -0
  52. package/esm/modules/orm/input-types.d.ts +190 -1
  53. package/esm/modules/orm/models/index.d.ts +1 -0
  54. package/esm/modules/orm/models/index.js +1 -0
  55. package/esm/modules/orm/models/principalsModule.d.ts +54 -0
  56. package/esm/modules/orm/models/principalsModule.js +100 -0
  57. package/esm/modules/schema-types.d.ts +124 -1
  58. package/esm/modules/types.d.ts +16 -0
  59. package/esm/objects/schema-types.d.ts +4 -0
  60. package/esm/remote/schema-types.d.ts +4 -0
  61. package/esm/storage/schema-types.d.ts +4 -0
  62. package/esm/usage/schema-types.d.ts +4 -0
  63. package/infra/schema-types.d.ts +4 -0
  64. package/modules/hooks/index.d.ts +1 -1
  65. package/modules/hooks/index.js +1 -1
  66. package/modules/hooks/invalidation.d.ts +6 -0
  67. package/modules/hooks/invalidation.js +16 -0
  68. package/modules/hooks/mutation-keys.d.ts +12 -0
  69. package/modules/hooks/mutation-keys.js +8 -1
  70. package/modules/hooks/mutations/index.d.ts +3 -0
  71. package/modules/hooks/mutations/index.js +3 -0
  72. package/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.d.ts +2 -2
  73. package/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.js +1 -1
  74. package/modules/hooks/mutations/useCreatePrincipalsModuleMutation.d.ts +34 -0
  75. package/modules/hooks/mutations/useCreatePrincipalsModuleMutation.js +34 -0
  76. package/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.d.ts +2 -2
  77. package/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.js +1 -1
  78. package/modules/hooks/mutations/useDeletePrincipalsModuleMutation.d.ts +38 -0
  79. package/modules/hooks/mutations/useDeletePrincipalsModuleMutation.js +39 -0
  80. package/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.d.ts +2 -2
  81. package/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.js +1 -1
  82. package/modules/hooks/mutations/useUpdatePrincipalsModuleMutation.d.ts +40 -0
  83. package/modules/hooks/mutations/useUpdatePrincipalsModuleMutation.js +40 -0
  84. package/modules/hooks/queries/index.d.ts +2 -0
  85. package/modules/hooks/queries/index.js +2 -0
  86. package/modules/hooks/queries/usePrincipalAuthModuleQuery.d.ts +4 -4
  87. package/modules/hooks/queries/usePrincipalAuthModuleQuery.js +1 -1
  88. package/modules/hooks/queries/usePrincipalAuthModulesQuery.d.ts +4 -4
  89. package/modules/hooks/queries/usePrincipalAuthModulesQuery.js +1 -1
  90. package/modules/hooks/queries/usePrincipalsModuleQuery.d.ts +65 -0
  91. package/modules/hooks/queries/usePrincipalsModuleQuery.js +53 -0
  92. package/modules/hooks/queries/usePrincipalsModulesQuery.d.ts +69 -0
  93. package/modules/hooks/queries/usePrincipalsModulesQuery.js +38 -0
  94. package/modules/hooks/query-keys.d.ts +14 -0
  95. package/modules/hooks/query-keys.js +9 -1
  96. package/modules/orm/index.d.ts +2 -0
  97. package/modules/orm/index.js +2 -0
  98. package/modules/orm/input-types.d.ts +190 -1
  99. package/modules/orm/models/index.d.ts +1 -0
  100. package/modules/orm/models/index.js +3 -1
  101. package/modules/orm/models/principalsModule.d.ts +54 -0
  102. package/modules/orm/models/principalsModule.js +104 -0
  103. package/modules/schema-types.d.ts +124 -1
  104. package/modules/types.d.ts +16 -0
  105. package/objects/schema-types.d.ts +4 -0
  106. package/package.json +5 -5
  107. package/remote/schema-types.d.ts +4 -0
  108. package/storage/schema-types.d.ts +4 -0
  109. package/usage/schema-types.d.ts +4 -0
@@ -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,38 @@
1
+ "use strict";
2
+ /**
3
+ * 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.
4
+ * @generated by @constructive-io/graphql-codegen
5
+ * DO NOT EDIT - changes will be overwritten
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.principalsModulesQueryKey = void 0;
9
+ exports.usePrincipalsModulesQuery = usePrincipalsModulesQuery;
10
+ exports.fetchPrincipalsModulesQuery = fetchPrincipalsModulesQuery;
11
+ exports.prefetchPrincipalsModulesQuery = prefetchPrincipalsModulesQuery;
12
+ const react_query_1 = require("@tanstack/react-query");
13
+ const client_1 = require("../client");
14
+ const selection_1 = require("../selection");
15
+ const query_keys_1 = require("../query-keys");
16
+ /** Query key factory - re-exported from query-keys.ts */
17
+ exports.principalsModulesQueryKey = query_keys_1.principalsModuleKeys.list;
18
+ function usePrincipalsModulesQuery(params) {
19
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
20
+ const { selection: _selection, ...queryOptions } = params ?? {};
21
+ void _selection;
22
+ return (0, react_query_1.useQuery)({
23
+ queryKey: query_keys_1.principalsModuleKeys.list(args),
24
+ queryFn: () => (0, client_1.getClient)().principalsModule.findMany(args).unwrap(),
25
+ ...queryOptions,
26
+ });
27
+ }
28
+ async function fetchPrincipalsModulesQuery(params) {
29
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
+ return (0, client_1.getClient)().principalsModule.findMany(args).unwrap();
31
+ }
32
+ async function prefetchPrincipalsModulesQuery(queryClient, params) {
33
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
+ await queryClient.prefetchQuery({
35
+ queryKey: query_keys_1.principalsModuleKeys.list(args),
36
+ queryFn: () => (0, client_1.getClient)().principalsModule.findMany(args).unwrap(),
37
+ });
38
+ }
@@ -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"];
@@ -6,7 +6,7 @@
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.limitsModuleKeys = exports.k8sAdmissionModuleKeys = exports.invitesModuleKeys = exports.internalSecretsModuleKeys = exports.internalConfigModuleKeys = exports.integrationProvidersModuleKeys = exports.infraSecretsModuleKeys = exports.infraConfigModuleKeys = exports.inferenceLogModuleKeys = exports.imageModuleKeys = exports.identityProvidersModuleKeys = exports.i18NModuleKeys = exports.hierarchyModuleKeys = exports.graphModuleKeys = exports.graphExecutionModuleKeys = exports.functionModuleKeys = exports.functionInvocationModuleKeys = exports.functionDeploymentModuleKeys = exports.fileRefFieldKeys = exports.eventsModuleKeys = exports.entityTypeProvisionKeys = exports.emailsModuleKeys = exports.emailSenderModuleKeys = exports.domainModuleKeys = exports.devicesModuleKeys = exports.denormalizedTableFieldKeys = exports.defaultIdsModuleKeys = exports.dbUsageModuleKeys = exports.dbPresetModuleKeys = exports.dbPoolKeys = exports.dbPoolConfigKeys = exports.databaseSettingsModuleKeys = exports.databaseProvisionModuleKeys = exports.dataCapabilitiesFieldKeys = exports.cryptoAuthModuleKeys = exports.cryptoAddressesModuleKeys = exports.contentPresetModuleKeys = exports.connectedAccountsModuleKeys = exports.computeLogModuleKeys = exports.clusterModuleKeys = exports.catalogModuleKeys = exports.capabilitiesModuleKeys = exports.blueprintTemplateKeys = exports.blueprintConstructionKeys = exports.blueprintKeys = exports.billingProviderModuleKeys = exports.billingModuleKeys = exports.appModuleKeys = exports.apiSurfaceModuleKeys = exports.agentModuleKeys = void 0;
9
- exports.queryKeys = exports.webhookModuleKeys = exports.webauthnCredentialsModuleKeys = exports.webauthnAuthModuleKeys = exports.usersModuleKeys = exports.userStateModuleKeys = exports.userSettingsSecurityModuleKeys = exports.userSettingsModuleKeys = exports.userCredentialsModuleKeys = exports.userAuthModuleKeys = exports.transferLogModuleKeys = exports.storageModuleKeys = exports.storageLogModuleKeys = exports.siteSurfaceModuleKeys = exports.sessionsModuleKeys = exports.sessionSecretsModuleKeys = exports.secureTableProvisionKeys = exports.scopeTypesModuleKeys = exports.routeModuleKeys = exports.rlsModuleKeys = exports.resourceModuleKeys = exports.repositoryModuleKeys = exports.relationProvisionKeys = exports.refusalLogModuleKeys = exports.realtimeModuleKeys = exports.rateLimitsModuleKeys = exports.rateLimitMetersModuleKeys = exports.profilesModuleKeys = exports.principalAuthModuleKeys = exports.plansModuleKeys = exports.phoneNumbersModuleKeys = exports.pagesModuleKeys = exports.oauthRequestsModuleKeys = exports.notificationsModuleKeys = exports.namespaceModuleKeys = exports.merkleStoreModuleKeys = exports.membershipsModuleKeys = exports.membershipTypesModuleKeys = exports.machineModuleKeys = void 0;
9
+ exports.queryKeys = exports.webhookModuleKeys = exports.webauthnCredentialsModuleKeys = exports.webauthnAuthModuleKeys = exports.usersModuleKeys = exports.userStateModuleKeys = exports.userSettingsSecurityModuleKeys = exports.userSettingsModuleKeys = exports.userCredentialsModuleKeys = exports.userAuthModuleKeys = exports.transferLogModuleKeys = exports.storageModuleKeys = exports.storageLogModuleKeys = exports.siteSurfaceModuleKeys = exports.sessionsModuleKeys = exports.sessionSecretsModuleKeys = exports.secureTableProvisionKeys = exports.scopeTypesModuleKeys = exports.routeModuleKeys = exports.rlsModuleKeys = exports.resourceModuleKeys = exports.repositoryModuleKeys = exports.relationProvisionKeys = exports.refusalLogModuleKeys = exports.realtimeModuleKeys = exports.rateLimitsModuleKeys = exports.rateLimitMetersModuleKeys = exports.profilesModuleKeys = exports.principalsModuleKeys = exports.principalAuthModuleKeys = exports.plansModuleKeys = exports.phoneNumbersModuleKeys = exports.pagesModuleKeys = exports.oauthRequestsModuleKeys = exports.notificationsModuleKeys = exports.namespaceModuleKeys = exports.merkleStoreModuleKeys = exports.membershipsModuleKeys = exports.membershipTypesModuleKeys = exports.machineModuleKeys = void 0;
10
10
  // ============================================================================
11
11
  // This file provides a centralized, type-safe query key factory following
12
12
  // the lukemorales query-key-factory pattern for React Query.
@@ -447,6 +447,13 @@ exports.principalAuthModuleKeys = {
447
447
  /** Detail query keys */ details: () => [...exports.principalAuthModuleKeys.all, 'detail'],
448
448
  /** Detail query key for specific item */ detail: (id) => [...exports.principalAuthModuleKeys.details(), id],
449
449
  };
450
+ exports.principalsModuleKeys = {
451
+ /** All principalsModule queries */ all: ['principalsmodule'],
452
+ /** List query keys */ lists: () => [...exports.principalsModuleKeys.all, 'list'],
453
+ /** List query key with variables */ list: (variables) => [...exports.principalsModuleKeys.lists(), variables],
454
+ /** Detail query keys */ details: () => [...exports.principalsModuleKeys.all, 'detail'],
455
+ /** Detail query key for specific item */ detail: (id) => [...exports.principalsModuleKeys.details(), id],
456
+ };
450
457
  exports.profilesModuleKeys = {
451
458
  /** All profilesModule queries */ all: ['profilesmodule'],
452
459
  /** List query keys */ lists: () => [...exports.profilesModuleKeys.all, 'list'],
@@ -720,6 +727,7 @@ exports.queryKeys = {
720
727
  phoneNumbersModule: exports.phoneNumbersModuleKeys,
721
728
  plansModule: exports.plansModuleKeys,
722
729
  principalAuthModule: exports.principalAuthModuleKeys,
730
+ principalsModule: exports.principalsModuleKeys,
723
731
  profilesModule: exports.profilesModuleKeys,
724
732
  rateLimitMetersModule: exports.rateLimitMetersModuleKeys,
725
733
  rateLimitsModule: exports.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;
@@ -83,6 +83,7 @@ const pagesModule_1 = require("./models/pagesModule");
83
83
  const phoneNumbersModule_1 = require("./models/phoneNumbersModule");
84
84
  const plansModule_1 = require("./models/plansModule");
85
85
  const principalAuthModule_1 = require("./models/principalAuthModule");
86
+ const principalsModule_1 = require("./models/principalsModule");
86
87
  const profilesModule_1 = require("./models/profilesModule");
87
88
  const rateLimitMetersModule_1 = require("./models/rateLimitMetersModule");
88
89
  const rateLimitsModule_1 = require("./models/rateLimitsModule");
@@ -207,6 +208,7 @@ function createClient(config) {
207
208
  phoneNumbersModule: new phoneNumbersModule_1.PhoneNumbersModuleModel(client),
208
209
  plansModule: new plansModule_1.PlansModuleModel(client),
209
210
  principalAuthModule: new principalAuthModule_1.PrincipalAuthModuleModel(client),
211
+ principalsModule: new principalsModule_1.PrincipalsModuleModel(client),
210
212
  profilesModule: new profilesModule_1.ProfilesModuleModel(client),
211
213
  rateLimitMetersModule: new rateLimitMetersModule_1.RateLimitMetersModuleModel(client),
212
214
  rateLimitsModule: new rateLimitsModule_1.RateLimitsModuleModel(client),
@@ -1919,7 +1919,7 @@ export interface PlansModule {
1919
1919
  publicSchemaName?: string | null;
1920
1920
  schemaId?: string | null;
1921
1921
  }
1922
- /** Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. */
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';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LimitsModuleModel = exports.K8sAdmissionModuleModel = exports.InvitesModuleModel = exports.InternalSecretsModuleModel = exports.InternalConfigModuleModel = exports.IntegrationProvidersModuleModel = exports.InfraSecretsModuleModel = exports.InfraConfigModuleModel = exports.InferenceLogModuleModel = exports.ImageModuleModel = exports.IdentityProvidersModuleModel = exports.I18NModuleModel = exports.HierarchyModuleModel = exports.GraphModuleModel = exports.GraphExecutionModuleModel = exports.FunctionModuleModel = exports.FunctionInvocationModuleModel = exports.FunctionDeploymentModuleModel = exports.FileRefFieldModel = exports.EventsModuleModel = exports.EntityTypeProvisionModel = exports.EmailsModuleModel = exports.EmailSenderModuleModel = exports.DomainModuleModel = exports.DevicesModuleModel = exports.DenormalizedTableFieldModel = exports.DefaultIdsModuleModel = exports.DbUsageModuleModel = exports.DbPresetModuleModel = exports.DbPoolModel = exports.DbPoolConfigModel = exports.DatabaseSettingsModuleModel = exports.DatabaseProvisionModuleModel = exports.DataCapabilitiesFieldModel = exports.CryptoAuthModuleModel = exports.CryptoAddressesModuleModel = exports.ContentPresetModuleModel = exports.ConnectedAccountsModuleModel = exports.ComputeLogModuleModel = exports.ClusterModuleModel = exports.CatalogModuleModel = exports.CapabilitiesModuleModel = exports.BlueprintTemplateModel = exports.BlueprintConstructionModel = exports.BlueprintModel = exports.BillingProviderModuleModel = exports.BillingModuleModel = exports.AppModuleModel = exports.ApiSurfaceModuleModel = exports.AgentModuleModel = void 0;
4
- exports.WebhookModuleModel = exports.WebauthnCredentialsModuleModel = exports.WebauthnAuthModuleModel = exports.UsersModuleModel = exports.UserStateModuleModel = exports.UserSettingsSecurityModuleModel = exports.UserSettingsModuleModel = exports.UserCredentialsModuleModel = exports.UserAuthModuleModel = exports.TransferLogModuleModel = exports.StorageModuleModel = exports.StorageLogModuleModel = exports.SiteSurfaceModuleModel = exports.SessionsModuleModel = exports.SessionSecretsModuleModel = exports.SecureTableProvisionModel = exports.ScopeTypesModuleModel = exports.RouteModuleModel = exports.RlsModuleModel = exports.ResourceModuleModel = exports.RepositoryModuleModel = exports.RelationProvisionModel = exports.RefusalLogModuleModel = exports.RealtimeModuleModel = exports.RateLimitsModuleModel = exports.RateLimitMetersModuleModel = exports.ProfilesModuleModel = exports.PrincipalAuthModuleModel = exports.PlansModuleModel = exports.PhoneNumbersModuleModel = exports.PagesModuleModel = exports.OauthRequestsModuleModel = exports.NotificationsModuleModel = exports.NamespaceModuleModel = exports.MerkleStoreModuleModel = exports.MembershipsModuleModel = exports.MembershipTypesModuleModel = exports.MachineModuleModel = void 0;
4
+ exports.WebhookModuleModel = exports.WebauthnCredentialsModuleModel = exports.WebauthnAuthModuleModel = exports.UsersModuleModel = exports.UserStateModuleModel = exports.UserSettingsSecurityModuleModel = exports.UserSettingsModuleModel = exports.UserCredentialsModuleModel = exports.UserAuthModuleModel = exports.TransferLogModuleModel = exports.StorageModuleModel = exports.StorageLogModuleModel = exports.SiteSurfaceModuleModel = exports.SessionsModuleModel = exports.SessionSecretsModuleModel = exports.SecureTableProvisionModel = exports.ScopeTypesModuleModel = exports.RouteModuleModel = exports.RlsModuleModel = exports.ResourceModuleModel = exports.RepositoryModuleModel = exports.RelationProvisionModel = exports.RefusalLogModuleModel = exports.RealtimeModuleModel = exports.RateLimitsModuleModel = exports.RateLimitMetersModuleModel = exports.ProfilesModuleModel = exports.PrincipalsModuleModel = exports.PrincipalAuthModuleModel = exports.PlansModuleModel = exports.PhoneNumbersModuleModel = exports.PagesModuleModel = exports.OauthRequestsModuleModel = exports.NotificationsModuleModel = exports.NamespaceModuleModel = exports.MerkleStoreModuleModel = exports.MembershipsModuleModel = exports.MembershipTypesModuleModel = exports.MachineModuleModel = void 0;
5
5
  /**
6
6
  * Models barrel export
7
7
  * @generated by @constructive-io/graphql-codegen
@@ -129,6 +129,8 @@ var plansModule_1 = require("./plansModule");
129
129
  Object.defineProperty(exports, "PlansModuleModel", { enumerable: true, get: function () { return plansModule_1.PlansModuleModel; } });
130
130
  var principalAuthModule_1 = require("./principalAuthModule");
131
131
  Object.defineProperty(exports, "PrincipalAuthModuleModel", { enumerable: true, get: function () { return principalAuthModule_1.PrincipalAuthModuleModel; } });
132
+ var principalsModule_1 = require("./principalsModule");
133
+ Object.defineProperty(exports, "PrincipalsModuleModel", { enumerable: true, get: function () { return principalsModule_1.PrincipalsModuleModel; } });
132
134
  var profilesModule_1 = require("./profilesModule");
133
135
  Object.defineProperty(exports, "ProfilesModuleModel", { enumerable: true, get: function () { return profilesModule_1.ProfilesModuleModel; } });
134
136
  var rateLimitMetersModule_1 = require("./rateLimitMetersModule");
@@ -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
+ }