@app-vitals/agent-admin 0.0.0-stage → 0.1.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/Dockerfile +43 -0
- package/README.md +72 -2
- package/e2e/agents-page.e2e.ts +338 -0
- package/e2e/chat-degraded.e2e.ts +153 -0
- package/e2e/chat-page.e2e.ts +169 -0
- package/e2e/chat-progress.e2e.ts +206 -0
- package/e2e/chat-thread-page.e2e.ts +444 -0
- package/e2e/login-page.e2e.ts +148 -0
- package/e2e/test-server.ts +427 -0
- package/openapi.json +6098 -0
- package/openapi.platform.json +5553 -0
- package/package.json +64 -4
- package/playwright.config.ts +25 -0
- package/prisma/client/browser.ts +134 -0
- package/prisma/client/client.ts +158 -0
- package/prisma/client/commonInputTypes.ts +578 -0
- package/prisma/client/enums.ts +15 -0
- package/prisma/client/internal/class.ts +424 -0
- package/prisma/client/internal/prismaNamespace.ts +2898 -0
- package/prisma/client/internal/prismaNamespaceBrowser.ts +476 -0
- package/prisma/client/models/Account.ts +1774 -0
- package/prisma/client/models/AccountInvite.ts +1386 -0
- package/prisma/client/models/AccountMember.ts +1351 -0
- package/prisma/client/models/Agent.ts +4554 -0
- package/prisma/client/models/AgentAsk.ts +1373 -0
- package/prisma/client/models/AgentChatTokenUsageDailyByModel.ts +1638 -0
- package/prisma/client/models/AgentCronJob.ts +2416 -0
- package/prisma/client/models/AgentCronRun.ts +2858 -0
- package/prisma/client/models/AgentCronRunModelBreakdown.ts +1532 -0
- package/prisma/client/models/AgentCronRunSkillUsage.ts +1642 -0
- package/prisma/client/models/AgentEnv.ts +1421 -0
- package/prisma/client/models/AgentGitHubInstallationsSnapshot.ts +1289 -0
- package/prisma/client/models/AgentMember.ts +1316 -0
- package/prisma/client/models/AgentPhaseMethodology.ts +1355 -0
- package/prisma/client/models/AgentPlugin.ts +1421 -0
- package/prisma/client/models/AgentToken.ts +1380 -0
- package/prisma/client/models/AgentTool.ts +1351 -0
- package/prisma/client/models/AgentWorkQueueSnapshot.ts +1297 -0
- package/prisma/client/models/ChatThreadWatch.ts +1183 -0
- package/prisma/client/models/PushSubscription.ts +1233 -0
- package/prisma/client/models/SessionAlertState.ts +1187 -0
- package/prisma/client/models/SessionFollow.ts +1187 -0
- package/prisma/client/models/UserNotificationPrefs.ts +1221 -0
- package/prisma/client/models.ts +34 -0
- package/prisma/migrations/20260608000000_init/migration.sql +112 -0
- package/prisma/migrations/20260616000000_agent_members/migration.sql +18 -0
- package/prisma/migrations/20260624000000_add_agent_self_hosted/migration.sql +2 -0
- package/prisma/migrations/20260624120000_add_agent_repos/migration.sql +3 -0
- package/prisma/migrations/20260625000000_add_agent_cron_run/migration.sql +26 -0
- package/prisma/migrations/20260626000000_add_cron_run_token_fields/migration.sql +10 -0
- package/prisma/migrations/20260627000000_add_agent_chat_token_usage_daily/migration.sql +18 -0
- package/prisma/migrations/20260627010000_add_agent_chat_token_usage_fk/migration.sql +2 -0
- package/prisma/migrations/20260701000000_add_chat_threads_messages/migration.sql +37 -0
- package/prisma/migrations/20260701010000_drop_chat_threads_messages/migration.sql +17 -0
- package/prisma/migrations/20260701020000_add_cron_run_model_breakdown/migration.sql +23 -0
- package/prisma/migrations/20260701020000_chat_token_by_model/migration.sql +25 -0
- package/prisma/migrations/20260701030000_add_secret_flag_to_agent_env/migration.sql +2 -0
- package/prisma/migrations/20260701030000_drop_cron_run_legacy_columns/migration.sql +5 -0
- package/prisma/migrations/20260706000000_consolidate_cron_run_token_accounting/migration.sql +54 -0
- package/prisma/migrations/20260709000000_add_phase_to_agent_cron_run/migration.sql +8 -0
- package/prisma/migrations/20260717000000_add_item_tracking_to_agent_cron_run/migration.sql +10 -0
- package/prisma/migrations/20260717010000_add_agent_work_queue_snapshot/migration.sql +20 -0
- package/prisma/migrations/20260718000000_add_cron_phase_columns/migration.sql +25 -0
- package/prisma/migrations/20260718100000_drop_agent_cron_run_phase_column/migration.sql +8 -0
- package/prisma/migrations/20260724000000_add_agent_type_name/migration.sql +3 -0
- package/prisma/migrations/20260725232433_add_agent_author_allowlist/migration.sql +2 -0
- package/prisma/migrations/20260727120000_add_not_null_to_agent_author_allowlist/migration.sql +3 -0
- package/prisma/migrations/20260731000000_add_session_id_to_agent_cron_run/migration.sql +2 -0
- package/prisma/migrations/20260821000000_add_agent_restrict_slack_to_members/migration.sql +3 -0
- package/prisma/migrations/20260901000000_add_push_subscription_and_chat_thread_watch/migration.sql +40 -0
- package/prisma/migrations/20260903000000_add_agent_patch_author_allowlist/migration.sql +2 -0
- package/prisma/migrations/20260903120000_add_agent_review_author_allowlist/migration.sql +18 -0
- package/prisma/migrations/20260903150000_drop_agent_author_allowlist/migration.sql +14 -0
- package/prisma/migrations/20260905000000_add_started_at_index_to_agent_cron_run/migration.sql +11 -0
- package/prisma/migrations/20260906000000_add_session_follow_notification_prefs_alert_state/migration.sql +47 -0
- package/prisma/migrations/20260911000000_backfill_auto_follow_since/migration.sql +16 -0
- package/prisma/migrations/20260923115814_add_last_heartbeat_at_to_agent_cron_run/migration.sql +2 -0
- package/prisma/migrations/20260924120000_add_trial_expiry_fields_to_agent/migration.sql +6 -0
- package/prisma/migrations/20260929000000_add_agent_phase_methodology/migration.sql +21 -0
- package/prisma/migrations/20260929120000_add_agent_policy_fields/migration.sql +15 -0
- package/prisma/migrations/20261005000000_add_agent_github_installations_snapshot/migration.sql +21 -0
- package/prisma/migrations/20261008000000_add_cron_run_telemetry/migration.sql +50 -0
- package/prisma/migrations/20261008010000_add_account_models/migration.sql +48 -0
- package/prisma/migrations/20261008020000_add_cron_lockdown_disabled_at/migration.sql +3 -0
- package/prisma/migrations/20261009000000_chat_token_usage_bigint/migration.sql +7 -0
- package/prisma/migrations/20261010000000_add_cron_run_command_variant/migration.sql +2 -0
- package/prisma/migrations/20261019000000_add_agent_anthropic_identity/migration.sql +9 -0
- package/prisma/migrations/20261025000000_add_agent_ask/migration.sql +23 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema/coding.prisma +85 -0
- package/prisma/schema/schema.prisma +506 -0
- package/prisma.config.ts +34 -0
- package/pwa-assets/icons/apple-touch-icon.png +0 -0
- package/pwa-assets/icons/favicon-32.png +0 -0
- package/pwa-assets/icons/icon-192.png +0 -0
- package/pwa-assets/icons/icon-512.png +0 -0
- package/pwa-assets/icons/icon-maskable-192.png +0 -0
- package/pwa-assets/icons/icon-maskable-512.png +0 -0
- package/src/account-agent-create.ts +42 -0
- package/src/account-agent-create.unit.test.ts +28 -0
- package/src/account-created-notifier.ts +71 -0
- package/src/account-created-notifier.unit.test.ts +70 -0
- package/src/account-email.ts +9 -0
- package/src/account-email.unit.test.ts +21 -0
- package/src/account-invites.ts +70 -0
- package/src/account-lifecycle.integration.test.ts +329 -0
- package/src/account-lifecycle.ts +206 -0
- package/src/account-lifecycle.unit.test.ts +108 -0
- package/src/account-members.ts +128 -0
- package/src/account-onboarding.integration.test.ts +101 -0
- package/src/account-onboarding.ts +95 -0
- package/src/account-trial-expiry-sweeper.ts +85 -0
- package/src/account-trial-warning-sweeper.integration.test.ts +228 -0
- package/src/account-trial-warning-sweeper.ts +216 -0
- package/src/accounts-api.integration.test.ts +196 -0
- package/src/accounts-api.smoke.test.ts +292 -0
- package/src/accounts-api.ts +289 -0
- package/src/accounts-api.unit.test.ts +93 -0
- package/src/accounts.integration.test.ts +178 -0
- package/src/accounts.ts +208 -0
- package/src/admin-boot-config.ts +574 -0
- package/src/admin-boot-config.unit.test.ts +28 -0
- package/src/admin-boot.boot-order.unit.test.ts +91 -0
- package/src/admin-boot.ts +690 -0
- package/src/admin-dev-login.smoke.test.ts +317 -0
- package/src/admin-extension.ts +432 -0
- package/src/admin-extension.unit.test.ts +532 -0
- package/src/admin-local-agent.smoke.test.ts +1643 -0
- package/src/admin-spec.smoke.test.ts +96 -0
- package/src/admin-spec.ts +186 -0
- package/src/admin-ui-account-nav.ts +20 -0
- package/src/admin-ui-account-pages.ts +131 -0
- package/src/admin-ui-account-pages.unit.test.ts +112 -0
- package/src/admin-ui-account.smoke.test.ts +286 -0
- package/src/admin-ui-account.ts +185 -0
- package/src/admin-ui-accounts-pages.ts +202 -0
- package/src/admin-ui-accounts-pages.unit.test.ts +138 -0
- package/src/admin-ui-accounts.smoke.test.ts +434 -0
- package/src/admin-ui-accounts.ts +266 -0
- package/src/admin-ui-layout.ts +60 -0
- package/src/admin-ui-layout.unit.test.ts +140 -0
- package/src/admin-ui-pages.ts +3489 -0
- package/src/admin-ui-pages.unit.test.ts +4355 -0
- package/src/admin-ui-push-test.smoke.test.ts +125 -0
- package/src/admin-ui-push-test.ts +102 -0
- package/src/admin-ui-styles.ts +656 -0
- package/src/admin-ui-styles.unit.test.ts +103 -0
- package/src/admin-ui.fixtures.ts +457 -0
- package/src/admin-ui.smoke.test.ts +7227 -0
- package/src/admin-ui.ts +3824 -0
- package/src/agent-account-assignment.ts +49 -0
- package/src/agent-account-assignment.unit.test.ts +99 -0
- package/src/agent-anthropic-identity.integration.test.ts +99 -0
- package/src/agent-anthropic-identity.ts +78 -0
- package/src/agent-anthropic-identity.unit.test.ts +77 -0
- package/src/agent-ask-config.ts +59 -0
- package/src/agent-ask-config.unit.test.ts +70 -0
- package/src/agent-ask.integration.test.ts +175 -0
- package/src/agent-ask.smoke.test.ts +457 -0
- package/src/agent-ask.ts +378 -0
- package/src/agent-chat-tokens.integration.test.ts +420 -0
- package/src/agent-chat-tokens.smoke.test.ts +551 -0
- package/src/agent-chat-tokens.ts +259 -0
- package/src/agent-cron-jobs.integration.test.ts +582 -0
- package/src/agent-cron-jobs.ts +615 -0
- package/src/agent-cron-jobs.unit.test.ts +420 -0
- package/src/agent-cron-run-stats.integration.test.ts +1551 -0
- package/src/agent-cron-run-stats.smoke.test.ts +953 -0
- package/src/agent-cron-run-stats.ts +752 -0
- package/src/agent-cron-runs.integration.test.ts +1491 -0
- package/src/agent-cron-runs.ts +489 -0
- package/src/agent-deletion-checklist.ts +128 -0
- package/src/agent-deletion-checklist.unit.test.ts +201 -0
- package/src/agent-deletion-per-agent.integration.test.ts +323 -0
- package/src/agent-deletion.integration.test.ts +323 -0
- package/src/agent-deletion.ts +329 -0
- package/src/agent-deletion.unit.test.ts +412 -0
- package/src/agent-envs.integration.test.ts +323 -0
- package/src/agent-envs.ts +244 -0
- package/src/agent-github-installations.integration.test.ts +115 -0
- package/src/agent-github-installations.ts +52 -0
- package/src/agent-manifest.ts +685 -0
- package/src/agent-manifest.unit.test.ts +870 -0
- package/src/agent-members.ts +69 -0
- package/src/agent-members.unit.test.ts +250 -0
- package/src/agent-patch-author-allowlist.integration.test.ts +218 -0
- package/src/agent-plugins.integration.test.ts +157 -0
- package/src/agent-plugins.ts +95 -0
- package/src/agent-plugins.unit.test.ts +43 -0
- package/src/agent-provisioner-per-agent.integration.test.ts +949 -0
- package/src/agent-provisioner.integration.test.ts +1245 -0
- package/src/agent-provisioner.ts +1650 -0
- package/src/agent-provisioner.unit.test.ts +1852 -0
- package/src/agent-tokens.integration.test.ts +150 -0
- package/src/agent-tokens.ts +112 -0
- package/src/agent-tools.integration.test.ts +129 -0
- package/src/agent-tools.ts +111 -0
- package/src/agents-api.integration.test.ts +705 -0
- package/src/agents-api.sentry.smoke.test.ts +478 -0
- package/src/agents-api.smoke.test.ts +5986 -0
- package/src/agents-api.ts +2826 -0
- package/src/agents.integration.test.ts +512 -0
- package/src/agents.ts +1097 -0
- package/src/agents.unit.test.ts +1736 -0
- package/src/anthropic-credential-guard.ts +44 -0
- package/src/anthropic-credential-guard.unit.test.ts +88 -0
- package/src/anthropic-federated-token-provider.integration.test.ts +248 -0
- package/src/anthropic-federated-token-provider.ts +249 -0
- package/src/anthropic-identity-client.fixtures.ts +237 -0
- package/src/anthropic-identity-client.integration.test.ts +342 -0
- package/src/anthropic-identity-client.ts +473 -0
- package/src/anthropic-identity-fixture-spec.integration.test.ts +169 -0
- package/src/anthropic-identity-name.integration.test.ts +83 -0
- package/src/anthropic-identity-name.ts +163 -0
- package/src/anthropic-identity-name.unit.test.ts +345 -0
- package/src/anthropic-openapi-contract.fixtures.ts +192 -0
- package/src/api-auth.ts +383 -0
- package/src/api-auth.unit.test.ts +837 -0
- package/src/api.smoke.test.ts +1225 -0
- package/src/api.ts +376 -0
- package/src/attachment-validation.ts +124 -0
- package/src/attachment-validation.unit.test.ts +218 -0
- package/src/caller-scope.ts +131 -0
- package/src/caller-scope.unit.test.ts +116 -0
- package/src/chat-credential-config.ts +22 -0
- package/src/chat-credentials-logging.unit.test.ts +92 -0
- package/src/chat-markers.ts +114 -0
- package/src/chat-markers.unit.test.ts +116 -0
- package/src/chat-service-provisioning-client.integration.test.ts +412 -0
- package/src/chat-service-provisioning-client.ts +221 -0
- package/src/chat.smoke.test.ts +1875 -0
- package/src/clock.ts +47 -0
- package/src/coding-task-store-provisioning-client.integration.test.ts +372 -0
- package/src/coding-task-store-provisioning-client.ts +156 -0
- package/src/crypto.ts +83 -0
- package/src/dev-auth-guard.ts +29 -0
- package/src/dev-auth-guard.unit.test.ts +51 -0
- package/src/errors.ts +77 -0
- package/src/errors.unit.test.ts +52 -0
- package/src/fixtures/anthropic-identity-recorded-fixtures.json +850 -0
- package/src/fixtures/anthropic-openapi/SDK_VERSION +1 -0
- package/src/fixtures/anthropic-openapi/mock-spec.json.gz +0 -0
- package/src/fixtures/chat-service-provisioning-cassette.json +156 -0
- package/src/fixtures/github-app-manifest-cassette.json +44 -0
- package/src/fixtures/google-auth-cassette.json +36 -0
- package/src/fixtures/http-chat-client-cassette.json +226 -0
- package/src/fixtures/k8s-cassette.json +470 -0
- package/src/fixtures/okta-auth-cassette.json +36 -0
- package/src/fixtures/slack-provision-cassette.json +12 -0
- package/src/fixtures/slack-provisioning-http-cassette.json +98 -0
- package/src/fixtures/task-store-provisioning-cassette.json +85 -0
- package/src/github-app-provisioning-client.integration.test.ts +149 -0
- package/src/github-app-provisioning-client.ts +161 -0
- package/src/github-app-provisioning-client.unit.test.ts +114 -0
- package/src/github-provisioning-service.ts +569 -0
- package/src/github-provisioning-service.unit.test.ts +123 -0
- package/src/google-auth-client.integration.test.ts +195 -0
- package/src/google-auth-client.ts +121 -0
- package/src/http-chat-client.integration.test.ts +554 -0
- package/src/http-chat-client.ts +533 -0
- package/src/http-chat-client.unit.test.ts +119 -0
- package/src/import-boundary.unit.test.ts +240 -0
- package/src/kubernetes-client.integration.test.ts +697 -0
- package/src/kubernetes-client.ts +1027 -0
- package/src/kubernetes-client.unit.test.ts +726 -0
- package/src/main.smoke.test.ts +91 -0
- package/src/main.ts +21 -0
- package/src/main.unit.test.ts +801 -0
- package/src/okta-auth-client.integration.test.ts +263 -0
- package/src/okta-auth-client.ts +152 -0
- package/src/openapi-schemas.ts +1310 -0
- package/src/openapi-schemas.unit.test.ts +348 -0
- package/src/per-agent-identity.fixtures.ts +305 -0
- package/src/platform-doc-route.ts +40 -0
- package/src/prisma-client.integration.test.ts +57 -0
- package/src/prisma-client.ts +187 -0
- package/src/prisma-client.unit.test.ts +178 -0
- package/src/prisma-tx.ts +23 -0
- package/src/push-content.ts +177 -0
- package/src/push-content.unit.test.ts +213 -0
- package/src/push-crypto.ts +135 -0
- package/src/push-crypto.unit.test.ts +66 -0
- package/src/push-sender.ts +169 -0
- package/src/push-sender.unit.test.ts +107 -0
- package/src/push-service.ts +332 -0
- package/src/push-service.unit.test.ts +679 -0
- package/src/push-toggle.ts +135 -0
- package/src/push-toggle.unit.test.ts +78 -0
- package/src/pwa-https-gating.smoke.test.ts +229 -0
- package/src/pwa-icons.unit.test.ts +41 -0
- package/src/pwa-routes.smoke.test.ts +276 -0
- package/src/pwa.ts +380 -0
- package/src/pwa.unit.test.ts +321 -0
- package/src/schema.unit.test.ts +122 -0
- package/src/self-serve-config.ts +52 -0
- package/src/self-serve-config.unit.test.ts +79 -0
- package/src/server.smoke.test.ts +273 -0
- package/src/server.ts +50 -0
- package/src/service-integration.ts +67 -0
- package/src/service-integration.unit.test.ts +129 -0
- package/src/slack-provisioning-client.integration.test.ts +308 -0
- package/src/slack-provisioning-client.ts +411 -0
- package/src/slack-provisioning-client.unit.test.ts +80 -0
- package/src/slack-provisioning-service.integration.test.ts +637 -0
- package/src/slack-provisioning-service.ts +451 -0
- package/src/slack-provisioning.integration.test.ts +395 -0
- package/src/specialty-manifest-loader.fixture.integration.test.ts +63 -0
- package/src/specialty-manifest-loader.ts +255 -0
- package/src/specialty-manifest-loader.unit.test.ts +301 -0
- package/src/specialty-registry.schema.unit.test.ts +35 -0
- package/src/specialty-registry.ts +236 -0
- package/src/specialty-registry.unit.test.ts +272 -0
- package/src/startup-policy-reconcile.ts +77 -0
- package/src/startup-policy-reconcile.unit.test.ts +251 -0
- package/src/theme-tokens.json +12 -0
- package/src/token-crypto.ts +60 -0
- package/src/token-crypto.unit.test.ts +182 -0
- package/src/trial-expiry-sweeper.integration.test.ts +318 -0
- package/src/trial-expiry-sweeper.ts +132 -0
- package/src/trial-expiry-sweeper.unit.test.ts +391 -0
- package/src/trial-expiry-warning-sweeper.integration.test.ts +468 -0
- package/src/trial-expiry-warning-sweeper.ts +447 -0
- package/src/trial-expiry-warning-sweeper.unit.test.ts +148 -0
- package/src/voice-contract.unit.test.ts +102 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,1380 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports the `AgentToken` model and its related types.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
+
import type * as $Enums from "../enums.ts"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model AgentToken
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type AgentTokenModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentTokenPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateAgentToken = {
|
|
22
|
+
_count: AgentTokenCountAggregateOutputType | null
|
|
23
|
+
_min: AgentTokenMinAggregateOutputType | null
|
|
24
|
+
_max: AgentTokenMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type AgentTokenMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
agentId: string | null
|
|
30
|
+
token: string | null
|
|
31
|
+
label: string | null
|
|
32
|
+
createdAt: Date | null
|
|
33
|
+
revokedAt: Date | null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type AgentTokenMaxAggregateOutputType = {
|
|
37
|
+
id: string | null
|
|
38
|
+
agentId: string | null
|
|
39
|
+
token: string | null
|
|
40
|
+
label: string | null
|
|
41
|
+
createdAt: Date | null
|
|
42
|
+
revokedAt: Date | null
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type AgentTokenCountAggregateOutputType = {
|
|
46
|
+
id: number
|
|
47
|
+
agentId: number
|
|
48
|
+
token: number
|
|
49
|
+
label: number
|
|
50
|
+
createdAt: number
|
|
51
|
+
revokedAt: number
|
|
52
|
+
_all: number
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
export type AgentTokenMinAggregateInputType = {
|
|
57
|
+
id?: true
|
|
58
|
+
agentId?: true
|
|
59
|
+
token?: true
|
|
60
|
+
label?: true
|
|
61
|
+
createdAt?: true
|
|
62
|
+
revokedAt?: true
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type AgentTokenMaxAggregateInputType = {
|
|
66
|
+
id?: true
|
|
67
|
+
agentId?: true
|
|
68
|
+
token?: true
|
|
69
|
+
label?: true
|
|
70
|
+
createdAt?: true
|
|
71
|
+
revokedAt?: true
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type AgentTokenCountAggregateInputType = {
|
|
75
|
+
id?: true
|
|
76
|
+
agentId?: true
|
|
77
|
+
token?: true
|
|
78
|
+
label?: true
|
|
79
|
+
createdAt?: true
|
|
80
|
+
revokedAt?: true
|
|
81
|
+
_all?: true
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type AgentTokenAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
85
|
+
/**
|
|
86
|
+
* Filter which AgentToken to aggregate.
|
|
87
|
+
*/
|
|
88
|
+
where?: Prisma.AgentTokenWhereInput
|
|
89
|
+
/**
|
|
90
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
91
|
+
*
|
|
92
|
+
* Determine the order of AgentTokens to fetch.
|
|
93
|
+
*/
|
|
94
|
+
orderBy?: Prisma.AgentTokenOrderByWithRelationInput | Prisma.AgentTokenOrderByWithRelationInput[]
|
|
95
|
+
/**
|
|
96
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
97
|
+
*
|
|
98
|
+
* Sets the start position
|
|
99
|
+
*/
|
|
100
|
+
cursor?: Prisma.AgentTokenWhereUniqueInput
|
|
101
|
+
/**
|
|
102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
103
|
+
*
|
|
104
|
+
* Take `±n` AgentTokens from the position of the cursor.
|
|
105
|
+
*/
|
|
106
|
+
take?: number
|
|
107
|
+
/**
|
|
108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
109
|
+
*
|
|
110
|
+
* Skip the first `n` AgentTokens.
|
|
111
|
+
*/
|
|
112
|
+
skip?: number
|
|
113
|
+
/**
|
|
114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
115
|
+
*
|
|
116
|
+
* Count returned AgentTokens
|
|
117
|
+
**/
|
|
118
|
+
_count?: true | AgentTokenCountAggregateInputType
|
|
119
|
+
/**
|
|
120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
121
|
+
*
|
|
122
|
+
* Select which fields to find the minimum value
|
|
123
|
+
**/
|
|
124
|
+
_min?: AgentTokenMinAggregateInputType
|
|
125
|
+
/**
|
|
126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
127
|
+
*
|
|
128
|
+
* Select which fields to find the maximum value
|
|
129
|
+
**/
|
|
130
|
+
_max?: AgentTokenMaxAggregateInputType
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type GetAgentTokenAggregateType<T extends AgentTokenAggregateArgs> = {
|
|
134
|
+
[P in keyof T & keyof AggregateAgentToken]: P extends '_count' | 'count'
|
|
135
|
+
? T[P] extends true
|
|
136
|
+
? number
|
|
137
|
+
: Prisma.GetScalarType<T[P], AggregateAgentToken[P]>
|
|
138
|
+
: Prisma.GetScalarType<T[P], AggregateAgentToken[P]>
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
export type AgentTokenGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
145
|
+
where?: Prisma.AgentTokenWhereInput
|
|
146
|
+
orderBy?: Prisma.AgentTokenOrderByWithAggregationInput | Prisma.AgentTokenOrderByWithAggregationInput[]
|
|
147
|
+
by: Prisma.AgentTokenScalarFieldEnum[] | Prisma.AgentTokenScalarFieldEnum
|
|
148
|
+
having?: Prisma.AgentTokenScalarWhereWithAggregatesInput
|
|
149
|
+
take?: number
|
|
150
|
+
skip?: number
|
|
151
|
+
_count?: AgentTokenCountAggregateInputType | true
|
|
152
|
+
_min?: AgentTokenMinAggregateInputType
|
|
153
|
+
_max?: AgentTokenMaxAggregateInputType
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type AgentTokenGroupByOutputType = {
|
|
157
|
+
id: string
|
|
158
|
+
agentId: string
|
|
159
|
+
token: string
|
|
160
|
+
label: string | null
|
|
161
|
+
createdAt: Date
|
|
162
|
+
revokedAt: Date | null
|
|
163
|
+
_count: AgentTokenCountAggregateOutputType | null
|
|
164
|
+
_min: AgentTokenMinAggregateOutputType | null
|
|
165
|
+
_max: AgentTokenMaxAggregateOutputType | null
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export type GetAgentTokenGroupByPayload<T extends AgentTokenGroupByArgs> = Prisma.PrismaPromise<
|
|
169
|
+
Array<
|
|
170
|
+
Prisma.PickEnumerable<AgentTokenGroupByOutputType, T['by']> &
|
|
171
|
+
{
|
|
172
|
+
[P in ((keyof T) & (keyof AgentTokenGroupByOutputType))]: P extends '_count'
|
|
173
|
+
? T[P] extends boolean
|
|
174
|
+
? number
|
|
175
|
+
: Prisma.GetScalarType<T[P], AgentTokenGroupByOutputType[P]>
|
|
176
|
+
: Prisma.GetScalarType<T[P], AgentTokenGroupByOutputType[P]>
|
|
177
|
+
}
|
|
178
|
+
>
|
|
179
|
+
>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
export type AgentTokenWhereInput = {
|
|
184
|
+
AND?: Prisma.AgentTokenWhereInput | Prisma.AgentTokenWhereInput[]
|
|
185
|
+
OR?: Prisma.AgentTokenWhereInput[]
|
|
186
|
+
NOT?: Prisma.AgentTokenWhereInput | Prisma.AgentTokenWhereInput[]
|
|
187
|
+
id?: Prisma.StringFilter<"AgentToken"> | string
|
|
188
|
+
agentId?: Prisma.StringFilter<"AgentToken"> | string
|
|
189
|
+
token?: Prisma.StringFilter<"AgentToken"> | string
|
|
190
|
+
label?: Prisma.StringNullableFilter<"AgentToken"> | string | null
|
|
191
|
+
createdAt?: Prisma.DateTimeFilter<"AgentToken"> | Date | string
|
|
192
|
+
revokedAt?: Prisma.DateTimeNullableFilter<"AgentToken"> | Date | string | null
|
|
193
|
+
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type AgentTokenOrderByWithRelationInput = {
|
|
197
|
+
id?: Prisma.SortOrder
|
|
198
|
+
agentId?: Prisma.SortOrder
|
|
199
|
+
token?: Prisma.SortOrder
|
|
200
|
+
label?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
201
|
+
createdAt?: Prisma.SortOrder
|
|
202
|
+
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
203
|
+
agent?: Prisma.AgentOrderByWithRelationInput
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type AgentTokenWhereUniqueInput = Prisma.AtLeast<{
|
|
207
|
+
id?: string
|
|
208
|
+
token?: string
|
|
209
|
+
AND?: Prisma.AgentTokenWhereInput | Prisma.AgentTokenWhereInput[]
|
|
210
|
+
OR?: Prisma.AgentTokenWhereInput[]
|
|
211
|
+
NOT?: Prisma.AgentTokenWhereInput | Prisma.AgentTokenWhereInput[]
|
|
212
|
+
agentId?: Prisma.StringFilter<"AgentToken"> | string
|
|
213
|
+
label?: Prisma.StringNullableFilter<"AgentToken"> | string | null
|
|
214
|
+
createdAt?: Prisma.DateTimeFilter<"AgentToken"> | Date | string
|
|
215
|
+
revokedAt?: Prisma.DateTimeNullableFilter<"AgentToken"> | Date | string | null
|
|
216
|
+
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
|
|
217
|
+
}, "id" | "token">
|
|
218
|
+
|
|
219
|
+
export type AgentTokenOrderByWithAggregationInput = {
|
|
220
|
+
id?: Prisma.SortOrder
|
|
221
|
+
agentId?: Prisma.SortOrder
|
|
222
|
+
token?: Prisma.SortOrder
|
|
223
|
+
label?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
224
|
+
createdAt?: Prisma.SortOrder
|
|
225
|
+
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
226
|
+
_count?: Prisma.AgentTokenCountOrderByAggregateInput
|
|
227
|
+
_max?: Prisma.AgentTokenMaxOrderByAggregateInput
|
|
228
|
+
_min?: Prisma.AgentTokenMinOrderByAggregateInput
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export type AgentTokenScalarWhereWithAggregatesInput = {
|
|
232
|
+
AND?: Prisma.AgentTokenScalarWhereWithAggregatesInput | Prisma.AgentTokenScalarWhereWithAggregatesInput[]
|
|
233
|
+
OR?: Prisma.AgentTokenScalarWhereWithAggregatesInput[]
|
|
234
|
+
NOT?: Prisma.AgentTokenScalarWhereWithAggregatesInput | Prisma.AgentTokenScalarWhereWithAggregatesInput[]
|
|
235
|
+
id?: Prisma.StringWithAggregatesFilter<"AgentToken"> | string
|
|
236
|
+
agentId?: Prisma.StringWithAggregatesFilter<"AgentToken"> | string
|
|
237
|
+
token?: Prisma.StringWithAggregatesFilter<"AgentToken"> | string
|
|
238
|
+
label?: Prisma.StringNullableWithAggregatesFilter<"AgentToken"> | string | null
|
|
239
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentToken"> | Date | string
|
|
240
|
+
revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AgentToken"> | Date | string | null
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type AgentTokenCreateInput = {
|
|
244
|
+
id?: string
|
|
245
|
+
token: string
|
|
246
|
+
label?: string | null
|
|
247
|
+
createdAt?: Date | string
|
|
248
|
+
revokedAt?: Date | string | null
|
|
249
|
+
agent: Prisma.AgentCreateNestedOneWithoutTokensInput
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export type AgentTokenUncheckedCreateInput = {
|
|
253
|
+
id?: string
|
|
254
|
+
agentId: string
|
|
255
|
+
token: string
|
|
256
|
+
label?: string | null
|
|
257
|
+
createdAt?: Date | string
|
|
258
|
+
revokedAt?: Date | string | null
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type AgentTokenUpdateInput = {
|
|
262
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
263
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
264
|
+
label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
265
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
266
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
267
|
+
agent?: Prisma.AgentUpdateOneRequiredWithoutTokensNestedInput
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export type AgentTokenUncheckedUpdateInput = {
|
|
271
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
272
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
273
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
274
|
+
label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
275
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
276
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export type AgentTokenCreateManyInput = {
|
|
280
|
+
id?: string
|
|
281
|
+
agentId: string
|
|
282
|
+
token: string
|
|
283
|
+
label?: string | null
|
|
284
|
+
createdAt?: Date | string
|
|
285
|
+
revokedAt?: Date | string | null
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export type AgentTokenUpdateManyMutationInput = {
|
|
289
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
290
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
291
|
+
label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
292
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
293
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export type AgentTokenUncheckedUpdateManyInput = {
|
|
297
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
298
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
299
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
300
|
+
label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
301
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
302
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export type AgentTokenListRelationFilter = {
|
|
306
|
+
every?: Prisma.AgentTokenWhereInput
|
|
307
|
+
some?: Prisma.AgentTokenWhereInput
|
|
308
|
+
none?: Prisma.AgentTokenWhereInput
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export type AgentTokenOrderByRelationAggregateInput = {
|
|
312
|
+
_count?: Prisma.SortOrder
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export type AgentTokenCountOrderByAggregateInput = {
|
|
316
|
+
id?: Prisma.SortOrder
|
|
317
|
+
agentId?: Prisma.SortOrder
|
|
318
|
+
token?: Prisma.SortOrder
|
|
319
|
+
label?: Prisma.SortOrder
|
|
320
|
+
createdAt?: Prisma.SortOrder
|
|
321
|
+
revokedAt?: Prisma.SortOrder
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export type AgentTokenMaxOrderByAggregateInput = {
|
|
325
|
+
id?: Prisma.SortOrder
|
|
326
|
+
agentId?: Prisma.SortOrder
|
|
327
|
+
token?: Prisma.SortOrder
|
|
328
|
+
label?: Prisma.SortOrder
|
|
329
|
+
createdAt?: Prisma.SortOrder
|
|
330
|
+
revokedAt?: Prisma.SortOrder
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export type AgentTokenMinOrderByAggregateInput = {
|
|
334
|
+
id?: Prisma.SortOrder
|
|
335
|
+
agentId?: Prisma.SortOrder
|
|
336
|
+
token?: Prisma.SortOrder
|
|
337
|
+
label?: Prisma.SortOrder
|
|
338
|
+
createdAt?: Prisma.SortOrder
|
|
339
|
+
revokedAt?: Prisma.SortOrder
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export type AgentTokenCreateNestedManyWithoutAgentInput = {
|
|
343
|
+
create?: Prisma.XOR<Prisma.AgentTokenCreateWithoutAgentInput, Prisma.AgentTokenUncheckedCreateWithoutAgentInput> | Prisma.AgentTokenCreateWithoutAgentInput[] | Prisma.AgentTokenUncheckedCreateWithoutAgentInput[]
|
|
344
|
+
connectOrCreate?: Prisma.AgentTokenCreateOrConnectWithoutAgentInput | Prisma.AgentTokenCreateOrConnectWithoutAgentInput[]
|
|
345
|
+
createMany?: Prisma.AgentTokenCreateManyAgentInputEnvelope
|
|
346
|
+
connect?: Prisma.AgentTokenWhereUniqueInput | Prisma.AgentTokenWhereUniqueInput[]
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export type AgentTokenUncheckedCreateNestedManyWithoutAgentInput = {
|
|
350
|
+
create?: Prisma.XOR<Prisma.AgentTokenCreateWithoutAgentInput, Prisma.AgentTokenUncheckedCreateWithoutAgentInput> | Prisma.AgentTokenCreateWithoutAgentInput[] | Prisma.AgentTokenUncheckedCreateWithoutAgentInput[]
|
|
351
|
+
connectOrCreate?: Prisma.AgentTokenCreateOrConnectWithoutAgentInput | Prisma.AgentTokenCreateOrConnectWithoutAgentInput[]
|
|
352
|
+
createMany?: Prisma.AgentTokenCreateManyAgentInputEnvelope
|
|
353
|
+
connect?: Prisma.AgentTokenWhereUniqueInput | Prisma.AgentTokenWhereUniqueInput[]
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export type AgentTokenUpdateManyWithoutAgentNestedInput = {
|
|
357
|
+
create?: Prisma.XOR<Prisma.AgentTokenCreateWithoutAgentInput, Prisma.AgentTokenUncheckedCreateWithoutAgentInput> | Prisma.AgentTokenCreateWithoutAgentInput[] | Prisma.AgentTokenUncheckedCreateWithoutAgentInput[]
|
|
358
|
+
connectOrCreate?: Prisma.AgentTokenCreateOrConnectWithoutAgentInput | Prisma.AgentTokenCreateOrConnectWithoutAgentInput[]
|
|
359
|
+
upsert?: Prisma.AgentTokenUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentTokenUpsertWithWhereUniqueWithoutAgentInput[]
|
|
360
|
+
createMany?: Prisma.AgentTokenCreateManyAgentInputEnvelope
|
|
361
|
+
set?: Prisma.AgentTokenWhereUniqueInput | Prisma.AgentTokenWhereUniqueInput[]
|
|
362
|
+
disconnect?: Prisma.AgentTokenWhereUniqueInput | Prisma.AgentTokenWhereUniqueInput[]
|
|
363
|
+
delete?: Prisma.AgentTokenWhereUniqueInput | Prisma.AgentTokenWhereUniqueInput[]
|
|
364
|
+
connect?: Prisma.AgentTokenWhereUniqueInput | Prisma.AgentTokenWhereUniqueInput[]
|
|
365
|
+
update?: Prisma.AgentTokenUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentTokenUpdateWithWhereUniqueWithoutAgentInput[]
|
|
366
|
+
updateMany?: Prisma.AgentTokenUpdateManyWithWhereWithoutAgentInput | Prisma.AgentTokenUpdateManyWithWhereWithoutAgentInput[]
|
|
367
|
+
deleteMany?: Prisma.AgentTokenScalarWhereInput | Prisma.AgentTokenScalarWhereInput[]
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export type AgentTokenUncheckedUpdateManyWithoutAgentNestedInput = {
|
|
371
|
+
create?: Prisma.XOR<Prisma.AgentTokenCreateWithoutAgentInput, Prisma.AgentTokenUncheckedCreateWithoutAgentInput> | Prisma.AgentTokenCreateWithoutAgentInput[] | Prisma.AgentTokenUncheckedCreateWithoutAgentInput[]
|
|
372
|
+
connectOrCreate?: Prisma.AgentTokenCreateOrConnectWithoutAgentInput | Prisma.AgentTokenCreateOrConnectWithoutAgentInput[]
|
|
373
|
+
upsert?: Prisma.AgentTokenUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentTokenUpsertWithWhereUniqueWithoutAgentInput[]
|
|
374
|
+
createMany?: Prisma.AgentTokenCreateManyAgentInputEnvelope
|
|
375
|
+
set?: Prisma.AgentTokenWhereUniqueInput | Prisma.AgentTokenWhereUniqueInput[]
|
|
376
|
+
disconnect?: Prisma.AgentTokenWhereUniqueInput | Prisma.AgentTokenWhereUniqueInput[]
|
|
377
|
+
delete?: Prisma.AgentTokenWhereUniqueInput | Prisma.AgentTokenWhereUniqueInput[]
|
|
378
|
+
connect?: Prisma.AgentTokenWhereUniqueInput | Prisma.AgentTokenWhereUniqueInput[]
|
|
379
|
+
update?: Prisma.AgentTokenUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentTokenUpdateWithWhereUniqueWithoutAgentInput[]
|
|
380
|
+
updateMany?: Prisma.AgentTokenUpdateManyWithWhereWithoutAgentInput | Prisma.AgentTokenUpdateManyWithWhereWithoutAgentInput[]
|
|
381
|
+
deleteMany?: Prisma.AgentTokenScalarWhereInput | Prisma.AgentTokenScalarWhereInput[]
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export type AgentTokenCreateWithoutAgentInput = {
|
|
385
|
+
id?: string
|
|
386
|
+
token: string
|
|
387
|
+
label?: string | null
|
|
388
|
+
createdAt?: Date | string
|
|
389
|
+
revokedAt?: Date | string | null
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export type AgentTokenUncheckedCreateWithoutAgentInput = {
|
|
393
|
+
id?: string
|
|
394
|
+
token: string
|
|
395
|
+
label?: string | null
|
|
396
|
+
createdAt?: Date | string
|
|
397
|
+
revokedAt?: Date | string | null
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export type AgentTokenCreateOrConnectWithoutAgentInput = {
|
|
401
|
+
where: Prisma.AgentTokenWhereUniqueInput
|
|
402
|
+
create: Prisma.XOR<Prisma.AgentTokenCreateWithoutAgentInput, Prisma.AgentTokenUncheckedCreateWithoutAgentInput>
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export type AgentTokenCreateManyAgentInputEnvelope = {
|
|
406
|
+
data: Prisma.AgentTokenCreateManyAgentInput | Prisma.AgentTokenCreateManyAgentInput[]
|
|
407
|
+
skipDuplicates?: boolean
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export type AgentTokenUpsertWithWhereUniqueWithoutAgentInput = {
|
|
411
|
+
where: Prisma.AgentTokenWhereUniqueInput
|
|
412
|
+
update: Prisma.XOR<Prisma.AgentTokenUpdateWithoutAgentInput, Prisma.AgentTokenUncheckedUpdateWithoutAgentInput>
|
|
413
|
+
create: Prisma.XOR<Prisma.AgentTokenCreateWithoutAgentInput, Prisma.AgentTokenUncheckedCreateWithoutAgentInput>
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export type AgentTokenUpdateWithWhereUniqueWithoutAgentInput = {
|
|
417
|
+
where: Prisma.AgentTokenWhereUniqueInput
|
|
418
|
+
data: Prisma.XOR<Prisma.AgentTokenUpdateWithoutAgentInput, Prisma.AgentTokenUncheckedUpdateWithoutAgentInput>
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export type AgentTokenUpdateManyWithWhereWithoutAgentInput = {
|
|
422
|
+
where: Prisma.AgentTokenScalarWhereInput
|
|
423
|
+
data: Prisma.XOR<Prisma.AgentTokenUpdateManyMutationInput, Prisma.AgentTokenUncheckedUpdateManyWithoutAgentInput>
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export type AgentTokenScalarWhereInput = {
|
|
427
|
+
AND?: Prisma.AgentTokenScalarWhereInput | Prisma.AgentTokenScalarWhereInput[]
|
|
428
|
+
OR?: Prisma.AgentTokenScalarWhereInput[]
|
|
429
|
+
NOT?: Prisma.AgentTokenScalarWhereInput | Prisma.AgentTokenScalarWhereInput[]
|
|
430
|
+
id?: Prisma.StringFilter<"AgentToken"> | string
|
|
431
|
+
agentId?: Prisma.StringFilter<"AgentToken"> | string
|
|
432
|
+
token?: Prisma.StringFilter<"AgentToken"> | string
|
|
433
|
+
label?: Prisma.StringNullableFilter<"AgentToken"> | string | null
|
|
434
|
+
createdAt?: Prisma.DateTimeFilter<"AgentToken"> | Date | string
|
|
435
|
+
revokedAt?: Prisma.DateTimeNullableFilter<"AgentToken"> | Date | string | null
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export type AgentTokenCreateManyAgentInput = {
|
|
439
|
+
id?: string
|
|
440
|
+
token: string
|
|
441
|
+
label?: string | null
|
|
442
|
+
createdAt?: Date | string
|
|
443
|
+
revokedAt?: Date | string | null
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export type AgentTokenUpdateWithoutAgentInput = {
|
|
447
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
448
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
449
|
+
label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
450
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
451
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export type AgentTokenUncheckedUpdateWithoutAgentInput = {
|
|
455
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
456
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
457
|
+
label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
458
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
459
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export type AgentTokenUncheckedUpdateManyWithoutAgentInput = {
|
|
463
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
464
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
465
|
+
label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
466
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
467
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
export type AgentTokenSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
473
|
+
id?: boolean
|
|
474
|
+
agentId?: boolean
|
|
475
|
+
token?: boolean
|
|
476
|
+
label?: boolean
|
|
477
|
+
createdAt?: boolean
|
|
478
|
+
revokedAt?: boolean
|
|
479
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
480
|
+
}, ExtArgs["result"]["agentToken"]>
|
|
481
|
+
|
|
482
|
+
export type AgentTokenSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
483
|
+
id?: boolean
|
|
484
|
+
agentId?: boolean
|
|
485
|
+
token?: boolean
|
|
486
|
+
label?: boolean
|
|
487
|
+
createdAt?: boolean
|
|
488
|
+
revokedAt?: boolean
|
|
489
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
490
|
+
}, ExtArgs["result"]["agentToken"]>
|
|
491
|
+
|
|
492
|
+
export type AgentTokenSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
493
|
+
id?: boolean
|
|
494
|
+
agentId?: boolean
|
|
495
|
+
token?: boolean
|
|
496
|
+
label?: boolean
|
|
497
|
+
createdAt?: boolean
|
|
498
|
+
revokedAt?: boolean
|
|
499
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
500
|
+
}, ExtArgs["result"]["agentToken"]>
|
|
501
|
+
|
|
502
|
+
export type AgentTokenSelectScalar = {
|
|
503
|
+
id?: boolean
|
|
504
|
+
agentId?: boolean
|
|
505
|
+
token?: boolean
|
|
506
|
+
label?: boolean
|
|
507
|
+
createdAt?: boolean
|
|
508
|
+
revokedAt?: boolean
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export type AgentTokenOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "token" | "label" | "createdAt" | "revokedAt", ExtArgs["result"]["agentToken"]>
|
|
512
|
+
export type AgentTokenInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
513
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
514
|
+
}
|
|
515
|
+
export type AgentTokenIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
516
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
517
|
+
}
|
|
518
|
+
export type AgentTokenIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
519
|
+
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export type $AgentTokenPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
523
|
+
name: "AgentToken"
|
|
524
|
+
objects: {
|
|
525
|
+
agent: Prisma.$AgentPayload<ExtArgs>
|
|
526
|
+
}
|
|
527
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
528
|
+
id: string
|
|
529
|
+
agentId: string
|
|
530
|
+
token: string
|
|
531
|
+
label: string | null
|
|
532
|
+
createdAt: Date
|
|
533
|
+
revokedAt: Date | null
|
|
534
|
+
}, ExtArgs["result"]["agentToken"]>
|
|
535
|
+
composites: {}
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export type AgentTokenGetPayload<S extends boolean | null | undefined | AgentTokenDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload, S>
|
|
539
|
+
|
|
540
|
+
export type AgentTokenCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
541
|
+
Omit<AgentTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
542
|
+
select?: AgentTokenCountAggregateInputType | true
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export interface AgentTokenDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
546
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AgentToken'], meta: { name: 'AgentToken' } }
|
|
547
|
+
/**
|
|
548
|
+
* Find zero or one AgentToken that matches the filter.
|
|
549
|
+
* @param {AgentTokenFindUniqueArgs} args - Arguments to find a AgentToken
|
|
550
|
+
* @example
|
|
551
|
+
* // Get one AgentToken
|
|
552
|
+
* const agentToken = await prisma.agentToken.findUnique({
|
|
553
|
+
* where: {
|
|
554
|
+
* // ... provide filter here
|
|
555
|
+
* }
|
|
556
|
+
* })
|
|
557
|
+
*/
|
|
558
|
+
findUnique<T extends AgentTokenFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentTokenFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentTokenClient<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Find one AgentToken that matches the filter or throw an error with `error.code='P2025'`
|
|
562
|
+
* if no matches were found.
|
|
563
|
+
* @param {AgentTokenFindUniqueOrThrowArgs} args - Arguments to find a AgentToken
|
|
564
|
+
* @example
|
|
565
|
+
* // Get one AgentToken
|
|
566
|
+
* const agentToken = await prisma.agentToken.findUniqueOrThrow({
|
|
567
|
+
* where: {
|
|
568
|
+
* // ... provide filter here
|
|
569
|
+
* }
|
|
570
|
+
* })
|
|
571
|
+
*/
|
|
572
|
+
findUniqueOrThrow<T extends AgentTokenFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentTokenClient<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Find the first AgentToken that matches the filter.
|
|
576
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
577
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
578
|
+
* @param {AgentTokenFindFirstArgs} args - Arguments to find a AgentToken
|
|
579
|
+
* @example
|
|
580
|
+
* // Get one AgentToken
|
|
581
|
+
* const agentToken = await prisma.agentToken.findFirst({
|
|
582
|
+
* where: {
|
|
583
|
+
* // ... provide filter here
|
|
584
|
+
* }
|
|
585
|
+
* })
|
|
586
|
+
*/
|
|
587
|
+
findFirst<T extends AgentTokenFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentTokenFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentTokenClient<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Find the first AgentToken that matches the filter or
|
|
591
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
592
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
593
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
594
|
+
* @param {AgentTokenFindFirstOrThrowArgs} args - Arguments to find a AgentToken
|
|
595
|
+
* @example
|
|
596
|
+
* // Get one AgentToken
|
|
597
|
+
* const agentToken = await prisma.agentToken.findFirstOrThrow({
|
|
598
|
+
* where: {
|
|
599
|
+
* // ... provide filter here
|
|
600
|
+
* }
|
|
601
|
+
* })
|
|
602
|
+
*/
|
|
603
|
+
findFirstOrThrow<T extends AgentTokenFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentTokenClient<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Find zero or more AgentTokens that matches the filter.
|
|
607
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
608
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
609
|
+
* @param {AgentTokenFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
610
|
+
* @example
|
|
611
|
+
* // Get all AgentTokens
|
|
612
|
+
* const agentTokens = await prisma.agentToken.findMany()
|
|
613
|
+
*
|
|
614
|
+
* // Get first 10 AgentTokens
|
|
615
|
+
* const agentTokens = await prisma.agentToken.findMany({ take: 10 })
|
|
616
|
+
*
|
|
617
|
+
* // Only select the `id`
|
|
618
|
+
* const agentTokenWithIdOnly = await prisma.agentToken.findMany({ select: { id: true } })
|
|
619
|
+
*
|
|
620
|
+
*/
|
|
621
|
+
findMany<T extends AgentTokenFindManyArgs>(args?: Prisma.SelectSubset<T, AgentTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Create a AgentToken.
|
|
625
|
+
* @param {AgentTokenCreateArgs} args - Arguments to create a AgentToken.
|
|
626
|
+
* @example
|
|
627
|
+
* // Create one AgentToken
|
|
628
|
+
* const AgentToken = await prisma.agentToken.create({
|
|
629
|
+
* data: {
|
|
630
|
+
* // ... data to create a AgentToken
|
|
631
|
+
* }
|
|
632
|
+
* })
|
|
633
|
+
*
|
|
634
|
+
*/
|
|
635
|
+
create<T extends AgentTokenCreateArgs>(args: Prisma.SelectSubset<T, AgentTokenCreateArgs<ExtArgs>>): Prisma.Prisma__AgentTokenClient<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Create many AgentTokens.
|
|
639
|
+
* @param {AgentTokenCreateManyArgs} args - Arguments to create many AgentTokens.
|
|
640
|
+
* @example
|
|
641
|
+
* // Create many AgentTokens
|
|
642
|
+
* const agentToken = await prisma.agentToken.createMany({
|
|
643
|
+
* data: [
|
|
644
|
+
* // ... provide data here
|
|
645
|
+
* ]
|
|
646
|
+
* })
|
|
647
|
+
*
|
|
648
|
+
*/
|
|
649
|
+
createMany<T extends AgentTokenCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Create many AgentTokens and returns the data saved in the database.
|
|
653
|
+
* @param {AgentTokenCreateManyAndReturnArgs} args - Arguments to create many AgentTokens.
|
|
654
|
+
* @example
|
|
655
|
+
* // Create many AgentTokens
|
|
656
|
+
* const agentToken = await prisma.agentToken.createManyAndReturn({
|
|
657
|
+
* data: [
|
|
658
|
+
* // ... provide data here
|
|
659
|
+
* ]
|
|
660
|
+
* })
|
|
661
|
+
*
|
|
662
|
+
* // Create many AgentTokens and only return the `id`
|
|
663
|
+
* const agentTokenWithIdOnly = await prisma.agentToken.createManyAndReturn({
|
|
664
|
+
* select: { id: true },
|
|
665
|
+
* data: [
|
|
666
|
+
* // ... provide data here
|
|
667
|
+
* ]
|
|
668
|
+
* })
|
|
669
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
670
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
671
|
+
*
|
|
672
|
+
*/
|
|
673
|
+
createManyAndReturn<T extends AgentTokenCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Delete a AgentToken.
|
|
677
|
+
* @param {AgentTokenDeleteArgs} args - Arguments to delete one AgentToken.
|
|
678
|
+
* @example
|
|
679
|
+
* // Delete one AgentToken
|
|
680
|
+
* const AgentToken = await prisma.agentToken.delete({
|
|
681
|
+
* where: {
|
|
682
|
+
* // ... filter to delete one AgentToken
|
|
683
|
+
* }
|
|
684
|
+
* })
|
|
685
|
+
*
|
|
686
|
+
*/
|
|
687
|
+
delete<T extends AgentTokenDeleteArgs>(args: Prisma.SelectSubset<T, AgentTokenDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentTokenClient<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Update one AgentToken.
|
|
691
|
+
* @param {AgentTokenUpdateArgs} args - Arguments to update one AgentToken.
|
|
692
|
+
* @example
|
|
693
|
+
* // Update one AgentToken
|
|
694
|
+
* const agentToken = await prisma.agentToken.update({
|
|
695
|
+
* where: {
|
|
696
|
+
* // ... provide filter here
|
|
697
|
+
* },
|
|
698
|
+
* data: {
|
|
699
|
+
* // ... provide data here
|
|
700
|
+
* }
|
|
701
|
+
* })
|
|
702
|
+
*
|
|
703
|
+
*/
|
|
704
|
+
update<T extends AgentTokenUpdateArgs>(args: Prisma.SelectSubset<T, AgentTokenUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentTokenClient<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Delete zero or more AgentTokens.
|
|
708
|
+
* @param {AgentTokenDeleteManyArgs} args - Arguments to filter AgentTokens to delete.
|
|
709
|
+
* @example
|
|
710
|
+
* // Delete a few AgentTokens
|
|
711
|
+
* const { count } = await prisma.agentToken.deleteMany({
|
|
712
|
+
* where: {
|
|
713
|
+
* // ... provide filter here
|
|
714
|
+
* }
|
|
715
|
+
* })
|
|
716
|
+
*
|
|
717
|
+
*/
|
|
718
|
+
deleteMany<T extends AgentTokenDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Update zero or more AgentTokens.
|
|
722
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
723
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
724
|
+
* @param {AgentTokenUpdateManyArgs} args - Arguments to update one or more rows.
|
|
725
|
+
* @example
|
|
726
|
+
* // Update many AgentTokens
|
|
727
|
+
* const agentToken = await prisma.agentToken.updateMany({
|
|
728
|
+
* where: {
|
|
729
|
+
* // ... provide filter here
|
|
730
|
+
* },
|
|
731
|
+
* data: {
|
|
732
|
+
* // ... provide data here
|
|
733
|
+
* }
|
|
734
|
+
* })
|
|
735
|
+
*
|
|
736
|
+
*/
|
|
737
|
+
updateMany<T extends AgentTokenUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Update zero or more AgentTokens and returns the data updated in the database.
|
|
741
|
+
* @param {AgentTokenUpdateManyAndReturnArgs} args - Arguments to update many AgentTokens.
|
|
742
|
+
* @example
|
|
743
|
+
* // Update many AgentTokens
|
|
744
|
+
* const agentToken = await prisma.agentToken.updateManyAndReturn({
|
|
745
|
+
* where: {
|
|
746
|
+
* // ... provide filter here
|
|
747
|
+
* },
|
|
748
|
+
* data: [
|
|
749
|
+
* // ... provide data here
|
|
750
|
+
* ]
|
|
751
|
+
* })
|
|
752
|
+
*
|
|
753
|
+
* // Update zero or more AgentTokens and only return the `id`
|
|
754
|
+
* const agentTokenWithIdOnly = await prisma.agentToken.updateManyAndReturn({
|
|
755
|
+
* select: { id: true },
|
|
756
|
+
* where: {
|
|
757
|
+
* // ... provide filter here
|
|
758
|
+
* },
|
|
759
|
+
* data: [
|
|
760
|
+
* // ... provide data here
|
|
761
|
+
* ]
|
|
762
|
+
* })
|
|
763
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
764
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
765
|
+
*
|
|
766
|
+
*/
|
|
767
|
+
updateManyAndReturn<T extends AgentTokenUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Create or update one AgentToken.
|
|
771
|
+
* @param {AgentTokenUpsertArgs} args - Arguments to update or create a AgentToken.
|
|
772
|
+
* @example
|
|
773
|
+
* // Update or create a AgentToken
|
|
774
|
+
* const agentToken = await prisma.agentToken.upsert({
|
|
775
|
+
* create: {
|
|
776
|
+
* // ... data to create a AgentToken
|
|
777
|
+
* },
|
|
778
|
+
* update: {
|
|
779
|
+
* // ... in case it already exists, update
|
|
780
|
+
* },
|
|
781
|
+
* where: {
|
|
782
|
+
* // ... the filter for the AgentToken we want to update
|
|
783
|
+
* }
|
|
784
|
+
* })
|
|
785
|
+
*/
|
|
786
|
+
upsert<T extends AgentTokenUpsertArgs>(args: Prisma.SelectSubset<T, AgentTokenUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentTokenClient<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Count the number of AgentTokens.
|
|
791
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
792
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
793
|
+
* @param {AgentTokenCountArgs} args - Arguments to filter AgentTokens to count.
|
|
794
|
+
* @example
|
|
795
|
+
* // Count the number of AgentTokens
|
|
796
|
+
* const count = await prisma.agentToken.count({
|
|
797
|
+
* where: {
|
|
798
|
+
* // ... the filter for the AgentTokens we want to count
|
|
799
|
+
* }
|
|
800
|
+
* })
|
|
801
|
+
**/
|
|
802
|
+
count<T extends AgentTokenCountArgs>(
|
|
803
|
+
args?: Prisma.Subset<T, AgentTokenCountArgs>,
|
|
804
|
+
): Prisma.PrismaPromise<
|
|
805
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
806
|
+
? T['select'] extends true
|
|
807
|
+
? number
|
|
808
|
+
: Prisma.GetScalarType<T['select'], AgentTokenCountAggregateOutputType>
|
|
809
|
+
: number
|
|
810
|
+
>
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Allows you to perform aggregations operations on a AgentToken.
|
|
814
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
815
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
816
|
+
* @param {AgentTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
817
|
+
* @example
|
|
818
|
+
* // Ordered by age ascending
|
|
819
|
+
* // Where email contains prisma.io
|
|
820
|
+
* // Limited to the 10 users
|
|
821
|
+
* const aggregations = await prisma.user.aggregate({
|
|
822
|
+
* _avg: {
|
|
823
|
+
* age: true,
|
|
824
|
+
* },
|
|
825
|
+
* where: {
|
|
826
|
+
* email: {
|
|
827
|
+
* contains: "prisma.io",
|
|
828
|
+
* },
|
|
829
|
+
* },
|
|
830
|
+
* orderBy: {
|
|
831
|
+
* age: "asc",
|
|
832
|
+
* },
|
|
833
|
+
* take: 10,
|
|
834
|
+
* })
|
|
835
|
+
**/
|
|
836
|
+
aggregate<T extends AgentTokenAggregateArgs>(args: Prisma.Subset<T, AgentTokenAggregateArgs>): Prisma.PrismaPromise<GetAgentTokenAggregateType<T>>
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Group by AgentToken.
|
|
840
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
841
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
842
|
+
* @param {AgentTokenGroupByArgs} args - Group by arguments.
|
|
843
|
+
* @example
|
|
844
|
+
* // Group by city, order by createdAt, get count
|
|
845
|
+
* const result = await prisma.user.groupBy({
|
|
846
|
+
* by: ['city', 'createdAt'],
|
|
847
|
+
* orderBy: {
|
|
848
|
+
* createdAt: true
|
|
849
|
+
* },
|
|
850
|
+
* _count: {
|
|
851
|
+
* _all: true
|
|
852
|
+
* },
|
|
853
|
+
* })
|
|
854
|
+
*
|
|
855
|
+
**/
|
|
856
|
+
groupBy<
|
|
857
|
+
T extends AgentTokenGroupByArgs,
|
|
858
|
+
HasSelectOrTake extends Prisma.Or<
|
|
859
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
860
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
861
|
+
>,
|
|
862
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
863
|
+
? { orderBy: AgentTokenGroupByArgs['orderBy'] }
|
|
864
|
+
: { orderBy?: AgentTokenGroupByArgs['orderBy'] },
|
|
865
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
866
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
867
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
868
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
869
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
870
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
871
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
872
|
+
? `Error: "by" must not be empty.`
|
|
873
|
+
: HavingValid extends Prisma.False
|
|
874
|
+
? {
|
|
875
|
+
[P in HavingFields]: P extends ByFields
|
|
876
|
+
? never
|
|
877
|
+
: P extends string
|
|
878
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
879
|
+
: [
|
|
880
|
+
Error,
|
|
881
|
+
'Field ',
|
|
882
|
+
P,
|
|
883
|
+
` in "having" needs to be provided in "by"`,
|
|
884
|
+
]
|
|
885
|
+
}[HavingFields]
|
|
886
|
+
: 'take' extends Prisma.Keys<T>
|
|
887
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
888
|
+
? ByValid extends Prisma.True
|
|
889
|
+
? {}
|
|
890
|
+
: {
|
|
891
|
+
[P in OrderFields]: P extends ByFields
|
|
892
|
+
? never
|
|
893
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
894
|
+
}[OrderFields]
|
|
895
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
896
|
+
: 'skip' extends Prisma.Keys<T>
|
|
897
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
898
|
+
? ByValid extends Prisma.True
|
|
899
|
+
? {}
|
|
900
|
+
: {
|
|
901
|
+
[P in OrderFields]: P extends ByFields
|
|
902
|
+
? never
|
|
903
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
904
|
+
}[OrderFields]
|
|
905
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
906
|
+
: ByValid extends Prisma.True
|
|
907
|
+
? {}
|
|
908
|
+
: {
|
|
909
|
+
[P in OrderFields]: P extends ByFields
|
|
910
|
+
? never
|
|
911
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
912
|
+
}[OrderFields]
|
|
913
|
+
>(args: Prisma.SubsetIntersection<T, AgentTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
914
|
+
/**
|
|
915
|
+
* Fields of the AgentToken model
|
|
916
|
+
*/
|
|
917
|
+
readonly fields: AgentTokenFieldRefs;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* The delegate class that acts as a "Promise-like" for AgentToken.
|
|
922
|
+
* Why is this prefixed with `Prisma__`?
|
|
923
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
924
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
925
|
+
*/
|
|
926
|
+
export interface Prisma__AgentTokenClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
927
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
928
|
+
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>
|
|
929
|
+
/**
|
|
930
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
931
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
932
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
933
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
934
|
+
*/
|
|
935
|
+
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>
|
|
936
|
+
/**
|
|
937
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
938
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
939
|
+
* @returns A Promise for the completion of the callback.
|
|
940
|
+
*/
|
|
941
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
942
|
+
/**
|
|
943
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
944
|
+
* resolved value cannot be modified from the callback.
|
|
945
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
946
|
+
* @returns A Promise for the completion of the callback.
|
|
947
|
+
*/
|
|
948
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Fields of the AgentToken model
|
|
956
|
+
*/
|
|
957
|
+
export interface AgentTokenFieldRefs {
|
|
958
|
+
readonly id: Prisma.FieldRef<"AgentToken", 'String'>
|
|
959
|
+
readonly agentId: Prisma.FieldRef<"AgentToken", 'String'>
|
|
960
|
+
readonly token: Prisma.FieldRef<"AgentToken", 'String'>
|
|
961
|
+
readonly label: Prisma.FieldRef<"AgentToken", 'String'>
|
|
962
|
+
readonly createdAt: Prisma.FieldRef<"AgentToken", 'DateTime'>
|
|
963
|
+
readonly revokedAt: Prisma.FieldRef<"AgentToken", 'DateTime'>
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
// Custom InputTypes
|
|
968
|
+
/**
|
|
969
|
+
* AgentToken findUnique
|
|
970
|
+
*/
|
|
971
|
+
export type AgentTokenFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
972
|
+
/**
|
|
973
|
+
* Select specific fields to fetch from the AgentToken
|
|
974
|
+
*/
|
|
975
|
+
select?: Prisma.AgentTokenSelect<ExtArgs> | null
|
|
976
|
+
/**
|
|
977
|
+
* Omit specific fields from the AgentToken
|
|
978
|
+
*/
|
|
979
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
980
|
+
/**
|
|
981
|
+
* Choose, which related nodes to fetch as well
|
|
982
|
+
*/
|
|
983
|
+
include?: Prisma.AgentTokenInclude<ExtArgs> | null
|
|
984
|
+
/**
|
|
985
|
+
* Filter, which AgentToken to fetch.
|
|
986
|
+
*/
|
|
987
|
+
where: Prisma.AgentTokenWhereUniqueInput
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* AgentToken findUniqueOrThrow
|
|
992
|
+
*/
|
|
993
|
+
export type AgentTokenFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
994
|
+
/**
|
|
995
|
+
* Select specific fields to fetch from the AgentToken
|
|
996
|
+
*/
|
|
997
|
+
select?: Prisma.AgentTokenSelect<ExtArgs> | null
|
|
998
|
+
/**
|
|
999
|
+
* Omit specific fields from the AgentToken
|
|
1000
|
+
*/
|
|
1001
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1002
|
+
/**
|
|
1003
|
+
* Choose, which related nodes to fetch as well
|
|
1004
|
+
*/
|
|
1005
|
+
include?: Prisma.AgentTokenInclude<ExtArgs> | null
|
|
1006
|
+
/**
|
|
1007
|
+
* Filter, which AgentToken to fetch.
|
|
1008
|
+
*/
|
|
1009
|
+
where: Prisma.AgentTokenWhereUniqueInput
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* AgentToken findFirst
|
|
1014
|
+
*/
|
|
1015
|
+
export type AgentTokenFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1016
|
+
/**
|
|
1017
|
+
* Select specific fields to fetch from the AgentToken
|
|
1018
|
+
*/
|
|
1019
|
+
select?: Prisma.AgentTokenSelect<ExtArgs> | null
|
|
1020
|
+
/**
|
|
1021
|
+
* Omit specific fields from the AgentToken
|
|
1022
|
+
*/
|
|
1023
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1024
|
+
/**
|
|
1025
|
+
* Choose, which related nodes to fetch as well
|
|
1026
|
+
*/
|
|
1027
|
+
include?: Prisma.AgentTokenInclude<ExtArgs> | null
|
|
1028
|
+
/**
|
|
1029
|
+
* Filter, which AgentToken to fetch.
|
|
1030
|
+
*/
|
|
1031
|
+
where?: Prisma.AgentTokenWhereInput
|
|
1032
|
+
/**
|
|
1033
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1034
|
+
*
|
|
1035
|
+
* Determine the order of AgentTokens to fetch.
|
|
1036
|
+
*/
|
|
1037
|
+
orderBy?: Prisma.AgentTokenOrderByWithRelationInput | Prisma.AgentTokenOrderByWithRelationInput[]
|
|
1038
|
+
/**
|
|
1039
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1040
|
+
*
|
|
1041
|
+
* Sets the position for searching for AgentTokens.
|
|
1042
|
+
*/
|
|
1043
|
+
cursor?: Prisma.AgentTokenWhereUniqueInput
|
|
1044
|
+
/**
|
|
1045
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1046
|
+
*
|
|
1047
|
+
* Take `±n` AgentTokens from the position of the cursor.
|
|
1048
|
+
*/
|
|
1049
|
+
take?: number
|
|
1050
|
+
/**
|
|
1051
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1052
|
+
*
|
|
1053
|
+
* Skip the first `n` AgentTokens.
|
|
1054
|
+
*/
|
|
1055
|
+
skip?: number
|
|
1056
|
+
/**
|
|
1057
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1058
|
+
*
|
|
1059
|
+
* Filter by unique combinations of AgentTokens.
|
|
1060
|
+
*/
|
|
1061
|
+
distinct?: Prisma.AgentTokenScalarFieldEnum | Prisma.AgentTokenScalarFieldEnum[]
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* AgentToken findFirstOrThrow
|
|
1066
|
+
*/
|
|
1067
|
+
export type AgentTokenFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1068
|
+
/**
|
|
1069
|
+
* Select specific fields to fetch from the AgentToken
|
|
1070
|
+
*/
|
|
1071
|
+
select?: Prisma.AgentTokenSelect<ExtArgs> | null
|
|
1072
|
+
/**
|
|
1073
|
+
* Omit specific fields from the AgentToken
|
|
1074
|
+
*/
|
|
1075
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1076
|
+
/**
|
|
1077
|
+
* Choose, which related nodes to fetch as well
|
|
1078
|
+
*/
|
|
1079
|
+
include?: Prisma.AgentTokenInclude<ExtArgs> | null
|
|
1080
|
+
/**
|
|
1081
|
+
* Filter, which AgentToken to fetch.
|
|
1082
|
+
*/
|
|
1083
|
+
where?: Prisma.AgentTokenWhereInput
|
|
1084
|
+
/**
|
|
1085
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1086
|
+
*
|
|
1087
|
+
* Determine the order of AgentTokens to fetch.
|
|
1088
|
+
*/
|
|
1089
|
+
orderBy?: Prisma.AgentTokenOrderByWithRelationInput | Prisma.AgentTokenOrderByWithRelationInput[]
|
|
1090
|
+
/**
|
|
1091
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1092
|
+
*
|
|
1093
|
+
* Sets the position for searching for AgentTokens.
|
|
1094
|
+
*/
|
|
1095
|
+
cursor?: Prisma.AgentTokenWhereUniqueInput
|
|
1096
|
+
/**
|
|
1097
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1098
|
+
*
|
|
1099
|
+
* Take `±n` AgentTokens from the position of the cursor.
|
|
1100
|
+
*/
|
|
1101
|
+
take?: number
|
|
1102
|
+
/**
|
|
1103
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1104
|
+
*
|
|
1105
|
+
* Skip the first `n` AgentTokens.
|
|
1106
|
+
*/
|
|
1107
|
+
skip?: number
|
|
1108
|
+
/**
|
|
1109
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1110
|
+
*
|
|
1111
|
+
* Filter by unique combinations of AgentTokens.
|
|
1112
|
+
*/
|
|
1113
|
+
distinct?: Prisma.AgentTokenScalarFieldEnum | Prisma.AgentTokenScalarFieldEnum[]
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* AgentToken findMany
|
|
1118
|
+
*/
|
|
1119
|
+
export type AgentTokenFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1120
|
+
/**
|
|
1121
|
+
* Select specific fields to fetch from the AgentToken
|
|
1122
|
+
*/
|
|
1123
|
+
select?: Prisma.AgentTokenSelect<ExtArgs> | null
|
|
1124
|
+
/**
|
|
1125
|
+
* Omit specific fields from the AgentToken
|
|
1126
|
+
*/
|
|
1127
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1128
|
+
/**
|
|
1129
|
+
* Choose, which related nodes to fetch as well
|
|
1130
|
+
*/
|
|
1131
|
+
include?: Prisma.AgentTokenInclude<ExtArgs> | null
|
|
1132
|
+
/**
|
|
1133
|
+
* Filter, which AgentTokens to fetch.
|
|
1134
|
+
*/
|
|
1135
|
+
where?: Prisma.AgentTokenWhereInput
|
|
1136
|
+
/**
|
|
1137
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1138
|
+
*
|
|
1139
|
+
* Determine the order of AgentTokens to fetch.
|
|
1140
|
+
*/
|
|
1141
|
+
orderBy?: Prisma.AgentTokenOrderByWithRelationInput | Prisma.AgentTokenOrderByWithRelationInput[]
|
|
1142
|
+
/**
|
|
1143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1144
|
+
*
|
|
1145
|
+
* Sets the position for listing AgentTokens.
|
|
1146
|
+
*/
|
|
1147
|
+
cursor?: Prisma.AgentTokenWhereUniqueInput
|
|
1148
|
+
/**
|
|
1149
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1150
|
+
*
|
|
1151
|
+
* Take `±n` AgentTokens from the position of the cursor.
|
|
1152
|
+
*/
|
|
1153
|
+
take?: number
|
|
1154
|
+
/**
|
|
1155
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1156
|
+
*
|
|
1157
|
+
* Skip the first `n` AgentTokens.
|
|
1158
|
+
*/
|
|
1159
|
+
skip?: number
|
|
1160
|
+
/**
|
|
1161
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1162
|
+
*
|
|
1163
|
+
* Filter by unique combinations of AgentTokens.
|
|
1164
|
+
*/
|
|
1165
|
+
distinct?: Prisma.AgentTokenScalarFieldEnum | Prisma.AgentTokenScalarFieldEnum[]
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* AgentToken create
|
|
1170
|
+
*/
|
|
1171
|
+
export type AgentTokenCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1172
|
+
/**
|
|
1173
|
+
* Select specific fields to fetch from the AgentToken
|
|
1174
|
+
*/
|
|
1175
|
+
select?: Prisma.AgentTokenSelect<ExtArgs> | null
|
|
1176
|
+
/**
|
|
1177
|
+
* Omit specific fields from the AgentToken
|
|
1178
|
+
*/
|
|
1179
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1180
|
+
/**
|
|
1181
|
+
* Choose, which related nodes to fetch as well
|
|
1182
|
+
*/
|
|
1183
|
+
include?: Prisma.AgentTokenInclude<ExtArgs> | null
|
|
1184
|
+
/**
|
|
1185
|
+
* The data needed to create a AgentToken.
|
|
1186
|
+
*/
|
|
1187
|
+
data: Prisma.XOR<Prisma.AgentTokenCreateInput, Prisma.AgentTokenUncheckedCreateInput>
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* AgentToken createMany
|
|
1192
|
+
*/
|
|
1193
|
+
export type AgentTokenCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1194
|
+
/**
|
|
1195
|
+
* The data used to create many AgentTokens.
|
|
1196
|
+
*/
|
|
1197
|
+
data: Prisma.AgentTokenCreateManyInput | Prisma.AgentTokenCreateManyInput[]
|
|
1198
|
+
skipDuplicates?: boolean
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* AgentToken createManyAndReturn
|
|
1203
|
+
*/
|
|
1204
|
+
export type AgentTokenCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1205
|
+
/**
|
|
1206
|
+
* Select specific fields to fetch from the AgentToken
|
|
1207
|
+
*/
|
|
1208
|
+
select?: Prisma.AgentTokenSelectCreateManyAndReturn<ExtArgs> | null
|
|
1209
|
+
/**
|
|
1210
|
+
* Omit specific fields from the AgentToken
|
|
1211
|
+
*/
|
|
1212
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1213
|
+
/**
|
|
1214
|
+
* The data used to create many AgentTokens.
|
|
1215
|
+
*/
|
|
1216
|
+
data: Prisma.AgentTokenCreateManyInput | Prisma.AgentTokenCreateManyInput[]
|
|
1217
|
+
skipDuplicates?: boolean
|
|
1218
|
+
/**
|
|
1219
|
+
* Choose, which related nodes to fetch as well
|
|
1220
|
+
*/
|
|
1221
|
+
include?: Prisma.AgentTokenIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* AgentToken update
|
|
1226
|
+
*/
|
|
1227
|
+
export type AgentTokenUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1228
|
+
/**
|
|
1229
|
+
* Select specific fields to fetch from the AgentToken
|
|
1230
|
+
*/
|
|
1231
|
+
select?: Prisma.AgentTokenSelect<ExtArgs> | null
|
|
1232
|
+
/**
|
|
1233
|
+
* Omit specific fields from the AgentToken
|
|
1234
|
+
*/
|
|
1235
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1236
|
+
/**
|
|
1237
|
+
* Choose, which related nodes to fetch as well
|
|
1238
|
+
*/
|
|
1239
|
+
include?: Prisma.AgentTokenInclude<ExtArgs> | null
|
|
1240
|
+
/**
|
|
1241
|
+
* The data needed to update a AgentToken.
|
|
1242
|
+
*/
|
|
1243
|
+
data: Prisma.XOR<Prisma.AgentTokenUpdateInput, Prisma.AgentTokenUncheckedUpdateInput>
|
|
1244
|
+
/**
|
|
1245
|
+
* Choose, which AgentToken to update.
|
|
1246
|
+
*/
|
|
1247
|
+
where: Prisma.AgentTokenWhereUniqueInput
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* AgentToken updateMany
|
|
1252
|
+
*/
|
|
1253
|
+
export type AgentTokenUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1254
|
+
/**
|
|
1255
|
+
* The data used to update AgentTokens.
|
|
1256
|
+
*/
|
|
1257
|
+
data: Prisma.XOR<Prisma.AgentTokenUpdateManyMutationInput, Prisma.AgentTokenUncheckedUpdateManyInput>
|
|
1258
|
+
/**
|
|
1259
|
+
* Filter which AgentTokens to update
|
|
1260
|
+
*/
|
|
1261
|
+
where?: Prisma.AgentTokenWhereInput
|
|
1262
|
+
/**
|
|
1263
|
+
* Limit how many AgentTokens to update.
|
|
1264
|
+
*/
|
|
1265
|
+
limit?: number
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* AgentToken updateManyAndReturn
|
|
1270
|
+
*/
|
|
1271
|
+
export type AgentTokenUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1272
|
+
/**
|
|
1273
|
+
* Select specific fields to fetch from the AgentToken
|
|
1274
|
+
*/
|
|
1275
|
+
select?: Prisma.AgentTokenSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1276
|
+
/**
|
|
1277
|
+
* Omit specific fields from the AgentToken
|
|
1278
|
+
*/
|
|
1279
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1280
|
+
/**
|
|
1281
|
+
* The data used to update AgentTokens.
|
|
1282
|
+
*/
|
|
1283
|
+
data: Prisma.XOR<Prisma.AgentTokenUpdateManyMutationInput, Prisma.AgentTokenUncheckedUpdateManyInput>
|
|
1284
|
+
/**
|
|
1285
|
+
* Filter which AgentTokens to update
|
|
1286
|
+
*/
|
|
1287
|
+
where?: Prisma.AgentTokenWhereInput
|
|
1288
|
+
/**
|
|
1289
|
+
* Limit how many AgentTokens to update.
|
|
1290
|
+
*/
|
|
1291
|
+
limit?: number
|
|
1292
|
+
/**
|
|
1293
|
+
* Choose, which related nodes to fetch as well
|
|
1294
|
+
*/
|
|
1295
|
+
include?: Prisma.AgentTokenIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* AgentToken upsert
|
|
1300
|
+
*/
|
|
1301
|
+
export type AgentTokenUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1302
|
+
/**
|
|
1303
|
+
* Select specific fields to fetch from the AgentToken
|
|
1304
|
+
*/
|
|
1305
|
+
select?: Prisma.AgentTokenSelect<ExtArgs> | null
|
|
1306
|
+
/**
|
|
1307
|
+
* Omit specific fields from the AgentToken
|
|
1308
|
+
*/
|
|
1309
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1310
|
+
/**
|
|
1311
|
+
* Choose, which related nodes to fetch as well
|
|
1312
|
+
*/
|
|
1313
|
+
include?: Prisma.AgentTokenInclude<ExtArgs> | null
|
|
1314
|
+
/**
|
|
1315
|
+
* The filter to search for the AgentToken to update in case it exists.
|
|
1316
|
+
*/
|
|
1317
|
+
where: Prisma.AgentTokenWhereUniqueInput
|
|
1318
|
+
/**
|
|
1319
|
+
* In case the AgentToken found by the `where` argument doesn't exist, create a new AgentToken with this data.
|
|
1320
|
+
*/
|
|
1321
|
+
create: Prisma.XOR<Prisma.AgentTokenCreateInput, Prisma.AgentTokenUncheckedCreateInput>
|
|
1322
|
+
/**
|
|
1323
|
+
* In case the AgentToken was found with the provided `where` argument, update it with this data.
|
|
1324
|
+
*/
|
|
1325
|
+
update: Prisma.XOR<Prisma.AgentTokenUpdateInput, Prisma.AgentTokenUncheckedUpdateInput>
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* AgentToken delete
|
|
1330
|
+
*/
|
|
1331
|
+
export type AgentTokenDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1332
|
+
/**
|
|
1333
|
+
* Select specific fields to fetch from the AgentToken
|
|
1334
|
+
*/
|
|
1335
|
+
select?: Prisma.AgentTokenSelect<ExtArgs> | null
|
|
1336
|
+
/**
|
|
1337
|
+
* Omit specific fields from the AgentToken
|
|
1338
|
+
*/
|
|
1339
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1340
|
+
/**
|
|
1341
|
+
* Choose, which related nodes to fetch as well
|
|
1342
|
+
*/
|
|
1343
|
+
include?: Prisma.AgentTokenInclude<ExtArgs> | null
|
|
1344
|
+
/**
|
|
1345
|
+
* Filter which AgentToken to delete.
|
|
1346
|
+
*/
|
|
1347
|
+
where: Prisma.AgentTokenWhereUniqueInput
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* AgentToken deleteMany
|
|
1352
|
+
*/
|
|
1353
|
+
export type AgentTokenDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1354
|
+
/**
|
|
1355
|
+
* Filter which AgentTokens to delete
|
|
1356
|
+
*/
|
|
1357
|
+
where?: Prisma.AgentTokenWhereInput
|
|
1358
|
+
/**
|
|
1359
|
+
* Limit how many AgentTokens to delete.
|
|
1360
|
+
*/
|
|
1361
|
+
limit?: number
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* AgentToken without action
|
|
1366
|
+
*/
|
|
1367
|
+
export type AgentTokenDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1368
|
+
/**
|
|
1369
|
+
* Select specific fields to fetch from the AgentToken
|
|
1370
|
+
*/
|
|
1371
|
+
select?: Prisma.AgentTokenSelect<ExtArgs> | null
|
|
1372
|
+
/**
|
|
1373
|
+
* Omit specific fields from the AgentToken
|
|
1374
|
+
*/
|
|
1375
|
+
omit?: Prisma.AgentTokenOmit<ExtArgs> | null
|
|
1376
|
+
/**
|
|
1377
|
+
* Choose, which related nodes to fetch as well
|
|
1378
|
+
*/
|
|
1379
|
+
include?: Prisma.AgentTokenInclude<ExtArgs> | null
|
|
1380
|
+
}
|