@otto-assistant/bridge 0.4.92
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/bin.js +2 -0
- package/dist/agent-model.e2e.test.js +755 -0
- package/dist/ai-tool-to-genai.js +233 -0
- package/dist/ai-tool-to-genai.test.js +267 -0
- package/dist/ai-tool.js +6 -0
- package/dist/anthropic-auth-plugin.js +728 -0
- package/dist/anthropic-auth-plugin.test.js +125 -0
- package/dist/anthropic-auth-state.js +231 -0
- package/dist/bin.js +90 -0
- package/dist/channel-management.js +227 -0
- package/dist/cli-parsing.test.js +137 -0
- package/dist/cli-send-thread.e2e.test.js +356 -0
- package/dist/cli.js +3276 -0
- package/dist/commands/abort.js +65 -0
- package/dist/commands/action-buttons.js +245 -0
- package/dist/commands/add-project.js +113 -0
- package/dist/commands/agent.js +335 -0
- package/dist/commands/ask-question.js +274 -0
- package/dist/commands/btw.js +116 -0
- package/dist/commands/compact.js +120 -0
- package/dist/commands/context-usage.js +140 -0
- package/dist/commands/create-new-project.js +130 -0
- package/dist/commands/diff.js +63 -0
- package/dist/commands/file-upload.js +275 -0
- package/dist/commands/fork.js +220 -0
- package/dist/commands/gemini-apikey.js +70 -0
- package/dist/commands/login.js +885 -0
- package/dist/commands/mcp.js +239 -0
- package/dist/commands/memory-snapshot.js +24 -0
- package/dist/commands/mention-mode.js +44 -0
- package/dist/commands/merge-worktree.js +159 -0
- package/dist/commands/model-variant.js +364 -0
- package/dist/commands/model.js +776 -0
- package/dist/commands/new-worktree.js +366 -0
- package/dist/commands/paginated-select.js +57 -0
- package/dist/commands/permissions.js +274 -0
- package/dist/commands/queue.js +206 -0
- package/dist/commands/remove-project.js +115 -0
- package/dist/commands/restart-opencode-server.js +127 -0
- package/dist/commands/resume.js +149 -0
- package/dist/commands/run-command.js +79 -0
- package/dist/commands/screenshare.js +303 -0
- package/dist/commands/screenshare.test.js +20 -0
- package/dist/commands/session-id.js +78 -0
- package/dist/commands/session.js +176 -0
- package/dist/commands/share.js +80 -0
- package/dist/commands/tasks.js +205 -0
- package/dist/commands/types.js +2 -0
- package/dist/commands/undo-redo.js +305 -0
- package/dist/commands/unset-model.js +138 -0
- package/dist/commands/upgrade.js +42 -0
- package/dist/commands/user-command.js +155 -0
- package/dist/commands/verbosity.js +125 -0
- package/dist/commands/worktree-settings.js +43 -0
- package/dist/commands/worktrees.js +410 -0
- package/dist/condense-memory.js +33 -0
- package/dist/config.js +94 -0
- package/dist/context-awareness-plugin.js +363 -0
- package/dist/context-awareness-plugin.test.js +124 -0
- package/dist/critique-utils.js +95 -0
- package/dist/database.js +1310 -0
- package/dist/db.js +251 -0
- package/dist/db.test.js +138 -0
- package/dist/debounce-timeout.js +28 -0
- package/dist/debounced-process-flush.js +77 -0
- package/dist/discord-bot.js +1008 -0
- package/dist/discord-command-registration.js +524 -0
- package/dist/discord-urls.js +81 -0
- package/dist/discord-utils.js +591 -0
- package/dist/discord-utils.test.js +134 -0
- package/dist/errors.js +157 -0
- package/dist/escape-backticks.test.js +429 -0
- package/dist/event-stream-real-capture.e2e.test.js +533 -0
- package/dist/eventsource-parser.test.js +327 -0
- package/dist/exec-async.js +26 -0
- package/dist/external-opencode-sync.js +480 -0
- package/dist/format-tables.js +302 -0
- package/dist/format-tables.test.js +308 -0
- package/dist/forum-sync/config.js +79 -0
- package/dist/forum-sync/discord-operations.js +154 -0
- package/dist/forum-sync/index.js +5 -0
- package/dist/forum-sync/markdown.js +113 -0
- package/dist/forum-sync/sync-to-discord.js +417 -0
- package/dist/forum-sync/sync-to-files.js +190 -0
- package/dist/forum-sync/types.js +53 -0
- package/dist/forum-sync/watchers.js +307 -0
- package/dist/gateway-proxy-reconnect.e2e.test.js +394 -0
- package/dist/gateway-proxy.e2e.test.js +483 -0
- package/dist/genai-worker-wrapper.js +111 -0
- package/dist/genai-worker.js +311 -0
- package/dist/genai.js +232 -0
- package/dist/generated/browser.js +17 -0
- package/dist/generated/client.js +37 -0
- package/dist/generated/commonInputTypes.js +10 -0
- package/dist/generated/enums.js +52 -0
- package/dist/generated/internal/class.js +49 -0
- package/dist/generated/internal/prismaNamespace.js +253 -0
- package/dist/generated/internal/prismaNamespaceBrowser.js +223 -0
- package/dist/generated/models/bot_api_keys.js +1 -0
- package/dist/generated/models/bot_tokens.js +1 -0
- package/dist/generated/models/channel_agents.js +1 -0
- package/dist/generated/models/channel_directories.js +1 -0
- package/dist/generated/models/channel_mention_mode.js +1 -0
- package/dist/generated/models/channel_models.js +1 -0
- package/dist/generated/models/channel_verbosity.js +1 -0
- package/dist/generated/models/channel_worktrees.js +1 -0
- package/dist/generated/models/forum_sync_configs.js +1 -0
- package/dist/generated/models/global_models.js +1 -0
- package/dist/generated/models/ipc_requests.js +1 -0
- package/dist/generated/models/part_messages.js +1 -0
- package/dist/generated/models/scheduled_tasks.js +1 -0
- package/dist/generated/models/session_agents.js +1 -0
- package/dist/generated/models/session_events.js +1 -0
- package/dist/generated/models/session_models.js +1 -0
- package/dist/generated/models/session_start_sources.js +1 -0
- package/dist/generated/models/thread_sessions.js +1 -0
- package/dist/generated/models/thread_worktrees.js +1 -0
- package/dist/generated/models.js +1 -0
- package/dist/heap-monitor.js +122 -0
- package/dist/hrana-server.js +263 -0
- package/dist/hrana-server.test.js +370 -0
- package/dist/html-actions.js +123 -0
- package/dist/html-actions.test.js +70 -0
- package/dist/html-components.js +117 -0
- package/dist/html-components.test.js +34 -0
- package/dist/image-optimizer-plugin.js +153 -0
- package/dist/image-utils.js +112 -0
- package/dist/interaction-handler.js +397 -0
- package/dist/ipc-polling.js +252 -0
- package/dist/ipc-tools-plugin.js +193 -0
- package/dist/kimaki-digital-twin.e2e.test.js +161 -0
- package/dist/kimaki-opencode-plugin-loading.e2e.test.js +87 -0
- package/dist/kimaki-opencode-plugin.js +17 -0
- package/dist/kimaki-opencode-plugin.test.js +98 -0
- package/dist/limit-heading-depth.js +25 -0
- package/dist/limit-heading-depth.test.js +105 -0
- package/dist/logger.js +165 -0
- package/dist/markdown.js +342 -0
- package/dist/markdown.test.js +257 -0
- package/dist/message-finish-field.e2e.test.js +165 -0
- package/dist/message-formatting.js +413 -0
- package/dist/message-formatting.test.js +73 -0
- package/dist/message-preprocessing.js +330 -0
- package/dist/onboarding-tutorial.js +172 -0
- package/dist/onboarding-welcome.js +37 -0
- package/dist/openai-realtime.js +224 -0
- package/dist/opencode-command-detection.js +65 -0
- package/dist/opencode-command-detection.test.js +240 -0
- package/dist/opencode-command.js +129 -0
- package/dist/opencode-command.test.js +48 -0
- package/dist/opencode-interrupt-plugin.js +361 -0
- package/dist/opencode-interrupt-plugin.test.js +458 -0
- package/dist/opencode.js +861 -0
- package/dist/otto/branding.js +22 -0
- package/dist/otto/index.js +21 -0
- package/dist/parse-permission-rules.test.js +117 -0
- package/dist/patch-text-parser.js +97 -0
- package/dist/plugin-logger.js +59 -0
- package/dist/privacy-sanitizer.js +105 -0
- package/dist/queue-advanced-abort.e2e.test.js +293 -0
- package/dist/queue-advanced-action-buttons.e2e.test.js +206 -0
- package/dist/queue-advanced-e2e-setup.js +786 -0
- package/dist/queue-advanced-footer.e2e.test.js +472 -0
- package/dist/queue-advanced-model-switch.e2e.test.js +299 -0
- package/dist/queue-advanced-permissions-typing.e2e.test.js +180 -0
- package/dist/queue-advanced-question.e2e.test.js +261 -0
- package/dist/queue-advanced-typing-interrupt.e2e.test.js +114 -0
- package/dist/queue-advanced-typing.e2e.test.js +153 -0
- package/dist/queue-drain-after-interactive-ui.e2e.test.js +119 -0
- package/dist/queue-interrupt-drain.e2e.test.js +135 -0
- package/dist/queue-question-select-drain.e2e.test.js +120 -0
- package/dist/runtime-idle-sweeper.js +52 -0
- package/dist/runtime-lifecycle.e2e.test.js +508 -0
- package/dist/sentry.js +23 -0
- package/dist/session-handler/agent-utils.js +67 -0
- package/dist/session-handler/event-stream-state.js +420 -0
- package/dist/session-handler/event-stream-state.test.js +563 -0
- package/dist/session-handler/model-utils.js +124 -0
- package/dist/session-handler/opencode-session-event-log.js +94 -0
- package/dist/session-handler/thread-runtime-state.js +104 -0
- package/dist/session-handler/thread-session-runtime.js +3258 -0
- package/dist/session-handler.js +9 -0
- package/dist/session-search.js +100 -0
- package/dist/session-search.test.js +40 -0
- package/dist/session-title-rename.test.js +80 -0
- package/dist/startup-service.js +153 -0
- package/dist/startup-time.e2e.test.js +296 -0
- package/dist/store.js +17 -0
- package/dist/system-message.js +613 -0
- package/dist/system-message.test.js +602 -0
- package/dist/task-runner.js +295 -0
- package/dist/task-schedule.js +209 -0
- package/dist/task-schedule.test.js +71 -0
- package/dist/test-utils.js +299 -0
- package/dist/thinking-utils.js +35 -0
- package/dist/thread-message-queue.e2e.test.js +999 -0
- package/dist/tools.js +357 -0
- package/dist/undo-redo.e2e.test.js +161 -0
- package/dist/unnest-code-blocks.js +146 -0
- package/dist/unnest-code-blocks.test.js +673 -0
- package/dist/upgrade.js +114 -0
- package/dist/utils.js +144 -0
- package/dist/voice-attachment.js +34 -0
- package/dist/voice-handler.js +646 -0
- package/dist/voice-message.e2e.test.js +1021 -0
- package/dist/voice.js +447 -0
- package/dist/voice.test.js +235 -0
- package/dist/wait-session.js +94 -0
- package/dist/websockify.js +69 -0
- package/dist/worker-types.js +4 -0
- package/dist/worktree-lifecycle.e2e.test.js +308 -0
- package/dist/worktree-utils.js +3 -0
- package/dist/worktrees.js +929 -0
- package/dist/worktrees.test.js +189 -0
- package/dist/xml.js +92 -0
- package/dist/xml.test.js +32 -0
- package/package.json +98 -0
- package/schema.prisma +295 -0
- package/skills/batch/SKILL.md +87 -0
- package/skills/critique/SKILL.md +112 -0
- package/skills/egaki/SKILL.md +100 -0
- package/skills/errore/SKILL.md +647 -0
- package/skills/event-sourcing-state/SKILL.md +252 -0
- package/skills/gitchamber/SKILL.md +93 -0
- package/skills/goke/SKILL.md +644 -0
- package/skills/jitter/EDITOR.md +219 -0
- package/skills/jitter/EXPORT-INTERNALS.md +309 -0
- package/skills/jitter/SKILL.md +158 -0
- package/skills/jitter/jitter-clipboard.json +1042 -0
- package/skills/jitter/package.json +14 -0
- package/skills/jitter/tsconfig.json +15 -0
- package/skills/jitter/utils/actions.ts +212 -0
- package/skills/jitter/utils/export.ts +114 -0
- package/skills/jitter/utils/index.ts +141 -0
- package/skills/jitter/utils/snapshot.ts +154 -0
- package/skills/jitter/utils/traverse.ts +246 -0
- package/skills/jitter/utils/types.ts +279 -0
- package/skills/jitter/utils/wait.ts +133 -0
- package/skills/lintcn/SKILL.md +873 -0
- package/skills/new-skill/SKILL.md +211 -0
- package/skills/npm-package/SKILL.md +239 -0
- package/skills/playwriter/SKILL.md +35 -0
- package/skills/proxyman/SKILL.md +215 -0
- package/skills/security-review/SKILL.md +208 -0
- package/skills/simplify/SKILL.md +58 -0
- package/skills/spiceflow/SKILL.md +14 -0
- package/skills/termcast/SKILL.md +945 -0
- package/skills/tuistory/SKILL.md +250 -0
- package/skills/usecomputer/SKILL.md +264 -0
- package/skills/x-articles/SKILL.md +554 -0
- package/skills/zele/SKILL.md +112 -0
- package/skills/zustand-centralized-state/SKILL.md +1004 -0
- package/src/agent-model.e2e.test.ts +976 -0
- package/src/ai-tool-to-genai.test.ts +296 -0
- package/src/ai-tool-to-genai.ts +283 -0
- package/src/ai-tool.ts +39 -0
- package/src/anthropic-auth-plugin.test.ts +159 -0
- package/src/anthropic-auth-plugin.ts +861 -0
- package/src/anthropic-auth-state.ts +282 -0
- package/src/bin.ts +111 -0
- package/src/channel-management.ts +334 -0
- package/src/cli-parsing.test.ts +195 -0
- package/src/cli-send-thread.e2e.test.ts +464 -0
- package/src/cli.ts +4581 -0
- package/src/commands/abort.ts +89 -0
- package/src/commands/action-buttons.ts +364 -0
- package/src/commands/add-project.ts +149 -0
- package/src/commands/agent.ts +473 -0
- package/src/commands/ask-question.ts +390 -0
- package/src/commands/btw.ts +164 -0
- package/src/commands/compact.ts +157 -0
- package/src/commands/context-usage.ts +199 -0
- package/src/commands/create-new-project.ts +190 -0
- package/src/commands/diff.ts +91 -0
- package/src/commands/file-upload.ts +389 -0
- package/src/commands/fork.ts +321 -0
- package/src/commands/gemini-apikey.ts +104 -0
- package/src/commands/login.ts +1173 -0
- package/src/commands/mcp.ts +307 -0
- package/src/commands/memory-snapshot.ts +30 -0
- package/src/commands/mention-mode.ts +68 -0
- package/src/commands/merge-worktree.ts +223 -0
- package/src/commands/model-variant.ts +483 -0
- package/src/commands/model.ts +1053 -0
- package/src/commands/new-worktree.ts +510 -0
- package/src/commands/paginated-select.ts +81 -0
- package/src/commands/permissions.ts +397 -0
- package/src/commands/queue.ts +271 -0
- package/src/commands/remove-project.ts +155 -0
- package/src/commands/restart-opencode-server.ts +162 -0
- package/src/commands/resume.ts +230 -0
- package/src/commands/run-command.ts +123 -0
- package/src/commands/screenshare.test.ts +30 -0
- package/src/commands/screenshare.ts +366 -0
- package/src/commands/session-id.ts +109 -0
- package/src/commands/session.ts +227 -0
- package/src/commands/share.ts +106 -0
- package/src/commands/tasks.ts +293 -0
- package/src/commands/types.ts +25 -0
- package/src/commands/undo-redo.ts +386 -0
- package/src/commands/unset-model.ts +173 -0
- package/src/commands/upgrade.ts +52 -0
- package/src/commands/user-command.ts +198 -0
- package/src/commands/verbosity.ts +173 -0
- package/src/commands/worktree-settings.ts +70 -0
- package/src/commands/worktrees.ts +552 -0
- package/src/condense-memory.ts +36 -0
- package/src/config.ts +111 -0
- package/src/context-awareness-plugin.test.ts +142 -0
- package/src/context-awareness-plugin.ts +510 -0
- package/src/critique-utils.ts +139 -0
- package/src/database.ts +1876 -0
- package/src/db.test.ts +162 -0
- package/src/db.ts +286 -0
- package/src/debounce-timeout.ts +43 -0
- package/src/debounced-process-flush.ts +104 -0
- package/src/discord-bot.ts +1330 -0
- package/src/discord-command-registration.ts +693 -0
- package/src/discord-urls.ts +88 -0
- package/src/discord-utils.test.ts +153 -0
- package/src/discord-utils.ts +800 -0
- package/src/errors.ts +201 -0
- package/src/escape-backticks.test.ts +469 -0
- package/src/event-stream-real-capture.e2e.test.ts +692 -0
- package/src/eventsource-parser.test.ts +351 -0
- package/src/exec-async.ts +35 -0
- package/src/external-opencode-sync.ts +685 -0
- package/src/format-tables.test.ts +335 -0
- package/src/format-tables.ts +445 -0
- package/src/forum-sync/config.ts +92 -0
- package/src/forum-sync/discord-operations.ts +241 -0
- package/src/forum-sync/index.ts +9 -0
- package/src/forum-sync/markdown.ts +172 -0
- package/src/forum-sync/sync-to-discord.ts +595 -0
- package/src/forum-sync/sync-to-files.ts +294 -0
- package/src/forum-sync/types.ts +175 -0
- package/src/forum-sync/watchers.ts +454 -0
- package/src/gateway-proxy-reconnect.e2e.test.ts +523 -0
- package/src/gateway-proxy.e2e.test.ts +640 -0
- package/src/genai-worker-wrapper.ts +164 -0
- package/src/genai-worker.ts +386 -0
- package/src/genai.ts +321 -0
- package/src/generated/browser.ts +114 -0
- package/src/generated/client.ts +138 -0
- package/src/generated/commonInputTypes.ts +736 -0
- package/src/generated/enums.ts +88 -0
- package/src/generated/internal/class.ts +384 -0
- package/src/generated/internal/prismaNamespace.ts +2386 -0
- package/src/generated/internal/prismaNamespaceBrowser.ts +326 -0
- package/src/generated/models/bot_api_keys.ts +1288 -0
- package/src/generated/models/bot_tokens.ts +1656 -0
- package/src/generated/models/channel_agents.ts +1256 -0
- package/src/generated/models/channel_directories.ts +1859 -0
- package/src/generated/models/channel_mention_mode.ts +1300 -0
- package/src/generated/models/channel_models.ts +1288 -0
- package/src/generated/models/channel_verbosity.ts +1228 -0
- package/src/generated/models/channel_worktrees.ts +1300 -0
- package/src/generated/models/forum_sync_configs.ts +1452 -0
- package/src/generated/models/global_models.ts +1288 -0
- package/src/generated/models/ipc_requests.ts +1485 -0
- package/src/generated/models/part_messages.ts +1302 -0
- package/src/generated/models/scheduled_tasks.ts +2320 -0
- package/src/generated/models/session_agents.ts +1086 -0
- package/src/generated/models/session_events.ts +1439 -0
- package/src/generated/models/session_models.ts +1114 -0
- package/src/generated/models/session_start_sources.ts +1408 -0
- package/src/generated/models/thread_sessions.ts +1781 -0
- package/src/generated/models/thread_worktrees.ts +1356 -0
- package/src/generated/models.ts +30 -0
- package/src/heap-monitor.ts +152 -0
- package/src/hrana-server.test.ts +434 -0
- package/src/hrana-server.ts +314 -0
- package/src/html-actions.test.ts +87 -0
- package/src/html-actions.ts +174 -0
- package/src/html-components.test.ts +38 -0
- package/src/html-components.ts +181 -0
- package/src/image-optimizer-plugin.ts +194 -0
- package/src/image-utils.ts +149 -0
- package/src/interaction-handler.ts +576 -0
- package/src/ipc-polling.ts +326 -0
- package/src/ipc-tools-plugin.ts +236 -0
- package/src/kimaki-digital-twin.e2e.test.ts +199 -0
- package/src/kimaki-opencode-plugin-loading.e2e.test.ts +109 -0
- package/src/kimaki-opencode-plugin.test.ts +108 -0
- package/src/kimaki-opencode-plugin.ts +18 -0
- package/src/limit-heading-depth.test.ts +116 -0
- package/src/limit-heading-depth.ts +26 -0
- package/src/logger.ts +208 -0
- package/src/markdown.test.ts +308 -0
- package/src/markdown.ts +410 -0
- package/src/message-finish-field.e2e.test.ts +192 -0
- package/src/message-formatting.test.ts +81 -0
- package/src/message-formatting.ts +533 -0
- package/src/message-preprocessing.ts +455 -0
- package/src/onboarding-tutorial.ts +176 -0
- package/src/onboarding-welcome.ts +49 -0
- package/src/openai-realtime.ts +358 -0
- package/src/opencode-command-detection.test.ts +307 -0
- package/src/opencode-command-detection.ts +76 -0
- package/src/opencode-command.test.ts +70 -0
- package/src/opencode-command.ts +188 -0
- package/src/opencode-interrupt-plugin.test.ts +677 -0
- package/src/opencode-interrupt-plugin.ts +477 -0
- package/src/opencode.ts +1110 -0
- package/src/otto/branding.ts +23 -0
- package/src/otto/index.ts +22 -0
- package/src/parse-permission-rules.test.ts +127 -0
- package/src/patch-text-parser.ts +107 -0
- package/src/plugin-logger.ts +68 -0
- package/src/privacy-sanitizer.ts +142 -0
- package/src/queue-advanced-abort.e2e.test.ts +382 -0
- package/src/queue-advanced-action-buttons.e2e.test.ts +268 -0
- package/src/queue-advanced-e2e-setup.ts +873 -0
- package/src/queue-advanced-footer.e2e.test.ts +576 -0
- package/src/queue-advanced-model-switch.e2e.test.ts +383 -0
- package/src/queue-advanced-permissions-typing.e2e.test.ts +245 -0
- package/src/queue-advanced-question.e2e.test.ts +316 -0
- package/src/queue-advanced-typing-interrupt.e2e.test.ts +146 -0
- package/src/queue-advanced-typing.e2e.test.ts +199 -0
- package/src/queue-drain-after-interactive-ui.e2e.test.ts +151 -0
- package/src/queue-interrupt-drain.e2e.test.ts +166 -0
- package/src/queue-question-select-drain.e2e.test.ts +152 -0
- package/src/runtime-idle-sweeper.ts +76 -0
- package/src/runtime-lifecycle.e2e.test.ts +641 -0
- package/src/schema.sql +173 -0
- package/src/sentry.ts +26 -0
- package/src/session-handler/agent-utils.ts +97 -0
- package/src/session-handler/event-stream-fixtures/real-session-action-buttons.jsonl +45 -0
- package/src/session-handler/event-stream-fixtures/real-session-footer-suppressed-on-pre-idle-interrupt.jsonl +40 -0
- package/src/session-handler/event-stream-fixtures/real-session-permission-external-file.jsonl +23 -0
- package/src/session-handler/event-stream-fixtures/real-session-task-normal.jsonl +22 -0
- package/src/session-handler/event-stream-fixtures/real-session-task-three-parallel-sleeps.jsonl +277 -0
- package/src/session-handler/event-stream-fixtures/real-session-task-user-interruption.jsonl +46 -0
- package/src/session-handler/event-stream-fixtures/session-abort-after-idle-race.jsonl +21 -0
- package/src/session-handler/event-stream-fixtures/session-concurrent-messages-serialized.jsonl +56 -0
- package/src/session-handler/event-stream-fixtures/session-explicit-abort.jsonl +44 -0
- package/src/session-handler/event-stream-fixtures/session-normal-completion.jsonl +29 -0
- package/src/session-handler/event-stream-fixtures/session-tool-call-noisy-stream.jsonl +29 -0
- package/src/session-handler/event-stream-fixtures/session-two-completions-same-session.jsonl +50 -0
- package/src/session-handler/event-stream-fixtures/session-user-interruption.jsonl +59 -0
- package/src/session-handler/event-stream-fixtures/session-voice-queued-followup.jsonl +52 -0
- package/src/session-handler/event-stream-state.test.ts +645 -0
- package/src/session-handler/event-stream-state.ts +608 -0
- package/src/session-handler/model-utils.ts +183 -0
- package/src/session-handler/opencode-session-event-log.ts +130 -0
- package/src/session-handler/thread-runtime-state.ts +212 -0
- package/src/session-handler/thread-session-runtime.ts +4281 -0
- package/src/session-handler.ts +15 -0
- package/src/session-search.test.ts +50 -0
- package/src/session-search.ts +148 -0
- package/src/session-title-rename.test.ts +112 -0
- package/src/startup-service.ts +200 -0
- package/src/startup-time.e2e.test.ts +373 -0
- package/src/store.ts +122 -0
- package/src/system-message.test.ts +612 -0
- package/src/system-message.ts +723 -0
- package/src/task-runner.ts +421 -0
- package/src/task-schedule.test.ts +84 -0
- package/src/task-schedule.ts +311 -0
- package/src/test-utils.ts +435 -0
- package/src/thinking-utils.ts +61 -0
- package/src/thread-message-queue.e2e.test.ts +1219 -0
- package/src/tools.ts +430 -0
- package/src/undici.d.ts +12 -0
- package/src/undo-redo.e2e.test.ts +209 -0
- package/src/unnest-code-blocks.test.ts +713 -0
- package/src/unnest-code-blocks.ts +185 -0
- package/src/upgrade.ts +127 -0
- package/src/utils.ts +212 -0
- package/src/voice-attachment.ts +51 -0
- package/src/voice-handler.ts +908 -0
- package/src/voice-message.e2e.test.ts +1255 -0
- package/src/voice.test.ts +281 -0
- package/src/voice.ts +627 -0
- package/src/wait-session.ts +147 -0
- package/src/websockify.ts +101 -0
- package/src/worker-types.ts +64 -0
- package/src/worktree-lifecycle.e2e.test.ts +391 -0
- package/src/worktree-utils.ts +4 -0
- package/src/worktrees.test.ts +223 -0
- package/src/worktrees.ts +1294 -0
- package/src/xml.test.ts +38 -0
- package/src/xml.ts +121 -0
|
@@ -0,0 +1,1256 @@
|
|
|
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 `channel_agents` 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.js"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model channel_agents
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type channel_agentsModel = runtime.Types.Result.DefaultSelection<Prisma.$channel_agentsPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateChannel_agents = {
|
|
22
|
+
_count: Channel_agentsCountAggregateOutputType | null
|
|
23
|
+
_min: Channel_agentsMinAggregateOutputType | null
|
|
24
|
+
_max: Channel_agentsMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Channel_agentsMinAggregateOutputType = {
|
|
28
|
+
channel_id: string | null
|
|
29
|
+
agent_name: string | null
|
|
30
|
+
created_at: Date | null
|
|
31
|
+
updated_at: Date | null
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type Channel_agentsMaxAggregateOutputType = {
|
|
35
|
+
channel_id: string | null
|
|
36
|
+
agent_name: string | null
|
|
37
|
+
created_at: Date | null
|
|
38
|
+
updated_at: Date | null
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type Channel_agentsCountAggregateOutputType = {
|
|
42
|
+
channel_id: number
|
|
43
|
+
agent_name: number
|
|
44
|
+
created_at: number
|
|
45
|
+
updated_at: number
|
|
46
|
+
_all: number
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
export type Channel_agentsMinAggregateInputType = {
|
|
51
|
+
channel_id?: true
|
|
52
|
+
agent_name?: true
|
|
53
|
+
created_at?: true
|
|
54
|
+
updated_at?: true
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type Channel_agentsMaxAggregateInputType = {
|
|
58
|
+
channel_id?: true
|
|
59
|
+
agent_name?: true
|
|
60
|
+
created_at?: true
|
|
61
|
+
updated_at?: true
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type Channel_agentsCountAggregateInputType = {
|
|
65
|
+
channel_id?: true
|
|
66
|
+
agent_name?: true
|
|
67
|
+
created_at?: true
|
|
68
|
+
updated_at?: true
|
|
69
|
+
_all?: true
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type Channel_agentsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
73
|
+
/**
|
|
74
|
+
* Filter which channel_agents to aggregate.
|
|
75
|
+
*/
|
|
76
|
+
where?: Prisma.channel_agentsWhereInput
|
|
77
|
+
/**
|
|
78
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
79
|
+
*
|
|
80
|
+
* Determine the order of channel_agents to fetch.
|
|
81
|
+
*/
|
|
82
|
+
orderBy?: Prisma.channel_agentsOrderByWithRelationInput | Prisma.channel_agentsOrderByWithRelationInput[]
|
|
83
|
+
/**
|
|
84
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
85
|
+
*
|
|
86
|
+
* Sets the start position
|
|
87
|
+
*/
|
|
88
|
+
cursor?: Prisma.channel_agentsWhereUniqueInput
|
|
89
|
+
/**
|
|
90
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
91
|
+
*
|
|
92
|
+
* Take `±n` channel_agents from the position of the cursor.
|
|
93
|
+
*/
|
|
94
|
+
take?: number
|
|
95
|
+
/**
|
|
96
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
97
|
+
*
|
|
98
|
+
* Skip the first `n` channel_agents.
|
|
99
|
+
*/
|
|
100
|
+
skip?: number
|
|
101
|
+
/**
|
|
102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
103
|
+
*
|
|
104
|
+
* Count returned channel_agents
|
|
105
|
+
**/
|
|
106
|
+
_count?: true | Channel_agentsCountAggregateInputType
|
|
107
|
+
/**
|
|
108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
109
|
+
*
|
|
110
|
+
* Select which fields to find the minimum value
|
|
111
|
+
**/
|
|
112
|
+
_min?: Channel_agentsMinAggregateInputType
|
|
113
|
+
/**
|
|
114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
115
|
+
*
|
|
116
|
+
* Select which fields to find the maximum value
|
|
117
|
+
**/
|
|
118
|
+
_max?: Channel_agentsMaxAggregateInputType
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type GetChannel_agentsAggregateType<T extends Channel_agentsAggregateArgs> = {
|
|
122
|
+
[P in keyof T & keyof AggregateChannel_agents]: P extends '_count' | 'count'
|
|
123
|
+
? T[P] extends true
|
|
124
|
+
? number
|
|
125
|
+
: Prisma.GetScalarType<T[P], AggregateChannel_agents[P]>
|
|
126
|
+
: Prisma.GetScalarType<T[P], AggregateChannel_agents[P]>
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
export type channel_agentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
133
|
+
where?: Prisma.channel_agentsWhereInput
|
|
134
|
+
orderBy?: Prisma.channel_agentsOrderByWithAggregationInput | Prisma.channel_agentsOrderByWithAggregationInput[]
|
|
135
|
+
by: Prisma.Channel_agentsScalarFieldEnum[] | Prisma.Channel_agentsScalarFieldEnum
|
|
136
|
+
having?: Prisma.channel_agentsScalarWhereWithAggregatesInput
|
|
137
|
+
take?: number
|
|
138
|
+
skip?: number
|
|
139
|
+
_count?: Channel_agentsCountAggregateInputType | true
|
|
140
|
+
_min?: Channel_agentsMinAggregateInputType
|
|
141
|
+
_max?: Channel_agentsMaxAggregateInputType
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type Channel_agentsGroupByOutputType = {
|
|
145
|
+
channel_id: string
|
|
146
|
+
agent_name: string
|
|
147
|
+
created_at: Date | null
|
|
148
|
+
updated_at: Date | null
|
|
149
|
+
_count: Channel_agentsCountAggregateOutputType | null
|
|
150
|
+
_min: Channel_agentsMinAggregateOutputType | null
|
|
151
|
+
_max: Channel_agentsMaxAggregateOutputType | null
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
type GetChannel_agentsGroupByPayload<T extends channel_agentsGroupByArgs> = Prisma.PrismaPromise<
|
|
155
|
+
Array<
|
|
156
|
+
Prisma.PickEnumerable<Channel_agentsGroupByOutputType, T['by']> &
|
|
157
|
+
{
|
|
158
|
+
[P in ((keyof T) & (keyof Channel_agentsGroupByOutputType))]: P extends '_count'
|
|
159
|
+
? T[P] extends boolean
|
|
160
|
+
? number
|
|
161
|
+
: Prisma.GetScalarType<T[P], Channel_agentsGroupByOutputType[P]>
|
|
162
|
+
: Prisma.GetScalarType<T[P], Channel_agentsGroupByOutputType[P]>
|
|
163
|
+
}
|
|
164
|
+
>
|
|
165
|
+
>
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
export type channel_agentsWhereInput = {
|
|
170
|
+
AND?: Prisma.channel_agentsWhereInput | Prisma.channel_agentsWhereInput[]
|
|
171
|
+
OR?: Prisma.channel_agentsWhereInput[]
|
|
172
|
+
NOT?: Prisma.channel_agentsWhereInput | Prisma.channel_agentsWhereInput[]
|
|
173
|
+
channel_id?: Prisma.StringFilter<"channel_agents"> | string
|
|
174
|
+
agent_name?: Prisma.StringFilter<"channel_agents"> | string
|
|
175
|
+
created_at?: Prisma.DateTimeNullableFilter<"channel_agents"> | Date | string | null
|
|
176
|
+
updated_at?: Prisma.DateTimeNullableFilter<"channel_agents"> | Date | string | null
|
|
177
|
+
channel?: Prisma.XOR<Prisma.Channel_directoriesScalarRelationFilter, Prisma.channel_directoriesWhereInput>
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type channel_agentsOrderByWithRelationInput = {
|
|
181
|
+
channel_id?: Prisma.SortOrder
|
|
182
|
+
agent_name?: Prisma.SortOrder
|
|
183
|
+
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
184
|
+
updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
185
|
+
channel?: Prisma.channel_directoriesOrderByWithRelationInput
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export type channel_agentsWhereUniqueInput = Prisma.AtLeast<{
|
|
189
|
+
channel_id?: string
|
|
190
|
+
AND?: Prisma.channel_agentsWhereInput | Prisma.channel_agentsWhereInput[]
|
|
191
|
+
OR?: Prisma.channel_agentsWhereInput[]
|
|
192
|
+
NOT?: Prisma.channel_agentsWhereInput | Prisma.channel_agentsWhereInput[]
|
|
193
|
+
agent_name?: Prisma.StringFilter<"channel_agents"> | string
|
|
194
|
+
created_at?: Prisma.DateTimeNullableFilter<"channel_agents"> | Date | string | null
|
|
195
|
+
updated_at?: Prisma.DateTimeNullableFilter<"channel_agents"> | Date | string | null
|
|
196
|
+
channel?: Prisma.XOR<Prisma.Channel_directoriesScalarRelationFilter, Prisma.channel_directoriesWhereInput>
|
|
197
|
+
}, "channel_id">
|
|
198
|
+
|
|
199
|
+
export type channel_agentsOrderByWithAggregationInput = {
|
|
200
|
+
channel_id?: Prisma.SortOrder
|
|
201
|
+
agent_name?: Prisma.SortOrder
|
|
202
|
+
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
203
|
+
updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
204
|
+
_count?: Prisma.channel_agentsCountOrderByAggregateInput
|
|
205
|
+
_max?: Prisma.channel_agentsMaxOrderByAggregateInput
|
|
206
|
+
_min?: Prisma.channel_agentsMinOrderByAggregateInput
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export type channel_agentsScalarWhereWithAggregatesInput = {
|
|
210
|
+
AND?: Prisma.channel_agentsScalarWhereWithAggregatesInput | Prisma.channel_agentsScalarWhereWithAggregatesInput[]
|
|
211
|
+
OR?: Prisma.channel_agentsScalarWhereWithAggregatesInput[]
|
|
212
|
+
NOT?: Prisma.channel_agentsScalarWhereWithAggregatesInput | Prisma.channel_agentsScalarWhereWithAggregatesInput[]
|
|
213
|
+
channel_id?: Prisma.StringWithAggregatesFilter<"channel_agents"> | string
|
|
214
|
+
agent_name?: Prisma.StringWithAggregatesFilter<"channel_agents"> | string
|
|
215
|
+
created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"channel_agents"> | Date | string | null
|
|
216
|
+
updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"channel_agents"> | Date | string | null
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export type channel_agentsCreateInput = {
|
|
220
|
+
agent_name: string
|
|
221
|
+
created_at?: Date | string | null
|
|
222
|
+
updated_at?: Date | string | null
|
|
223
|
+
channel: Prisma.channel_directoriesCreateNestedOneWithoutChannel_agentInput
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export type channel_agentsUncheckedCreateInput = {
|
|
227
|
+
channel_id: string
|
|
228
|
+
agent_name: string
|
|
229
|
+
created_at?: Date | string | null
|
|
230
|
+
updated_at?: Date | string | null
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export type channel_agentsUpdateInput = {
|
|
234
|
+
agent_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
235
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
236
|
+
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
237
|
+
channel?: Prisma.channel_directoriesUpdateOneRequiredWithoutChannel_agentNestedInput
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export type channel_agentsUncheckedUpdateInput = {
|
|
241
|
+
channel_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
242
|
+
agent_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
243
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
244
|
+
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export type channel_agentsCreateManyInput = {
|
|
248
|
+
channel_id: string
|
|
249
|
+
agent_name: string
|
|
250
|
+
created_at?: Date | string | null
|
|
251
|
+
updated_at?: Date | string | null
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export type channel_agentsUpdateManyMutationInput = {
|
|
255
|
+
agent_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
256
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
257
|
+
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export type channel_agentsUncheckedUpdateManyInput = {
|
|
261
|
+
channel_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
262
|
+
agent_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
263
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
264
|
+
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export type Channel_agentsNullableScalarRelationFilter = {
|
|
268
|
+
is?: Prisma.channel_agentsWhereInput | null
|
|
269
|
+
isNot?: Prisma.channel_agentsWhereInput | null
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export type channel_agentsCountOrderByAggregateInput = {
|
|
273
|
+
channel_id?: Prisma.SortOrder
|
|
274
|
+
agent_name?: Prisma.SortOrder
|
|
275
|
+
created_at?: Prisma.SortOrder
|
|
276
|
+
updated_at?: Prisma.SortOrder
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export type channel_agentsMaxOrderByAggregateInput = {
|
|
280
|
+
channel_id?: Prisma.SortOrder
|
|
281
|
+
agent_name?: Prisma.SortOrder
|
|
282
|
+
created_at?: Prisma.SortOrder
|
|
283
|
+
updated_at?: Prisma.SortOrder
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export type channel_agentsMinOrderByAggregateInput = {
|
|
287
|
+
channel_id?: Prisma.SortOrder
|
|
288
|
+
agent_name?: Prisma.SortOrder
|
|
289
|
+
created_at?: Prisma.SortOrder
|
|
290
|
+
updated_at?: Prisma.SortOrder
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export type channel_agentsCreateNestedOneWithoutChannelInput = {
|
|
294
|
+
create?: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
|
|
295
|
+
connectOrCreate?: Prisma.channel_agentsCreateOrConnectWithoutChannelInput
|
|
296
|
+
connect?: Prisma.channel_agentsWhereUniqueInput
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export type channel_agentsUncheckedCreateNestedOneWithoutChannelInput = {
|
|
300
|
+
create?: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
|
|
301
|
+
connectOrCreate?: Prisma.channel_agentsCreateOrConnectWithoutChannelInput
|
|
302
|
+
connect?: Prisma.channel_agentsWhereUniqueInput
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export type channel_agentsUpdateOneWithoutChannelNestedInput = {
|
|
306
|
+
create?: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
|
|
307
|
+
connectOrCreate?: Prisma.channel_agentsCreateOrConnectWithoutChannelInput
|
|
308
|
+
upsert?: Prisma.channel_agentsUpsertWithoutChannelInput
|
|
309
|
+
disconnect?: Prisma.channel_agentsWhereInput | boolean
|
|
310
|
+
delete?: Prisma.channel_agentsWhereInput | boolean
|
|
311
|
+
connect?: Prisma.channel_agentsWhereUniqueInput
|
|
312
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.channel_agentsUpdateToOneWithWhereWithoutChannelInput, Prisma.channel_agentsUpdateWithoutChannelInput>, Prisma.channel_agentsUncheckedUpdateWithoutChannelInput>
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export type channel_agentsUncheckedUpdateOneWithoutChannelNestedInput = {
|
|
316
|
+
create?: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
|
|
317
|
+
connectOrCreate?: Prisma.channel_agentsCreateOrConnectWithoutChannelInput
|
|
318
|
+
upsert?: Prisma.channel_agentsUpsertWithoutChannelInput
|
|
319
|
+
disconnect?: Prisma.channel_agentsWhereInput | boolean
|
|
320
|
+
delete?: Prisma.channel_agentsWhereInput | boolean
|
|
321
|
+
connect?: Prisma.channel_agentsWhereUniqueInput
|
|
322
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.channel_agentsUpdateToOneWithWhereWithoutChannelInput, Prisma.channel_agentsUpdateWithoutChannelInput>, Prisma.channel_agentsUncheckedUpdateWithoutChannelInput>
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export type channel_agentsCreateWithoutChannelInput = {
|
|
326
|
+
agent_name: string
|
|
327
|
+
created_at?: Date | string | null
|
|
328
|
+
updated_at?: Date | string | null
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export type channel_agentsUncheckedCreateWithoutChannelInput = {
|
|
332
|
+
agent_name: string
|
|
333
|
+
created_at?: Date | string | null
|
|
334
|
+
updated_at?: Date | string | null
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export type channel_agentsCreateOrConnectWithoutChannelInput = {
|
|
338
|
+
where: Prisma.channel_agentsWhereUniqueInput
|
|
339
|
+
create: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export type channel_agentsUpsertWithoutChannelInput = {
|
|
343
|
+
update: Prisma.XOR<Prisma.channel_agentsUpdateWithoutChannelInput, Prisma.channel_agentsUncheckedUpdateWithoutChannelInput>
|
|
344
|
+
create: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
|
|
345
|
+
where?: Prisma.channel_agentsWhereInput
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export type channel_agentsUpdateToOneWithWhereWithoutChannelInput = {
|
|
349
|
+
where?: Prisma.channel_agentsWhereInput
|
|
350
|
+
data: Prisma.XOR<Prisma.channel_agentsUpdateWithoutChannelInput, Prisma.channel_agentsUncheckedUpdateWithoutChannelInput>
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export type channel_agentsUpdateWithoutChannelInput = {
|
|
354
|
+
agent_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
355
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
356
|
+
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export type channel_agentsUncheckedUpdateWithoutChannelInput = {
|
|
360
|
+
agent_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
361
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
362
|
+
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
export type channel_agentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
368
|
+
channel_id?: boolean
|
|
369
|
+
agent_name?: boolean
|
|
370
|
+
created_at?: boolean
|
|
371
|
+
updated_at?: boolean
|
|
372
|
+
channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
|
|
373
|
+
}, ExtArgs["result"]["channel_agents"]>
|
|
374
|
+
|
|
375
|
+
export type channel_agentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
376
|
+
channel_id?: boolean
|
|
377
|
+
agent_name?: boolean
|
|
378
|
+
created_at?: boolean
|
|
379
|
+
updated_at?: boolean
|
|
380
|
+
channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
|
|
381
|
+
}, ExtArgs["result"]["channel_agents"]>
|
|
382
|
+
|
|
383
|
+
export type channel_agentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
384
|
+
channel_id?: boolean
|
|
385
|
+
agent_name?: boolean
|
|
386
|
+
created_at?: boolean
|
|
387
|
+
updated_at?: boolean
|
|
388
|
+
channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
|
|
389
|
+
}, ExtArgs["result"]["channel_agents"]>
|
|
390
|
+
|
|
391
|
+
export type channel_agentsSelectScalar = {
|
|
392
|
+
channel_id?: boolean
|
|
393
|
+
agent_name?: boolean
|
|
394
|
+
created_at?: boolean
|
|
395
|
+
updated_at?: boolean
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
export type channel_agentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"channel_id" | "agent_name" | "created_at" | "updated_at", ExtArgs["result"]["channel_agents"]>
|
|
399
|
+
export type channel_agentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
400
|
+
channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
|
|
401
|
+
}
|
|
402
|
+
export type channel_agentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
403
|
+
channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
|
|
404
|
+
}
|
|
405
|
+
export type channel_agentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
406
|
+
channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export type $channel_agentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
410
|
+
name: "channel_agents"
|
|
411
|
+
objects: {
|
|
412
|
+
channel: Prisma.$channel_directoriesPayload<ExtArgs>
|
|
413
|
+
}
|
|
414
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
415
|
+
channel_id: string
|
|
416
|
+
agent_name: string
|
|
417
|
+
created_at: Date | null
|
|
418
|
+
updated_at: Date | null
|
|
419
|
+
}, ExtArgs["result"]["channel_agents"]>
|
|
420
|
+
composites: {}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
export type channel_agentsGetPayload<S extends boolean | null | undefined | channel_agentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload, S>
|
|
424
|
+
|
|
425
|
+
export type channel_agentsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
426
|
+
Omit<channel_agentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
427
|
+
select?: Channel_agentsCountAggregateInputType | true
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface channel_agentsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
431
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['channel_agents'], meta: { name: 'channel_agents' } }
|
|
432
|
+
/**
|
|
433
|
+
* Find zero or one Channel_agents that matches the filter.
|
|
434
|
+
* @param {channel_agentsFindUniqueArgs} args - Arguments to find a Channel_agents
|
|
435
|
+
* @example
|
|
436
|
+
* // Get one Channel_agents
|
|
437
|
+
* const channel_agents = await prisma.channel_agents.findUnique({
|
|
438
|
+
* where: {
|
|
439
|
+
* // ... provide filter here
|
|
440
|
+
* }
|
|
441
|
+
* })
|
|
442
|
+
*/
|
|
443
|
+
findUnique<T extends channel_agentsFindUniqueArgs>(args: Prisma.SelectSubset<T, channel_agentsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__channel_agentsClient<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Find one Channel_agents that matches the filter or throw an error with `error.code='P2025'`
|
|
447
|
+
* if no matches were found.
|
|
448
|
+
* @param {channel_agentsFindUniqueOrThrowArgs} args - Arguments to find a Channel_agents
|
|
449
|
+
* @example
|
|
450
|
+
* // Get one Channel_agents
|
|
451
|
+
* const channel_agents = await prisma.channel_agents.findUniqueOrThrow({
|
|
452
|
+
* where: {
|
|
453
|
+
* // ... provide filter here
|
|
454
|
+
* }
|
|
455
|
+
* })
|
|
456
|
+
*/
|
|
457
|
+
findUniqueOrThrow<T extends channel_agentsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, channel_agentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__channel_agentsClient<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Find the first Channel_agents that matches the filter.
|
|
461
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
462
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
463
|
+
* @param {channel_agentsFindFirstArgs} args - Arguments to find a Channel_agents
|
|
464
|
+
* @example
|
|
465
|
+
* // Get one Channel_agents
|
|
466
|
+
* const channel_agents = await prisma.channel_agents.findFirst({
|
|
467
|
+
* where: {
|
|
468
|
+
* // ... provide filter here
|
|
469
|
+
* }
|
|
470
|
+
* })
|
|
471
|
+
*/
|
|
472
|
+
findFirst<T extends channel_agentsFindFirstArgs>(args?: Prisma.SelectSubset<T, channel_agentsFindFirstArgs<ExtArgs>>): Prisma.Prisma__channel_agentsClient<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Find the first Channel_agents that matches the filter or
|
|
476
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
477
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
478
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
479
|
+
* @param {channel_agentsFindFirstOrThrowArgs} args - Arguments to find a Channel_agents
|
|
480
|
+
* @example
|
|
481
|
+
* // Get one Channel_agents
|
|
482
|
+
* const channel_agents = await prisma.channel_agents.findFirstOrThrow({
|
|
483
|
+
* where: {
|
|
484
|
+
* // ... provide filter here
|
|
485
|
+
* }
|
|
486
|
+
* })
|
|
487
|
+
*/
|
|
488
|
+
findFirstOrThrow<T extends channel_agentsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, channel_agentsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__channel_agentsClient<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Find zero or more Channel_agents that matches the filter.
|
|
492
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
493
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
494
|
+
* @param {channel_agentsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
495
|
+
* @example
|
|
496
|
+
* // Get all Channel_agents
|
|
497
|
+
* const channel_agents = await prisma.channel_agents.findMany()
|
|
498
|
+
*
|
|
499
|
+
* // Get first 10 Channel_agents
|
|
500
|
+
* const channel_agents = await prisma.channel_agents.findMany({ take: 10 })
|
|
501
|
+
*
|
|
502
|
+
* // Only select the `channel_id`
|
|
503
|
+
* const channel_agentsWithChannel_idOnly = await prisma.channel_agents.findMany({ select: { channel_id: true } })
|
|
504
|
+
*
|
|
505
|
+
*/
|
|
506
|
+
findMany<T extends channel_agentsFindManyArgs>(args?: Prisma.SelectSubset<T, channel_agentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Create a Channel_agents.
|
|
510
|
+
* @param {channel_agentsCreateArgs} args - Arguments to create a Channel_agents.
|
|
511
|
+
* @example
|
|
512
|
+
* // Create one Channel_agents
|
|
513
|
+
* const Channel_agents = await prisma.channel_agents.create({
|
|
514
|
+
* data: {
|
|
515
|
+
* // ... data to create a Channel_agents
|
|
516
|
+
* }
|
|
517
|
+
* })
|
|
518
|
+
*
|
|
519
|
+
*/
|
|
520
|
+
create<T extends channel_agentsCreateArgs>(args: Prisma.SelectSubset<T, channel_agentsCreateArgs<ExtArgs>>): Prisma.Prisma__channel_agentsClient<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Create many Channel_agents.
|
|
524
|
+
* @param {channel_agentsCreateManyArgs} args - Arguments to create many Channel_agents.
|
|
525
|
+
* @example
|
|
526
|
+
* // Create many Channel_agents
|
|
527
|
+
* const channel_agents = await prisma.channel_agents.createMany({
|
|
528
|
+
* data: [
|
|
529
|
+
* // ... provide data here
|
|
530
|
+
* ]
|
|
531
|
+
* })
|
|
532
|
+
*
|
|
533
|
+
*/
|
|
534
|
+
createMany<T extends channel_agentsCreateManyArgs>(args?: Prisma.SelectSubset<T, channel_agentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Create many Channel_agents and returns the data saved in the database.
|
|
538
|
+
* @param {channel_agentsCreateManyAndReturnArgs} args - Arguments to create many Channel_agents.
|
|
539
|
+
* @example
|
|
540
|
+
* // Create many Channel_agents
|
|
541
|
+
* const channel_agents = await prisma.channel_agents.createManyAndReturn({
|
|
542
|
+
* data: [
|
|
543
|
+
* // ... provide data here
|
|
544
|
+
* ]
|
|
545
|
+
* })
|
|
546
|
+
*
|
|
547
|
+
* // Create many Channel_agents and only return the `channel_id`
|
|
548
|
+
* const channel_agentsWithChannel_idOnly = await prisma.channel_agents.createManyAndReturn({
|
|
549
|
+
* select: { channel_id: true },
|
|
550
|
+
* data: [
|
|
551
|
+
* // ... provide data here
|
|
552
|
+
* ]
|
|
553
|
+
* })
|
|
554
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
555
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
556
|
+
*
|
|
557
|
+
*/
|
|
558
|
+
createManyAndReturn<T extends channel_agentsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, channel_agentsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Delete a Channel_agents.
|
|
562
|
+
* @param {channel_agentsDeleteArgs} args - Arguments to delete one Channel_agents.
|
|
563
|
+
* @example
|
|
564
|
+
* // Delete one Channel_agents
|
|
565
|
+
* const Channel_agents = await prisma.channel_agents.delete({
|
|
566
|
+
* where: {
|
|
567
|
+
* // ... filter to delete one Channel_agents
|
|
568
|
+
* }
|
|
569
|
+
* })
|
|
570
|
+
*
|
|
571
|
+
*/
|
|
572
|
+
delete<T extends channel_agentsDeleteArgs>(args: Prisma.SelectSubset<T, channel_agentsDeleteArgs<ExtArgs>>): Prisma.Prisma__channel_agentsClient<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Update one Channel_agents.
|
|
576
|
+
* @param {channel_agentsUpdateArgs} args - Arguments to update one Channel_agents.
|
|
577
|
+
* @example
|
|
578
|
+
* // Update one Channel_agents
|
|
579
|
+
* const channel_agents = await prisma.channel_agents.update({
|
|
580
|
+
* where: {
|
|
581
|
+
* // ... provide filter here
|
|
582
|
+
* },
|
|
583
|
+
* data: {
|
|
584
|
+
* // ... provide data here
|
|
585
|
+
* }
|
|
586
|
+
* })
|
|
587
|
+
*
|
|
588
|
+
*/
|
|
589
|
+
update<T extends channel_agentsUpdateArgs>(args: Prisma.SelectSubset<T, channel_agentsUpdateArgs<ExtArgs>>): Prisma.Prisma__channel_agentsClient<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Delete zero or more Channel_agents.
|
|
593
|
+
* @param {channel_agentsDeleteManyArgs} args - Arguments to filter Channel_agents to delete.
|
|
594
|
+
* @example
|
|
595
|
+
* // Delete a few Channel_agents
|
|
596
|
+
* const { count } = await prisma.channel_agents.deleteMany({
|
|
597
|
+
* where: {
|
|
598
|
+
* // ... provide filter here
|
|
599
|
+
* }
|
|
600
|
+
* })
|
|
601
|
+
*
|
|
602
|
+
*/
|
|
603
|
+
deleteMany<T extends channel_agentsDeleteManyArgs>(args?: Prisma.SelectSubset<T, channel_agentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Update zero or more Channel_agents.
|
|
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 {channel_agentsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
610
|
+
* @example
|
|
611
|
+
* // Update many Channel_agents
|
|
612
|
+
* const channel_agents = await prisma.channel_agents.updateMany({
|
|
613
|
+
* where: {
|
|
614
|
+
* // ... provide filter here
|
|
615
|
+
* },
|
|
616
|
+
* data: {
|
|
617
|
+
* // ... provide data here
|
|
618
|
+
* }
|
|
619
|
+
* })
|
|
620
|
+
*
|
|
621
|
+
*/
|
|
622
|
+
updateMany<T extends channel_agentsUpdateManyArgs>(args: Prisma.SelectSubset<T, channel_agentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Update zero or more Channel_agents and returns the data updated in the database.
|
|
626
|
+
* @param {channel_agentsUpdateManyAndReturnArgs} args - Arguments to update many Channel_agents.
|
|
627
|
+
* @example
|
|
628
|
+
* // Update many Channel_agents
|
|
629
|
+
* const channel_agents = await prisma.channel_agents.updateManyAndReturn({
|
|
630
|
+
* where: {
|
|
631
|
+
* // ... provide filter here
|
|
632
|
+
* },
|
|
633
|
+
* data: [
|
|
634
|
+
* // ... provide data here
|
|
635
|
+
* ]
|
|
636
|
+
* })
|
|
637
|
+
*
|
|
638
|
+
* // Update zero or more Channel_agents and only return the `channel_id`
|
|
639
|
+
* const channel_agentsWithChannel_idOnly = await prisma.channel_agents.updateManyAndReturn({
|
|
640
|
+
* select: { channel_id: true },
|
|
641
|
+
* where: {
|
|
642
|
+
* // ... provide filter here
|
|
643
|
+
* },
|
|
644
|
+
* data: [
|
|
645
|
+
* // ... provide data here
|
|
646
|
+
* ]
|
|
647
|
+
* })
|
|
648
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
649
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
650
|
+
*
|
|
651
|
+
*/
|
|
652
|
+
updateManyAndReturn<T extends channel_agentsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, channel_agentsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Create or update one Channel_agents.
|
|
656
|
+
* @param {channel_agentsUpsertArgs} args - Arguments to update or create a Channel_agents.
|
|
657
|
+
* @example
|
|
658
|
+
* // Update or create a Channel_agents
|
|
659
|
+
* const channel_agents = await prisma.channel_agents.upsert({
|
|
660
|
+
* create: {
|
|
661
|
+
* // ... data to create a Channel_agents
|
|
662
|
+
* },
|
|
663
|
+
* update: {
|
|
664
|
+
* // ... in case it already exists, update
|
|
665
|
+
* },
|
|
666
|
+
* where: {
|
|
667
|
+
* // ... the filter for the Channel_agents we want to update
|
|
668
|
+
* }
|
|
669
|
+
* })
|
|
670
|
+
*/
|
|
671
|
+
upsert<T extends channel_agentsUpsertArgs>(args: Prisma.SelectSubset<T, channel_agentsUpsertArgs<ExtArgs>>): Prisma.Prisma__channel_agentsClient<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Count the number of Channel_agents.
|
|
676
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
677
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
678
|
+
* @param {channel_agentsCountArgs} args - Arguments to filter Channel_agents to count.
|
|
679
|
+
* @example
|
|
680
|
+
* // Count the number of Channel_agents
|
|
681
|
+
* const count = await prisma.channel_agents.count({
|
|
682
|
+
* where: {
|
|
683
|
+
* // ... the filter for the Channel_agents we want to count
|
|
684
|
+
* }
|
|
685
|
+
* })
|
|
686
|
+
**/
|
|
687
|
+
count<T extends channel_agentsCountArgs>(
|
|
688
|
+
args?: Prisma.Subset<T, channel_agentsCountArgs>,
|
|
689
|
+
): Prisma.PrismaPromise<
|
|
690
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
691
|
+
? T['select'] extends true
|
|
692
|
+
? number
|
|
693
|
+
: Prisma.GetScalarType<T['select'], Channel_agentsCountAggregateOutputType>
|
|
694
|
+
: number
|
|
695
|
+
>
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Allows you to perform aggregations operations on a Channel_agents.
|
|
699
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
700
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
701
|
+
* @param {Channel_agentsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
702
|
+
* @example
|
|
703
|
+
* // Ordered by age ascending
|
|
704
|
+
* // Where email contains prisma.io
|
|
705
|
+
* // Limited to the 10 users
|
|
706
|
+
* const aggregations = await prisma.user.aggregate({
|
|
707
|
+
* _avg: {
|
|
708
|
+
* age: true,
|
|
709
|
+
* },
|
|
710
|
+
* where: {
|
|
711
|
+
* email: {
|
|
712
|
+
* contains: "prisma.io",
|
|
713
|
+
* },
|
|
714
|
+
* },
|
|
715
|
+
* orderBy: {
|
|
716
|
+
* age: "asc",
|
|
717
|
+
* },
|
|
718
|
+
* take: 10,
|
|
719
|
+
* })
|
|
720
|
+
**/
|
|
721
|
+
aggregate<T extends Channel_agentsAggregateArgs>(args: Prisma.Subset<T, Channel_agentsAggregateArgs>): Prisma.PrismaPromise<GetChannel_agentsAggregateType<T>>
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Group by Channel_agents.
|
|
725
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
726
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
727
|
+
* @param {channel_agentsGroupByArgs} args - Group by arguments.
|
|
728
|
+
* @example
|
|
729
|
+
* // Group by city, order by createdAt, get count
|
|
730
|
+
* const result = await prisma.user.groupBy({
|
|
731
|
+
* by: ['city', 'createdAt'],
|
|
732
|
+
* orderBy: {
|
|
733
|
+
* createdAt: true
|
|
734
|
+
* },
|
|
735
|
+
* _count: {
|
|
736
|
+
* _all: true
|
|
737
|
+
* },
|
|
738
|
+
* })
|
|
739
|
+
*
|
|
740
|
+
**/
|
|
741
|
+
groupBy<
|
|
742
|
+
T extends channel_agentsGroupByArgs,
|
|
743
|
+
HasSelectOrTake extends Prisma.Or<
|
|
744
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
745
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
746
|
+
>,
|
|
747
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
748
|
+
? { orderBy: channel_agentsGroupByArgs['orderBy'] }
|
|
749
|
+
: { orderBy?: channel_agentsGroupByArgs['orderBy'] },
|
|
750
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
751
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
752
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
753
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
754
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
755
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
756
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
757
|
+
? `Error: "by" must not be empty.`
|
|
758
|
+
: HavingValid extends Prisma.False
|
|
759
|
+
? {
|
|
760
|
+
[P in HavingFields]: P extends ByFields
|
|
761
|
+
? never
|
|
762
|
+
: P extends string
|
|
763
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
764
|
+
: [
|
|
765
|
+
Error,
|
|
766
|
+
'Field ',
|
|
767
|
+
P,
|
|
768
|
+
` in "having" needs to be provided in "by"`,
|
|
769
|
+
]
|
|
770
|
+
}[HavingFields]
|
|
771
|
+
: 'take' extends Prisma.Keys<T>
|
|
772
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
773
|
+
? ByValid extends Prisma.True
|
|
774
|
+
? {}
|
|
775
|
+
: {
|
|
776
|
+
[P in OrderFields]: P extends ByFields
|
|
777
|
+
? never
|
|
778
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
779
|
+
}[OrderFields]
|
|
780
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
781
|
+
: 'skip' extends Prisma.Keys<T>
|
|
782
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
783
|
+
? ByValid extends Prisma.True
|
|
784
|
+
? {}
|
|
785
|
+
: {
|
|
786
|
+
[P in OrderFields]: P extends ByFields
|
|
787
|
+
? never
|
|
788
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
789
|
+
}[OrderFields]
|
|
790
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
791
|
+
: ByValid extends Prisma.True
|
|
792
|
+
? {}
|
|
793
|
+
: {
|
|
794
|
+
[P in OrderFields]: P extends ByFields
|
|
795
|
+
? never
|
|
796
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
797
|
+
}[OrderFields]
|
|
798
|
+
>(args: Prisma.SubsetIntersection<T, channel_agentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetChannel_agentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
799
|
+
/**
|
|
800
|
+
* Fields of the channel_agents model
|
|
801
|
+
*/
|
|
802
|
+
readonly fields: channel_agentsFieldRefs;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* The delegate class that acts as a "Promise-like" for channel_agents.
|
|
807
|
+
* Why is this prefixed with `Prisma__`?
|
|
808
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
809
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
810
|
+
*/
|
|
811
|
+
export interface Prisma__channel_agentsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
812
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
813
|
+
channel<T extends Prisma.channel_directoriesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.channel_directoriesDefaultArgs<ExtArgs>>): Prisma.Prisma__channel_directoriesClient<runtime.Types.Result.GetResult<Prisma.$channel_directoriesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
814
|
+
/**
|
|
815
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
816
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
817
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
818
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
819
|
+
*/
|
|
820
|
+
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>
|
|
821
|
+
/**
|
|
822
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
823
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
824
|
+
* @returns A Promise for the completion of the callback.
|
|
825
|
+
*/
|
|
826
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
827
|
+
/**
|
|
828
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
829
|
+
* resolved value cannot be modified from the callback.
|
|
830
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
831
|
+
* @returns A Promise for the completion of the callback.
|
|
832
|
+
*/
|
|
833
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Fields of the channel_agents model
|
|
841
|
+
*/
|
|
842
|
+
export interface channel_agentsFieldRefs {
|
|
843
|
+
readonly channel_id: Prisma.FieldRef<"channel_agents", 'String'>
|
|
844
|
+
readonly agent_name: Prisma.FieldRef<"channel_agents", 'String'>
|
|
845
|
+
readonly created_at: Prisma.FieldRef<"channel_agents", 'DateTime'>
|
|
846
|
+
readonly updated_at: Prisma.FieldRef<"channel_agents", 'DateTime'>
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
// Custom InputTypes
|
|
851
|
+
/**
|
|
852
|
+
* channel_agents findUnique
|
|
853
|
+
*/
|
|
854
|
+
export type channel_agentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
855
|
+
/**
|
|
856
|
+
* Select specific fields to fetch from the channel_agents
|
|
857
|
+
*/
|
|
858
|
+
select?: Prisma.channel_agentsSelect<ExtArgs> | null
|
|
859
|
+
/**
|
|
860
|
+
* Omit specific fields from the channel_agents
|
|
861
|
+
*/
|
|
862
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
863
|
+
/**
|
|
864
|
+
* Choose, which related nodes to fetch as well
|
|
865
|
+
*/
|
|
866
|
+
include?: Prisma.channel_agentsInclude<ExtArgs> | null
|
|
867
|
+
/**
|
|
868
|
+
* Filter, which channel_agents to fetch.
|
|
869
|
+
*/
|
|
870
|
+
where: Prisma.channel_agentsWhereUniqueInput
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* channel_agents findUniqueOrThrow
|
|
875
|
+
*/
|
|
876
|
+
export type channel_agentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
877
|
+
/**
|
|
878
|
+
* Select specific fields to fetch from the channel_agents
|
|
879
|
+
*/
|
|
880
|
+
select?: Prisma.channel_agentsSelect<ExtArgs> | null
|
|
881
|
+
/**
|
|
882
|
+
* Omit specific fields from the channel_agents
|
|
883
|
+
*/
|
|
884
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
885
|
+
/**
|
|
886
|
+
* Choose, which related nodes to fetch as well
|
|
887
|
+
*/
|
|
888
|
+
include?: Prisma.channel_agentsInclude<ExtArgs> | null
|
|
889
|
+
/**
|
|
890
|
+
* Filter, which channel_agents to fetch.
|
|
891
|
+
*/
|
|
892
|
+
where: Prisma.channel_agentsWhereUniqueInput
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* channel_agents findFirst
|
|
897
|
+
*/
|
|
898
|
+
export type channel_agentsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
899
|
+
/**
|
|
900
|
+
* Select specific fields to fetch from the channel_agents
|
|
901
|
+
*/
|
|
902
|
+
select?: Prisma.channel_agentsSelect<ExtArgs> | null
|
|
903
|
+
/**
|
|
904
|
+
* Omit specific fields from the channel_agents
|
|
905
|
+
*/
|
|
906
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
907
|
+
/**
|
|
908
|
+
* Choose, which related nodes to fetch as well
|
|
909
|
+
*/
|
|
910
|
+
include?: Prisma.channel_agentsInclude<ExtArgs> | null
|
|
911
|
+
/**
|
|
912
|
+
* Filter, which channel_agents to fetch.
|
|
913
|
+
*/
|
|
914
|
+
where?: Prisma.channel_agentsWhereInput
|
|
915
|
+
/**
|
|
916
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
917
|
+
*
|
|
918
|
+
* Determine the order of channel_agents to fetch.
|
|
919
|
+
*/
|
|
920
|
+
orderBy?: Prisma.channel_agentsOrderByWithRelationInput | Prisma.channel_agentsOrderByWithRelationInput[]
|
|
921
|
+
/**
|
|
922
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
923
|
+
*
|
|
924
|
+
* Sets the position for searching for channel_agents.
|
|
925
|
+
*/
|
|
926
|
+
cursor?: Prisma.channel_agentsWhereUniqueInput
|
|
927
|
+
/**
|
|
928
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
929
|
+
*
|
|
930
|
+
* Take `±n` channel_agents from the position of the cursor.
|
|
931
|
+
*/
|
|
932
|
+
take?: number
|
|
933
|
+
/**
|
|
934
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
935
|
+
*
|
|
936
|
+
* Skip the first `n` channel_agents.
|
|
937
|
+
*/
|
|
938
|
+
skip?: number
|
|
939
|
+
/**
|
|
940
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
941
|
+
*
|
|
942
|
+
* Filter by unique combinations of channel_agents.
|
|
943
|
+
*/
|
|
944
|
+
distinct?: Prisma.Channel_agentsScalarFieldEnum | Prisma.Channel_agentsScalarFieldEnum[]
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* channel_agents findFirstOrThrow
|
|
949
|
+
*/
|
|
950
|
+
export type channel_agentsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
951
|
+
/**
|
|
952
|
+
* Select specific fields to fetch from the channel_agents
|
|
953
|
+
*/
|
|
954
|
+
select?: Prisma.channel_agentsSelect<ExtArgs> | null
|
|
955
|
+
/**
|
|
956
|
+
* Omit specific fields from the channel_agents
|
|
957
|
+
*/
|
|
958
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
959
|
+
/**
|
|
960
|
+
* Choose, which related nodes to fetch as well
|
|
961
|
+
*/
|
|
962
|
+
include?: Prisma.channel_agentsInclude<ExtArgs> | null
|
|
963
|
+
/**
|
|
964
|
+
* Filter, which channel_agents to fetch.
|
|
965
|
+
*/
|
|
966
|
+
where?: Prisma.channel_agentsWhereInput
|
|
967
|
+
/**
|
|
968
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
969
|
+
*
|
|
970
|
+
* Determine the order of channel_agents to fetch.
|
|
971
|
+
*/
|
|
972
|
+
orderBy?: Prisma.channel_agentsOrderByWithRelationInput | Prisma.channel_agentsOrderByWithRelationInput[]
|
|
973
|
+
/**
|
|
974
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
975
|
+
*
|
|
976
|
+
* Sets the position for searching for channel_agents.
|
|
977
|
+
*/
|
|
978
|
+
cursor?: Prisma.channel_agentsWhereUniqueInput
|
|
979
|
+
/**
|
|
980
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
981
|
+
*
|
|
982
|
+
* Take `±n` channel_agents from the position of the cursor.
|
|
983
|
+
*/
|
|
984
|
+
take?: number
|
|
985
|
+
/**
|
|
986
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
987
|
+
*
|
|
988
|
+
* Skip the first `n` channel_agents.
|
|
989
|
+
*/
|
|
990
|
+
skip?: number
|
|
991
|
+
/**
|
|
992
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
993
|
+
*
|
|
994
|
+
* Filter by unique combinations of channel_agents.
|
|
995
|
+
*/
|
|
996
|
+
distinct?: Prisma.Channel_agentsScalarFieldEnum | Prisma.Channel_agentsScalarFieldEnum[]
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* channel_agents findMany
|
|
1001
|
+
*/
|
|
1002
|
+
export type channel_agentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1003
|
+
/**
|
|
1004
|
+
* Select specific fields to fetch from the channel_agents
|
|
1005
|
+
*/
|
|
1006
|
+
select?: Prisma.channel_agentsSelect<ExtArgs> | null
|
|
1007
|
+
/**
|
|
1008
|
+
* Omit specific fields from the channel_agents
|
|
1009
|
+
*/
|
|
1010
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
1011
|
+
/**
|
|
1012
|
+
* Choose, which related nodes to fetch as well
|
|
1013
|
+
*/
|
|
1014
|
+
include?: Prisma.channel_agentsInclude<ExtArgs> | null
|
|
1015
|
+
/**
|
|
1016
|
+
* Filter, which channel_agents to fetch.
|
|
1017
|
+
*/
|
|
1018
|
+
where?: Prisma.channel_agentsWhereInput
|
|
1019
|
+
/**
|
|
1020
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1021
|
+
*
|
|
1022
|
+
* Determine the order of channel_agents to fetch.
|
|
1023
|
+
*/
|
|
1024
|
+
orderBy?: Prisma.channel_agentsOrderByWithRelationInput | Prisma.channel_agentsOrderByWithRelationInput[]
|
|
1025
|
+
/**
|
|
1026
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1027
|
+
*
|
|
1028
|
+
* Sets the position for listing channel_agents.
|
|
1029
|
+
*/
|
|
1030
|
+
cursor?: Prisma.channel_agentsWhereUniqueInput
|
|
1031
|
+
/**
|
|
1032
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1033
|
+
*
|
|
1034
|
+
* Take `±n` channel_agents from the position of the cursor.
|
|
1035
|
+
*/
|
|
1036
|
+
take?: number
|
|
1037
|
+
/**
|
|
1038
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1039
|
+
*
|
|
1040
|
+
* Skip the first `n` channel_agents.
|
|
1041
|
+
*/
|
|
1042
|
+
skip?: number
|
|
1043
|
+
distinct?: Prisma.Channel_agentsScalarFieldEnum | Prisma.Channel_agentsScalarFieldEnum[]
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* channel_agents create
|
|
1048
|
+
*/
|
|
1049
|
+
export type channel_agentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1050
|
+
/**
|
|
1051
|
+
* Select specific fields to fetch from the channel_agents
|
|
1052
|
+
*/
|
|
1053
|
+
select?: Prisma.channel_agentsSelect<ExtArgs> | null
|
|
1054
|
+
/**
|
|
1055
|
+
* Omit specific fields from the channel_agents
|
|
1056
|
+
*/
|
|
1057
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
1058
|
+
/**
|
|
1059
|
+
* Choose, which related nodes to fetch as well
|
|
1060
|
+
*/
|
|
1061
|
+
include?: Prisma.channel_agentsInclude<ExtArgs> | null
|
|
1062
|
+
/**
|
|
1063
|
+
* The data needed to create a channel_agents.
|
|
1064
|
+
*/
|
|
1065
|
+
data: Prisma.XOR<Prisma.channel_agentsCreateInput, Prisma.channel_agentsUncheckedCreateInput>
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* channel_agents createMany
|
|
1070
|
+
*/
|
|
1071
|
+
export type channel_agentsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1072
|
+
/**
|
|
1073
|
+
* The data used to create many channel_agents.
|
|
1074
|
+
*/
|
|
1075
|
+
data: Prisma.channel_agentsCreateManyInput | Prisma.channel_agentsCreateManyInput[]
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* channel_agents createManyAndReturn
|
|
1080
|
+
*/
|
|
1081
|
+
export type channel_agentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1082
|
+
/**
|
|
1083
|
+
* Select specific fields to fetch from the channel_agents
|
|
1084
|
+
*/
|
|
1085
|
+
select?: Prisma.channel_agentsSelectCreateManyAndReturn<ExtArgs> | null
|
|
1086
|
+
/**
|
|
1087
|
+
* Omit specific fields from the channel_agents
|
|
1088
|
+
*/
|
|
1089
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
1090
|
+
/**
|
|
1091
|
+
* The data used to create many channel_agents.
|
|
1092
|
+
*/
|
|
1093
|
+
data: Prisma.channel_agentsCreateManyInput | Prisma.channel_agentsCreateManyInput[]
|
|
1094
|
+
/**
|
|
1095
|
+
* Choose, which related nodes to fetch as well
|
|
1096
|
+
*/
|
|
1097
|
+
include?: Prisma.channel_agentsIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* channel_agents update
|
|
1102
|
+
*/
|
|
1103
|
+
export type channel_agentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1104
|
+
/**
|
|
1105
|
+
* Select specific fields to fetch from the channel_agents
|
|
1106
|
+
*/
|
|
1107
|
+
select?: Prisma.channel_agentsSelect<ExtArgs> | null
|
|
1108
|
+
/**
|
|
1109
|
+
* Omit specific fields from the channel_agents
|
|
1110
|
+
*/
|
|
1111
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
1112
|
+
/**
|
|
1113
|
+
* Choose, which related nodes to fetch as well
|
|
1114
|
+
*/
|
|
1115
|
+
include?: Prisma.channel_agentsInclude<ExtArgs> | null
|
|
1116
|
+
/**
|
|
1117
|
+
* The data needed to update a channel_agents.
|
|
1118
|
+
*/
|
|
1119
|
+
data: Prisma.XOR<Prisma.channel_agentsUpdateInput, Prisma.channel_agentsUncheckedUpdateInput>
|
|
1120
|
+
/**
|
|
1121
|
+
* Choose, which channel_agents to update.
|
|
1122
|
+
*/
|
|
1123
|
+
where: Prisma.channel_agentsWhereUniqueInput
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* channel_agents updateMany
|
|
1128
|
+
*/
|
|
1129
|
+
export type channel_agentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1130
|
+
/**
|
|
1131
|
+
* The data used to update channel_agents.
|
|
1132
|
+
*/
|
|
1133
|
+
data: Prisma.XOR<Prisma.channel_agentsUpdateManyMutationInput, Prisma.channel_agentsUncheckedUpdateManyInput>
|
|
1134
|
+
/**
|
|
1135
|
+
* Filter which channel_agents to update
|
|
1136
|
+
*/
|
|
1137
|
+
where?: Prisma.channel_agentsWhereInput
|
|
1138
|
+
/**
|
|
1139
|
+
* Limit how many channel_agents to update.
|
|
1140
|
+
*/
|
|
1141
|
+
limit?: number
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* channel_agents updateManyAndReturn
|
|
1146
|
+
*/
|
|
1147
|
+
export type channel_agentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1148
|
+
/**
|
|
1149
|
+
* Select specific fields to fetch from the channel_agents
|
|
1150
|
+
*/
|
|
1151
|
+
select?: Prisma.channel_agentsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1152
|
+
/**
|
|
1153
|
+
* Omit specific fields from the channel_agents
|
|
1154
|
+
*/
|
|
1155
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
1156
|
+
/**
|
|
1157
|
+
* The data used to update channel_agents.
|
|
1158
|
+
*/
|
|
1159
|
+
data: Prisma.XOR<Prisma.channel_agentsUpdateManyMutationInput, Prisma.channel_agentsUncheckedUpdateManyInput>
|
|
1160
|
+
/**
|
|
1161
|
+
* Filter which channel_agents to update
|
|
1162
|
+
*/
|
|
1163
|
+
where?: Prisma.channel_agentsWhereInput
|
|
1164
|
+
/**
|
|
1165
|
+
* Limit how many channel_agents to update.
|
|
1166
|
+
*/
|
|
1167
|
+
limit?: number
|
|
1168
|
+
/**
|
|
1169
|
+
* Choose, which related nodes to fetch as well
|
|
1170
|
+
*/
|
|
1171
|
+
include?: Prisma.channel_agentsIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* channel_agents upsert
|
|
1176
|
+
*/
|
|
1177
|
+
export type channel_agentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1178
|
+
/**
|
|
1179
|
+
* Select specific fields to fetch from the channel_agents
|
|
1180
|
+
*/
|
|
1181
|
+
select?: Prisma.channel_agentsSelect<ExtArgs> | null
|
|
1182
|
+
/**
|
|
1183
|
+
* Omit specific fields from the channel_agents
|
|
1184
|
+
*/
|
|
1185
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
1186
|
+
/**
|
|
1187
|
+
* Choose, which related nodes to fetch as well
|
|
1188
|
+
*/
|
|
1189
|
+
include?: Prisma.channel_agentsInclude<ExtArgs> | null
|
|
1190
|
+
/**
|
|
1191
|
+
* The filter to search for the channel_agents to update in case it exists.
|
|
1192
|
+
*/
|
|
1193
|
+
where: Prisma.channel_agentsWhereUniqueInput
|
|
1194
|
+
/**
|
|
1195
|
+
* In case the channel_agents found by the `where` argument doesn't exist, create a new channel_agents with this data.
|
|
1196
|
+
*/
|
|
1197
|
+
create: Prisma.XOR<Prisma.channel_agentsCreateInput, Prisma.channel_agentsUncheckedCreateInput>
|
|
1198
|
+
/**
|
|
1199
|
+
* In case the channel_agents was found with the provided `where` argument, update it with this data.
|
|
1200
|
+
*/
|
|
1201
|
+
update: Prisma.XOR<Prisma.channel_agentsUpdateInput, Prisma.channel_agentsUncheckedUpdateInput>
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* channel_agents delete
|
|
1206
|
+
*/
|
|
1207
|
+
export type channel_agentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1208
|
+
/**
|
|
1209
|
+
* Select specific fields to fetch from the channel_agents
|
|
1210
|
+
*/
|
|
1211
|
+
select?: Prisma.channel_agentsSelect<ExtArgs> | null
|
|
1212
|
+
/**
|
|
1213
|
+
* Omit specific fields from the channel_agents
|
|
1214
|
+
*/
|
|
1215
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
1216
|
+
/**
|
|
1217
|
+
* Choose, which related nodes to fetch as well
|
|
1218
|
+
*/
|
|
1219
|
+
include?: Prisma.channel_agentsInclude<ExtArgs> | null
|
|
1220
|
+
/**
|
|
1221
|
+
* Filter which channel_agents to delete.
|
|
1222
|
+
*/
|
|
1223
|
+
where: Prisma.channel_agentsWhereUniqueInput
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* channel_agents deleteMany
|
|
1228
|
+
*/
|
|
1229
|
+
export type channel_agentsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1230
|
+
/**
|
|
1231
|
+
* Filter which channel_agents to delete
|
|
1232
|
+
*/
|
|
1233
|
+
where?: Prisma.channel_agentsWhereInput
|
|
1234
|
+
/**
|
|
1235
|
+
* Limit how many channel_agents to delete.
|
|
1236
|
+
*/
|
|
1237
|
+
limit?: number
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* channel_agents without action
|
|
1242
|
+
*/
|
|
1243
|
+
export type channel_agentsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1244
|
+
/**
|
|
1245
|
+
* Select specific fields to fetch from the channel_agents
|
|
1246
|
+
*/
|
|
1247
|
+
select?: Prisma.channel_agentsSelect<ExtArgs> | null
|
|
1248
|
+
/**
|
|
1249
|
+
* Omit specific fields from the channel_agents
|
|
1250
|
+
*/
|
|
1251
|
+
omit?: Prisma.channel_agentsOmit<ExtArgs> | null
|
|
1252
|
+
/**
|
|
1253
|
+
* Choose, which related nodes to fetch as well
|
|
1254
|
+
*/
|
|
1255
|
+
include?: Prisma.channel_agentsInclude<ExtArgs> | null
|
|
1256
|
+
}
|