@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,1114 @@
|
|
|
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 `session_models` 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 session_models
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type session_modelsModel = runtime.Types.Result.DefaultSelection<Prisma.$session_modelsPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateSession_models = {
|
|
22
|
+
_count: Session_modelsCountAggregateOutputType | null
|
|
23
|
+
_min: Session_modelsMinAggregateOutputType | null
|
|
24
|
+
_max: Session_modelsMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Session_modelsMinAggregateOutputType = {
|
|
28
|
+
session_id: string | null
|
|
29
|
+
model_id: string | null
|
|
30
|
+
variant: string | null
|
|
31
|
+
created_at: Date | null
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type Session_modelsMaxAggregateOutputType = {
|
|
35
|
+
session_id: string | null
|
|
36
|
+
model_id: string | null
|
|
37
|
+
variant: string | null
|
|
38
|
+
created_at: Date | null
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type Session_modelsCountAggregateOutputType = {
|
|
42
|
+
session_id: number
|
|
43
|
+
model_id: number
|
|
44
|
+
variant: number
|
|
45
|
+
created_at: number
|
|
46
|
+
_all: number
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
export type Session_modelsMinAggregateInputType = {
|
|
51
|
+
session_id?: true
|
|
52
|
+
model_id?: true
|
|
53
|
+
variant?: true
|
|
54
|
+
created_at?: true
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type Session_modelsMaxAggregateInputType = {
|
|
58
|
+
session_id?: true
|
|
59
|
+
model_id?: true
|
|
60
|
+
variant?: true
|
|
61
|
+
created_at?: true
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type Session_modelsCountAggregateInputType = {
|
|
65
|
+
session_id?: true
|
|
66
|
+
model_id?: true
|
|
67
|
+
variant?: true
|
|
68
|
+
created_at?: true
|
|
69
|
+
_all?: true
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type Session_modelsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
73
|
+
/**
|
|
74
|
+
* Filter which session_models to aggregate.
|
|
75
|
+
*/
|
|
76
|
+
where?: Prisma.session_modelsWhereInput
|
|
77
|
+
/**
|
|
78
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
79
|
+
*
|
|
80
|
+
* Determine the order of session_models to fetch.
|
|
81
|
+
*/
|
|
82
|
+
orderBy?: Prisma.session_modelsOrderByWithRelationInput | Prisma.session_modelsOrderByWithRelationInput[]
|
|
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.session_modelsWhereUniqueInput
|
|
89
|
+
/**
|
|
90
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
91
|
+
*
|
|
92
|
+
* Take `±n` session_models 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` session_models.
|
|
99
|
+
*/
|
|
100
|
+
skip?: number
|
|
101
|
+
/**
|
|
102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
103
|
+
*
|
|
104
|
+
* Count returned session_models
|
|
105
|
+
**/
|
|
106
|
+
_count?: true | Session_modelsCountAggregateInputType
|
|
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?: Session_modelsMinAggregateInputType
|
|
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?: Session_modelsMaxAggregateInputType
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type GetSession_modelsAggregateType<T extends Session_modelsAggregateArgs> = {
|
|
122
|
+
[P in keyof T & keyof AggregateSession_models]: P extends '_count' | 'count'
|
|
123
|
+
? T[P] extends true
|
|
124
|
+
? number
|
|
125
|
+
: Prisma.GetScalarType<T[P], AggregateSession_models[P]>
|
|
126
|
+
: Prisma.GetScalarType<T[P], AggregateSession_models[P]>
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
export type session_modelsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
133
|
+
where?: Prisma.session_modelsWhereInput
|
|
134
|
+
orderBy?: Prisma.session_modelsOrderByWithAggregationInput | Prisma.session_modelsOrderByWithAggregationInput[]
|
|
135
|
+
by: Prisma.Session_modelsScalarFieldEnum[] | Prisma.Session_modelsScalarFieldEnum
|
|
136
|
+
having?: Prisma.session_modelsScalarWhereWithAggregatesInput
|
|
137
|
+
take?: number
|
|
138
|
+
skip?: number
|
|
139
|
+
_count?: Session_modelsCountAggregateInputType | true
|
|
140
|
+
_min?: Session_modelsMinAggregateInputType
|
|
141
|
+
_max?: Session_modelsMaxAggregateInputType
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type Session_modelsGroupByOutputType = {
|
|
145
|
+
session_id: string
|
|
146
|
+
model_id: string
|
|
147
|
+
variant: string | null
|
|
148
|
+
created_at: Date | null
|
|
149
|
+
_count: Session_modelsCountAggregateOutputType | null
|
|
150
|
+
_min: Session_modelsMinAggregateOutputType | null
|
|
151
|
+
_max: Session_modelsMaxAggregateOutputType | null
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
type GetSession_modelsGroupByPayload<T extends session_modelsGroupByArgs> = Prisma.PrismaPromise<
|
|
155
|
+
Array<
|
|
156
|
+
Prisma.PickEnumerable<Session_modelsGroupByOutputType, T['by']> &
|
|
157
|
+
{
|
|
158
|
+
[P in ((keyof T) & (keyof Session_modelsGroupByOutputType))]: P extends '_count'
|
|
159
|
+
? T[P] extends boolean
|
|
160
|
+
? number
|
|
161
|
+
: Prisma.GetScalarType<T[P], Session_modelsGroupByOutputType[P]>
|
|
162
|
+
: Prisma.GetScalarType<T[P], Session_modelsGroupByOutputType[P]>
|
|
163
|
+
}
|
|
164
|
+
>
|
|
165
|
+
>
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
export type session_modelsWhereInput = {
|
|
170
|
+
AND?: Prisma.session_modelsWhereInput | Prisma.session_modelsWhereInput[]
|
|
171
|
+
OR?: Prisma.session_modelsWhereInput[]
|
|
172
|
+
NOT?: Prisma.session_modelsWhereInput | Prisma.session_modelsWhereInput[]
|
|
173
|
+
session_id?: Prisma.StringFilter<"session_models"> | string
|
|
174
|
+
model_id?: Prisma.StringFilter<"session_models"> | string
|
|
175
|
+
variant?: Prisma.StringNullableFilter<"session_models"> | string | null
|
|
176
|
+
created_at?: Prisma.DateTimeNullableFilter<"session_models"> | Date | string | null
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type session_modelsOrderByWithRelationInput = {
|
|
180
|
+
session_id?: Prisma.SortOrder
|
|
181
|
+
model_id?: Prisma.SortOrder
|
|
182
|
+
variant?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
183
|
+
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type session_modelsWhereUniqueInput = Prisma.AtLeast<{
|
|
187
|
+
session_id?: string
|
|
188
|
+
AND?: Prisma.session_modelsWhereInput | Prisma.session_modelsWhereInput[]
|
|
189
|
+
OR?: Prisma.session_modelsWhereInput[]
|
|
190
|
+
NOT?: Prisma.session_modelsWhereInput | Prisma.session_modelsWhereInput[]
|
|
191
|
+
model_id?: Prisma.StringFilter<"session_models"> | string
|
|
192
|
+
variant?: Prisma.StringNullableFilter<"session_models"> | string | null
|
|
193
|
+
created_at?: Prisma.DateTimeNullableFilter<"session_models"> | Date | string | null
|
|
194
|
+
}, "session_id">
|
|
195
|
+
|
|
196
|
+
export type session_modelsOrderByWithAggregationInput = {
|
|
197
|
+
session_id?: Prisma.SortOrder
|
|
198
|
+
model_id?: Prisma.SortOrder
|
|
199
|
+
variant?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
200
|
+
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
201
|
+
_count?: Prisma.session_modelsCountOrderByAggregateInput
|
|
202
|
+
_max?: Prisma.session_modelsMaxOrderByAggregateInput
|
|
203
|
+
_min?: Prisma.session_modelsMinOrderByAggregateInput
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type session_modelsScalarWhereWithAggregatesInput = {
|
|
207
|
+
AND?: Prisma.session_modelsScalarWhereWithAggregatesInput | Prisma.session_modelsScalarWhereWithAggregatesInput[]
|
|
208
|
+
OR?: Prisma.session_modelsScalarWhereWithAggregatesInput[]
|
|
209
|
+
NOT?: Prisma.session_modelsScalarWhereWithAggregatesInput | Prisma.session_modelsScalarWhereWithAggregatesInput[]
|
|
210
|
+
session_id?: Prisma.StringWithAggregatesFilter<"session_models"> | string
|
|
211
|
+
model_id?: Prisma.StringWithAggregatesFilter<"session_models"> | string
|
|
212
|
+
variant?: Prisma.StringNullableWithAggregatesFilter<"session_models"> | string | null
|
|
213
|
+
created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"session_models"> | Date | string | null
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type session_modelsCreateInput = {
|
|
217
|
+
session_id: string
|
|
218
|
+
model_id: string
|
|
219
|
+
variant?: string | null
|
|
220
|
+
created_at?: Date | string | null
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type session_modelsUncheckedCreateInput = {
|
|
224
|
+
session_id: string
|
|
225
|
+
model_id: string
|
|
226
|
+
variant?: string | null
|
|
227
|
+
created_at?: Date | string | null
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export type session_modelsUpdateInput = {
|
|
231
|
+
session_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
232
|
+
model_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
233
|
+
variant?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
234
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export type session_modelsUncheckedUpdateInput = {
|
|
238
|
+
session_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
239
|
+
model_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
240
|
+
variant?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
241
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export type session_modelsCreateManyInput = {
|
|
245
|
+
session_id: string
|
|
246
|
+
model_id: string
|
|
247
|
+
variant?: string | null
|
|
248
|
+
created_at?: Date | string | null
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export type session_modelsUpdateManyMutationInput = {
|
|
252
|
+
session_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
253
|
+
model_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
254
|
+
variant?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
255
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export type session_modelsUncheckedUpdateManyInput = {
|
|
259
|
+
session_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
260
|
+
model_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
261
|
+
variant?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
262
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export type session_modelsCountOrderByAggregateInput = {
|
|
266
|
+
session_id?: Prisma.SortOrder
|
|
267
|
+
model_id?: Prisma.SortOrder
|
|
268
|
+
variant?: Prisma.SortOrder
|
|
269
|
+
created_at?: Prisma.SortOrder
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export type session_modelsMaxOrderByAggregateInput = {
|
|
273
|
+
session_id?: Prisma.SortOrder
|
|
274
|
+
model_id?: Prisma.SortOrder
|
|
275
|
+
variant?: Prisma.SortOrder
|
|
276
|
+
created_at?: Prisma.SortOrder
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export type session_modelsMinOrderByAggregateInput = {
|
|
280
|
+
session_id?: Prisma.SortOrder
|
|
281
|
+
model_id?: Prisma.SortOrder
|
|
282
|
+
variant?: Prisma.SortOrder
|
|
283
|
+
created_at?: Prisma.SortOrder
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
export type session_modelsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
289
|
+
session_id?: boolean
|
|
290
|
+
model_id?: boolean
|
|
291
|
+
variant?: boolean
|
|
292
|
+
created_at?: boolean
|
|
293
|
+
}, ExtArgs["result"]["session_models"]>
|
|
294
|
+
|
|
295
|
+
export type session_modelsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
296
|
+
session_id?: boolean
|
|
297
|
+
model_id?: boolean
|
|
298
|
+
variant?: boolean
|
|
299
|
+
created_at?: boolean
|
|
300
|
+
}, ExtArgs["result"]["session_models"]>
|
|
301
|
+
|
|
302
|
+
export type session_modelsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
303
|
+
session_id?: boolean
|
|
304
|
+
model_id?: boolean
|
|
305
|
+
variant?: boolean
|
|
306
|
+
created_at?: boolean
|
|
307
|
+
}, ExtArgs["result"]["session_models"]>
|
|
308
|
+
|
|
309
|
+
export type session_modelsSelectScalar = {
|
|
310
|
+
session_id?: boolean
|
|
311
|
+
model_id?: boolean
|
|
312
|
+
variant?: boolean
|
|
313
|
+
created_at?: boolean
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export type session_modelsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"session_id" | "model_id" | "variant" | "created_at", ExtArgs["result"]["session_models"]>
|
|
317
|
+
|
|
318
|
+
export type $session_modelsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
319
|
+
name: "session_models"
|
|
320
|
+
objects: {}
|
|
321
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
322
|
+
session_id: string
|
|
323
|
+
model_id: string
|
|
324
|
+
variant: string | null
|
|
325
|
+
created_at: Date | null
|
|
326
|
+
}, ExtArgs["result"]["session_models"]>
|
|
327
|
+
composites: {}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export type session_modelsGetPayload<S extends boolean | null | undefined | session_modelsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$session_modelsPayload, S>
|
|
331
|
+
|
|
332
|
+
export type session_modelsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
333
|
+
Omit<session_modelsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
334
|
+
select?: Session_modelsCountAggregateInputType | true
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export interface session_modelsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
338
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['session_models'], meta: { name: 'session_models' } }
|
|
339
|
+
/**
|
|
340
|
+
* Find zero or one Session_models that matches the filter.
|
|
341
|
+
* @param {session_modelsFindUniqueArgs} args - Arguments to find a Session_models
|
|
342
|
+
* @example
|
|
343
|
+
* // Get one Session_models
|
|
344
|
+
* const session_models = await prisma.session_models.findUnique({
|
|
345
|
+
* where: {
|
|
346
|
+
* // ... provide filter here
|
|
347
|
+
* }
|
|
348
|
+
* })
|
|
349
|
+
*/
|
|
350
|
+
findUnique<T extends session_modelsFindUniqueArgs>(args: Prisma.SelectSubset<T, session_modelsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__session_modelsClient<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Find one Session_models that matches the filter or throw an error with `error.code='P2025'`
|
|
354
|
+
* if no matches were found.
|
|
355
|
+
* @param {session_modelsFindUniqueOrThrowArgs} args - Arguments to find a Session_models
|
|
356
|
+
* @example
|
|
357
|
+
* // Get one Session_models
|
|
358
|
+
* const session_models = await prisma.session_models.findUniqueOrThrow({
|
|
359
|
+
* where: {
|
|
360
|
+
* // ... provide filter here
|
|
361
|
+
* }
|
|
362
|
+
* })
|
|
363
|
+
*/
|
|
364
|
+
findUniqueOrThrow<T extends session_modelsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, session_modelsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__session_modelsClient<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Find the first Session_models that matches the filter.
|
|
368
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
369
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
370
|
+
* @param {session_modelsFindFirstArgs} args - Arguments to find a Session_models
|
|
371
|
+
* @example
|
|
372
|
+
* // Get one Session_models
|
|
373
|
+
* const session_models = await prisma.session_models.findFirst({
|
|
374
|
+
* where: {
|
|
375
|
+
* // ... provide filter here
|
|
376
|
+
* }
|
|
377
|
+
* })
|
|
378
|
+
*/
|
|
379
|
+
findFirst<T extends session_modelsFindFirstArgs>(args?: Prisma.SelectSubset<T, session_modelsFindFirstArgs<ExtArgs>>): Prisma.Prisma__session_modelsClient<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Find the first Session_models that matches the filter or
|
|
383
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
384
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
385
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
386
|
+
* @param {session_modelsFindFirstOrThrowArgs} args - Arguments to find a Session_models
|
|
387
|
+
* @example
|
|
388
|
+
* // Get one Session_models
|
|
389
|
+
* const session_models = await prisma.session_models.findFirstOrThrow({
|
|
390
|
+
* where: {
|
|
391
|
+
* // ... provide filter here
|
|
392
|
+
* }
|
|
393
|
+
* })
|
|
394
|
+
*/
|
|
395
|
+
findFirstOrThrow<T extends session_modelsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, session_modelsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__session_modelsClient<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Find zero or more Session_models that matches the filter.
|
|
399
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
400
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
401
|
+
* @param {session_modelsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
402
|
+
* @example
|
|
403
|
+
* // Get all Session_models
|
|
404
|
+
* const session_models = await prisma.session_models.findMany()
|
|
405
|
+
*
|
|
406
|
+
* // Get first 10 Session_models
|
|
407
|
+
* const session_models = await prisma.session_models.findMany({ take: 10 })
|
|
408
|
+
*
|
|
409
|
+
* // Only select the `session_id`
|
|
410
|
+
* const session_modelsWithSession_idOnly = await prisma.session_models.findMany({ select: { session_id: true } })
|
|
411
|
+
*
|
|
412
|
+
*/
|
|
413
|
+
findMany<T extends session_modelsFindManyArgs>(args?: Prisma.SelectSubset<T, session_modelsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Create a Session_models.
|
|
417
|
+
* @param {session_modelsCreateArgs} args - Arguments to create a Session_models.
|
|
418
|
+
* @example
|
|
419
|
+
* // Create one Session_models
|
|
420
|
+
* const Session_models = await prisma.session_models.create({
|
|
421
|
+
* data: {
|
|
422
|
+
* // ... data to create a Session_models
|
|
423
|
+
* }
|
|
424
|
+
* })
|
|
425
|
+
*
|
|
426
|
+
*/
|
|
427
|
+
create<T extends session_modelsCreateArgs>(args: Prisma.SelectSubset<T, session_modelsCreateArgs<ExtArgs>>): Prisma.Prisma__session_modelsClient<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Create many Session_models.
|
|
431
|
+
* @param {session_modelsCreateManyArgs} args - Arguments to create many Session_models.
|
|
432
|
+
* @example
|
|
433
|
+
* // Create many Session_models
|
|
434
|
+
* const session_models = await prisma.session_models.createMany({
|
|
435
|
+
* data: [
|
|
436
|
+
* // ... provide data here
|
|
437
|
+
* ]
|
|
438
|
+
* })
|
|
439
|
+
*
|
|
440
|
+
*/
|
|
441
|
+
createMany<T extends session_modelsCreateManyArgs>(args?: Prisma.SelectSubset<T, session_modelsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Create many Session_models and returns the data saved in the database.
|
|
445
|
+
* @param {session_modelsCreateManyAndReturnArgs} args - Arguments to create many Session_models.
|
|
446
|
+
* @example
|
|
447
|
+
* // Create many Session_models
|
|
448
|
+
* const session_models = await prisma.session_models.createManyAndReturn({
|
|
449
|
+
* data: [
|
|
450
|
+
* // ... provide data here
|
|
451
|
+
* ]
|
|
452
|
+
* })
|
|
453
|
+
*
|
|
454
|
+
* // Create many Session_models and only return the `session_id`
|
|
455
|
+
* const session_modelsWithSession_idOnly = await prisma.session_models.createManyAndReturn({
|
|
456
|
+
* select: { session_id: true },
|
|
457
|
+
* data: [
|
|
458
|
+
* // ... provide data here
|
|
459
|
+
* ]
|
|
460
|
+
* })
|
|
461
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
462
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
463
|
+
*
|
|
464
|
+
*/
|
|
465
|
+
createManyAndReturn<T extends session_modelsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, session_modelsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Delete a Session_models.
|
|
469
|
+
* @param {session_modelsDeleteArgs} args - Arguments to delete one Session_models.
|
|
470
|
+
* @example
|
|
471
|
+
* // Delete one Session_models
|
|
472
|
+
* const Session_models = await prisma.session_models.delete({
|
|
473
|
+
* where: {
|
|
474
|
+
* // ... filter to delete one Session_models
|
|
475
|
+
* }
|
|
476
|
+
* })
|
|
477
|
+
*
|
|
478
|
+
*/
|
|
479
|
+
delete<T extends session_modelsDeleteArgs>(args: Prisma.SelectSubset<T, session_modelsDeleteArgs<ExtArgs>>): Prisma.Prisma__session_modelsClient<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Update one Session_models.
|
|
483
|
+
* @param {session_modelsUpdateArgs} args - Arguments to update one Session_models.
|
|
484
|
+
* @example
|
|
485
|
+
* // Update one Session_models
|
|
486
|
+
* const session_models = await prisma.session_models.update({
|
|
487
|
+
* where: {
|
|
488
|
+
* // ... provide filter here
|
|
489
|
+
* },
|
|
490
|
+
* data: {
|
|
491
|
+
* // ... provide data here
|
|
492
|
+
* }
|
|
493
|
+
* })
|
|
494
|
+
*
|
|
495
|
+
*/
|
|
496
|
+
update<T extends session_modelsUpdateArgs>(args: Prisma.SelectSubset<T, session_modelsUpdateArgs<ExtArgs>>): Prisma.Prisma__session_modelsClient<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Delete zero or more Session_models.
|
|
500
|
+
* @param {session_modelsDeleteManyArgs} args - Arguments to filter Session_models to delete.
|
|
501
|
+
* @example
|
|
502
|
+
* // Delete a few Session_models
|
|
503
|
+
* const { count } = await prisma.session_models.deleteMany({
|
|
504
|
+
* where: {
|
|
505
|
+
* // ... provide filter here
|
|
506
|
+
* }
|
|
507
|
+
* })
|
|
508
|
+
*
|
|
509
|
+
*/
|
|
510
|
+
deleteMany<T extends session_modelsDeleteManyArgs>(args?: Prisma.SelectSubset<T, session_modelsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Update zero or more Session_models.
|
|
514
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
515
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
516
|
+
* @param {session_modelsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
517
|
+
* @example
|
|
518
|
+
* // Update many Session_models
|
|
519
|
+
* const session_models = await prisma.session_models.updateMany({
|
|
520
|
+
* where: {
|
|
521
|
+
* // ... provide filter here
|
|
522
|
+
* },
|
|
523
|
+
* data: {
|
|
524
|
+
* // ... provide data here
|
|
525
|
+
* }
|
|
526
|
+
* })
|
|
527
|
+
*
|
|
528
|
+
*/
|
|
529
|
+
updateMany<T extends session_modelsUpdateManyArgs>(args: Prisma.SelectSubset<T, session_modelsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Update zero or more Session_models and returns the data updated in the database.
|
|
533
|
+
* @param {session_modelsUpdateManyAndReturnArgs} args - Arguments to update many Session_models.
|
|
534
|
+
* @example
|
|
535
|
+
* // Update many Session_models
|
|
536
|
+
* const session_models = await prisma.session_models.updateManyAndReturn({
|
|
537
|
+
* where: {
|
|
538
|
+
* // ... provide filter here
|
|
539
|
+
* },
|
|
540
|
+
* data: [
|
|
541
|
+
* // ... provide data here
|
|
542
|
+
* ]
|
|
543
|
+
* })
|
|
544
|
+
*
|
|
545
|
+
* // Update zero or more Session_models and only return the `session_id`
|
|
546
|
+
* const session_modelsWithSession_idOnly = await prisma.session_models.updateManyAndReturn({
|
|
547
|
+
* select: { session_id: true },
|
|
548
|
+
* where: {
|
|
549
|
+
* // ... provide filter here
|
|
550
|
+
* },
|
|
551
|
+
* data: [
|
|
552
|
+
* // ... provide data here
|
|
553
|
+
* ]
|
|
554
|
+
* })
|
|
555
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
556
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
557
|
+
*
|
|
558
|
+
*/
|
|
559
|
+
updateManyAndReturn<T extends session_modelsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, session_modelsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Create or update one Session_models.
|
|
563
|
+
* @param {session_modelsUpsertArgs} args - Arguments to update or create a Session_models.
|
|
564
|
+
* @example
|
|
565
|
+
* // Update or create a Session_models
|
|
566
|
+
* const session_models = await prisma.session_models.upsert({
|
|
567
|
+
* create: {
|
|
568
|
+
* // ... data to create a Session_models
|
|
569
|
+
* },
|
|
570
|
+
* update: {
|
|
571
|
+
* // ... in case it already exists, update
|
|
572
|
+
* },
|
|
573
|
+
* where: {
|
|
574
|
+
* // ... the filter for the Session_models we want to update
|
|
575
|
+
* }
|
|
576
|
+
* })
|
|
577
|
+
*/
|
|
578
|
+
upsert<T extends session_modelsUpsertArgs>(args: Prisma.SelectSubset<T, session_modelsUpsertArgs<ExtArgs>>): Prisma.Prisma__session_modelsClient<runtime.Types.Result.GetResult<Prisma.$session_modelsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Count the number of Session_models.
|
|
583
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
584
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
585
|
+
* @param {session_modelsCountArgs} args - Arguments to filter Session_models to count.
|
|
586
|
+
* @example
|
|
587
|
+
* // Count the number of Session_models
|
|
588
|
+
* const count = await prisma.session_models.count({
|
|
589
|
+
* where: {
|
|
590
|
+
* // ... the filter for the Session_models we want to count
|
|
591
|
+
* }
|
|
592
|
+
* })
|
|
593
|
+
**/
|
|
594
|
+
count<T extends session_modelsCountArgs>(
|
|
595
|
+
args?: Prisma.Subset<T, session_modelsCountArgs>,
|
|
596
|
+
): Prisma.PrismaPromise<
|
|
597
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
598
|
+
? T['select'] extends true
|
|
599
|
+
? number
|
|
600
|
+
: Prisma.GetScalarType<T['select'], Session_modelsCountAggregateOutputType>
|
|
601
|
+
: number
|
|
602
|
+
>
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Allows you to perform aggregations operations on a Session_models.
|
|
606
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
607
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
608
|
+
* @param {Session_modelsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
609
|
+
* @example
|
|
610
|
+
* // Ordered by age ascending
|
|
611
|
+
* // Where email contains prisma.io
|
|
612
|
+
* // Limited to the 10 users
|
|
613
|
+
* const aggregations = await prisma.user.aggregate({
|
|
614
|
+
* _avg: {
|
|
615
|
+
* age: true,
|
|
616
|
+
* },
|
|
617
|
+
* where: {
|
|
618
|
+
* email: {
|
|
619
|
+
* contains: "prisma.io",
|
|
620
|
+
* },
|
|
621
|
+
* },
|
|
622
|
+
* orderBy: {
|
|
623
|
+
* age: "asc",
|
|
624
|
+
* },
|
|
625
|
+
* take: 10,
|
|
626
|
+
* })
|
|
627
|
+
**/
|
|
628
|
+
aggregate<T extends Session_modelsAggregateArgs>(args: Prisma.Subset<T, Session_modelsAggregateArgs>): Prisma.PrismaPromise<GetSession_modelsAggregateType<T>>
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Group by Session_models.
|
|
632
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
633
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
634
|
+
* @param {session_modelsGroupByArgs} args - Group by arguments.
|
|
635
|
+
* @example
|
|
636
|
+
* // Group by city, order by createdAt, get count
|
|
637
|
+
* const result = await prisma.user.groupBy({
|
|
638
|
+
* by: ['city', 'createdAt'],
|
|
639
|
+
* orderBy: {
|
|
640
|
+
* createdAt: true
|
|
641
|
+
* },
|
|
642
|
+
* _count: {
|
|
643
|
+
* _all: true
|
|
644
|
+
* },
|
|
645
|
+
* })
|
|
646
|
+
*
|
|
647
|
+
**/
|
|
648
|
+
groupBy<
|
|
649
|
+
T extends session_modelsGroupByArgs,
|
|
650
|
+
HasSelectOrTake extends Prisma.Or<
|
|
651
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
652
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
653
|
+
>,
|
|
654
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
655
|
+
? { orderBy: session_modelsGroupByArgs['orderBy'] }
|
|
656
|
+
: { orderBy?: session_modelsGroupByArgs['orderBy'] },
|
|
657
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
658
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
659
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
660
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
661
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
662
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
663
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
664
|
+
? `Error: "by" must not be empty.`
|
|
665
|
+
: HavingValid extends Prisma.False
|
|
666
|
+
? {
|
|
667
|
+
[P in HavingFields]: P extends ByFields
|
|
668
|
+
? never
|
|
669
|
+
: P extends string
|
|
670
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
671
|
+
: [
|
|
672
|
+
Error,
|
|
673
|
+
'Field ',
|
|
674
|
+
P,
|
|
675
|
+
` in "having" needs to be provided in "by"`,
|
|
676
|
+
]
|
|
677
|
+
}[HavingFields]
|
|
678
|
+
: 'take' extends Prisma.Keys<T>
|
|
679
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
680
|
+
? ByValid extends Prisma.True
|
|
681
|
+
? {}
|
|
682
|
+
: {
|
|
683
|
+
[P in OrderFields]: P extends ByFields
|
|
684
|
+
? never
|
|
685
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
686
|
+
}[OrderFields]
|
|
687
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
688
|
+
: 'skip' extends Prisma.Keys<T>
|
|
689
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
690
|
+
? ByValid extends Prisma.True
|
|
691
|
+
? {}
|
|
692
|
+
: {
|
|
693
|
+
[P in OrderFields]: P extends ByFields
|
|
694
|
+
? never
|
|
695
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
696
|
+
}[OrderFields]
|
|
697
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
698
|
+
: ByValid extends Prisma.True
|
|
699
|
+
? {}
|
|
700
|
+
: {
|
|
701
|
+
[P in OrderFields]: P extends ByFields
|
|
702
|
+
? never
|
|
703
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
704
|
+
}[OrderFields]
|
|
705
|
+
>(args: Prisma.SubsetIntersection<T, session_modelsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSession_modelsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
706
|
+
/**
|
|
707
|
+
* Fields of the session_models model
|
|
708
|
+
*/
|
|
709
|
+
readonly fields: session_modelsFieldRefs;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* The delegate class that acts as a "Promise-like" for session_models.
|
|
714
|
+
* Why is this prefixed with `Prisma__`?
|
|
715
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
716
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
717
|
+
*/
|
|
718
|
+
export interface Prisma__session_modelsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
719
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
720
|
+
/**
|
|
721
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
722
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
723
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
724
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
725
|
+
*/
|
|
726
|
+
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>
|
|
727
|
+
/**
|
|
728
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
729
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
730
|
+
* @returns A Promise for the completion of the callback.
|
|
731
|
+
*/
|
|
732
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
733
|
+
/**
|
|
734
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
735
|
+
* resolved value cannot be modified from the callback.
|
|
736
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
737
|
+
* @returns A Promise for the completion of the callback.
|
|
738
|
+
*/
|
|
739
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Fields of the session_models model
|
|
747
|
+
*/
|
|
748
|
+
export interface session_modelsFieldRefs {
|
|
749
|
+
readonly session_id: Prisma.FieldRef<"session_models", 'String'>
|
|
750
|
+
readonly model_id: Prisma.FieldRef<"session_models", 'String'>
|
|
751
|
+
readonly variant: Prisma.FieldRef<"session_models", 'String'>
|
|
752
|
+
readonly created_at: Prisma.FieldRef<"session_models", 'DateTime'>
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
// Custom InputTypes
|
|
757
|
+
/**
|
|
758
|
+
* session_models findUnique
|
|
759
|
+
*/
|
|
760
|
+
export type session_modelsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
761
|
+
/**
|
|
762
|
+
* Select specific fields to fetch from the session_models
|
|
763
|
+
*/
|
|
764
|
+
select?: Prisma.session_modelsSelect<ExtArgs> | null
|
|
765
|
+
/**
|
|
766
|
+
* Omit specific fields from the session_models
|
|
767
|
+
*/
|
|
768
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
769
|
+
/**
|
|
770
|
+
* Filter, which session_models to fetch.
|
|
771
|
+
*/
|
|
772
|
+
where: Prisma.session_modelsWhereUniqueInput
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* session_models findUniqueOrThrow
|
|
777
|
+
*/
|
|
778
|
+
export type session_modelsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
779
|
+
/**
|
|
780
|
+
* Select specific fields to fetch from the session_models
|
|
781
|
+
*/
|
|
782
|
+
select?: Prisma.session_modelsSelect<ExtArgs> | null
|
|
783
|
+
/**
|
|
784
|
+
* Omit specific fields from the session_models
|
|
785
|
+
*/
|
|
786
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
787
|
+
/**
|
|
788
|
+
* Filter, which session_models to fetch.
|
|
789
|
+
*/
|
|
790
|
+
where: Prisma.session_modelsWhereUniqueInput
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* session_models findFirst
|
|
795
|
+
*/
|
|
796
|
+
export type session_modelsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
797
|
+
/**
|
|
798
|
+
* Select specific fields to fetch from the session_models
|
|
799
|
+
*/
|
|
800
|
+
select?: Prisma.session_modelsSelect<ExtArgs> | null
|
|
801
|
+
/**
|
|
802
|
+
* Omit specific fields from the session_models
|
|
803
|
+
*/
|
|
804
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
805
|
+
/**
|
|
806
|
+
* Filter, which session_models to fetch.
|
|
807
|
+
*/
|
|
808
|
+
where?: Prisma.session_modelsWhereInput
|
|
809
|
+
/**
|
|
810
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
811
|
+
*
|
|
812
|
+
* Determine the order of session_models to fetch.
|
|
813
|
+
*/
|
|
814
|
+
orderBy?: Prisma.session_modelsOrderByWithRelationInput | Prisma.session_modelsOrderByWithRelationInput[]
|
|
815
|
+
/**
|
|
816
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
817
|
+
*
|
|
818
|
+
* Sets the position for searching for session_models.
|
|
819
|
+
*/
|
|
820
|
+
cursor?: Prisma.session_modelsWhereUniqueInput
|
|
821
|
+
/**
|
|
822
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
823
|
+
*
|
|
824
|
+
* Take `±n` session_models from the position of the cursor.
|
|
825
|
+
*/
|
|
826
|
+
take?: number
|
|
827
|
+
/**
|
|
828
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
829
|
+
*
|
|
830
|
+
* Skip the first `n` session_models.
|
|
831
|
+
*/
|
|
832
|
+
skip?: number
|
|
833
|
+
/**
|
|
834
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
835
|
+
*
|
|
836
|
+
* Filter by unique combinations of session_models.
|
|
837
|
+
*/
|
|
838
|
+
distinct?: Prisma.Session_modelsScalarFieldEnum | Prisma.Session_modelsScalarFieldEnum[]
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* session_models findFirstOrThrow
|
|
843
|
+
*/
|
|
844
|
+
export type session_modelsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
845
|
+
/**
|
|
846
|
+
* Select specific fields to fetch from the session_models
|
|
847
|
+
*/
|
|
848
|
+
select?: Prisma.session_modelsSelect<ExtArgs> | null
|
|
849
|
+
/**
|
|
850
|
+
* Omit specific fields from the session_models
|
|
851
|
+
*/
|
|
852
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
853
|
+
/**
|
|
854
|
+
* Filter, which session_models to fetch.
|
|
855
|
+
*/
|
|
856
|
+
where?: Prisma.session_modelsWhereInput
|
|
857
|
+
/**
|
|
858
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
859
|
+
*
|
|
860
|
+
* Determine the order of session_models to fetch.
|
|
861
|
+
*/
|
|
862
|
+
orderBy?: Prisma.session_modelsOrderByWithRelationInput | Prisma.session_modelsOrderByWithRelationInput[]
|
|
863
|
+
/**
|
|
864
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
865
|
+
*
|
|
866
|
+
* Sets the position for searching for session_models.
|
|
867
|
+
*/
|
|
868
|
+
cursor?: Prisma.session_modelsWhereUniqueInput
|
|
869
|
+
/**
|
|
870
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
871
|
+
*
|
|
872
|
+
* Take `±n` session_models from the position of the cursor.
|
|
873
|
+
*/
|
|
874
|
+
take?: number
|
|
875
|
+
/**
|
|
876
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
877
|
+
*
|
|
878
|
+
* Skip the first `n` session_models.
|
|
879
|
+
*/
|
|
880
|
+
skip?: number
|
|
881
|
+
/**
|
|
882
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
883
|
+
*
|
|
884
|
+
* Filter by unique combinations of session_models.
|
|
885
|
+
*/
|
|
886
|
+
distinct?: Prisma.Session_modelsScalarFieldEnum | Prisma.Session_modelsScalarFieldEnum[]
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* session_models findMany
|
|
891
|
+
*/
|
|
892
|
+
export type session_modelsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
893
|
+
/**
|
|
894
|
+
* Select specific fields to fetch from the session_models
|
|
895
|
+
*/
|
|
896
|
+
select?: Prisma.session_modelsSelect<ExtArgs> | null
|
|
897
|
+
/**
|
|
898
|
+
* Omit specific fields from the session_models
|
|
899
|
+
*/
|
|
900
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
901
|
+
/**
|
|
902
|
+
* Filter, which session_models to fetch.
|
|
903
|
+
*/
|
|
904
|
+
where?: Prisma.session_modelsWhereInput
|
|
905
|
+
/**
|
|
906
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
907
|
+
*
|
|
908
|
+
* Determine the order of session_models to fetch.
|
|
909
|
+
*/
|
|
910
|
+
orderBy?: Prisma.session_modelsOrderByWithRelationInput | Prisma.session_modelsOrderByWithRelationInput[]
|
|
911
|
+
/**
|
|
912
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
913
|
+
*
|
|
914
|
+
* Sets the position for listing session_models.
|
|
915
|
+
*/
|
|
916
|
+
cursor?: Prisma.session_modelsWhereUniqueInput
|
|
917
|
+
/**
|
|
918
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
919
|
+
*
|
|
920
|
+
* Take `±n` session_models from the position of the cursor.
|
|
921
|
+
*/
|
|
922
|
+
take?: number
|
|
923
|
+
/**
|
|
924
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
925
|
+
*
|
|
926
|
+
* Skip the first `n` session_models.
|
|
927
|
+
*/
|
|
928
|
+
skip?: number
|
|
929
|
+
distinct?: Prisma.Session_modelsScalarFieldEnum | Prisma.Session_modelsScalarFieldEnum[]
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* session_models create
|
|
934
|
+
*/
|
|
935
|
+
export type session_modelsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
936
|
+
/**
|
|
937
|
+
* Select specific fields to fetch from the session_models
|
|
938
|
+
*/
|
|
939
|
+
select?: Prisma.session_modelsSelect<ExtArgs> | null
|
|
940
|
+
/**
|
|
941
|
+
* Omit specific fields from the session_models
|
|
942
|
+
*/
|
|
943
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
944
|
+
/**
|
|
945
|
+
* The data needed to create a session_models.
|
|
946
|
+
*/
|
|
947
|
+
data: Prisma.XOR<Prisma.session_modelsCreateInput, Prisma.session_modelsUncheckedCreateInput>
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* session_models createMany
|
|
952
|
+
*/
|
|
953
|
+
export type session_modelsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
954
|
+
/**
|
|
955
|
+
* The data used to create many session_models.
|
|
956
|
+
*/
|
|
957
|
+
data: Prisma.session_modelsCreateManyInput | Prisma.session_modelsCreateManyInput[]
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* session_models createManyAndReturn
|
|
962
|
+
*/
|
|
963
|
+
export type session_modelsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
964
|
+
/**
|
|
965
|
+
* Select specific fields to fetch from the session_models
|
|
966
|
+
*/
|
|
967
|
+
select?: Prisma.session_modelsSelectCreateManyAndReturn<ExtArgs> | null
|
|
968
|
+
/**
|
|
969
|
+
* Omit specific fields from the session_models
|
|
970
|
+
*/
|
|
971
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
972
|
+
/**
|
|
973
|
+
* The data used to create many session_models.
|
|
974
|
+
*/
|
|
975
|
+
data: Prisma.session_modelsCreateManyInput | Prisma.session_modelsCreateManyInput[]
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* session_models update
|
|
980
|
+
*/
|
|
981
|
+
export type session_modelsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
982
|
+
/**
|
|
983
|
+
* Select specific fields to fetch from the session_models
|
|
984
|
+
*/
|
|
985
|
+
select?: Prisma.session_modelsSelect<ExtArgs> | null
|
|
986
|
+
/**
|
|
987
|
+
* Omit specific fields from the session_models
|
|
988
|
+
*/
|
|
989
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
990
|
+
/**
|
|
991
|
+
* The data needed to update a session_models.
|
|
992
|
+
*/
|
|
993
|
+
data: Prisma.XOR<Prisma.session_modelsUpdateInput, Prisma.session_modelsUncheckedUpdateInput>
|
|
994
|
+
/**
|
|
995
|
+
* Choose, which session_models to update.
|
|
996
|
+
*/
|
|
997
|
+
where: Prisma.session_modelsWhereUniqueInput
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* session_models updateMany
|
|
1002
|
+
*/
|
|
1003
|
+
export type session_modelsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1004
|
+
/**
|
|
1005
|
+
* The data used to update session_models.
|
|
1006
|
+
*/
|
|
1007
|
+
data: Prisma.XOR<Prisma.session_modelsUpdateManyMutationInput, Prisma.session_modelsUncheckedUpdateManyInput>
|
|
1008
|
+
/**
|
|
1009
|
+
* Filter which session_models to update
|
|
1010
|
+
*/
|
|
1011
|
+
where?: Prisma.session_modelsWhereInput
|
|
1012
|
+
/**
|
|
1013
|
+
* Limit how many session_models to update.
|
|
1014
|
+
*/
|
|
1015
|
+
limit?: number
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* session_models updateManyAndReturn
|
|
1020
|
+
*/
|
|
1021
|
+
export type session_modelsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1022
|
+
/**
|
|
1023
|
+
* Select specific fields to fetch from the session_models
|
|
1024
|
+
*/
|
|
1025
|
+
select?: Prisma.session_modelsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1026
|
+
/**
|
|
1027
|
+
* Omit specific fields from the session_models
|
|
1028
|
+
*/
|
|
1029
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
1030
|
+
/**
|
|
1031
|
+
* The data used to update session_models.
|
|
1032
|
+
*/
|
|
1033
|
+
data: Prisma.XOR<Prisma.session_modelsUpdateManyMutationInput, Prisma.session_modelsUncheckedUpdateManyInput>
|
|
1034
|
+
/**
|
|
1035
|
+
* Filter which session_models to update
|
|
1036
|
+
*/
|
|
1037
|
+
where?: Prisma.session_modelsWhereInput
|
|
1038
|
+
/**
|
|
1039
|
+
* Limit how many session_models to update.
|
|
1040
|
+
*/
|
|
1041
|
+
limit?: number
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* session_models upsert
|
|
1046
|
+
*/
|
|
1047
|
+
export type session_modelsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1048
|
+
/**
|
|
1049
|
+
* Select specific fields to fetch from the session_models
|
|
1050
|
+
*/
|
|
1051
|
+
select?: Prisma.session_modelsSelect<ExtArgs> | null
|
|
1052
|
+
/**
|
|
1053
|
+
* Omit specific fields from the session_models
|
|
1054
|
+
*/
|
|
1055
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
1056
|
+
/**
|
|
1057
|
+
* The filter to search for the session_models to update in case it exists.
|
|
1058
|
+
*/
|
|
1059
|
+
where: Prisma.session_modelsWhereUniqueInput
|
|
1060
|
+
/**
|
|
1061
|
+
* In case the session_models found by the `where` argument doesn't exist, create a new session_models with this data.
|
|
1062
|
+
*/
|
|
1063
|
+
create: Prisma.XOR<Prisma.session_modelsCreateInput, Prisma.session_modelsUncheckedCreateInput>
|
|
1064
|
+
/**
|
|
1065
|
+
* In case the session_models was found with the provided `where` argument, update it with this data.
|
|
1066
|
+
*/
|
|
1067
|
+
update: Prisma.XOR<Prisma.session_modelsUpdateInput, Prisma.session_modelsUncheckedUpdateInput>
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* session_models delete
|
|
1072
|
+
*/
|
|
1073
|
+
export type session_modelsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1074
|
+
/**
|
|
1075
|
+
* Select specific fields to fetch from the session_models
|
|
1076
|
+
*/
|
|
1077
|
+
select?: Prisma.session_modelsSelect<ExtArgs> | null
|
|
1078
|
+
/**
|
|
1079
|
+
* Omit specific fields from the session_models
|
|
1080
|
+
*/
|
|
1081
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
1082
|
+
/**
|
|
1083
|
+
* Filter which session_models to delete.
|
|
1084
|
+
*/
|
|
1085
|
+
where: Prisma.session_modelsWhereUniqueInput
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* session_models deleteMany
|
|
1090
|
+
*/
|
|
1091
|
+
export type session_modelsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1092
|
+
/**
|
|
1093
|
+
* Filter which session_models to delete
|
|
1094
|
+
*/
|
|
1095
|
+
where?: Prisma.session_modelsWhereInput
|
|
1096
|
+
/**
|
|
1097
|
+
* Limit how many session_models to delete.
|
|
1098
|
+
*/
|
|
1099
|
+
limit?: number
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* session_models without action
|
|
1104
|
+
*/
|
|
1105
|
+
export type session_modelsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1106
|
+
/**
|
|
1107
|
+
* Select specific fields to fetch from the session_models
|
|
1108
|
+
*/
|
|
1109
|
+
select?: Prisma.session_modelsSelect<ExtArgs> | null
|
|
1110
|
+
/**
|
|
1111
|
+
* Omit specific fields from the session_models
|
|
1112
|
+
*/
|
|
1113
|
+
omit?: Prisma.session_modelsOmit<ExtArgs> | null
|
|
1114
|
+
}
|