@constructive-sdk/cli 0.30.0 → 0.30.2
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/cli/commands/agent-message.js +20 -0
- package/agent/cli/commands/agent-persona.js +20 -0
- package/agent/cli/commands/agent-plan.js +20 -0
- package/agent/cli/commands/agent-prompt.js +20 -0
- package/agent/cli/commands/agent-resource.js +21 -0
- package/agent/cli/commands/agent-task.js +20 -0
- package/agent/cli/commands/agent-thread.js +20 -0
- package/agent/cli/commands/agent.js +20 -0
- package/agent/orm/input-types.d.ts +96 -8
- package/api/cli/commands/database.js +22 -0
- package/api/cli/commands/field.js +44 -0
- package/api/cli/commands/policy.js +22 -0
- package/{compute/cli/commands/org-function-execution-log.d.ts → api/cli/commands/request-database.d.ts} +1 -1
- package/api/cli/commands/request-database.js +36 -0
- package/api/cli/commands/table.js +22 -0
- package/api/cli/commands.js +5 -9
- package/api/cli/executor.d.ts +4 -14
- 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/cli/commands/delete-principal.d.ts +8 -0
- package/{config/cli/commands/org-secrets-rotate.js → auth/cli/commands/delete-principal.js} +3 -3
- package/auth/cli/commands/principal-scope-override.js +18 -7
- package/auth/cli/commands/principal.d.ts +1 -1
- package/auth/cli/commands/principal.js +75 -64
- package/auth/cli/commands.js +5 -3
- package/auth/cli/executor.d.ts +10 -5
- 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/{esm/compute/cli/commands/secret-definition.d.ts → compute/cli/commands/db-preset.d.ts} +1 -1
- package/compute/cli/commands/db-preset.js +394 -0
- package/compute/cli/commands/function-definition.js +208 -12
- package/compute/cli/commands/function-deployment.js +42 -20
- package/compute/cli/commands/function-graph-commit.js +15 -15
- package/compute/cli/commands/function-graph-execution-node-state.js +12 -12
- package/compute/cli/commands/function-graph-execution-output.js +12 -12
- package/compute/cli/commands/function-graph-execution.js +37 -13
- package/compute/cli/commands/function-graph-object.js +15 -15
- package/compute/cli/commands/function-graph-ref.js +15 -15
- package/compute/cli/commands/function-graph-store.js +12 -12
- package/compute/cli/commands/function-graph.js +12 -12
- package/compute/cli/commands/{secret-definition.d.ts → infra-commit.d.ts} +1 -1
- package/compute/cli/commands/infra-commit.js +389 -0
- package/{esm/modules/cli/commands/config-secrets-module.d.ts → compute/cli/commands/infra-get-all-record.d.ts} +1 -1
- package/compute/cli/commands/infra-get-all-record.js +126 -0
- package/{api/cli/commands/create-user-database.d.ts → compute/cli/commands/infra-init-empty-repo.d.ts} +1 -1
- package/compute/cli/commands/infra-init-empty-repo.js +36 -0
- package/compute/cli/commands/infra-insert-node-at-path.d.ts +8 -0
- package/{config/cli/commands/org-secrets-remove-array.js → compute/cli/commands/infra-insert-node-at-path.js} +3 -3
- package/{modules/cli/commands/config-secrets-module.d.ts → compute/cli/commands/infra-object.d.ts} +1 -1
- package/compute/cli/commands/infra-object.js +309 -0
- package/compute/cli/commands/infra-ref.d.ts +8 -0
- package/compute/cli/commands/infra-ref.js +299 -0
- package/compute/cli/commands/infra-set-data-at-path.d.ts +8 -0
- package/compute/cli/commands/infra-set-data-at-path.js +36 -0
- package/compute/cli/commands/infra-store.d.ts +8 -0
- package/compute/cli/commands/infra-store.js +278 -0
- package/compute/cli/commands/integration-provider.d.ts +8 -0
- package/compute/cli/commands/integration-provider.js +416 -0
- package/compute/cli/commands/namespace-event.d.ts +8 -0
- package/compute/cli/commands/namespace-event.js +510 -0
- package/compute/cli/commands/namespace.d.ts +8 -0
- package/compute/cli/commands/{secret-definition.js → namespace.js} +106 -20
- package/compute/cli/commands/platform-function-api-binding.d.ts +8 -0
- package/compute/cli/commands/platform-function-api-binding.js +294 -0
- package/compute/cli/commands/platform-function-definition.d.ts +8 -0
- package/compute/cli/commands/platform-function-definition.js +964 -0
- package/compute/cli/commands/platform-function-deployment-event.d.ts +8 -0
- package/compute/cli/commands/platform-function-deployment-event.js +336 -0
- package/compute/cli/commands/platform-function-deployment.d.ts +8 -0
- package/compute/cli/commands/platform-function-deployment.js +614 -0
- package/compute/cli/commands/platform-function-execution-log.d.ts +8 -0
- package/compute/cli/commands/{org-function-execution-log.js → platform-function-execution-log.js} +8 -8
- package/compute/cli/commands/platform-function-invocation.d.ts +8 -0
- package/compute/cli/commands/{org-function-invocation.js → platform-function-invocation.js} +8 -8
- package/compute/cli/commands/platform-namespace-event.js +0 -20
- package/compute/cli/commands/platform-namespace.js +40 -60
- package/compute/cli/commands/platform-resource-definition.d.ts +8 -0
- package/compute/cli/commands/platform-resource-definition.js +522 -0
- package/{api/cli/commands/bootstrap-user.d.ts → compute/cli/commands/platform-resource-event.d.ts} +1 -1
- package/compute/cli/commands/platform-resource-event.js +336 -0
- package/compute/cli/commands/platform-resource-status-check.d.ts +8 -0
- package/compute/cli/commands/platform-resource-status-check.js +340 -0
- package/compute/cli/commands/platform-resource.d.ts +8 -0
- package/compute/cli/commands/platform-resource.js +588 -0
- package/{api/cli/commands/provision-database-with-user.d.ts → compute/cli/commands/platform-resources-requirements-state.d.ts} +1 -1
- package/compute/cli/commands/platform-resources-requirements-state.js +183 -0
- package/compute/cli/commands/platform-resources-resolved-requirement.d.ts +8 -0
- package/compute/cli/commands/platform-resources-resolved-requirement.js +218 -0
- package/compute/cli/commands/resource-definition.d.ts +8 -0
- package/compute/cli/commands/resource-definition.js +542 -0
- package/compute/cli/commands/resource-status-check.d.ts +8 -0
- package/{modules/cli/commands/config-secrets-org-module.js → compute/cli/commands/resource-status-check.js} +90 -70
- package/compute/cli/commands/resource.js +88 -0
- package/compute/cli/commands/resources-requirements-state.d.ts +8 -0
- package/compute/cli/commands/resources-requirements-state.js +181 -0
- package/compute/cli/commands/resources-resolved-requirement.d.ts +8 -0
- package/compute/cli/commands/resources-resolved-requirement.js +214 -0
- package/compute/cli/commands.js +65 -15
- package/compute/cli/executor.d.ts +48 -11
- 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/cli/commands/config.d.ts +8 -0
- package/config/cli/commands/{platform-config-definition.js → config.js} +127 -65
- package/config/cli/commands/platform-config.js +22 -0
- package/config/cli/commands/platform-internal-secret.d.ts +8 -0
- package/config/cli/commands/platform-internal-secret.js +200 -0
- package/config/cli/commands/platform-internal-secrets-del.d.ts +8 -0
- package/{api/cli/commands/provision-database-with-user.js → config/cli/commands/platform-internal-secrets-del.js} +3 -3
- package/config/cli/commands/platform-internal-secrets-remove-array.d.ts +8 -0
- package/config/cli/commands/platform-internal-secrets-remove-array.js +36 -0
- package/config/cli/commands/platform-internal-secrets-rotate.d.ts +8 -0
- package/config/cli/commands/platform-internal-secrets-rotate.js +36 -0
- package/config/cli/commands/platform-internal-secrets-set.d.ts +8 -0
- package/config/cli/commands/platform-internal-secrets-set.js +36 -0
- package/config/cli/commands/platform-secret.d.ts +8 -0
- package/config/cli/commands/platform-secret.js +212 -0
- package/config/cli/commands/secret.d.ts +8 -0
- package/config/cli/commands/secret.js +224 -0
- package/config/cli/commands/secrets-del.d.ts +8 -0
- package/{api/cli/commands/bootstrap-user.js → config/cli/commands/secrets-del.js} +3 -3
- package/config/cli/commands/secrets-remove-array.d.ts +8 -0
- package/config/cli/commands/secrets-remove-array.js +36 -0
- package/config/cli/commands/secrets-rotate.d.ts +8 -0
- package/config/cli/commands/{org-secrets-set.js → secrets-rotate.js} +3 -3
- package/config/cli/commands/secrets-set.d.ts +8 -0
- package/config/cli/commands/{org-secrets-del.js → secrets-set.js} +3 -3
- package/config/cli/commands.js +25 -11
- package/config/cli/executor.d.ts +38 -15
- 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/cli/commands/agent-message.js +20 -0
- package/esm/agent/cli/commands/agent-persona.js +20 -0
- package/esm/agent/cli/commands/agent-plan.js +20 -0
- package/esm/agent/cli/commands/agent-prompt.js +20 -0
- package/esm/agent/cli/commands/agent-resource.js +21 -0
- package/esm/agent/cli/commands/agent-task.js +20 -0
- package/esm/agent/cli/commands/agent-thread.js +20 -0
- package/esm/agent/cli/commands/agent.js +20 -0
- package/esm/agent/orm/input-types.d.ts +96 -8
- package/esm/api/cli/commands/database.js +22 -0
- package/esm/api/cli/commands/field.js +44 -0
- package/esm/api/cli/commands/policy.js +22 -0
- package/esm/api/cli/commands/request-database.d.ts +8 -0
- package/esm/api/cli/commands/request-database.js +34 -0
- package/esm/api/cli/commands/table.js +22 -0
- package/esm/api/cli/commands.js +5 -9
- package/esm/api/cli/executor.d.ts +4 -14
- 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/cli/commands/delete-principal.d.ts +8 -0
- package/esm/{config/cli/commands/org-secrets-rotate.js → auth/cli/commands/delete-principal.js} +3 -3
- package/esm/auth/cli/commands/principal-scope-override.js +18 -7
- package/esm/auth/cli/commands/principal.d.ts +1 -1
- package/esm/auth/cli/commands/principal.js +78 -67
- package/esm/auth/cli/commands.js +5 -3
- package/esm/auth/cli/executor.d.ts +10 -5
- 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/cli/commands/db-preset.d.ts +8 -0
- package/esm/compute/cli/commands/db-preset.js +392 -0
- package/esm/compute/cli/commands/function-definition.js +208 -12
- package/esm/compute/cli/commands/function-deployment.js +42 -20
- package/esm/compute/cli/commands/function-graph-commit.js +15 -15
- package/esm/compute/cli/commands/function-graph-execution-node-state.js +12 -12
- package/esm/compute/cli/commands/function-graph-execution-output.js +12 -12
- package/esm/compute/cli/commands/function-graph-execution.js +37 -13
- package/esm/compute/cli/commands/function-graph-object.js +15 -15
- package/esm/compute/cli/commands/function-graph-ref.js +15 -15
- package/esm/compute/cli/commands/function-graph-store.js +12 -12
- package/esm/compute/cli/commands/function-graph.js +12 -12
- package/esm/compute/cli/commands/infra-commit.d.ts +8 -0
- package/esm/compute/cli/commands/infra-commit.js +387 -0
- package/esm/compute/cli/commands/infra-get-all-record.d.ts +8 -0
- package/esm/compute/cli/commands/infra-get-all-record.js +124 -0
- package/esm/compute/cli/commands/infra-init-empty-repo.d.ts +8 -0
- package/esm/compute/cli/commands/infra-init-empty-repo.js +34 -0
- package/esm/compute/cli/commands/infra-insert-node-at-path.d.ts +8 -0
- package/esm/{config/cli/commands/org-secrets-remove-array.js → compute/cli/commands/infra-insert-node-at-path.js} +3 -3
- package/esm/compute/cli/commands/infra-object.d.ts +8 -0
- package/esm/compute/cli/commands/infra-object.js +307 -0
- package/esm/compute/cli/commands/infra-ref.d.ts +8 -0
- package/esm/compute/cli/commands/infra-ref.js +297 -0
- package/esm/compute/cli/commands/infra-set-data-at-path.d.ts +8 -0
- package/esm/compute/cli/commands/infra-set-data-at-path.js +34 -0
- package/esm/compute/cli/commands/infra-store.d.ts +8 -0
- package/esm/compute/cli/commands/infra-store.js +276 -0
- package/esm/compute/cli/commands/integration-provider.d.ts +8 -0
- package/esm/compute/cli/commands/integration-provider.js +414 -0
- package/esm/compute/cli/commands/namespace-event.d.ts +8 -0
- package/esm/compute/cli/commands/namespace-event.js +508 -0
- package/esm/compute/cli/commands/namespace.d.ts +8 -0
- package/esm/compute/cli/commands/{secret-definition.js → namespace.js} +106 -20
- package/esm/compute/cli/commands/platform-function-api-binding.d.ts +8 -0
- package/esm/compute/cli/commands/platform-function-api-binding.js +292 -0
- package/esm/compute/cli/commands/platform-function-definition.d.ts +8 -0
- package/esm/compute/cli/commands/platform-function-definition.js +962 -0
- package/esm/compute/cli/commands/platform-function-deployment-event.d.ts +8 -0
- package/esm/compute/cli/commands/platform-function-deployment-event.js +334 -0
- package/esm/compute/cli/commands/platform-function-deployment.d.ts +8 -0
- package/esm/compute/cli/commands/platform-function-deployment.js +612 -0
- package/esm/compute/cli/commands/platform-function-execution-log.d.ts +8 -0
- package/esm/compute/cli/commands/{org-function-execution-log.js → platform-function-execution-log.js} +8 -8
- package/esm/compute/cli/commands/platform-function-invocation.d.ts +8 -0
- package/esm/compute/cli/commands/{org-function-invocation.js → platform-function-invocation.js} +8 -8
- package/esm/compute/cli/commands/platform-namespace-event.js +0 -20
- package/esm/compute/cli/commands/platform-namespace.js +40 -60
- package/esm/compute/cli/commands/platform-resource-definition.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource-definition.js +520 -0
- package/{compute/cli/commands/org-function-invocation.d.ts → esm/compute/cli/commands/platform-resource-event.d.ts} +1 -1
- package/esm/compute/cli/commands/platform-resource-event.js +334 -0
- package/esm/compute/cli/commands/platform-resource-status-check.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource-status-check.js +338 -0
- package/esm/compute/cli/commands/platform-resource.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resource.js +586 -0
- package/esm/compute/cli/commands/platform-resources-requirements-state.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resources-requirements-state.js +181 -0
- package/esm/compute/cli/commands/platform-resources-resolved-requirement.d.ts +8 -0
- package/esm/compute/cli/commands/platform-resources-resolved-requirement.js +216 -0
- package/esm/compute/cli/commands/resource-definition.d.ts +8 -0
- package/esm/compute/cli/commands/resource-definition.js +540 -0
- package/esm/compute/cli/commands/resource-status-check.d.ts +8 -0
- package/esm/{modules/cli/commands/config-secrets-org-module.js → compute/cli/commands/resource-status-check.js} +90 -70
- package/esm/compute/cli/commands/resource.js +88 -0
- package/esm/compute/cli/commands/resources-requirements-state.d.ts +8 -0
- package/esm/compute/cli/commands/resources-requirements-state.js +179 -0
- package/esm/compute/cli/commands/resources-resolved-requirement.d.ts +8 -0
- package/esm/compute/cli/commands/resources-resolved-requirement.js +212 -0
- package/esm/compute/cli/commands.js +65 -15
- package/esm/compute/cli/executor.d.ts +48 -11
- 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/cli/commands/config.d.ts +8 -0
- package/esm/config/cli/commands/{platform-config-definition.js → config.js} +127 -65
- package/esm/config/cli/commands/platform-config.js +22 -0
- package/esm/config/cli/commands/platform-internal-secret.d.ts +8 -0
- package/esm/config/cli/commands/platform-internal-secret.js +198 -0
- package/esm/config/cli/commands/platform-internal-secrets-del.d.ts +8 -0
- package/esm/{api/cli/commands/provision-database-with-user.js → config/cli/commands/platform-internal-secrets-del.js} +3 -3
- package/esm/config/cli/commands/platform-internal-secrets-remove-array.d.ts +8 -0
- package/esm/config/cli/commands/platform-internal-secrets-remove-array.js +34 -0
- package/esm/config/cli/commands/platform-internal-secrets-rotate.d.ts +8 -0
- package/esm/config/cli/commands/platform-internal-secrets-rotate.js +34 -0
- package/esm/config/cli/commands/platform-internal-secrets-set.d.ts +8 -0
- package/esm/config/cli/commands/platform-internal-secrets-set.js +34 -0
- package/esm/config/cli/commands/platform-secret.d.ts +8 -0
- package/esm/config/cli/commands/platform-secret.js +210 -0
- package/esm/config/cli/commands/secret.d.ts +8 -0
- package/esm/config/cli/commands/secret.js +222 -0
- package/esm/config/cli/commands/secrets-del.d.ts +8 -0
- package/esm/{api/cli/commands/bootstrap-user.js → config/cli/commands/secrets-del.js} +3 -3
- package/esm/config/cli/commands/secrets-remove-array.d.ts +8 -0
- package/esm/config/cli/commands/secrets-remove-array.js +34 -0
- package/esm/config/cli/commands/secrets-rotate.d.ts +8 -0
- package/esm/config/cli/commands/{org-secrets-del.js → secrets-rotate.js} +3 -3
- package/esm/config/cli/commands/secrets-set.d.ts +8 -0
- package/esm/config/cli/commands/{org-secrets-set.js → secrets-set.js} +3 -3
- package/esm/config/cli/commands.js +25 -11
- package/esm/config/cli/executor.d.ts +38 -15
- 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/cli/commands/auth.d.ts +8 -0
- package/esm/infra/cli/commands/auth.js +105 -0
- package/esm/infra/cli/commands/context.d.ts +8 -0
- package/esm/infra/cli/commands/context.js +156 -0
- package/esm/infra/cli/commands/db-preset.d.ts +8 -0
- package/esm/infra/cli/commands/db-preset.js +392 -0
- package/esm/infra/cli/commands/infra-commit.d.ts +8 -0
- package/esm/infra/cli/commands/infra-commit.js +387 -0
- package/esm/infra/cli/commands/infra-get-all-record.d.ts +8 -0
- package/esm/infra/cli/commands/infra-get-all-record.js +124 -0
- package/esm/infra/cli/commands/infra-init-empty-repo.d.ts +8 -0
- package/esm/infra/cli/commands/infra-init-empty-repo.js +34 -0
- package/esm/infra/cli/commands/infra-insert-node-at-path.d.ts +8 -0
- package/esm/infra/cli/commands/infra-insert-node-at-path.js +34 -0
- package/esm/infra/cli/commands/infra-object.d.ts +8 -0
- package/esm/infra/cli/commands/infra-object.js +307 -0
- package/esm/infra/cli/commands/infra-ref.d.ts +8 -0
- package/esm/infra/cli/commands/infra-ref.js +297 -0
- package/esm/infra/cli/commands/infra-set-data-at-path.d.ts +8 -0
- package/esm/infra/cli/commands/infra-set-data-at-path.js +34 -0
- package/esm/infra/cli/commands/infra-store.d.ts +8 -0
- package/esm/infra/cli/commands/infra-store.js +276 -0
- package/esm/infra/cli/commands/namespace-event.d.ts +8 -0
- package/esm/infra/cli/commands/namespace-event.js +508 -0
- package/esm/infra/cli/commands/namespace.d.ts +8 -0
- package/esm/infra/cli/commands/namespace.js +434 -0
- package/esm/infra/cli/commands/platform-namespace-event.d.ts +8 -0
- package/esm/infra/cli/commands/platform-namespace-event.js +488 -0
- package/esm/infra/cli/commands/platform-namespace.d.ts +8 -0
- package/esm/infra/cli/commands/platform-namespace.js +414 -0
- package/esm/infra/cli/commands/provision-bucket.d.ts +8 -0
- package/esm/infra/cli/commands/provision-bucket.js +34 -0
- package/esm/infra/cli/commands.d.ts +7 -0
- package/esm/infra/cli/commands.js +69 -0
- package/esm/infra/cli/executor.d.ts +35 -0
- package/esm/infra/cli/executor.js +35 -0
- package/esm/infra/cli/index.d.ts +1 -0
- package/esm/infra/cli/index.js +24 -0
- package/esm/infra/cli/utils.d.ts +88 -0
- package/esm/infra/cli/utils.js +281 -0
- package/esm/infra/index.d.ts +6 -0
- package/esm/infra/index.js +6 -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/cli/commands/agent-module.js +22 -0
- package/esm/modules/cli/commands/billing-module.js +44 -0
- package/esm/modules/cli/commands/compute-log-module.js +22 -0
- package/esm/modules/cli/commands/config-secrets-user-module.js +22 -22
- package/esm/modules/cli/commands/database-provision-module.js +88 -0
- package/esm/modules/cli/commands/db-pool-config.d.ts +8 -0
- package/esm/modules/cli/commands/db-pool-config.js +368 -0
- package/esm/modules/cli/commands/db-pool.d.ts +8 -0
- package/esm/modules/cli/commands/db-pool.js +438 -0
- package/esm/modules/cli/commands/db-preset-module.d.ts +8 -0
- package/esm/modules/cli/commands/db-preset-module.js +534 -0
- package/esm/modules/cli/commands/db-usage-module.js +110 -0
- package/esm/modules/cli/commands/entity-type-provision.js +0 -22
- package/esm/modules/cli/commands/events-module.js +22 -22
- package/esm/modules/cli/commands/function-deployment-module.js +22 -0
- package/esm/modules/cli/commands/function-invocation-module.js +22 -0
- package/esm/modules/cli/commands/function-module.js +22 -44
- package/esm/modules/cli/commands/graph-execution-module.js +22 -0
- package/esm/modules/cli/commands/graph-module.js +22 -0
- package/esm/modules/cli/commands/hierarchy-module.js +22 -0
- package/esm/modules/cli/commands/identity-providers-module.js +22 -0
- package/esm/modules/cli/commands/inference-log-module.js +22 -0
- package/esm/modules/cli/commands/infra-config-module.d.ts +8 -0
- package/esm/modules/cli/commands/infra-config-module.js +536 -0
- package/esm/modules/cli/commands/infra-secrets-module.d.ts +8 -0
- package/esm/modules/cli/commands/{config-secrets-module.js → infra-secrets-module.js} +54 -76
- package/esm/modules/cli/commands/integration-providers-module.d.ts +8 -0
- package/esm/modules/cli/commands/integration-providers-module.js +492 -0
- package/{config/cli/commands/org-secrets-del.d.ts → esm/modules/cli/commands/internal-secrets-module.d.ts} +1 -1
- package/esm/modules/cli/commands/internal-secrets-module.js +536 -0
- package/esm/modules/cli/commands/invites-module.js +22 -0
- package/esm/modules/cli/commands/limits-module.js +22 -0
- package/esm/modules/cli/commands/memberships-module.js +22 -0
- package/esm/modules/cli/commands/merkle-store-module.js +22 -0
- package/esm/modules/cli/commands/namespace-module.js +22 -22
- package/esm/modules/cli/commands/notifications-module.js +22 -0
- package/esm/modules/cli/commands/permissions-module.js +22 -0
- package/esm/modules/cli/commands/profiles-module.js +22 -0
- package/esm/modules/cli/commands/resource-module.js +154 -0
- package/esm/modules/cli/commands/storage-log-module.js +22 -0
- package/esm/modules/cli/commands/storage-module.js +22 -0
- package/esm/modules/cli/commands/transfer-log-module.js +22 -0
- package/esm/modules/cli/commands/user-credentials-module.js +22 -22
- package/esm/modules/cli/commands/user-state-module.js +22 -0
- package/esm/modules/cli/commands.js +49 -39
- package/esm/modules/cli/executor.d.ts +24 -19
- 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/cli/commands/auth.d.ts +8 -0
- package/infra/cli/commands/auth.js +107 -0
- package/infra/cli/commands/context.d.ts +8 -0
- package/infra/cli/commands/context.js +158 -0
- package/infra/cli/commands/db-preset.d.ts +8 -0
- package/infra/cli/commands/db-preset.js +394 -0
- package/infra/cli/commands/infra-commit.d.ts +8 -0
- package/infra/cli/commands/infra-commit.js +389 -0
- package/infra/cli/commands/infra-get-all-record.d.ts +8 -0
- package/infra/cli/commands/infra-get-all-record.js +126 -0
- package/infra/cli/commands/infra-init-empty-repo.d.ts +8 -0
- package/infra/cli/commands/infra-init-empty-repo.js +36 -0
- package/infra/cli/commands/infra-insert-node-at-path.d.ts +8 -0
- package/infra/cli/commands/infra-insert-node-at-path.js +36 -0
- package/infra/cli/commands/infra-object.d.ts +8 -0
- package/infra/cli/commands/infra-object.js +309 -0
- package/infra/cli/commands/infra-ref.d.ts +8 -0
- package/infra/cli/commands/infra-ref.js +299 -0
- package/infra/cli/commands/infra-set-data-at-path.d.ts +8 -0
- package/infra/cli/commands/infra-set-data-at-path.js +36 -0
- package/infra/cli/commands/infra-store.d.ts +8 -0
- package/infra/cli/commands/infra-store.js +278 -0
- package/infra/cli/commands/namespace-event.d.ts +8 -0
- package/infra/cli/commands/namespace-event.js +510 -0
- package/infra/cli/commands/namespace.d.ts +8 -0
- package/infra/cli/commands/namespace.js +436 -0
- package/infra/cli/commands/platform-namespace-event.d.ts +8 -0
- package/infra/cli/commands/platform-namespace-event.js +490 -0
- package/infra/cli/commands/platform-namespace.d.ts +8 -0
- package/infra/cli/commands/platform-namespace.js +416 -0
- package/infra/cli/commands/provision-bucket.d.ts +8 -0
- package/infra/cli/commands/provision-bucket.js +36 -0
- package/infra/cli/commands.d.ts +7 -0
- package/infra/cli/commands.js +76 -0
- package/infra/cli/executor.d.ts +35 -0
- package/infra/cli/executor.js +40 -0
- package/infra/cli/index.d.ts +1 -0
- package/infra/cli/index.js +26 -0
- package/infra/cli/utils.d.ts +88 -0
- package/infra/cli/utils.js +297 -0
- package/infra/index.d.ts +6 -0
- package/infra/index.js +22 -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/cli/commands/agent-module.js +22 -0
- package/modules/cli/commands/billing-module.js +44 -0
- package/modules/cli/commands/compute-log-module.js +22 -0
- package/modules/cli/commands/config-secrets-user-module.js +22 -22
- package/modules/cli/commands/database-provision-module.js +88 -0
- package/modules/cli/commands/db-pool-config.d.ts +8 -0
- package/modules/cli/commands/db-pool-config.js +370 -0
- package/modules/cli/commands/db-pool.d.ts +8 -0
- package/modules/cli/commands/db-pool.js +440 -0
- package/modules/cli/commands/db-preset-module.d.ts +8 -0
- package/modules/cli/commands/db-preset-module.js +536 -0
- package/modules/cli/commands/db-usage-module.js +110 -0
- package/modules/cli/commands/entity-type-provision.js +0 -22
- package/modules/cli/commands/events-module.js +22 -22
- package/modules/cli/commands/function-deployment-module.js +22 -0
- package/modules/cli/commands/function-invocation-module.js +22 -0
- package/modules/cli/commands/function-module.js +22 -44
- package/modules/cli/commands/graph-execution-module.js +22 -0
- package/modules/cli/commands/graph-module.js +22 -0
- package/modules/cli/commands/hierarchy-module.js +22 -0
- package/modules/cli/commands/identity-providers-module.js +22 -0
- package/modules/cli/commands/inference-log-module.js +22 -0
- package/modules/cli/commands/infra-config-module.d.ts +8 -0
- package/modules/cli/commands/infra-config-module.js +538 -0
- package/modules/cli/commands/infra-secrets-module.d.ts +8 -0
- package/modules/cli/commands/{config-secrets-module.js → infra-secrets-module.js} +54 -76
- package/modules/cli/commands/integration-providers-module.d.ts +8 -0
- package/modules/cli/commands/integration-providers-module.js +494 -0
- package/modules/cli/commands/internal-secrets-module.d.ts +8 -0
- package/modules/cli/commands/internal-secrets-module.js +538 -0
- package/modules/cli/commands/invites-module.js +22 -0
- package/modules/cli/commands/limits-module.js +22 -0
- package/modules/cli/commands/memberships-module.js +22 -0
- package/modules/cli/commands/merkle-store-module.js +22 -0
- package/modules/cli/commands/namespace-module.js +22 -22
- package/modules/cli/commands/notifications-module.js +22 -0
- package/modules/cli/commands/permissions-module.js +22 -0
- package/modules/cli/commands/profiles-module.js +22 -0
- package/modules/cli/commands/resource-module.js +154 -0
- package/modules/cli/commands/storage-log-module.js +22 -0
- package/modules/cli/commands/storage-module.js +22 -0
- package/modules/cli/commands/transfer-log-module.js +22 -0
- package/modules/cli/commands/user-credentials-module.js +22 -22
- package/modules/cli/commands/user-state-module.js +22 -0
- package/modules/cli/commands.js +49 -39
- package/modules/cli/executor.d.ts +24 -19
- 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 +4 -4
- package/api/cli/commands/create-user-database.js +0 -36
- 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/cli/commands/org-secrets-remove-array.d.ts +0 -8
- package/config/cli/commands/org-secrets-rotate.d.ts +0 -8
- package/config/cli/commands/org-secrets-set.d.ts +0 -8
- package/config/cli/commands/platform-config-definition.d.ts +0 -8
- package/config/orm/models/platformConfigDefinition.d.ts +0 -54
- package/esm/api/cli/commands/bootstrap-user.d.ts +0 -8
- package/esm/api/cli/commands/create-user-database.d.ts +0 -8
- package/esm/api/cli/commands/create-user-database.js +0 -34
- package/esm/api/cli/commands/provision-database-with-user.d.ts +0 -8
- package/esm/compute/cli/commands/org-function-execution-log.d.ts +0 -8
- package/esm/compute/cli/commands/org-function-invocation.d.ts +0 -8
- 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/cli/commands/org-secrets-del.d.ts +0 -8
- package/esm/config/cli/commands/org-secrets-remove-array.d.ts +0 -8
- package/esm/config/cli/commands/org-secrets-rotate.d.ts +0 -8
- package/esm/config/cli/commands/org-secrets-set.d.ts +0 -8
- package/esm/config/cli/commands/platform-config-definition.d.ts +0 -8
- package/esm/config/orm/models/platformConfigDefinition.d.ts +0 -54
- package/esm/modules/cli/commands/config-secrets-org-module.d.ts +0 -8
- package/esm/modules/orm/models/configSecretsModule.d.ts +0 -54
- package/esm/modules/orm/models/configSecretsOrgModule.d.ts +0 -54
- package/modules/cli/commands/config-secrets-org-module.d.ts +0 -8
- 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';
|
package/api/orm/models/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.WebauthnSettingModel = exports.AstMigrationModel = exports.DatabaseSettingModel = exports.SqlActionModel = exports.RlsSettingModel = exports.DatabaseModel = exports.PubkeySettingModel = exports.NodeTypeRegistryModel = exports.MigrateFileModel = exports.ApiSettingModel = exports.AppModel = exports.SiteModel = exports.ApiModel = exports.DatabaseTransferModel = exports.PartitionModel = exports.TriggerFunctionModel = exports.CorsSettingModel = exports.SiteThemeModel = exports.SiteModuleModel = exports.SiteMetadatumModel = exports.DomainModel = exports.ApiModuleModel = exports.ApiSchemaModel = exports.CompositeTypeModel = exports.EnumModel = exports.DefaultPrivilegeModel = exports.SchemaGrantModel = exports.EmbeddingChunkModel = exports.ViewRuleModel = exports.ViewGrantModel = exports.ViewTableModel = exports.ViewModel = exports.UniqueConstraintModel = exports.TriggerModel = exports.TableGrantModel = exports.PrimaryKeyConstraintModel = exports.PolicyModel = exports.IndexModel = exports.FullTextSearchModel = exports.ForeignKeyConstraintModel = exports.SpatialRelationModel = exports.FieldModel = exports.CheckConstraintModel = exports.TableModel = exports.SchemaModel = exports.FunctionModel = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Models barrel export
|
|
6
6
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -94,7 +94,7 @@ var sqlAction_1 = require("./sqlAction");
|
|
|
94
94
|
Object.defineProperty(exports, "SqlActionModel", { enumerable: true, get: function () { return sqlAction_1.SqlActionModel; } });
|
|
95
95
|
var databaseSetting_1 = require("./databaseSetting");
|
|
96
96
|
Object.defineProperty(exports, "DatabaseSettingModel", { enumerable: true, get: function () { return databaseSetting_1.DatabaseSettingModel; } });
|
|
97
|
-
var webauthnSetting_1 = require("./webauthnSetting");
|
|
98
|
-
Object.defineProperty(exports, "WebauthnSettingModel", { enumerable: true, get: function () { return webauthnSetting_1.WebauthnSettingModel; } });
|
|
99
97
|
var astMigration_1 = require("./astMigration");
|
|
100
98
|
Object.defineProperty(exports, "AstMigrationModel", { enumerable: true, get: function () { return astMigration_1.AstMigrationModel; } });
|
|
99
|
+
var webauthnSetting_1 = require("./webauthnSetting");
|
|
100
|
+
Object.defineProperty(exports, "WebauthnSettingModel", { enumerable: true, get: function () { return webauthnSetting_1.WebauthnSettingModel; } });
|
|
@@ -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;
|
|
@@ -41,30 +41,6 @@ function createMutationOperations(client) {
|
|
|
41
41
|
},
|
|
42
42
|
], input_types_1.connectionFieldsMap, 'RejectDatabaseTransferPayload'),
|
|
43
43
|
}),
|
|
44
|
-
provisionDatabaseWithUser: (args, options) => new query_builder_1.QueryBuilder({
|
|
45
|
-
client,
|
|
46
|
-
operation: 'mutation',
|
|
47
|
-
operationName: 'ProvisionDatabaseWithUser',
|
|
48
|
-
fieldName: 'provisionDatabaseWithUser',
|
|
49
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionDatabaseWithUser', 'provisionDatabaseWithUser', options.select, args, [
|
|
50
|
-
{
|
|
51
|
-
name: 'input',
|
|
52
|
-
type: 'ProvisionDatabaseWithUserInput!',
|
|
53
|
-
},
|
|
54
|
-
], input_types_1.connectionFieldsMap, 'ProvisionDatabaseWithUserPayload'),
|
|
55
|
-
}),
|
|
56
|
-
bootstrapUser: (args, options) => new query_builder_1.QueryBuilder({
|
|
57
|
-
client,
|
|
58
|
-
operation: 'mutation',
|
|
59
|
-
operationName: 'BootstrapUser',
|
|
60
|
-
fieldName: 'bootstrapUser',
|
|
61
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'BootstrapUser', 'bootstrapUser', options.select, args, [
|
|
62
|
-
{
|
|
63
|
-
name: 'input',
|
|
64
|
-
type: 'BootstrapUserInput!',
|
|
65
|
-
},
|
|
66
|
-
], input_types_1.connectionFieldsMap, 'BootstrapUserPayload'),
|
|
67
|
-
}),
|
|
68
44
|
setFieldOrder: (args, options) => new query_builder_1.QueryBuilder({
|
|
69
45
|
client,
|
|
70
46
|
operation: 'mutation',
|
|
@@ -89,17 +65,17 @@ function createMutationOperations(client) {
|
|
|
89
65
|
},
|
|
90
66
|
], input_types_1.connectionFieldsMap, 'ApplyRlsPayload'),
|
|
91
67
|
}),
|
|
92
|
-
|
|
68
|
+
requestDatabase: (args, options) => new query_builder_1.QueryBuilder({
|
|
93
69
|
client,
|
|
94
70
|
operation: 'mutation',
|
|
95
|
-
operationName: '
|
|
96
|
-
fieldName: '
|
|
97
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
71
|
+
operationName: 'RequestDatabase',
|
|
72
|
+
fieldName: 'requestDatabase',
|
|
73
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'RequestDatabase', 'requestDatabase', options.select, args, [
|
|
98
74
|
{
|
|
99
75
|
name: 'input',
|
|
100
|
-
type: '
|
|
76
|
+
type: 'RequestDatabaseInput!',
|
|
101
77
|
},
|
|
102
|
-
], input_types_1.connectionFieldsMap, '
|
|
78
|
+
], input_types_1.connectionFieldsMap, 'RequestDatabasePayload'),
|
|
103
79
|
}),
|
|
104
80
|
provisionBucket: (args, options) => new query_builder_1.QueryBuilder({
|
|
105
81
|
client,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation deletePrincipal
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|
|
@@ -5,7 +5,7 @@ const utils_1 = require("../utils");
|
|
|
5
5
|
exports.default = async (argv, prompter, _options) => {
|
|
6
6
|
try {
|
|
7
7
|
if (argv.help || argv.h) {
|
|
8
|
-
console.log('
|
|
8
|
+
console.log('delete-principal - deletePrincipal\n\nUsage: delete-principal [OPTIONS]\n');
|
|
9
9
|
process.exit(0);
|
|
10
10
|
}
|
|
11
11
|
const answers = await prompter.prompt(argv, [
|
|
@@ -20,14 +20,14 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
20
20
|
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
|
-
.
|
|
23
|
+
.deletePrincipal(parsedAnswers, {
|
|
24
24
|
select: selectFields,
|
|
25
25
|
})
|
|
26
26
|
.execute();
|
|
27
27
|
console.log(JSON.stringify(result, null, 2));
|
|
28
28
|
}
|
|
29
29
|
catch (error) {
|
|
30
|
-
console.error('Failed:
|
|
30
|
+
console.error('Failed: deletePrincipal');
|
|
31
31
|
if (error instanceof Error) {
|
|
32
32
|
console.error(error.message);
|
|
33
33
|
}
|
|
@@ -15,7 +15,8 @@ const fieldSchema = {
|
|
|
15
15
|
principalId: 'uuid',
|
|
16
16
|
membershipType: 'int',
|
|
17
17
|
allowedMask: 'string',
|
|
18
|
-
|
|
18
|
+
useAdminOwner: 'boolean',
|
|
19
|
+
isActive: 'boolean',
|
|
19
20
|
isReadOnly: 'boolean',
|
|
20
21
|
};
|
|
21
22
|
const usage = '\nprincipal-scope-override <command>\n\nCommands:\n list List principalScopeOverride records\n find-first Find first matching principalScopeOverride record\n create Create a new principalScopeOverride\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
@@ -60,7 +61,8 @@ async function handleList(argv, _prompter) {
|
|
|
60
61
|
principalId: true,
|
|
61
62
|
membershipType: true,
|
|
62
63
|
allowedMask: true,
|
|
63
|
-
|
|
64
|
+
useAdminOwner: true,
|
|
65
|
+
isActive: true,
|
|
64
66
|
isReadOnly: true,
|
|
65
67
|
};
|
|
66
68
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
@@ -85,7 +87,8 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
85
87
|
principalId: true,
|
|
86
88
|
membershipType: true,
|
|
87
89
|
allowedMask: true,
|
|
88
|
-
|
|
90
|
+
useAdminOwner: true,
|
|
91
|
+
isActive: true,
|
|
89
92
|
isReadOnly: true,
|
|
90
93
|
};
|
|
91
94
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
@@ -124,8 +127,14 @@ async function handleCreate(argv, prompter) {
|
|
|
124
127
|
},
|
|
125
128
|
{
|
|
126
129
|
type: 'boolean',
|
|
127
|
-
name: '
|
|
128
|
-
message: '
|
|
130
|
+
name: 'useAdminOwner',
|
|
131
|
+
message: 'useAdminOwner',
|
|
132
|
+
required: true,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: 'boolean',
|
|
136
|
+
name: 'isActive',
|
|
137
|
+
message: 'isActive',
|
|
129
138
|
required: true,
|
|
130
139
|
},
|
|
131
140
|
{
|
|
@@ -144,7 +153,8 @@ async function handleCreate(argv, prompter) {
|
|
|
144
153
|
principalId: cleanedData.principalId,
|
|
145
154
|
membershipType: cleanedData.membershipType,
|
|
146
155
|
allowedMask: cleanedData.allowedMask,
|
|
147
|
-
|
|
156
|
+
useAdminOwner: cleanedData.useAdminOwner,
|
|
157
|
+
isActive: cleanedData.isActive,
|
|
148
158
|
isReadOnly: cleanedData.isReadOnly,
|
|
149
159
|
},
|
|
150
160
|
select: {
|
|
@@ -154,7 +164,8 @@ async function handleCreate(argv, prompter) {
|
|
|
154
164
|
principalId: true,
|
|
155
165
|
membershipType: true,
|
|
156
166
|
allowedMask: true,
|
|
157
|
-
|
|
167
|
+
useAdminOwner: true,
|
|
168
|
+
isActive: true,
|
|
158
169
|
isReadOnly: true,
|
|
159
170
|
},
|
|
160
171
|
})
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import { CLIOptions, Inquirerer } from
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
7
|
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
8
|
export default _default;
|
|
@@ -9,17 +9,17 @@ const inquirerer_1 = require("inquirerer");
|
|
|
9
9
|
const executor_1 = require("../executor");
|
|
10
10
|
const utils_1 = require("../utils");
|
|
11
11
|
const fieldSchema = {
|
|
12
|
-
id:
|
|
13
|
-
createdAt:
|
|
14
|
-
updatedAt:
|
|
15
|
-
ownerId:
|
|
16
|
-
userId:
|
|
17
|
-
name:
|
|
18
|
-
|
|
19
|
-
isReadOnly:
|
|
20
|
-
bypassStepUp:
|
|
12
|
+
id: 'uuid',
|
|
13
|
+
createdAt: 'string',
|
|
14
|
+
updatedAt: 'string',
|
|
15
|
+
ownerId: 'uuid',
|
|
16
|
+
userId: 'uuid',
|
|
17
|
+
name: 'string',
|
|
18
|
+
useAdminOwner: 'boolean',
|
|
19
|
+
isReadOnly: 'boolean',
|
|
20
|
+
bypassStepUp: 'boolean',
|
|
21
21
|
};
|
|
22
|
-
const usage =
|
|
22
|
+
const usage = '\nprincipal <command>\n\nCommands:\n list List principal records\n find-first Find first matching principal record\n create Create a new principal\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
23
23
|
exports.default = async (argv, prompter, _options) => {
|
|
24
24
|
if (argv.help || argv.h) {
|
|
25
25
|
console.log(usage);
|
|
@@ -27,23 +27,25 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
27
27
|
}
|
|
28
28
|
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
29
29
|
if (!subcommand) {
|
|
30
|
-
const answer = await prompter.prompt(argv, [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
const answer = await prompter.prompt(argv, [
|
|
31
|
+
{
|
|
32
|
+
type: 'autocomplete',
|
|
33
|
+
name: 'subcommand',
|
|
34
|
+
message: 'What do you want to do?',
|
|
35
|
+
options: ['list', 'find-first', 'create'],
|
|
36
|
+
},
|
|
37
|
+
]);
|
|
36
38
|
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
37
39
|
}
|
|
38
40
|
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
39
41
|
};
|
|
40
42
|
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
41
43
|
switch (subcommand) {
|
|
42
|
-
case
|
|
44
|
+
case 'list':
|
|
43
45
|
return handleList(argv, prompter);
|
|
44
|
-
case
|
|
46
|
+
case 'find-first':
|
|
45
47
|
return handleFindFirst(argv, prompter);
|
|
46
|
-
case
|
|
48
|
+
case 'create':
|
|
47
49
|
return handleCreate(argv, prompter);
|
|
48
50
|
default:
|
|
49
51
|
console.log(usage);
|
|
@@ -59,9 +61,9 @@ async function handleList(argv, _prompter) {
|
|
|
59
61
|
ownerId: true,
|
|
60
62
|
userId: true,
|
|
61
63
|
name: true,
|
|
62
|
-
|
|
64
|
+
useAdminOwner: true,
|
|
63
65
|
isReadOnly: true,
|
|
64
|
-
bypassStepUp: true
|
|
66
|
+
bypassStepUp: true,
|
|
65
67
|
};
|
|
66
68
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
67
69
|
const client = (0, executor_1.getClient)();
|
|
@@ -69,7 +71,7 @@ async function handleList(argv, _prompter) {
|
|
|
69
71
|
console.log(JSON.stringify(result, null, 2));
|
|
70
72
|
}
|
|
71
73
|
catch (error) {
|
|
72
|
-
console.error(
|
|
74
|
+
console.error('Failed to list records.');
|
|
73
75
|
if (error instanceof Error) {
|
|
74
76
|
console.error(error.message);
|
|
75
77
|
}
|
|
@@ -85,9 +87,9 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
85
87
|
ownerId: true,
|
|
86
88
|
userId: true,
|
|
87
89
|
name: true,
|
|
88
|
-
|
|
90
|
+
useAdminOwner: true,
|
|
89
91
|
isReadOnly: true,
|
|
90
|
-
bypassStepUp: true
|
|
92
|
+
bypassStepUp: true,
|
|
91
93
|
};
|
|
92
94
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
93
95
|
const client = (0, executor_1.getClient)();
|
|
@@ -95,7 +97,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
95
97
|
console.log(JSON.stringify(result, null, 2));
|
|
96
98
|
}
|
|
97
99
|
catch (error) {
|
|
98
|
-
console.error(
|
|
100
|
+
console.error('Failed to find record.');
|
|
99
101
|
if (error instanceof Error) {
|
|
100
102
|
console.error(error.message);
|
|
101
103
|
}
|
|
@@ -104,48 +106,56 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
104
106
|
}
|
|
105
107
|
async function handleCreate(argv, prompter) {
|
|
106
108
|
try {
|
|
107
|
-
const rawAnswers = await prompter.prompt(argv, [
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
type:
|
|
134
|
-
name:
|
|
135
|
-
message:
|
|
136
|
-
required: true
|
|
137
|
-
}
|
|
109
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
110
|
+
{
|
|
111
|
+
type: 'text',
|
|
112
|
+
name: 'ownerId',
|
|
113
|
+
message: 'ownerId',
|
|
114
|
+
required: true,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: 'text',
|
|
118
|
+
name: 'userId',
|
|
119
|
+
message: 'userId',
|
|
120
|
+
required: true,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
type: 'text',
|
|
124
|
+
name: 'name',
|
|
125
|
+
message: 'name',
|
|
126
|
+
required: true,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: 'boolean',
|
|
130
|
+
name: 'useAdminOwner',
|
|
131
|
+
message: 'useAdminOwner',
|
|
132
|
+
required: true,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: 'boolean',
|
|
136
|
+
name: 'isReadOnly',
|
|
137
|
+
message: 'isReadOnly',
|
|
138
|
+
required: true,
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
type: 'boolean',
|
|
142
|
+
name: 'bypassStepUp',
|
|
143
|
+
message: 'bypassStepUp',
|
|
144
|
+
required: true,
|
|
145
|
+
},
|
|
146
|
+
]);
|
|
138
147
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
139
148
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
140
149
|
const client = (0, executor_1.getClient)();
|
|
141
|
-
const result = await client.principal
|
|
150
|
+
const result = await client.principal
|
|
151
|
+
.create({
|
|
142
152
|
data: {
|
|
143
153
|
ownerId: cleanedData.ownerId,
|
|
144
154
|
userId: cleanedData.userId,
|
|
145
155
|
name: cleanedData.name,
|
|
146
|
-
|
|
156
|
+
useAdminOwner: cleanedData.useAdminOwner,
|
|
147
157
|
isReadOnly: cleanedData.isReadOnly,
|
|
148
|
-
bypassStepUp: cleanedData.bypassStepUp
|
|
158
|
+
bypassStepUp: cleanedData.bypassStepUp,
|
|
149
159
|
},
|
|
150
160
|
select: {
|
|
151
161
|
id: true,
|
|
@@ -154,15 +164,16 @@ async function handleCreate(argv, prompter) {
|
|
|
154
164
|
ownerId: true,
|
|
155
165
|
userId: true,
|
|
156
166
|
name: true,
|
|
157
|
-
|
|
167
|
+
useAdminOwner: true,
|
|
158
168
|
isReadOnly: true,
|
|
159
|
-
bypassStepUp: true
|
|
160
|
-
}
|
|
161
|
-
})
|
|
169
|
+
bypassStepUp: true,
|
|
170
|
+
},
|
|
171
|
+
})
|
|
172
|
+
.execute();
|
|
162
173
|
console.log(JSON.stringify(result, null, 2));
|
|
163
174
|
}
|
|
164
175
|
catch (error) {
|
|
165
|
-
console.error(
|
|
176
|
+
console.error('Failed to create record.');
|
|
166
177
|
if (error instanceof Error) {
|
|
167
178
|
console.error(error.message);
|
|
168
179
|
}
|
package/auth/cli/commands.js
CHANGED
|
@@ -34,6 +34,7 @@ const sign_out_1 = __importDefault(require("./commands/sign-out"));
|
|
|
34
34
|
const send_account_deletion_email_1 = __importDefault(require("./commands/send-account-deletion-email"));
|
|
35
35
|
const check_password_1 = __importDefault(require("./commands/check-password"));
|
|
36
36
|
const delete_org_principal_1 = __importDefault(require("./commands/delete-org-principal"));
|
|
37
|
+
const delete_principal_1 = __importDefault(require("./commands/delete-principal"));
|
|
37
38
|
const disconnect_account_1 = __importDefault(require("./commands/disconnect-account"));
|
|
38
39
|
const revoke_api_key_1 = __importDefault(require("./commands/revoke-api-key"));
|
|
39
40
|
const revoke_session_1 = __importDefault(require("./commands/revoke-session"));
|
|
@@ -45,13 +46,13 @@ const set_password_1 = __importDefault(require("./commands/set-password"));
|
|
|
45
46
|
const verify_email_1 = __importDefault(require("./commands/verify-email"));
|
|
46
47
|
const provision_new_user_1 = __importDefault(require("./commands/provision-new-user"));
|
|
47
48
|
const reset_password_1 = __importDefault(require("./commands/reset-password"));
|
|
49
|
+
const create_org_principal_1 = __importDefault(require("./commands/create-org-principal"));
|
|
48
50
|
const sign_in_cross_origin_1 = __importDefault(require("./commands/sign-in-cross-origin"));
|
|
49
51
|
const sign_in_sms_otp_1 = __importDefault(require("./commands/sign-in-sms-otp"));
|
|
50
52
|
const sign_up_sms_1 = __importDefault(require("./commands/sign-up-sms"));
|
|
51
53
|
const sign_up_1 = __importDefault(require("./commands/sign-up"));
|
|
52
54
|
const sign_in_1 = __importDefault(require("./commands/sign-in"));
|
|
53
55
|
const link_identity_1 = __importDefault(require("./commands/link-identity"));
|
|
54
|
-
const create_org_principal_1 = __importDefault(require("./commands/create-org-principal"));
|
|
55
56
|
const extend_token_expires_1 = __importDefault(require("./commands/extend-token-expires"));
|
|
56
57
|
const create_org_api_key_1 = __importDefault(require("./commands/create-org-api-key"));
|
|
57
58
|
const create_api_key_1 = __importDefault(require("./commands/create-api-key"));
|
|
@@ -84,6 +85,7 @@ const createCommandMap = () => ({
|
|
|
84
85
|
'send-account-deletion-email': send_account_deletion_email_1.default,
|
|
85
86
|
'check-password': check_password_1.default,
|
|
86
87
|
'delete-org-principal': delete_org_principal_1.default,
|
|
88
|
+
'delete-principal': delete_principal_1.default,
|
|
87
89
|
'disconnect-account': disconnect_account_1.default,
|
|
88
90
|
'revoke-api-key': revoke_api_key_1.default,
|
|
89
91
|
'revoke-session': revoke_session_1.default,
|
|
@@ -95,13 +97,13 @@ const createCommandMap = () => ({
|
|
|
95
97
|
'verify-email': verify_email_1.default,
|
|
96
98
|
'provision-new-user': provision_new_user_1.default,
|
|
97
99
|
'reset-password': reset_password_1.default,
|
|
100
|
+
'create-org-principal': create_org_principal_1.default,
|
|
98
101
|
'sign-in-cross-origin': sign_in_cross_origin_1.default,
|
|
99
102
|
'sign-in-sms-otp': sign_in_sms_otp_1.default,
|
|
100
103
|
'sign-up-sms': sign_up_sms_1.default,
|
|
101
104
|
'sign-up': sign_up_1.default,
|
|
102
105
|
'sign-in': sign_in_1.default,
|
|
103
106
|
'link-identity': link_identity_1.default,
|
|
104
|
-
'create-org-principal': create_org_principal_1.default,
|
|
105
107
|
'extend-token-expires': extend_token_expires_1.default,
|
|
106
108
|
'create-org-api-key': create_org_api_key_1.default,
|
|
107
109
|
'create-api-key': create_api_key_1.default,
|
|
@@ -110,7 +112,7 @@ const createCommandMap = () => ({
|
|
|
110
112
|
'send-verification-email': send_verification_email_1.default,
|
|
111
113
|
'provision-bucket': provision_bucket_1.default,
|
|
112
114
|
});
|
|
113
|
-
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-user-id currentUserId\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n delete-org-principal deleteOrgPrincipal\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n revoke-org-api-key revokeOrgApiKey\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-in-sms-otp signInSmsOtp\n sign-up-sms signUpSms\n sign-up signUp\n sign-in signIn\n link-identity linkIdentity\n
|
|
115
|
+
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-user-id currentUserId\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n revoke-org-api-key revokeOrgApiKey\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n create-org-principal createOrgPrincipal\n sign-in-cross-origin signInCrossOrigin\n sign-in-sms-otp signInSmsOtp\n sign-up-sms signUpSms\n sign-up signUp\n sign-in signIn\n link-identity linkIdentity\n extend-token-expires extendTokenExpires\n create-org-api-key createOrgApiKey\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n';
|
|
114
116
|
const commands = async (argv, prompter, options) => {
|
|
115
117
|
if (argv.help || argv.h) {
|
|
116
118
|
console.log(usage);
|
package/auth/cli/executor.d.ts
CHANGED
|
@@ -61,6 +61,11 @@ export declare function getClient(contextName?: string): {
|
|
|
61
61
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").DeleteOrgPrincipalPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
62
62
|
deleteOrgPrincipal: import("../orm").InferSelectResult<import("../orm/input-types").DeleteOrgPrincipalPayload, S> | null;
|
|
63
63
|
}>;
|
|
64
|
+
deletePrincipal: <S extends import("../orm/input-types").DeletePrincipalPayloadSelect>(args: import("../orm/mutation").DeletePrincipalVariables, options: {
|
|
65
|
+
select: S;
|
|
66
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").DeletePrincipalPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
67
|
+
deletePrincipal: import("../orm").InferSelectResult<import("../orm/input-types").DeletePrincipalPayload, S> | null;
|
|
68
|
+
}>;
|
|
64
69
|
disconnectAccount: <S extends import("../orm/input-types").DisconnectAccountPayloadSelect>(args: import("../orm/mutation").DisconnectAccountVariables, options: {
|
|
65
70
|
select: S;
|
|
66
71
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").DisconnectAccountPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
@@ -116,6 +121,11 @@ export declare function getClient(contextName?: string): {
|
|
|
116
121
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").ResetPasswordPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
117
122
|
resetPassword: import("../orm").InferSelectResult<import("../orm/input-types").ResetPasswordPayload, S> | null;
|
|
118
123
|
}>;
|
|
124
|
+
createOrgPrincipal: <S extends import("../orm/input-types").CreateOrgPrincipalPayloadSelect>(args: import("../orm/mutation").CreateOrgPrincipalVariables, options: {
|
|
125
|
+
select: S;
|
|
126
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").CreateOrgPrincipalPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
127
|
+
createOrgPrincipal: import("../orm").InferSelectResult<import("../orm/input-types").CreateOrgPrincipalPayload, S> | null;
|
|
128
|
+
}>;
|
|
119
129
|
signInCrossOrigin: <S extends import("../orm/input-types").SignInCrossOriginPayloadSelect>(args: import("../orm/mutation").SignInCrossOriginVariables, options: {
|
|
120
130
|
select: S;
|
|
121
131
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").SignInCrossOriginPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
@@ -146,11 +156,6 @@ export declare function getClient(contextName?: string): {
|
|
|
146
156
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").LinkIdentityPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
147
157
|
linkIdentity: import("../orm").InferSelectResult<import("../orm/input-types").LinkIdentityPayload, S> | null;
|
|
148
158
|
}>;
|
|
149
|
-
createOrgPrincipal: <S extends import("../orm/input-types").CreateOrgPrincipalPayloadSelect>(args: import("../orm/mutation").CreateOrgPrincipalVariables, options: {
|
|
150
|
-
select: S;
|
|
151
|
-
} & import("../orm").StrictSelect<S, import("../orm/input-types").CreateOrgPrincipalPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
152
|
-
createOrgPrincipal: import("../orm").InferSelectResult<import("../orm/input-types").CreateOrgPrincipalPayload, S> | null;
|
|
153
|
-
}>;
|
|
154
159
|
extendTokenExpires: <S extends import("../orm/input-types").ExtendTokenExpiresPayloadSelect>(args: import("../orm/mutation").ExtendTokenExpiresVariables, options: {
|
|
155
160
|
select: S;
|
|
156
161
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").ExtendTokenExpiresPayloadSelect>) => import("../orm").QueryBuilder<{
|