@constructive-io/sdk 0.29.8 → 0.30.1
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/README.md +1 -0
- package/agent/orm/input-types.d.ts +96 -8
- package/api/orm/index.d.ts +5 -15
- package/api/orm/index.js +2 -2
- package/api/orm/input-types.d.ts +250 -231
- package/api/orm/models/index.d.ts +1 -1
- package/api/orm/models/index.js +3 -3
- package/api/orm/mutation/index.d.ts +11 -36
- package/api/orm/mutation/index.js +6 -30
- package/auth/orm/index.d.ts +10 -5
- package/auth/orm/input-types.d.ts +54 -45
- package/auth/orm/models/principal.d.ts +1 -10
- package/auth/orm/models/principal.js +0 -13
- package/auth/orm/mutation/index.d.ts +17 -9
- package/auth/orm/mutation/index.js +24 -12
- package/compute/orm/index.d.ts +76 -17
- package/compute/orm/index.js +56 -12
- package/compute/orm/input-types.d.ts +5893 -1343
- package/compute/orm/input-types.js +17 -3
- package/compute/orm/models/dbPreset.d.ts +54 -0
- package/compute/orm/models/dbPreset.js +104 -0
- package/compute/orm/models/functionGraphCommit.d.ts +2 -2
- package/compute/orm/models/functionGraphCommit.js +2 -2
- package/compute/orm/models/functionGraphObject.d.ts +2 -2
- package/compute/orm/models/functionGraphObject.js +2 -2
- package/compute/orm/models/functionGraphRef.d.ts +2 -2
- package/compute/orm/models/functionGraphRef.js +2 -2
- package/compute/orm/models/index.d.ts +28 -6
- package/compute/orm/models/index.js +57 -13
- package/compute/orm/models/infraCommit.d.ts +56 -0
- package/compute/orm/models/infraCommit.js +107 -0
- package/compute/orm/models/infraGetAllRecord.d.ts +30 -0
- package/compute/orm/models/infraGetAllRecord.js +59 -0
- package/compute/orm/models/infraObject.d.ts +56 -0
- package/compute/orm/models/infraObject.js +97 -0
- package/compute/orm/models/infraRef.d.ts +56 -0
- package/compute/orm/models/infraRef.js +107 -0
- package/compute/orm/models/infraStore.d.ts +54 -0
- package/compute/orm/models/infraStore.js +104 -0
- package/compute/orm/models/integrationProvider.d.ts +54 -0
- package/{modules/orm/models/configSecretsModule.js → compute/orm/models/integrationProvider.js} +27 -27
- package/compute/orm/models/namespace.d.ts +54 -0
- package/compute/orm/models/namespace.js +104 -0
- package/compute/orm/models/namespaceEvent.d.ts +56 -0
- package/compute/orm/models/{orgFunctionExecutionLog.js → namespaceEvent.js} +27 -27
- package/compute/orm/models/platformFunctionApiBinding.d.ts +54 -0
- package/compute/orm/models/platformFunctionApiBinding.js +104 -0
- package/compute/orm/models/platformFunctionDefinition.d.ts +54 -0
- package/compute/orm/models/platformFunctionDefinition.js +104 -0
- package/compute/orm/models/platformFunctionDeployment.d.ts +54 -0
- package/compute/orm/models/platformFunctionDeployment.js +104 -0
- package/compute/orm/models/platformFunctionDeploymentEvent.d.ts +56 -0
- package/compute/orm/models/platformFunctionDeploymentEvent.js +107 -0
- package/compute/orm/models/platformFunctionExecutionLog.d.ts +56 -0
- package/compute/orm/models/platformFunctionExecutionLog.js +107 -0
- package/compute/orm/models/platformFunctionInvocation.d.ts +56 -0
- package/compute/orm/models/platformFunctionInvocation.js +107 -0
- package/compute/orm/models/platformResource.d.ts +54 -0
- package/compute/orm/models/{secretDefinition.js → platformResource.js} +27 -27
- package/compute/orm/models/platformResourceDefinition.d.ts +54 -0
- package/compute/orm/models/platformResourceDefinition.js +104 -0
- package/compute/orm/models/platformResourceEvent.d.ts +56 -0
- package/compute/orm/models/{orgFunctionInvocation.js → platformResourceEvent.js} +27 -27
- package/compute/orm/models/platformResourceStatusCheck.d.ts +54 -0
- package/compute/orm/models/platformResourceStatusCheck.js +104 -0
- package/compute/orm/models/platformResourcesRequirementsState.d.ts +30 -0
- package/compute/orm/models/platformResourcesRequirementsState.js +59 -0
- package/compute/orm/models/platformResourcesResolvedRequirement.d.ts +30 -0
- package/compute/orm/models/platformResourcesResolvedRequirement.js +59 -0
- package/compute/orm/models/resourceDefinition.d.ts +54 -0
- package/compute/orm/models/resourceDefinition.js +104 -0
- package/compute/orm/models/resourceStatusCheck.d.ts +54 -0
- package/compute/orm/models/resourceStatusCheck.js +104 -0
- package/compute/orm/models/resourcesRequirementsState.d.ts +30 -0
- package/compute/orm/models/resourcesRequirementsState.js +59 -0
- package/compute/orm/models/resourcesResolvedRequirement.d.ts +30 -0
- package/compute/orm/models/resourcesResolvedRequirement.js +59 -0
- package/compute/orm/mutation/index.d.ts +33 -9
- package/compute/orm/mutation/index.js +48 -12
- package/config/orm/index.d.ts +42 -16
- package/config/orm/index.js +8 -2
- package/config/orm/input-types.d.ts +595 -154
- package/config/orm/models/config.d.ts +54 -0
- package/{modules/orm/models/configSecretsOrgModule.js → config/orm/models/config.js} +27 -27
- package/config/orm/models/index.d.ts +4 -1
- package/config/orm/models/index.js +9 -3
- package/config/orm/models/platformInternalSecret.d.ts +36 -0
- package/config/orm/models/platformInternalSecret.js +80 -0
- package/config/orm/models/platformSecret.d.ts +36 -0
- package/config/orm/models/platformSecret.js +80 -0
- package/config/orm/models/secret.d.ts +36 -0
- package/config/orm/models/secret.js +80 -0
- package/config/orm/mutation/index.d.ts +56 -24
- package/config/orm/mutation/index.js +78 -30
- package/esm/agent/orm/input-types.d.ts +96 -8
- package/esm/api/orm/index.d.ts +5 -15
- package/esm/api/orm/index.js +2 -2
- package/esm/api/orm/input-types.d.ts +250 -231
- package/esm/api/orm/models/index.d.ts +1 -1
- package/esm/api/orm/models/index.js +1 -1
- package/esm/api/orm/mutation/index.d.ts +11 -36
- package/esm/api/orm/mutation/index.js +6 -30
- package/esm/auth/orm/index.d.ts +10 -5
- package/esm/auth/orm/input-types.d.ts +54 -45
- package/esm/auth/orm/models/principal.d.ts +1 -10
- package/esm/auth/orm/models/principal.js +1 -14
- package/esm/auth/orm/mutation/index.d.ts +17 -9
- package/esm/auth/orm/mutation/index.js +24 -12
- package/esm/compute/orm/index.d.ts +76 -17
- package/esm/compute/orm/index.js +56 -12
- package/esm/compute/orm/input-types.d.ts +5893 -1343
- package/esm/compute/orm/input-types.js +17 -3
- package/esm/compute/orm/models/dbPreset.d.ts +54 -0
- package/esm/compute/orm/models/dbPreset.js +100 -0
- package/esm/compute/orm/models/functionGraphCommit.d.ts +2 -2
- package/esm/compute/orm/models/functionGraphCommit.js +2 -2
- package/esm/compute/orm/models/functionGraphObject.d.ts +2 -2
- package/esm/compute/orm/models/functionGraphObject.js +2 -2
- package/esm/compute/orm/models/functionGraphRef.d.ts +2 -2
- package/esm/compute/orm/models/functionGraphRef.js +2 -2
- package/esm/compute/orm/models/index.d.ts +28 -6
- package/esm/compute/orm/models/index.js +28 -6
- package/esm/compute/orm/models/infraCommit.d.ts +56 -0
- package/esm/compute/orm/models/infraCommit.js +103 -0
- package/esm/compute/orm/models/infraGetAllRecord.d.ts +30 -0
- package/esm/compute/orm/models/infraGetAllRecord.js +55 -0
- package/esm/compute/orm/models/infraObject.d.ts +56 -0
- package/esm/compute/orm/models/infraObject.js +93 -0
- package/esm/compute/orm/models/infraRef.d.ts +56 -0
- package/esm/compute/orm/models/infraRef.js +103 -0
- package/esm/compute/orm/models/infraStore.d.ts +54 -0
- package/esm/compute/orm/models/infraStore.js +100 -0
- package/esm/compute/orm/models/integrationProvider.d.ts +54 -0
- package/esm/compute/orm/models/integrationProvider.js +100 -0
- package/esm/compute/orm/models/namespace.d.ts +54 -0
- package/esm/compute/orm/models/namespace.js +100 -0
- package/esm/compute/orm/models/namespaceEvent.d.ts +56 -0
- package/esm/compute/orm/models/{orgFunctionExecutionLog.js → namespaceEvent.js} +25 -25
- package/esm/compute/orm/models/platformFunctionApiBinding.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionApiBinding.js +100 -0
- package/esm/compute/orm/models/platformFunctionDefinition.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionDefinition.js +100 -0
- package/esm/compute/orm/models/platformFunctionDeployment.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionDeployment.js +100 -0
- package/esm/compute/orm/models/platformFunctionDeploymentEvent.d.ts +56 -0
- package/esm/compute/orm/models/platformFunctionDeploymentEvent.js +103 -0
- package/esm/compute/orm/models/platformFunctionExecutionLog.d.ts +56 -0
- package/esm/compute/orm/models/platformFunctionExecutionLog.js +103 -0
- package/esm/compute/orm/models/platformFunctionInvocation.d.ts +56 -0
- package/esm/compute/orm/models/platformFunctionInvocation.js +103 -0
- package/esm/compute/orm/models/platformResource.d.ts +54 -0
- package/esm/compute/orm/models/{secretDefinition.js → platformResource.js} +25 -25
- package/esm/compute/orm/models/platformResourceDefinition.d.ts +54 -0
- package/esm/compute/orm/models/platformResourceDefinition.js +100 -0
- package/esm/compute/orm/models/platformResourceEvent.d.ts +56 -0
- package/esm/compute/orm/models/{orgFunctionInvocation.js → platformResourceEvent.js} +25 -25
- package/esm/compute/orm/models/platformResourceStatusCheck.d.ts +54 -0
- package/esm/compute/orm/models/platformResourceStatusCheck.js +100 -0
- package/esm/compute/orm/models/platformResourcesRequirementsState.d.ts +30 -0
- package/esm/compute/orm/models/platformResourcesRequirementsState.js +55 -0
- package/esm/compute/orm/models/platformResourcesResolvedRequirement.d.ts +30 -0
- package/esm/compute/orm/models/platformResourcesResolvedRequirement.js +55 -0
- package/esm/compute/orm/models/resourceDefinition.d.ts +54 -0
- package/esm/{modules/orm/models/configSecretsOrgModule.js → compute/orm/models/resourceDefinition.js} +25 -25
- package/esm/compute/orm/models/resourceStatusCheck.d.ts +54 -0
- package/esm/compute/orm/models/resourceStatusCheck.js +100 -0
- package/esm/compute/orm/models/resourcesRequirementsState.d.ts +30 -0
- package/esm/compute/orm/models/resourcesRequirementsState.js +55 -0
- package/esm/compute/orm/models/resourcesResolvedRequirement.d.ts +30 -0
- package/esm/compute/orm/models/resourcesResolvedRequirement.js +55 -0
- package/esm/compute/orm/mutation/index.d.ts +33 -9
- package/esm/compute/orm/mutation/index.js +48 -12
- package/esm/config/orm/index.d.ts +42 -16
- package/esm/config/orm/index.js +8 -2
- package/esm/config/orm/input-types.d.ts +595 -154
- package/esm/config/orm/models/config.d.ts +54 -0
- package/esm/{modules/orm/models/configSecretsModule.js → config/orm/models/config.js} +25 -25
- package/esm/config/orm/models/index.d.ts +4 -1
- package/esm/config/orm/models/index.js +4 -1
- package/esm/config/orm/models/platformInternalSecret.d.ts +36 -0
- package/esm/config/orm/models/platformInternalSecret.js +76 -0
- package/esm/config/orm/models/platformSecret.d.ts +36 -0
- package/esm/config/orm/models/platformSecret.js +76 -0
- package/esm/config/orm/models/secret.d.ts +36 -0
- package/esm/config/orm/models/secret.js +76 -0
- package/esm/config/orm/mutation/index.d.ts +56 -24
- package/esm/config/orm/mutation/index.js +78 -30
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/infra/index.d.ts +5 -0
- package/esm/infra/index.js +5 -0
- package/esm/infra/orm/client.d.ts +97 -0
- package/esm/infra/orm/client.js +145 -0
- package/esm/infra/orm/index.d.ts +74 -0
- package/esm/infra/orm/index.js +61 -0
- package/esm/infra/orm/input-types.d.ts +1953 -0
- package/esm/infra/orm/input-types.js +2 -0
- package/esm/infra/orm/models/dbPreset.d.ts +54 -0
- package/esm/infra/orm/models/dbPreset.js +100 -0
- package/esm/infra/orm/models/index.d.ts +15 -0
- package/esm/infra/orm/models/index.js +15 -0
- package/esm/infra/orm/models/infraCommit.d.ts +56 -0
- package/esm/infra/orm/models/infraCommit.js +103 -0
- package/esm/infra/orm/models/infraGetAllRecord.d.ts +30 -0
- package/esm/infra/orm/models/infraGetAllRecord.js +55 -0
- package/esm/infra/orm/models/infraObject.d.ts +56 -0
- package/esm/infra/orm/models/infraObject.js +93 -0
- package/esm/infra/orm/models/infraRef.d.ts +56 -0
- package/esm/infra/orm/models/infraRef.js +103 -0
- package/esm/infra/orm/models/infraStore.d.ts +54 -0
- package/esm/infra/orm/models/infraStore.js +100 -0
- package/esm/infra/orm/models/namespace.d.ts +54 -0
- package/esm/infra/orm/models/namespace.js +100 -0
- package/esm/infra/orm/models/namespaceEvent.d.ts +56 -0
- package/esm/infra/orm/models/namespaceEvent.js +103 -0
- package/esm/infra/orm/models/platformNamespace.d.ts +54 -0
- package/esm/{config/orm/models/platformConfigDefinition.js → infra/orm/models/platformNamespace.js} +25 -25
- package/esm/infra/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/esm/infra/orm/models/platformNamespaceEvent.js +103 -0
- package/esm/infra/orm/mutation/index.d.ts +50 -0
- package/esm/infra/orm/mutation/index.js +54 -0
- package/esm/infra/orm/query-builder.d.ts +110 -0
- package/esm/infra/orm/query-builder.js +705 -0
- package/esm/infra/orm/realtime.d.ts +142 -0
- package/esm/infra/orm/realtime.js +100 -0
- package/esm/infra/orm/select-types.d.ts +125 -0
- package/esm/infra/orm/select-types.js +1 -0
- package/esm/infra/orm/types.d.ts +6 -0
- package/esm/infra/orm/types.js +7 -0
- package/esm/modules/orm/index.d.ts +48 -38
- package/esm/modules/orm/index.js +48 -38
- package/esm/modules/orm/input-types.d.ts +5378 -4022
- package/esm/modules/orm/input-types.js +1 -0
- package/esm/modules/orm/models/dbPool.d.ts +54 -0
- package/esm/modules/orm/models/dbPool.js +100 -0
- package/esm/modules/orm/models/dbPoolConfig.d.ts +54 -0
- package/esm/modules/orm/models/dbPoolConfig.js +100 -0
- package/esm/modules/orm/models/dbPresetModule.d.ts +54 -0
- package/esm/modules/orm/models/dbPresetModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +24 -19
- package/esm/modules/orm/models/index.js +24 -19
- package/esm/modules/orm/models/infraConfigModule.d.ts +54 -0
- package/esm/modules/orm/models/infraConfigModule.js +100 -0
- package/esm/modules/orm/models/infraSecretsModule.d.ts +54 -0
- package/esm/modules/orm/models/infraSecretsModule.js +100 -0
- package/esm/modules/orm/models/integrationProvidersModule.d.ts +54 -0
- package/esm/modules/orm/models/integrationProvidersModule.js +100 -0
- package/esm/modules/orm/models/internalSecretsModule.d.ts +54 -0
- package/esm/modules/orm/models/internalSecretsModule.js +100 -0
- package/index.d.ts +1 -0
- package/index.js +2 -1
- package/infra/index.d.ts +5 -0
- package/infra/index.js +21 -0
- package/infra/orm/client.d.ts +97 -0
- package/infra/orm/client.js +152 -0
- package/infra/orm/index.d.ts +74 -0
- package/infra/orm/index.js +83 -0
- package/infra/orm/input-types.d.ts +1953 -0
- package/infra/orm/input-types.js +5 -0
- package/infra/orm/models/dbPreset.d.ts +54 -0
- package/infra/orm/models/dbPreset.js +104 -0
- package/infra/orm/models/index.d.ts +15 -0
- package/infra/orm/models/index.js +28 -0
- package/infra/orm/models/infraCommit.d.ts +56 -0
- package/infra/orm/models/infraCommit.js +107 -0
- package/infra/orm/models/infraGetAllRecord.d.ts +30 -0
- package/infra/orm/models/infraGetAllRecord.js +59 -0
- package/infra/orm/models/infraObject.d.ts +56 -0
- package/infra/orm/models/infraObject.js +97 -0
- package/infra/orm/models/infraRef.d.ts +56 -0
- package/infra/orm/models/infraRef.js +107 -0
- package/infra/orm/models/infraStore.d.ts +54 -0
- package/infra/orm/models/infraStore.js +104 -0
- package/infra/orm/models/namespace.d.ts +54 -0
- package/infra/orm/models/namespace.js +104 -0
- package/infra/orm/models/namespaceEvent.d.ts +56 -0
- package/infra/orm/models/namespaceEvent.js +107 -0
- package/infra/orm/models/platformNamespace.d.ts +54 -0
- package/infra/orm/models/platformNamespace.js +104 -0
- package/infra/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/{config/orm/models/platformConfigDefinition.js → infra/orm/models/platformNamespaceEvent.js} +30 -27
- package/infra/orm/mutation/index.d.ts +50 -0
- package/infra/orm/mutation/index.js +57 -0
- package/infra/orm/query-builder.d.ts +110 -0
- package/infra/orm/query-builder.js +757 -0
- package/infra/orm/realtime.d.ts +142 -0
- package/infra/orm/realtime.js +104 -0
- package/infra/orm/select-types.d.ts +125 -0
- package/infra/orm/select-types.js +2 -0
- package/infra/orm/types.d.ts +6 -0
- package/infra/orm/types.js +23 -0
- package/modules/orm/index.d.ts +48 -38
- package/modules/orm/index.js +48 -38
- package/modules/orm/input-types.d.ts +5378 -4022
- package/modules/orm/input-types.js +1 -0
- package/modules/orm/models/dbPool.d.ts +54 -0
- package/modules/orm/models/dbPool.js +104 -0
- package/modules/orm/models/dbPoolConfig.d.ts +54 -0
- package/modules/orm/models/dbPoolConfig.js +104 -0
- package/modules/orm/models/dbPresetModule.d.ts +54 -0
- package/modules/orm/models/dbPresetModule.js +104 -0
- package/modules/orm/models/index.d.ts +24 -19
- package/modules/orm/models/index.js +50 -40
- package/modules/orm/models/infraConfigModule.d.ts +54 -0
- package/modules/orm/models/infraConfigModule.js +104 -0
- package/modules/orm/models/infraSecretsModule.d.ts +54 -0
- package/modules/orm/models/infraSecretsModule.js +104 -0
- package/modules/orm/models/integrationProvidersModule.d.ts +54 -0
- package/modules/orm/models/integrationProvidersModule.js +104 -0
- package/modules/orm/models/internalSecretsModule.d.ts +54 -0
- package/modules/orm/models/internalSecretsModule.js +104 -0
- package/package.json +6 -6
- package/compute/orm/models/orgFunctionExecutionLog.d.ts +0 -56
- package/compute/orm/models/orgFunctionInvocation.d.ts +0 -56
- package/compute/orm/models/secretDefinition.d.ts +0 -54
- package/config/orm/models/platformConfigDefinition.d.ts +0 -54
- package/esm/compute/orm/models/orgFunctionExecutionLog.d.ts +0 -56
- package/esm/compute/orm/models/orgFunctionInvocation.d.ts +0 -56
- package/esm/compute/orm/models/secretDefinition.d.ts +0 -54
- package/esm/config/orm/models/platformConfigDefinition.d.ts +0 -54
- package/esm/modules/orm/models/configSecretsModule.d.ts +0 -54
- package/esm/modules/orm/models/configSecretsOrgModule.d.ts +0 -54
- package/modules/orm/models/configSecretsModule.d.ts +0 -54
- package/modules/orm/models/configSecretsOrgModule.d.ts +0 -54
|
@@ -47,5 +47,5 @@ export { DatabaseModel } from './database';
|
|
|
47
47
|
export { RlsSettingModel } from './rlsSetting';
|
|
48
48
|
export { SqlActionModel } from './sqlAction';
|
|
49
49
|
export { DatabaseSettingModel } from './databaseSetting';
|
|
50
|
-
export { WebauthnSettingModel } from './webauthnSetting';
|
|
51
50
|
export { AstMigrationModel } from './astMigration';
|
|
51
|
+
export { WebauthnSettingModel } from './webauthnSetting';
|
|
@@ -47,5 +47,5 @@ export { DatabaseModel } from './database';
|
|
|
47
47
|
export { RlsSettingModel } from './rlsSetting';
|
|
48
48
|
export { SqlActionModel } from './sqlAction';
|
|
49
49
|
export { DatabaseSettingModel } from './databaseSetting';
|
|
50
|
-
export { WebauthnSettingModel } from './webauthnSetting';
|
|
51
50
|
export { AstMigrationModel } from './astMigration';
|
|
51
|
+
export { WebauthnSettingModel } from './webauthnSetting';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput,
|
|
9
|
+
import type { AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, SetFieldOrderInput, ApplyRlsInput, RequestDatabaseInput, ProvisionBucketInput, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, SetFieldOrderPayload, ApplyRlsPayload, RequestDatabasePayload, ProvisionBucketPayload, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, SetFieldOrderPayloadSelect, ApplyRlsPayloadSelect, RequestDatabasePayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface AcceptDatabaseTransferVariables {
|
|
11
11
|
input: AcceptDatabaseTransferInput;
|
|
12
12
|
}
|
|
@@ -16,12 +16,6 @@ export interface CancelDatabaseTransferVariables {
|
|
|
16
16
|
export interface RejectDatabaseTransferVariables {
|
|
17
17
|
input: RejectDatabaseTransferInput;
|
|
18
18
|
}
|
|
19
|
-
export interface ProvisionDatabaseWithUserVariables {
|
|
20
|
-
input: ProvisionDatabaseWithUserInput;
|
|
21
|
-
}
|
|
22
|
-
export interface BootstrapUserVariables {
|
|
23
|
-
input: BootstrapUserInput;
|
|
24
|
-
}
|
|
25
19
|
export interface SetFieldOrderVariables {
|
|
26
20
|
input: SetFieldOrderInput;
|
|
27
21
|
}
|
|
@@ -29,26 +23,17 @@ export interface ApplyRlsVariables {
|
|
|
29
23
|
input: ApplyRlsInput;
|
|
30
24
|
}
|
|
31
25
|
/**
|
|
32
|
-
* Variables for
|
|
33
|
-
*
|
|
26
|
+
* Variables for requestDatabase
|
|
27
|
+
* Requests a database and returns a ticket (database_provision_module row) to poll.
|
|
34
28
|
|
|
35
|
-
|
|
36
|
-
- database_name: Name for the new database (required)
|
|
37
|
-
- owner_id: UUID of the owner user (required)
|
|
38
|
-
- include_invites: Include invite system (default: true)
|
|
39
|
-
- include_groups: Include group-level memberships (default: false)
|
|
40
|
-
- include_levels: Include events/analytics (default: false)
|
|
41
|
-
- bitlen: Bit length for permission masks (default: 64)
|
|
42
|
-
- tokens_expiration: Token expiration interval (default: 30 days)
|
|
43
|
-
|
|
44
|
-
Returns the database_id UUID of the newly created database.
|
|
29
|
+
Pass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.
|
|
45
30
|
|
|
46
31
|
Example usage:
|
|
47
|
-
SELECT metaschema_public.
|
|
48
|
-
SELECT metaschema_public.
|
|
32
|
+
SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');
|
|
33
|
+
SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb);
|
|
49
34
|
*/
|
|
50
|
-
export interface
|
|
51
|
-
input:
|
|
35
|
+
export interface RequestDatabaseVariables {
|
|
36
|
+
input: RequestDatabaseInput;
|
|
52
37
|
}
|
|
53
38
|
/**
|
|
54
39
|
* Variables for provisionBucket
|
|
@@ -76,16 +61,6 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
76
61
|
} & StrictSelect<S, RejectDatabaseTransferPayloadSelect>) => QueryBuilder<{
|
|
77
62
|
rejectDatabaseTransfer: InferSelectResult<RejectDatabaseTransferPayload, S> | null;
|
|
78
63
|
}>;
|
|
79
|
-
provisionDatabaseWithUser: <S extends ProvisionDatabaseWithUserPayloadSelect>(args: ProvisionDatabaseWithUserVariables, options: {
|
|
80
|
-
select: S;
|
|
81
|
-
} & StrictSelect<S, ProvisionDatabaseWithUserPayloadSelect>) => QueryBuilder<{
|
|
82
|
-
provisionDatabaseWithUser: InferSelectResult<ProvisionDatabaseWithUserPayload, S> | null;
|
|
83
|
-
}>;
|
|
84
|
-
bootstrapUser: <S extends BootstrapUserPayloadSelect>(args: BootstrapUserVariables, options: {
|
|
85
|
-
select: S;
|
|
86
|
-
} & StrictSelect<S, BootstrapUserPayloadSelect>) => QueryBuilder<{
|
|
87
|
-
bootstrapUser: InferSelectResult<BootstrapUserPayload, S> | null;
|
|
88
|
-
}>;
|
|
89
64
|
setFieldOrder: <S extends SetFieldOrderPayloadSelect>(args: SetFieldOrderVariables, options: {
|
|
90
65
|
select: S;
|
|
91
66
|
} & StrictSelect<S, SetFieldOrderPayloadSelect>) => QueryBuilder<{
|
|
@@ -96,10 +71,10 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
96
71
|
} & StrictSelect<S, ApplyRlsPayloadSelect>) => QueryBuilder<{
|
|
97
72
|
applyRls: InferSelectResult<ApplyRlsPayload, S> | null;
|
|
98
73
|
}>;
|
|
99
|
-
|
|
74
|
+
requestDatabase: <S extends RequestDatabasePayloadSelect>(args: RequestDatabaseVariables, options: {
|
|
100
75
|
select: S;
|
|
101
|
-
} & StrictSelect<S,
|
|
102
|
-
|
|
76
|
+
} & StrictSelect<S, RequestDatabasePayloadSelect>) => QueryBuilder<{
|
|
77
|
+
requestDatabase: InferSelectResult<RequestDatabasePayload, S> | null;
|
|
103
78
|
}>;
|
|
104
79
|
provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
|
|
105
80
|
select: S;
|
|
@@ -38,30 +38,6 @@ export function createMutationOperations(client) {
|
|
|
38
38
|
},
|
|
39
39
|
], connectionFieldsMap, 'RejectDatabaseTransferPayload'),
|
|
40
40
|
}),
|
|
41
|
-
provisionDatabaseWithUser: (args, options) => new QueryBuilder({
|
|
42
|
-
client,
|
|
43
|
-
operation: 'mutation',
|
|
44
|
-
operationName: 'ProvisionDatabaseWithUser',
|
|
45
|
-
fieldName: 'provisionDatabaseWithUser',
|
|
46
|
-
...buildCustomDocument('mutation', 'ProvisionDatabaseWithUser', 'provisionDatabaseWithUser', options.select, args, [
|
|
47
|
-
{
|
|
48
|
-
name: 'input',
|
|
49
|
-
type: 'ProvisionDatabaseWithUserInput!',
|
|
50
|
-
},
|
|
51
|
-
], connectionFieldsMap, 'ProvisionDatabaseWithUserPayload'),
|
|
52
|
-
}),
|
|
53
|
-
bootstrapUser: (args, options) => new QueryBuilder({
|
|
54
|
-
client,
|
|
55
|
-
operation: 'mutation',
|
|
56
|
-
operationName: 'BootstrapUser',
|
|
57
|
-
fieldName: 'bootstrapUser',
|
|
58
|
-
...buildCustomDocument('mutation', 'BootstrapUser', 'bootstrapUser', options.select, args, [
|
|
59
|
-
{
|
|
60
|
-
name: 'input',
|
|
61
|
-
type: 'BootstrapUserInput!',
|
|
62
|
-
},
|
|
63
|
-
], connectionFieldsMap, 'BootstrapUserPayload'),
|
|
64
|
-
}),
|
|
65
41
|
setFieldOrder: (args, options) => new QueryBuilder({
|
|
66
42
|
client,
|
|
67
43
|
operation: 'mutation',
|
|
@@ -86,17 +62,17 @@ export function createMutationOperations(client) {
|
|
|
86
62
|
},
|
|
87
63
|
], connectionFieldsMap, 'ApplyRlsPayload'),
|
|
88
64
|
}),
|
|
89
|
-
|
|
65
|
+
requestDatabase: (args, options) => new QueryBuilder({
|
|
90
66
|
client,
|
|
91
67
|
operation: 'mutation',
|
|
92
|
-
operationName: '
|
|
93
|
-
fieldName: '
|
|
94
|
-
...buildCustomDocument('mutation', '
|
|
68
|
+
operationName: 'RequestDatabase',
|
|
69
|
+
fieldName: 'requestDatabase',
|
|
70
|
+
...buildCustomDocument('mutation', 'RequestDatabase', 'requestDatabase', options.select, args, [
|
|
95
71
|
{
|
|
96
72
|
name: 'input',
|
|
97
|
-
type: '
|
|
73
|
+
type: 'RequestDatabaseInput!',
|
|
98
74
|
},
|
|
99
|
-
], connectionFieldsMap, '
|
|
75
|
+
], connectionFieldsMap, 'RequestDatabasePayload'),
|
|
100
76
|
}),
|
|
101
77
|
provisionBucket: (args, options) => new QueryBuilder({
|
|
102
78
|
client,
|
package/esm/auth/orm/index.d.ts
CHANGED
|
@@ -104,6 +104,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
104
104
|
} & import("./select-types").StrictSelect<S, import("./input-types").DeleteOrgPrincipalPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
105
105
|
deleteOrgPrincipal: import("./select-types").InferSelectResult<import("./input-types").DeleteOrgPrincipalPayload, S> | null;
|
|
106
106
|
}>;
|
|
107
|
+
deletePrincipal: <S extends import("./input-types").DeletePrincipalPayloadSelect>(args: import("./mutation").DeletePrincipalVariables, options: {
|
|
108
|
+
select: S;
|
|
109
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").DeletePrincipalPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
110
|
+
deletePrincipal: import("./select-types").InferSelectResult<import("./input-types").DeletePrincipalPayload, S> | null;
|
|
111
|
+
}>;
|
|
107
112
|
disconnectAccount: <S extends import("./input-types").DisconnectAccountPayloadSelect>(args: import("./mutation").DisconnectAccountVariables, options: {
|
|
108
113
|
select: S;
|
|
109
114
|
} & import("./select-types").StrictSelect<S, import("./input-types").DisconnectAccountPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -159,6 +164,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
159
164
|
} & import("./select-types").StrictSelect<S, import("./input-types").ResetPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
160
165
|
resetPassword: import("./select-types").InferSelectResult<import("./input-types").ResetPasswordPayload, S> | null;
|
|
161
166
|
}>;
|
|
167
|
+
createOrgPrincipal: <S extends import("./input-types").CreateOrgPrincipalPayloadSelect>(args: import("./mutation").CreateOrgPrincipalVariables, options: {
|
|
168
|
+
select: S;
|
|
169
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").CreateOrgPrincipalPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
170
|
+
createOrgPrincipal: import("./select-types").InferSelectResult<import("./input-types").CreateOrgPrincipalPayload, S> | null;
|
|
171
|
+
}>;
|
|
162
172
|
signInCrossOrigin: <S extends import("./input-types").SignInCrossOriginPayloadSelect>(args: import("./mutation").SignInCrossOriginVariables, options: {
|
|
163
173
|
select: S;
|
|
164
174
|
} & import("./select-types").StrictSelect<S, import("./input-types").SignInCrossOriginPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -189,11 +199,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
189
199
|
} & import("./select-types").StrictSelect<S, import("./input-types").LinkIdentityPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
190
200
|
linkIdentity: import("./select-types").InferSelectResult<import("./input-types").LinkIdentityPayload, S> | null;
|
|
191
201
|
}>;
|
|
192
|
-
createOrgPrincipal: <S extends import("./input-types").CreateOrgPrincipalPayloadSelect>(args: import("./mutation").CreateOrgPrincipalVariables, options: {
|
|
193
|
-
select: S;
|
|
194
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").CreateOrgPrincipalPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
195
|
-
createOrgPrincipal: import("./select-types").InferSelectResult<import("./input-types").CreateOrgPrincipalPayload, S> | null;
|
|
196
|
-
}>;
|
|
197
202
|
extendTokenExpires: <S extends import("./input-types").ExtendTokenExpiresPayloadSelect>(args: import("./mutation").ExtendTokenExpiresVariables, options: {
|
|
198
203
|
select: S;
|
|
199
204
|
} & import("./select-types").StrictSelect<S, import("./input-types").ExtendTokenExpiresPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -244,8 +244,8 @@ export interface Principal {
|
|
|
244
244
|
userId?: string | null;
|
|
245
245
|
/** Human-readable label for this principal (e.g., billing-bot, ci-deploy-key) */
|
|
246
246
|
name?: string | null;
|
|
247
|
-
/**
|
|
248
|
-
|
|
247
|
+
/** Whether this principal inherits admin/owner privileges from the owner */
|
|
248
|
+
useAdminOwner?: boolean | null;
|
|
249
249
|
/** Whether this principal is restricted to read-only operations */
|
|
250
250
|
isReadOnly?: boolean | null;
|
|
251
251
|
/** Whether this principal bypasses MFA step-up requirements */
|
|
@@ -272,10 +272,12 @@ export interface PrincipalScopeOverride {
|
|
|
272
272
|
principalId?: string | null;
|
|
273
273
|
/** The scope level (membership_type) this override restricts */
|
|
274
274
|
membershipType?: number | null;
|
|
275
|
-
/**
|
|
275
|
+
/** Optional permission mask; AND-masked with parent permissions during cascade. NULL means no extra mask. */
|
|
276
276
|
allowedMask?: string | null;
|
|
277
|
-
/** Whether this principal
|
|
278
|
-
|
|
277
|
+
/** Whether this principal inherits admin/owner at this scope (default true = inherit from parent) */
|
|
278
|
+
useAdminOwner?: boolean | null;
|
|
279
|
+
/** Whether this scope is active for this principal; false disables all access at this scope */
|
|
280
|
+
isActive?: boolean | null;
|
|
279
281
|
/** Whether this principal is restricted to read-only at this scope */
|
|
280
282
|
isReadOnly?: boolean | null;
|
|
281
283
|
}
|
|
@@ -501,7 +503,7 @@ export type PrincipalSelect = {
|
|
|
501
503
|
ownerId?: boolean;
|
|
502
504
|
userId?: boolean;
|
|
503
505
|
name?: boolean;
|
|
504
|
-
|
|
506
|
+
useAdminOwner?: boolean;
|
|
505
507
|
isReadOnly?: boolean;
|
|
506
508
|
bypassStepUp?: boolean;
|
|
507
509
|
owner?: {
|
|
@@ -547,7 +549,8 @@ export type PrincipalScopeOverrideSelect = {
|
|
|
547
549
|
principalId?: boolean;
|
|
548
550
|
membershipType?: boolean;
|
|
549
551
|
allowedMask?: boolean;
|
|
550
|
-
|
|
552
|
+
useAdminOwner?: boolean;
|
|
553
|
+
isActive?: boolean;
|
|
551
554
|
isReadOnly?: boolean;
|
|
552
555
|
principal?: {
|
|
553
556
|
select: PrincipalSelect;
|
|
@@ -737,8 +740,8 @@ export interface PrincipalFilter {
|
|
|
737
740
|
userId?: UUIDFilter;
|
|
738
741
|
/** Filter by the object’s `name` field. */
|
|
739
742
|
name?: StringFilter;
|
|
740
|
-
/** Filter by the object’s `
|
|
741
|
-
|
|
743
|
+
/** Filter by the object’s `useAdminOwner` field. */
|
|
744
|
+
useAdminOwner?: BooleanFilter;
|
|
742
745
|
/** Filter by the object’s `isReadOnly` field. */
|
|
743
746
|
isReadOnly?: BooleanFilter;
|
|
744
747
|
/** Filter by the object’s `bypassStepUp` field. */
|
|
@@ -801,8 +804,10 @@ export interface PrincipalScopeOverrideFilter {
|
|
|
801
804
|
membershipType?: IntFilter;
|
|
802
805
|
/** Filter by the object’s `allowedMask` field. */
|
|
803
806
|
allowedMask?: BitStringFilter;
|
|
804
|
-
/** Filter by the object’s `
|
|
805
|
-
|
|
807
|
+
/** Filter by the object’s `useAdminOwner` field. */
|
|
808
|
+
useAdminOwner?: BooleanFilter;
|
|
809
|
+
/** Filter by the object’s `isActive` field. */
|
|
810
|
+
isActive?: BooleanFilter;
|
|
806
811
|
/** Filter by the object’s `isReadOnly` field. */
|
|
807
812
|
isReadOnly?: BooleanFilter;
|
|
808
813
|
/** Checks for all expressions in this list. */
|
|
@@ -1116,9 +1121,9 @@ export interface UserFilter {
|
|
|
1116
1121
|
*/
|
|
1117
1122
|
unifiedSearch?: string;
|
|
1118
1123
|
}
|
|
1119
|
-
export type PrincipalOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'USER_ID_ASC' | 'USER_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | '
|
|
1124
|
+
export type PrincipalOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'USER_ID_ASC' | 'USER_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'USE_ADMIN_OWNER_ASC' | 'USE_ADMIN_OWNER_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'BYPASS_STEP_UP_ASC' | 'BYPASS_STEP_UP_DESC';
|
|
1120
1125
|
export type PrincipalEntityOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC';
|
|
1121
|
-
export type PrincipalScopeOverrideOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ALLOWED_MASK_ASC' | 'ALLOWED_MASK_DESC' | '
|
|
1126
|
+
export type PrincipalScopeOverrideOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ALLOWED_MASK_ASC' | 'ALLOWED_MASK_DESC' | 'USE_ADMIN_OWNER_ASC' | 'USE_ADMIN_OWNER_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC';
|
|
1122
1127
|
export type EmailOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'IS_PRIMARY_ASC' | 'IS_PRIMARY_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
|
|
1123
1128
|
export type PhoneNumberOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CC_ASC' | 'CC_DESC' | 'NUMBER_ASC' | 'NUMBER_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'IS_PRIMARY_ASC' | 'IS_PRIMARY_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
|
|
1124
1129
|
export type CryptoAddressOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'ADDRESS_ASC' | 'ADDRESS_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'IS_PRIMARY_ASC' | 'IS_PRIMARY_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
|
|
@@ -1135,7 +1140,7 @@ export interface CreatePrincipalInput {
|
|
|
1135
1140
|
ownerId: string;
|
|
1136
1141
|
userId: string;
|
|
1137
1142
|
name?: string;
|
|
1138
|
-
|
|
1143
|
+
useAdminOwner?: boolean;
|
|
1139
1144
|
isReadOnly?: boolean;
|
|
1140
1145
|
bypassStepUp?: boolean;
|
|
1141
1146
|
};
|
|
@@ -1144,7 +1149,7 @@ export interface PrincipalPatch {
|
|
|
1144
1149
|
ownerId?: string | null;
|
|
1145
1150
|
userId?: string | null;
|
|
1146
1151
|
name?: string | null;
|
|
1147
|
-
|
|
1152
|
+
useAdminOwner?: boolean | null;
|
|
1148
1153
|
isReadOnly?: boolean | null;
|
|
1149
1154
|
bypassStepUp?: boolean | null;
|
|
1150
1155
|
}
|
|
@@ -1185,7 +1190,8 @@ export interface CreatePrincipalScopeOverrideInput {
|
|
|
1185
1190
|
principalId: string;
|
|
1186
1191
|
membershipType?: number;
|
|
1187
1192
|
allowedMask?: string;
|
|
1188
|
-
|
|
1193
|
+
useAdminOwner?: boolean;
|
|
1194
|
+
isActive?: boolean;
|
|
1189
1195
|
isReadOnly?: boolean;
|
|
1190
1196
|
};
|
|
1191
1197
|
}
|
|
@@ -1193,7 +1199,8 @@ export interface PrincipalScopeOverridePatch {
|
|
|
1193
1199
|
principalId?: string | null;
|
|
1194
1200
|
membershipType?: number | null;
|
|
1195
1201
|
allowedMask?: string | null;
|
|
1196
|
-
|
|
1202
|
+
useAdminOwner?: boolean | null;
|
|
1203
|
+
isActive?: boolean | null;
|
|
1197
1204
|
isReadOnly?: boolean | null;
|
|
1198
1205
|
}
|
|
1199
1206
|
export interface UpdatePrincipalScopeOverrideInput {
|
|
@@ -1546,6 +1553,14 @@ export interface ResetPasswordInput {
|
|
|
1546
1553
|
resetToken?: string;
|
|
1547
1554
|
newPassword?: string;
|
|
1548
1555
|
}
|
|
1556
|
+
export interface CreateOrgPrincipalInput {
|
|
1557
|
+
clientMutationId?: string;
|
|
1558
|
+
name?: string;
|
|
1559
|
+
orgId?: string;
|
|
1560
|
+
useAdminOwner?: boolean;
|
|
1561
|
+
isReadOnly?: boolean;
|
|
1562
|
+
bypassStepUp?: boolean;
|
|
1563
|
+
}
|
|
1549
1564
|
export interface SignInCrossOriginInput {
|
|
1550
1565
|
clientMutationId?: string;
|
|
1551
1566
|
token?: string;
|
|
@@ -1591,14 +1606,6 @@ export interface LinkIdentityInput {
|
|
|
1591
1606
|
identifier: string;
|
|
1592
1607
|
details?: Record<string, unknown>;
|
|
1593
1608
|
}
|
|
1594
|
-
export interface CreateOrgPrincipalInput {
|
|
1595
|
-
clientMutationId?: string;
|
|
1596
|
-
name?: string;
|
|
1597
|
-
orgId?: string;
|
|
1598
|
-
allowedMask?: string;
|
|
1599
|
-
isReadOnly?: boolean;
|
|
1600
|
-
bypassStepUp?: boolean;
|
|
1601
|
-
}
|
|
1602
1609
|
export interface ExtendTokenExpiresInput {
|
|
1603
1610
|
clientMutationId?: string;
|
|
1604
1611
|
amount?: IntervalInput;
|
|
@@ -2232,8 +2239,10 @@ export interface PrincipalScopeOverrideFilter {
|
|
|
2232
2239
|
membershipType?: IntFilter;
|
|
2233
2240
|
/** Filter by the object’s `allowedMask` field. */
|
|
2234
2241
|
allowedMask?: BitStringFilter;
|
|
2235
|
-
/** Filter by the object’s `
|
|
2236
|
-
|
|
2242
|
+
/** Filter by the object’s `useAdminOwner` field. */
|
|
2243
|
+
useAdminOwner?: BooleanFilter;
|
|
2244
|
+
/** Filter by the object’s `isActive` field. */
|
|
2245
|
+
isActive?: BooleanFilter;
|
|
2237
2246
|
/** Filter by the object’s `isReadOnly` field. */
|
|
2238
2247
|
isReadOnly?: BooleanFilter;
|
|
2239
2248
|
/** Checks for all expressions in this list. */
|
|
@@ -2259,8 +2268,8 @@ export interface PrincipalFilter {
|
|
|
2259
2268
|
userId?: UUIDFilter;
|
|
2260
2269
|
/** Filter by the object’s `name` field. */
|
|
2261
2270
|
name?: StringFilter;
|
|
2262
|
-
/** Filter by the object’s `
|
|
2263
|
-
|
|
2271
|
+
/** Filter by the object’s `useAdminOwner` field. */
|
|
2272
|
+
useAdminOwner?: BooleanFilter;
|
|
2264
2273
|
/** Filter by the object’s `isReadOnly` field. */
|
|
2265
2274
|
isReadOnly?: BooleanFilter;
|
|
2266
2275
|
/** Filter by the object’s `bypassStepUp` field. */
|
|
@@ -2867,6 +2876,14 @@ export type DeleteOrgPrincipalPayloadSelect = {
|
|
|
2867
2876
|
clientMutationId?: boolean;
|
|
2868
2877
|
result?: boolean;
|
|
2869
2878
|
};
|
|
2879
|
+
export interface DeletePrincipalPayload {
|
|
2880
|
+
clientMutationId?: string | null;
|
|
2881
|
+
result?: boolean | null;
|
|
2882
|
+
}
|
|
2883
|
+
export type DeletePrincipalPayloadSelect = {
|
|
2884
|
+
clientMutationId?: boolean;
|
|
2885
|
+
result?: boolean;
|
|
2886
|
+
};
|
|
2870
2887
|
export interface DisconnectAccountPayload {
|
|
2871
2888
|
clientMutationId?: string | null;
|
|
2872
2889
|
result?: boolean | null;
|
|
@@ -2955,6 +2972,14 @@ export type ResetPasswordPayloadSelect = {
|
|
|
2955
2972
|
clientMutationId?: boolean;
|
|
2956
2973
|
result?: boolean;
|
|
2957
2974
|
};
|
|
2975
|
+
export interface CreateOrgPrincipalPayload {
|
|
2976
|
+
clientMutationId?: string | null;
|
|
2977
|
+
result?: string | null;
|
|
2978
|
+
}
|
|
2979
|
+
export type CreateOrgPrincipalPayloadSelect = {
|
|
2980
|
+
clientMutationId?: boolean;
|
|
2981
|
+
result?: boolean;
|
|
2982
|
+
};
|
|
2958
2983
|
export interface SignInCrossOriginPayload {
|
|
2959
2984
|
clientMutationId?: string | null;
|
|
2960
2985
|
result?: SignInCrossOriginRecord | null;
|
|
@@ -3013,14 +3038,6 @@ export type LinkIdentityPayloadSelect = {
|
|
|
3013
3038
|
clientMutationId?: boolean;
|
|
3014
3039
|
result?: boolean;
|
|
3015
3040
|
};
|
|
3016
|
-
export interface CreateOrgPrincipalPayload {
|
|
3017
|
-
clientMutationId?: string | null;
|
|
3018
|
-
result?: string | null;
|
|
3019
|
-
}
|
|
3020
|
-
export type CreateOrgPrincipalPayloadSelect = {
|
|
3021
|
-
clientMutationId?: boolean;
|
|
3022
|
-
result?: boolean;
|
|
3023
|
-
};
|
|
3024
3041
|
export interface ExtendTokenExpiresPayload {
|
|
3025
3042
|
clientMutationId?: string | null;
|
|
3026
3043
|
result?: ExtendTokenExpiresRecord[] | null;
|
|
@@ -3103,14 +3120,6 @@ export type CreatePrincipalPayloadSelect = {
|
|
|
3103
3120
|
clientMutationId?: boolean;
|
|
3104
3121
|
result?: boolean;
|
|
3105
3122
|
};
|
|
3106
|
-
export interface DeletePrincipalPayload {
|
|
3107
|
-
clientMutationId?: string | null;
|
|
3108
|
-
result?: boolean | null;
|
|
3109
|
-
}
|
|
3110
|
-
export type DeletePrincipalPayloadSelect = {
|
|
3111
|
-
clientMutationId?: boolean;
|
|
3112
|
-
result?: boolean;
|
|
3113
|
-
};
|
|
3114
3123
|
export interface CreatePrincipalEntityPayload {
|
|
3115
3124
|
clientMutationId?: string | null;
|
|
3116
3125
|
/** The `PrincipalEntity` that was created by this mutation. */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs,
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
9
|
import type { PrincipalWithRelations, PrincipalSelect, PrincipalFilter, PrincipalOrderBy, CreatePrincipalInput } from '../input-types';
|
|
10
10
|
export declare class PrincipalModel {
|
|
11
11
|
private client;
|
|
@@ -33,13 +33,4 @@ export declare class PrincipalModel {
|
|
|
33
33
|
principal: InferSelectResult<PrincipalWithRelations, S>;
|
|
34
34
|
};
|
|
35
35
|
}>;
|
|
36
|
-
delete<S extends PrincipalSelect>(args: DeleteArgs<{
|
|
37
|
-
principalId: string;
|
|
38
|
-
}, S> & {
|
|
39
|
-
select: S;
|
|
40
|
-
} & StrictSelect<S, PrincipalSelect>): QueryBuilder<{
|
|
41
|
-
deletePrincipal: {
|
|
42
|
-
principal: InferSelectResult<PrincipalWithRelations, S>;
|
|
43
|
-
};
|
|
44
|
-
}>;
|
|
45
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument,
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
2
|
import { connectionFieldsMap } from '../input-types';
|
|
3
3
|
export class PrincipalModel {
|
|
4
4
|
client;
|
|
@@ -73,17 +73,4 @@ export class PrincipalModel {
|
|
|
73
73
|
variables,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
delete(args) {
|
|
77
|
-
const { document, variables } = buildDeleteByPkDocument('Principal', 'deletePrincipal', 'principal', {
|
|
78
|
-
principalId: args.where.principalId,
|
|
79
|
-
}, 'DeletePrincipalInput', args.select, connectionFieldsMap);
|
|
80
|
-
return new QueryBuilder({
|
|
81
|
-
client: this.client,
|
|
82
|
-
operation: 'mutation',
|
|
83
|
-
operationName: 'Principal',
|
|
84
|
-
fieldName: 'deletePrincipal',
|
|
85
|
-
document,
|
|
86
|
-
variables,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
76
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DeleteOrgPrincipalInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, RevokeOrgApiKeyInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignInSmsOtpInput, SignUpSmsInput, SignUpInput, SignInInput, LinkIdentityInput,
|
|
9
|
+
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DeleteOrgPrincipalInput, DeletePrincipalInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, RevokeOrgApiKeyInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, CreateOrgPrincipalInput, SignInCrossOriginInput, SignInSmsOtpInput, SignUpSmsInput, SignUpInput, SignInInput, LinkIdentityInput, ExtendTokenExpiresInput, CreateOrgApiKeyInput, CreateApiKeyInput, RequestCrossOriginTokenInput, ForgotPasswordInput, SendVerificationEmailInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, RevokeOrgApiKeyPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, CreateOrgPrincipalPayload, SignInCrossOriginPayload, SignInSmsOtpPayload, SignUpSmsPayload, SignUpPayload, SignInPayload, LinkIdentityPayload, ExtendTokenExpiresPayload, CreateOrgApiKeyPayload, CreateApiKeyPayload, RequestCrossOriginTokenPayload, ForgotPasswordPayload, SendVerificationEmailPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, RevokeOrgApiKeyPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, CreateOrgPrincipalPayloadSelect, SignInCrossOriginPayloadSelect, SignInSmsOtpPayloadSelect, SignUpSmsPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, LinkIdentityPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateApiKeyPayloadSelect, RequestCrossOriginTokenPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SignOutVariables {
|
|
11
11
|
input: SignOutInput;
|
|
12
12
|
}
|
|
@@ -19,6 +19,9 @@ export interface CheckPasswordVariables {
|
|
|
19
19
|
export interface DeleteOrgPrincipalVariables {
|
|
20
20
|
input: DeleteOrgPrincipalInput;
|
|
21
21
|
}
|
|
22
|
+
export interface DeletePrincipalVariables {
|
|
23
|
+
input: DeletePrincipalInput;
|
|
24
|
+
}
|
|
22
25
|
export interface DisconnectAccountVariables {
|
|
23
26
|
input: DisconnectAccountInput;
|
|
24
27
|
}
|
|
@@ -52,6 +55,9 @@ export interface ProvisionNewUserVariables {
|
|
|
52
55
|
export interface ResetPasswordVariables {
|
|
53
56
|
input: ResetPasswordInput;
|
|
54
57
|
}
|
|
58
|
+
export interface CreateOrgPrincipalVariables {
|
|
59
|
+
input: CreateOrgPrincipalInput;
|
|
60
|
+
}
|
|
55
61
|
export interface SignInCrossOriginVariables {
|
|
56
62
|
input: SignInCrossOriginInput;
|
|
57
63
|
}
|
|
@@ -70,9 +76,6 @@ export interface SignInVariables {
|
|
|
70
76
|
export interface LinkIdentityVariables {
|
|
71
77
|
input: LinkIdentityInput;
|
|
72
78
|
}
|
|
73
|
-
export interface CreateOrgPrincipalVariables {
|
|
74
|
-
input: CreateOrgPrincipalInput;
|
|
75
|
-
}
|
|
76
79
|
export interface ExtendTokenExpiresVariables {
|
|
77
80
|
input: ExtendTokenExpiresInput;
|
|
78
81
|
}
|
|
@@ -122,6 +125,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
122
125
|
} & StrictSelect<S, DeleteOrgPrincipalPayloadSelect>) => QueryBuilder<{
|
|
123
126
|
deleteOrgPrincipal: InferSelectResult<DeleteOrgPrincipalPayload, S> | null;
|
|
124
127
|
}>;
|
|
128
|
+
deletePrincipal: <S extends DeletePrincipalPayloadSelect>(args: DeletePrincipalVariables, options: {
|
|
129
|
+
select: S;
|
|
130
|
+
} & StrictSelect<S, DeletePrincipalPayloadSelect>) => QueryBuilder<{
|
|
131
|
+
deletePrincipal: InferSelectResult<DeletePrincipalPayload, S> | null;
|
|
132
|
+
}>;
|
|
125
133
|
disconnectAccount: <S extends DisconnectAccountPayloadSelect>(args: DisconnectAccountVariables, options: {
|
|
126
134
|
select: S;
|
|
127
135
|
} & StrictSelect<S, DisconnectAccountPayloadSelect>) => QueryBuilder<{
|
|
@@ -177,6 +185,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
177
185
|
} & StrictSelect<S, ResetPasswordPayloadSelect>) => QueryBuilder<{
|
|
178
186
|
resetPassword: InferSelectResult<ResetPasswordPayload, S> | null;
|
|
179
187
|
}>;
|
|
188
|
+
createOrgPrincipal: <S extends CreateOrgPrincipalPayloadSelect>(args: CreateOrgPrincipalVariables, options: {
|
|
189
|
+
select: S;
|
|
190
|
+
} & StrictSelect<S, CreateOrgPrincipalPayloadSelect>) => QueryBuilder<{
|
|
191
|
+
createOrgPrincipal: InferSelectResult<CreateOrgPrincipalPayload, S> | null;
|
|
192
|
+
}>;
|
|
180
193
|
signInCrossOrigin: <S extends SignInCrossOriginPayloadSelect>(args: SignInCrossOriginVariables, options: {
|
|
181
194
|
select: S;
|
|
182
195
|
} & StrictSelect<S, SignInCrossOriginPayloadSelect>) => QueryBuilder<{
|
|
@@ -207,11 +220,6 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
207
220
|
} & StrictSelect<S, LinkIdentityPayloadSelect>) => QueryBuilder<{
|
|
208
221
|
linkIdentity: InferSelectResult<LinkIdentityPayload, S> | null;
|
|
209
222
|
}>;
|
|
210
|
-
createOrgPrincipal: <S extends CreateOrgPrincipalPayloadSelect>(args: CreateOrgPrincipalVariables, options: {
|
|
211
|
-
select: S;
|
|
212
|
-
} & StrictSelect<S, CreateOrgPrincipalPayloadSelect>) => QueryBuilder<{
|
|
213
|
-
createOrgPrincipal: InferSelectResult<CreateOrgPrincipalPayload, S> | null;
|
|
214
|
-
}>;
|
|
215
223
|
extendTokenExpires: <S extends ExtendTokenExpiresPayloadSelect>(args: ExtendTokenExpiresVariables, options: {
|
|
216
224
|
select: S;
|
|
217
225
|
} & StrictSelect<S, ExtendTokenExpiresPayloadSelect>) => QueryBuilder<{
|
|
@@ -50,6 +50,18 @@ export function createMutationOperations(client) {
|
|
|
50
50
|
},
|
|
51
51
|
], connectionFieldsMap, 'DeleteOrgPrincipalPayload'),
|
|
52
52
|
}),
|
|
53
|
+
deletePrincipal: (args, options) => new QueryBuilder({
|
|
54
|
+
client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'DeletePrincipal',
|
|
57
|
+
fieldName: 'deletePrincipal',
|
|
58
|
+
...buildCustomDocument('mutation', 'DeletePrincipal', 'deletePrincipal', options.select, args, [
|
|
59
|
+
{
|
|
60
|
+
name: 'input',
|
|
61
|
+
type: 'DeletePrincipalInput!',
|
|
62
|
+
},
|
|
63
|
+
], connectionFieldsMap, 'DeletePrincipalPayload'),
|
|
64
|
+
}),
|
|
53
65
|
disconnectAccount: (args, options) => new QueryBuilder({
|
|
54
66
|
client,
|
|
55
67
|
operation: 'mutation',
|
|
@@ -182,6 +194,18 @@ export function createMutationOperations(client) {
|
|
|
182
194
|
},
|
|
183
195
|
], connectionFieldsMap, 'ResetPasswordPayload'),
|
|
184
196
|
}),
|
|
197
|
+
createOrgPrincipal: (args, options) => new QueryBuilder({
|
|
198
|
+
client,
|
|
199
|
+
operation: 'mutation',
|
|
200
|
+
operationName: 'CreateOrgPrincipal',
|
|
201
|
+
fieldName: 'createOrgPrincipal',
|
|
202
|
+
...buildCustomDocument('mutation', 'CreateOrgPrincipal', 'createOrgPrincipal', options.select, args, [
|
|
203
|
+
{
|
|
204
|
+
name: 'input',
|
|
205
|
+
type: 'CreateOrgPrincipalInput!',
|
|
206
|
+
},
|
|
207
|
+
], connectionFieldsMap, 'CreateOrgPrincipalPayload'),
|
|
208
|
+
}),
|
|
185
209
|
signInCrossOrigin: (args, options) => new QueryBuilder({
|
|
186
210
|
client,
|
|
187
211
|
operation: 'mutation',
|
|
@@ -254,18 +278,6 @@ export function createMutationOperations(client) {
|
|
|
254
278
|
},
|
|
255
279
|
], connectionFieldsMap, 'LinkIdentityPayload'),
|
|
256
280
|
}),
|
|
257
|
-
createOrgPrincipal: (args, options) => new QueryBuilder({
|
|
258
|
-
client,
|
|
259
|
-
operation: 'mutation',
|
|
260
|
-
operationName: 'CreateOrgPrincipal',
|
|
261
|
-
fieldName: 'createOrgPrincipal',
|
|
262
|
-
...buildCustomDocument('mutation', 'CreateOrgPrincipal', 'createOrgPrincipal', options.select, args, [
|
|
263
|
-
{
|
|
264
|
-
name: 'input',
|
|
265
|
-
type: 'CreateOrgPrincipalInput!',
|
|
266
|
-
},
|
|
267
|
-
], connectionFieldsMap, 'CreateOrgPrincipalPayload'),
|
|
268
|
-
}),
|
|
269
281
|
extendTokenExpires: (args, options) => new QueryBuilder({
|
|
270
282
|
client,
|
|
271
283
|
operation: 'mutation',
|