@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,1403 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model AgentTool
|
|
5
|
+
* Phase 3: explicit many-to-many join between Agent and Tool.
|
|
6
|
+
* Phase 6: per-attachment capability scoping (OWASP LLM08 fix — Excessive
|
|
7
|
+
* Agency). Empty array = no access to that resource class; a tool must be
|
|
8
|
+
* explicitly granted secrets/datastore-prefixes/hosts at attach time. A
|
|
9
|
+
* literal "*" element in allowedHosts lifts the fetch allowlist entirely
|
|
10
|
+
* (existing SSRF protection against private/link-local addresses still
|
|
11
|
+
* applies) — the back-compat escape hatch for pre-existing attachments and
|
|
12
|
+
* deliberate full-web-access tools. See src/sandbox/tool-capabilities.ts.
|
|
13
|
+
*/
|
|
14
|
+
export type AgentToolModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentToolPayload>;
|
|
15
|
+
export type AggregateAgentTool = {
|
|
16
|
+
_count: AgentToolCountAggregateOutputType | null;
|
|
17
|
+
_min: AgentToolMinAggregateOutputType | null;
|
|
18
|
+
_max: AgentToolMaxAggregateOutputType | null;
|
|
19
|
+
};
|
|
20
|
+
export type AgentToolMinAggregateOutputType = {
|
|
21
|
+
agentId: string | null;
|
|
22
|
+
toolId: string | null;
|
|
23
|
+
attachedById: string | null;
|
|
24
|
+
capabilitiesGrantedById: string | null;
|
|
25
|
+
};
|
|
26
|
+
export type AgentToolMaxAggregateOutputType = {
|
|
27
|
+
agentId: string | null;
|
|
28
|
+
toolId: string | null;
|
|
29
|
+
attachedById: string | null;
|
|
30
|
+
capabilitiesGrantedById: string | null;
|
|
31
|
+
};
|
|
32
|
+
export type AgentToolCountAggregateOutputType = {
|
|
33
|
+
agentId: number;
|
|
34
|
+
toolId: number;
|
|
35
|
+
allowedSecrets: number;
|
|
36
|
+
allowedDatastorePrefixes: number;
|
|
37
|
+
allowedHosts: number;
|
|
38
|
+
allowedSharedDatastorePrefixes: number;
|
|
39
|
+
attachedById: number;
|
|
40
|
+
capabilitiesGrantedById: number;
|
|
41
|
+
_all: number;
|
|
42
|
+
};
|
|
43
|
+
export type AgentToolMinAggregateInputType = {
|
|
44
|
+
agentId?: true;
|
|
45
|
+
toolId?: true;
|
|
46
|
+
attachedById?: true;
|
|
47
|
+
capabilitiesGrantedById?: true;
|
|
48
|
+
};
|
|
49
|
+
export type AgentToolMaxAggregateInputType = {
|
|
50
|
+
agentId?: true;
|
|
51
|
+
toolId?: true;
|
|
52
|
+
attachedById?: true;
|
|
53
|
+
capabilitiesGrantedById?: true;
|
|
54
|
+
};
|
|
55
|
+
export type AgentToolCountAggregateInputType = {
|
|
56
|
+
agentId?: true;
|
|
57
|
+
toolId?: true;
|
|
58
|
+
allowedSecrets?: true;
|
|
59
|
+
allowedDatastorePrefixes?: true;
|
|
60
|
+
allowedHosts?: true;
|
|
61
|
+
allowedSharedDatastorePrefixes?: true;
|
|
62
|
+
attachedById?: true;
|
|
63
|
+
capabilitiesGrantedById?: true;
|
|
64
|
+
_all?: true;
|
|
65
|
+
};
|
|
66
|
+
export type AgentToolAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
67
|
+
/**
|
|
68
|
+
* Filter which AgentTool to aggregate.
|
|
69
|
+
*/
|
|
70
|
+
where?: Prisma.AgentToolWhereInput;
|
|
71
|
+
/**
|
|
72
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
73
|
+
*
|
|
74
|
+
* Determine the order of AgentTools to fetch.
|
|
75
|
+
*/
|
|
76
|
+
orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[];
|
|
77
|
+
/**
|
|
78
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
79
|
+
*
|
|
80
|
+
* Sets the start position
|
|
81
|
+
*/
|
|
82
|
+
cursor?: Prisma.AgentToolWhereUniqueInput;
|
|
83
|
+
/**
|
|
84
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
85
|
+
*
|
|
86
|
+
* Take `±n` AgentTools from the position of the cursor.
|
|
87
|
+
*/
|
|
88
|
+
take?: number;
|
|
89
|
+
/**
|
|
90
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
91
|
+
*
|
|
92
|
+
* Skip the first `n` AgentTools.
|
|
93
|
+
*/
|
|
94
|
+
skip?: number;
|
|
95
|
+
/**
|
|
96
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
97
|
+
*
|
|
98
|
+
* Count returned AgentTools
|
|
99
|
+
**/
|
|
100
|
+
_count?: true | AgentToolCountAggregateInputType;
|
|
101
|
+
/**
|
|
102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
103
|
+
*
|
|
104
|
+
* Select which fields to find the minimum value
|
|
105
|
+
**/
|
|
106
|
+
_min?: AgentToolMinAggregateInputType;
|
|
107
|
+
/**
|
|
108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
109
|
+
*
|
|
110
|
+
* Select which fields to find the maximum value
|
|
111
|
+
**/
|
|
112
|
+
_max?: AgentToolMaxAggregateInputType;
|
|
113
|
+
};
|
|
114
|
+
export type GetAgentToolAggregateType<T extends AgentToolAggregateArgs> = {
|
|
115
|
+
[P in keyof T & keyof AggregateAgentTool]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAgentTool[P]> : Prisma.GetScalarType<T[P], AggregateAgentTool[P]>;
|
|
116
|
+
};
|
|
117
|
+
export type AgentToolGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
118
|
+
where?: Prisma.AgentToolWhereInput;
|
|
119
|
+
orderBy?: Prisma.AgentToolOrderByWithAggregationInput | Prisma.AgentToolOrderByWithAggregationInput[];
|
|
120
|
+
by: Prisma.AgentToolScalarFieldEnum[] | Prisma.AgentToolScalarFieldEnum;
|
|
121
|
+
having?: Prisma.AgentToolScalarWhereWithAggregatesInput;
|
|
122
|
+
take?: number;
|
|
123
|
+
skip?: number;
|
|
124
|
+
_count?: AgentToolCountAggregateInputType | true;
|
|
125
|
+
_min?: AgentToolMinAggregateInputType;
|
|
126
|
+
_max?: AgentToolMaxAggregateInputType;
|
|
127
|
+
};
|
|
128
|
+
export type AgentToolGroupByOutputType = {
|
|
129
|
+
agentId: string;
|
|
130
|
+
toolId: string;
|
|
131
|
+
allowedSecrets: runtime.JsonValue;
|
|
132
|
+
allowedDatastorePrefixes: runtime.JsonValue;
|
|
133
|
+
allowedHosts: runtime.JsonValue;
|
|
134
|
+
allowedSharedDatastorePrefixes: runtime.JsonValue;
|
|
135
|
+
attachedById: string | null;
|
|
136
|
+
capabilitiesGrantedById: string | null;
|
|
137
|
+
_count: AgentToolCountAggregateOutputType | null;
|
|
138
|
+
_min: AgentToolMinAggregateOutputType | null;
|
|
139
|
+
_max: AgentToolMaxAggregateOutputType | null;
|
|
140
|
+
};
|
|
141
|
+
export type GetAgentToolGroupByPayload<T extends AgentToolGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AgentToolGroupByOutputType, T['by']> & {
|
|
142
|
+
[P in ((keyof T) & (keyof AgentToolGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AgentToolGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AgentToolGroupByOutputType[P]>;
|
|
143
|
+
}>>;
|
|
144
|
+
export type AgentToolWhereInput = {
|
|
145
|
+
AND?: Prisma.AgentToolWhereInput | Prisma.AgentToolWhereInput[];
|
|
146
|
+
OR?: Prisma.AgentToolWhereInput[];
|
|
147
|
+
NOT?: Prisma.AgentToolWhereInput | Prisma.AgentToolWhereInput[];
|
|
148
|
+
agentId?: Prisma.StringFilter<"AgentTool"> | string;
|
|
149
|
+
toolId?: Prisma.StringFilter<"AgentTool"> | string;
|
|
150
|
+
allowedSecrets?: Prisma.JsonFilter<"AgentTool">;
|
|
151
|
+
allowedDatastorePrefixes?: Prisma.JsonFilter<"AgentTool">;
|
|
152
|
+
allowedHosts?: Prisma.JsonFilter<"AgentTool">;
|
|
153
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonFilter<"AgentTool">;
|
|
154
|
+
attachedById?: Prisma.StringNullableFilter<"AgentTool"> | string | null;
|
|
155
|
+
capabilitiesGrantedById?: Prisma.StringNullableFilter<"AgentTool"> | string | null;
|
|
156
|
+
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
|
|
157
|
+
tool?: Prisma.XOR<Prisma.ToolScalarRelationFilter, Prisma.ToolWhereInput>;
|
|
158
|
+
};
|
|
159
|
+
export type AgentToolOrderByWithRelationInput = {
|
|
160
|
+
agentId?: Prisma.SortOrder;
|
|
161
|
+
toolId?: Prisma.SortOrder;
|
|
162
|
+
allowedSecrets?: Prisma.SortOrder;
|
|
163
|
+
allowedDatastorePrefixes?: Prisma.SortOrder;
|
|
164
|
+
allowedHosts?: Prisma.SortOrder;
|
|
165
|
+
allowedSharedDatastorePrefixes?: Prisma.SortOrder;
|
|
166
|
+
attachedById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
167
|
+
capabilitiesGrantedById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
168
|
+
agent?: Prisma.AgentOrderByWithRelationInput;
|
|
169
|
+
tool?: Prisma.ToolOrderByWithRelationInput;
|
|
170
|
+
};
|
|
171
|
+
export type AgentToolWhereUniqueInput = Prisma.AtLeast<{
|
|
172
|
+
agentId_toolId?: Prisma.AgentToolAgentIdToolIdCompoundUniqueInput;
|
|
173
|
+
AND?: Prisma.AgentToolWhereInput | Prisma.AgentToolWhereInput[];
|
|
174
|
+
OR?: Prisma.AgentToolWhereInput[];
|
|
175
|
+
NOT?: Prisma.AgentToolWhereInput | Prisma.AgentToolWhereInput[];
|
|
176
|
+
agentId?: Prisma.StringFilter<"AgentTool"> | string;
|
|
177
|
+
toolId?: Prisma.StringFilter<"AgentTool"> | string;
|
|
178
|
+
allowedSecrets?: Prisma.JsonFilter<"AgentTool">;
|
|
179
|
+
allowedDatastorePrefixes?: Prisma.JsonFilter<"AgentTool">;
|
|
180
|
+
allowedHosts?: Prisma.JsonFilter<"AgentTool">;
|
|
181
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonFilter<"AgentTool">;
|
|
182
|
+
attachedById?: Prisma.StringNullableFilter<"AgentTool"> | string | null;
|
|
183
|
+
capabilitiesGrantedById?: Prisma.StringNullableFilter<"AgentTool"> | string | null;
|
|
184
|
+
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
|
|
185
|
+
tool?: Prisma.XOR<Prisma.ToolScalarRelationFilter, Prisma.ToolWhereInput>;
|
|
186
|
+
}, "agentId_toolId">;
|
|
187
|
+
export type AgentToolOrderByWithAggregationInput = {
|
|
188
|
+
agentId?: Prisma.SortOrder;
|
|
189
|
+
toolId?: Prisma.SortOrder;
|
|
190
|
+
allowedSecrets?: Prisma.SortOrder;
|
|
191
|
+
allowedDatastorePrefixes?: Prisma.SortOrder;
|
|
192
|
+
allowedHosts?: Prisma.SortOrder;
|
|
193
|
+
allowedSharedDatastorePrefixes?: Prisma.SortOrder;
|
|
194
|
+
attachedById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
195
|
+
capabilitiesGrantedById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
196
|
+
_count?: Prisma.AgentToolCountOrderByAggregateInput;
|
|
197
|
+
_max?: Prisma.AgentToolMaxOrderByAggregateInput;
|
|
198
|
+
_min?: Prisma.AgentToolMinOrderByAggregateInput;
|
|
199
|
+
};
|
|
200
|
+
export type AgentToolScalarWhereWithAggregatesInput = {
|
|
201
|
+
AND?: Prisma.AgentToolScalarWhereWithAggregatesInput | Prisma.AgentToolScalarWhereWithAggregatesInput[];
|
|
202
|
+
OR?: Prisma.AgentToolScalarWhereWithAggregatesInput[];
|
|
203
|
+
NOT?: Prisma.AgentToolScalarWhereWithAggregatesInput | Prisma.AgentToolScalarWhereWithAggregatesInput[];
|
|
204
|
+
agentId?: Prisma.StringWithAggregatesFilter<"AgentTool"> | string;
|
|
205
|
+
toolId?: Prisma.StringWithAggregatesFilter<"AgentTool"> | string;
|
|
206
|
+
allowedSecrets?: Prisma.JsonWithAggregatesFilter<"AgentTool">;
|
|
207
|
+
allowedDatastorePrefixes?: Prisma.JsonWithAggregatesFilter<"AgentTool">;
|
|
208
|
+
allowedHosts?: Prisma.JsonWithAggregatesFilter<"AgentTool">;
|
|
209
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonWithAggregatesFilter<"AgentTool">;
|
|
210
|
+
attachedById?: Prisma.StringNullableWithAggregatesFilter<"AgentTool"> | string | null;
|
|
211
|
+
capabilitiesGrantedById?: Prisma.StringNullableWithAggregatesFilter<"AgentTool"> | string | null;
|
|
212
|
+
};
|
|
213
|
+
export type AgentToolCreateInput = {
|
|
214
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
215
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
216
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
217
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
218
|
+
attachedById?: string | null;
|
|
219
|
+
capabilitiesGrantedById?: string | null;
|
|
220
|
+
agent: Prisma.AgentCreateNestedOneWithoutToolsInput;
|
|
221
|
+
tool: Prisma.ToolCreateNestedOneWithoutAgentsInput;
|
|
222
|
+
};
|
|
223
|
+
export type AgentToolUncheckedCreateInput = {
|
|
224
|
+
agentId: string;
|
|
225
|
+
toolId: string;
|
|
226
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
227
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
228
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
229
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
230
|
+
attachedById?: string | null;
|
|
231
|
+
capabilitiesGrantedById?: string | null;
|
|
232
|
+
};
|
|
233
|
+
export type AgentToolUpdateInput = {
|
|
234
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
235
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
236
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
237
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
238
|
+
attachedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
239
|
+
capabilitiesGrantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
240
|
+
agent?: Prisma.AgentUpdateOneRequiredWithoutToolsNestedInput;
|
|
241
|
+
tool?: Prisma.ToolUpdateOneRequiredWithoutAgentsNestedInput;
|
|
242
|
+
};
|
|
243
|
+
export type AgentToolUncheckedUpdateInput = {
|
|
244
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
245
|
+
toolId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
246
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
247
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
248
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
249
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
250
|
+
attachedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
251
|
+
capabilitiesGrantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
252
|
+
};
|
|
253
|
+
export type AgentToolCreateManyInput = {
|
|
254
|
+
agentId: string;
|
|
255
|
+
toolId: string;
|
|
256
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
257
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
258
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
259
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
260
|
+
attachedById?: string | null;
|
|
261
|
+
capabilitiesGrantedById?: string | null;
|
|
262
|
+
};
|
|
263
|
+
export type AgentToolUpdateManyMutationInput = {
|
|
264
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
265
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
266
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
267
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
268
|
+
attachedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
269
|
+
capabilitiesGrantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
270
|
+
};
|
|
271
|
+
export type AgentToolUncheckedUpdateManyInput = {
|
|
272
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
273
|
+
toolId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
274
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
275
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
276
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
277
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
278
|
+
attachedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
279
|
+
capabilitiesGrantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
280
|
+
};
|
|
281
|
+
export type AgentToolListRelationFilter = {
|
|
282
|
+
every?: Prisma.AgentToolWhereInput;
|
|
283
|
+
some?: Prisma.AgentToolWhereInput;
|
|
284
|
+
none?: Prisma.AgentToolWhereInput;
|
|
285
|
+
};
|
|
286
|
+
export type AgentToolOrderByRelationAggregateInput = {
|
|
287
|
+
_count?: Prisma.SortOrder;
|
|
288
|
+
};
|
|
289
|
+
export type AgentToolAgentIdToolIdCompoundUniqueInput = {
|
|
290
|
+
agentId: string;
|
|
291
|
+
toolId: string;
|
|
292
|
+
};
|
|
293
|
+
export type AgentToolCountOrderByAggregateInput = {
|
|
294
|
+
agentId?: Prisma.SortOrder;
|
|
295
|
+
toolId?: Prisma.SortOrder;
|
|
296
|
+
allowedSecrets?: Prisma.SortOrder;
|
|
297
|
+
allowedDatastorePrefixes?: Prisma.SortOrder;
|
|
298
|
+
allowedHosts?: Prisma.SortOrder;
|
|
299
|
+
allowedSharedDatastorePrefixes?: Prisma.SortOrder;
|
|
300
|
+
attachedById?: Prisma.SortOrder;
|
|
301
|
+
capabilitiesGrantedById?: Prisma.SortOrder;
|
|
302
|
+
};
|
|
303
|
+
export type AgentToolMaxOrderByAggregateInput = {
|
|
304
|
+
agentId?: Prisma.SortOrder;
|
|
305
|
+
toolId?: Prisma.SortOrder;
|
|
306
|
+
attachedById?: Prisma.SortOrder;
|
|
307
|
+
capabilitiesGrantedById?: Prisma.SortOrder;
|
|
308
|
+
};
|
|
309
|
+
export type AgentToolMinOrderByAggregateInput = {
|
|
310
|
+
agentId?: Prisma.SortOrder;
|
|
311
|
+
toolId?: Prisma.SortOrder;
|
|
312
|
+
attachedById?: Prisma.SortOrder;
|
|
313
|
+
capabilitiesGrantedById?: Prisma.SortOrder;
|
|
314
|
+
};
|
|
315
|
+
export type AgentToolCreateNestedManyWithoutAgentInput = {
|
|
316
|
+
create?: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput> | Prisma.AgentToolCreateWithoutAgentInput[] | Prisma.AgentToolUncheckedCreateWithoutAgentInput[];
|
|
317
|
+
connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutAgentInput | Prisma.AgentToolCreateOrConnectWithoutAgentInput[];
|
|
318
|
+
createMany?: Prisma.AgentToolCreateManyAgentInputEnvelope;
|
|
319
|
+
connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
320
|
+
};
|
|
321
|
+
export type AgentToolUncheckedCreateNestedManyWithoutAgentInput = {
|
|
322
|
+
create?: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput> | Prisma.AgentToolCreateWithoutAgentInput[] | Prisma.AgentToolUncheckedCreateWithoutAgentInput[];
|
|
323
|
+
connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutAgentInput | Prisma.AgentToolCreateOrConnectWithoutAgentInput[];
|
|
324
|
+
createMany?: Prisma.AgentToolCreateManyAgentInputEnvelope;
|
|
325
|
+
connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
326
|
+
};
|
|
327
|
+
export type AgentToolUpdateManyWithoutAgentNestedInput = {
|
|
328
|
+
create?: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput> | Prisma.AgentToolCreateWithoutAgentInput[] | Prisma.AgentToolUncheckedCreateWithoutAgentInput[];
|
|
329
|
+
connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutAgentInput | Prisma.AgentToolCreateOrConnectWithoutAgentInput[];
|
|
330
|
+
upsert?: Prisma.AgentToolUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentToolUpsertWithWhereUniqueWithoutAgentInput[];
|
|
331
|
+
createMany?: Prisma.AgentToolCreateManyAgentInputEnvelope;
|
|
332
|
+
set?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
333
|
+
disconnect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
334
|
+
delete?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
335
|
+
connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
336
|
+
update?: Prisma.AgentToolUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentToolUpdateWithWhereUniqueWithoutAgentInput[];
|
|
337
|
+
updateMany?: Prisma.AgentToolUpdateManyWithWhereWithoutAgentInput | Prisma.AgentToolUpdateManyWithWhereWithoutAgentInput[];
|
|
338
|
+
deleteMany?: Prisma.AgentToolScalarWhereInput | Prisma.AgentToolScalarWhereInput[];
|
|
339
|
+
};
|
|
340
|
+
export type AgentToolUncheckedUpdateManyWithoutAgentNestedInput = {
|
|
341
|
+
create?: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput> | Prisma.AgentToolCreateWithoutAgentInput[] | Prisma.AgentToolUncheckedCreateWithoutAgentInput[];
|
|
342
|
+
connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutAgentInput | Prisma.AgentToolCreateOrConnectWithoutAgentInput[];
|
|
343
|
+
upsert?: Prisma.AgentToolUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentToolUpsertWithWhereUniqueWithoutAgentInput[];
|
|
344
|
+
createMany?: Prisma.AgentToolCreateManyAgentInputEnvelope;
|
|
345
|
+
set?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
346
|
+
disconnect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
347
|
+
delete?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
348
|
+
connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
349
|
+
update?: Prisma.AgentToolUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentToolUpdateWithWhereUniqueWithoutAgentInput[];
|
|
350
|
+
updateMany?: Prisma.AgentToolUpdateManyWithWhereWithoutAgentInput | Prisma.AgentToolUpdateManyWithWhereWithoutAgentInput[];
|
|
351
|
+
deleteMany?: Prisma.AgentToolScalarWhereInput | Prisma.AgentToolScalarWhereInput[];
|
|
352
|
+
};
|
|
353
|
+
export type AgentToolCreateNestedManyWithoutToolInput = {
|
|
354
|
+
create?: Prisma.XOR<Prisma.AgentToolCreateWithoutToolInput, Prisma.AgentToolUncheckedCreateWithoutToolInput> | Prisma.AgentToolCreateWithoutToolInput[] | Prisma.AgentToolUncheckedCreateWithoutToolInput[];
|
|
355
|
+
connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutToolInput | Prisma.AgentToolCreateOrConnectWithoutToolInput[];
|
|
356
|
+
createMany?: Prisma.AgentToolCreateManyToolInputEnvelope;
|
|
357
|
+
connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
358
|
+
};
|
|
359
|
+
export type AgentToolUncheckedCreateNestedManyWithoutToolInput = {
|
|
360
|
+
create?: Prisma.XOR<Prisma.AgentToolCreateWithoutToolInput, Prisma.AgentToolUncheckedCreateWithoutToolInput> | Prisma.AgentToolCreateWithoutToolInput[] | Prisma.AgentToolUncheckedCreateWithoutToolInput[];
|
|
361
|
+
connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutToolInput | Prisma.AgentToolCreateOrConnectWithoutToolInput[];
|
|
362
|
+
createMany?: Prisma.AgentToolCreateManyToolInputEnvelope;
|
|
363
|
+
connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
364
|
+
};
|
|
365
|
+
export type AgentToolUpdateManyWithoutToolNestedInput = {
|
|
366
|
+
create?: Prisma.XOR<Prisma.AgentToolCreateWithoutToolInput, Prisma.AgentToolUncheckedCreateWithoutToolInput> | Prisma.AgentToolCreateWithoutToolInput[] | Prisma.AgentToolUncheckedCreateWithoutToolInput[];
|
|
367
|
+
connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutToolInput | Prisma.AgentToolCreateOrConnectWithoutToolInput[];
|
|
368
|
+
upsert?: Prisma.AgentToolUpsertWithWhereUniqueWithoutToolInput | Prisma.AgentToolUpsertWithWhereUniqueWithoutToolInput[];
|
|
369
|
+
createMany?: Prisma.AgentToolCreateManyToolInputEnvelope;
|
|
370
|
+
set?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
371
|
+
disconnect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
372
|
+
delete?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
373
|
+
connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
374
|
+
update?: Prisma.AgentToolUpdateWithWhereUniqueWithoutToolInput | Prisma.AgentToolUpdateWithWhereUniqueWithoutToolInput[];
|
|
375
|
+
updateMany?: Prisma.AgentToolUpdateManyWithWhereWithoutToolInput | Prisma.AgentToolUpdateManyWithWhereWithoutToolInput[];
|
|
376
|
+
deleteMany?: Prisma.AgentToolScalarWhereInput | Prisma.AgentToolScalarWhereInput[];
|
|
377
|
+
};
|
|
378
|
+
export type AgentToolUncheckedUpdateManyWithoutToolNestedInput = {
|
|
379
|
+
create?: Prisma.XOR<Prisma.AgentToolCreateWithoutToolInput, Prisma.AgentToolUncheckedCreateWithoutToolInput> | Prisma.AgentToolCreateWithoutToolInput[] | Prisma.AgentToolUncheckedCreateWithoutToolInput[];
|
|
380
|
+
connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutToolInput | Prisma.AgentToolCreateOrConnectWithoutToolInput[];
|
|
381
|
+
upsert?: Prisma.AgentToolUpsertWithWhereUniqueWithoutToolInput | Prisma.AgentToolUpsertWithWhereUniqueWithoutToolInput[];
|
|
382
|
+
createMany?: Prisma.AgentToolCreateManyToolInputEnvelope;
|
|
383
|
+
set?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
384
|
+
disconnect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
385
|
+
delete?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
386
|
+
connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[];
|
|
387
|
+
update?: Prisma.AgentToolUpdateWithWhereUniqueWithoutToolInput | Prisma.AgentToolUpdateWithWhereUniqueWithoutToolInput[];
|
|
388
|
+
updateMany?: Prisma.AgentToolUpdateManyWithWhereWithoutToolInput | Prisma.AgentToolUpdateManyWithWhereWithoutToolInput[];
|
|
389
|
+
deleteMany?: Prisma.AgentToolScalarWhereInput | Prisma.AgentToolScalarWhereInput[];
|
|
390
|
+
};
|
|
391
|
+
export type AgentToolCreateWithoutAgentInput = {
|
|
392
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
393
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
394
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
395
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
396
|
+
attachedById?: string | null;
|
|
397
|
+
capabilitiesGrantedById?: string | null;
|
|
398
|
+
tool: Prisma.ToolCreateNestedOneWithoutAgentsInput;
|
|
399
|
+
};
|
|
400
|
+
export type AgentToolUncheckedCreateWithoutAgentInput = {
|
|
401
|
+
toolId: string;
|
|
402
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
403
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
404
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
405
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
406
|
+
attachedById?: string | null;
|
|
407
|
+
capabilitiesGrantedById?: string | null;
|
|
408
|
+
};
|
|
409
|
+
export type AgentToolCreateOrConnectWithoutAgentInput = {
|
|
410
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
411
|
+
create: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput>;
|
|
412
|
+
};
|
|
413
|
+
export type AgentToolCreateManyAgentInputEnvelope = {
|
|
414
|
+
data: Prisma.AgentToolCreateManyAgentInput | Prisma.AgentToolCreateManyAgentInput[];
|
|
415
|
+
skipDuplicates?: boolean;
|
|
416
|
+
};
|
|
417
|
+
export type AgentToolUpsertWithWhereUniqueWithoutAgentInput = {
|
|
418
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
419
|
+
update: Prisma.XOR<Prisma.AgentToolUpdateWithoutAgentInput, Prisma.AgentToolUncheckedUpdateWithoutAgentInput>;
|
|
420
|
+
create: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput>;
|
|
421
|
+
};
|
|
422
|
+
export type AgentToolUpdateWithWhereUniqueWithoutAgentInput = {
|
|
423
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
424
|
+
data: Prisma.XOR<Prisma.AgentToolUpdateWithoutAgentInput, Prisma.AgentToolUncheckedUpdateWithoutAgentInput>;
|
|
425
|
+
};
|
|
426
|
+
export type AgentToolUpdateManyWithWhereWithoutAgentInput = {
|
|
427
|
+
where: Prisma.AgentToolScalarWhereInput;
|
|
428
|
+
data: Prisma.XOR<Prisma.AgentToolUpdateManyMutationInput, Prisma.AgentToolUncheckedUpdateManyWithoutAgentInput>;
|
|
429
|
+
};
|
|
430
|
+
export type AgentToolScalarWhereInput = {
|
|
431
|
+
AND?: Prisma.AgentToolScalarWhereInput | Prisma.AgentToolScalarWhereInput[];
|
|
432
|
+
OR?: Prisma.AgentToolScalarWhereInput[];
|
|
433
|
+
NOT?: Prisma.AgentToolScalarWhereInput | Prisma.AgentToolScalarWhereInput[];
|
|
434
|
+
agentId?: Prisma.StringFilter<"AgentTool"> | string;
|
|
435
|
+
toolId?: Prisma.StringFilter<"AgentTool"> | string;
|
|
436
|
+
allowedSecrets?: Prisma.JsonFilter<"AgentTool">;
|
|
437
|
+
allowedDatastorePrefixes?: Prisma.JsonFilter<"AgentTool">;
|
|
438
|
+
allowedHosts?: Prisma.JsonFilter<"AgentTool">;
|
|
439
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonFilter<"AgentTool">;
|
|
440
|
+
attachedById?: Prisma.StringNullableFilter<"AgentTool"> | string | null;
|
|
441
|
+
capabilitiesGrantedById?: Prisma.StringNullableFilter<"AgentTool"> | string | null;
|
|
442
|
+
};
|
|
443
|
+
export type AgentToolCreateWithoutToolInput = {
|
|
444
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
445
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
446
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
447
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
448
|
+
attachedById?: string | null;
|
|
449
|
+
capabilitiesGrantedById?: string | null;
|
|
450
|
+
agent: Prisma.AgentCreateNestedOneWithoutToolsInput;
|
|
451
|
+
};
|
|
452
|
+
export type AgentToolUncheckedCreateWithoutToolInput = {
|
|
453
|
+
agentId: string;
|
|
454
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
455
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
456
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
457
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
458
|
+
attachedById?: string | null;
|
|
459
|
+
capabilitiesGrantedById?: string | null;
|
|
460
|
+
};
|
|
461
|
+
export type AgentToolCreateOrConnectWithoutToolInput = {
|
|
462
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
463
|
+
create: Prisma.XOR<Prisma.AgentToolCreateWithoutToolInput, Prisma.AgentToolUncheckedCreateWithoutToolInput>;
|
|
464
|
+
};
|
|
465
|
+
export type AgentToolCreateManyToolInputEnvelope = {
|
|
466
|
+
data: Prisma.AgentToolCreateManyToolInput | Prisma.AgentToolCreateManyToolInput[];
|
|
467
|
+
skipDuplicates?: boolean;
|
|
468
|
+
};
|
|
469
|
+
export type AgentToolUpsertWithWhereUniqueWithoutToolInput = {
|
|
470
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
471
|
+
update: Prisma.XOR<Prisma.AgentToolUpdateWithoutToolInput, Prisma.AgentToolUncheckedUpdateWithoutToolInput>;
|
|
472
|
+
create: Prisma.XOR<Prisma.AgentToolCreateWithoutToolInput, Prisma.AgentToolUncheckedCreateWithoutToolInput>;
|
|
473
|
+
};
|
|
474
|
+
export type AgentToolUpdateWithWhereUniqueWithoutToolInput = {
|
|
475
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
476
|
+
data: Prisma.XOR<Prisma.AgentToolUpdateWithoutToolInput, Prisma.AgentToolUncheckedUpdateWithoutToolInput>;
|
|
477
|
+
};
|
|
478
|
+
export type AgentToolUpdateManyWithWhereWithoutToolInput = {
|
|
479
|
+
where: Prisma.AgentToolScalarWhereInput;
|
|
480
|
+
data: Prisma.XOR<Prisma.AgentToolUpdateManyMutationInput, Prisma.AgentToolUncheckedUpdateManyWithoutToolInput>;
|
|
481
|
+
};
|
|
482
|
+
export type AgentToolCreateManyAgentInput = {
|
|
483
|
+
toolId: string;
|
|
484
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
485
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
486
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
487
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
488
|
+
attachedById?: string | null;
|
|
489
|
+
capabilitiesGrantedById?: string | null;
|
|
490
|
+
};
|
|
491
|
+
export type AgentToolUpdateWithoutAgentInput = {
|
|
492
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
493
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
494
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
495
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
496
|
+
attachedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
497
|
+
capabilitiesGrantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
498
|
+
tool?: Prisma.ToolUpdateOneRequiredWithoutAgentsNestedInput;
|
|
499
|
+
};
|
|
500
|
+
export type AgentToolUncheckedUpdateWithoutAgentInput = {
|
|
501
|
+
toolId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
502
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
503
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
504
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
505
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
506
|
+
attachedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
507
|
+
capabilitiesGrantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
508
|
+
};
|
|
509
|
+
export type AgentToolUncheckedUpdateManyWithoutAgentInput = {
|
|
510
|
+
toolId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
511
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
512
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
513
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
514
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
515
|
+
attachedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
516
|
+
capabilitiesGrantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
517
|
+
};
|
|
518
|
+
export type AgentToolCreateManyToolInput = {
|
|
519
|
+
agentId: string;
|
|
520
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
521
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
522
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
523
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
524
|
+
attachedById?: string | null;
|
|
525
|
+
capabilitiesGrantedById?: string | null;
|
|
526
|
+
};
|
|
527
|
+
export type AgentToolUpdateWithoutToolInput = {
|
|
528
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
529
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
530
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
531
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
532
|
+
attachedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
533
|
+
capabilitiesGrantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
534
|
+
agent?: Prisma.AgentUpdateOneRequiredWithoutToolsNestedInput;
|
|
535
|
+
};
|
|
536
|
+
export type AgentToolUncheckedUpdateWithoutToolInput = {
|
|
537
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
538
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
539
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
540
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
541
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
542
|
+
attachedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
543
|
+
capabilitiesGrantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
544
|
+
};
|
|
545
|
+
export type AgentToolUncheckedUpdateManyWithoutToolInput = {
|
|
546
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
547
|
+
allowedSecrets?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
548
|
+
allowedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
549
|
+
allowedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
550
|
+
allowedSharedDatastorePrefixes?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
551
|
+
attachedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
552
|
+
capabilitiesGrantedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
553
|
+
};
|
|
554
|
+
export type AgentToolSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
555
|
+
agentId?: boolean;
|
|
556
|
+
toolId?: boolean;
|
|
557
|
+
allowedSecrets?: boolean;
|
|
558
|
+
allowedDatastorePrefixes?: boolean;
|
|
559
|
+
allowedHosts?: boolean;
|
|
560
|
+
allowedSharedDatastorePrefixes?: boolean;
|
|
561
|
+
attachedById?: boolean;
|
|
562
|
+
capabilitiesGrantedById?: boolean;
|
|
563
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
|
|
564
|
+
tool?: boolean | Prisma.ToolDefaultArgs<ExtArgs>;
|
|
565
|
+
}, ExtArgs["result"]["agentTool"]>;
|
|
566
|
+
export type AgentToolSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
567
|
+
agentId?: boolean;
|
|
568
|
+
toolId?: boolean;
|
|
569
|
+
allowedSecrets?: boolean;
|
|
570
|
+
allowedDatastorePrefixes?: boolean;
|
|
571
|
+
allowedHosts?: boolean;
|
|
572
|
+
allowedSharedDatastorePrefixes?: boolean;
|
|
573
|
+
attachedById?: boolean;
|
|
574
|
+
capabilitiesGrantedById?: boolean;
|
|
575
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
|
|
576
|
+
tool?: boolean | Prisma.ToolDefaultArgs<ExtArgs>;
|
|
577
|
+
}, ExtArgs["result"]["agentTool"]>;
|
|
578
|
+
export type AgentToolSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
579
|
+
agentId?: boolean;
|
|
580
|
+
toolId?: boolean;
|
|
581
|
+
allowedSecrets?: boolean;
|
|
582
|
+
allowedDatastorePrefixes?: boolean;
|
|
583
|
+
allowedHosts?: boolean;
|
|
584
|
+
allowedSharedDatastorePrefixes?: boolean;
|
|
585
|
+
attachedById?: boolean;
|
|
586
|
+
capabilitiesGrantedById?: boolean;
|
|
587
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
|
|
588
|
+
tool?: boolean | Prisma.ToolDefaultArgs<ExtArgs>;
|
|
589
|
+
}, ExtArgs["result"]["agentTool"]>;
|
|
590
|
+
export type AgentToolSelectScalar = {
|
|
591
|
+
agentId?: boolean;
|
|
592
|
+
toolId?: boolean;
|
|
593
|
+
allowedSecrets?: boolean;
|
|
594
|
+
allowedDatastorePrefixes?: boolean;
|
|
595
|
+
allowedHosts?: boolean;
|
|
596
|
+
allowedSharedDatastorePrefixes?: boolean;
|
|
597
|
+
attachedById?: boolean;
|
|
598
|
+
capabilitiesGrantedById?: boolean;
|
|
599
|
+
};
|
|
600
|
+
export type AgentToolOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"agentId" | "toolId" | "allowedSecrets" | "allowedDatastorePrefixes" | "allowedHosts" | "allowedSharedDatastorePrefixes" | "attachedById" | "capabilitiesGrantedById", ExtArgs["result"]["agentTool"]>;
|
|
601
|
+
export type AgentToolInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
602
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
|
|
603
|
+
tool?: boolean | Prisma.ToolDefaultArgs<ExtArgs>;
|
|
604
|
+
};
|
|
605
|
+
export type AgentToolIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
606
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
|
|
607
|
+
tool?: boolean | Prisma.ToolDefaultArgs<ExtArgs>;
|
|
608
|
+
};
|
|
609
|
+
export type AgentToolIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
610
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
|
|
611
|
+
tool?: boolean | Prisma.ToolDefaultArgs<ExtArgs>;
|
|
612
|
+
};
|
|
613
|
+
export type $AgentToolPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
614
|
+
name: "AgentTool";
|
|
615
|
+
objects: {
|
|
616
|
+
agent: Prisma.$AgentPayload<ExtArgs>;
|
|
617
|
+
tool: Prisma.$ToolPayload<ExtArgs>;
|
|
618
|
+
};
|
|
619
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
620
|
+
agentId: string;
|
|
621
|
+
toolId: string;
|
|
622
|
+
allowedSecrets: runtime.JsonValue;
|
|
623
|
+
allowedDatastorePrefixes: runtime.JsonValue;
|
|
624
|
+
allowedHosts: runtime.JsonValue;
|
|
625
|
+
allowedSharedDatastorePrefixes: runtime.JsonValue;
|
|
626
|
+
/**
|
|
627
|
+
* Who created the attachment. Audit only: plain text, no FK (same
|
|
628
|
+
* convention as AgentRepository.authorizedById).
|
|
629
|
+
*/
|
|
630
|
+
attachedById: string | null;
|
|
631
|
+
/**
|
|
632
|
+
* The principal whose consent the four capability fields above carry.
|
|
633
|
+
* The runner honours them only while this equals the agent's CURRENT
|
|
634
|
+
* ownerId (resource-sharing grants spec §3.4.2): a write-grantee's
|
|
635
|
+
* attachment, a make_owner transfer, or a pre-grants row nobody vouched
|
|
636
|
+
* for runs with no secrets, no datastore and no fetch until the owner
|
|
637
|
+
* re-grants with attach_tool. Plain text, no FK.
|
|
638
|
+
*/
|
|
639
|
+
capabilitiesGrantedById: string | null;
|
|
640
|
+
}, ExtArgs["result"]["agentTool"]>;
|
|
641
|
+
composites: {};
|
|
642
|
+
};
|
|
643
|
+
export type AgentToolGetPayload<S extends boolean | null | undefined | AgentToolDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentToolPayload, S>;
|
|
644
|
+
export type AgentToolCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AgentToolFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
645
|
+
select?: AgentToolCountAggregateInputType | true;
|
|
646
|
+
};
|
|
647
|
+
export interface AgentToolDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
648
|
+
[K: symbol]: {
|
|
649
|
+
types: Prisma.TypeMap<ExtArgs>['model']['AgentTool'];
|
|
650
|
+
meta: {
|
|
651
|
+
name: 'AgentTool';
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* Find zero or one AgentTool that matches the filter.
|
|
656
|
+
* @param {AgentToolFindUniqueArgs} args - Arguments to find a AgentTool
|
|
657
|
+
* @example
|
|
658
|
+
* // Get one AgentTool
|
|
659
|
+
* const agentTool = await prisma.agentTool.findUnique({
|
|
660
|
+
* where: {
|
|
661
|
+
* // ... provide filter here
|
|
662
|
+
* }
|
|
663
|
+
* })
|
|
664
|
+
*/
|
|
665
|
+
findUnique<T extends AgentToolFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentToolFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
666
|
+
/**
|
|
667
|
+
* Find one AgentTool that matches the filter or throw an error with `error.code='P2025'`
|
|
668
|
+
* if no matches were found.
|
|
669
|
+
* @param {AgentToolFindUniqueOrThrowArgs} args - Arguments to find a AgentTool
|
|
670
|
+
* @example
|
|
671
|
+
* // Get one AgentTool
|
|
672
|
+
* const agentTool = await prisma.agentTool.findUniqueOrThrow({
|
|
673
|
+
* where: {
|
|
674
|
+
* // ... provide filter here
|
|
675
|
+
* }
|
|
676
|
+
* })
|
|
677
|
+
*/
|
|
678
|
+
findUniqueOrThrow<T extends AgentToolFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentToolFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
679
|
+
/**
|
|
680
|
+
* Find the first AgentTool that matches the filter.
|
|
681
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
682
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
683
|
+
* @param {AgentToolFindFirstArgs} args - Arguments to find a AgentTool
|
|
684
|
+
* @example
|
|
685
|
+
* // Get one AgentTool
|
|
686
|
+
* const agentTool = await prisma.agentTool.findFirst({
|
|
687
|
+
* where: {
|
|
688
|
+
* // ... provide filter here
|
|
689
|
+
* }
|
|
690
|
+
* })
|
|
691
|
+
*/
|
|
692
|
+
findFirst<T extends AgentToolFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentToolFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
693
|
+
/**
|
|
694
|
+
* Find the first AgentTool that matches the filter or
|
|
695
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
696
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
697
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
698
|
+
* @param {AgentToolFindFirstOrThrowArgs} args - Arguments to find a AgentTool
|
|
699
|
+
* @example
|
|
700
|
+
* // Get one AgentTool
|
|
701
|
+
* const agentTool = await prisma.agentTool.findFirstOrThrow({
|
|
702
|
+
* where: {
|
|
703
|
+
* // ... provide filter here
|
|
704
|
+
* }
|
|
705
|
+
* })
|
|
706
|
+
*/
|
|
707
|
+
findFirstOrThrow<T extends AgentToolFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentToolFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
708
|
+
/**
|
|
709
|
+
* Find zero or more AgentTools that matches the filter.
|
|
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 {AgentToolFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
713
|
+
* @example
|
|
714
|
+
* // Get all AgentTools
|
|
715
|
+
* const agentTools = await prisma.agentTool.findMany()
|
|
716
|
+
*
|
|
717
|
+
* // Get first 10 AgentTools
|
|
718
|
+
* const agentTools = await prisma.agentTool.findMany({ take: 10 })
|
|
719
|
+
*
|
|
720
|
+
* // Only select the `agentId`
|
|
721
|
+
* const agentToolWithAgentIdOnly = await prisma.agentTool.findMany({ select: { agentId: true } })
|
|
722
|
+
*
|
|
723
|
+
*/
|
|
724
|
+
findMany<T extends AgentToolFindManyArgs>(args?: Prisma.SelectSubset<T, AgentToolFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
725
|
+
/**
|
|
726
|
+
* Create a AgentTool.
|
|
727
|
+
* @param {AgentToolCreateArgs} args - Arguments to create a AgentTool.
|
|
728
|
+
* @example
|
|
729
|
+
* // Create one AgentTool
|
|
730
|
+
* const AgentTool = await prisma.agentTool.create({
|
|
731
|
+
* data: {
|
|
732
|
+
* // ... data to create a AgentTool
|
|
733
|
+
* }
|
|
734
|
+
* })
|
|
735
|
+
*
|
|
736
|
+
*/
|
|
737
|
+
create<T extends AgentToolCreateArgs>(args: Prisma.SelectSubset<T, AgentToolCreateArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
738
|
+
/**
|
|
739
|
+
* Create many AgentTools.
|
|
740
|
+
* @param {AgentToolCreateManyArgs} args - Arguments to create many AgentTools.
|
|
741
|
+
* @example
|
|
742
|
+
* // Create many AgentTools
|
|
743
|
+
* const agentTool = await prisma.agentTool.createMany({
|
|
744
|
+
* data: [
|
|
745
|
+
* // ... provide data here
|
|
746
|
+
* ]
|
|
747
|
+
* })
|
|
748
|
+
*
|
|
749
|
+
*/
|
|
750
|
+
createMany<T extends AgentToolCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentToolCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
751
|
+
/**
|
|
752
|
+
* Create many AgentTools and returns the data saved in the database.
|
|
753
|
+
* @param {AgentToolCreateManyAndReturnArgs} args - Arguments to create many AgentTools.
|
|
754
|
+
* @example
|
|
755
|
+
* // Create many AgentTools
|
|
756
|
+
* const agentTool = await prisma.agentTool.createManyAndReturn({
|
|
757
|
+
* data: [
|
|
758
|
+
* // ... provide data here
|
|
759
|
+
* ]
|
|
760
|
+
* })
|
|
761
|
+
*
|
|
762
|
+
* // Create many AgentTools and only return the `agentId`
|
|
763
|
+
* const agentToolWithAgentIdOnly = await prisma.agentTool.createManyAndReturn({
|
|
764
|
+
* select: { agentId: true },
|
|
765
|
+
* data: [
|
|
766
|
+
* // ... provide data here
|
|
767
|
+
* ]
|
|
768
|
+
* })
|
|
769
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
770
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
771
|
+
*
|
|
772
|
+
*/
|
|
773
|
+
createManyAndReturn<T extends AgentToolCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentToolCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
774
|
+
/**
|
|
775
|
+
* Delete a AgentTool.
|
|
776
|
+
* @param {AgentToolDeleteArgs} args - Arguments to delete one AgentTool.
|
|
777
|
+
* @example
|
|
778
|
+
* // Delete one AgentTool
|
|
779
|
+
* const AgentTool = await prisma.agentTool.delete({
|
|
780
|
+
* where: {
|
|
781
|
+
* // ... filter to delete one AgentTool
|
|
782
|
+
* }
|
|
783
|
+
* })
|
|
784
|
+
*
|
|
785
|
+
*/
|
|
786
|
+
delete<T extends AgentToolDeleteArgs>(args: Prisma.SelectSubset<T, AgentToolDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
787
|
+
/**
|
|
788
|
+
* Update one AgentTool.
|
|
789
|
+
* @param {AgentToolUpdateArgs} args - Arguments to update one AgentTool.
|
|
790
|
+
* @example
|
|
791
|
+
* // Update one AgentTool
|
|
792
|
+
* const agentTool = await prisma.agentTool.update({
|
|
793
|
+
* where: {
|
|
794
|
+
* // ... provide filter here
|
|
795
|
+
* },
|
|
796
|
+
* data: {
|
|
797
|
+
* // ... provide data here
|
|
798
|
+
* }
|
|
799
|
+
* })
|
|
800
|
+
*
|
|
801
|
+
*/
|
|
802
|
+
update<T extends AgentToolUpdateArgs>(args: Prisma.SelectSubset<T, AgentToolUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
803
|
+
/**
|
|
804
|
+
* Delete zero or more AgentTools.
|
|
805
|
+
* @param {AgentToolDeleteManyArgs} args - Arguments to filter AgentTools to delete.
|
|
806
|
+
* @example
|
|
807
|
+
* // Delete a few AgentTools
|
|
808
|
+
* const { count } = await prisma.agentTool.deleteMany({
|
|
809
|
+
* where: {
|
|
810
|
+
* // ... provide filter here
|
|
811
|
+
* }
|
|
812
|
+
* })
|
|
813
|
+
*
|
|
814
|
+
*/
|
|
815
|
+
deleteMany<T extends AgentToolDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentToolDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
816
|
+
/**
|
|
817
|
+
* Update zero or more AgentTools.
|
|
818
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
819
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
820
|
+
* @param {AgentToolUpdateManyArgs} args - Arguments to update one or more rows.
|
|
821
|
+
* @example
|
|
822
|
+
* // Update many AgentTools
|
|
823
|
+
* const agentTool = await prisma.agentTool.updateMany({
|
|
824
|
+
* where: {
|
|
825
|
+
* // ... provide filter here
|
|
826
|
+
* },
|
|
827
|
+
* data: {
|
|
828
|
+
* // ... provide data here
|
|
829
|
+
* }
|
|
830
|
+
* })
|
|
831
|
+
*
|
|
832
|
+
*/
|
|
833
|
+
updateMany<T extends AgentToolUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentToolUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
834
|
+
/**
|
|
835
|
+
* Update zero or more AgentTools and returns the data updated in the database.
|
|
836
|
+
* @param {AgentToolUpdateManyAndReturnArgs} args - Arguments to update many AgentTools.
|
|
837
|
+
* @example
|
|
838
|
+
* // Update many AgentTools
|
|
839
|
+
* const agentTool = await prisma.agentTool.updateManyAndReturn({
|
|
840
|
+
* where: {
|
|
841
|
+
* // ... provide filter here
|
|
842
|
+
* },
|
|
843
|
+
* data: [
|
|
844
|
+
* // ... provide data here
|
|
845
|
+
* ]
|
|
846
|
+
* })
|
|
847
|
+
*
|
|
848
|
+
* // Update zero or more AgentTools and only return the `agentId`
|
|
849
|
+
* const agentToolWithAgentIdOnly = await prisma.agentTool.updateManyAndReturn({
|
|
850
|
+
* select: { agentId: true },
|
|
851
|
+
* where: {
|
|
852
|
+
* // ... provide filter here
|
|
853
|
+
* },
|
|
854
|
+
* data: [
|
|
855
|
+
* // ... provide data here
|
|
856
|
+
* ]
|
|
857
|
+
* })
|
|
858
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
859
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
860
|
+
*
|
|
861
|
+
*/
|
|
862
|
+
updateManyAndReturn<T extends AgentToolUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentToolUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
863
|
+
/**
|
|
864
|
+
* Create or update one AgentTool.
|
|
865
|
+
* @param {AgentToolUpsertArgs} args - Arguments to update or create a AgentTool.
|
|
866
|
+
* @example
|
|
867
|
+
* // Update or create a AgentTool
|
|
868
|
+
* const agentTool = await prisma.agentTool.upsert({
|
|
869
|
+
* create: {
|
|
870
|
+
* // ... data to create a AgentTool
|
|
871
|
+
* },
|
|
872
|
+
* update: {
|
|
873
|
+
* // ... in case it already exists, update
|
|
874
|
+
* },
|
|
875
|
+
* where: {
|
|
876
|
+
* // ... the filter for the AgentTool we want to update
|
|
877
|
+
* }
|
|
878
|
+
* })
|
|
879
|
+
*/
|
|
880
|
+
upsert<T extends AgentToolUpsertArgs>(args: Prisma.SelectSubset<T, AgentToolUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
881
|
+
/**
|
|
882
|
+
* Count the number of AgentTools.
|
|
883
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
884
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
885
|
+
* @param {AgentToolCountArgs} args - Arguments to filter AgentTools to count.
|
|
886
|
+
* @example
|
|
887
|
+
* // Count the number of AgentTools
|
|
888
|
+
* const count = await prisma.agentTool.count({
|
|
889
|
+
* where: {
|
|
890
|
+
* // ... the filter for the AgentTools we want to count
|
|
891
|
+
* }
|
|
892
|
+
* })
|
|
893
|
+
**/
|
|
894
|
+
count<T extends AgentToolCountArgs>(args?: Prisma.Subset<T, AgentToolCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AgentToolCountAggregateOutputType> : number>;
|
|
895
|
+
/**
|
|
896
|
+
* Allows you to perform aggregations operations on a AgentTool.
|
|
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 {AgentToolAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
900
|
+
* @example
|
|
901
|
+
* // Ordered by age ascending
|
|
902
|
+
* // Where email contains prisma.io
|
|
903
|
+
* // Limited to the 10 users
|
|
904
|
+
* const aggregations = await prisma.user.aggregate({
|
|
905
|
+
* _avg: {
|
|
906
|
+
* age: true,
|
|
907
|
+
* },
|
|
908
|
+
* where: {
|
|
909
|
+
* email: {
|
|
910
|
+
* contains: "prisma.io",
|
|
911
|
+
* },
|
|
912
|
+
* },
|
|
913
|
+
* orderBy: {
|
|
914
|
+
* age: "asc",
|
|
915
|
+
* },
|
|
916
|
+
* take: 10,
|
|
917
|
+
* })
|
|
918
|
+
**/
|
|
919
|
+
aggregate<T extends AgentToolAggregateArgs>(args: Prisma.Subset<T, AgentToolAggregateArgs>): Prisma.PrismaPromise<GetAgentToolAggregateType<T>>;
|
|
920
|
+
/**
|
|
921
|
+
* Group by AgentTool.
|
|
922
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
923
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
924
|
+
* @param {AgentToolGroupByArgs} args - Group by arguments.
|
|
925
|
+
* @example
|
|
926
|
+
* // Group by city, order by createdAt, get count
|
|
927
|
+
* const result = await prisma.user.groupBy({
|
|
928
|
+
* by: ['city', 'createdAt'],
|
|
929
|
+
* orderBy: {
|
|
930
|
+
* createdAt: true
|
|
931
|
+
* },
|
|
932
|
+
* _count: {
|
|
933
|
+
* _all: true
|
|
934
|
+
* },
|
|
935
|
+
* })
|
|
936
|
+
*
|
|
937
|
+
**/
|
|
938
|
+
groupBy<T extends AgentToolGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
939
|
+
orderBy: AgentToolGroupByArgs['orderBy'];
|
|
940
|
+
} : {
|
|
941
|
+
orderBy?: AgentToolGroupByArgs['orderBy'];
|
|
942
|
+
}, 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 ? {
|
|
943
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
944
|
+
Error,
|
|
945
|
+
'Field ',
|
|
946
|
+
P,
|
|
947
|
+
` in "having" needs to be provided in "by"`
|
|
948
|
+
];
|
|
949
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
950
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
951
|
+
}[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 ? {} : {
|
|
952
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
953
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
954
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
955
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, AgentToolGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentToolGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
956
|
+
/**
|
|
957
|
+
* Fields of the AgentTool model
|
|
958
|
+
*/
|
|
959
|
+
readonly fields: AgentToolFieldRefs;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* The delegate class that acts as a "Promise-like" for AgentTool.
|
|
963
|
+
* Why is this prefixed with `Prisma__`?
|
|
964
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
965
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
966
|
+
*/
|
|
967
|
+
export interface Prisma__AgentToolClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
968
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
969
|
+
agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
970
|
+
tool<T extends Prisma.ToolDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ToolDefaultArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
971
|
+
/**
|
|
972
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
973
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
974
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
975
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
976
|
+
*/
|
|
977
|
+
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>;
|
|
978
|
+
/**
|
|
979
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
980
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
981
|
+
* @returns A Promise for the completion of the callback.
|
|
982
|
+
*/
|
|
983
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
984
|
+
/**
|
|
985
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
986
|
+
* resolved value cannot be modified from the callback.
|
|
987
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
988
|
+
* @returns A Promise for the completion of the callback.
|
|
989
|
+
*/
|
|
990
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
* Fields of the AgentTool model
|
|
994
|
+
*/
|
|
995
|
+
export interface AgentToolFieldRefs {
|
|
996
|
+
readonly agentId: Prisma.FieldRef<"AgentTool", 'String'>;
|
|
997
|
+
readonly toolId: Prisma.FieldRef<"AgentTool", 'String'>;
|
|
998
|
+
readonly allowedSecrets: Prisma.FieldRef<"AgentTool", 'Json'>;
|
|
999
|
+
readonly allowedDatastorePrefixes: Prisma.FieldRef<"AgentTool", 'Json'>;
|
|
1000
|
+
readonly allowedHosts: Prisma.FieldRef<"AgentTool", 'Json'>;
|
|
1001
|
+
readonly allowedSharedDatastorePrefixes: Prisma.FieldRef<"AgentTool", 'Json'>;
|
|
1002
|
+
readonly attachedById: Prisma.FieldRef<"AgentTool", 'String'>;
|
|
1003
|
+
readonly capabilitiesGrantedById: Prisma.FieldRef<"AgentTool", 'String'>;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* AgentTool findUnique
|
|
1007
|
+
*/
|
|
1008
|
+
export type AgentToolFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1009
|
+
/**
|
|
1010
|
+
* Select specific fields to fetch from the AgentTool
|
|
1011
|
+
*/
|
|
1012
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1013
|
+
/**
|
|
1014
|
+
* Omit specific fields from the AgentTool
|
|
1015
|
+
*/
|
|
1016
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1017
|
+
/**
|
|
1018
|
+
* Choose, which related nodes to fetch as well
|
|
1019
|
+
*/
|
|
1020
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1021
|
+
/**
|
|
1022
|
+
* Filter, which AgentTool to fetch.
|
|
1023
|
+
*/
|
|
1024
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
1025
|
+
};
|
|
1026
|
+
/**
|
|
1027
|
+
* AgentTool findUniqueOrThrow
|
|
1028
|
+
*/
|
|
1029
|
+
export type AgentToolFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1030
|
+
/**
|
|
1031
|
+
* Select specific fields to fetch from the AgentTool
|
|
1032
|
+
*/
|
|
1033
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1034
|
+
/**
|
|
1035
|
+
* Omit specific fields from the AgentTool
|
|
1036
|
+
*/
|
|
1037
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1038
|
+
/**
|
|
1039
|
+
* Choose, which related nodes to fetch as well
|
|
1040
|
+
*/
|
|
1041
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1042
|
+
/**
|
|
1043
|
+
* Filter, which AgentTool to fetch.
|
|
1044
|
+
*/
|
|
1045
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
1046
|
+
};
|
|
1047
|
+
/**
|
|
1048
|
+
* AgentTool findFirst
|
|
1049
|
+
*/
|
|
1050
|
+
export type AgentToolFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1051
|
+
/**
|
|
1052
|
+
* Select specific fields to fetch from the AgentTool
|
|
1053
|
+
*/
|
|
1054
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1055
|
+
/**
|
|
1056
|
+
* Omit specific fields from the AgentTool
|
|
1057
|
+
*/
|
|
1058
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1059
|
+
/**
|
|
1060
|
+
* Choose, which related nodes to fetch as well
|
|
1061
|
+
*/
|
|
1062
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1063
|
+
/**
|
|
1064
|
+
* Filter, which AgentTool to fetch.
|
|
1065
|
+
*/
|
|
1066
|
+
where?: Prisma.AgentToolWhereInput;
|
|
1067
|
+
/**
|
|
1068
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1069
|
+
*
|
|
1070
|
+
* Determine the order of AgentTools to fetch.
|
|
1071
|
+
*/
|
|
1072
|
+
orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[];
|
|
1073
|
+
/**
|
|
1074
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1075
|
+
*
|
|
1076
|
+
* Sets the position for searching for AgentTools.
|
|
1077
|
+
*/
|
|
1078
|
+
cursor?: Prisma.AgentToolWhereUniqueInput;
|
|
1079
|
+
/**
|
|
1080
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1081
|
+
*
|
|
1082
|
+
* Take `±n` AgentTools from the position of the cursor.
|
|
1083
|
+
*/
|
|
1084
|
+
take?: number;
|
|
1085
|
+
/**
|
|
1086
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1087
|
+
*
|
|
1088
|
+
* Skip the first `n` AgentTools.
|
|
1089
|
+
*/
|
|
1090
|
+
skip?: number;
|
|
1091
|
+
/**
|
|
1092
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1093
|
+
*
|
|
1094
|
+
* Filter by unique combinations of AgentTools.
|
|
1095
|
+
*/
|
|
1096
|
+
distinct?: Prisma.AgentToolScalarFieldEnum | Prisma.AgentToolScalarFieldEnum[];
|
|
1097
|
+
};
|
|
1098
|
+
/**
|
|
1099
|
+
* AgentTool findFirstOrThrow
|
|
1100
|
+
*/
|
|
1101
|
+
export type AgentToolFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1102
|
+
/**
|
|
1103
|
+
* Select specific fields to fetch from the AgentTool
|
|
1104
|
+
*/
|
|
1105
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1106
|
+
/**
|
|
1107
|
+
* Omit specific fields from the AgentTool
|
|
1108
|
+
*/
|
|
1109
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1110
|
+
/**
|
|
1111
|
+
* Choose, which related nodes to fetch as well
|
|
1112
|
+
*/
|
|
1113
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1114
|
+
/**
|
|
1115
|
+
* Filter, which AgentTool to fetch.
|
|
1116
|
+
*/
|
|
1117
|
+
where?: Prisma.AgentToolWhereInput;
|
|
1118
|
+
/**
|
|
1119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1120
|
+
*
|
|
1121
|
+
* Determine the order of AgentTools to fetch.
|
|
1122
|
+
*/
|
|
1123
|
+
orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[];
|
|
1124
|
+
/**
|
|
1125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1126
|
+
*
|
|
1127
|
+
* Sets the position for searching for AgentTools.
|
|
1128
|
+
*/
|
|
1129
|
+
cursor?: Prisma.AgentToolWhereUniqueInput;
|
|
1130
|
+
/**
|
|
1131
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1132
|
+
*
|
|
1133
|
+
* Take `±n` AgentTools from the position of the cursor.
|
|
1134
|
+
*/
|
|
1135
|
+
take?: number;
|
|
1136
|
+
/**
|
|
1137
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1138
|
+
*
|
|
1139
|
+
* Skip the first `n` AgentTools.
|
|
1140
|
+
*/
|
|
1141
|
+
skip?: number;
|
|
1142
|
+
/**
|
|
1143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1144
|
+
*
|
|
1145
|
+
* Filter by unique combinations of AgentTools.
|
|
1146
|
+
*/
|
|
1147
|
+
distinct?: Prisma.AgentToolScalarFieldEnum | Prisma.AgentToolScalarFieldEnum[];
|
|
1148
|
+
};
|
|
1149
|
+
/**
|
|
1150
|
+
* AgentTool findMany
|
|
1151
|
+
*/
|
|
1152
|
+
export type AgentToolFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1153
|
+
/**
|
|
1154
|
+
* Select specific fields to fetch from the AgentTool
|
|
1155
|
+
*/
|
|
1156
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1157
|
+
/**
|
|
1158
|
+
* Omit specific fields from the AgentTool
|
|
1159
|
+
*/
|
|
1160
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1161
|
+
/**
|
|
1162
|
+
* Choose, which related nodes to fetch as well
|
|
1163
|
+
*/
|
|
1164
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1165
|
+
/**
|
|
1166
|
+
* Filter, which AgentTools to fetch.
|
|
1167
|
+
*/
|
|
1168
|
+
where?: Prisma.AgentToolWhereInput;
|
|
1169
|
+
/**
|
|
1170
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1171
|
+
*
|
|
1172
|
+
* Determine the order of AgentTools to fetch.
|
|
1173
|
+
*/
|
|
1174
|
+
orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[];
|
|
1175
|
+
/**
|
|
1176
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1177
|
+
*
|
|
1178
|
+
* Sets the position for listing AgentTools.
|
|
1179
|
+
*/
|
|
1180
|
+
cursor?: Prisma.AgentToolWhereUniqueInput;
|
|
1181
|
+
/**
|
|
1182
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1183
|
+
*
|
|
1184
|
+
* Take `±n` AgentTools from the position of the cursor.
|
|
1185
|
+
*/
|
|
1186
|
+
take?: number;
|
|
1187
|
+
/**
|
|
1188
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1189
|
+
*
|
|
1190
|
+
* Skip the first `n` AgentTools.
|
|
1191
|
+
*/
|
|
1192
|
+
skip?: number;
|
|
1193
|
+
/**
|
|
1194
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1195
|
+
*
|
|
1196
|
+
* Filter by unique combinations of AgentTools.
|
|
1197
|
+
*/
|
|
1198
|
+
distinct?: Prisma.AgentToolScalarFieldEnum | Prisma.AgentToolScalarFieldEnum[];
|
|
1199
|
+
};
|
|
1200
|
+
/**
|
|
1201
|
+
* AgentTool create
|
|
1202
|
+
*/
|
|
1203
|
+
export type AgentToolCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1204
|
+
/**
|
|
1205
|
+
* Select specific fields to fetch from the AgentTool
|
|
1206
|
+
*/
|
|
1207
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1208
|
+
/**
|
|
1209
|
+
* Omit specific fields from the AgentTool
|
|
1210
|
+
*/
|
|
1211
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1212
|
+
/**
|
|
1213
|
+
* Choose, which related nodes to fetch as well
|
|
1214
|
+
*/
|
|
1215
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1216
|
+
/**
|
|
1217
|
+
* The data needed to create a AgentTool.
|
|
1218
|
+
*/
|
|
1219
|
+
data: Prisma.XOR<Prisma.AgentToolCreateInput, Prisma.AgentToolUncheckedCreateInput>;
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* AgentTool createMany
|
|
1223
|
+
*/
|
|
1224
|
+
export type AgentToolCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1225
|
+
/**
|
|
1226
|
+
* The data used to create many AgentTools.
|
|
1227
|
+
*/
|
|
1228
|
+
data: Prisma.AgentToolCreateManyInput | Prisma.AgentToolCreateManyInput[];
|
|
1229
|
+
skipDuplicates?: boolean;
|
|
1230
|
+
};
|
|
1231
|
+
/**
|
|
1232
|
+
* AgentTool createManyAndReturn
|
|
1233
|
+
*/
|
|
1234
|
+
export type AgentToolCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1235
|
+
/**
|
|
1236
|
+
* Select specific fields to fetch from the AgentTool
|
|
1237
|
+
*/
|
|
1238
|
+
select?: Prisma.AgentToolSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1239
|
+
/**
|
|
1240
|
+
* Omit specific fields from the AgentTool
|
|
1241
|
+
*/
|
|
1242
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1243
|
+
/**
|
|
1244
|
+
* The data used to create many AgentTools.
|
|
1245
|
+
*/
|
|
1246
|
+
data: Prisma.AgentToolCreateManyInput | Prisma.AgentToolCreateManyInput[];
|
|
1247
|
+
skipDuplicates?: boolean;
|
|
1248
|
+
/**
|
|
1249
|
+
* Choose, which related nodes to fetch as well
|
|
1250
|
+
*/
|
|
1251
|
+
include?: Prisma.AgentToolIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1252
|
+
};
|
|
1253
|
+
/**
|
|
1254
|
+
* AgentTool update
|
|
1255
|
+
*/
|
|
1256
|
+
export type AgentToolUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1257
|
+
/**
|
|
1258
|
+
* Select specific fields to fetch from the AgentTool
|
|
1259
|
+
*/
|
|
1260
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1261
|
+
/**
|
|
1262
|
+
* Omit specific fields from the AgentTool
|
|
1263
|
+
*/
|
|
1264
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1265
|
+
/**
|
|
1266
|
+
* Choose, which related nodes to fetch as well
|
|
1267
|
+
*/
|
|
1268
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1269
|
+
/**
|
|
1270
|
+
* The data needed to update a AgentTool.
|
|
1271
|
+
*/
|
|
1272
|
+
data: Prisma.XOR<Prisma.AgentToolUpdateInput, Prisma.AgentToolUncheckedUpdateInput>;
|
|
1273
|
+
/**
|
|
1274
|
+
* Choose, which AgentTool to update.
|
|
1275
|
+
*/
|
|
1276
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
1277
|
+
};
|
|
1278
|
+
/**
|
|
1279
|
+
* AgentTool updateMany
|
|
1280
|
+
*/
|
|
1281
|
+
export type AgentToolUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1282
|
+
/**
|
|
1283
|
+
* The data used to update AgentTools.
|
|
1284
|
+
*/
|
|
1285
|
+
data: Prisma.XOR<Prisma.AgentToolUpdateManyMutationInput, Prisma.AgentToolUncheckedUpdateManyInput>;
|
|
1286
|
+
/**
|
|
1287
|
+
* Filter which AgentTools to update
|
|
1288
|
+
*/
|
|
1289
|
+
where?: Prisma.AgentToolWhereInput;
|
|
1290
|
+
/**
|
|
1291
|
+
* Limit how many AgentTools to update.
|
|
1292
|
+
*/
|
|
1293
|
+
limit?: number;
|
|
1294
|
+
};
|
|
1295
|
+
/**
|
|
1296
|
+
* AgentTool updateManyAndReturn
|
|
1297
|
+
*/
|
|
1298
|
+
export type AgentToolUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1299
|
+
/**
|
|
1300
|
+
* Select specific fields to fetch from the AgentTool
|
|
1301
|
+
*/
|
|
1302
|
+
select?: Prisma.AgentToolSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1303
|
+
/**
|
|
1304
|
+
* Omit specific fields from the AgentTool
|
|
1305
|
+
*/
|
|
1306
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1307
|
+
/**
|
|
1308
|
+
* The data used to update AgentTools.
|
|
1309
|
+
*/
|
|
1310
|
+
data: Prisma.XOR<Prisma.AgentToolUpdateManyMutationInput, Prisma.AgentToolUncheckedUpdateManyInput>;
|
|
1311
|
+
/**
|
|
1312
|
+
* Filter which AgentTools to update
|
|
1313
|
+
*/
|
|
1314
|
+
where?: Prisma.AgentToolWhereInput;
|
|
1315
|
+
/**
|
|
1316
|
+
* Limit how many AgentTools to update.
|
|
1317
|
+
*/
|
|
1318
|
+
limit?: number;
|
|
1319
|
+
/**
|
|
1320
|
+
* Choose, which related nodes to fetch as well
|
|
1321
|
+
*/
|
|
1322
|
+
include?: Prisma.AgentToolIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1323
|
+
};
|
|
1324
|
+
/**
|
|
1325
|
+
* AgentTool upsert
|
|
1326
|
+
*/
|
|
1327
|
+
export type AgentToolUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1328
|
+
/**
|
|
1329
|
+
* Select specific fields to fetch from the AgentTool
|
|
1330
|
+
*/
|
|
1331
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1332
|
+
/**
|
|
1333
|
+
* Omit specific fields from the AgentTool
|
|
1334
|
+
*/
|
|
1335
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1336
|
+
/**
|
|
1337
|
+
* Choose, which related nodes to fetch as well
|
|
1338
|
+
*/
|
|
1339
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1340
|
+
/**
|
|
1341
|
+
* The filter to search for the AgentTool to update in case it exists.
|
|
1342
|
+
*/
|
|
1343
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
1344
|
+
/**
|
|
1345
|
+
* In case the AgentTool found by the `where` argument doesn't exist, create a new AgentTool with this data.
|
|
1346
|
+
*/
|
|
1347
|
+
create: Prisma.XOR<Prisma.AgentToolCreateInput, Prisma.AgentToolUncheckedCreateInput>;
|
|
1348
|
+
/**
|
|
1349
|
+
* In case the AgentTool was found with the provided `where` argument, update it with this data.
|
|
1350
|
+
*/
|
|
1351
|
+
update: Prisma.XOR<Prisma.AgentToolUpdateInput, Prisma.AgentToolUncheckedUpdateInput>;
|
|
1352
|
+
};
|
|
1353
|
+
/**
|
|
1354
|
+
* AgentTool delete
|
|
1355
|
+
*/
|
|
1356
|
+
export type AgentToolDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1357
|
+
/**
|
|
1358
|
+
* Select specific fields to fetch from the AgentTool
|
|
1359
|
+
*/
|
|
1360
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1361
|
+
/**
|
|
1362
|
+
* Omit specific fields from the AgentTool
|
|
1363
|
+
*/
|
|
1364
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1365
|
+
/**
|
|
1366
|
+
* Choose, which related nodes to fetch as well
|
|
1367
|
+
*/
|
|
1368
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1369
|
+
/**
|
|
1370
|
+
* Filter which AgentTool to delete.
|
|
1371
|
+
*/
|
|
1372
|
+
where: Prisma.AgentToolWhereUniqueInput;
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* AgentTool deleteMany
|
|
1376
|
+
*/
|
|
1377
|
+
export type AgentToolDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1378
|
+
/**
|
|
1379
|
+
* Filter which AgentTools to delete
|
|
1380
|
+
*/
|
|
1381
|
+
where?: Prisma.AgentToolWhereInput;
|
|
1382
|
+
/**
|
|
1383
|
+
* Limit how many AgentTools to delete.
|
|
1384
|
+
*/
|
|
1385
|
+
limit?: number;
|
|
1386
|
+
};
|
|
1387
|
+
/**
|
|
1388
|
+
* AgentTool without action
|
|
1389
|
+
*/
|
|
1390
|
+
export type AgentToolDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1391
|
+
/**
|
|
1392
|
+
* Select specific fields to fetch from the AgentTool
|
|
1393
|
+
*/
|
|
1394
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1395
|
+
/**
|
|
1396
|
+
* Omit specific fields from the AgentTool
|
|
1397
|
+
*/
|
|
1398
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1399
|
+
/**
|
|
1400
|
+
* Choose, which related nodes to fetch as well
|
|
1401
|
+
*/
|
|
1402
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1403
|
+
};
|