@wardby/cli 0.2.0 → 0.3.0
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/.env.example +34 -4
- package/README.md +183 -71
- package/dist/claude-coding-worker/driver.d.ts +7 -1
- package/dist/claude-coding-worker/driver.js +31 -2
- package/dist/claude-coding-worker/main.js +5 -2
- package/dist/claude-coding-worker/tool-socket.d.ts +9 -0
- package/dist/claude-coding-worker/tool-socket.js +26 -0
- package/dist/cli-help.d.ts +1 -1
- package/dist/cli-help.js +13 -4
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +219 -29
- package/dist/coding/collect-exclude.d.ts +25 -0
- package/dist/coding/collect-exclude.js +76 -0
- package/dist/coding/profile.d.ts +67 -22
- package/dist/coding/profile.js +58 -25
- package/dist/coding/protected-path-wording.d.ts +24 -0
- package/dist/coding/protected-path-wording.js +55 -0
- package/dist/coding/protected-paths.d.ts +31 -0
- package/dist/coding/protected-paths.js +48 -0
- package/dist/coding/protocol.d.ts +99 -3
- package/dist/coding/protocol.js +155 -4
- package/dist/coding/registry/adapters.d.ts +2 -0
- package/dist/coding/registry/adapters.js +9 -0
- package/dist/coding/registry/allowlist.d.ts +9 -0
- package/dist/coding/registry/allowlist.js +28 -0
- package/dist/coding/registry/json-scan.d.ts +55 -0
- package/dist/coding/registry/json-scan.js +191 -0
- package/dist/coding/registry/lockfiles.d.ts +6 -0
- package/dist/coding/registry/lockfiles.js +89 -0
- package/dist/coding/registry/npm-lockfile.d.ts +9 -0
- package/dist/coding/registry/npm-lockfile.js +73 -0
- package/dist/coding/registry/npm-plan.d.ts +29 -0
- package/dist/coding/registry/npm-plan.js +289 -0
- package/dist/coding/registry/npm.d.ts +7 -0
- package/dist/coding/registry/npm.js +252 -0
- package/dist/coding/registry/pypi.d.ts +4 -0
- package/dist/coding/registry/pypi.js +210 -0
- package/dist/coding/registry/report.d.ts +37 -0
- package/dist/coding/registry/report.js +31 -0
- package/dist/coding/registry/token.d.ts +4 -0
- package/dist/coding/registry/token.js +7 -0
- package/dist/coding/registry/types.d.ts +286 -0
- package/dist/coding/registry/types.js +19 -0
- package/dist/coding/registry/worker-config.d.ts +14 -0
- package/dist/coding/registry/worker-config.js +31 -0
- package/dist/coding/services/builtins.d.ts +22 -0
- package/dist/coding/services/builtins.js +85 -0
- package/dist/coding/services/catalog.d.ts +443 -0
- package/dist/coding/services/catalog.js +159 -0
- package/dist/coding/services/declaration.d.ts +11 -0
- package/dist/coding/services/declaration.js +114 -0
- package/dist/coding/services/note.d.ts +8 -0
- package/dist/coding/services/note.js +15 -0
- package/dist/coding/services/resolve.d.ts +25 -0
- package/dist/coding/services/resolve.js +50 -0
- package/dist/coding/services/wording.d.ts +25 -0
- package/dist/coding/services/wording.js +70 -0
- package/dist/coding-proxy/main.js +24 -4
- package/dist/coding-worker/artifact.d.ts +18 -0
- package/dist/coding-worker/artifact.js +48 -6
- package/dist/coding-worker/debug-trace.d.ts +37 -0
- package/dist/coding-worker/debug-trace.js +117 -0
- package/dist/coding-worker/driver.d.ts +14 -1
- package/dist/coding-worker/driver.js +106 -14
- package/dist/coding-worker/errors.d.ts +7 -0
- package/dist/coding-worker/errors.js +26 -0
- package/dist/coding-worker/main.js +13 -4
- package/dist/coding-worker/sdk.d.ts +2 -2
- package/dist/coding-worker/sdk.js +7 -2
- package/dist/coding-worker/types.d.ts +3 -0
- package/dist/config/providers.d.ts +41 -0
- package/dist/config/providers.js +66 -0
- package/dist/core/budget-groups.d.ts +109 -6
- package/dist/core/budget-groups.js +125 -19
- package/dist/core/budget-wording.d.ts +22 -0
- package/dist/core/budget-wording.js +55 -0
- package/dist/core/coding-queue.d.ts +1 -1
- package/dist/core/datastores.d.ts +1 -1
- package/dist/core/datastores.js +18 -2
- package/dist/core/db.d.ts +40 -2
- package/dist/core/db.js +75 -2
- package/dist/core/dispatch.d.ts +49 -7
- package/dist/core/dispatch.js +290 -45
- package/dist/core/engine-native.js +27 -10
- package/dist/core/grants.d.ts +86 -0
- package/dist/core/grants.js +126 -0
- package/dist/core/host-events.d.ts +49 -0
- package/dist/core/host-events.js +257 -0
- package/dist/core/host-identity-links.d.ts +54 -0
- package/dist/core/host-identity-links.js +189 -0
- package/dist/core/host-status.d.ts +61 -0
- package/dist/core/host-status.js +211 -0
- package/dist/core/http-runtime.js +3 -4
- package/dist/core/in-flight-runs.d.ts +8 -0
- package/dist/core/in-flight-runs.js +56 -0
- package/dist/core/lease.d.ts +1 -1
- package/dist/core/private-directory.d.ts +20 -0
- package/dist/core/private-directory.js +36 -0
- package/dist/core/provider-wording.d.ts +12 -0
- package/dist/core/provider-wording.js +44 -0
- package/dist/core/reconciler.d.ts +39 -3
- package/dist/core/reconciler.js +86 -2
- package/dist/core/repo-access.d.ts +99 -0
- package/dist/core/repo-access.js +136 -0
- package/dist/core/review-host-checks.d.ts +11 -0
- package/dist/core/review-host-checks.js +41 -0
- package/dist/core/review-host-tools.d.ts +47 -0
- package/dist/core/review-host-tools.js +347 -0
- package/dist/core/run-heartbeat.d.ts +27 -0
- package/dist/core/run-heartbeat.js +54 -0
- package/dist/core/runner.d.ts +31 -9
- package/dist/core/runner.js +237 -40
- package/dist/core/scheduler.d.ts +1 -1
- package/dist/core/secrets.d.ts +12 -3
- package/dist/core/secrets.js +25 -6
- package/dist/core/subagent-memory-tools.d.ts +2 -2
- package/dist/core/subagent-memory-tools.js +16 -3
- package/dist/core/tool-admin.d.ts +81 -0
- package/dist/core/tool-admin.js +129 -0
- package/dist/core/tool-names.d.ts +42 -0
- package/dist/core/tool-names.js +64 -0
- package/dist/core/untrusted-content.d.ts +32 -0
- package/dist/core/untrusted-content.js +72 -0
- package/dist/core/webhooks.d.ts +9 -2
- package/dist/core/webhooks.js +23 -2
- package/dist/generated/prisma/browser.d.ts +328 -0
- package/dist/generated/prisma/browser.js +17 -0
- package/dist/generated/prisma/client.d.ts +347 -0
- package/dist/generated/prisma/client.js +34 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +839 -0
- package/dist/generated/prisma/commonInputTypes.js +10 -0
- package/dist/generated/prisma/enums.d.ts +59 -0
- package/dist/generated/prisma/enums.js +59 -0
- package/dist/generated/prisma/internal/class.d.ts +605 -0
- package/dist/generated/prisma/internal/class.js +49 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +4494 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +628 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +635 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +599 -0
- package/dist/generated/prisma/models/Agent.d.ts +3560 -0
- package/dist/generated/prisma/models/Agent.js +1 -0
- package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
- package/dist/generated/prisma/models/AgentDatastore.js +1 -0
- package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
- package/dist/generated/prisma/models/AgentMemory.js +1 -0
- package/dist/generated/prisma/models/AgentRepository.d.ts +1425 -0
- package/dist/generated/prisma/models/AgentRepository.js +1 -0
- package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
- package/dist/generated/prisma/models/AgentSecret.js +1 -0
- package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
- package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
- package/dist/generated/prisma/models/AgentTool.d.ts +1403 -0
- package/dist/generated/prisma/models/AgentTool.js +1 -0
- package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
- package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
- package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
- package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
- package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
- package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
- package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
- package/dist/generated/prisma/models/AuthSession.js +1 -0
- package/dist/generated/prisma/models/AuthUser.d.ts +1700 -0
- package/dist/generated/prisma/models/AuthUser.js +1 -0
- package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
- package/dist/generated/prisma/models/BudgetGroup.js +1 -0
- package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1681 -0
- package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
- package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
- package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
- package/dist/generated/prisma/models/CodingProxySession.d.ts +1626 -0
- package/dist/generated/prisma/models/CodingProxySession.js +1 -0
- package/dist/generated/prisma/models/CodingRun.d.ts +3583 -0
- package/dist/generated/prisma/models/CodingRun.js +1 -0
- package/dist/generated/prisma/models/CodingService.d.ts +1348 -0
- package/dist/generated/prisma/models/CodingService.js +1 -0
- package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
- package/dist/generated/prisma/models/Datastore.js +1 -0
- package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
- package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
- package/dist/generated/prisma/models/HostEventDelivery.d.ts +946 -0
- package/dist/generated/prisma/models/HostEventDelivery.js +1 -0
- package/dist/generated/prisma/models/HostIdentity.d.ts +1232 -0
- package/dist/generated/prisma/models/HostIdentity.js +1 -0
- package/dist/generated/prisma/models/HostIdentityLinkRequest.d.ts +1473 -0
- package/dist/generated/prisma/models/HostIdentityLinkRequest.js +1 -0
- package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
- package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
- package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
- package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
- package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
- package/dist/generated/prisma/models/OAuthClient.js +1 -0
- package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
- package/dist/generated/prisma/models/OAuthFamily.js +1 -0
- package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
- package/dist/generated/prisma/models/OAuthGrant.js +1 -0
- package/dist/generated/prisma/models/Principal.d.ts +2245 -0
- package/dist/generated/prisma/models/Principal.js +1 -0
- package/dist/generated/prisma/models/RegistryAllowance.d.ts +1148 -0
- package/dist/generated/prisma/models/RegistryAllowance.js +1 -0
- package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +1219 -0
- package/dist/generated/prisma/models/RegistryApprovedVersion.js +1 -0
- package/dist/generated/prisma/models/RegistryFetch.d.ts +1428 -0
- package/dist/generated/prisma/models/RegistryFetch.js +1 -0
- package/dist/generated/prisma/models/RegistryPlanRefusal.d.ts +1294 -0
- package/dist/generated/prisma/models/RegistryPlanRefusal.js +1 -0
- package/dist/generated/prisma/models/RegistryVersionFact.d.ts +1085 -0
- package/dist/generated/prisma/models/RegistryVersionFact.js +1 -0
- package/dist/generated/prisma/models/ResourceGrant.d.ts +1437 -0
- package/dist/generated/prisma/models/ResourceGrant.js +1 -0
- package/dist/generated/prisma/models/Run.d.ts +2669 -0
- package/dist/generated/prisma/models/Run.js +1 -0
- package/dist/generated/prisma/models/RunHostCheck.d.ts +1239 -0
- package/dist/generated/prisma/models/RunHostCheck.js +1 -0
- package/dist/generated/prisma/models/RunHostStatus.d.ts +1315 -0
- package/dist/generated/prisma/models/RunHostStatus.js +1 -0
- package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
- package/dist/generated/prisma/models/SchedulerLease.js +1 -0
- package/dist/generated/prisma/models/Secret.d.ts +1399 -0
- package/dist/generated/prisma/models/Secret.js +1 -0
- package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
- package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
- package/dist/generated/prisma/models/Task.d.ts +1176 -0
- package/dist/generated/prisma/models/Task.js +1 -0
- package/dist/generated/prisma/models/Tool.d.ts +1490 -0
- package/dist/generated/prisma/models/Tool.js +1 -0
- package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
- package/dist/generated/prisma/models/Webhook.js +1 -0
- package/dist/generated/prisma/models.d.ts +45 -0
- package/dist/generated/prisma/models.js +1 -0
- package/dist/help/build.d.ts +1 -0
- package/dist/help/build.js +9 -0
- package/dist/help/catalog.d.ts +24 -0
- package/dist/help/catalog.js +160 -0
- package/dist/help/cli.d.ts +2 -0
- package/dist/help/cli.js +65 -0
- package/dist/help/runtime.d.ts +3 -0
- package/dist/help/runtime.js +44 -0
- package/dist/help/search.d.ts +9 -0
- package/dist/help/search.js +104 -0
- package/dist/help-index.json +660 -0
- package/dist/import/cli-args.js +3 -2
- package/dist/import/create.d.ts +6 -1
- package/dist/import/create.js +68 -14
- package/dist/import/index.d.ts +1 -1
- package/dist/import/index.js +19 -9
- package/dist/import/neutral-schema.d.ts +11 -11
- package/dist/mcp/auth/access.d.ts +70 -0
- package/dist/mcp/auth/access.js +58 -0
- package/dist/mcp/auth/grants-cli.d.ts +149 -0
- package/dist/mcp/auth/grants-cli.js +518 -0
- package/dist/mcp/auth/host-account-cli.d.ts +2 -0
- package/dist/mcp/auth/host-account-cli.js +47 -0
- package/dist/mcp/auth/ownership.d.ts +37 -63
- package/dist/mcp/auth/ownership.js +19 -14
- package/dist/mcp/auth/principal.d.ts +1 -1
- package/dist/mcp/auth/repo-authorization.d.ts +22 -0
- package/dist/mcp/auth/repo-authorization.js +51 -0
- package/dist/mcp/auth/resource-server.d.ts +32 -3
- package/dist/mcp/auth/resource-server.js +84 -3
- package/dist/mcp/auth/self-hosted/browser.js +22 -8
- package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/cli.js +47 -13
- package/dist/mcp/auth/self-hosted/credentials.d.ts +21 -3
- package/dist/mcp/auth/self-hosted/credentials.js +62 -4
- package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/session.d.ts +3 -2
- package/dist/mcp/context.d.ts +28 -2
- package/dist/mcp/errors.d.ts +25 -6
- package/dist/mcp/errors.js +98 -0
- package/dist/mcp/host-events/github-ingress.d.ts +36 -0
- package/dist/mcp/host-events/github-ingress.js +92 -0
- package/dist/mcp/host-events/github-user-callback.d.ts +18 -0
- package/dist/mcp/host-events/github-user-callback.js +50 -0
- package/dist/mcp/index.d.ts +8 -1
- package/dist/mcp/index.js +106 -16
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/server.js +27 -9
- package/dist/mcp/shared/page-style.d.ts +16 -0
- package/dist/mcp/shared/page-style.js +129 -0
- package/dist/mcp/tasks/manager.d.ts +1 -1
- package/dist/mcp/tools/agents.js +447 -49
- package/dist/mcp/tools/budget-groups.js +3 -3
- package/dist/mcp/tools/datastore.js +23 -16
- package/dist/mcp/tools/grants.d.ts +2 -0
- package/dist/mcp/tools/grants.js +239 -0
- package/dist/mcp/tools/help.d.ts +5 -0
- package/dist/mcp/tools/help.js +67 -0
- package/dist/mcp/tools/host-accounts.d.ts +2 -0
- package/dist/mcp/tools/host-accounts.js +114 -0
- package/dist/mcp/tools/memory.d.ts +7 -1
- package/dist/mcp/tools/memory.js +5 -5
- package/dist/mcp/tools/repositories.d.ts +2 -0
- package/dist/mcp/tools/repositories.js +181 -0
- package/dist/mcp/tools/runs.d.ts +6 -0
- package/dist/mcp/tools/runs.js +60 -6
- package/dist/mcp/tools/scheduling.js +4 -7
- package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
- package/dist/mcp/tools/secret-elicitation-form.js +10 -28
- package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
- package/dist/mcp/tools/secrets.js +18 -6
- package/dist/mcp/tools/services.d.ts +2 -0
- package/dist/mcp/tools/services.js +222 -0
- package/dist/mcp/tools/subagents.js +53 -17
- package/dist/mcp/tools/tools.d.ts +41 -0
- package/dist/mcp/tools/tools.js +202 -41
- package/dist/mcp/tools/trigger.js +36 -6
- package/dist/mcp/tools/webhooks.js +15 -4
- package/dist/mcp/transport/streamable-http.d.ts +11 -1
- package/dist/mcp/transport/streamable-http.js +32 -2
- package/dist/mcp/unattended-schedules.d.ts +1 -1
- package/dist/mcp/webhooks/ingress.d.ts +1 -1
- package/dist/providers/auth/delegating.d.ts +19 -0
- package/dist/providers/auth/delegating.js +71 -0
- package/dist/providers/auth/index.d.ts +3 -1
- package/dist/providers/auth/index.js +11 -0
- package/dist/providers/auth/self-hosted.d.ts +4 -3
- package/dist/providers/auth/self-hosted.js +16 -4
- package/dist/providers/auth/types.d.ts +6 -0
- package/dist/providers/coding-proxy/memory-ledger.d.ts +3 -0
- package/dist/providers/coding-proxy/memory-ledger.js +21 -2
- package/dist/providers/coding-proxy/metering.d.ts +4 -0
- package/dist/providers/coding-proxy/metering.js +28 -2
- package/dist/providers/coding-proxy/prisma-ledger.d.ts +18 -1
- package/dist/providers/coding-proxy/prisma-ledger.js +50 -5
- package/dist/providers/coding-proxy/proxy.d.ts +13 -0
- package/dist/providers/coding-proxy/proxy.js +479 -18
- package/dist/providers/coding-proxy/registry/audit.d.ts +131 -0
- package/dist/providers/coding-proxy/registry/audit.js +380 -0
- package/dist/providers/coding-proxy/registry/bounded-fetch.d.ts +16 -0
- package/dist/providers/coding-proxy/registry/bounded-fetch.js +77 -0
- package/dist/providers/coding-proxy/registry/plan.d.ts +58 -0
- package/dist/providers/coding-proxy/registry/plan.js +304 -0
- package/dist/providers/coding-proxy/registry/prisma-store.d.ts +34 -0
- package/dist/providers/coding-proxy/registry/prisma-store.js +151 -0
- package/dist/providers/coding-proxy/registry/service.d.ts +213 -0
- package/dist/providers/coding-proxy/registry/service.js +1137 -0
- package/dist/providers/coding-proxy/registry/store.d.ts +127 -0
- package/dist/providers/coding-proxy/registry/store.js +70 -0
- package/dist/providers/coding-proxy/runtime.d.ts +18 -1
- package/dist/providers/coding-proxy/runtime.js +63 -0
- package/dist/providers/coding-proxy/secure-fetch.js +0 -1
- package/dist/providers/coding-proxy/server.d.ts +11 -0
- package/dist/providers/coding-proxy/server.js +163 -0
- package/dist/providers/coding-proxy/types.d.ts +15 -0
- package/dist/providers/datastore/postgres.d.ts +1 -1
- package/dist/providers/engine/types.d.ts +10 -0
- package/dist/providers/executor/build.d.ts +3 -3
- package/dist/providers/executor/composition.d.ts +4 -1
- package/dist/providers/executor/composition.js +19 -0
- package/dist/providers/executor/container.d.ts +106 -4
- package/dist/providers/executor/container.js +305 -22
- package/dist/providers/executor/dbos.d.ts +3 -4
- package/dist/providers/executor/in-process.d.ts +2 -3
- package/dist/providers/executor/routing.d.ts +7 -0
- package/dist/providers/executor/routing.js +13 -0
- package/dist/providers/executor/types.d.ts +22 -0
- package/dist/providers/jobs/claude-tool-setup.d.ts +23 -0
- package/dist/providers/jobs/claude-tool-setup.js +50 -0
- package/dist/providers/jobs/collect-prune.d.ts +7 -0
- package/dist/providers/jobs/collect-prune.js +27 -0
- package/dist/providers/jobs/docker-isolation.d.ts +48 -3
- package/dist/providers/jobs/docker-isolation.js +213 -22
- package/dist/providers/jobs/docker-services.d.ts +35 -0
- package/dist/providers/jobs/docker-services.js +191 -0
- package/dist/providers/jobs/docker.d.ts +60 -2
- package/dist/providers/jobs/docker.js +313 -50
- package/dist/providers/jobs/fake-kubernetes-api.d.ts +1 -0
- package/dist/providers/jobs/fake-kubernetes-api.js +12 -3
- package/dist/providers/jobs/kubernetes-isolation.d.ts +17 -2
- package/dist/providers/jobs/kubernetes-isolation.js +238 -57
- package/dist/providers/jobs/kubernetes-platform.d.ts +10 -4
- package/dist/providers/jobs/kubernetes-platform.js +11 -5
- package/dist/providers/jobs/kubernetes-preflight.js +3 -0
- package/dist/providers/jobs/kubernetes.d.ts +21 -2
- package/dist/providers/jobs/kubernetes.js +117 -31
- package/dist/providers/jobs/types.d.ts +20 -0
- package/dist/providers/llm/anthropic.js +6 -2
- package/dist/providers/llm/bedrock.js +2 -1
- package/dist/providers/llm/claude-messages.d.ts +5 -1
- package/dist/providers/llm/claude-messages.js +1 -0
- package/dist/providers/llm/claude-provider.d.ts +3 -1
- package/dist/providers/llm/claude-provider.js +5 -1
- package/dist/providers/llm/index.d.ts +1 -1
- package/dist/providers/llm/index.js +1 -1
- package/dist/providers/llm/pricing-anthropic.d.ts +10 -0
- package/dist/providers/llm/pricing-anthropic.js +32 -14
- package/dist/providers/llm/pricing-bedrock-claude.d.ts +8 -0
- package/dist/providers/llm/pricing-bedrock-claude.js +9 -0
- package/dist/providers/llm/routing.d.ts +10 -1
- package/dist/providers/llm/routing.js +18 -0
- package/dist/providers/llm/types.d.ts +12 -0
- package/dist/providers/llm/types.js +8 -1
- package/dist/providers/memory/postgres.d.ts +1 -1
- package/dist/providers/review-host/diff-lines.d.ts +16 -0
- package/dist/providers/review-host/diff-lines.js +59 -0
- package/dist/providers/review-host/github-events.d.ts +6 -0
- package/dist/providers/review-host/github-events.js +180 -0
- package/dist/providers/review-host/github-user-auth.d.ts +38 -0
- package/dist/providers/review-host/github-user-auth.js +128 -0
- package/dist/providers/review-host/github.d.ts +57 -0
- package/dist/providers/review-host/github.js +567 -0
- package/dist/providers/review-host/index.d.ts +12 -0
- package/dist/providers/review-host/index.js +30 -0
- package/dist/providers/review-host/review-format.d.ts +19 -0
- package/dist/providers/review-host/review-format.js +59 -0
- package/dist/providers/review-host/types.d.ts +284 -0
- package/dist/providers/review-host/types.js +24 -0
- package/dist/providers/vcs/git.d.ts +16 -6
- package/dist/providers/vcs/git.js +79 -14
- package/dist/providers/vcs/github.d.ts +74 -3
- package/dist/providers/vcs/github.js +195 -15
- package/dist/providers/vcs/types.d.ts +42 -4
- package/dist/quickstart/index.js +34 -32
- package/dist/quickstart/migrate.d.ts +23 -0
- package/dist/quickstart/migrate.js +125 -0
- package/dist/sandbox/fetch-policy.d.ts +20 -2
- package/dist/sandbox/fetch-policy.js +64 -3
- package/dist/sandbox/host-functions.d.ts +9 -1
- package/dist/sandbox/host-functions.js +12 -5
- package/dist/serve.js +1 -1
- package/dist/wardby-bin.js +6 -0
- package/docs/README.md +30 -0
- package/docs/architecture-runtime.md +90 -0
- package/docs/assets/brand/wardby-icon-512.png +0 -0
- package/docs/assets/brand/wardby-icon.svg +16 -0
- package/docs/assets/brand/wardby-mascot-profile-512.png +0 -0
- package/docs/assets/brand/wardby-mascot.png +0 -0
- package/docs/assets/brand/wardby-mascot.svg +5 -0
- package/docs/assets/wardby-workflow.svg +106 -0
- package/docs/code-review-agents.md +481 -0
- package/docs/coding-agent-setup.md +172 -0
- package/docs/coding-packages.md +455 -0
- package/docs/coding-services.md +300 -0
- package/docs/coding-worker-byo-images.md +98 -0
- package/docs/coding-worker-isolation.md +1061 -0
- package/docs/getting-started-gke.md +615 -0
- package/docs/getting-started-identity-provider.md +308 -0
- package/docs/getting-started.md +133 -0
- package/docs/observability.md +53 -0
- package/docs/release-verification.md +66 -0
- package/docs/security-deployment.md +657 -0
- package/help/code-review-agents.md +31 -0
- package/help/coding-packages.md +31 -0
- package/help/coding-services.md +71 -0
- package/help/creating-agents.md +68 -0
- package/help/deploy-gke.md +39 -0
- package/help/deployment-targets.md +39 -0
- package/help/errors/budget-group-exhausted.md +25 -0
- package/help/errors/docker-isolation-unsupported.md +26 -0
- package/help/errors/protected-path.md +45 -0
- package/help/errors/repo-access.md +27 -0
- package/help/errors/service-declaration-invalid.md +27 -0
- package/help/errors/service-declaration-unavailable.md +25 -0
- package/help/errors/service-launcher-unsupported.md +30 -0
- package/help/errors/service-not-allowed.md +27 -0
- package/help/errors/service-unknown.md +23 -0
- package/help/errors/service-unready.md +49 -0
- package/help/getting-started.md +31 -0
- package/help/github.md +30 -0
- package/help/identity-and-access.md +39 -0
- package/help/mcp.md +30 -0
- package/help/native-capabilities.md +30 -0
- package/help/observability.md +41 -0
- package/help/operating-agents.md +30 -0
- package/help/security.md +27 -0
- package/help/troubleshooting/budgets.md +26 -0
- package/help/troubleshooting/coding-workers.md +47 -0
- package/help/troubleshooting/repository-access.md +27 -0
- package/package.json +30 -11
- package/prisma/migrate.config.mjs +20 -0
- package/prisma/migrations/20260925010000_coding_collect_exclude/migration.sql +8 -0
- package/prisma/migrations/20260925015000_allowed_egress_default/migration.sql +8 -0
- package/prisma/migrations/20260925020000_coding_package_registry/migration.sql +55 -0
- package/prisma/migrations/20260925030000_tool_name_per_owner/migration.sql +11 -0
- package/prisma/migrations/20260926010000_run_trigger_host_event/migration.sql +7 -0
- package/prisma/migrations/20260926020000_code_review_hosts/migration.sql +53 -0
- package/prisma/migrations/20260926030000_auth_user_roles/migration.sql +9 -0
- package/prisma/migrations/20260926040000_agent_effort/migration.sql +6 -0
- package/prisma/migrations/20260926050000_registry_lockfile_plan/migration.sql +32 -0
- package/prisma/migrations/20260926050000_repo_access_authorization/migration.sql +82 -0
- package/prisma/migrations/20260926060000_registry_plan_refusal/migration.sql +19 -0
- package/prisma/migrations/20260926100000_registry_plan_refusal_published_at/migration.sql +5 -0
- package/prisma/migrations/20260926190000_run_host_status/migration.sql +18 -0
- package/prisma/migrations/20260926210000_run_host_status_at_dispatch/migration.sql +5 -0
- package/prisma/migrations/20260927010000_resource_grants/migration.sql +72 -0
- package/prisma/migrations/20260927020000_proxy_session_budget_exhausted/migration.sql +3 -0
- package/prisma/migrations/20260927030000_coding_debug_trace/migration.sql +4 -0
- package/prisma/migrations/20260927040000_proxy_session_upstream_failure/migration.sql +3 -0
- package/prisma/migrations/20260927050000_coding_run_services/migration.sql +74 -0
- package/prisma/migrations/20260928000000_coding_run_tool_image/migration.sql +5 -0
- package/prisma/schema.prisma +417 -23
|
@@ -0,0 +1,1437 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model ResourceGrant
|
|
5
|
+
* Explicit sharing of one resource with one grantee (docs/private/
|
|
6
|
+
* 2026-09-26-resource-sharing-grants-spec-and-plan.md). Polymorphic on
|
|
7
|
+
* (resourceType, resourceId) -- no FK to the resource, so every resource
|
|
8
|
+
* delete path removes its grants in the same transaction. Levels are
|
|
9
|
+
* ordered per type and validated in code (core/grants.ts), like
|
|
10
|
+
* AgentRepository.provider, so a new type or level needs no enum migration.
|
|
11
|
+
*/
|
|
12
|
+
export type ResourceGrantModel = runtime.Types.Result.DefaultSelection<Prisma.$ResourceGrantPayload>;
|
|
13
|
+
export type AggregateResourceGrant = {
|
|
14
|
+
_count: ResourceGrantCountAggregateOutputType | null;
|
|
15
|
+
_min: ResourceGrantMinAggregateOutputType | null;
|
|
16
|
+
_max: ResourceGrantMaxAggregateOutputType | null;
|
|
17
|
+
};
|
|
18
|
+
export type ResourceGrantMinAggregateOutputType = {
|
|
19
|
+
id: string | null;
|
|
20
|
+
resourceType: string | null;
|
|
21
|
+
resourceId: string | null;
|
|
22
|
+
granteeKind: string | null;
|
|
23
|
+
granteePrincipalId: string | null;
|
|
24
|
+
granteeKey: string | null;
|
|
25
|
+
level: string | null;
|
|
26
|
+
source: string | null;
|
|
27
|
+
grantedById: string | null;
|
|
28
|
+
createdAt: Date | null;
|
|
29
|
+
updatedAt: Date | null;
|
|
30
|
+
};
|
|
31
|
+
export type ResourceGrantMaxAggregateOutputType = {
|
|
32
|
+
id: string | null;
|
|
33
|
+
resourceType: string | null;
|
|
34
|
+
resourceId: string | null;
|
|
35
|
+
granteeKind: string | null;
|
|
36
|
+
granteePrincipalId: string | null;
|
|
37
|
+
granteeKey: string | null;
|
|
38
|
+
level: string | null;
|
|
39
|
+
source: string | null;
|
|
40
|
+
grantedById: string | null;
|
|
41
|
+
createdAt: Date | null;
|
|
42
|
+
updatedAt: Date | null;
|
|
43
|
+
};
|
|
44
|
+
export type ResourceGrantCountAggregateOutputType = {
|
|
45
|
+
id: number;
|
|
46
|
+
resourceType: number;
|
|
47
|
+
resourceId: number;
|
|
48
|
+
granteeKind: number;
|
|
49
|
+
granteePrincipalId: number;
|
|
50
|
+
granteeKey: number;
|
|
51
|
+
level: number;
|
|
52
|
+
source: number;
|
|
53
|
+
grantedById: number;
|
|
54
|
+
createdAt: number;
|
|
55
|
+
updatedAt: number;
|
|
56
|
+
_all: number;
|
|
57
|
+
};
|
|
58
|
+
export type ResourceGrantMinAggregateInputType = {
|
|
59
|
+
id?: true;
|
|
60
|
+
resourceType?: true;
|
|
61
|
+
resourceId?: true;
|
|
62
|
+
granteeKind?: true;
|
|
63
|
+
granteePrincipalId?: true;
|
|
64
|
+
granteeKey?: true;
|
|
65
|
+
level?: true;
|
|
66
|
+
source?: true;
|
|
67
|
+
grantedById?: true;
|
|
68
|
+
createdAt?: true;
|
|
69
|
+
updatedAt?: true;
|
|
70
|
+
};
|
|
71
|
+
export type ResourceGrantMaxAggregateInputType = {
|
|
72
|
+
id?: true;
|
|
73
|
+
resourceType?: true;
|
|
74
|
+
resourceId?: true;
|
|
75
|
+
granteeKind?: true;
|
|
76
|
+
granteePrincipalId?: true;
|
|
77
|
+
granteeKey?: true;
|
|
78
|
+
level?: true;
|
|
79
|
+
source?: true;
|
|
80
|
+
grantedById?: true;
|
|
81
|
+
createdAt?: true;
|
|
82
|
+
updatedAt?: true;
|
|
83
|
+
};
|
|
84
|
+
export type ResourceGrantCountAggregateInputType = {
|
|
85
|
+
id?: true;
|
|
86
|
+
resourceType?: true;
|
|
87
|
+
resourceId?: true;
|
|
88
|
+
granteeKind?: true;
|
|
89
|
+
granteePrincipalId?: true;
|
|
90
|
+
granteeKey?: true;
|
|
91
|
+
level?: true;
|
|
92
|
+
source?: true;
|
|
93
|
+
grantedById?: true;
|
|
94
|
+
createdAt?: true;
|
|
95
|
+
updatedAt?: true;
|
|
96
|
+
_all?: true;
|
|
97
|
+
};
|
|
98
|
+
export type ResourceGrantAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
99
|
+
/**
|
|
100
|
+
* Filter which ResourceGrant to aggregate.
|
|
101
|
+
*/
|
|
102
|
+
where?: Prisma.ResourceGrantWhereInput;
|
|
103
|
+
/**
|
|
104
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
105
|
+
*
|
|
106
|
+
* Determine the order of ResourceGrants to fetch.
|
|
107
|
+
*/
|
|
108
|
+
orderBy?: Prisma.ResourceGrantOrderByWithRelationInput | Prisma.ResourceGrantOrderByWithRelationInput[];
|
|
109
|
+
/**
|
|
110
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
111
|
+
*
|
|
112
|
+
* Sets the start position
|
|
113
|
+
*/
|
|
114
|
+
cursor?: Prisma.ResourceGrantWhereUniqueInput;
|
|
115
|
+
/**
|
|
116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
117
|
+
*
|
|
118
|
+
* Take `±n` ResourceGrants from the position of the cursor.
|
|
119
|
+
*/
|
|
120
|
+
take?: number;
|
|
121
|
+
/**
|
|
122
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
123
|
+
*
|
|
124
|
+
* Skip the first `n` ResourceGrants.
|
|
125
|
+
*/
|
|
126
|
+
skip?: number;
|
|
127
|
+
/**
|
|
128
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
129
|
+
*
|
|
130
|
+
* Count returned ResourceGrants
|
|
131
|
+
**/
|
|
132
|
+
_count?: true | ResourceGrantCountAggregateInputType;
|
|
133
|
+
/**
|
|
134
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
135
|
+
*
|
|
136
|
+
* Select which fields to find the minimum value
|
|
137
|
+
**/
|
|
138
|
+
_min?: ResourceGrantMinAggregateInputType;
|
|
139
|
+
/**
|
|
140
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
141
|
+
*
|
|
142
|
+
* Select which fields to find the maximum value
|
|
143
|
+
**/
|
|
144
|
+
_max?: ResourceGrantMaxAggregateInputType;
|
|
145
|
+
};
|
|
146
|
+
export type GetResourceGrantAggregateType<T extends ResourceGrantAggregateArgs> = {
|
|
147
|
+
[P in keyof T & keyof AggregateResourceGrant]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateResourceGrant[P]> : Prisma.GetScalarType<T[P], AggregateResourceGrant[P]>;
|
|
148
|
+
};
|
|
149
|
+
export type ResourceGrantGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
150
|
+
where?: Prisma.ResourceGrantWhereInput;
|
|
151
|
+
orderBy?: Prisma.ResourceGrantOrderByWithAggregationInput | Prisma.ResourceGrantOrderByWithAggregationInput[];
|
|
152
|
+
by: Prisma.ResourceGrantScalarFieldEnum[] | Prisma.ResourceGrantScalarFieldEnum;
|
|
153
|
+
having?: Prisma.ResourceGrantScalarWhereWithAggregatesInput;
|
|
154
|
+
take?: number;
|
|
155
|
+
skip?: number;
|
|
156
|
+
_count?: ResourceGrantCountAggregateInputType | true;
|
|
157
|
+
_min?: ResourceGrantMinAggregateInputType;
|
|
158
|
+
_max?: ResourceGrantMaxAggregateInputType;
|
|
159
|
+
};
|
|
160
|
+
export type ResourceGrantGroupByOutputType = {
|
|
161
|
+
id: string;
|
|
162
|
+
resourceType: string;
|
|
163
|
+
resourceId: string;
|
|
164
|
+
granteeKind: string;
|
|
165
|
+
granteePrincipalId: string | null;
|
|
166
|
+
granteeKey: string;
|
|
167
|
+
level: string;
|
|
168
|
+
source: string;
|
|
169
|
+
grantedById: string | null;
|
|
170
|
+
createdAt: Date;
|
|
171
|
+
updatedAt: Date;
|
|
172
|
+
_count: ResourceGrantCountAggregateOutputType | null;
|
|
173
|
+
_min: ResourceGrantMinAggregateOutputType | null;
|
|
174
|
+
_max: ResourceGrantMaxAggregateOutputType | null;
|
|
175
|
+
};
|
|
176
|
+
export type GetResourceGrantGroupByPayload<T extends ResourceGrantGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ResourceGrantGroupByOutputType, T['by']> & {
|
|
177
|
+
[P in ((keyof T) & (keyof ResourceGrantGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ResourceGrantGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ResourceGrantGroupByOutputType[P]>;
|
|
178
|
+
}>>;
|
|
179
|
+
export type ResourceGrantWhereInput = {
|
|
180
|
+
AND?: Prisma.ResourceGrantWhereInput | Prisma.ResourceGrantWhereInput[];
|
|
181
|
+
OR?: Prisma.ResourceGrantWhereInput[];
|
|
182
|
+
NOT?: Prisma.ResourceGrantWhereInput | Prisma.ResourceGrantWhereInput[];
|
|
183
|
+
id?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
184
|
+
resourceType?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
185
|
+
resourceId?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
186
|
+
granteeKind?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
187
|
+
granteePrincipalId?: Prisma.StringNullableFilter<"ResourceGrant"> | string | null;
|
|
188
|
+
granteeKey?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
189
|
+
level?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
190
|
+
source?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
191
|
+
grantedById?: Prisma.StringNullableFilter<"ResourceGrant"> | string | null;
|
|
192
|
+
createdAt?: Prisma.DateTimeFilter<"ResourceGrant"> | Date | string;
|
|
193
|
+
updatedAt?: Prisma.DateTimeFilter<"ResourceGrant"> | Date | string;
|
|
194
|
+
granteePrincipal?: Prisma.XOR<Prisma.PrincipalNullableScalarRelationFilter, Prisma.PrincipalWhereInput> | null;
|
|
195
|
+
};
|
|
196
|
+
export type ResourceGrantOrderByWithRelationInput = {
|
|
197
|
+
id?: Prisma.SortOrder;
|
|
198
|
+
resourceType?: Prisma.SortOrder;
|
|
199
|
+
resourceId?: Prisma.SortOrder;
|
|
200
|
+
granteeKind?: Prisma.SortOrder;
|
|
201
|
+
granteePrincipalId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
202
|
+
granteeKey?: Prisma.SortOrder;
|
|
203
|
+
level?: Prisma.SortOrder;
|
|
204
|
+
source?: Prisma.SortOrder;
|
|
205
|
+
grantedById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
206
|
+
createdAt?: Prisma.SortOrder;
|
|
207
|
+
updatedAt?: Prisma.SortOrder;
|
|
208
|
+
granteePrincipal?: Prisma.PrincipalOrderByWithRelationInput;
|
|
209
|
+
};
|
|
210
|
+
export type ResourceGrantWhereUniqueInput = Prisma.AtLeast<{
|
|
211
|
+
id?: string;
|
|
212
|
+
resourceType_resourceId_granteeKey?: Prisma.ResourceGrantResourceTypeResourceIdGranteeKeyCompoundUniqueInput;
|
|
213
|
+
AND?: Prisma.ResourceGrantWhereInput | Prisma.ResourceGrantWhereInput[];
|
|
214
|
+
OR?: Prisma.ResourceGrantWhereInput[];
|
|
215
|
+
NOT?: Prisma.ResourceGrantWhereInput | Prisma.ResourceGrantWhereInput[];
|
|
216
|
+
resourceType?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
217
|
+
resourceId?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
218
|
+
granteeKind?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
219
|
+
granteePrincipalId?: Prisma.StringNullableFilter<"ResourceGrant"> | string | null;
|
|
220
|
+
granteeKey?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
221
|
+
level?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
222
|
+
source?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
223
|
+
grantedById?: Prisma.StringNullableFilter<"ResourceGrant"> | string | null;
|
|
224
|
+
createdAt?: Prisma.DateTimeFilter<"ResourceGrant"> | Date | string;
|
|
225
|
+
updatedAt?: Prisma.DateTimeFilter<"ResourceGrant"> | Date | string;
|
|
226
|
+
granteePrincipal?: Prisma.XOR<Prisma.PrincipalNullableScalarRelationFilter, Prisma.PrincipalWhereInput> | null;
|
|
227
|
+
}, "id" | "resourceType_resourceId_granteeKey">;
|
|
228
|
+
export type ResourceGrantOrderByWithAggregationInput = {
|
|
229
|
+
id?: Prisma.SortOrder;
|
|
230
|
+
resourceType?: Prisma.SortOrder;
|
|
231
|
+
resourceId?: Prisma.SortOrder;
|
|
232
|
+
granteeKind?: Prisma.SortOrder;
|
|
233
|
+
granteePrincipalId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
234
|
+
granteeKey?: Prisma.SortOrder;
|
|
235
|
+
level?: Prisma.SortOrder;
|
|
236
|
+
source?: Prisma.SortOrder;
|
|
237
|
+
grantedById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
238
|
+
createdAt?: Prisma.SortOrder;
|
|
239
|
+
updatedAt?: Prisma.SortOrder;
|
|
240
|
+
_count?: Prisma.ResourceGrantCountOrderByAggregateInput;
|
|
241
|
+
_max?: Prisma.ResourceGrantMaxOrderByAggregateInput;
|
|
242
|
+
_min?: Prisma.ResourceGrantMinOrderByAggregateInput;
|
|
243
|
+
};
|
|
244
|
+
export type ResourceGrantScalarWhereWithAggregatesInput = {
|
|
245
|
+
AND?: Prisma.ResourceGrantScalarWhereWithAggregatesInput | Prisma.ResourceGrantScalarWhereWithAggregatesInput[];
|
|
246
|
+
OR?: Prisma.ResourceGrantScalarWhereWithAggregatesInput[];
|
|
247
|
+
NOT?: Prisma.ResourceGrantScalarWhereWithAggregatesInput | Prisma.ResourceGrantScalarWhereWithAggregatesInput[];
|
|
248
|
+
id?: Prisma.StringWithAggregatesFilter<"ResourceGrant"> | string;
|
|
249
|
+
resourceType?: Prisma.StringWithAggregatesFilter<"ResourceGrant"> | string;
|
|
250
|
+
resourceId?: Prisma.StringWithAggregatesFilter<"ResourceGrant"> | string;
|
|
251
|
+
granteeKind?: Prisma.StringWithAggregatesFilter<"ResourceGrant"> | string;
|
|
252
|
+
granteePrincipalId?: Prisma.StringNullableWithAggregatesFilter<"ResourceGrant"> | string | null;
|
|
253
|
+
granteeKey?: Prisma.StringWithAggregatesFilter<"ResourceGrant"> | string;
|
|
254
|
+
level?: Prisma.StringWithAggregatesFilter<"ResourceGrant"> | string;
|
|
255
|
+
source?: Prisma.StringWithAggregatesFilter<"ResourceGrant"> | string;
|
|
256
|
+
grantedById?: Prisma.StringNullableWithAggregatesFilter<"ResourceGrant"> | string | null;
|
|
257
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ResourceGrant"> | Date | string;
|
|
258
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ResourceGrant"> | Date | string;
|
|
259
|
+
};
|
|
260
|
+
export type ResourceGrantCreateInput = {
|
|
261
|
+
id?: string;
|
|
262
|
+
resourceType: string;
|
|
263
|
+
resourceId: string;
|
|
264
|
+
granteeKind: string;
|
|
265
|
+
granteeKey: string;
|
|
266
|
+
level: string;
|
|
267
|
+
source?: string;
|
|
268
|
+
grantedById?: string | null;
|
|
269
|
+
createdAt?: Date | string;
|
|
270
|
+
updatedAt?: Date | string;
|
|
271
|
+
granteePrincipal?: Prisma.PrincipalCreateNestedOneWithoutGrantsInput;
|
|
272
|
+
};
|
|
273
|
+
export type ResourceGrantUncheckedCreateInput = {
|
|
274
|
+
id?: string;
|
|
275
|
+
resourceType: string;
|
|
276
|
+
resourceId: string;
|
|
277
|
+
granteeKind: string;
|
|
278
|
+
granteePrincipalId?: string | null;
|
|
279
|
+
granteeKey: string;
|
|
280
|
+
level: string;
|
|
281
|
+
source?: string;
|
|
282
|
+
grantedById?: string | null;
|
|
283
|
+
createdAt?: Date | string;
|
|
284
|
+
updatedAt?: Date | string;
|
|
285
|
+
};
|
|
286
|
+
export type ResourceGrantUpdateInput = {
|
|
287
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
288
|
+
resourceType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
289
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
290
|
+
granteeKind?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
291
|
+
granteeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
292
|
+
level?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
293
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
294
|
+
grantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
295
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
296
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
297
|
+
granteePrincipal?: Prisma.PrincipalUpdateOneWithoutGrantsNestedInput;
|
|
298
|
+
};
|
|
299
|
+
export type ResourceGrantUncheckedUpdateInput = {
|
|
300
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
301
|
+
resourceType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
302
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
303
|
+
granteeKind?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
304
|
+
granteePrincipalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
305
|
+
granteeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
306
|
+
level?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
307
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
308
|
+
grantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
309
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
310
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
311
|
+
};
|
|
312
|
+
export type ResourceGrantCreateManyInput = {
|
|
313
|
+
id?: string;
|
|
314
|
+
resourceType: string;
|
|
315
|
+
resourceId: string;
|
|
316
|
+
granteeKind: string;
|
|
317
|
+
granteePrincipalId?: string | null;
|
|
318
|
+
granteeKey: string;
|
|
319
|
+
level: string;
|
|
320
|
+
source?: string;
|
|
321
|
+
grantedById?: string | null;
|
|
322
|
+
createdAt?: Date | string;
|
|
323
|
+
updatedAt?: Date | string;
|
|
324
|
+
};
|
|
325
|
+
export type ResourceGrantUpdateManyMutationInput = {
|
|
326
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
327
|
+
resourceType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
328
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
329
|
+
granteeKind?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
330
|
+
granteeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
331
|
+
level?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
332
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
333
|
+
grantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
334
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
335
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
336
|
+
};
|
|
337
|
+
export type ResourceGrantUncheckedUpdateManyInput = {
|
|
338
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
339
|
+
resourceType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
340
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
341
|
+
granteeKind?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
342
|
+
granteePrincipalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
343
|
+
granteeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
344
|
+
level?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
345
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
346
|
+
grantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
347
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
348
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
349
|
+
};
|
|
350
|
+
export type ResourceGrantListRelationFilter = {
|
|
351
|
+
every?: Prisma.ResourceGrantWhereInput;
|
|
352
|
+
some?: Prisma.ResourceGrantWhereInput;
|
|
353
|
+
none?: Prisma.ResourceGrantWhereInput;
|
|
354
|
+
};
|
|
355
|
+
export type ResourceGrantOrderByRelationAggregateInput = {
|
|
356
|
+
_count?: Prisma.SortOrder;
|
|
357
|
+
};
|
|
358
|
+
export type ResourceGrantResourceTypeResourceIdGranteeKeyCompoundUniqueInput = {
|
|
359
|
+
resourceType: string;
|
|
360
|
+
resourceId: string;
|
|
361
|
+
granteeKey: string;
|
|
362
|
+
};
|
|
363
|
+
export type ResourceGrantCountOrderByAggregateInput = {
|
|
364
|
+
id?: Prisma.SortOrder;
|
|
365
|
+
resourceType?: Prisma.SortOrder;
|
|
366
|
+
resourceId?: Prisma.SortOrder;
|
|
367
|
+
granteeKind?: Prisma.SortOrder;
|
|
368
|
+
granteePrincipalId?: Prisma.SortOrder;
|
|
369
|
+
granteeKey?: Prisma.SortOrder;
|
|
370
|
+
level?: Prisma.SortOrder;
|
|
371
|
+
source?: Prisma.SortOrder;
|
|
372
|
+
grantedById?: Prisma.SortOrder;
|
|
373
|
+
createdAt?: Prisma.SortOrder;
|
|
374
|
+
updatedAt?: Prisma.SortOrder;
|
|
375
|
+
};
|
|
376
|
+
export type ResourceGrantMaxOrderByAggregateInput = {
|
|
377
|
+
id?: Prisma.SortOrder;
|
|
378
|
+
resourceType?: Prisma.SortOrder;
|
|
379
|
+
resourceId?: Prisma.SortOrder;
|
|
380
|
+
granteeKind?: Prisma.SortOrder;
|
|
381
|
+
granteePrincipalId?: Prisma.SortOrder;
|
|
382
|
+
granteeKey?: Prisma.SortOrder;
|
|
383
|
+
level?: Prisma.SortOrder;
|
|
384
|
+
source?: Prisma.SortOrder;
|
|
385
|
+
grantedById?: Prisma.SortOrder;
|
|
386
|
+
createdAt?: Prisma.SortOrder;
|
|
387
|
+
updatedAt?: Prisma.SortOrder;
|
|
388
|
+
};
|
|
389
|
+
export type ResourceGrantMinOrderByAggregateInput = {
|
|
390
|
+
id?: Prisma.SortOrder;
|
|
391
|
+
resourceType?: Prisma.SortOrder;
|
|
392
|
+
resourceId?: Prisma.SortOrder;
|
|
393
|
+
granteeKind?: Prisma.SortOrder;
|
|
394
|
+
granteePrincipalId?: Prisma.SortOrder;
|
|
395
|
+
granteeKey?: Prisma.SortOrder;
|
|
396
|
+
level?: Prisma.SortOrder;
|
|
397
|
+
source?: Prisma.SortOrder;
|
|
398
|
+
grantedById?: Prisma.SortOrder;
|
|
399
|
+
createdAt?: Prisma.SortOrder;
|
|
400
|
+
updatedAt?: Prisma.SortOrder;
|
|
401
|
+
};
|
|
402
|
+
export type ResourceGrantCreateNestedManyWithoutGranteePrincipalInput = {
|
|
403
|
+
create?: Prisma.XOR<Prisma.ResourceGrantCreateWithoutGranteePrincipalInput, Prisma.ResourceGrantUncheckedCreateWithoutGranteePrincipalInput> | Prisma.ResourceGrantCreateWithoutGranteePrincipalInput[] | Prisma.ResourceGrantUncheckedCreateWithoutGranteePrincipalInput[];
|
|
404
|
+
connectOrCreate?: Prisma.ResourceGrantCreateOrConnectWithoutGranteePrincipalInput | Prisma.ResourceGrantCreateOrConnectWithoutGranteePrincipalInput[];
|
|
405
|
+
createMany?: Prisma.ResourceGrantCreateManyGranteePrincipalInputEnvelope;
|
|
406
|
+
connect?: Prisma.ResourceGrantWhereUniqueInput | Prisma.ResourceGrantWhereUniqueInput[];
|
|
407
|
+
};
|
|
408
|
+
export type ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput = {
|
|
409
|
+
create?: Prisma.XOR<Prisma.ResourceGrantCreateWithoutGranteePrincipalInput, Prisma.ResourceGrantUncheckedCreateWithoutGranteePrincipalInput> | Prisma.ResourceGrantCreateWithoutGranteePrincipalInput[] | Prisma.ResourceGrantUncheckedCreateWithoutGranteePrincipalInput[];
|
|
410
|
+
connectOrCreate?: Prisma.ResourceGrantCreateOrConnectWithoutGranteePrincipalInput | Prisma.ResourceGrantCreateOrConnectWithoutGranteePrincipalInput[];
|
|
411
|
+
createMany?: Prisma.ResourceGrantCreateManyGranteePrincipalInputEnvelope;
|
|
412
|
+
connect?: Prisma.ResourceGrantWhereUniqueInput | Prisma.ResourceGrantWhereUniqueInput[];
|
|
413
|
+
};
|
|
414
|
+
export type ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput = {
|
|
415
|
+
create?: Prisma.XOR<Prisma.ResourceGrantCreateWithoutGranteePrincipalInput, Prisma.ResourceGrantUncheckedCreateWithoutGranteePrincipalInput> | Prisma.ResourceGrantCreateWithoutGranteePrincipalInput[] | Prisma.ResourceGrantUncheckedCreateWithoutGranteePrincipalInput[];
|
|
416
|
+
connectOrCreate?: Prisma.ResourceGrantCreateOrConnectWithoutGranteePrincipalInput | Prisma.ResourceGrantCreateOrConnectWithoutGranteePrincipalInput[];
|
|
417
|
+
upsert?: Prisma.ResourceGrantUpsertWithWhereUniqueWithoutGranteePrincipalInput | Prisma.ResourceGrantUpsertWithWhereUniqueWithoutGranteePrincipalInput[];
|
|
418
|
+
createMany?: Prisma.ResourceGrantCreateManyGranteePrincipalInputEnvelope;
|
|
419
|
+
set?: Prisma.ResourceGrantWhereUniqueInput | Prisma.ResourceGrantWhereUniqueInput[];
|
|
420
|
+
disconnect?: Prisma.ResourceGrantWhereUniqueInput | Prisma.ResourceGrantWhereUniqueInput[];
|
|
421
|
+
delete?: Prisma.ResourceGrantWhereUniqueInput | Prisma.ResourceGrantWhereUniqueInput[];
|
|
422
|
+
connect?: Prisma.ResourceGrantWhereUniqueInput | Prisma.ResourceGrantWhereUniqueInput[];
|
|
423
|
+
update?: Prisma.ResourceGrantUpdateWithWhereUniqueWithoutGranteePrincipalInput | Prisma.ResourceGrantUpdateWithWhereUniqueWithoutGranteePrincipalInput[];
|
|
424
|
+
updateMany?: Prisma.ResourceGrantUpdateManyWithWhereWithoutGranteePrincipalInput | Prisma.ResourceGrantUpdateManyWithWhereWithoutGranteePrincipalInput[];
|
|
425
|
+
deleteMany?: Prisma.ResourceGrantScalarWhereInput | Prisma.ResourceGrantScalarWhereInput[];
|
|
426
|
+
};
|
|
427
|
+
export type ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput = {
|
|
428
|
+
create?: Prisma.XOR<Prisma.ResourceGrantCreateWithoutGranteePrincipalInput, Prisma.ResourceGrantUncheckedCreateWithoutGranteePrincipalInput> | Prisma.ResourceGrantCreateWithoutGranteePrincipalInput[] | Prisma.ResourceGrantUncheckedCreateWithoutGranteePrincipalInput[];
|
|
429
|
+
connectOrCreate?: Prisma.ResourceGrantCreateOrConnectWithoutGranteePrincipalInput | Prisma.ResourceGrantCreateOrConnectWithoutGranteePrincipalInput[];
|
|
430
|
+
upsert?: Prisma.ResourceGrantUpsertWithWhereUniqueWithoutGranteePrincipalInput | Prisma.ResourceGrantUpsertWithWhereUniqueWithoutGranteePrincipalInput[];
|
|
431
|
+
createMany?: Prisma.ResourceGrantCreateManyGranteePrincipalInputEnvelope;
|
|
432
|
+
set?: Prisma.ResourceGrantWhereUniqueInput | Prisma.ResourceGrantWhereUniqueInput[];
|
|
433
|
+
disconnect?: Prisma.ResourceGrantWhereUniqueInput | Prisma.ResourceGrantWhereUniqueInput[];
|
|
434
|
+
delete?: Prisma.ResourceGrantWhereUniqueInput | Prisma.ResourceGrantWhereUniqueInput[];
|
|
435
|
+
connect?: Prisma.ResourceGrantWhereUniqueInput | Prisma.ResourceGrantWhereUniqueInput[];
|
|
436
|
+
update?: Prisma.ResourceGrantUpdateWithWhereUniqueWithoutGranteePrincipalInput | Prisma.ResourceGrantUpdateWithWhereUniqueWithoutGranteePrincipalInput[];
|
|
437
|
+
updateMany?: Prisma.ResourceGrantUpdateManyWithWhereWithoutGranteePrincipalInput | Prisma.ResourceGrantUpdateManyWithWhereWithoutGranteePrincipalInput[];
|
|
438
|
+
deleteMany?: Prisma.ResourceGrantScalarWhereInput | Prisma.ResourceGrantScalarWhereInput[];
|
|
439
|
+
};
|
|
440
|
+
export type ResourceGrantCreateWithoutGranteePrincipalInput = {
|
|
441
|
+
id?: string;
|
|
442
|
+
resourceType: string;
|
|
443
|
+
resourceId: string;
|
|
444
|
+
granteeKind: string;
|
|
445
|
+
granteeKey: string;
|
|
446
|
+
level: string;
|
|
447
|
+
source?: string;
|
|
448
|
+
grantedById?: string | null;
|
|
449
|
+
createdAt?: Date | string;
|
|
450
|
+
updatedAt?: Date | string;
|
|
451
|
+
};
|
|
452
|
+
export type ResourceGrantUncheckedCreateWithoutGranteePrincipalInput = {
|
|
453
|
+
id?: string;
|
|
454
|
+
resourceType: string;
|
|
455
|
+
resourceId: string;
|
|
456
|
+
granteeKind: string;
|
|
457
|
+
granteeKey: string;
|
|
458
|
+
level: string;
|
|
459
|
+
source?: string;
|
|
460
|
+
grantedById?: string | null;
|
|
461
|
+
createdAt?: Date | string;
|
|
462
|
+
updatedAt?: Date | string;
|
|
463
|
+
};
|
|
464
|
+
export type ResourceGrantCreateOrConnectWithoutGranteePrincipalInput = {
|
|
465
|
+
where: Prisma.ResourceGrantWhereUniqueInput;
|
|
466
|
+
create: Prisma.XOR<Prisma.ResourceGrantCreateWithoutGranteePrincipalInput, Prisma.ResourceGrantUncheckedCreateWithoutGranteePrincipalInput>;
|
|
467
|
+
};
|
|
468
|
+
export type ResourceGrantCreateManyGranteePrincipalInputEnvelope = {
|
|
469
|
+
data: Prisma.ResourceGrantCreateManyGranteePrincipalInput | Prisma.ResourceGrantCreateManyGranteePrincipalInput[];
|
|
470
|
+
skipDuplicates?: boolean;
|
|
471
|
+
};
|
|
472
|
+
export type ResourceGrantUpsertWithWhereUniqueWithoutGranteePrincipalInput = {
|
|
473
|
+
where: Prisma.ResourceGrantWhereUniqueInput;
|
|
474
|
+
update: Prisma.XOR<Prisma.ResourceGrantUpdateWithoutGranteePrincipalInput, Prisma.ResourceGrantUncheckedUpdateWithoutGranteePrincipalInput>;
|
|
475
|
+
create: Prisma.XOR<Prisma.ResourceGrantCreateWithoutGranteePrincipalInput, Prisma.ResourceGrantUncheckedCreateWithoutGranteePrincipalInput>;
|
|
476
|
+
};
|
|
477
|
+
export type ResourceGrantUpdateWithWhereUniqueWithoutGranteePrincipalInput = {
|
|
478
|
+
where: Prisma.ResourceGrantWhereUniqueInput;
|
|
479
|
+
data: Prisma.XOR<Prisma.ResourceGrantUpdateWithoutGranteePrincipalInput, Prisma.ResourceGrantUncheckedUpdateWithoutGranteePrincipalInput>;
|
|
480
|
+
};
|
|
481
|
+
export type ResourceGrantUpdateManyWithWhereWithoutGranteePrincipalInput = {
|
|
482
|
+
where: Prisma.ResourceGrantScalarWhereInput;
|
|
483
|
+
data: Prisma.XOR<Prisma.ResourceGrantUpdateManyMutationInput, Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalInput>;
|
|
484
|
+
};
|
|
485
|
+
export type ResourceGrantScalarWhereInput = {
|
|
486
|
+
AND?: Prisma.ResourceGrantScalarWhereInput | Prisma.ResourceGrantScalarWhereInput[];
|
|
487
|
+
OR?: Prisma.ResourceGrantScalarWhereInput[];
|
|
488
|
+
NOT?: Prisma.ResourceGrantScalarWhereInput | Prisma.ResourceGrantScalarWhereInput[];
|
|
489
|
+
id?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
490
|
+
resourceType?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
491
|
+
resourceId?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
492
|
+
granteeKind?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
493
|
+
granteePrincipalId?: Prisma.StringNullableFilter<"ResourceGrant"> | string | null;
|
|
494
|
+
granteeKey?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
495
|
+
level?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
496
|
+
source?: Prisma.StringFilter<"ResourceGrant"> | string;
|
|
497
|
+
grantedById?: Prisma.StringNullableFilter<"ResourceGrant"> | string | null;
|
|
498
|
+
createdAt?: Prisma.DateTimeFilter<"ResourceGrant"> | Date | string;
|
|
499
|
+
updatedAt?: Prisma.DateTimeFilter<"ResourceGrant"> | Date | string;
|
|
500
|
+
};
|
|
501
|
+
export type ResourceGrantCreateManyGranteePrincipalInput = {
|
|
502
|
+
id?: string;
|
|
503
|
+
resourceType: string;
|
|
504
|
+
resourceId: string;
|
|
505
|
+
granteeKind: string;
|
|
506
|
+
granteeKey: string;
|
|
507
|
+
level: string;
|
|
508
|
+
source?: string;
|
|
509
|
+
grantedById?: string | null;
|
|
510
|
+
createdAt?: Date | string;
|
|
511
|
+
updatedAt?: Date | string;
|
|
512
|
+
};
|
|
513
|
+
export type ResourceGrantUpdateWithoutGranteePrincipalInput = {
|
|
514
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
515
|
+
resourceType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
516
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
517
|
+
granteeKind?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
518
|
+
granteeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
519
|
+
level?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
520
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
521
|
+
grantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
522
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
523
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
524
|
+
};
|
|
525
|
+
export type ResourceGrantUncheckedUpdateWithoutGranteePrincipalInput = {
|
|
526
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
527
|
+
resourceType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
528
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
529
|
+
granteeKind?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
530
|
+
granteeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
531
|
+
level?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
532
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
533
|
+
grantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
534
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
535
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
536
|
+
};
|
|
537
|
+
export type ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalInput = {
|
|
538
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
539
|
+
resourceType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
540
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
541
|
+
granteeKind?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
542
|
+
granteeKey?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
543
|
+
level?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
544
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
545
|
+
grantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
546
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
547
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
548
|
+
};
|
|
549
|
+
export type ResourceGrantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
550
|
+
id?: boolean;
|
|
551
|
+
resourceType?: boolean;
|
|
552
|
+
resourceId?: boolean;
|
|
553
|
+
granteeKind?: boolean;
|
|
554
|
+
granteePrincipalId?: boolean;
|
|
555
|
+
granteeKey?: boolean;
|
|
556
|
+
level?: boolean;
|
|
557
|
+
source?: boolean;
|
|
558
|
+
grantedById?: boolean;
|
|
559
|
+
createdAt?: boolean;
|
|
560
|
+
updatedAt?: boolean;
|
|
561
|
+
granteePrincipal?: boolean | Prisma.ResourceGrant$granteePrincipalArgs<ExtArgs>;
|
|
562
|
+
}, ExtArgs["result"]["resourceGrant"]>;
|
|
563
|
+
export type ResourceGrantSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
564
|
+
id?: boolean;
|
|
565
|
+
resourceType?: boolean;
|
|
566
|
+
resourceId?: boolean;
|
|
567
|
+
granteeKind?: boolean;
|
|
568
|
+
granteePrincipalId?: boolean;
|
|
569
|
+
granteeKey?: boolean;
|
|
570
|
+
level?: boolean;
|
|
571
|
+
source?: boolean;
|
|
572
|
+
grantedById?: boolean;
|
|
573
|
+
createdAt?: boolean;
|
|
574
|
+
updatedAt?: boolean;
|
|
575
|
+
granteePrincipal?: boolean | Prisma.ResourceGrant$granteePrincipalArgs<ExtArgs>;
|
|
576
|
+
}, ExtArgs["result"]["resourceGrant"]>;
|
|
577
|
+
export type ResourceGrantSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
578
|
+
id?: boolean;
|
|
579
|
+
resourceType?: boolean;
|
|
580
|
+
resourceId?: boolean;
|
|
581
|
+
granteeKind?: boolean;
|
|
582
|
+
granteePrincipalId?: boolean;
|
|
583
|
+
granteeKey?: boolean;
|
|
584
|
+
level?: boolean;
|
|
585
|
+
source?: boolean;
|
|
586
|
+
grantedById?: boolean;
|
|
587
|
+
createdAt?: boolean;
|
|
588
|
+
updatedAt?: boolean;
|
|
589
|
+
granteePrincipal?: boolean | Prisma.ResourceGrant$granteePrincipalArgs<ExtArgs>;
|
|
590
|
+
}, ExtArgs["result"]["resourceGrant"]>;
|
|
591
|
+
export type ResourceGrantSelectScalar = {
|
|
592
|
+
id?: boolean;
|
|
593
|
+
resourceType?: boolean;
|
|
594
|
+
resourceId?: boolean;
|
|
595
|
+
granteeKind?: boolean;
|
|
596
|
+
granteePrincipalId?: boolean;
|
|
597
|
+
granteeKey?: boolean;
|
|
598
|
+
level?: boolean;
|
|
599
|
+
source?: boolean;
|
|
600
|
+
grantedById?: boolean;
|
|
601
|
+
createdAt?: boolean;
|
|
602
|
+
updatedAt?: boolean;
|
|
603
|
+
};
|
|
604
|
+
export type ResourceGrantOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "resourceType" | "resourceId" | "granteeKind" | "granteePrincipalId" | "granteeKey" | "level" | "source" | "grantedById" | "createdAt" | "updatedAt", ExtArgs["result"]["resourceGrant"]>;
|
|
605
|
+
export type ResourceGrantInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
606
|
+
granteePrincipal?: boolean | Prisma.ResourceGrant$granteePrincipalArgs<ExtArgs>;
|
|
607
|
+
};
|
|
608
|
+
export type ResourceGrantIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
609
|
+
granteePrincipal?: boolean | Prisma.ResourceGrant$granteePrincipalArgs<ExtArgs>;
|
|
610
|
+
};
|
|
611
|
+
export type ResourceGrantIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
612
|
+
granteePrincipal?: boolean | Prisma.ResourceGrant$granteePrincipalArgs<ExtArgs>;
|
|
613
|
+
};
|
|
614
|
+
export type $ResourceGrantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
615
|
+
name: "ResourceGrant";
|
|
616
|
+
objects: {
|
|
617
|
+
granteePrincipal: Prisma.$PrincipalPayload<ExtArgs> | null;
|
|
618
|
+
};
|
|
619
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
620
|
+
id: string;
|
|
621
|
+
/**
|
|
622
|
+
* "agent" | "tool" | "budget_group" (later "secret" | "datastore").
|
|
623
|
+
*/
|
|
624
|
+
resourceType: string;
|
|
625
|
+
resourceId: string;
|
|
626
|
+
/**
|
|
627
|
+
* "principal" | "everyone" (later "group").
|
|
628
|
+
*/
|
|
629
|
+
granteeKind: string;
|
|
630
|
+
granteePrincipalId: string | null;
|
|
631
|
+
/**
|
|
632
|
+
* Normalised grantee identity for uniqueness: "principal:<id>", "everyone"
|
|
633
|
+
* (later "group:<id>"). Needed because NULL granteePrincipalId values are
|
|
634
|
+
* distinct in a unique index. Shape enforced by a hand-written CHECK
|
|
635
|
+
* (ResourceGrant_grantee_shape, not representable here).
|
|
636
|
+
*/
|
|
637
|
+
granteeKey: string;
|
|
638
|
+
/**
|
|
639
|
+
* Per-type ordered level (core/grants.ts LEVELS).
|
|
640
|
+
*/
|
|
641
|
+
level: string;
|
|
642
|
+
/**
|
|
643
|
+
* "owner" (grant_access), "migration_public", "implied_attachment",
|
|
644
|
+
* "import", "operator". Audit only.
|
|
645
|
+
*/
|
|
646
|
+
source: string;
|
|
647
|
+
/**
|
|
648
|
+
* Principal who created/last changed it. Audit only: plain text, no FK
|
|
649
|
+
* (same convention as AgentRepository.authorizedById).
|
|
650
|
+
*/
|
|
651
|
+
grantedById: string | null;
|
|
652
|
+
createdAt: Date;
|
|
653
|
+
updatedAt: Date;
|
|
654
|
+
}, ExtArgs["result"]["resourceGrant"]>;
|
|
655
|
+
composites: {};
|
|
656
|
+
};
|
|
657
|
+
export type ResourceGrantGetPayload<S extends boolean | null | undefined | ResourceGrantDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload, S>;
|
|
658
|
+
export type ResourceGrantCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ResourceGrantFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
659
|
+
select?: ResourceGrantCountAggregateInputType | true;
|
|
660
|
+
};
|
|
661
|
+
export interface ResourceGrantDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
662
|
+
[K: symbol]: {
|
|
663
|
+
types: Prisma.TypeMap<ExtArgs>['model']['ResourceGrant'];
|
|
664
|
+
meta: {
|
|
665
|
+
name: 'ResourceGrant';
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
/**
|
|
669
|
+
* Find zero or one ResourceGrant that matches the filter.
|
|
670
|
+
* @param {ResourceGrantFindUniqueArgs} args - Arguments to find a ResourceGrant
|
|
671
|
+
* @example
|
|
672
|
+
* // Get one ResourceGrant
|
|
673
|
+
* const resourceGrant = await prisma.resourceGrant.findUnique({
|
|
674
|
+
* where: {
|
|
675
|
+
* // ... provide filter here
|
|
676
|
+
* }
|
|
677
|
+
* })
|
|
678
|
+
*/
|
|
679
|
+
findUnique<T extends ResourceGrantFindUniqueArgs>(args: Prisma.SelectSubset<T, ResourceGrantFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ResourceGrantClient<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
680
|
+
/**
|
|
681
|
+
* Find one ResourceGrant that matches the filter or throw an error with `error.code='P2025'`
|
|
682
|
+
* if no matches were found.
|
|
683
|
+
* @param {ResourceGrantFindUniqueOrThrowArgs} args - Arguments to find a ResourceGrant
|
|
684
|
+
* @example
|
|
685
|
+
* // Get one ResourceGrant
|
|
686
|
+
* const resourceGrant = await prisma.resourceGrant.findUniqueOrThrow({
|
|
687
|
+
* where: {
|
|
688
|
+
* // ... provide filter here
|
|
689
|
+
* }
|
|
690
|
+
* })
|
|
691
|
+
*/
|
|
692
|
+
findUniqueOrThrow<T extends ResourceGrantFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ResourceGrantFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ResourceGrantClient<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
693
|
+
/**
|
|
694
|
+
* Find the first ResourceGrant that matches the filter.
|
|
695
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
696
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
697
|
+
* @param {ResourceGrantFindFirstArgs} args - Arguments to find a ResourceGrant
|
|
698
|
+
* @example
|
|
699
|
+
* // Get one ResourceGrant
|
|
700
|
+
* const resourceGrant = await prisma.resourceGrant.findFirst({
|
|
701
|
+
* where: {
|
|
702
|
+
* // ... provide filter here
|
|
703
|
+
* }
|
|
704
|
+
* })
|
|
705
|
+
*/
|
|
706
|
+
findFirst<T extends ResourceGrantFindFirstArgs>(args?: Prisma.SelectSubset<T, ResourceGrantFindFirstArgs<ExtArgs>>): Prisma.Prisma__ResourceGrantClient<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
707
|
+
/**
|
|
708
|
+
* Find the first ResourceGrant that matches the filter or
|
|
709
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
710
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
711
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
712
|
+
* @param {ResourceGrantFindFirstOrThrowArgs} args - Arguments to find a ResourceGrant
|
|
713
|
+
* @example
|
|
714
|
+
* // Get one ResourceGrant
|
|
715
|
+
* const resourceGrant = await prisma.resourceGrant.findFirstOrThrow({
|
|
716
|
+
* where: {
|
|
717
|
+
* // ... provide filter here
|
|
718
|
+
* }
|
|
719
|
+
* })
|
|
720
|
+
*/
|
|
721
|
+
findFirstOrThrow<T extends ResourceGrantFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ResourceGrantFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ResourceGrantClient<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
722
|
+
/**
|
|
723
|
+
* Find zero or more ResourceGrants that matches the filter.
|
|
724
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
725
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
726
|
+
* @param {ResourceGrantFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
727
|
+
* @example
|
|
728
|
+
* // Get all ResourceGrants
|
|
729
|
+
* const resourceGrants = await prisma.resourceGrant.findMany()
|
|
730
|
+
*
|
|
731
|
+
* // Get first 10 ResourceGrants
|
|
732
|
+
* const resourceGrants = await prisma.resourceGrant.findMany({ take: 10 })
|
|
733
|
+
*
|
|
734
|
+
* // Only select the `id`
|
|
735
|
+
* const resourceGrantWithIdOnly = await prisma.resourceGrant.findMany({ select: { id: true } })
|
|
736
|
+
*
|
|
737
|
+
*/
|
|
738
|
+
findMany<T extends ResourceGrantFindManyArgs>(args?: Prisma.SelectSubset<T, ResourceGrantFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
739
|
+
/**
|
|
740
|
+
* Create a ResourceGrant.
|
|
741
|
+
* @param {ResourceGrantCreateArgs} args - Arguments to create a ResourceGrant.
|
|
742
|
+
* @example
|
|
743
|
+
* // Create one ResourceGrant
|
|
744
|
+
* const ResourceGrant = await prisma.resourceGrant.create({
|
|
745
|
+
* data: {
|
|
746
|
+
* // ... data to create a ResourceGrant
|
|
747
|
+
* }
|
|
748
|
+
* })
|
|
749
|
+
*
|
|
750
|
+
*/
|
|
751
|
+
create<T extends ResourceGrantCreateArgs>(args: Prisma.SelectSubset<T, ResourceGrantCreateArgs<ExtArgs>>): Prisma.Prisma__ResourceGrantClient<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
752
|
+
/**
|
|
753
|
+
* Create many ResourceGrants.
|
|
754
|
+
* @param {ResourceGrantCreateManyArgs} args - Arguments to create many ResourceGrants.
|
|
755
|
+
* @example
|
|
756
|
+
* // Create many ResourceGrants
|
|
757
|
+
* const resourceGrant = await prisma.resourceGrant.createMany({
|
|
758
|
+
* data: [
|
|
759
|
+
* // ... provide data here
|
|
760
|
+
* ]
|
|
761
|
+
* })
|
|
762
|
+
*
|
|
763
|
+
*/
|
|
764
|
+
createMany<T extends ResourceGrantCreateManyArgs>(args?: Prisma.SelectSubset<T, ResourceGrantCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
765
|
+
/**
|
|
766
|
+
* Create many ResourceGrants and returns the data saved in the database.
|
|
767
|
+
* @param {ResourceGrantCreateManyAndReturnArgs} args - Arguments to create many ResourceGrants.
|
|
768
|
+
* @example
|
|
769
|
+
* // Create many ResourceGrants
|
|
770
|
+
* const resourceGrant = await prisma.resourceGrant.createManyAndReturn({
|
|
771
|
+
* data: [
|
|
772
|
+
* // ... provide data here
|
|
773
|
+
* ]
|
|
774
|
+
* })
|
|
775
|
+
*
|
|
776
|
+
* // Create many ResourceGrants and only return the `id`
|
|
777
|
+
* const resourceGrantWithIdOnly = await prisma.resourceGrant.createManyAndReturn({
|
|
778
|
+
* select: { id: true },
|
|
779
|
+
* data: [
|
|
780
|
+
* // ... provide data here
|
|
781
|
+
* ]
|
|
782
|
+
* })
|
|
783
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
784
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
785
|
+
*
|
|
786
|
+
*/
|
|
787
|
+
createManyAndReturn<T extends ResourceGrantCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ResourceGrantCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
788
|
+
/**
|
|
789
|
+
* Delete a ResourceGrant.
|
|
790
|
+
* @param {ResourceGrantDeleteArgs} args - Arguments to delete one ResourceGrant.
|
|
791
|
+
* @example
|
|
792
|
+
* // Delete one ResourceGrant
|
|
793
|
+
* const ResourceGrant = await prisma.resourceGrant.delete({
|
|
794
|
+
* where: {
|
|
795
|
+
* // ... filter to delete one ResourceGrant
|
|
796
|
+
* }
|
|
797
|
+
* })
|
|
798
|
+
*
|
|
799
|
+
*/
|
|
800
|
+
delete<T extends ResourceGrantDeleteArgs>(args: Prisma.SelectSubset<T, ResourceGrantDeleteArgs<ExtArgs>>): Prisma.Prisma__ResourceGrantClient<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
801
|
+
/**
|
|
802
|
+
* Update one ResourceGrant.
|
|
803
|
+
* @param {ResourceGrantUpdateArgs} args - Arguments to update one ResourceGrant.
|
|
804
|
+
* @example
|
|
805
|
+
* // Update one ResourceGrant
|
|
806
|
+
* const resourceGrant = await prisma.resourceGrant.update({
|
|
807
|
+
* where: {
|
|
808
|
+
* // ... provide filter here
|
|
809
|
+
* },
|
|
810
|
+
* data: {
|
|
811
|
+
* // ... provide data here
|
|
812
|
+
* }
|
|
813
|
+
* })
|
|
814
|
+
*
|
|
815
|
+
*/
|
|
816
|
+
update<T extends ResourceGrantUpdateArgs>(args: Prisma.SelectSubset<T, ResourceGrantUpdateArgs<ExtArgs>>): Prisma.Prisma__ResourceGrantClient<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
817
|
+
/**
|
|
818
|
+
* Delete zero or more ResourceGrants.
|
|
819
|
+
* @param {ResourceGrantDeleteManyArgs} args - Arguments to filter ResourceGrants to delete.
|
|
820
|
+
* @example
|
|
821
|
+
* // Delete a few ResourceGrants
|
|
822
|
+
* const { count } = await prisma.resourceGrant.deleteMany({
|
|
823
|
+
* where: {
|
|
824
|
+
* // ... provide filter here
|
|
825
|
+
* }
|
|
826
|
+
* })
|
|
827
|
+
*
|
|
828
|
+
*/
|
|
829
|
+
deleteMany<T extends ResourceGrantDeleteManyArgs>(args?: Prisma.SelectSubset<T, ResourceGrantDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
830
|
+
/**
|
|
831
|
+
* Update zero or more ResourceGrants.
|
|
832
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
833
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
834
|
+
* @param {ResourceGrantUpdateManyArgs} args - Arguments to update one or more rows.
|
|
835
|
+
* @example
|
|
836
|
+
* // Update many ResourceGrants
|
|
837
|
+
* const resourceGrant = await prisma.resourceGrant.updateMany({
|
|
838
|
+
* where: {
|
|
839
|
+
* // ... provide filter here
|
|
840
|
+
* },
|
|
841
|
+
* data: {
|
|
842
|
+
* // ... provide data here
|
|
843
|
+
* }
|
|
844
|
+
* })
|
|
845
|
+
*
|
|
846
|
+
*/
|
|
847
|
+
updateMany<T extends ResourceGrantUpdateManyArgs>(args: Prisma.SelectSubset<T, ResourceGrantUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
848
|
+
/**
|
|
849
|
+
* Update zero or more ResourceGrants and returns the data updated in the database.
|
|
850
|
+
* @param {ResourceGrantUpdateManyAndReturnArgs} args - Arguments to update many ResourceGrants.
|
|
851
|
+
* @example
|
|
852
|
+
* // Update many ResourceGrants
|
|
853
|
+
* const resourceGrant = await prisma.resourceGrant.updateManyAndReturn({
|
|
854
|
+
* where: {
|
|
855
|
+
* // ... provide filter here
|
|
856
|
+
* },
|
|
857
|
+
* data: [
|
|
858
|
+
* // ... provide data here
|
|
859
|
+
* ]
|
|
860
|
+
* })
|
|
861
|
+
*
|
|
862
|
+
* // Update zero or more ResourceGrants and only return the `id`
|
|
863
|
+
* const resourceGrantWithIdOnly = await prisma.resourceGrant.updateManyAndReturn({
|
|
864
|
+
* select: { id: true },
|
|
865
|
+
* where: {
|
|
866
|
+
* // ... provide filter here
|
|
867
|
+
* },
|
|
868
|
+
* data: [
|
|
869
|
+
* // ... provide data here
|
|
870
|
+
* ]
|
|
871
|
+
* })
|
|
872
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
873
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
874
|
+
*
|
|
875
|
+
*/
|
|
876
|
+
updateManyAndReturn<T extends ResourceGrantUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ResourceGrantUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
877
|
+
/**
|
|
878
|
+
* Create or update one ResourceGrant.
|
|
879
|
+
* @param {ResourceGrantUpsertArgs} args - Arguments to update or create a ResourceGrant.
|
|
880
|
+
* @example
|
|
881
|
+
* // Update or create a ResourceGrant
|
|
882
|
+
* const resourceGrant = await prisma.resourceGrant.upsert({
|
|
883
|
+
* create: {
|
|
884
|
+
* // ... data to create a ResourceGrant
|
|
885
|
+
* },
|
|
886
|
+
* update: {
|
|
887
|
+
* // ... in case it already exists, update
|
|
888
|
+
* },
|
|
889
|
+
* where: {
|
|
890
|
+
* // ... the filter for the ResourceGrant we want to update
|
|
891
|
+
* }
|
|
892
|
+
* })
|
|
893
|
+
*/
|
|
894
|
+
upsert<T extends ResourceGrantUpsertArgs>(args: Prisma.SelectSubset<T, ResourceGrantUpsertArgs<ExtArgs>>): Prisma.Prisma__ResourceGrantClient<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
895
|
+
/**
|
|
896
|
+
* Count the number of ResourceGrants.
|
|
897
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
898
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
899
|
+
* @param {ResourceGrantCountArgs} args - Arguments to filter ResourceGrants to count.
|
|
900
|
+
* @example
|
|
901
|
+
* // Count the number of ResourceGrants
|
|
902
|
+
* const count = await prisma.resourceGrant.count({
|
|
903
|
+
* where: {
|
|
904
|
+
* // ... the filter for the ResourceGrants we want to count
|
|
905
|
+
* }
|
|
906
|
+
* })
|
|
907
|
+
**/
|
|
908
|
+
count<T extends ResourceGrantCountArgs>(args?: Prisma.Subset<T, ResourceGrantCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ResourceGrantCountAggregateOutputType> : number>;
|
|
909
|
+
/**
|
|
910
|
+
* Allows you to perform aggregations operations on a ResourceGrant.
|
|
911
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
912
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
913
|
+
* @param {ResourceGrantAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
914
|
+
* @example
|
|
915
|
+
* // Ordered by age ascending
|
|
916
|
+
* // Where email contains prisma.io
|
|
917
|
+
* // Limited to the 10 users
|
|
918
|
+
* const aggregations = await prisma.user.aggregate({
|
|
919
|
+
* _avg: {
|
|
920
|
+
* age: true,
|
|
921
|
+
* },
|
|
922
|
+
* where: {
|
|
923
|
+
* email: {
|
|
924
|
+
* contains: "prisma.io",
|
|
925
|
+
* },
|
|
926
|
+
* },
|
|
927
|
+
* orderBy: {
|
|
928
|
+
* age: "asc",
|
|
929
|
+
* },
|
|
930
|
+
* take: 10,
|
|
931
|
+
* })
|
|
932
|
+
**/
|
|
933
|
+
aggregate<T extends ResourceGrantAggregateArgs>(args: Prisma.Subset<T, ResourceGrantAggregateArgs>): Prisma.PrismaPromise<GetResourceGrantAggregateType<T>>;
|
|
934
|
+
/**
|
|
935
|
+
* Group by ResourceGrant.
|
|
936
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
937
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
938
|
+
* @param {ResourceGrantGroupByArgs} args - Group by arguments.
|
|
939
|
+
* @example
|
|
940
|
+
* // Group by city, order by createdAt, get count
|
|
941
|
+
* const result = await prisma.user.groupBy({
|
|
942
|
+
* by: ['city', 'createdAt'],
|
|
943
|
+
* orderBy: {
|
|
944
|
+
* createdAt: true
|
|
945
|
+
* },
|
|
946
|
+
* _count: {
|
|
947
|
+
* _all: true
|
|
948
|
+
* },
|
|
949
|
+
* })
|
|
950
|
+
*
|
|
951
|
+
**/
|
|
952
|
+
groupBy<T extends ResourceGrantGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
953
|
+
orderBy: ResourceGrantGroupByArgs['orderBy'];
|
|
954
|
+
} : {
|
|
955
|
+
orderBy?: ResourceGrantGroupByArgs['orderBy'];
|
|
956
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
957
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
958
|
+
Error,
|
|
959
|
+
'Field ',
|
|
960
|
+
P,
|
|
961
|
+
` in "having" needs to be provided in "by"`
|
|
962
|
+
];
|
|
963
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
964
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
965
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
966
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
967
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
968
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
969
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ResourceGrantGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetResourceGrantGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
970
|
+
/**
|
|
971
|
+
* Fields of the ResourceGrant model
|
|
972
|
+
*/
|
|
973
|
+
readonly fields: ResourceGrantFieldRefs;
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* The delegate class that acts as a "Promise-like" for ResourceGrant.
|
|
977
|
+
* Why is this prefixed with `Prisma__`?
|
|
978
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
979
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
980
|
+
*/
|
|
981
|
+
export interface Prisma__ResourceGrantClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
982
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
983
|
+
granteePrincipal<T extends Prisma.ResourceGrant$granteePrincipalArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ResourceGrant$granteePrincipalArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
984
|
+
/**
|
|
985
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
986
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
987
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
988
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
989
|
+
*/
|
|
990
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
|
|
991
|
+
/**
|
|
992
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
993
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
994
|
+
* @returns A Promise for the completion of the callback.
|
|
995
|
+
*/
|
|
996
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
997
|
+
/**
|
|
998
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
999
|
+
* resolved value cannot be modified from the callback.
|
|
1000
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1001
|
+
* @returns A Promise for the completion of the callback.
|
|
1002
|
+
*/
|
|
1003
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Fields of the ResourceGrant model
|
|
1007
|
+
*/
|
|
1008
|
+
export interface ResourceGrantFieldRefs {
|
|
1009
|
+
readonly id: Prisma.FieldRef<"ResourceGrant", 'String'>;
|
|
1010
|
+
readonly resourceType: Prisma.FieldRef<"ResourceGrant", 'String'>;
|
|
1011
|
+
readonly resourceId: Prisma.FieldRef<"ResourceGrant", 'String'>;
|
|
1012
|
+
readonly granteeKind: Prisma.FieldRef<"ResourceGrant", 'String'>;
|
|
1013
|
+
readonly granteePrincipalId: Prisma.FieldRef<"ResourceGrant", 'String'>;
|
|
1014
|
+
readonly granteeKey: Prisma.FieldRef<"ResourceGrant", 'String'>;
|
|
1015
|
+
readonly level: Prisma.FieldRef<"ResourceGrant", 'String'>;
|
|
1016
|
+
readonly source: Prisma.FieldRef<"ResourceGrant", 'String'>;
|
|
1017
|
+
readonly grantedById: Prisma.FieldRef<"ResourceGrant", 'String'>;
|
|
1018
|
+
readonly createdAt: Prisma.FieldRef<"ResourceGrant", 'DateTime'>;
|
|
1019
|
+
readonly updatedAt: Prisma.FieldRef<"ResourceGrant", 'DateTime'>;
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* ResourceGrant findUnique
|
|
1023
|
+
*/
|
|
1024
|
+
export type ResourceGrantFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1025
|
+
/**
|
|
1026
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1027
|
+
*/
|
|
1028
|
+
select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
|
|
1029
|
+
/**
|
|
1030
|
+
* Omit specific fields from the ResourceGrant
|
|
1031
|
+
*/
|
|
1032
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1033
|
+
/**
|
|
1034
|
+
* Choose, which related nodes to fetch as well
|
|
1035
|
+
*/
|
|
1036
|
+
include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Filter, which ResourceGrant to fetch.
|
|
1039
|
+
*/
|
|
1040
|
+
where: Prisma.ResourceGrantWhereUniqueInput;
|
|
1041
|
+
};
|
|
1042
|
+
/**
|
|
1043
|
+
* ResourceGrant findUniqueOrThrow
|
|
1044
|
+
*/
|
|
1045
|
+
export type ResourceGrantFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1046
|
+
/**
|
|
1047
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1048
|
+
*/
|
|
1049
|
+
select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
|
|
1050
|
+
/**
|
|
1051
|
+
* Omit specific fields from the ResourceGrant
|
|
1052
|
+
*/
|
|
1053
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1054
|
+
/**
|
|
1055
|
+
* Choose, which related nodes to fetch as well
|
|
1056
|
+
*/
|
|
1057
|
+
include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
|
|
1058
|
+
/**
|
|
1059
|
+
* Filter, which ResourceGrant to fetch.
|
|
1060
|
+
*/
|
|
1061
|
+
where: Prisma.ResourceGrantWhereUniqueInput;
|
|
1062
|
+
};
|
|
1063
|
+
/**
|
|
1064
|
+
* ResourceGrant findFirst
|
|
1065
|
+
*/
|
|
1066
|
+
export type ResourceGrantFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1067
|
+
/**
|
|
1068
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1069
|
+
*/
|
|
1070
|
+
select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
|
|
1071
|
+
/**
|
|
1072
|
+
* Omit specific fields from the ResourceGrant
|
|
1073
|
+
*/
|
|
1074
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1075
|
+
/**
|
|
1076
|
+
* Choose, which related nodes to fetch as well
|
|
1077
|
+
*/
|
|
1078
|
+
include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* Filter, which ResourceGrant to fetch.
|
|
1081
|
+
*/
|
|
1082
|
+
where?: Prisma.ResourceGrantWhereInput;
|
|
1083
|
+
/**
|
|
1084
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1085
|
+
*
|
|
1086
|
+
* Determine the order of ResourceGrants to fetch.
|
|
1087
|
+
*/
|
|
1088
|
+
orderBy?: Prisma.ResourceGrantOrderByWithRelationInput | Prisma.ResourceGrantOrderByWithRelationInput[];
|
|
1089
|
+
/**
|
|
1090
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1091
|
+
*
|
|
1092
|
+
* Sets the position for searching for ResourceGrants.
|
|
1093
|
+
*/
|
|
1094
|
+
cursor?: Prisma.ResourceGrantWhereUniqueInput;
|
|
1095
|
+
/**
|
|
1096
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1097
|
+
*
|
|
1098
|
+
* Take `±n` ResourceGrants from the position of the cursor.
|
|
1099
|
+
*/
|
|
1100
|
+
take?: number;
|
|
1101
|
+
/**
|
|
1102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1103
|
+
*
|
|
1104
|
+
* Skip the first `n` ResourceGrants.
|
|
1105
|
+
*/
|
|
1106
|
+
skip?: number;
|
|
1107
|
+
/**
|
|
1108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1109
|
+
*
|
|
1110
|
+
* Filter by unique combinations of ResourceGrants.
|
|
1111
|
+
*/
|
|
1112
|
+
distinct?: Prisma.ResourceGrantScalarFieldEnum | Prisma.ResourceGrantScalarFieldEnum[];
|
|
1113
|
+
};
|
|
1114
|
+
/**
|
|
1115
|
+
* ResourceGrant findFirstOrThrow
|
|
1116
|
+
*/
|
|
1117
|
+
export type ResourceGrantFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1118
|
+
/**
|
|
1119
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1120
|
+
*/
|
|
1121
|
+
select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
|
|
1122
|
+
/**
|
|
1123
|
+
* Omit specific fields from the ResourceGrant
|
|
1124
|
+
*/
|
|
1125
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1126
|
+
/**
|
|
1127
|
+
* Choose, which related nodes to fetch as well
|
|
1128
|
+
*/
|
|
1129
|
+
include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
|
|
1130
|
+
/**
|
|
1131
|
+
* Filter, which ResourceGrant to fetch.
|
|
1132
|
+
*/
|
|
1133
|
+
where?: Prisma.ResourceGrantWhereInput;
|
|
1134
|
+
/**
|
|
1135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1136
|
+
*
|
|
1137
|
+
* Determine the order of ResourceGrants to fetch.
|
|
1138
|
+
*/
|
|
1139
|
+
orderBy?: Prisma.ResourceGrantOrderByWithRelationInput | Prisma.ResourceGrantOrderByWithRelationInput[];
|
|
1140
|
+
/**
|
|
1141
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1142
|
+
*
|
|
1143
|
+
* Sets the position for searching for ResourceGrants.
|
|
1144
|
+
*/
|
|
1145
|
+
cursor?: Prisma.ResourceGrantWhereUniqueInput;
|
|
1146
|
+
/**
|
|
1147
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1148
|
+
*
|
|
1149
|
+
* Take `±n` ResourceGrants from the position of the cursor.
|
|
1150
|
+
*/
|
|
1151
|
+
take?: number;
|
|
1152
|
+
/**
|
|
1153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1154
|
+
*
|
|
1155
|
+
* Skip the first `n` ResourceGrants.
|
|
1156
|
+
*/
|
|
1157
|
+
skip?: number;
|
|
1158
|
+
/**
|
|
1159
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1160
|
+
*
|
|
1161
|
+
* Filter by unique combinations of ResourceGrants.
|
|
1162
|
+
*/
|
|
1163
|
+
distinct?: Prisma.ResourceGrantScalarFieldEnum | Prisma.ResourceGrantScalarFieldEnum[];
|
|
1164
|
+
};
|
|
1165
|
+
/**
|
|
1166
|
+
* ResourceGrant findMany
|
|
1167
|
+
*/
|
|
1168
|
+
export type ResourceGrantFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1169
|
+
/**
|
|
1170
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1171
|
+
*/
|
|
1172
|
+
select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
|
|
1173
|
+
/**
|
|
1174
|
+
* Omit specific fields from the ResourceGrant
|
|
1175
|
+
*/
|
|
1176
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1177
|
+
/**
|
|
1178
|
+
* Choose, which related nodes to fetch as well
|
|
1179
|
+
*/
|
|
1180
|
+
include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
|
|
1181
|
+
/**
|
|
1182
|
+
* Filter, which ResourceGrants to fetch.
|
|
1183
|
+
*/
|
|
1184
|
+
where?: Prisma.ResourceGrantWhereInput;
|
|
1185
|
+
/**
|
|
1186
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1187
|
+
*
|
|
1188
|
+
* Determine the order of ResourceGrants to fetch.
|
|
1189
|
+
*/
|
|
1190
|
+
orderBy?: Prisma.ResourceGrantOrderByWithRelationInput | Prisma.ResourceGrantOrderByWithRelationInput[];
|
|
1191
|
+
/**
|
|
1192
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1193
|
+
*
|
|
1194
|
+
* Sets the position for listing ResourceGrants.
|
|
1195
|
+
*/
|
|
1196
|
+
cursor?: Prisma.ResourceGrantWhereUniqueInput;
|
|
1197
|
+
/**
|
|
1198
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1199
|
+
*
|
|
1200
|
+
* Take `±n` ResourceGrants from the position of the cursor.
|
|
1201
|
+
*/
|
|
1202
|
+
take?: number;
|
|
1203
|
+
/**
|
|
1204
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1205
|
+
*
|
|
1206
|
+
* Skip the first `n` ResourceGrants.
|
|
1207
|
+
*/
|
|
1208
|
+
skip?: number;
|
|
1209
|
+
/**
|
|
1210
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1211
|
+
*
|
|
1212
|
+
* Filter by unique combinations of ResourceGrants.
|
|
1213
|
+
*/
|
|
1214
|
+
distinct?: Prisma.ResourceGrantScalarFieldEnum | Prisma.ResourceGrantScalarFieldEnum[];
|
|
1215
|
+
};
|
|
1216
|
+
/**
|
|
1217
|
+
* ResourceGrant create
|
|
1218
|
+
*/
|
|
1219
|
+
export type ResourceGrantCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1220
|
+
/**
|
|
1221
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1222
|
+
*/
|
|
1223
|
+
select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
|
|
1224
|
+
/**
|
|
1225
|
+
* Omit specific fields from the ResourceGrant
|
|
1226
|
+
*/
|
|
1227
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1228
|
+
/**
|
|
1229
|
+
* Choose, which related nodes to fetch as well
|
|
1230
|
+
*/
|
|
1231
|
+
include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* The data needed to create a ResourceGrant.
|
|
1234
|
+
*/
|
|
1235
|
+
data: Prisma.XOR<Prisma.ResourceGrantCreateInput, Prisma.ResourceGrantUncheckedCreateInput>;
|
|
1236
|
+
};
|
|
1237
|
+
/**
|
|
1238
|
+
* ResourceGrant createMany
|
|
1239
|
+
*/
|
|
1240
|
+
export type ResourceGrantCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1241
|
+
/**
|
|
1242
|
+
* The data used to create many ResourceGrants.
|
|
1243
|
+
*/
|
|
1244
|
+
data: Prisma.ResourceGrantCreateManyInput | Prisma.ResourceGrantCreateManyInput[];
|
|
1245
|
+
skipDuplicates?: boolean;
|
|
1246
|
+
};
|
|
1247
|
+
/**
|
|
1248
|
+
* ResourceGrant createManyAndReturn
|
|
1249
|
+
*/
|
|
1250
|
+
export type ResourceGrantCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1251
|
+
/**
|
|
1252
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1253
|
+
*/
|
|
1254
|
+
select?: Prisma.ResourceGrantSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1255
|
+
/**
|
|
1256
|
+
* Omit specific fields from the ResourceGrant
|
|
1257
|
+
*/
|
|
1258
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1259
|
+
/**
|
|
1260
|
+
* The data used to create many ResourceGrants.
|
|
1261
|
+
*/
|
|
1262
|
+
data: Prisma.ResourceGrantCreateManyInput | Prisma.ResourceGrantCreateManyInput[];
|
|
1263
|
+
skipDuplicates?: boolean;
|
|
1264
|
+
/**
|
|
1265
|
+
* Choose, which related nodes to fetch as well
|
|
1266
|
+
*/
|
|
1267
|
+
include?: Prisma.ResourceGrantIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* ResourceGrant update
|
|
1271
|
+
*/
|
|
1272
|
+
export type ResourceGrantUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1273
|
+
/**
|
|
1274
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1275
|
+
*/
|
|
1276
|
+
select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* Omit specific fields from the ResourceGrant
|
|
1279
|
+
*/
|
|
1280
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* Choose, which related nodes to fetch as well
|
|
1283
|
+
*/
|
|
1284
|
+
include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
|
|
1285
|
+
/**
|
|
1286
|
+
* The data needed to update a ResourceGrant.
|
|
1287
|
+
*/
|
|
1288
|
+
data: Prisma.XOR<Prisma.ResourceGrantUpdateInput, Prisma.ResourceGrantUncheckedUpdateInput>;
|
|
1289
|
+
/**
|
|
1290
|
+
* Choose, which ResourceGrant to update.
|
|
1291
|
+
*/
|
|
1292
|
+
where: Prisma.ResourceGrantWhereUniqueInput;
|
|
1293
|
+
};
|
|
1294
|
+
/**
|
|
1295
|
+
* ResourceGrant updateMany
|
|
1296
|
+
*/
|
|
1297
|
+
export type ResourceGrantUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1298
|
+
/**
|
|
1299
|
+
* The data used to update ResourceGrants.
|
|
1300
|
+
*/
|
|
1301
|
+
data: Prisma.XOR<Prisma.ResourceGrantUpdateManyMutationInput, Prisma.ResourceGrantUncheckedUpdateManyInput>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Filter which ResourceGrants to update
|
|
1304
|
+
*/
|
|
1305
|
+
where?: Prisma.ResourceGrantWhereInput;
|
|
1306
|
+
/**
|
|
1307
|
+
* Limit how many ResourceGrants to update.
|
|
1308
|
+
*/
|
|
1309
|
+
limit?: number;
|
|
1310
|
+
};
|
|
1311
|
+
/**
|
|
1312
|
+
* ResourceGrant updateManyAndReturn
|
|
1313
|
+
*/
|
|
1314
|
+
export type ResourceGrantUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1315
|
+
/**
|
|
1316
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1317
|
+
*/
|
|
1318
|
+
select?: Prisma.ResourceGrantSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1319
|
+
/**
|
|
1320
|
+
* Omit specific fields from the ResourceGrant
|
|
1321
|
+
*/
|
|
1322
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1323
|
+
/**
|
|
1324
|
+
* The data used to update ResourceGrants.
|
|
1325
|
+
*/
|
|
1326
|
+
data: Prisma.XOR<Prisma.ResourceGrantUpdateManyMutationInput, Prisma.ResourceGrantUncheckedUpdateManyInput>;
|
|
1327
|
+
/**
|
|
1328
|
+
* Filter which ResourceGrants to update
|
|
1329
|
+
*/
|
|
1330
|
+
where?: Prisma.ResourceGrantWhereInput;
|
|
1331
|
+
/**
|
|
1332
|
+
* Limit how many ResourceGrants to update.
|
|
1333
|
+
*/
|
|
1334
|
+
limit?: number;
|
|
1335
|
+
/**
|
|
1336
|
+
* Choose, which related nodes to fetch as well
|
|
1337
|
+
*/
|
|
1338
|
+
include?: Prisma.ResourceGrantIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1339
|
+
};
|
|
1340
|
+
/**
|
|
1341
|
+
* ResourceGrant upsert
|
|
1342
|
+
*/
|
|
1343
|
+
export type ResourceGrantUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1344
|
+
/**
|
|
1345
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1346
|
+
*/
|
|
1347
|
+
select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
|
|
1348
|
+
/**
|
|
1349
|
+
* Omit specific fields from the ResourceGrant
|
|
1350
|
+
*/
|
|
1351
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1352
|
+
/**
|
|
1353
|
+
* Choose, which related nodes to fetch as well
|
|
1354
|
+
*/
|
|
1355
|
+
include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
|
|
1356
|
+
/**
|
|
1357
|
+
* The filter to search for the ResourceGrant to update in case it exists.
|
|
1358
|
+
*/
|
|
1359
|
+
where: Prisma.ResourceGrantWhereUniqueInput;
|
|
1360
|
+
/**
|
|
1361
|
+
* In case the ResourceGrant found by the `where` argument doesn't exist, create a new ResourceGrant with this data.
|
|
1362
|
+
*/
|
|
1363
|
+
create: Prisma.XOR<Prisma.ResourceGrantCreateInput, Prisma.ResourceGrantUncheckedCreateInput>;
|
|
1364
|
+
/**
|
|
1365
|
+
* In case the ResourceGrant was found with the provided `where` argument, update it with this data.
|
|
1366
|
+
*/
|
|
1367
|
+
update: Prisma.XOR<Prisma.ResourceGrantUpdateInput, Prisma.ResourceGrantUncheckedUpdateInput>;
|
|
1368
|
+
};
|
|
1369
|
+
/**
|
|
1370
|
+
* ResourceGrant delete
|
|
1371
|
+
*/
|
|
1372
|
+
export type ResourceGrantDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1373
|
+
/**
|
|
1374
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1375
|
+
*/
|
|
1376
|
+
select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
|
|
1377
|
+
/**
|
|
1378
|
+
* Omit specific fields from the ResourceGrant
|
|
1379
|
+
*/
|
|
1380
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1381
|
+
/**
|
|
1382
|
+
* Choose, which related nodes to fetch as well
|
|
1383
|
+
*/
|
|
1384
|
+
include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
|
|
1385
|
+
/**
|
|
1386
|
+
* Filter which ResourceGrant to delete.
|
|
1387
|
+
*/
|
|
1388
|
+
where: Prisma.ResourceGrantWhereUniqueInput;
|
|
1389
|
+
};
|
|
1390
|
+
/**
|
|
1391
|
+
* ResourceGrant deleteMany
|
|
1392
|
+
*/
|
|
1393
|
+
export type ResourceGrantDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1394
|
+
/**
|
|
1395
|
+
* Filter which ResourceGrants to delete
|
|
1396
|
+
*/
|
|
1397
|
+
where?: Prisma.ResourceGrantWhereInput;
|
|
1398
|
+
/**
|
|
1399
|
+
* Limit how many ResourceGrants to delete.
|
|
1400
|
+
*/
|
|
1401
|
+
limit?: number;
|
|
1402
|
+
};
|
|
1403
|
+
/**
|
|
1404
|
+
* ResourceGrant.granteePrincipal
|
|
1405
|
+
*/
|
|
1406
|
+
export type ResourceGrant$granteePrincipalArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1407
|
+
/**
|
|
1408
|
+
* Select specific fields to fetch from the Principal
|
|
1409
|
+
*/
|
|
1410
|
+
select?: Prisma.PrincipalSelect<ExtArgs> | null;
|
|
1411
|
+
/**
|
|
1412
|
+
* Omit specific fields from the Principal
|
|
1413
|
+
*/
|
|
1414
|
+
omit?: Prisma.PrincipalOmit<ExtArgs> | null;
|
|
1415
|
+
/**
|
|
1416
|
+
* Choose, which related nodes to fetch as well
|
|
1417
|
+
*/
|
|
1418
|
+
include?: Prisma.PrincipalInclude<ExtArgs> | null;
|
|
1419
|
+
where?: Prisma.PrincipalWhereInput;
|
|
1420
|
+
};
|
|
1421
|
+
/**
|
|
1422
|
+
* ResourceGrant without action
|
|
1423
|
+
*/
|
|
1424
|
+
export type ResourceGrantDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1425
|
+
/**
|
|
1426
|
+
* Select specific fields to fetch from the ResourceGrant
|
|
1427
|
+
*/
|
|
1428
|
+
select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
|
|
1429
|
+
/**
|
|
1430
|
+
* Omit specific fields from the ResourceGrant
|
|
1431
|
+
*/
|
|
1432
|
+
omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
|
|
1433
|
+
/**
|
|
1434
|
+
* Choose, which related nodes to fetch as well
|
|
1435
|
+
*/
|
|
1436
|
+
include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
|
|
1437
|
+
};
|