@constructive-sdk/cli 0.25.16 → 0.25.17
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 +2 -0
- package/admin/orm/models/appAdminGrant.js +1 -1
- package/admin/orm/models/appClaimedInvite.js +1 -1
- package/admin/orm/models/appGrant.js +1 -1
- package/admin/orm/models/appInvite.js +1 -1
- package/admin/orm/models/appMembership.js +1 -1
- package/admin/orm/models/appMembershipDefault.js +1 -1
- package/admin/orm/models/appOwnerGrant.js +1 -1
- package/admin/orm/models/appPermission.js +1 -1
- package/admin/orm/models/appPermissionDefault.js +1 -1
- package/admin/orm/models/appPermissionDefaultGrant.js +1 -1
- package/admin/orm/models/appPermissionDefaultPermission.js +1 -1
- package/admin/orm/models/membershipType.js +1 -1
- package/admin/orm/models/orgAdminGrant.js +1 -1
- package/admin/orm/models/orgChartEdge.js +1 -1
- package/admin/orm/models/orgChartEdgeGrant.js +1 -1
- package/admin/orm/models/orgClaimedInvite.js +1 -1
- package/admin/orm/models/orgGrant.js +1 -1
- package/admin/orm/models/orgInvite.js +1 -1
- package/admin/orm/models/orgMember.js +1 -1
- package/admin/orm/models/orgMemberProfile.js +1 -1
- package/admin/orm/models/orgMembership.js +1 -1
- package/admin/orm/models/orgMembershipDefault.js +1 -1
- package/admin/orm/models/orgMembershipSetting.js +1 -1
- package/admin/orm/models/orgOwnerGrant.js +1 -1
- package/admin/orm/models/orgPermission.js +1 -1
- package/admin/orm/models/orgPermissionDefault.js +1 -1
- package/admin/orm/models/orgPermissionDefaultGrant.js +1 -1
- package/admin/orm/models/orgPermissionDefaultPermission.js +1 -1
- package/admin/orm/query-builder.d.ts +1 -1
- package/admin/orm/query-builder.js +2 -1
- package/agent/orm/input-types.d.ts +14 -2
- package/agent/orm/models/agent.js +1 -1
- package/agent/orm/models/agentMessage.js +1 -1
- package/agent/orm/models/agentPersona.js +1 -1
- package/agent/orm/models/agentPlan.js +1 -1
- package/agent/orm/models/agentPrompt.js +1 -1
- package/agent/orm/models/agentResource.js +1 -1
- package/agent/orm/models/agentResourceChunk.js +1 -1
- package/agent/orm/models/agentTask.js +1 -1
- package/agent/orm/models/agentThread.js +1 -1
- package/agent/orm/query-builder.d.ts +1 -1
- package/agent/orm/query-builder.js +2 -1
- package/api/cli/commands/schema.js +22 -0
- package/api/orm/input-types.d.ts +36 -1
- package/api/orm/models/api.js +1 -1
- package/api/orm/models/apiModule.js +1 -1
- package/api/orm/models/apiSchema.js +1 -1
- package/api/orm/models/apiSetting.js +1 -1
- package/api/orm/models/app.js +1 -1
- package/api/orm/models/checkConstraint.js +1 -1
- package/api/orm/models/compositeType.js +1 -1
- package/api/orm/models/corsSetting.js +1 -1
- package/api/orm/models/database.js +1 -1
- package/api/orm/models/databaseSetting.js +1 -1
- package/api/orm/models/databaseTransfer.js +1 -1
- package/api/orm/models/defaultPrivilege.js +1 -1
- package/api/orm/models/domain.js +1 -1
- package/api/orm/models/embeddingChunk.js +1 -1
- package/api/orm/models/enum.js +1 -1
- package/api/orm/models/field.js +1 -1
- package/api/orm/models/foreignKeyConstraint.js +1 -1
- package/api/orm/models/fullTextSearch.js +1 -1
- package/api/orm/models/function.js +1 -1
- package/api/orm/models/indexModel.js +1 -1
- package/api/orm/models/nodeTypeRegistry.js +1 -1
- package/api/orm/models/partition.js +1 -1
- package/api/orm/models/policy.js +1 -1
- package/api/orm/models/primaryKeyConstraint.js +1 -1
- package/api/orm/models/pubkeySetting.js +1 -1
- package/api/orm/models/rlsSetting.js +1 -1
- package/api/orm/models/schema.js +1 -1
- package/api/orm/models/schemaGrant.js +1 -1
- package/api/orm/models/site.js +1 -1
- package/api/orm/models/siteMetadatum.js +1 -1
- package/api/orm/models/siteModule.js +1 -1
- package/api/orm/models/siteTheme.js +1 -1
- package/api/orm/models/spatialRelation.js +1 -1
- package/api/orm/models/table.js +1 -1
- package/api/orm/models/tableGrant.js +1 -1
- package/api/orm/models/trigger.js +1 -1
- package/api/orm/models/triggerFunction.js +1 -1
- package/api/orm/models/uniqueConstraint.js +1 -1
- package/api/orm/models/view.js +1 -1
- package/api/orm/models/viewGrant.js +1 -1
- package/api/orm/models/viewRule.js +1 -1
- package/api/orm/models/viewTable.js +1 -1
- package/api/orm/models/webauthnSetting.js +1 -1
- package/api/orm/query-builder.d.ts +1 -1
- package/api/orm/query-builder.js +2 -1
- package/auth/cli/commands/audit-log-auth.js +14 -0
- package/auth/orm/input-types.d.ts +4 -2
- package/auth/orm/models/auditLogAuth.d.ts +2 -0
- package/auth/orm/models/auditLogAuth.js +4 -1
- package/auth/orm/models/cryptoAddress.js +1 -1
- package/auth/orm/models/email.js +1 -1
- package/auth/orm/models/phoneNumber.js +1 -1
- package/auth/orm/models/roleType.js +1 -1
- package/auth/orm/models/user.js +1 -1
- package/auth/orm/models/webauthnCredential.js +1 -1
- package/auth/orm/query-builder.d.ts +1 -1
- package/auth/orm/query-builder.js +2 -1
- package/cli-commands.js +6 -6
- package/compute/cli/commands/add-edge-and-save.d.ts +8 -0
- package/compute/cli/commands/add-edge-and-save.js +36 -0
- package/compute/cli/commands/add-edge.d.ts +8 -0
- package/compute/cli/commands/add-edge.js +36 -0
- package/compute/cli/commands/add-node-and-save.d.ts +8 -0
- package/compute/cli/commands/add-node-and-save.js +36 -0
- package/compute/cli/commands/add-node.d.ts +8 -0
- package/compute/cli/commands/add-node.js +36 -0
- package/compute/cli/commands/auth.d.ts +8 -0
- package/compute/cli/commands/auth.js +107 -0
- package/compute/cli/commands/context.d.ts +8 -0
- package/compute/cli/commands/context.js +158 -0
- package/compute/cli/commands/copy-graph.d.ts +8 -0
- package/compute/cli/commands/copy-graph.js +36 -0
- package/compute/cli/commands/function-api-binding.d.ts +8 -0
- package/compute/cli/commands/function-api-binding.js +294 -0
- package/compute/cli/commands/function-definition.d.ts +8 -0
- package/compute/cli/commands/function-definition.js +788 -0
- package/compute/cli/commands/function-deployment-event.d.ts +8 -0
- package/compute/cli/commands/function-deployment-event.js +356 -0
- package/compute/cli/commands/function-deployment.d.ts +8 -0
- package/compute/cli/commands/function-deployment.js +612 -0
- package/compute/cli/commands/function-execution-log.d.ts +8 -0
- package/compute/cli/commands/function-execution-log.js +380 -0
- package/compute/cli/commands/function-graph-commit.d.ts +8 -0
- package/compute/cli/commands/function-graph-commit.js +389 -0
- package/compute/cli/commands/function-graph-execution-node-state.d.ts +8 -0
- package/compute/cli/commands/function-graph-execution-node-state.js +444 -0
- package/compute/cli/commands/function-graph-execution-output.d.ts +8 -0
- package/compute/cli/commands/function-graph-execution-output.js +290 -0
- package/compute/cli/commands/function-graph-execution.d.ts +8 -0
- package/compute/cli/commands/function-graph-execution.js +716 -0
- package/compute/cli/commands/function-graph-object.d.ts +8 -0
- package/compute/cli/commands/function-graph-object.js +309 -0
- package/compute/cli/commands/function-graph-ref.d.ts +8 -0
- package/compute/cli/commands/function-graph-ref.js +299 -0
- package/compute/cli/commands/function-graph-store.d.ts +8 -0
- package/compute/cli/commands/function-graph-store.js +278 -0
- package/compute/cli/commands/function-graph.d.ts +8 -0
- package/compute/cli/commands/function-graph.js +422 -0
- package/compute/cli/commands/function-invocation.d.ts +8 -0
- package/compute/cli/commands/function-invocation.js +512 -0
- package/compute/cli/commands/get-all-record.d.ts +8 -0
- package/compute/cli/commands/get-all-record.js +126 -0
- package/compute/cli/commands/import-definitions.d.ts +8 -0
- package/compute/cli/commands/import-definitions.js +36 -0
- package/compute/cli/commands/import-graph-json.d.ts +8 -0
- package/compute/cli/commands/import-graph-json.js +36 -0
- package/compute/cli/commands/init-empty-repo.d.ts +8 -0
- package/compute/cli/commands/init-empty-repo.js +36 -0
- package/compute/cli/commands/insert-node-at-path.d.ts +8 -0
- package/compute/cli/commands/insert-node-at-path.js +36 -0
- package/compute/cli/commands/org-function-execution-log.d.ts +8 -0
- package/compute/cli/commands/org-function-execution-log.js +360 -0
- package/compute/cli/commands/org-function-invocation.d.ts +8 -0
- package/compute/cli/commands/org-function-invocation.js +492 -0
- package/compute/cli/commands/provision-bucket.d.ts +8 -0
- package/compute/cli/commands/provision-bucket.js +36 -0
- package/compute/cli/commands/read-function-graph.d.ts +8 -0
- package/compute/cli/commands/read-function-graph.js +30 -0
- package/compute/cli/commands/save-graph.d.ts +8 -0
- package/compute/cli/commands/save-graph.js +36 -0
- package/compute/cli/commands/secret-definition.d.ts +8 -0
- package/compute/cli/commands/secret-definition.js +350 -0
- package/compute/cli/commands/set-data-at-path.d.ts +8 -0
- package/compute/cli/commands/set-data-at-path.js +36 -0
- package/compute/cli/commands/start-execution.d.ts +8 -0
- package/compute/cli/commands/start-execution.js +36 -0
- package/compute/cli/commands/validate-function-graph.d.ts +8 -0
- package/compute/cli/commands/validate-function-graph.js +36 -0
- package/compute/cli/commands.d.ts +7 -0
- package/compute/cli/commands.js +114 -0
- package/compute/cli/executor.d.ts +100 -0
- package/compute/cli/executor.js +40 -0
- package/compute/cli/index.d.ts +1 -0
- package/compute/cli/index.js +26 -0
- package/compute/cli/utils.d.ts +88 -0
- package/compute/cli/utils.js +297 -0
- package/compute/index.d.ts +6 -0
- package/compute/index.js +22 -0
- package/compute/orm/client.d.ts +97 -0
- package/compute/orm/client.js +152 -0
- package/compute/orm/index.d.ts +148 -0
- package/compute/orm/index.js +103 -0
- package/compute/orm/input-types.d.ts +4243 -0
- package/compute/orm/input-types.js +10 -0
- package/compute/orm/models/functionApiBinding.d.ts +54 -0
- package/compute/orm/models/functionApiBinding.js +104 -0
- package/compute/orm/models/functionDefinition.d.ts +54 -0
- package/compute/orm/models/functionDefinition.js +104 -0
- package/compute/orm/models/functionDeployment.d.ts +54 -0
- package/compute/orm/models/functionDeployment.js +104 -0
- package/compute/orm/models/functionDeploymentEvent.d.ts +56 -0
- package/compute/orm/models/functionDeploymentEvent.js +107 -0
- package/compute/orm/models/functionExecutionLog.d.ts +56 -0
- package/compute/orm/models/functionExecutionLog.js +107 -0
- package/compute/orm/models/functionGraph.d.ts +54 -0
- package/compute/orm/models/functionGraph.js +104 -0
- package/compute/orm/models/functionGraphCommit.d.ts +56 -0
- package/compute/orm/models/functionGraphCommit.js +107 -0
- package/compute/orm/models/functionGraphExecution.d.ts +56 -0
- package/compute/orm/models/functionGraphExecution.js +107 -0
- package/compute/orm/models/functionGraphExecutionNodeState.d.ts +56 -0
- package/compute/orm/models/functionGraphExecutionNodeState.js +107 -0
- package/compute/orm/models/functionGraphExecutionOutput.d.ts +56 -0
- package/compute/orm/models/functionGraphExecutionOutput.js +107 -0
- package/compute/orm/models/functionGraphObject.d.ts +56 -0
- package/compute/orm/models/functionGraphObject.js +97 -0
- package/compute/orm/models/functionGraphRef.d.ts +56 -0
- package/compute/orm/models/functionGraphRef.js +107 -0
- package/compute/orm/models/functionGraphStore.d.ts +54 -0
- package/compute/orm/models/functionGraphStore.js +104 -0
- package/compute/orm/models/functionInvocation.d.ts +56 -0
- package/compute/orm/models/functionInvocation.js +107 -0
- package/compute/orm/models/getAllRecord.d.ts +30 -0
- package/compute/orm/models/getAllRecord.js +59 -0
- package/compute/orm/models/index.d.ts +23 -0
- package/compute/orm/models/index.js +44 -0
- package/compute/orm/models/orgFunctionExecutionLog.d.ts +56 -0
- package/compute/orm/models/orgFunctionExecutionLog.js +107 -0
- package/compute/orm/models/orgFunctionInvocation.d.ts +56 -0
- package/compute/orm/models/orgFunctionInvocation.js +107 -0
- package/compute/orm/models/secretDefinition.d.ts +54 -0
- package/compute/orm/models/secretDefinition.js +104 -0
- package/compute/orm/mutation/index.d.ts +130 -0
- package/compute/orm/mutation/index.js +177 -0
- package/compute/orm/query/index.d.ts +17 -0
- package/compute/orm/query/index.js +21 -0
- package/compute/orm/query-builder.d.ts +110 -0
- package/compute/orm/query-builder.js +757 -0
- package/compute/orm/realtime.d.ts +142 -0
- package/compute/orm/realtime.js +104 -0
- package/compute/orm/select-types.d.ts +125 -0
- package/compute/orm/select-types.js +2 -0
- package/compute/orm/types.d.ts +6 -0
- package/compute/orm/types.js +23 -0
- package/config/cli/commands/auth.d.ts +8 -0
- package/config/cli/commands/auth.js +107 -0
- package/config/cli/commands/context.d.ts +8 -0
- package/config/cli/commands/context.js +158 -0
- package/config/cli/commands/org-secrets-del.d.ts +8 -0
- package/config/cli/commands/org-secrets-del.js +36 -0
- package/config/cli/commands/org-secrets-remove-array.d.ts +8 -0
- package/config/cli/commands/org-secrets-remove-array.js +36 -0
- package/config/cli/commands/org-secrets-rotate.d.ts +8 -0
- package/config/cli/commands/org-secrets-rotate.js +36 -0
- package/config/cli/commands/org-secrets-set.d.ts +8 -0
- package/config/cli/commands/org-secrets-set.js +36 -0
- package/config/cli/commands/platform-config-definition.d.ts +8 -0
- package/config/cli/commands/platform-config-definition.js +352 -0
- package/config/cli/commands/platform-config.d.ts +8 -0
- package/config/cli/commands/platform-config.js +372 -0
- package/config/cli/commands/platform-secrets-del.d.ts +8 -0
- package/config/cli/commands/platform-secrets-del.js +36 -0
- package/config/cli/commands/platform-secrets-remove-array.d.ts +8 -0
- package/config/cli/commands/platform-secrets-remove-array.js +36 -0
- package/config/cli/commands/platform-secrets-rotate.d.ts +8 -0
- package/config/cli/commands/platform-secrets-rotate.js +36 -0
- package/config/cli/commands/platform-secrets-set.d.ts +8 -0
- package/config/cli/commands/platform-secrets-set.js +36 -0
- package/config/cli/commands/provision-bucket.d.ts +8 -0
- package/config/cli/commands/provision-bucket.js +36 -0
- package/config/cli/commands.d.ts +7 -0
- package/config/cli/commands.js +70 -0
- package/config/cli/executor.d.ts +52 -0
- package/config/cli/executor.js +40 -0
- package/config/cli/index.d.ts +1 -0
- package/config/cli/index.js +26 -0
- package/config/cli/utils.d.ts +88 -0
- package/config/cli/utils.js +297 -0
- package/config/index.d.ts +6 -2
- package/config/index.js +20 -4
- package/config/orm/client.d.ts +97 -0
- package/config/orm/client.js +152 -0
- package/config/orm/index.d.ts +83 -0
- package/config/orm/index.js +67 -0
- package/config/orm/input-types.d.ts +719 -0
- package/config/orm/input-types.js +5 -0
- package/config/orm/models/index.d.ts +7 -0
- package/config/orm/models/index.js +12 -0
- package/config/orm/models/platformConfig.d.ts +54 -0
- package/config/orm/models/platformConfig.js +104 -0
- package/config/orm/models/platformConfigDefinition.d.ts +54 -0
- package/config/orm/models/platformConfigDefinition.js +104 -0
- package/config/orm/mutation/index.d.ts +90 -0
- package/config/orm/mutation/index.js +117 -0
- package/config/orm/query-builder.d.ts +110 -0
- package/config/orm/query-builder.js +757 -0
- package/config/orm/realtime.d.ts +142 -0
- package/config/orm/realtime.js +104 -0
- package/config/orm/select-types.d.ts +125 -0
- package/config/orm/select-types.js +2 -0
- package/config/orm/types.d.ts +6 -0
- package/config/orm/types.js +23 -0
- package/config-store.d.ts +28 -0
- package/config-store.js +149 -0
- package/esm/admin/orm/models/appAdminGrant.js +1 -1
- package/esm/admin/orm/models/appClaimedInvite.js +1 -1
- package/esm/admin/orm/models/appGrant.js +1 -1
- package/esm/admin/orm/models/appInvite.js +1 -1
- package/esm/admin/orm/models/appMembership.js +1 -1
- package/esm/admin/orm/models/appMembershipDefault.js +1 -1
- package/esm/admin/orm/models/appOwnerGrant.js +1 -1
- package/esm/admin/orm/models/appPermission.js +1 -1
- package/esm/admin/orm/models/appPermissionDefault.js +1 -1
- package/esm/admin/orm/models/appPermissionDefaultGrant.js +1 -1
- package/esm/admin/orm/models/appPermissionDefaultPermission.js +1 -1
- package/esm/admin/orm/models/membershipType.js +1 -1
- package/esm/admin/orm/models/orgAdminGrant.js +1 -1
- package/esm/admin/orm/models/orgChartEdge.js +1 -1
- package/esm/admin/orm/models/orgChartEdgeGrant.js +1 -1
- package/esm/admin/orm/models/orgClaimedInvite.js +1 -1
- package/esm/admin/orm/models/orgGrant.js +1 -1
- package/esm/admin/orm/models/orgInvite.js +1 -1
- package/esm/admin/orm/models/orgMember.js +1 -1
- package/esm/admin/orm/models/orgMemberProfile.js +1 -1
- package/esm/admin/orm/models/orgMembership.js +1 -1
- package/esm/admin/orm/models/orgMembershipDefault.js +1 -1
- package/esm/admin/orm/models/orgMembershipSetting.js +1 -1
- package/esm/admin/orm/models/orgOwnerGrant.js +1 -1
- package/esm/admin/orm/models/orgPermission.js +1 -1
- package/esm/admin/orm/models/orgPermissionDefault.js +1 -1
- package/esm/admin/orm/models/orgPermissionDefaultGrant.js +1 -1
- package/esm/admin/orm/models/orgPermissionDefaultPermission.js +1 -1
- package/esm/admin/orm/query-builder.d.ts +1 -1
- package/esm/admin/orm/query-builder.js +2 -1
- package/esm/agent/orm/input-types.d.ts +14 -2
- package/esm/agent/orm/models/agent.js +1 -1
- package/esm/agent/orm/models/agentMessage.js +1 -1
- package/esm/agent/orm/models/agentPersona.js +1 -1
- package/esm/agent/orm/models/agentPlan.js +1 -1
- package/esm/agent/orm/models/agentPrompt.js +1 -1
- package/esm/agent/orm/models/agentResource.js +1 -1
- package/esm/agent/orm/models/agentResourceChunk.js +1 -1
- package/esm/agent/orm/models/agentTask.js +1 -1
- package/esm/agent/orm/models/agentThread.js +1 -1
- package/esm/agent/orm/query-builder.d.ts +1 -1
- package/esm/agent/orm/query-builder.js +2 -1
- package/esm/api/cli/commands/schema.js +22 -0
- package/esm/api/orm/input-types.d.ts +36 -1
- package/esm/api/orm/models/api.js +1 -1
- package/esm/api/orm/models/apiModule.js +1 -1
- package/esm/api/orm/models/apiSchema.js +1 -1
- package/esm/api/orm/models/apiSetting.js +1 -1
- package/esm/api/orm/models/app.js +1 -1
- package/esm/api/orm/models/checkConstraint.js +1 -1
- package/esm/api/orm/models/compositeType.js +1 -1
- package/esm/api/orm/models/corsSetting.js +1 -1
- package/esm/api/orm/models/database.js +1 -1
- package/esm/api/orm/models/databaseSetting.js +1 -1
- package/esm/api/orm/models/databaseTransfer.js +1 -1
- package/esm/api/orm/models/defaultPrivilege.js +1 -1
- package/esm/api/orm/models/domain.js +1 -1
- package/esm/api/orm/models/embeddingChunk.js +1 -1
- package/esm/api/orm/models/enum.js +1 -1
- package/esm/api/orm/models/field.js +1 -1
- package/esm/api/orm/models/foreignKeyConstraint.js +1 -1
- package/esm/api/orm/models/fullTextSearch.js +1 -1
- package/esm/api/orm/models/function.js +1 -1
- package/esm/api/orm/models/indexModel.js +1 -1
- package/esm/api/orm/models/nodeTypeRegistry.js +1 -1
- package/esm/api/orm/models/partition.js +1 -1
- package/esm/api/orm/models/policy.js +1 -1
- package/esm/api/orm/models/primaryKeyConstraint.js +1 -1
- package/esm/api/orm/models/pubkeySetting.js +1 -1
- package/esm/api/orm/models/rlsSetting.js +1 -1
- package/esm/api/orm/models/schema.js +1 -1
- package/esm/api/orm/models/schemaGrant.js +1 -1
- package/esm/api/orm/models/site.js +1 -1
- package/esm/api/orm/models/siteMetadatum.js +1 -1
- package/esm/api/orm/models/siteModule.js +1 -1
- package/esm/api/orm/models/siteTheme.js +1 -1
- package/esm/api/orm/models/spatialRelation.js +1 -1
- package/esm/api/orm/models/table.js +1 -1
- package/esm/api/orm/models/tableGrant.js +1 -1
- package/esm/api/orm/models/trigger.js +1 -1
- package/esm/api/orm/models/triggerFunction.js +1 -1
- package/esm/api/orm/models/uniqueConstraint.js +1 -1
- package/esm/api/orm/models/view.js +1 -1
- package/esm/api/orm/models/viewGrant.js +1 -1
- package/esm/api/orm/models/viewRule.js +1 -1
- package/esm/api/orm/models/viewTable.js +1 -1
- package/esm/api/orm/models/webauthnSetting.js +1 -1
- package/esm/api/orm/query-builder.d.ts +1 -1
- package/esm/api/orm/query-builder.js +2 -1
- package/esm/auth/cli/commands/audit-log-auth.js +14 -0
- package/esm/auth/orm/input-types.d.ts +4 -2
- package/esm/auth/orm/models/auditLogAuth.d.ts +2 -0
- package/esm/auth/orm/models/auditLogAuth.js +4 -1
- package/esm/auth/orm/models/cryptoAddress.js +1 -1
- package/esm/auth/orm/models/email.js +1 -1
- package/esm/auth/orm/models/phoneNumber.js +1 -1
- package/esm/auth/orm/models/roleType.js +1 -1
- package/esm/auth/orm/models/user.js +1 -1
- package/esm/auth/orm/models/webauthnCredential.js +1 -1
- package/esm/auth/orm/query-builder.d.ts +1 -1
- package/esm/auth/orm/query-builder.js +2 -1
- package/esm/cli-commands.js +1 -1
- package/esm/compute/cli/commands/add-edge-and-save.d.ts +8 -0
- package/esm/compute/cli/commands/add-edge-and-save.js +34 -0
- package/esm/compute/cli/commands/add-edge.d.ts +8 -0
- package/esm/compute/cli/commands/add-edge.js +34 -0
- package/esm/compute/cli/commands/add-node-and-save.d.ts +8 -0
- package/esm/compute/cli/commands/add-node-and-save.js +34 -0
- package/esm/compute/cli/commands/add-node.d.ts +8 -0
- package/esm/compute/cli/commands/add-node.js +34 -0
- package/esm/compute/cli/commands/auth.d.ts +8 -0
- package/esm/compute/cli/commands/auth.js +105 -0
- package/esm/compute/cli/commands/context.d.ts +8 -0
- package/esm/compute/cli/commands/context.js +156 -0
- package/esm/compute/cli/commands/copy-graph.d.ts +8 -0
- package/esm/compute/cli/commands/copy-graph.js +34 -0
- package/esm/compute/cli/commands/function-api-binding.d.ts +8 -0
- package/esm/compute/cli/commands/function-api-binding.js +292 -0
- package/esm/compute/cli/commands/function-definition.d.ts +8 -0
- package/esm/compute/cli/commands/function-definition.js +786 -0
- package/esm/compute/cli/commands/function-deployment-event.d.ts +8 -0
- package/esm/compute/cli/commands/function-deployment-event.js +354 -0
- package/esm/compute/cli/commands/function-deployment.d.ts +8 -0
- package/esm/compute/cli/commands/function-deployment.js +610 -0
- package/esm/compute/cli/commands/function-execution-log.d.ts +8 -0
- package/esm/compute/cli/commands/function-execution-log.js +378 -0
- package/esm/compute/cli/commands/function-graph-commit.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-commit.js +387 -0
- package/esm/compute/cli/commands/function-graph-execution-node-state.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-execution-node-state.js +442 -0
- package/esm/compute/cli/commands/function-graph-execution-output.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-execution-output.js +288 -0
- package/esm/compute/cli/commands/function-graph-execution.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-execution.js +714 -0
- package/esm/compute/cli/commands/function-graph-object.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-object.js +307 -0
- package/esm/compute/cli/commands/function-graph-ref.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-ref.js +297 -0
- package/esm/compute/cli/commands/function-graph-store.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph-store.js +276 -0
- package/esm/compute/cli/commands/function-graph.d.ts +8 -0
- package/esm/compute/cli/commands/function-graph.js +420 -0
- package/esm/compute/cli/commands/function-invocation.d.ts +8 -0
- package/esm/compute/cli/commands/function-invocation.js +510 -0
- package/esm/compute/cli/commands/get-all-record.d.ts +8 -0
- package/esm/compute/cli/commands/get-all-record.js +124 -0
- package/esm/compute/cli/commands/import-definitions.d.ts +8 -0
- package/esm/compute/cli/commands/import-definitions.js +34 -0
- package/esm/compute/cli/commands/import-graph-json.d.ts +8 -0
- package/esm/compute/cli/commands/import-graph-json.js +34 -0
- package/esm/compute/cli/commands/init-empty-repo.d.ts +8 -0
- package/esm/compute/cli/commands/init-empty-repo.js +34 -0
- package/esm/compute/cli/commands/insert-node-at-path.d.ts +8 -0
- package/esm/compute/cli/commands/insert-node-at-path.js +34 -0
- package/esm/compute/cli/commands/org-function-execution-log.d.ts +8 -0
- package/esm/compute/cli/commands/org-function-execution-log.js +358 -0
- package/esm/compute/cli/commands/org-function-invocation.d.ts +8 -0
- package/esm/compute/cli/commands/org-function-invocation.js +490 -0
- package/esm/compute/cli/commands/provision-bucket.d.ts +8 -0
- package/esm/compute/cli/commands/provision-bucket.js +34 -0
- package/esm/compute/cli/commands/read-function-graph.d.ts +8 -0
- package/esm/compute/cli/commands/read-function-graph.js +28 -0
- package/esm/compute/cli/commands/save-graph.d.ts +8 -0
- package/esm/compute/cli/commands/save-graph.js +34 -0
- package/esm/compute/cli/commands/secret-definition.d.ts +8 -0
- package/esm/compute/cli/commands/secret-definition.js +348 -0
- package/esm/compute/cli/commands/set-data-at-path.d.ts +8 -0
- package/esm/compute/cli/commands/set-data-at-path.js +34 -0
- package/esm/compute/cli/commands/start-execution.d.ts +8 -0
- package/esm/compute/cli/commands/start-execution.js +34 -0
- package/esm/compute/cli/commands/validate-function-graph.d.ts +8 -0
- package/esm/compute/cli/commands/validate-function-graph.js +34 -0
- package/esm/compute/cli/commands.d.ts +7 -0
- package/esm/compute/cli/commands.js +107 -0
- package/esm/compute/cli/executor.d.ts +100 -0
- package/esm/compute/cli/executor.js +35 -0
- package/esm/compute/cli/index.d.ts +1 -0
- package/esm/compute/cli/index.js +24 -0
- package/esm/compute/cli/utils.d.ts +88 -0
- package/esm/compute/cli/utils.js +281 -0
- package/esm/compute/index.d.ts +6 -0
- package/esm/compute/index.js +6 -0
- package/esm/compute/orm/client.d.ts +97 -0
- package/esm/compute/orm/client.js +145 -0
- package/esm/compute/orm/index.d.ts +148 -0
- package/esm/compute/orm/index.js +80 -0
- package/esm/compute/orm/input-types.d.ts +4243 -0
- package/esm/compute/orm/input-types.js +7 -0
- package/esm/compute/orm/models/functionApiBinding.d.ts +54 -0
- package/esm/compute/orm/models/functionApiBinding.js +100 -0
- package/esm/compute/orm/models/functionDefinition.d.ts +54 -0
- package/esm/compute/orm/models/functionDefinition.js +100 -0
- package/esm/compute/orm/models/functionDeployment.d.ts +54 -0
- package/esm/compute/orm/models/functionDeployment.js +100 -0
- package/esm/compute/orm/models/functionDeploymentEvent.d.ts +56 -0
- package/esm/compute/orm/models/functionDeploymentEvent.js +103 -0
- package/esm/compute/orm/models/functionExecutionLog.d.ts +56 -0
- package/esm/compute/orm/models/functionExecutionLog.js +103 -0
- package/esm/compute/orm/models/functionGraph.d.ts +54 -0
- package/esm/compute/orm/models/functionGraph.js +100 -0
- package/esm/compute/orm/models/functionGraphCommit.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphCommit.js +103 -0
- package/esm/compute/orm/models/functionGraphExecution.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphExecution.js +103 -0
- package/esm/compute/orm/models/functionGraphExecutionNodeState.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphExecutionNodeState.js +103 -0
- package/esm/compute/orm/models/functionGraphExecutionOutput.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphExecutionOutput.js +103 -0
- package/esm/compute/orm/models/functionGraphObject.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphObject.js +93 -0
- package/esm/compute/orm/models/functionGraphRef.d.ts +56 -0
- package/esm/compute/orm/models/functionGraphRef.js +103 -0
- package/esm/compute/orm/models/functionGraphStore.d.ts +54 -0
- package/esm/compute/orm/models/functionGraphStore.js +100 -0
- package/esm/compute/orm/models/functionInvocation.d.ts +56 -0
- package/esm/compute/orm/models/functionInvocation.js +103 -0
- package/esm/compute/orm/models/getAllRecord.d.ts +30 -0
- package/esm/compute/orm/models/getAllRecord.js +55 -0
- package/esm/compute/orm/models/index.d.ts +23 -0
- package/esm/compute/orm/models/index.js +23 -0
- package/esm/compute/orm/models/orgFunctionExecutionLog.d.ts +56 -0
- package/esm/compute/orm/models/orgFunctionExecutionLog.js +103 -0
- package/esm/compute/orm/models/orgFunctionInvocation.d.ts +56 -0
- package/esm/compute/orm/models/orgFunctionInvocation.js +103 -0
- package/esm/compute/orm/models/secretDefinition.d.ts +54 -0
- package/esm/compute/orm/models/secretDefinition.js +100 -0
- package/esm/compute/orm/mutation/index.d.ts +130 -0
- package/esm/compute/orm/mutation/index.js +174 -0
- package/esm/compute/orm/query/index.d.ts +17 -0
- package/esm/compute/orm/query/index.js +18 -0
- package/esm/compute/orm/query-builder.d.ts +110 -0
- package/esm/compute/orm/query-builder.js +705 -0
- package/esm/compute/orm/realtime.d.ts +142 -0
- package/esm/compute/orm/realtime.js +100 -0
- package/esm/compute/orm/select-types.d.ts +125 -0
- package/esm/compute/orm/select-types.js +1 -0
- package/esm/compute/orm/types.d.ts +6 -0
- package/esm/compute/orm/types.js +7 -0
- package/esm/config/cli/commands/auth.d.ts +8 -0
- package/esm/config/cli/commands/auth.js +105 -0
- package/esm/config/cli/commands/context.d.ts +8 -0
- package/esm/config/cli/commands/context.js +156 -0
- package/esm/config/cli/commands/org-secrets-del.d.ts +8 -0
- package/esm/config/cli/commands/org-secrets-del.js +34 -0
- package/esm/config/cli/commands/org-secrets-remove-array.d.ts +8 -0
- package/esm/config/cli/commands/org-secrets-remove-array.js +34 -0
- package/esm/config/cli/commands/org-secrets-rotate.d.ts +8 -0
- package/esm/config/cli/commands/org-secrets-rotate.js +34 -0
- package/esm/config/cli/commands/org-secrets-set.d.ts +8 -0
- package/esm/config/cli/commands/org-secrets-set.js +34 -0
- package/esm/config/cli/commands/platform-config-definition.d.ts +8 -0
- package/esm/config/cli/commands/platform-config-definition.js +350 -0
- package/esm/config/cli/commands/platform-config.d.ts +8 -0
- package/esm/config/cli/commands/platform-config.js +370 -0
- package/esm/config/cli/commands/platform-secrets-del.d.ts +8 -0
- package/esm/config/cli/commands/platform-secrets-del.js +34 -0
- package/esm/config/cli/commands/platform-secrets-remove-array.d.ts +8 -0
- package/esm/config/cli/commands/platform-secrets-remove-array.js +34 -0
- package/esm/config/cli/commands/platform-secrets-rotate.d.ts +8 -0
- package/esm/config/cli/commands/platform-secrets-rotate.js +34 -0
- package/esm/config/cli/commands/platform-secrets-set.d.ts +8 -0
- package/esm/config/cli/commands/platform-secrets-set.js +34 -0
- package/esm/config/cli/commands/provision-bucket.d.ts +8 -0
- package/esm/config/cli/commands/provision-bucket.js +34 -0
- package/esm/config/cli/commands.d.ts +7 -0
- package/esm/config/cli/commands.js +63 -0
- package/esm/config/cli/executor.d.ts +52 -0
- package/esm/config/cli/executor.js +35 -0
- package/esm/config/cli/index.d.ts +1 -0
- package/esm/config/cli/index.js +24 -0
- package/esm/config/cli/utils.d.ts +88 -0
- package/esm/config/cli/utils.js +281 -0
- package/esm/config/index.d.ts +6 -2
- package/esm/config/index.js +6 -1
- package/esm/config/orm/client.d.ts +97 -0
- package/esm/config/orm/client.js +145 -0
- package/esm/config/orm/index.d.ts +83 -0
- package/esm/config/orm/index.js +45 -0
- package/esm/config/orm/input-types.d.ts +719 -0
- package/esm/config/orm/input-types.js +2 -0
- package/esm/config/orm/models/index.d.ts +7 -0
- package/esm/config/orm/models/index.js +7 -0
- package/esm/config/orm/models/platformConfig.d.ts +54 -0
- package/esm/config/orm/models/platformConfig.js +100 -0
- package/esm/config/orm/models/platformConfigDefinition.d.ts +54 -0
- package/esm/config/orm/models/platformConfigDefinition.js +100 -0
- package/esm/config/orm/mutation/index.d.ts +90 -0
- package/esm/config/orm/mutation/index.js +114 -0
- package/esm/config/orm/query-builder.d.ts +110 -0
- package/esm/config/orm/query-builder.js +705 -0
- package/esm/config/orm/realtime.d.ts +142 -0
- package/esm/config/orm/realtime.js +100 -0
- package/esm/config/orm/select-types.d.ts +125 -0
- package/esm/config/orm/select-types.js +1 -0
- package/esm/config/orm/types.d.ts +6 -0
- package/esm/config/orm/types.js +7 -0
- package/esm/config-store.d.ts +28 -0
- package/esm/config-store.js +113 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/modules/cli/commands/function-deployment-module.d.ts +8 -0
- package/esm/modules/cli/commands/function-deployment-module.js +624 -0
- package/esm/modules/cli/commands/graph-execution-module.d.ts +8 -0
- package/esm/modules/cli/commands/graph-execution-module.js +650 -0
- package/esm/modules/cli/commands/graph-module.js +0 -44
- package/esm/modules/cli/commands/namespace-module.js +22 -0
- package/esm/modules/cli/commands.js +7 -3
- package/esm/modules/cli/executor.d.ts +3 -1
- package/esm/modules/orm/index.d.ts +6 -2
- package/esm/modules/orm/index.js +6 -2
- package/esm/modules/orm/input-types.d.ts +722 -239
- package/esm/modules/orm/models/agentModule.js +1 -1
- package/esm/modules/orm/models/billingModule.js +1 -1
- package/esm/modules/orm/models/billingProviderModule.js +1 -1
- package/esm/modules/orm/models/blueprint.js +1 -1
- package/esm/modules/orm/models/blueprintConstruction.js +1 -1
- package/esm/modules/orm/models/blueprintTemplate.js +1 -1
- package/esm/modules/orm/models/computeLogModule.js +1 -1
- package/esm/modules/orm/models/configSecretsModule.js +1 -1
- package/esm/modules/orm/models/configSecretsOrgModule.js +1 -1
- package/esm/modules/orm/models/configSecretsUserModule.js +1 -1
- package/esm/modules/orm/models/connectedAccountsModule.js +1 -1
- package/esm/modules/orm/models/cryptoAddressesModule.js +1 -1
- package/esm/modules/orm/models/cryptoAuthModule.js +1 -1
- package/esm/modules/orm/models/databaseProvisionModule.js +1 -1
- package/esm/modules/orm/models/dbUsageModule.js +1 -1
- package/esm/modules/orm/models/defaultIdsModule.js +1 -1
- package/esm/modules/orm/models/denormalizedTableField.js +1 -1
- package/esm/modules/orm/models/devicesModule.js +1 -1
- package/esm/modules/orm/models/emailsModule.js +1 -1
- package/esm/modules/orm/models/entityTypeProvision.js +1 -1
- package/esm/modules/orm/models/eventsModule.js +1 -1
- package/esm/modules/orm/models/functionDeploymentModule.d.ts +54 -0
- package/esm/modules/orm/models/functionDeploymentModule.js +100 -0
- package/esm/modules/orm/models/functionInvocationModule.js +1 -1
- package/esm/modules/orm/models/functionModule.js +1 -1
- package/esm/modules/orm/models/graphExecutionModule.d.ts +54 -0
- package/esm/modules/orm/models/graphExecutionModule.js +100 -0
- package/esm/modules/orm/models/graphModule.js +1 -1
- package/esm/modules/orm/models/hierarchyModule.js +1 -1
- package/esm/modules/orm/models/i18NModule.js +1 -1
- package/esm/modules/orm/models/identityProvidersModule.js +1 -1
- package/esm/modules/orm/models/index.d.ts +3 -1
- package/esm/modules/orm/models/index.js +3 -1
- package/esm/modules/orm/models/inferenceLogModule.js +1 -1
- package/esm/modules/orm/models/invitesModule.js +1 -1
- package/esm/modules/orm/models/limitsModule.js +1 -1
- package/esm/modules/orm/models/membershipTypesModule.js +1 -1
- package/esm/modules/orm/models/membershipsModule.js +1 -1
- package/esm/modules/orm/models/merkleStoreModule.js +1 -1
- package/esm/modules/orm/models/namespaceModule.js +1 -1
- package/esm/modules/orm/models/notificationsModule.js +1 -1
- package/esm/modules/orm/models/permissionsModule.js +1 -1
- package/esm/modules/orm/models/phoneNumbersModule.js +1 -1
- package/esm/modules/orm/models/plansModule.js +1 -1
- package/esm/modules/orm/models/profilesModule.js +1 -1
- package/esm/modules/orm/models/rateLimitMetersModule.js +1 -1
- package/esm/modules/orm/models/rateLimitsModule.js +1 -1
- package/esm/modules/orm/models/realtimeModule.js +1 -1
- package/esm/modules/orm/models/relationProvision.js +1 -1
- package/esm/modules/orm/models/rlsModule.js +1 -1
- package/esm/modules/orm/models/secureTableProvision.js +1 -1
- package/esm/modules/orm/models/sessionSecretsModule.js +1 -1
- package/esm/modules/orm/models/sessionsModule.js +1 -1
- package/esm/modules/orm/models/storageLogModule.js +1 -1
- package/esm/modules/orm/models/storageModule.js +1 -1
- package/esm/modules/orm/models/transferLogModule.js +1 -1
- package/esm/modules/orm/models/userAuthModule.js +1 -1
- package/esm/modules/orm/models/userCredentialsModule.js +1 -1
- package/esm/modules/orm/models/userSettingsModule.js +1 -1
- package/esm/modules/orm/models/userStateModule.js +1 -1
- package/esm/modules/orm/models/usersModule.js +1 -1
- package/esm/modules/orm/models/webauthnAuthModule.js +1 -1
- package/esm/modules/orm/models/webauthnCredentialsModule.js +1 -1
- package/esm/modules/orm/query-builder.d.ts +1 -1
- package/esm/modules/orm/query-builder.js +2 -1
- package/esm/objects/cli/commands/commit.js +14 -7
- package/esm/objects/cli/commands/object.js +9 -2
- package/esm/objects/cli/commands/ref.js +13 -6
- package/esm/objects/orm/models/commit.d.ts +2 -0
- package/esm/objects/orm/models/commit.js +4 -1
- package/esm/objects/orm/models/object.d.ts +2 -0
- package/esm/objects/orm/models/object.js +4 -1
- package/esm/objects/orm/models/ref.d.ts +2 -0
- package/esm/objects/orm/models/ref.js +4 -1
- package/esm/objects/orm/models/store.js +1 -1
- package/esm/objects/orm/query-builder.d.ts +1 -1
- package/esm/objects/orm/query-builder.js +2 -1
- package/esm/usage/cli/commands/app-limit-event.js +14 -0
- package/esm/usage/cli/commands/org-limit-event.js +14 -0
- package/esm/usage/orm/models/appLimit.js +1 -1
- package/esm/usage/orm/models/appLimitCap.js +1 -1
- package/esm/usage/orm/models/appLimitCapsDefault.js +1 -1
- package/esm/usage/orm/models/appLimitCredit.js +1 -1
- package/esm/usage/orm/models/appLimitCreditCode.js +1 -1
- package/esm/usage/orm/models/appLimitCreditCodeItem.js +1 -1
- package/esm/usage/orm/models/appLimitCreditRedemption.js +1 -1
- package/esm/usage/orm/models/appLimitDefault.js +1 -1
- package/esm/usage/orm/models/appLimitEvent.d.ts +2 -0
- package/esm/usage/orm/models/appLimitEvent.js +4 -1
- package/esm/usage/orm/models/appLimitWarning.js +1 -1
- package/esm/usage/orm/models/orgLimit.js +1 -1
- package/esm/usage/orm/models/orgLimitAggregate.js +1 -1
- package/esm/usage/orm/models/orgLimitCap.js +1 -1
- package/esm/usage/orm/models/orgLimitCapsDefault.js +1 -1
- package/esm/usage/orm/models/orgLimitCredit.js +1 -1
- package/esm/usage/orm/models/orgLimitDefault.js +1 -1
- package/esm/usage/orm/models/orgLimitEvent.d.ts +2 -0
- package/esm/usage/orm/models/orgLimitEvent.js +4 -1
- package/esm/usage/orm/models/orgLimitWarning.js +1 -1
- package/esm/usage/orm/query-builder.d.ts +1 -1
- package/esm/usage/orm/query-builder.js +2 -1
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/modules/cli/commands/function-deployment-module.d.ts +8 -0
- package/modules/cli/commands/function-deployment-module.js +626 -0
- package/modules/cli/commands/graph-execution-module.d.ts +8 -0
- package/modules/cli/commands/graph-execution-module.js +652 -0
- package/modules/cli/commands/graph-module.js +0 -44
- package/modules/cli/commands/namespace-module.js +22 -0
- package/modules/cli/commands.js +7 -3
- package/modules/cli/executor.d.ts +3 -1
- package/modules/orm/index.d.ts +6 -2
- package/modules/orm/index.js +6 -2
- package/modules/orm/input-types.d.ts +722 -239
- package/modules/orm/models/agentModule.js +1 -1
- package/modules/orm/models/billingModule.js +1 -1
- package/modules/orm/models/billingProviderModule.js +1 -1
- package/modules/orm/models/blueprint.js +1 -1
- package/modules/orm/models/blueprintConstruction.js +1 -1
- package/modules/orm/models/blueprintTemplate.js +1 -1
- package/modules/orm/models/computeLogModule.js +1 -1
- package/modules/orm/models/configSecretsModule.js +1 -1
- package/modules/orm/models/configSecretsOrgModule.js +1 -1
- package/modules/orm/models/configSecretsUserModule.js +1 -1
- package/modules/orm/models/connectedAccountsModule.js +1 -1
- package/modules/orm/models/cryptoAddressesModule.js +1 -1
- package/modules/orm/models/cryptoAuthModule.js +1 -1
- package/modules/orm/models/databaseProvisionModule.js +1 -1
- package/modules/orm/models/dbUsageModule.js +1 -1
- package/modules/orm/models/defaultIdsModule.js +1 -1
- package/modules/orm/models/denormalizedTableField.js +1 -1
- package/modules/orm/models/devicesModule.js +1 -1
- package/modules/orm/models/emailsModule.js +1 -1
- package/modules/orm/models/entityTypeProvision.js +1 -1
- package/modules/orm/models/eventsModule.js +1 -1
- package/modules/orm/models/functionDeploymentModule.d.ts +54 -0
- package/modules/orm/models/functionDeploymentModule.js +104 -0
- package/modules/orm/models/functionInvocationModule.js +1 -1
- package/modules/orm/models/functionModule.js +1 -1
- package/modules/orm/models/graphExecutionModule.d.ts +54 -0
- package/modules/orm/models/graphExecutionModule.js +104 -0
- package/modules/orm/models/graphModule.js +1 -1
- package/modules/orm/models/hierarchyModule.js +1 -1
- package/modules/orm/models/i18NModule.js +1 -1
- package/modules/orm/models/identityProvidersModule.js +1 -1
- package/modules/orm/models/index.d.ts +3 -1
- package/modules/orm/models/index.js +8 -4
- package/modules/orm/models/inferenceLogModule.js +1 -1
- package/modules/orm/models/invitesModule.js +1 -1
- package/modules/orm/models/limitsModule.js +1 -1
- package/modules/orm/models/membershipTypesModule.js +1 -1
- package/modules/orm/models/membershipsModule.js +1 -1
- package/modules/orm/models/merkleStoreModule.js +1 -1
- package/modules/orm/models/namespaceModule.js +1 -1
- package/modules/orm/models/notificationsModule.js +1 -1
- package/modules/orm/models/permissionsModule.js +1 -1
- package/modules/orm/models/phoneNumbersModule.js +1 -1
- package/modules/orm/models/plansModule.js +1 -1
- package/modules/orm/models/profilesModule.js +1 -1
- package/modules/orm/models/rateLimitMetersModule.js +1 -1
- package/modules/orm/models/rateLimitsModule.js +1 -1
- package/modules/orm/models/realtimeModule.js +1 -1
- package/modules/orm/models/relationProvision.js +1 -1
- package/modules/orm/models/rlsModule.js +1 -1
- package/modules/orm/models/secureTableProvision.js +1 -1
- package/modules/orm/models/sessionSecretsModule.js +1 -1
- package/modules/orm/models/sessionsModule.js +1 -1
- package/modules/orm/models/storageLogModule.js +1 -1
- package/modules/orm/models/storageModule.js +1 -1
- package/modules/orm/models/transferLogModule.js +1 -1
- package/modules/orm/models/userAuthModule.js +1 -1
- package/modules/orm/models/userCredentialsModule.js +1 -1
- package/modules/orm/models/userSettingsModule.js +1 -1
- package/modules/orm/models/userStateModule.js +1 -1
- package/modules/orm/models/usersModule.js +1 -1
- package/modules/orm/models/webauthnAuthModule.js +1 -1
- package/modules/orm/models/webauthnCredentialsModule.js +1 -1
- package/modules/orm/query-builder.d.ts +1 -1
- package/modules/orm/query-builder.js +2 -1
- package/objects/cli/commands/commit.js +14 -7
- package/objects/cli/commands/object.js +9 -2
- package/objects/cli/commands/ref.js +13 -6
- package/objects/orm/models/commit.d.ts +2 -0
- package/objects/orm/models/commit.js +4 -1
- package/objects/orm/models/object.d.ts +2 -0
- package/objects/orm/models/object.js +4 -1
- package/objects/orm/models/ref.d.ts +2 -0
- package/objects/orm/models/ref.js +4 -1
- package/objects/orm/models/store.js +1 -1
- package/objects/orm/query-builder.d.ts +1 -1
- package/objects/orm/query-builder.js +2 -1
- package/package.json +3 -3
- package/usage/cli/commands/app-limit-event.js +14 -0
- package/usage/cli/commands/org-limit-event.js +14 -0
- package/usage/orm/models/appLimit.js +1 -1
- package/usage/orm/models/appLimitCap.js +1 -1
- package/usage/orm/models/appLimitCapsDefault.js +1 -1
- package/usage/orm/models/appLimitCredit.js +1 -1
- package/usage/orm/models/appLimitCreditCode.js +1 -1
- package/usage/orm/models/appLimitCreditCodeItem.js +1 -1
- package/usage/orm/models/appLimitCreditRedemption.js +1 -1
- package/usage/orm/models/appLimitDefault.js +1 -1
- package/usage/orm/models/appLimitEvent.d.ts +2 -0
- package/usage/orm/models/appLimitEvent.js +4 -1
- package/usage/orm/models/appLimitWarning.js +1 -1
- package/usage/orm/models/orgLimit.js +1 -1
- package/usage/orm/models/orgLimitAggregate.js +1 -1
- package/usage/orm/models/orgLimitCap.js +1 -1
- package/usage/orm/models/orgLimitCapsDefault.js +1 -1
- package/usage/orm/models/orgLimitCredit.js +1 -1
- package/usage/orm/models/orgLimitDefault.js +1 -1
- package/usage/orm/models/orgLimitEvent.d.ts +2 -0
- package/usage/orm/models/orgLimitEvent.js +4 -1
- package/usage/orm/models/orgLimitWarning.js +1 -1
- package/usage/orm/query-builder.d.ts +1 -1
- package/usage/orm/query-builder.js +2 -1
- package/config/app-dirs.d.ts +0 -31
- package/config/app-dirs.js +0 -33
- package/esm/config/app-dirs.d.ts +0 -31
- package/esm/config/app-dirs.js +0 -29
|
@@ -77,7 +77,7 @@ class ViewGrantModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ViewGrant', 'updateViewGrant', 'viewGrant', args.select, args.where.id, args.data, 'UpdateViewGrantInput', 'id', 'viewGrantPatch', input_types_1.connectionFieldsMap);
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ViewGrant', 'updateViewGrant', 'viewGrant', args.select, args.where.id, args.data, 'UpdateViewGrantInput', 'id', 'viewGrantPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
|
@@ -77,7 +77,7 @@ class ViewRuleModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ViewRule', 'updateViewRule', 'viewRule', args.select, args.where.id, args.data, 'UpdateViewRuleInput', 'id', 'viewRulePatch', input_types_1.connectionFieldsMap);
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ViewRule', 'updateViewRule', 'viewRule', args.select, args.where.id, args.data, 'UpdateViewRuleInput', 'id', 'viewRulePatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
|
@@ -77,7 +77,7 @@ class ViewTableModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ViewTable', 'updateViewTable', 'viewTable', args.select, args.where.id, args.data, 'UpdateViewTableInput', 'id', 'viewTablePatch', input_types_1.connectionFieldsMap);
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ViewTable', 'updateViewTable', 'viewTable', args.select, args.where.id, args.data, 'UpdateViewTableInput', 'id', 'viewTablePatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
|
@@ -77,7 +77,7 @@ class WebauthnSettingModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('WebauthnSetting', 'updateWebauthnSetting', 'webauthnSetting', args.select, args.where.id, args.data, 'UpdateWebauthnSettingInput', 'id', 'webauthnSettingPatch', input_types_1.connectionFieldsMap);
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('WebauthnSetting', 'updateWebauthnSetting', 'webauthnSetting', args.select, args.where.id, args.data, 'UpdateWebauthnSettingInput', 'id', 'webauthnSettingPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
|
@@ -63,7 +63,7 @@ export declare function buildUpdateDocument<TSelect, TWhere extends {
|
|
|
63
63
|
document: string;
|
|
64
64
|
variables: Record<string, unknown>;
|
|
65
65
|
};
|
|
66
|
-
export declare function buildUpdateByPkDocument<TSelect, TData>(operationName: string, mutationField: string, entityField: string, select: TSelect, id: string | number, data: TData, inputTypeName: string, idFieldName: string, patchFieldName: string, connectionFieldsMap?: Record<string, Record<string, string
|
|
66
|
+
export declare function buildUpdateByPkDocument<TSelect, TData>(operationName: string, mutationField: string, entityField: string, select: TSelect, id: string | number, data: TData, inputTypeName: string, idFieldName: string, patchFieldName: string, connectionFieldsMap?: Record<string, Record<string, string>>, extraKeys?: Record<string, unknown>): {
|
|
67
67
|
document: string;
|
|
68
68
|
variables: Record<string, unknown>;
|
|
69
69
|
};
|
package/api/orm/query-builder.js
CHANGED
|
@@ -344,7 +344,7 @@ function buildUpdateDocument(operationName, mutationField, entityField, select,
|
|
|
344
344
|
},
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
|
-
function buildUpdateByPkDocument(operationName, mutationField, entityField, select, id, data, inputTypeName, idFieldName, patchFieldName, connectionFieldsMap) {
|
|
347
|
+
function buildUpdateByPkDocument(operationName, mutationField, entityField, select, id, data, inputTypeName, idFieldName, patchFieldName, connectionFieldsMap, extraKeys) {
|
|
348
348
|
const selections = select
|
|
349
349
|
? buildSelections(select, connectionFieldsMap, operationName)
|
|
350
350
|
: [t.field({ name: 'id' })];
|
|
@@ -363,6 +363,7 @@ function buildUpdateByPkDocument(operationName, mutationField, entityField, sele
|
|
|
363
363
|
variables: {
|
|
364
364
|
input: {
|
|
365
365
|
[idFieldName]: id,
|
|
366
|
+
...extraKeys,
|
|
366
367
|
[patchFieldName]: data,
|
|
367
368
|
},
|
|
368
369
|
},
|
|
@@ -231,6 +231,12 @@ async function handleUpdate(argv, prompter) {
|
|
|
231
231
|
message: 'id',
|
|
232
232
|
required: true,
|
|
233
233
|
},
|
|
234
|
+
{
|
|
235
|
+
type: 'text',
|
|
236
|
+
name: 'createdAt',
|
|
237
|
+
message: 'createdAt',
|
|
238
|
+
required: true,
|
|
239
|
+
},
|
|
234
240
|
{
|
|
235
241
|
type: 'text',
|
|
236
242
|
name: 'event',
|
|
@@ -279,6 +285,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
279
285
|
.update({
|
|
280
286
|
where: {
|
|
281
287
|
id: answers.id,
|
|
288
|
+
createdAt: answers.createdAt,
|
|
282
289
|
},
|
|
283
290
|
data: {
|
|
284
291
|
event: cleanedData.event,
|
|
@@ -319,6 +326,12 @@ async function handleDelete(argv, prompter) {
|
|
|
319
326
|
message: 'id',
|
|
320
327
|
required: true,
|
|
321
328
|
},
|
|
329
|
+
{
|
|
330
|
+
type: 'text',
|
|
331
|
+
name: 'createdAt',
|
|
332
|
+
message: 'createdAt',
|
|
333
|
+
required: true,
|
|
334
|
+
},
|
|
322
335
|
]);
|
|
323
336
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
324
337
|
const client = (0, executor_1.getClient)();
|
|
@@ -326,6 +339,7 @@ async function handleDelete(argv, prompter) {
|
|
|
326
339
|
.delete({
|
|
327
340
|
where: {
|
|
328
341
|
id: answers.id,
|
|
342
|
+
createdAt: answers.createdAt,
|
|
329
343
|
},
|
|
330
344
|
select: {
|
|
331
345
|
id: true,
|
|
@@ -802,7 +802,8 @@ export interface UserFilter {
|
|
|
802
802
|
/**
|
|
803
803
|
* Composite unified search. Provide a search string and it will be dispatched to
|
|
804
804
|
* all text-compatible search algorithms (tsvector, BM25, pg_trgm)
|
|
805
|
-
* simultaneously.
|
|
805
|
+
* simultaneously. When the LLM plugin is active, pgvector also participates via
|
|
806
|
+
* auto-embedding. Rows matching ANY algorithm are returned. All matching score
|
|
806
807
|
* fields are populated.
|
|
807
808
|
*/
|
|
808
809
|
unifiedSearch?: string;
|
|
@@ -2034,7 +2035,8 @@ export interface UserFilter {
|
|
|
2034
2035
|
/**
|
|
2035
2036
|
* Composite unified search. Provide a search string and it will be dispatched to
|
|
2036
2037
|
* all text-compatible search algorithms (tsvector, BM25, pg_trgm)
|
|
2037
|
-
* simultaneously.
|
|
2038
|
+
* simultaneously. When the LLM plugin is active, pgvector also participates via
|
|
2039
|
+
* auto-embedding. Rows matching ANY algorithm are returned. All matching score
|
|
2038
2040
|
* fields are populated.
|
|
2039
2041
|
*/
|
|
2040
2042
|
unifiedSearch?: string;
|
|
@@ -35,6 +35,7 @@ export declare class AuditLogAuthModel {
|
|
|
35
35
|
}>;
|
|
36
36
|
update<S extends AuditLogAuthSelect>(args: UpdateArgs<S, {
|
|
37
37
|
id: string;
|
|
38
|
+
createdAt: string;
|
|
38
39
|
}, AuditLogAuthPatch> & {
|
|
39
40
|
select: S;
|
|
40
41
|
} & StrictSelect<S, AuditLogAuthSelect>): QueryBuilder<{
|
|
@@ -44,6 +45,7 @@ export declare class AuditLogAuthModel {
|
|
|
44
45
|
}>;
|
|
45
46
|
delete<S extends AuditLogAuthSelect>(args: DeleteArgs<{
|
|
46
47
|
id: string;
|
|
48
|
+
createdAt: string;
|
|
47
49
|
}, S> & {
|
|
48
50
|
select: S;
|
|
49
51
|
} & StrictSelect<S, AuditLogAuthSelect>): QueryBuilder<{
|
|
@@ -77,7 +77,9 @@ class AuditLogAuthModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('AuditLogAuth', 'updateAuditLogAuth', 'auditLogAuth', args.select, args.where.id, args.data, 'UpdateAuditLogAuthInput', 'id', 'auditLogAuthPatch', input_types_1.connectionFieldsMap
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('AuditLogAuth', 'updateAuditLogAuth', 'auditLogAuth', args.select, args.where.id, args.data, 'UpdateAuditLogAuthInput', 'id', 'auditLogAuthPatch', input_types_1.connectionFieldsMap, {
|
|
81
|
+
createdAt: args.where.createdAt,
|
|
82
|
+
});
|
|
81
83
|
return new query_builder_1.QueryBuilder({
|
|
82
84
|
client: this.client,
|
|
83
85
|
operation: 'mutation',
|
|
@@ -90,6 +92,7 @@ class AuditLogAuthModel {
|
|
|
90
92
|
delete(args) {
|
|
91
93
|
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('AuditLogAuth', 'deleteAuditLogAuth', 'auditLogAuth', {
|
|
92
94
|
id: args.where.id,
|
|
95
|
+
createdAt: args.where.createdAt,
|
|
93
96
|
}, 'DeleteAuditLogAuthInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
97
|
return new query_builder_1.QueryBuilder({
|
|
95
98
|
client: this.client,
|
|
@@ -77,7 +77,7 @@ class CryptoAddressModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('CryptoAddress', 'updateCryptoAddress', 'cryptoAddress', args.select, args.where.id, args.data, 'UpdateCryptoAddressInput', 'id', 'cryptoAddressPatch', input_types_1.connectionFieldsMap);
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('CryptoAddress', 'updateCryptoAddress', 'cryptoAddress', args.select, args.where.id, args.data, 'UpdateCryptoAddressInput', 'id', 'cryptoAddressPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
package/auth/orm/models/email.js
CHANGED
|
@@ -77,7 +77,7 @@ class EmailModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('Email', 'updateEmail', 'email', args.select, args.where.id, args.data, 'UpdateEmailInput', 'id', 'emailPatch', input_types_1.connectionFieldsMap);
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('Email', 'updateEmail', 'email', args.select, args.where.id, args.data, 'UpdateEmailInput', 'id', 'emailPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
|
@@ -77,7 +77,7 @@ class PhoneNumberModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('PhoneNumber', 'updatePhoneNumber', 'phoneNumber', args.select, args.where.id, args.data, 'UpdatePhoneNumberInput', 'id', 'phoneNumberPatch', input_types_1.connectionFieldsMap);
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('PhoneNumber', 'updatePhoneNumber', 'phoneNumber', args.select, args.where.id, args.data, 'UpdatePhoneNumberInput', 'id', 'phoneNumberPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
|
@@ -77,7 +77,7 @@ class RoleTypeModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('RoleType', 'updateRoleType', 'roleType', args.select, args.where.id, args.data, 'UpdateRoleTypeInput', 'id', 'roleTypePatch', input_types_1.connectionFieldsMap);
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('RoleType', 'updateRoleType', 'roleType', args.select, args.where.id, args.data, 'UpdateRoleTypeInput', 'id', 'roleTypePatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
package/auth/orm/models/user.js
CHANGED
|
@@ -77,7 +77,7 @@ class UserModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('User', 'updateUser', 'user', args.select, args.where.id, args.data, 'UpdateUserInput', 'id', 'userPatch', input_types_1.connectionFieldsMap);
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('User', 'updateUser', 'user', args.select, args.where.id, args.data, 'UpdateUserInput', 'id', 'userPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
|
@@ -77,7 +77,7 @@ class WebauthnCredentialModel {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
update(args) {
|
|
80
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('WebauthnCredential', 'updateWebauthnCredential', 'webauthnCredential', args.select, args.where.id, args.data, 'UpdateWebauthnCredentialInput', 'id', 'webauthnCredentialPatch', input_types_1.connectionFieldsMap);
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('WebauthnCredential', 'updateWebauthnCredential', 'webauthnCredential', args.select, args.where.id, args.data, 'UpdateWebauthnCredentialInput', 'id', 'webauthnCredentialPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
81
|
return new query_builder_1.QueryBuilder({
|
|
82
82
|
client: this.client,
|
|
83
83
|
operation: 'mutation',
|
|
@@ -63,7 +63,7 @@ export declare function buildUpdateDocument<TSelect, TWhere extends {
|
|
|
63
63
|
document: string;
|
|
64
64
|
variables: Record<string, unknown>;
|
|
65
65
|
};
|
|
66
|
-
export declare function buildUpdateByPkDocument<TSelect, TData>(operationName: string, mutationField: string, entityField: string, select: TSelect, id: string | number, data: TData, inputTypeName: string, idFieldName: string, patchFieldName: string, connectionFieldsMap?: Record<string, Record<string, string
|
|
66
|
+
export declare function buildUpdateByPkDocument<TSelect, TData>(operationName: string, mutationField: string, entityField: string, select: TSelect, id: string | number, data: TData, inputTypeName: string, idFieldName: string, patchFieldName: string, connectionFieldsMap?: Record<string, Record<string, string>>, extraKeys?: Record<string, unknown>): {
|
|
67
67
|
document: string;
|
|
68
68
|
variables: Record<string, unknown>;
|
|
69
69
|
};
|
|
@@ -344,7 +344,7 @@ function buildUpdateDocument(operationName, mutationField, entityField, select,
|
|
|
344
344
|
},
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
|
-
function buildUpdateByPkDocument(operationName, mutationField, entityField, select, id, data, inputTypeName, idFieldName, patchFieldName, connectionFieldsMap) {
|
|
347
|
+
function buildUpdateByPkDocument(operationName, mutationField, entityField, select, id, data, inputTypeName, idFieldName, patchFieldName, connectionFieldsMap, extraKeys) {
|
|
348
348
|
const selections = select
|
|
349
349
|
? buildSelections(select, connectionFieldsMap, operationName)
|
|
350
350
|
: [t.field({ name: 'id' })];
|
|
@@ -363,6 +363,7 @@ function buildUpdateByPkDocument(operationName, mutationField, entityField, sele
|
|
|
363
363
|
variables: {
|
|
364
364
|
input: {
|
|
365
365
|
[idFieldName]: id,
|
|
366
|
+
...extraKeys,
|
|
366
367
|
[patchFieldName]: data,
|
|
367
368
|
},
|
|
368
369
|
},
|
package/cli-commands.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.commands = void 0;
|
|
10
10
|
const inquirerer_1 = require("inquirerer");
|
|
11
|
-
const
|
|
11
|
+
const config_store_1 = require("./config-store");
|
|
12
12
|
const utils_1 = require("./utils");
|
|
13
13
|
const TOOL_NAME = 'csdk';
|
|
14
14
|
const usageText = `
|
|
@@ -38,7 +38,7 @@ async function handleContextCreate(argv, prompter) {
|
|
|
38
38
|
{ type: 'text', name: 'name', message: 'Context name', required: true },
|
|
39
39
|
{ type: 'text', name: 'endpoint', message: 'GraphQL endpoint URL', required: true }
|
|
40
40
|
]);
|
|
41
|
-
const store = (0,
|
|
41
|
+
const store = (0, config_store_1.getConfigStore)(TOOL_NAME);
|
|
42
42
|
store.createContext(answers.name, { endpoint: answers.endpoint });
|
|
43
43
|
const settings = store.loadSettings();
|
|
44
44
|
if (!settings.currentContext) {
|
|
@@ -48,7 +48,7 @@ async function handleContextCreate(argv, prompter) {
|
|
|
48
48
|
(0, utils_1.printKeyValue)('Endpoint', answers.endpoint, 2);
|
|
49
49
|
}
|
|
50
50
|
async function handleContextList() {
|
|
51
|
-
const store = (0,
|
|
51
|
+
const store = (0, config_store_1.getConfigStore)(TOOL_NAME);
|
|
52
52
|
const contexts = store.listContexts();
|
|
53
53
|
const settings = store.loadSettings();
|
|
54
54
|
if (contexts.length === 0) {
|
|
@@ -65,7 +65,7 @@ async function handleContextList() {
|
|
|
65
65
|
(0, utils_1.printTable)(['Name', 'Endpoint', 'Auth'], rows);
|
|
66
66
|
}
|
|
67
67
|
async function handleContextUse(argv, prompter) {
|
|
68
|
-
const store = (0,
|
|
68
|
+
const store = (0, config_store_1.getConfigStore)(TOOL_NAME);
|
|
69
69
|
const contexts = store.listContexts();
|
|
70
70
|
if (contexts.length === 0) {
|
|
71
71
|
(0, utils_1.printError)('No contexts available. Run "csdk context create" first.');
|
|
@@ -83,7 +83,7 @@ async function handleContextUse(argv, prompter) {
|
|
|
83
83
|
(0, utils_1.printSuccess)(`Switched to context: ${answers.name}`);
|
|
84
84
|
}
|
|
85
85
|
async function handleContextCurrent() {
|
|
86
|
-
const store = (0,
|
|
86
|
+
const store = (0, config_store_1.getConfigStore)(TOOL_NAME);
|
|
87
87
|
const ctx = store.getCurrentContext();
|
|
88
88
|
if (!ctx) {
|
|
89
89
|
console.log('No active context. Run "csdk context create" or "csdk context use" first.');
|
|
@@ -93,7 +93,7 @@ async function handleContextCurrent() {
|
|
|
93
93
|
(0, utils_1.printKeyValue)('Endpoint', ctx.endpoint);
|
|
94
94
|
}
|
|
95
95
|
async function handleContextDelete(argv, prompter) {
|
|
96
|
-
const store = (0,
|
|
96
|
+
const store = (0, config_store_1.getConfigStore)(TOOL_NAME);
|
|
97
97
|
const contexts = store.listContexts();
|
|
98
98
|
if (contexts.length === 0) {
|
|
99
99
|
(0, utils_1.printError)('No contexts to delete.');
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation addEdgeAndSave
|
|
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,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const executor_1 = require("../executor");
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
exports.default = async (argv, prompter, _options) => {
|
|
6
|
+
try {
|
|
7
|
+
if (argv.help || argv.h) {
|
|
8
|
+
console.log('add-edge-and-save - addEdgeAndSave\n\nUsage: add-edge-and-save [OPTIONS]\n');
|
|
9
|
+
process.exit(0);
|
|
10
|
+
}
|
|
11
|
+
const answers = await prompter.prompt(argv, [
|
|
12
|
+
{
|
|
13
|
+
type: 'text',
|
|
14
|
+
name: 'input',
|
|
15
|
+
message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
]);
|
|
19
|
+
const client = (0, executor_1.getClient)();
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
|
+
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
|
+
const result = await client.mutation
|
|
23
|
+
.addEdgeAndSave(parsedAnswers, {
|
|
24
|
+
select: selectFields,
|
|
25
|
+
})
|
|
26
|
+
.execute();
|
|
27
|
+
console.log(JSON.stringify(result, null, 2));
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
console.error('Failed: addEdgeAndSave');
|
|
31
|
+
if (error instanceof Error) {
|
|
32
|
+
console.error(error.message);
|
|
33
|
+
}
|
|
34
|
+
process.exit(1);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation addEdge
|
|
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,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const executor_1 = require("../executor");
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
exports.default = async (argv, prompter, _options) => {
|
|
6
|
+
try {
|
|
7
|
+
if (argv.help || argv.h) {
|
|
8
|
+
console.log('add-edge - addEdge\n\nUsage: add-edge [OPTIONS]\n');
|
|
9
|
+
process.exit(0);
|
|
10
|
+
}
|
|
11
|
+
const answers = await prompter.prompt(argv, [
|
|
12
|
+
{
|
|
13
|
+
type: 'text',
|
|
14
|
+
name: 'input',
|
|
15
|
+
message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
]);
|
|
19
|
+
const client = (0, executor_1.getClient)();
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
|
+
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
|
+
const result = await client.mutation
|
|
23
|
+
.addEdge(parsedAnswers, {
|
|
24
|
+
select: selectFields,
|
|
25
|
+
})
|
|
26
|
+
.execute();
|
|
27
|
+
console.log(JSON.stringify(result, null, 2));
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
console.error('Failed: addEdge');
|
|
31
|
+
if (error instanceof Error) {
|
|
32
|
+
console.error(error.message);
|
|
33
|
+
}
|
|
34
|
+
process.exit(1);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation addNodeAndSave
|
|
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,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const executor_1 = require("../executor");
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
exports.default = async (argv, prompter, _options) => {
|
|
6
|
+
try {
|
|
7
|
+
if (argv.help || argv.h) {
|
|
8
|
+
console.log('add-node-and-save - addNodeAndSave\n\nUsage: add-node-and-save [OPTIONS]\n');
|
|
9
|
+
process.exit(0);
|
|
10
|
+
}
|
|
11
|
+
const answers = await prompter.prompt(argv, [
|
|
12
|
+
{
|
|
13
|
+
type: 'text',
|
|
14
|
+
name: 'input',
|
|
15
|
+
message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
]);
|
|
19
|
+
const client = (0, executor_1.getClient)();
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
|
+
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
|
+
const result = await client.mutation
|
|
23
|
+
.addNodeAndSave(parsedAnswers, {
|
|
24
|
+
select: selectFields,
|
|
25
|
+
})
|
|
26
|
+
.execute();
|
|
27
|
+
console.log(JSON.stringify(result, null, 2));
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
console.error('Failed: addNodeAndSave');
|
|
31
|
+
if (error instanceof Error) {
|
|
32
|
+
console.error(error.message);
|
|
33
|
+
}
|
|
34
|
+
process.exit(1);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation addNode
|
|
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,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const executor_1 = require("../executor");
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
exports.default = async (argv, prompter, _options) => {
|
|
6
|
+
try {
|
|
7
|
+
if (argv.help || argv.h) {
|
|
8
|
+
console.log('add-node - addNode\n\nUsage: add-node [OPTIONS]\n');
|
|
9
|
+
process.exit(0);
|
|
10
|
+
}
|
|
11
|
+
const answers = await prompter.prompt(argv, [
|
|
12
|
+
{
|
|
13
|
+
type: 'text',
|
|
14
|
+
name: 'input',
|
|
15
|
+
message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
]);
|
|
19
|
+
const client = (0, executor_1.getClient)();
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
|
+
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
|
+
const result = await client.mutation
|
|
23
|
+
.addNode(parsedAnswers, {
|
|
24
|
+
select: selectFields,
|
|
25
|
+
})
|
|
26
|
+
.execute();
|
|
27
|
+
console.log(JSON.stringify(result, null, 2));
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
console.error('Failed: addNode');
|
|
31
|
+
if (error instanceof Error) {
|
|
32
|
+
console.error(error.message);
|
|
33
|
+
}
|
|
34
|
+
process.exit(1);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication commands
|
|
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,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Authentication commands
|
|
5
|
+
* @generated by @constructive-io/graphql-codegen
|
|
6
|
+
* DO NOT EDIT - changes will be overwritten
|
|
7
|
+
*/
|
|
8
|
+
const inquirerer_1 = require("inquirerer");
|
|
9
|
+
const executor_1 = require("../executor");
|
|
10
|
+
const usage = '\ncsdk auth <command>\n\nCommands:\n set-token <token> Set API token for the current context\n status Show authentication status\n logout Remove credentials for the current context\n\nOptions:\n --context <name> Specify context (defaults to current context)\n\n --help, -h Show this help message\n';
|
|
11
|
+
exports.default = async (argv, prompter, _options) => {
|
|
12
|
+
if (argv.help || argv.h) {
|
|
13
|
+
console.log(usage);
|
|
14
|
+
process.exit(0);
|
|
15
|
+
}
|
|
16
|
+
const store = (0, executor_1.getStore)();
|
|
17
|
+
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
18
|
+
if (!subcommand) {
|
|
19
|
+
const answer = await prompter.prompt(argv, [
|
|
20
|
+
{
|
|
21
|
+
type: 'autocomplete',
|
|
22
|
+
name: 'subcommand',
|
|
23
|
+
message: 'What do you want to do?',
|
|
24
|
+
options: ['set-token', 'status', 'logout'],
|
|
25
|
+
},
|
|
26
|
+
]);
|
|
27
|
+
return handleAuthSubcommand(answer.subcommand, newArgv, prompter, store);
|
|
28
|
+
}
|
|
29
|
+
return handleAuthSubcommand(subcommand, newArgv, prompter, store);
|
|
30
|
+
};
|
|
31
|
+
async function handleAuthSubcommand(subcommand, argv, prompter, store) {
|
|
32
|
+
switch (subcommand) {
|
|
33
|
+
case 'set-token':
|
|
34
|
+
return handleSetToken(argv, prompter, store);
|
|
35
|
+
case 'status':
|
|
36
|
+
return handleStatus(store);
|
|
37
|
+
case 'logout':
|
|
38
|
+
return handleLogout(argv, prompter, store);
|
|
39
|
+
default:
|
|
40
|
+
console.log(usage);
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
async function handleSetToken(argv, prompter, store) {
|
|
45
|
+
const current = store.getCurrentContext();
|
|
46
|
+
if (!current) {
|
|
47
|
+
console.error('No active context. Run "context create" first.');
|
|
48
|
+
process.exit(1);
|
|
49
|
+
}
|
|
50
|
+
const { first: token } = (0, inquirerer_1.extractFirst)(argv);
|
|
51
|
+
let tokenValue = token;
|
|
52
|
+
if (!tokenValue) {
|
|
53
|
+
const answer = await prompter.prompt(argv, [
|
|
54
|
+
{
|
|
55
|
+
type: 'password',
|
|
56
|
+
name: 'token',
|
|
57
|
+
message: 'API Token',
|
|
58
|
+
required: true,
|
|
59
|
+
},
|
|
60
|
+
]);
|
|
61
|
+
tokenValue = answer.token;
|
|
62
|
+
}
|
|
63
|
+
store.setCredentials(current.name, {
|
|
64
|
+
token: String(tokenValue || '').trim(),
|
|
65
|
+
});
|
|
66
|
+
console.log(`Token saved for context: ${current.name}`);
|
|
67
|
+
}
|
|
68
|
+
function handleStatus(store) {
|
|
69
|
+
const contexts = store.listContexts();
|
|
70
|
+
const settings = store.loadSettings();
|
|
71
|
+
if (contexts.length === 0) {
|
|
72
|
+
console.log('No contexts configured.');
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
console.log('Authentication Status:');
|
|
76
|
+
for (const ctx of contexts) {
|
|
77
|
+
const isCurrent = ctx.name === settings.currentContext;
|
|
78
|
+
const hasAuth = store.hasValidCredentials(ctx.name);
|
|
79
|
+
const marker = isCurrent ? '* ' : ' ';
|
|
80
|
+
const status = hasAuth ? 'authenticated' : 'no token';
|
|
81
|
+
console.log(`${marker}${ctx.name} [${status}]`);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
async function handleLogout(argv, prompter, store) {
|
|
85
|
+
const current = store.getCurrentContext();
|
|
86
|
+
if (!current) {
|
|
87
|
+
console.log('No active context.');
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const confirm = await prompter.prompt(argv, [
|
|
91
|
+
{
|
|
92
|
+
type: 'confirm',
|
|
93
|
+
name: 'confirm',
|
|
94
|
+
message: `Remove credentials for "${current.name}"?`,
|
|
95
|
+
default: false,
|
|
96
|
+
},
|
|
97
|
+
]);
|
|
98
|
+
if (!confirm.confirm) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (store.removeCredentials(current.name)) {
|
|
102
|
+
console.log(`Credentials removed for: ${current.name}`);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
console.log(`No credentials found for: ${current.name}`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context management commands
|
|
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;
|