@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
|
@@ -17,6 +17,8 @@ const fieldSchema = {
|
|
|
17
17
|
isRequired: 'boolean',
|
|
18
18
|
apiRequired: 'boolean',
|
|
19
19
|
defaultValue: 'json',
|
|
20
|
+
generationExpression: 'json',
|
|
21
|
+
generationType: 'string',
|
|
20
22
|
type: 'json',
|
|
21
23
|
fieldOrder: 'int',
|
|
22
24
|
regexp: 'string',
|
|
@@ -81,6 +83,8 @@ async function handleList(argv, _prompter) {
|
|
|
81
83
|
isRequired: true,
|
|
82
84
|
apiRequired: true,
|
|
83
85
|
defaultValue: true,
|
|
86
|
+
generationExpression: true,
|
|
87
|
+
generationType: true,
|
|
84
88
|
type: true,
|
|
85
89
|
fieldOrder: true,
|
|
86
90
|
regexp: true,
|
|
@@ -119,6 +123,8 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
119
123
|
isRequired: true,
|
|
120
124
|
apiRequired: true,
|
|
121
125
|
defaultValue: true,
|
|
126
|
+
generationExpression: true,
|
|
127
|
+
generationType: true,
|
|
122
128
|
type: true,
|
|
123
129
|
fieldOrder: true,
|
|
124
130
|
regexp: true,
|
|
@@ -169,6 +175,8 @@ async function handleGet(argv, prompter) {
|
|
|
169
175
|
isRequired: true,
|
|
170
176
|
apiRequired: true,
|
|
171
177
|
defaultValue: true,
|
|
178
|
+
generationExpression: true,
|
|
179
|
+
generationType: true,
|
|
172
180
|
type: true,
|
|
173
181
|
fieldOrder: true,
|
|
174
182
|
regexp: true,
|
|
@@ -257,6 +265,20 @@ async function handleCreate(argv, prompter) {
|
|
|
257
265
|
required: false,
|
|
258
266
|
skipPrompt: true,
|
|
259
267
|
},
|
|
268
|
+
{
|
|
269
|
+
type: 'json',
|
|
270
|
+
name: 'generationExpression',
|
|
271
|
+
message: 'generationExpression',
|
|
272
|
+
required: false,
|
|
273
|
+
skipPrompt: true,
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
type: 'text',
|
|
277
|
+
name: 'generationType',
|
|
278
|
+
message: 'generationType',
|
|
279
|
+
required: false,
|
|
280
|
+
skipPrompt: true,
|
|
281
|
+
},
|
|
260
282
|
{
|
|
261
283
|
type: 'json',
|
|
262
284
|
name: 'type',
|
|
@@ -335,6 +357,8 @@ async function handleCreate(argv, prompter) {
|
|
|
335
357
|
isRequired: cleanedData.isRequired,
|
|
336
358
|
apiRequired: cleanedData.apiRequired,
|
|
337
359
|
defaultValue: cleanedData.defaultValue,
|
|
360
|
+
generationExpression: cleanedData.generationExpression,
|
|
361
|
+
generationType: cleanedData.generationType,
|
|
338
362
|
type: cleanedData.type,
|
|
339
363
|
fieldOrder: cleanedData.fieldOrder,
|
|
340
364
|
regexp: cleanedData.regexp,
|
|
@@ -356,6 +380,8 @@ async function handleCreate(argv, prompter) {
|
|
|
356
380
|
isRequired: true,
|
|
357
381
|
apiRequired: true,
|
|
358
382
|
defaultValue: true,
|
|
383
|
+
generationExpression: true,
|
|
384
|
+
generationType: true,
|
|
359
385
|
type: true,
|
|
360
386
|
fieldOrder: true,
|
|
361
387
|
regexp: true,
|
|
@@ -450,6 +476,20 @@ async function handleUpdate(argv, prompter) {
|
|
|
450
476
|
required: false,
|
|
451
477
|
skipPrompt: true,
|
|
452
478
|
},
|
|
479
|
+
{
|
|
480
|
+
type: 'json',
|
|
481
|
+
name: 'generationExpression',
|
|
482
|
+
message: 'generationExpression',
|
|
483
|
+
required: false,
|
|
484
|
+
skipPrompt: true,
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
type: 'text',
|
|
488
|
+
name: 'generationType',
|
|
489
|
+
message: 'generationType',
|
|
490
|
+
required: false,
|
|
491
|
+
skipPrompt: true,
|
|
492
|
+
},
|
|
453
493
|
{
|
|
454
494
|
type: 'json',
|
|
455
495
|
name: 'type',
|
|
@@ -531,6 +571,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
531
571
|
isRequired: cleanedData.isRequired,
|
|
532
572
|
apiRequired: cleanedData.apiRequired,
|
|
533
573
|
defaultValue: cleanedData.defaultValue,
|
|
574
|
+
generationExpression: cleanedData.generationExpression,
|
|
575
|
+
generationType: cleanedData.generationType,
|
|
534
576
|
type: cleanedData.type,
|
|
535
577
|
fieldOrder: cleanedData.fieldOrder,
|
|
536
578
|
regexp: cleanedData.regexp,
|
|
@@ -552,6 +594,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
552
594
|
isRequired: true,
|
|
553
595
|
apiRequired: true,
|
|
554
596
|
defaultValue: true,
|
|
597
|
+
generationExpression: true,
|
|
598
|
+
generationType: true,
|
|
555
599
|
type: true,
|
|
556
600
|
fieldOrder: true,
|
|
557
601
|
regexp: true,
|
|
@@ -17,6 +17,7 @@ const fieldSchema = {
|
|
|
17
17
|
disabled: 'boolean',
|
|
18
18
|
policyType: 'string',
|
|
19
19
|
data: 'json',
|
|
20
|
+
withCheck: 'json',
|
|
20
21
|
smartTags: 'json',
|
|
21
22
|
category: 'string',
|
|
22
23
|
tags: 'string',
|
|
@@ -75,6 +76,7 @@ async function handleList(argv, _prompter) {
|
|
|
75
76
|
disabled: true,
|
|
76
77
|
policyType: true,
|
|
77
78
|
data: true,
|
|
79
|
+
withCheck: true,
|
|
78
80
|
smartTags: true,
|
|
79
81
|
category: true,
|
|
80
82
|
tags: true,
|
|
@@ -107,6 +109,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
107
109
|
disabled: true,
|
|
108
110
|
policyType: true,
|
|
109
111
|
data: true,
|
|
112
|
+
withCheck: true,
|
|
110
113
|
smartTags: true,
|
|
111
114
|
category: true,
|
|
112
115
|
tags: true,
|
|
@@ -151,6 +154,7 @@ async function handleGet(argv, prompter) {
|
|
|
151
154
|
disabled: true,
|
|
152
155
|
policyType: true,
|
|
153
156
|
data: true,
|
|
157
|
+
withCheck: true,
|
|
154
158
|
smartTags: true,
|
|
155
159
|
category: true,
|
|
156
160
|
tags: true,
|
|
@@ -234,6 +238,13 @@ async function handleCreate(argv, prompter) {
|
|
|
234
238
|
required: false,
|
|
235
239
|
skipPrompt: true,
|
|
236
240
|
},
|
|
241
|
+
{
|
|
242
|
+
type: 'json',
|
|
243
|
+
name: 'withCheck',
|
|
244
|
+
message: 'withCheck',
|
|
245
|
+
required: false,
|
|
246
|
+
skipPrompt: true,
|
|
247
|
+
},
|
|
237
248
|
{
|
|
238
249
|
type: 'json',
|
|
239
250
|
name: 'smartTags',
|
|
@@ -271,6 +282,7 @@ async function handleCreate(argv, prompter) {
|
|
|
271
282
|
disabled: cleanedData.disabled,
|
|
272
283
|
policyType: cleanedData.policyType,
|
|
273
284
|
data: cleanedData.data,
|
|
285
|
+
withCheck: cleanedData.withCheck,
|
|
274
286
|
smartTags: cleanedData.smartTags,
|
|
275
287
|
category: cleanedData.category,
|
|
276
288
|
tags: cleanedData.tags,
|
|
@@ -286,6 +298,7 @@ async function handleCreate(argv, prompter) {
|
|
|
286
298
|
disabled: true,
|
|
287
299
|
policyType: true,
|
|
288
300
|
data: true,
|
|
301
|
+
withCheck: true,
|
|
289
302
|
smartTags: true,
|
|
290
303
|
category: true,
|
|
291
304
|
tags: true,
|
|
@@ -375,6 +388,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
375
388
|
required: false,
|
|
376
389
|
skipPrompt: true,
|
|
377
390
|
},
|
|
391
|
+
{
|
|
392
|
+
type: 'json',
|
|
393
|
+
name: 'withCheck',
|
|
394
|
+
message: 'withCheck',
|
|
395
|
+
required: false,
|
|
396
|
+
skipPrompt: true,
|
|
397
|
+
},
|
|
378
398
|
{
|
|
379
399
|
type: 'json',
|
|
380
400
|
name: 'smartTags',
|
|
@@ -415,6 +435,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
415
435
|
disabled: cleanedData.disabled,
|
|
416
436
|
policyType: cleanedData.policyType,
|
|
417
437
|
data: cleanedData.data,
|
|
438
|
+
withCheck: cleanedData.withCheck,
|
|
418
439
|
smartTags: cleanedData.smartTags,
|
|
419
440
|
category: cleanedData.category,
|
|
420
441
|
tags: cleanedData.tags,
|
|
@@ -430,6 +451,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
430
451
|
disabled: true,
|
|
431
452
|
policyType: true,
|
|
432
453
|
data: true,
|
|
454
|
+
withCheck: true,
|
|
433
455
|
smartTags: true,
|
|
434
456
|
category: true,
|
|
435
457
|
tags: true,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation requestDatabase
|
|
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;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getClient } from '../executor';
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
|
+
export default async (argv, prompter, _options) => {
|
|
4
|
+
try {
|
|
5
|
+
if (argv.help || argv.h) {
|
|
6
|
+
console.log("request-database - Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass 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.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n\nUsage: request-database [OPTIONS]\n");
|
|
7
|
+
process.exit(0);
|
|
8
|
+
}
|
|
9
|
+
const answers = await prompter.prompt(argv, [
|
|
10
|
+
{
|
|
11
|
+
type: 'text',
|
|
12
|
+
name: 'input',
|
|
13
|
+
message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
]);
|
|
17
|
+
const client = getClient();
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
|
+
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
|
+
const result = await client.mutation
|
|
21
|
+
.requestDatabase(parsedAnswers, {
|
|
22
|
+
select: selectFields,
|
|
23
|
+
})
|
|
24
|
+
.execute();
|
|
25
|
+
console.log(JSON.stringify(result, null, 2));
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.error('Failed: requestDatabase');
|
|
29
|
+
if (error instanceof Error) {
|
|
30
|
+
console.error(error.message);
|
|
31
|
+
}
|
|
32
|
+
process.exit(1);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -21,6 +21,7 @@ const fieldSchema = {
|
|
|
21
21
|
pluralName: 'string',
|
|
22
22
|
singularName: 'string',
|
|
23
23
|
tags: 'string',
|
|
24
|
+
stepUp: 'json',
|
|
24
25
|
partitioned: 'boolean',
|
|
25
26
|
partitionStrategy: 'string',
|
|
26
27
|
partitionKeyNames: 'string',
|
|
@@ -85,6 +86,7 @@ async function handleList(argv, _prompter) {
|
|
|
85
86
|
pluralName: true,
|
|
86
87
|
singularName: true,
|
|
87
88
|
tags: true,
|
|
89
|
+
stepUp: true,
|
|
88
90
|
partitioned: true,
|
|
89
91
|
partitionStrategy: true,
|
|
90
92
|
partitionKeyNames: true,
|
|
@@ -123,6 +125,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
123
125
|
pluralName: true,
|
|
124
126
|
singularName: true,
|
|
125
127
|
tags: true,
|
|
128
|
+
stepUp: true,
|
|
126
129
|
partitioned: true,
|
|
127
130
|
partitionStrategy: true,
|
|
128
131
|
partitionKeyNames: true,
|
|
@@ -173,6 +176,7 @@ async function handleGet(argv, prompter) {
|
|
|
173
176
|
pluralName: true,
|
|
174
177
|
singularName: true,
|
|
175
178
|
tags: true,
|
|
179
|
+
stepUp: true,
|
|
176
180
|
partitioned: true,
|
|
177
181
|
partitionStrategy: true,
|
|
178
182
|
partitionKeyNames: true,
|
|
@@ -285,6 +289,13 @@ async function handleCreate(argv, prompter) {
|
|
|
285
289
|
required: false,
|
|
286
290
|
skipPrompt: true,
|
|
287
291
|
},
|
|
292
|
+
{
|
|
293
|
+
type: 'json',
|
|
294
|
+
name: 'stepUp',
|
|
295
|
+
message: 'stepUp',
|
|
296
|
+
required: false,
|
|
297
|
+
skipPrompt: true,
|
|
298
|
+
},
|
|
288
299
|
{
|
|
289
300
|
type: 'boolean',
|
|
290
301
|
name: 'partitioned',
|
|
@@ -340,6 +351,7 @@ async function handleCreate(argv, prompter) {
|
|
|
340
351
|
pluralName: cleanedData.pluralName,
|
|
341
352
|
singularName: cleanedData.singularName,
|
|
342
353
|
tags: cleanedData.tags,
|
|
354
|
+
stepUp: cleanedData.stepUp,
|
|
343
355
|
partitioned: cleanedData.partitioned,
|
|
344
356
|
partitionStrategy: cleanedData.partitionStrategy,
|
|
345
357
|
partitionKeyNames: cleanedData.partitionKeyNames,
|
|
@@ -361,6 +373,7 @@ async function handleCreate(argv, prompter) {
|
|
|
361
373
|
pluralName: true,
|
|
362
374
|
singularName: true,
|
|
363
375
|
tags: true,
|
|
376
|
+
stepUp: true,
|
|
364
377
|
partitioned: true,
|
|
365
378
|
partitionStrategy: true,
|
|
366
379
|
partitionKeyNames: true,
|
|
@@ -479,6 +492,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
479
492
|
required: false,
|
|
480
493
|
skipPrompt: true,
|
|
481
494
|
},
|
|
495
|
+
{
|
|
496
|
+
type: 'json',
|
|
497
|
+
name: 'stepUp',
|
|
498
|
+
message: 'stepUp',
|
|
499
|
+
required: false,
|
|
500
|
+
skipPrompt: true,
|
|
501
|
+
},
|
|
482
502
|
{
|
|
483
503
|
type: 'boolean',
|
|
484
504
|
name: 'partitioned',
|
|
@@ -537,6 +557,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
537
557
|
pluralName: cleanedData.pluralName,
|
|
538
558
|
singularName: cleanedData.singularName,
|
|
539
559
|
tags: cleanedData.tags,
|
|
560
|
+
stepUp: cleanedData.stepUp,
|
|
540
561
|
partitioned: cleanedData.partitioned,
|
|
541
562
|
partitionStrategy: cleanedData.partitionStrategy,
|
|
542
563
|
partitionKeyNames: cleanedData.partitionKeyNames,
|
|
@@ -558,6 +579,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
558
579
|
pluralName: true,
|
|
559
580
|
singularName: true,
|
|
560
581
|
tags: true,
|
|
582
|
+
stepUp: true,
|
|
561
583
|
partitioned: true,
|
|
562
584
|
partitionStrategy: true,
|
|
563
585
|
partitionKeyNames: true,
|
package/esm/api/cli/commands.js
CHANGED
|
@@ -50,17 +50,15 @@ import databaseCmd from './commands/database';
|
|
|
50
50
|
import rlsSettingCmd from './commands/rls-setting';
|
|
51
51
|
import sqlActionCmd from './commands/sql-action';
|
|
52
52
|
import databaseSettingCmd from './commands/database-setting';
|
|
53
|
-
import webauthnSettingCmd from './commands/webauthn-setting';
|
|
54
53
|
import astMigrationCmd from './commands/ast-migration';
|
|
54
|
+
import webauthnSettingCmd from './commands/webauthn-setting';
|
|
55
55
|
import applyRegistryDefaultsCmd from './commands/apply-registry-defaults';
|
|
56
56
|
import acceptDatabaseTransferCmd from './commands/accept-database-transfer';
|
|
57
57
|
import cancelDatabaseTransferCmd from './commands/cancel-database-transfer';
|
|
58
58
|
import rejectDatabaseTransferCmd from './commands/reject-database-transfer';
|
|
59
|
-
import provisionDatabaseWithUserCmd from './commands/provision-database-with-user';
|
|
60
|
-
import bootstrapUserCmd from './commands/bootstrap-user';
|
|
61
59
|
import setFieldOrderCmd from './commands/set-field-order';
|
|
62
60
|
import applyRlsCmd from './commands/apply-rls';
|
|
63
|
-
import
|
|
61
|
+
import requestDatabaseCmd from './commands/request-database';
|
|
64
62
|
import provisionBucketCmd from './commands/provision-bucket';
|
|
65
63
|
const createCommandMap = () => ({
|
|
66
64
|
context: contextCmd,
|
|
@@ -109,20 +107,18 @@ const createCommandMap = () => ({
|
|
|
109
107
|
'rls-setting': rlsSettingCmd,
|
|
110
108
|
'sql-action': sqlActionCmd,
|
|
111
109
|
'database-setting': databaseSettingCmd,
|
|
112
|
-
'webauthn-setting': webauthnSettingCmd,
|
|
113
110
|
'ast-migration': astMigrationCmd,
|
|
111
|
+
'webauthn-setting': webauthnSettingCmd,
|
|
114
112
|
'apply-registry-defaults': applyRegistryDefaultsCmd,
|
|
115
113
|
'accept-database-transfer': acceptDatabaseTransferCmd,
|
|
116
114
|
'cancel-database-transfer': cancelDatabaseTransferCmd,
|
|
117
115
|
'reject-database-transfer': rejectDatabaseTransferCmd,
|
|
118
|
-
'provision-database-with-user': provisionDatabaseWithUserCmd,
|
|
119
|
-
'bootstrap-user': bootstrapUserCmd,
|
|
120
116
|
'set-field-order': setFieldOrderCmd,
|
|
121
117
|
'apply-rls': applyRlsCmd,
|
|
122
|
-
'
|
|
118
|
+
'request-database': requestDatabaseCmd,
|
|
123
119
|
'provision-bucket': provisionBucketCmd,
|
|
124
120
|
});
|
|
125
|
-
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n function function CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n composite-type compositeType CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n partition partition CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n migrate-file migrateFile CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n database database CRUD operations\n rls-setting rlsSetting CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n
|
|
121
|
+
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n function function CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n composite-type compositeType CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n partition partition CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n migrate-file migrateFile CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n database database CRUD operations\n rls-setting rlsSetting CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n ast-migration astMigration CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n apply-registry-defaults applyRegistryDefaults\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n set-field-order setFieldOrder\n apply-rls applyRls\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass 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.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\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";
|
|
126
122
|
export const commands = async (argv, prompter, options) => {
|
|
127
123
|
if (argv.help || argv.h) {
|
|
128
124
|
console.log(usage);
|
|
@@ -44,8 +44,8 @@ export declare function getClient(contextName?: string): {
|
|
|
44
44
|
rlsSetting: import("..").RlsSettingModel;
|
|
45
45
|
sqlAction: import("..").SqlActionModel;
|
|
46
46
|
databaseSetting: import("..").DatabaseSettingModel;
|
|
47
|
-
webauthnSetting: import("..").WebauthnSettingModel;
|
|
48
47
|
astMigration: import("..").AstMigrationModel;
|
|
48
|
+
webauthnSetting: import("..").WebauthnSettingModel;
|
|
49
49
|
query: {
|
|
50
50
|
applyRegistryDefaults: (args: import("../orm/query").ApplyRegistryDefaultsVariables, options?: {
|
|
51
51
|
select?: Record<string, unknown>;
|
|
@@ -69,16 +69,6 @@ export declare function getClient(contextName?: string): {
|
|
|
69
69
|
} & import("..").StrictSelect<S, import("../orm/input-types").RejectDatabaseTransferPayloadSelect>) => import("..").QueryBuilder<{
|
|
70
70
|
rejectDatabaseTransfer: import("..").InferSelectResult<import("../orm/input-types").RejectDatabaseTransferPayload, S> | null;
|
|
71
71
|
}>;
|
|
72
|
-
provisionDatabaseWithUser: <S extends import("../orm/input-types").ProvisionDatabaseWithUserPayloadSelect>(args: import("../orm/mutation").ProvisionDatabaseWithUserVariables, options: {
|
|
73
|
-
select: S;
|
|
74
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionDatabaseWithUserPayloadSelect>) => import("..").QueryBuilder<{
|
|
75
|
-
provisionDatabaseWithUser: import("..").InferSelectResult<import("../orm/input-types").ProvisionDatabaseWithUserPayload, S> | null;
|
|
76
|
-
}>;
|
|
77
|
-
bootstrapUser: <S extends import("../orm/input-types").BootstrapUserPayloadSelect>(args: import("../orm/mutation").BootstrapUserVariables, options: {
|
|
78
|
-
select: S;
|
|
79
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").BootstrapUserPayloadSelect>) => import("..").QueryBuilder<{
|
|
80
|
-
bootstrapUser: import("..").InferSelectResult<import("../orm/input-types").BootstrapUserPayload, S> | null;
|
|
81
|
-
}>;
|
|
82
72
|
setFieldOrder: <S extends import("../orm/input-types").SetFieldOrderPayloadSelect>(args: import("../orm/mutation").SetFieldOrderVariables, options: {
|
|
83
73
|
select: S;
|
|
84
74
|
} & import("..").StrictSelect<S, import("../orm/input-types").SetFieldOrderPayloadSelect>) => import("..").QueryBuilder<{
|
|
@@ -89,10 +79,10 @@ export declare function getClient(contextName?: string): {
|
|
|
89
79
|
} & import("..").StrictSelect<S, import("../orm/input-types").ApplyRlsPayloadSelect>) => import("..").QueryBuilder<{
|
|
90
80
|
applyRls: import("..").InferSelectResult<import("../orm/input-types").ApplyRlsPayload, S> | null;
|
|
91
81
|
}>;
|
|
92
|
-
|
|
82
|
+
requestDatabase: <S extends import("../orm/input-types").RequestDatabasePayloadSelect>(args: import("../orm/mutation").RequestDatabaseVariables, options: {
|
|
93
83
|
select: S;
|
|
94
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").
|
|
95
|
-
|
|
84
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").RequestDatabasePayloadSelect>) => import("..").QueryBuilder<{
|
|
85
|
+
requestDatabase: import("..").InferSelectResult<import("../orm/input-types").RequestDatabasePayload, S> | null;
|
|
96
86
|
}>;
|
|
97
87
|
provisionBucket: <S extends import("../orm/input-types").ProvisionBucketPayloadSelect>(args: import("../orm/mutation").ProvisionBucketVariables, options: {
|
|
98
88
|
select: S;
|
package/esm/api/orm/index.d.ts
CHANGED
|
@@ -43,8 +43,8 @@ import { DatabaseModel } from './models/database';
|
|
|
43
43
|
import { RlsSettingModel } from './models/rlsSetting';
|
|
44
44
|
import { SqlActionModel } from './models/sqlAction';
|
|
45
45
|
import { DatabaseSettingModel } from './models/databaseSetting';
|
|
46
|
-
import { WebauthnSettingModel } from './models/webauthnSetting';
|
|
47
46
|
import { AstMigrationModel } from './models/astMigration';
|
|
47
|
+
import { WebauthnSettingModel } from './models/webauthnSetting';
|
|
48
48
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
49
49
|
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
50
50
|
export { QueryBuilder } from './query-builder';
|
|
@@ -120,8 +120,8 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
120
120
|
rlsSetting: RlsSettingModel;
|
|
121
121
|
sqlAction: SqlActionModel;
|
|
122
122
|
databaseSetting: DatabaseSettingModel;
|
|
123
|
-
webauthnSetting: WebauthnSettingModel;
|
|
124
123
|
astMigration: AstMigrationModel;
|
|
124
|
+
webauthnSetting: WebauthnSettingModel;
|
|
125
125
|
query: {
|
|
126
126
|
applyRegistryDefaults: (args: import("./query").ApplyRegistryDefaultsVariables, options?: {
|
|
127
127
|
select?: Record<string, unknown>;
|
|
@@ -145,16 +145,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
145
145
|
} & import("./select-types").StrictSelect<S, import("./input-types").RejectDatabaseTransferPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
146
146
|
rejectDatabaseTransfer: import("./select-types").InferSelectResult<import("./input-types").RejectDatabaseTransferPayload, S> | null;
|
|
147
147
|
}>;
|
|
148
|
-
provisionDatabaseWithUser: <S extends import("./input-types").ProvisionDatabaseWithUserPayloadSelect>(args: import("./mutation").ProvisionDatabaseWithUserVariables, options: {
|
|
149
|
-
select: S;
|
|
150
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionDatabaseWithUserPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
151
|
-
provisionDatabaseWithUser: import("./select-types").InferSelectResult<import("./input-types").ProvisionDatabaseWithUserPayload, S> | null;
|
|
152
|
-
}>;
|
|
153
|
-
bootstrapUser: <S extends import("./input-types").BootstrapUserPayloadSelect>(args: import("./mutation").BootstrapUserVariables, options: {
|
|
154
|
-
select: S;
|
|
155
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").BootstrapUserPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
156
|
-
bootstrapUser: import("./select-types").InferSelectResult<import("./input-types").BootstrapUserPayload, S> | null;
|
|
157
|
-
}>;
|
|
158
148
|
setFieldOrder: <S extends import("./input-types").SetFieldOrderPayloadSelect>(args: import("./mutation").SetFieldOrderVariables, options: {
|
|
159
149
|
select: S;
|
|
160
150
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetFieldOrderPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -165,10 +155,10 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
165
155
|
} & import("./select-types").StrictSelect<S, import("./input-types").ApplyRlsPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
166
156
|
applyRls: import("./select-types").InferSelectResult<import("./input-types").ApplyRlsPayload, S> | null;
|
|
167
157
|
}>;
|
|
168
|
-
|
|
158
|
+
requestDatabase: <S extends import("./input-types").RequestDatabasePayloadSelect>(args: import("./mutation").RequestDatabaseVariables, options: {
|
|
169
159
|
select: S;
|
|
170
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").
|
|
171
|
-
|
|
160
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").RequestDatabasePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
161
|
+
requestDatabase: import("./select-types").InferSelectResult<import("./input-types").RequestDatabasePayload, S> | null;
|
|
172
162
|
}>;
|
|
173
163
|
provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
|
|
174
164
|
select: S;
|
package/esm/api/orm/index.js
CHANGED
|
@@ -48,8 +48,8 @@ import { DatabaseModel } from './models/database';
|
|
|
48
48
|
import { RlsSettingModel } from './models/rlsSetting';
|
|
49
49
|
import { SqlActionModel } from './models/sqlAction';
|
|
50
50
|
import { DatabaseSettingModel } from './models/databaseSetting';
|
|
51
|
-
import { WebauthnSettingModel } from './models/webauthnSetting';
|
|
52
51
|
import { AstMigrationModel } from './models/astMigration';
|
|
52
|
+
import { WebauthnSettingModel } from './models/webauthnSetting';
|
|
53
53
|
import { createQueryOperations } from './query';
|
|
54
54
|
import { createMutationOperations } from './mutation';
|
|
55
55
|
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
@@ -128,8 +128,8 @@ export function createClient(config) {
|
|
|
128
128
|
rlsSetting: new RlsSettingModel(client),
|
|
129
129
|
sqlAction: new SqlActionModel(client),
|
|
130
130
|
databaseSetting: new DatabaseSettingModel(client),
|
|
131
|
-
webauthnSetting: new WebauthnSettingModel(client),
|
|
132
131
|
astMigration: new AstMigrationModel(client),
|
|
132
|
+
webauthnSetting: new WebauthnSettingModel(client),
|
|
133
133
|
query: createQueryOperations(client),
|
|
134
134
|
mutation: createMutationOperations(client),
|
|
135
135
|
};
|