@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
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Realtime Manager - WebSocket subscription support
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
interface WsGraphQLError {
|
|
7
|
+
readonly message: string;
|
|
8
|
+
readonly [key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
interface WsExecutionResult<TData = Record<string, unknown>> {
|
|
11
|
+
data?: TData | null;
|
|
12
|
+
errors?: readonly WsGraphQLError[];
|
|
13
|
+
extensions?: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
interface WsSink<T> {
|
|
16
|
+
next(value: T): void;
|
|
17
|
+
error(error: unknown): void;
|
|
18
|
+
complete(): void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Minimal interface matching the graphql-ws Client.
|
|
22
|
+
* Consumers pass a concrete instance via RealtimeConfig.client.
|
|
23
|
+
*/
|
|
24
|
+
export interface WsClient {
|
|
25
|
+
subscribe<TData = Record<string, unknown>>(payload: {
|
|
26
|
+
query: string;
|
|
27
|
+
variables?: Record<string, unknown>;
|
|
28
|
+
}, sink: WsSink<WsExecutionResult<TData>>): () => void;
|
|
29
|
+
dispose(): void;
|
|
30
|
+
}
|
|
31
|
+
/** The DML operation that triggered the subscription event */
|
|
32
|
+
export type SubscriptionOperation = 'INSERT' | 'UPDATE' | 'DELETE';
|
|
33
|
+
/** Connection state of the WebSocket */
|
|
34
|
+
export type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting';
|
|
35
|
+
/** Listener for connection state changes */
|
|
36
|
+
export type ConnectionStateListener = (state: ConnectionState) => void;
|
|
37
|
+
/** Function returned by subscribe() to cancel the subscription */
|
|
38
|
+
export type Unsubscribe = () => void;
|
|
39
|
+
/**
|
|
40
|
+
* A realtime subscription event delivered to the client.
|
|
41
|
+
*
|
|
42
|
+
* @typeParam T - The row type of the subscribed table
|
|
43
|
+
*/
|
|
44
|
+
export interface SubscriptionEvent<T> {
|
|
45
|
+
/** The DML operation that triggered this event */
|
|
46
|
+
operation: SubscriptionOperation;
|
|
47
|
+
/** The current row data (null for DELETE if row is no longer visible) */
|
|
48
|
+
data: T | null;
|
|
49
|
+
/** Previous field values (populated on UPDATE when available) */
|
|
50
|
+
previousValues?: Partial<T>;
|
|
51
|
+
/** Server-side timestamp of when the change occurred */
|
|
52
|
+
timestamp: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Options for creating a subscription.
|
|
56
|
+
*
|
|
57
|
+
* @typeParam T - The row type of the subscribed table
|
|
58
|
+
* @typeParam TFilter - The filter type for the table
|
|
59
|
+
*/
|
|
60
|
+
export interface SubscribeOptions<T, TFilter = Record<string, unknown>> {
|
|
61
|
+
/** Server-side filter to limit which events are delivered */
|
|
62
|
+
filter?: TFilter;
|
|
63
|
+
/** Called when a subscription event is received */
|
|
64
|
+
onEvent: (event: SubscriptionEvent<T>) => void;
|
|
65
|
+
/** Called when the subscription encounters an error */
|
|
66
|
+
onError?: (error: Error) => void;
|
|
67
|
+
/** Called when the subscription completes (server-initiated close) */
|
|
68
|
+
onComplete?: () => void;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Metadata about a subscription field, used internally to map
|
|
72
|
+
* table names to GraphQL subscription field names and types.
|
|
73
|
+
*/
|
|
74
|
+
export interface SubscriptionFieldMeta {
|
|
75
|
+
/** The GraphQL subscription field name (e.g., 'onContactChanged') */
|
|
76
|
+
fieldName: string;
|
|
77
|
+
/** The table name in the source schema (e.g., 'contact') */
|
|
78
|
+
tableName: string;
|
|
79
|
+
/** The data field name inside the subscription payload (e.g., 'contact') */
|
|
80
|
+
dataFieldName: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Configuration for the realtime (WebSocket) connection.
|
|
84
|
+
* Pass this as the `realtime` option in OrmClientConfig.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* import { createClient } from 'graphql-ws';
|
|
89
|
+
*
|
|
90
|
+
* const client = createOrmClient({
|
|
91
|
+
* endpoint: 'https://api.example.com/graphql',
|
|
92
|
+
* realtime: {
|
|
93
|
+
* client: createClient({ url: 'wss://api.example.com/graphql' }),
|
|
94
|
+
* },
|
|
95
|
+
* });
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export interface RealtimeConfig {
|
|
99
|
+
/**
|
|
100
|
+
* A graphql-ws Client instance (or any object satisfying WsClient).
|
|
101
|
+
* The consumer creates this themselves, giving full control over
|
|
102
|
+
* connection options, auth, and transport.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* import { createClient } from 'graphql-ws';
|
|
107
|
+
* const wsClient = createClient({ url: 'wss://...' });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
client: WsClient;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Manages a graphql-ws WebSocket client and multiplexes
|
|
114
|
+
* subscriptions over it. Created by OrmClient when `realtime`
|
|
115
|
+
* config is provided.
|
|
116
|
+
*/
|
|
117
|
+
export declare class RealtimeManager {
|
|
118
|
+
private wsClient;
|
|
119
|
+
private connectionState;
|
|
120
|
+
private stateListeners;
|
|
121
|
+
private activeSubscriptions;
|
|
122
|
+
constructor(config: RealtimeConfig);
|
|
123
|
+
/**
|
|
124
|
+
* Subscribe to a GraphQL subscription operation.
|
|
125
|
+
* Models call this with typed metadata and documents.
|
|
126
|
+
*/
|
|
127
|
+
subscribe<T>(meta: SubscriptionFieldMeta, document: string, variables: Record<string, unknown>, options: {
|
|
128
|
+
onEvent: (event: SubscriptionEvent<T>) => void;
|
|
129
|
+
onError?: (error: Error) => void;
|
|
130
|
+
onComplete?: () => void;
|
|
131
|
+
}): Unsubscribe;
|
|
132
|
+
/** Register a listener for connection state changes */
|
|
133
|
+
onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe;
|
|
134
|
+
/** Get current connection state */
|
|
135
|
+
getConnectionState(): ConnectionState;
|
|
136
|
+
/** Number of active subscriptions */
|
|
137
|
+
getActiveSubscriptionCount(): number;
|
|
138
|
+
/** Dispose the manager and close the WebSocket connection */
|
|
139
|
+
dispose(): void;
|
|
140
|
+
private setConnectionState;
|
|
141
|
+
}
|
|
142
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Realtime Manager - WebSocket subscription support
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
// Minimal type shims so this module compiles without graphql-ws
|
|
7
|
+
// installed. Consumers supply a WsClient via RealtimeConfig;
|
|
8
|
+
// the SDK itself never imports or requires graphql-ws.
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// RealtimeManager
|
|
11
|
+
// ============================================================================
|
|
12
|
+
/**
|
|
13
|
+
* Manages a graphql-ws WebSocket client and multiplexes
|
|
14
|
+
* subscriptions over it. Created by OrmClient when `realtime`
|
|
15
|
+
* config is provided.
|
|
16
|
+
*/
|
|
17
|
+
export class RealtimeManager {
|
|
18
|
+
wsClient;
|
|
19
|
+
connectionState = 'disconnected';
|
|
20
|
+
stateListeners = new Set();
|
|
21
|
+
activeSubscriptions = 0;
|
|
22
|
+
constructor(config) {
|
|
23
|
+
this.wsClient = config.client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Subscribe to a GraphQL subscription operation.
|
|
27
|
+
* Models call this with typed metadata and documents.
|
|
28
|
+
*/
|
|
29
|
+
subscribe(meta, document, variables, options) {
|
|
30
|
+
this.activeSubscriptions++;
|
|
31
|
+
let disposed = false;
|
|
32
|
+
const cleanup = this.wsClient.subscribe({ query: document, variables }, {
|
|
33
|
+
next: (result) => {
|
|
34
|
+
if (disposed)
|
|
35
|
+
return;
|
|
36
|
+
if (result.errors) {
|
|
37
|
+
options.onError?.(new Error(result.errors.map((e) => e.message).join('; ')));
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const payload = result.data?.[meta.fieldName];
|
|
41
|
+
if (!payload)
|
|
42
|
+
return;
|
|
43
|
+
const event = {
|
|
44
|
+
operation: payload.event ?? 'UPDATE',
|
|
45
|
+
data: payload[meta.dataFieldName] ?? null,
|
|
46
|
+
previousValues: payload.previousValues,
|
|
47
|
+
timestamp: payload.timestamp ?? new Date().toISOString(),
|
|
48
|
+
};
|
|
49
|
+
options.onEvent(event);
|
|
50
|
+
},
|
|
51
|
+
error: (err) => {
|
|
52
|
+
if (disposed)
|
|
53
|
+
return;
|
|
54
|
+
options.onError?.(err instanceof Error ? err : new Error(String(err)));
|
|
55
|
+
},
|
|
56
|
+
complete: () => {
|
|
57
|
+
if (disposed)
|
|
58
|
+
return;
|
|
59
|
+
options.onComplete?.();
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
return () => {
|
|
63
|
+
if (disposed)
|
|
64
|
+
return;
|
|
65
|
+
disposed = true;
|
|
66
|
+
this.activeSubscriptions--;
|
|
67
|
+
cleanup();
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/** Register a listener for connection state changes */
|
|
71
|
+
onConnectionStateChange(listener) {
|
|
72
|
+
this.stateListeners.add(listener);
|
|
73
|
+
return () => {
|
|
74
|
+
this.stateListeners.delete(listener);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
/** Get current connection state */
|
|
78
|
+
getConnectionState() {
|
|
79
|
+
return this.connectionState;
|
|
80
|
+
}
|
|
81
|
+
/** Number of active subscriptions */
|
|
82
|
+
getActiveSubscriptionCount() {
|
|
83
|
+
return this.activeSubscriptions;
|
|
84
|
+
}
|
|
85
|
+
/** Dispose the manager and close the WebSocket connection */
|
|
86
|
+
dispose() {
|
|
87
|
+
this.wsClient.dispose();
|
|
88
|
+
this.stateListeners.clear();
|
|
89
|
+
this.activeSubscriptions = 0;
|
|
90
|
+
this.setConnectionState('disconnected');
|
|
91
|
+
}
|
|
92
|
+
setConnectionState(state) {
|
|
93
|
+
if (this.connectionState === state)
|
|
94
|
+
return;
|
|
95
|
+
this.connectionState = state;
|
|
96
|
+
for (const listener of this.stateListeners) {
|
|
97
|
+
listener(state);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type utilities for select inference
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
export interface ConnectionResult<T> {
|
|
7
|
+
nodes: T[];
|
|
8
|
+
totalCount: number;
|
|
9
|
+
pageInfo: PageInfo;
|
|
10
|
+
}
|
|
11
|
+
export interface PageInfo {
|
|
12
|
+
hasNextPage: boolean;
|
|
13
|
+
hasPreviousPage: boolean;
|
|
14
|
+
startCursor?: string | null;
|
|
15
|
+
endCursor?: string | null;
|
|
16
|
+
}
|
|
17
|
+
export interface FindManyArgs<TSelect, TWhere, TOrderBy> {
|
|
18
|
+
select?: TSelect;
|
|
19
|
+
where?: TWhere;
|
|
20
|
+
orderBy?: TOrderBy[];
|
|
21
|
+
first?: number;
|
|
22
|
+
last?: number;
|
|
23
|
+
after?: string;
|
|
24
|
+
before?: string;
|
|
25
|
+
offset?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface FindFirstArgs<TSelect, TWhere, TOrderBy> {
|
|
28
|
+
select?: TSelect;
|
|
29
|
+
where?: TWhere;
|
|
30
|
+
orderBy?: TOrderBy[];
|
|
31
|
+
}
|
|
32
|
+
export interface CreateArgs<TSelect, TData> {
|
|
33
|
+
data: TData;
|
|
34
|
+
select?: TSelect;
|
|
35
|
+
}
|
|
36
|
+
export interface UpdateArgs<TSelect, TWhere, TData> {
|
|
37
|
+
where: TWhere;
|
|
38
|
+
data: TData;
|
|
39
|
+
select?: TSelect;
|
|
40
|
+
}
|
|
41
|
+
export type FindOneArgs<TSelect, TIdName extends string = 'id', TId = string> = {
|
|
42
|
+
select?: TSelect;
|
|
43
|
+
} & Record<TIdName, TId>;
|
|
44
|
+
export interface DeleteArgs<TWhere, TSelect = undefined> {
|
|
45
|
+
where: TWhere;
|
|
46
|
+
select?: TSelect;
|
|
47
|
+
}
|
|
48
|
+
export interface BulkInsertArgs<TSelect, TData, TOnConflict = unknown> {
|
|
49
|
+
data: TData[];
|
|
50
|
+
select?: TSelect;
|
|
51
|
+
onConflict?: TOnConflict;
|
|
52
|
+
}
|
|
53
|
+
export interface BulkUpsertArgs<TSelect, TData, TOnConflict = unknown> {
|
|
54
|
+
data: TData[];
|
|
55
|
+
select?: TSelect;
|
|
56
|
+
onConflict: TOnConflict;
|
|
57
|
+
}
|
|
58
|
+
export interface BulkUpdateArgs<TSelect, TWhere, TData> {
|
|
59
|
+
where: TWhere;
|
|
60
|
+
data: TData;
|
|
61
|
+
select?: TSelect;
|
|
62
|
+
}
|
|
63
|
+
export interface BulkDeleteArgs<TSelect, TWhere> {
|
|
64
|
+
where: TWhere;
|
|
65
|
+
select?: TSelect;
|
|
66
|
+
}
|
|
67
|
+
export interface BulkMutationResult<T> {
|
|
68
|
+
affectedCount: number;
|
|
69
|
+
returning: T[];
|
|
70
|
+
}
|
|
71
|
+
type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
72
|
+
type DecrementDepth = {
|
|
73
|
+
0: 0;
|
|
74
|
+
1: 0;
|
|
75
|
+
2: 1;
|
|
76
|
+
3: 2;
|
|
77
|
+
4: 3;
|
|
78
|
+
5: 4;
|
|
79
|
+
6: 5;
|
|
80
|
+
7: 6;
|
|
81
|
+
8: 7;
|
|
82
|
+
9: 8;
|
|
83
|
+
10: 9;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Recursively validates select objects, rejecting unknown keys.
|
|
87
|
+
*
|
|
88
|
+
* NOTE: Depth is intentionally capped to avoid circular-instantiation issues
|
|
89
|
+
* in very large cyclic schemas.
|
|
90
|
+
*/
|
|
91
|
+
export type DeepExact<T, Shape, Depth extends DepthLevel = 10> = Depth extends 0 ? T extends Shape ? T : never : T extends Shape ? Exclude<keyof T, keyof Shape> extends never ? {
|
|
92
|
+
[K in keyof T]: K extends keyof Shape ? T[K] extends {
|
|
93
|
+
select: infer NS;
|
|
94
|
+
} ? Extract<Shape[K], {
|
|
95
|
+
select?: unknown;
|
|
96
|
+
}> extends {
|
|
97
|
+
select?: infer ShapeNS;
|
|
98
|
+
} ? DeepExact<Omit<T[K], 'select'> & {
|
|
99
|
+
select: DeepExact<NS, NonNullable<ShapeNS>, DecrementDepth[Depth]>;
|
|
100
|
+
}, Extract<Shape[K], {
|
|
101
|
+
select?: unknown;
|
|
102
|
+
}>, DecrementDepth[Depth]> : never : T[K] : never;
|
|
103
|
+
} : never : never;
|
|
104
|
+
/**
|
|
105
|
+
* Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`.
|
|
106
|
+
* Use this as an intersection in overloads:
|
|
107
|
+
* `{ select: S } & StrictSelect<S, XxxSelect>`.
|
|
108
|
+
*/
|
|
109
|
+
export type StrictSelect<S, Shape> = S extends DeepExact<S, Shape> ? {} : never;
|
|
110
|
+
/**
|
|
111
|
+
* Hook-optimized strict select variant.
|
|
112
|
+
*
|
|
113
|
+
* Uses a shallower recursion depth to keep editor autocomplete responsive
|
|
114
|
+
* in large schemas while still validating common nested-select mistakes.
|
|
115
|
+
*/
|
|
116
|
+
export type HookStrictSelect<S, Shape> = S extends DeepExact<S, Shape, 5> ? {} : never;
|
|
117
|
+
/**
|
|
118
|
+
* Infer result type from select configuration
|
|
119
|
+
*/
|
|
120
|
+
export type InferSelectResult<TEntity, TSelect> = TSelect extends undefined ? TEntity : {
|
|
121
|
+
[K in keyof TSelect as TSelect[K] extends false | undefined ? never : K]: TSelect[K] extends true ? K extends keyof TEntity ? TEntity[K] : never : TSelect[K] extends {
|
|
122
|
+
select: infer NestedSelect;
|
|
123
|
+
} ? K extends keyof TEntity ? NonNullable<TEntity[K]> extends ConnectionResult<infer NodeType> ? ConnectionResult<InferSelectResult<NodeType, NestedSelect>> : InferSelectResult<NonNullable<TEntity[K]>, NestedSelect> | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] : never;
|
|
124
|
+
};
|
|
125
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config store for the csdk CLI — manages named contexts (endpoint + credentials).
|
|
3
|
+
* Uses appstash for XDG-compliant directory resolution.
|
|
4
|
+
*/
|
|
5
|
+
interface ContextConfig {
|
|
6
|
+
name: string;
|
|
7
|
+
endpoint: string;
|
|
8
|
+
createdAt?: string;
|
|
9
|
+
updatedAt?: string;
|
|
10
|
+
}
|
|
11
|
+
interface GlobalSettings {
|
|
12
|
+
currentContext?: string;
|
|
13
|
+
}
|
|
14
|
+
interface ConfigStore {
|
|
15
|
+
loadSettings(): GlobalSettings;
|
|
16
|
+
createContext(name: string, opts: {
|
|
17
|
+
endpoint: string;
|
|
18
|
+
}): void;
|
|
19
|
+
listContexts(): ContextConfig[];
|
|
20
|
+
setCurrentContext(name: string): void;
|
|
21
|
+
getCurrentContext(): (ContextConfig & {
|
|
22
|
+
name: string;
|
|
23
|
+
}) | null;
|
|
24
|
+
deleteContext(name: string): void;
|
|
25
|
+
hasValidCredentials(name: string): boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function getConfigStore(toolName: string): ConfigStore;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config store for the csdk CLI — manages named contexts (endpoint + credentials).
|
|
3
|
+
* Uses appstash for XDG-compliant directory resolution.
|
|
4
|
+
*/
|
|
5
|
+
import * as fs from 'fs';
|
|
6
|
+
import * as path from 'path';
|
|
7
|
+
import { appstash, resolve } from 'appstash';
|
|
8
|
+
export function getConfigStore(toolName) {
|
|
9
|
+
const dirs = appstash(toolName, { ensure: true });
|
|
10
|
+
function configPath(filename) {
|
|
11
|
+
return resolve(dirs, 'config', filename);
|
|
12
|
+
}
|
|
13
|
+
function contextsDir() {
|
|
14
|
+
const dir = resolve(dirs, 'config', 'contexts');
|
|
15
|
+
if (!fs.existsSync(dir)) {
|
|
16
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
17
|
+
}
|
|
18
|
+
return dir;
|
|
19
|
+
}
|
|
20
|
+
function loadSettings() {
|
|
21
|
+
const p = configPath('settings.json');
|
|
22
|
+
if (fs.existsSync(p)) {
|
|
23
|
+
try {
|
|
24
|
+
return JSON.parse(fs.readFileSync(p, 'utf8'));
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
32
|
+
function saveSettings(settings) {
|
|
33
|
+
const p = configPath('settings.json');
|
|
34
|
+
const dir = path.dirname(p);
|
|
35
|
+
if (!fs.existsSync(dir)) {
|
|
36
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
37
|
+
}
|
|
38
|
+
fs.writeFileSync(p, JSON.stringify(settings, null, 2));
|
|
39
|
+
}
|
|
40
|
+
function loadCredentials() {
|
|
41
|
+
const p = configPath('credentials.json');
|
|
42
|
+
if (fs.existsSync(p)) {
|
|
43
|
+
try {
|
|
44
|
+
return JSON.parse(fs.readFileSync(p, 'utf8'));
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
return { tokens: {} };
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return { tokens: {} };
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
loadSettings,
|
|
54
|
+
createContext(name, opts) {
|
|
55
|
+
const now = new Date().toISOString();
|
|
56
|
+
const ctx = { name, endpoint: opts.endpoint, createdAt: now, updatedAt: now };
|
|
57
|
+
const p = path.join(contextsDir(), `${name}.json`);
|
|
58
|
+
fs.writeFileSync(p, JSON.stringify(ctx, null, 2));
|
|
59
|
+
},
|
|
60
|
+
listContexts() {
|
|
61
|
+
const dir = contextsDir();
|
|
62
|
+
const files = fs.readdirSync(dir).filter((f) => f.endsWith('.json'));
|
|
63
|
+
const contexts = [];
|
|
64
|
+
for (const file of files) {
|
|
65
|
+
try {
|
|
66
|
+
contexts.push(JSON.parse(fs.readFileSync(path.join(dir, file), 'utf8')));
|
|
67
|
+
}
|
|
68
|
+
catch {
|
|
69
|
+
// skip
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return contexts;
|
|
73
|
+
},
|
|
74
|
+
setCurrentContext(name) {
|
|
75
|
+
const settings = loadSettings();
|
|
76
|
+
settings.currentContext = name;
|
|
77
|
+
saveSettings(settings);
|
|
78
|
+
},
|
|
79
|
+
getCurrentContext() {
|
|
80
|
+
const settings = loadSettings();
|
|
81
|
+
if (!settings.currentContext)
|
|
82
|
+
return null;
|
|
83
|
+
const p = path.join(contextsDir(), `${settings.currentContext}.json`);
|
|
84
|
+
if (!fs.existsSync(p))
|
|
85
|
+
return null;
|
|
86
|
+
try {
|
|
87
|
+
return JSON.parse(fs.readFileSync(p, 'utf8'));
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
deleteContext(name) {
|
|
94
|
+
const p = path.join(contextsDir(), `${name}.json`);
|
|
95
|
+
if (fs.existsSync(p))
|
|
96
|
+
fs.unlinkSync(p);
|
|
97
|
+
const settings = loadSettings();
|
|
98
|
+
if (settings.currentContext === name) {
|
|
99
|
+
delete settings.currentContext;
|
|
100
|
+
saveSettings(settings);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
hasValidCredentials(name) {
|
|
104
|
+
const creds = loadCredentials();
|
|
105
|
+
const ctx = creds.tokens[name];
|
|
106
|
+
if (!ctx || !ctx.token)
|
|
107
|
+
return false;
|
|
108
|
+
if (ctx.expiresAt && new Date(ctx.expiresAt) <= new Date())
|
|
109
|
+
return false;
|
|
110
|
+
return true;
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
}
|
package/esm/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * as admin from './admin';
|
|
|
10
10
|
export * as agent from './agent';
|
|
11
11
|
export * as api from './api';
|
|
12
12
|
export * as auth from './auth';
|
|
13
|
+
export * as compute from './compute';
|
|
14
|
+
export * as config from './config';
|
|
13
15
|
export * as modules from './modules';
|
|
14
16
|
export * as objects from './objects';
|
|
15
17
|
export * as usage from './usage';
|
package/esm/index.js
CHANGED
|
@@ -10,6 +10,8 @@ export * as admin from './admin';
|
|
|
10
10
|
export * as agent from './agent';
|
|
11
11
|
export * as api from './api';
|
|
12
12
|
export * as auth from './auth';
|
|
13
|
+
export * as compute from './compute';
|
|
14
|
+
export * as config from './config';
|
|
13
15
|
export * as modules from './modules';
|
|
14
16
|
export * as objects from './objects';
|
|
15
17
|
export * as usage from './usage';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for FunctionDeploymentModule
|
|
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;
|