@constructive-sdk/cli 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/agent/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
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for Secret
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { extractFirst } from 'inquirerer';
|
|
7
|
+
import { getClient } from '../executor';
|
|
8
|
+
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
|
+
const fieldSchema = {
|
|
10
|
+
databaseId: 'uuid',
|
|
11
|
+
id: 'uuid',
|
|
12
|
+
name: 'string',
|
|
13
|
+
provider: 'string',
|
|
14
|
+
namespaceId: 'uuid',
|
|
15
|
+
description: 'string',
|
|
16
|
+
labels: 'json',
|
|
17
|
+
annotations: 'json',
|
|
18
|
+
createdAt: 'string',
|
|
19
|
+
updatedAt: 'string',
|
|
20
|
+
rotatedAt: 'string',
|
|
21
|
+
retiredAt: 'string',
|
|
22
|
+
};
|
|
23
|
+
const usage = '\nsecret <command>\n\nCommands:\n list List secret records\n find-first Find first matching secret record\n create Create a new secret\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';
|
|
24
|
+
export default async (argv, prompter, _options) => {
|
|
25
|
+
if (argv.help || argv.h) {
|
|
26
|
+
console.log(usage);
|
|
27
|
+
process.exit(0);
|
|
28
|
+
}
|
|
29
|
+
const { first: subcommand, newArgv } = extractFirst(argv);
|
|
30
|
+
if (!subcommand) {
|
|
31
|
+
const answer = await prompter.prompt(argv, [
|
|
32
|
+
{
|
|
33
|
+
type: 'autocomplete',
|
|
34
|
+
name: 'subcommand',
|
|
35
|
+
message: 'What do you want to do?',
|
|
36
|
+
options: ['list', 'find-first', 'create'],
|
|
37
|
+
},
|
|
38
|
+
]);
|
|
39
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
40
|
+
}
|
|
41
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
42
|
+
};
|
|
43
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
44
|
+
switch (subcommand) {
|
|
45
|
+
case 'list':
|
|
46
|
+
return handleList(argv, prompter);
|
|
47
|
+
case 'find-first':
|
|
48
|
+
return handleFindFirst(argv, prompter);
|
|
49
|
+
case 'create':
|
|
50
|
+
return handleCreate(argv, prompter);
|
|
51
|
+
default:
|
|
52
|
+
console.log(usage);
|
|
53
|
+
process.exit(1);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async function handleList(argv, _prompter) {
|
|
57
|
+
try {
|
|
58
|
+
const defaultSelect = {
|
|
59
|
+
databaseId: true,
|
|
60
|
+
id: true,
|
|
61
|
+
name: true,
|
|
62
|
+
provider: true,
|
|
63
|
+
namespaceId: true,
|
|
64
|
+
description: true,
|
|
65
|
+
labels: true,
|
|
66
|
+
annotations: true,
|
|
67
|
+
createdAt: true,
|
|
68
|
+
updatedAt: true,
|
|
69
|
+
rotatedAt: true,
|
|
70
|
+
retiredAt: true,
|
|
71
|
+
};
|
|
72
|
+
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
73
|
+
const client = getClient();
|
|
74
|
+
const result = await client.secret.findMany(findManyArgs).execute();
|
|
75
|
+
console.log(JSON.stringify(result, null, 2));
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
console.error('Failed to list records.');
|
|
79
|
+
if (error instanceof Error) {
|
|
80
|
+
console.error(error.message);
|
|
81
|
+
}
|
|
82
|
+
process.exit(1);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
async function handleFindFirst(argv, _prompter) {
|
|
86
|
+
try {
|
|
87
|
+
const defaultSelect = {
|
|
88
|
+
databaseId: true,
|
|
89
|
+
id: true,
|
|
90
|
+
name: true,
|
|
91
|
+
provider: true,
|
|
92
|
+
namespaceId: true,
|
|
93
|
+
description: true,
|
|
94
|
+
labels: true,
|
|
95
|
+
annotations: true,
|
|
96
|
+
createdAt: true,
|
|
97
|
+
updatedAt: true,
|
|
98
|
+
rotatedAt: true,
|
|
99
|
+
retiredAt: true,
|
|
100
|
+
};
|
|
101
|
+
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
102
|
+
const client = getClient();
|
|
103
|
+
const result = await client.secret.findFirst(findFirstArgs).execute();
|
|
104
|
+
console.log(JSON.stringify(result, null, 2));
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
console.error('Failed to find record.');
|
|
108
|
+
if (error instanceof Error) {
|
|
109
|
+
console.error(error.message);
|
|
110
|
+
}
|
|
111
|
+
process.exit(1);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async function handleCreate(argv, prompter) {
|
|
115
|
+
try {
|
|
116
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
117
|
+
{
|
|
118
|
+
type: 'text',
|
|
119
|
+
name: 'databaseId',
|
|
120
|
+
message: 'databaseId',
|
|
121
|
+
required: false,
|
|
122
|
+
skipPrompt: true,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: 'text',
|
|
126
|
+
name: 'name',
|
|
127
|
+
message: 'name',
|
|
128
|
+
required: false,
|
|
129
|
+
skipPrompt: true,
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
type: 'text',
|
|
133
|
+
name: 'provider',
|
|
134
|
+
message: 'provider',
|
|
135
|
+
required: false,
|
|
136
|
+
skipPrompt: true,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
type: 'text',
|
|
140
|
+
name: 'namespaceId',
|
|
141
|
+
message: 'namespaceId',
|
|
142
|
+
required: false,
|
|
143
|
+
skipPrompt: true,
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
type: 'text',
|
|
147
|
+
name: 'description',
|
|
148
|
+
message: 'description',
|
|
149
|
+
required: false,
|
|
150
|
+
skipPrompt: true,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
type: 'json',
|
|
154
|
+
name: 'labels',
|
|
155
|
+
message: 'labels',
|
|
156
|
+
required: false,
|
|
157
|
+
skipPrompt: true,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'json',
|
|
161
|
+
name: 'annotations',
|
|
162
|
+
message: 'annotations',
|
|
163
|
+
required: false,
|
|
164
|
+
skipPrompt: true,
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
type: 'text',
|
|
168
|
+
name: 'rotatedAt',
|
|
169
|
+
message: 'rotatedAt',
|
|
170
|
+
required: false,
|
|
171
|
+
skipPrompt: true,
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
type: 'text',
|
|
175
|
+
name: 'retiredAt',
|
|
176
|
+
message: 'retiredAt',
|
|
177
|
+
required: false,
|
|
178
|
+
skipPrompt: true,
|
|
179
|
+
},
|
|
180
|
+
]);
|
|
181
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
182
|
+
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
183
|
+
const client = getClient();
|
|
184
|
+
const result = await client.secret
|
|
185
|
+
.create({
|
|
186
|
+
data: {
|
|
187
|
+
databaseId: cleanedData.databaseId,
|
|
188
|
+
name: cleanedData.name,
|
|
189
|
+
provider: cleanedData.provider,
|
|
190
|
+
namespaceId: cleanedData.namespaceId,
|
|
191
|
+
description: cleanedData.description,
|
|
192
|
+
labels: cleanedData.labels,
|
|
193
|
+
annotations: cleanedData.annotations,
|
|
194
|
+
rotatedAt: cleanedData.rotatedAt,
|
|
195
|
+
retiredAt: cleanedData.retiredAt,
|
|
196
|
+
},
|
|
197
|
+
select: {
|
|
198
|
+
databaseId: true,
|
|
199
|
+
id: true,
|
|
200
|
+
name: true,
|
|
201
|
+
provider: true,
|
|
202
|
+
namespaceId: true,
|
|
203
|
+
description: true,
|
|
204
|
+
labels: true,
|
|
205
|
+
annotations: true,
|
|
206
|
+
createdAt: true,
|
|
207
|
+
updatedAt: true,
|
|
208
|
+
rotatedAt: true,
|
|
209
|
+
retiredAt: true,
|
|
210
|
+
},
|
|
211
|
+
})
|
|
212
|
+
.execute();
|
|
213
|
+
console.log(JSON.stringify(result, null, 2));
|
|
214
|
+
}
|
|
215
|
+
catch (error) {
|
|
216
|
+
console.error('Failed to create record.');
|
|
217
|
+
if (error instanceof Error) {
|
|
218
|
+
console.error(error.message);
|
|
219
|
+
}
|
|
220
|
+
process.exit(1);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation _secretsDel
|
|
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;
|
|
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
6
|
-
console.log('
|
|
6
|
+
console.log('secrets-del - _secretsDel\n\nUsage: secrets-del [OPTIONS]\n');
|
|
7
7
|
process.exit(0);
|
|
8
8
|
}
|
|
9
9
|
const answers = await prompter.prompt(argv, [
|
|
@@ -18,14 +18,14 @@ export default async (argv, prompter, _options) => {
|
|
|
18
18
|
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
|
-
.
|
|
21
|
+
._secretsDel(parsedAnswers, {
|
|
22
22
|
select: selectFields,
|
|
23
23
|
})
|
|
24
24
|
.execute();
|
|
25
25
|
console.log(JSON.stringify(result, null, 2));
|
|
26
26
|
}
|
|
27
27
|
catch (error) {
|
|
28
|
-
console.error('Failed:
|
|
28
|
+
console.error('Failed: _secretsDel');
|
|
29
29
|
if (error instanceof Error) {
|
|
30
30
|
console.error(error.message);
|
|
31
31
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation _secretsRemoveArray
|
|
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('secrets-remove-array - _secretsRemoveArray\n\nUsage: secrets-remove-array [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
|
+
._secretsRemoveArray(parsedAnswers, {
|
|
22
|
+
select: selectFields,
|
|
23
|
+
})
|
|
24
|
+
.execute();
|
|
25
|
+
console.log(JSON.stringify(result, null, 2));
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.error('Failed: _secretsRemoveArray');
|
|
29
|
+
if (error instanceof Error) {
|
|
30
|
+
console.error(error.message);
|
|
31
|
+
}
|
|
32
|
+
process.exit(1);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation _secretsRotate
|
|
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;
|
|
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
6
|
-
console.log('
|
|
6
|
+
console.log('secrets-rotate - _secretsRotate\n\nUsage: secrets-rotate [OPTIONS]\n');
|
|
7
7
|
process.exit(0);
|
|
8
8
|
}
|
|
9
9
|
const answers = await prompter.prompt(argv, [
|
|
@@ -18,14 +18,14 @@ export default async (argv, prompter, _options) => {
|
|
|
18
18
|
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
|
-
.
|
|
21
|
+
._secretsRotate(parsedAnswers, {
|
|
22
22
|
select: selectFields,
|
|
23
23
|
})
|
|
24
24
|
.execute();
|
|
25
25
|
console.log(JSON.stringify(result, null, 2));
|
|
26
26
|
}
|
|
27
27
|
catch (error) {
|
|
28
|
-
console.error('Failed:
|
|
28
|
+
console.error('Failed: _secretsRotate');
|
|
29
29
|
if (error instanceof Error) {
|
|
30
30
|
console.error(error.message);
|
|
31
31
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation _secretsSet
|
|
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;
|
|
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
6
|
-
console.log('
|
|
6
|
+
console.log('secrets-set - _secretsSet\n\nUsage: secrets-set [OPTIONS]\n');
|
|
7
7
|
process.exit(0);
|
|
8
8
|
}
|
|
9
9
|
const answers = await prompter.prompt(argv, [
|
|
@@ -18,14 +18,14 @@ export default async (argv, prompter, _options) => {
|
|
|
18
18
|
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
|
-
.
|
|
21
|
+
._secretsSet(parsedAnswers, {
|
|
22
22
|
select: selectFields,
|
|
23
23
|
})
|
|
24
24
|
.execute();
|
|
25
25
|
console.log(JSON.stringify(result, null, 2));
|
|
26
26
|
}
|
|
27
27
|
catch (error) {
|
|
28
|
-
console.error('Failed:
|
|
28
|
+
console.error('Failed: _secretsSet');
|
|
29
29
|
if (error instanceof Error) {
|
|
30
30
|
console.error(error.message);
|
|
31
31
|
}
|
|
@@ -6,33 +6,47 @@
|
|
|
6
6
|
import { extractFirst } from 'inquirerer';
|
|
7
7
|
import contextCmd from './commands/context';
|
|
8
8
|
import authCmd from './commands/auth';
|
|
9
|
-
import platformConfigDefinitionCmd from './commands/platform-config-definition';
|
|
10
9
|
import platformConfigCmd from './commands/platform-config';
|
|
10
|
+
import configCmd from './commands/config';
|
|
11
|
+
import platformInternalSecretCmd from './commands/platform-internal-secret';
|
|
12
|
+
import platformSecretCmd from './commands/platform-secret';
|
|
13
|
+
import secretCmd from './commands/secret';
|
|
14
|
+
import platformInternalSecretsDelCmd from './commands/platform-internal-secrets-del';
|
|
11
15
|
import platformSecretsDelCmd from './commands/platform-secrets-del';
|
|
12
|
-
import
|
|
16
|
+
import _secretsDelCmd from './commands/secrets-del';
|
|
17
|
+
import platformInternalSecretsRemoveArrayCmd from './commands/platform-internal-secrets-remove-array';
|
|
13
18
|
import platformSecretsRemoveArrayCmd from './commands/platform-secrets-remove-array';
|
|
14
|
-
import
|
|
19
|
+
import _secretsRemoveArrayCmd from './commands/secrets-remove-array';
|
|
20
|
+
import platformInternalSecretsRotateCmd from './commands/platform-internal-secrets-rotate';
|
|
21
|
+
import platformInternalSecretsSetCmd from './commands/platform-internal-secrets-set';
|
|
15
22
|
import platformSecretsRotateCmd from './commands/platform-secrets-rotate';
|
|
23
|
+
import _secretsRotateCmd from './commands/secrets-rotate';
|
|
16
24
|
import platformSecretsSetCmd from './commands/platform-secrets-set';
|
|
17
|
-
import
|
|
18
|
-
import orgSecretsSetCmd from './commands/org-secrets-set';
|
|
25
|
+
import _secretsSetCmd from './commands/secrets-set';
|
|
19
26
|
import provisionBucketCmd from './commands/provision-bucket';
|
|
20
27
|
const createCommandMap = () => ({
|
|
21
28
|
context: contextCmd,
|
|
22
29
|
auth: authCmd,
|
|
23
|
-
'platform-config-definition': platformConfigDefinitionCmd,
|
|
24
30
|
'platform-config': platformConfigCmd,
|
|
31
|
+
config: configCmd,
|
|
32
|
+
'platform-internal-secret': platformInternalSecretCmd,
|
|
33
|
+
'platform-secret': platformSecretCmd,
|
|
34
|
+
secret: secretCmd,
|
|
35
|
+
'platform-internal-secrets-del': platformInternalSecretsDelCmd,
|
|
25
36
|
'platform-secrets-del': platformSecretsDelCmd,
|
|
26
|
-
'
|
|
37
|
+
'secrets-del': _secretsDelCmd,
|
|
38
|
+
'platform-internal-secrets-remove-array': platformInternalSecretsRemoveArrayCmd,
|
|
27
39
|
'platform-secrets-remove-array': platformSecretsRemoveArrayCmd,
|
|
28
|
-
'
|
|
40
|
+
'secrets-remove-array': _secretsRemoveArrayCmd,
|
|
41
|
+
'platform-internal-secrets-rotate': platformInternalSecretsRotateCmd,
|
|
42
|
+
'platform-internal-secrets-set': platformInternalSecretsSetCmd,
|
|
29
43
|
'platform-secrets-rotate': platformSecretsRotateCmd,
|
|
44
|
+
'secrets-rotate': _secretsRotateCmd,
|
|
30
45
|
'platform-secrets-set': platformSecretsSetCmd,
|
|
31
|
-
'
|
|
32
|
-
'org-secrets-set': orgSecretsSetCmd,
|
|
46
|
+
'secrets-set': _secretsSetCmd,
|
|
33
47
|
'provision-bucket': provisionBucketCmd,
|
|
34
48
|
});
|
|
35
|
-
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n platform-config-
|
|
49
|
+
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n platform-config platformConfig CRUD operations\n config config CRUD operations\n platform-internal-secret platformInternalSecret CRUD operations\n platform-secret platformSecret CRUD operations\n secret secret CRUD operations\n platform-internal-secrets-del platformInternalSecretsDel\n platform-secrets-del platformSecretsDel\n secrets-del _secretsDel\n platform-internal-secrets-remove-array platformInternalSecretsRemoveArray\n platform-secrets-remove-array platformSecretsRemoveArray\n secrets-remove-array _secretsRemoveArray\n platform-internal-secrets-rotate platformInternalSecretsRotate\n platform-internal-secrets-set platformInternalSecretsSet\n platform-secrets-rotate platformSecretsRotate\n secrets-rotate _secretsRotate\n platform-secrets-set platformSecretsSet\n secrets-set _secretsSet\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';
|
|
36
50
|
export const commands = async (argv, prompter, options) => {
|
|
37
51
|
if (argv.help || argv.h) {
|
|
38
52
|
console.log(usage);
|
|
@@ -1,47 +1,70 @@
|
|
|
1
1
|
export declare const getStore: () => import("appstash").ConfigStore;
|
|
2
2
|
export declare function getClient(contextName?: string): {
|
|
3
|
-
platformConfigDefinition: import("..").PlatformConfigDefinitionModel;
|
|
4
3
|
platformConfig: import("..").PlatformConfigModel;
|
|
4
|
+
config: import("..").ConfigModel;
|
|
5
|
+
platformInternalSecret: import("..").PlatformInternalSecretModel;
|
|
6
|
+
platformSecret: import("..").PlatformSecretModel;
|
|
7
|
+
secret: import("..").SecretModel;
|
|
5
8
|
mutation: {
|
|
9
|
+
platformInternalSecretsDel: <S extends import("../orm/input-types").PlatformInternalSecretsDelPayloadSelect>(args: import("../orm/mutation").PlatformInternalSecretsDelVariables, options: {
|
|
10
|
+
select: S;
|
|
11
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").PlatformInternalSecretsDelPayloadSelect>) => import("..").QueryBuilder<{
|
|
12
|
+
platformInternalSecretsDel: import("..").InferSelectResult<import("../orm/input-types").PlatformInternalSecretsDelPayload, S> | null;
|
|
13
|
+
}>;
|
|
6
14
|
platformSecretsDel: <S extends import("../orm/input-types").PlatformSecretsDelPayloadSelect>(args: import("../orm/mutation").PlatformSecretsDelVariables, options: {
|
|
7
15
|
select: S;
|
|
8
16
|
} & import("..").StrictSelect<S, import("../orm/input-types").PlatformSecretsDelPayloadSelect>) => import("..").QueryBuilder<{
|
|
9
17
|
platformSecretsDel: import("..").InferSelectResult<import("../orm/input-types").PlatformSecretsDelPayload, S> | null;
|
|
10
18
|
}>;
|
|
11
|
-
|
|
19
|
+
_secretsDel: <S extends import("../orm/input-types")._SecretsDelPayloadSelect>(args: import("../orm/mutation")._secretsDelVariables, options: {
|
|
20
|
+
select: S;
|
|
21
|
+
} & import("..").StrictSelect<S, import("../orm/input-types")._SecretsDelPayloadSelect>) => import("..").QueryBuilder<{
|
|
22
|
+
_secretsDel: import("..").InferSelectResult<import("../orm/input-types")._SecretsDelPayload, S> | null;
|
|
23
|
+
}>;
|
|
24
|
+
platformInternalSecretsRemoveArray: <S extends import("../orm/input-types").PlatformInternalSecretsRemoveArrayPayloadSelect>(args: import("../orm/mutation").PlatformInternalSecretsRemoveArrayVariables, options: {
|
|
12
25
|
select: S;
|
|
13
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").
|
|
14
|
-
|
|
26
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").PlatformInternalSecretsRemoveArrayPayloadSelect>) => import("..").QueryBuilder<{
|
|
27
|
+
platformInternalSecretsRemoveArray: import("..").InferSelectResult<import("../orm/input-types").PlatformInternalSecretsRemoveArrayPayload, S> | null;
|
|
15
28
|
}>;
|
|
16
29
|
platformSecretsRemoveArray: <S extends import("../orm/input-types").PlatformSecretsRemoveArrayPayloadSelect>(args: import("../orm/mutation").PlatformSecretsRemoveArrayVariables, options: {
|
|
17
30
|
select: S;
|
|
18
31
|
} & import("..").StrictSelect<S, import("../orm/input-types").PlatformSecretsRemoveArrayPayloadSelect>) => import("..").QueryBuilder<{
|
|
19
32
|
platformSecretsRemoveArray: import("..").InferSelectResult<import("../orm/input-types").PlatformSecretsRemoveArrayPayload, S> | null;
|
|
20
33
|
}>;
|
|
21
|
-
|
|
34
|
+
_secretsRemoveArray: <S extends import("../orm/input-types")._SecretsRemoveArrayPayloadSelect>(args: import("../orm/mutation")._secretsRemoveArrayVariables, options: {
|
|
35
|
+
select: S;
|
|
36
|
+
} & import("..").StrictSelect<S, import("../orm/input-types")._SecretsRemoveArrayPayloadSelect>) => import("..").QueryBuilder<{
|
|
37
|
+
_secretsRemoveArray: import("..").InferSelectResult<import("../orm/input-types")._SecretsRemoveArrayPayload, S> | null;
|
|
38
|
+
}>;
|
|
39
|
+
platformInternalSecretsRotate: <S extends import("../orm/input-types").PlatformInternalSecretsRotatePayloadSelect>(args: import("../orm/mutation").PlatformInternalSecretsRotateVariables, options: {
|
|
22
40
|
select: S;
|
|
23
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").
|
|
24
|
-
|
|
41
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").PlatformInternalSecretsRotatePayloadSelect>) => import("..").QueryBuilder<{
|
|
42
|
+
platformInternalSecretsRotate: import("..").InferSelectResult<import("../orm/input-types").PlatformInternalSecretsRotatePayload, S> | null;
|
|
43
|
+
}>;
|
|
44
|
+
platformInternalSecretsSet: <S extends import("../orm/input-types").PlatformInternalSecretsSetPayloadSelect>(args: import("../orm/mutation").PlatformInternalSecretsSetVariables, options: {
|
|
45
|
+
select: S;
|
|
46
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").PlatformInternalSecretsSetPayloadSelect>) => import("..").QueryBuilder<{
|
|
47
|
+
platformInternalSecretsSet: import("..").InferSelectResult<import("../orm/input-types").PlatformInternalSecretsSetPayload, S> | null;
|
|
25
48
|
}>;
|
|
26
49
|
platformSecretsRotate: <S extends import("../orm/input-types").PlatformSecretsRotatePayloadSelect>(args: import("../orm/mutation").PlatformSecretsRotateVariables, options: {
|
|
27
50
|
select: S;
|
|
28
51
|
} & import("..").StrictSelect<S, import("../orm/input-types").PlatformSecretsRotatePayloadSelect>) => import("..").QueryBuilder<{
|
|
29
52
|
platformSecretsRotate: import("..").InferSelectResult<import("../orm/input-types").PlatformSecretsRotatePayload, S> | null;
|
|
30
53
|
}>;
|
|
54
|
+
_secretsRotate: <S extends import("../orm/input-types")._SecretsRotatePayloadSelect>(args: import("../orm/mutation")._secretsRotateVariables, options: {
|
|
55
|
+
select: S;
|
|
56
|
+
} & import("..").StrictSelect<S, import("../orm/input-types")._SecretsRotatePayloadSelect>) => import("..").QueryBuilder<{
|
|
57
|
+
_secretsRotate: import("..").InferSelectResult<import("../orm/input-types")._SecretsRotatePayload, S> | null;
|
|
58
|
+
}>;
|
|
31
59
|
platformSecretsSet: <S extends import("../orm/input-types").PlatformSecretsSetPayloadSelect>(args: import("../orm/mutation").PlatformSecretsSetVariables, options: {
|
|
32
60
|
select: S;
|
|
33
61
|
} & import("..").StrictSelect<S, import("../orm/input-types").PlatformSecretsSetPayloadSelect>) => import("..").QueryBuilder<{
|
|
34
62
|
platformSecretsSet: import("..").InferSelectResult<import("../orm/input-types").PlatformSecretsSetPayload, S> | null;
|
|
35
63
|
}>;
|
|
36
|
-
|
|
37
|
-
select: S;
|
|
38
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").OrgSecretsRotatePayloadSelect>) => import("..").QueryBuilder<{
|
|
39
|
-
orgSecretsRotate: import("..").InferSelectResult<import("../orm/input-types").OrgSecretsRotatePayload, S> | null;
|
|
40
|
-
}>;
|
|
41
|
-
orgSecretsSet: <S extends import("../orm/input-types").OrgSecretsSetPayloadSelect>(args: import("../orm/mutation").OrgSecretsSetVariables, options: {
|
|
64
|
+
_secretsSet: <S extends import("../orm/input-types")._SecretsSetPayloadSelect>(args: import("../orm/mutation")._secretsSetVariables, options: {
|
|
42
65
|
select: S;
|
|
43
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").
|
|
44
|
-
|
|
66
|
+
} & import("..").StrictSelect<S, import("../orm/input-types")._SecretsSetPayloadSelect>) => import("..").QueryBuilder<{
|
|
67
|
+
_secretsSet: import("..").InferSelectResult<import("../orm/input-types")._SecretsSetPayload, S> | null;
|
|
45
68
|
}>;
|
|
46
69
|
provisionBucket: <S extends import("../orm/input-types").ProvisionBucketPayloadSelect>(args: import("../orm/mutation").ProvisionBucketVariables, options: {
|
|
47
70
|
select: S;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { OrmClientConfig } from './client';
|
|
2
|
-
import { PlatformConfigDefinitionModel } from './models/platformConfigDefinition';
|
|
3
2
|
import { PlatformConfigModel } from './models/platformConfig';
|
|
3
|
+
import { ConfigModel } from './models/config';
|
|
4
|
+
import { PlatformInternalSecretModel } from './models/platformInternalSecret';
|
|
5
|
+
import { PlatformSecretModel } from './models/platformSecret';
|
|
6
|
+
import { SecretModel } from './models/secret';
|
|
4
7
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
5
8
|
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
6
9
|
export { QueryBuilder } from './query-builder';
|
|
@@ -31,48 +34,71 @@ export { createMutationOperations } from './mutation';
|
|
|
31
34
|
* ```
|
|
32
35
|
*/
|
|
33
36
|
export declare function createClient(config: OrmClientConfig): {
|
|
34
|
-
platformConfigDefinition: PlatformConfigDefinitionModel;
|
|
35
37
|
platformConfig: PlatformConfigModel;
|
|
38
|
+
config: ConfigModel;
|
|
39
|
+
platformInternalSecret: PlatformInternalSecretModel;
|
|
40
|
+
platformSecret: PlatformSecretModel;
|
|
41
|
+
secret: SecretModel;
|
|
36
42
|
mutation: {
|
|
43
|
+
platformInternalSecretsDel: <S extends import("./input-types").PlatformInternalSecretsDelPayloadSelect>(args: import("./mutation").PlatformInternalSecretsDelVariables, options: {
|
|
44
|
+
select: S;
|
|
45
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformInternalSecretsDelPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
46
|
+
platformInternalSecretsDel: import("./select-types").InferSelectResult<import("./input-types").PlatformInternalSecretsDelPayload, S> | null;
|
|
47
|
+
}>;
|
|
37
48
|
platformSecretsDel: <S extends import("./input-types").PlatformSecretsDelPayloadSelect>(args: import("./mutation").PlatformSecretsDelVariables, options: {
|
|
38
49
|
select: S;
|
|
39
50
|
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformSecretsDelPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
40
51
|
platformSecretsDel: import("./select-types").InferSelectResult<import("./input-types").PlatformSecretsDelPayload, S> | null;
|
|
41
52
|
}>;
|
|
42
|
-
|
|
53
|
+
_secretsDel: <S extends import("./input-types")._SecretsDelPayloadSelect>(args: import("./mutation")._secretsDelVariables, options: {
|
|
54
|
+
select: S;
|
|
55
|
+
} & import("./select-types").StrictSelect<S, import("./input-types")._SecretsDelPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
56
|
+
_secretsDel: import("./select-types").InferSelectResult<import("./input-types")._SecretsDelPayload, S> | null;
|
|
57
|
+
}>;
|
|
58
|
+
platformInternalSecretsRemoveArray: <S extends import("./input-types").PlatformInternalSecretsRemoveArrayPayloadSelect>(args: import("./mutation").PlatformInternalSecretsRemoveArrayVariables, options: {
|
|
43
59
|
select: S;
|
|
44
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").
|
|
45
|
-
|
|
60
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformInternalSecretsRemoveArrayPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
61
|
+
platformInternalSecretsRemoveArray: import("./select-types").InferSelectResult<import("./input-types").PlatformInternalSecretsRemoveArrayPayload, S> | null;
|
|
46
62
|
}>;
|
|
47
63
|
platformSecretsRemoveArray: <S extends import("./input-types").PlatformSecretsRemoveArrayPayloadSelect>(args: import("./mutation").PlatformSecretsRemoveArrayVariables, options: {
|
|
48
64
|
select: S;
|
|
49
65
|
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformSecretsRemoveArrayPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
50
66
|
platformSecretsRemoveArray: import("./select-types").InferSelectResult<import("./input-types").PlatformSecretsRemoveArrayPayload, S> | null;
|
|
51
67
|
}>;
|
|
52
|
-
|
|
68
|
+
_secretsRemoveArray: <S extends import("./input-types")._SecretsRemoveArrayPayloadSelect>(args: import("./mutation")._secretsRemoveArrayVariables, options: {
|
|
69
|
+
select: S;
|
|
70
|
+
} & import("./select-types").StrictSelect<S, import("./input-types")._SecretsRemoveArrayPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
71
|
+
_secretsRemoveArray: import("./select-types").InferSelectResult<import("./input-types")._SecretsRemoveArrayPayload, S> | null;
|
|
72
|
+
}>;
|
|
73
|
+
platformInternalSecretsRotate: <S extends import("./input-types").PlatformInternalSecretsRotatePayloadSelect>(args: import("./mutation").PlatformInternalSecretsRotateVariables, options: {
|
|
53
74
|
select: S;
|
|
54
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").
|
|
55
|
-
|
|
75
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformInternalSecretsRotatePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
76
|
+
platformInternalSecretsRotate: import("./select-types").InferSelectResult<import("./input-types").PlatformInternalSecretsRotatePayload, S> | null;
|
|
77
|
+
}>;
|
|
78
|
+
platformInternalSecretsSet: <S extends import("./input-types").PlatformInternalSecretsSetPayloadSelect>(args: import("./mutation").PlatformInternalSecretsSetVariables, options: {
|
|
79
|
+
select: S;
|
|
80
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformInternalSecretsSetPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
81
|
+
platformInternalSecretsSet: import("./select-types").InferSelectResult<import("./input-types").PlatformInternalSecretsSetPayload, S> | null;
|
|
56
82
|
}>;
|
|
57
83
|
platformSecretsRotate: <S extends import("./input-types").PlatformSecretsRotatePayloadSelect>(args: import("./mutation").PlatformSecretsRotateVariables, options: {
|
|
58
84
|
select: S;
|
|
59
85
|
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformSecretsRotatePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
60
86
|
platformSecretsRotate: import("./select-types").InferSelectResult<import("./input-types").PlatformSecretsRotatePayload, S> | null;
|
|
61
87
|
}>;
|
|
88
|
+
_secretsRotate: <S extends import("./input-types")._SecretsRotatePayloadSelect>(args: import("./mutation")._secretsRotateVariables, options: {
|
|
89
|
+
select: S;
|
|
90
|
+
} & import("./select-types").StrictSelect<S, import("./input-types")._SecretsRotatePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
91
|
+
_secretsRotate: import("./select-types").InferSelectResult<import("./input-types")._SecretsRotatePayload, S> | null;
|
|
92
|
+
}>;
|
|
62
93
|
platformSecretsSet: <S extends import("./input-types").PlatformSecretsSetPayloadSelect>(args: import("./mutation").PlatformSecretsSetVariables, options: {
|
|
63
94
|
select: S;
|
|
64
95
|
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformSecretsSetPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
65
96
|
platformSecretsSet: import("./select-types").InferSelectResult<import("./input-types").PlatformSecretsSetPayload, S> | null;
|
|
66
97
|
}>;
|
|
67
|
-
|
|
68
|
-
select: S;
|
|
69
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").OrgSecretsRotatePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
70
|
-
orgSecretsRotate: import("./select-types").InferSelectResult<import("./input-types").OrgSecretsRotatePayload, S> | null;
|
|
71
|
-
}>;
|
|
72
|
-
orgSecretsSet: <S extends import("./input-types").OrgSecretsSetPayloadSelect>(args: import("./mutation").OrgSecretsSetVariables, options: {
|
|
98
|
+
_secretsSet: <S extends import("./input-types")._SecretsSetPayloadSelect>(args: import("./mutation")._secretsSetVariables, options: {
|
|
73
99
|
select: S;
|
|
74
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").
|
|
75
|
-
|
|
100
|
+
} & import("./select-types").StrictSelect<S, import("./input-types")._SecretsSetPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
101
|
+
_secretsSet: import("./select-types").InferSelectResult<import("./input-types")._SecretsSetPayload, S> | null;
|
|
76
102
|
}>;
|
|
77
103
|
provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
|
|
78
104
|
select: S;
|